1 2014-07-11 Yao Qi <yao@codesourcery.com>
3 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4 (thumb_in_function_epilogue_p): Call
5 thumb_instruction_restores_sp.
7 2014-07-11 Yao Qi <yao@codesourcery.com>
9 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
11 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
13 2014-07-11 Gary Benson <gbenson@redhat.com>
15 * amd64-linux-nat.c (gdbcore.h): Remove include.
17 (nat/linux-btrace.h): Likewise.
19 (gdb_assert.h): Likewise.
21 (sys/uio.h): Likewise.
22 (sys/debugreg.h): Likewise.
23 (sys/syscall.h): Likewise.
24 (sys/procfs.h): Likewise.
25 (sys/user.h): Likewise.
26 (asm/ptrace.h): Likewise.
27 (i386-nat.h): Likewise.
28 * i386-linux-nat.c (i386-nat.h): Likewise.
31 (linux-nat.h): Likewise.
32 (nat/linux-btrace.h): Likewise.
34 (gdb_assert.h): Likewise.
36 (sys/uio.h): Likewise.
37 (sys/user.h): Likewise.
38 (sys/procfs.h): Likewise.
39 (sys/reg.h): Likewise.
40 (sys/debugreg.h): Likewise.
41 (ORIG_EAX): Remove definition.
43 2014-07-11 Gary Benson <gbenson@redhat.com>
45 * i386-linux-nat.h: New file.
46 * x86-linux-nat.h: Likewise.
47 * x86-linux-nat.c: Likewise.
48 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
49 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
50 * config/i386/linux64.mh (NATDEPFILES): Likewise.
51 * amd64-linux-nat.c (x86-linux-nat.h): New include.
52 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
53 (PTRACE_SETREGSET): Likewise.
54 (arch_lwp_info): Now in x86-linux-nat.c.
55 (have_ptrace_getregset): Now in x86-linux-nat.h.
56 (x86_linux_dr_get): Now in x86-linux-nat.c.
57 (x86_linux_dr_set): Likewise.
58 (x86_linux_dr_get_addr): Likewise.
59 (x86_linux_dr_get_control): Likewise.
60 (x86_linux_dr_get_status): Likewise.
61 (update_debug_registers_callback): Likewise.
62 (x86_linux_dr_set_control): Likewise.
63 (x86_linux_dr_set_addr): Likewise.
64 (x86_linux_prepare_to_resume): Likewise.
65 (x86_linux_new_thread): Likewise.
66 (x86_linux_new_fork): Likewise.
67 (x86_linux_get_thread_area): Likewise.
68 (super_post_startup_inferior): Likewise.
69 (x86_linux_child_post_startup_inferior): Likewise.
70 (AMD64_LINUX_USER64_CS): Likewise.
71 (AMD64_LINUX_X32_DS): Likewise.
72 (x86_linux_read_description): Likewise.
73 (x86_linux_enable_btrace): Likewise.
74 (x86_linux_disable_btrace): Likewise.
75 (x86_linux_teardown_btrace): Likewise.
76 (x86_linux_read_btrace): Likewise.
77 (x86_linux_create_target): Likewise.
78 (x86_linux_add_target): Likewise.
79 * i386-linux-nat.c (x86-linux-nat.h): New include.
80 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
81 (PTRACE_SETREGSET): Likewise.
82 (arch_lwp_info): Now in x86-linux-nat.c.
83 (have_ptrace_getregset): Now in x86-linux-nat.h.
84 (x86_linux_dr_get): Now in x86-linux-nat.c.
85 (x86_linux_dr_set): Likewise.
86 (x86_linux_dr_get_addr): Likewise.
87 (x86_linux_dr_get_control): Likewise.
88 (x86_linux_dr_get_status): Likewise.
89 (update_debug_registers_callback): Likewise.
90 (x86_linux_dr_set_control): Likewise.
91 (x86_linux_dr_set_addr): Likewise.
92 (x86_linux_prepare_to_resume): Likewise.
93 (x86_linux_new_thread): Likewise.
94 (x86_linux_new_fork): Likewise.
95 (x86_linux_get_thread_area): Likewise.
96 (super_post_startup_inferior): Likewise.
97 (x86_linux_child_post_startup_inferior): Likewise.
98 (AMD64_LINUX_USER64_CS): Likewise.
99 (AMD64_LINUX_X32_DS): Likewise.
100 (x86_linux_read_description): Likewise.
101 (x86_linux_enable_btrace): Likewise.
102 (x86_linux_disable_btrace): Likewise.
103 (x86_linux_teardown_btrace): Likewise.
104 (x86_linux_read_btrace): Likewise.
105 (x86_linux_create_target): Likewise.
106 (x86_linux_add_target): Likewise.
108 2014-07-11 Gary Benson <gbenson@redhat.com>
110 * amd64-linux-nat.c: Comment and whitespace changes.
111 * i386-linux-nat.c: Comment and whitespace changes.
113 2014-07-11 Gary Benson <gbenson@redhat.com>
115 * amd64-linux-nat.c (x86_linux_create_target): New function.
116 (x86_linux_add_target): Likewise.
117 (_initialize_amd64_linux_nat): Delegate to the above new functions.
118 * i386-linux-nat.c (x86_linux_create_target): New function.
119 (x86_linux_add_target): Likewise.
120 (_initialize_i386_linux_nat): Delegate to the above new functions.
122 2014-07-11 Gary Benson <gbenson@redhat.com>
124 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
125 (ps_get_thread_area): Delegate to the above in 32-bit mode.
126 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
127 (ps_get_thread_area): Delegate to the above.
129 2014-07-11 Gary Benson <gbenson@redhat.com>
131 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
132 x86_linux_read_description. All uses updated. amd64-specific
133 code conditionalized. Conditionalized i386-specific code added.
134 Redundant cast removed.
135 * i386-linux-nat.c (i386_linux_read_description): Renamed to
136 x86_linux_read_description. All uses updated. i386-specific
137 code conditionalized. Conditionalized amd64-specific code added.
138 One sizeof replaced with the actual type it is describing.
140 2014-07-11 Gary Benson <gbenson@redhat.com>
142 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
143 x86_linux_dr_get. All uses updated.
144 (amd64_linux_dr_set): Renamed to
145 x86_linux_dr_set. All uses updated.
146 (amd64_linux_dr_get_addr): Renamed to
147 x86_linux_dr_get_addr. All uses updated.
148 (amd64_linux_dr_get_control): Renamed to
149 x86_linux_dr_get_control. All uses updated.
150 (amd64_linux_dr_get_status): Renamed to
151 x86_linux_dr_get_status. All uses updated.
152 (amd64_linux_dr_set_control): Renamed to
153 x86_linux_dr_set_control. All uses updated.
154 (amd64_linux_dr_set_addr): Renamed to
155 x86_linux_dr_set_addr. All uses updated.
156 (amd64_linux_prepare_to_resume): Renamed to
157 x86_linux_prepare_to_resume. All uses updated.
158 (amd64_linux_new_thread): Renamed to
159 x86_linux_new_thread. All uses updated.
160 (amd64_linux_new_fork): Renamed to
161 x86_linux_new_fork. All uses updated.
162 (amd64_linux_child_post_startup_inferior): Renamed to
163 x86_linux_child_post_startup_inferior. All uses updated.
164 (amd64_linux_enable_btrace): Renamed to
165 x86_linux_enable_btrace. All uses updated.
166 (amd64_linux_disable_btrace): Renamed to
167 x86_linux_disable_btrace. All uses updated.
168 (amd64_linux_teardown_btrace): Renamed to
169 x86_linux_teardown_btrace. All uses updated.
170 (amd64_linux_read_btrace): Renamed to
171 x86_linux_read_btrace. All uses updated.
172 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
173 x86_linux_dr_get. All uses updated.
174 (i386_linux_dr_set): Renamed to
175 x86_linux_dr_set. All uses updated.
176 (i386_linux_dr_get_addr): Renamed to
177 x86_linux_dr_get_addr. All uses updated.
178 (i386_linux_dr_get_control): Renamed to
179 x86_linux_dr_get_control. All uses updated.
180 (i386_linux_dr_get_status): Renamed to
181 x86_linux_dr_get_status. All uses updated.
182 (i386_linux_dr_set_control): Renamed to
183 x86_linux_dr_set_control. All uses updated.
184 (i386_linux_dr_set_addr): Renamed to
185 x86_linux_dr_set_addr. All uses updated.
186 (i386_linux_prepare_to_resume): Renamed to
187 x86_linux_prepare_to_resume. All uses updated.
188 (i386_linux_new_thread): Renamed to
189 x86_linux_new_thread. All uses updated.
190 (i386_linux_new_fork): Renamed to
191 x86_linux_new_fork. All uses updated.
192 (i386_linux_child_post_startup_inferior): Renamed to
193 x86_linux_child_post_startup_inferior. All uses updated.
194 (i386_linux_enable_btrace): Renamed to
195 x86_linux_enable_btrace. All uses updated.
196 (i386_linux_disable_btrace): Renamed to
197 x86_linux_disable_btrace. All uses updated.
198 (i386_linux_teardown_btrace): Renamed to
199 x86_linux_teardown_btrace. All uses updated.
200 (i386_linux_read_btrace): Renamed to
201 x86_linux_read_btrace. All uses updated.
203 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
205 * remote.c (extended_remote_post_attach): New function.
206 (init_extended_remote_ops): Install it as to_post_attach method.
208 2014-07-09 Pedro Alves <palves@redhat.com>
210 * infcmd.c (attach_command_post_wait): Don't call
211 target_terminal_inferior here.
212 (attach_command): Call it here instead.
214 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
216 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
218 * c-varobj.c (c_is_path_expr_parent): New function, moved core
219 from varobj.c, with additional checks.
220 (c_varobj_ops): Fill in is_path_expr_parent field.
221 (cplus_varobj_ops): Fill in is_path_expr_parent field.
222 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
224 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
226 (varobj_default_is_path_expr_parent): New function.
227 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
228 (varobj_default_is_path_expr_parent): Declare new function.
230 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
232 * infcmd.c (finish_backward): Turn internal error into normal error.
234 2014-07-07 Pedro Alves <palves@redhat.com>
237 * remote.c (async_handle_remote_sigint)
238 (async_handle_remote_sigint_twice): Call
239 gdb_call_async_signal_handler instead of
240 mark_async_signal_handler.
242 2014-07-07 Tom Tromey <tromey@redhat.com>
244 * target-delegates.c: Rebuild.
245 * target.c (target_info_record): Remove.
246 * record.c (info_record_command): Unconditionally call
248 * target.h (struct target_ops) <to_info_record>: Use
249 TARGET_DEFAULT_IGNORE.
250 (target_info_record): Remove.
252 2014-07-07 Tom Tromey <tromey@redhat.com>
254 * target.h (struct target_ops) <to_get_thread_local_address>: Use
255 TARGET_DEFAULT_NORETURN.
256 * target.c (generic_tls_error): New function.
257 (target_translate_tls_address): Don't search target stack.
258 * target-delegates.c: Rebuild.
259 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
261 * linux-thread-db.c (thread_db_get_thread_local_address):
262 Unconditionally call beneath target.
264 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
266 * cli/cli-logging.c (pop_output_files): Assign targerr to
269 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
271 * MAINTAINERS (Write After Approval): Update my email address.
273 2014-07-02 Gary Benson <gbenson@redhat.com>
275 * proc-service.c (ps_xfer_memory): Update comment.
276 (ps_pstop): Remove unused function.
277 (ps_pcontinue): Likewise.
278 (ps_lstop): Likewise.
279 (ps_lcontinue): Likewise.
280 (ps_lgetxregsize): Likewise.
281 (ps_lgetxregs): Likewise.
282 (ps_lsetxregs): Likewise.
284 (ps_ptread): Likewise.
285 (ps_ptwrite): Likewise.
287 2014-07-01 Mark Wielaard <mjw@redhat.com>
289 * dwarf2read.c (add_array_cv_type): New function.
290 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
291 (read_tag_volatile_type): Likewise.
293 2014-07-01 Tom Tromey <tromey@redhat.com>
295 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
296 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
297 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
298 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
299 * command.h (cmd_cfunc_ftype): Move earlier.
300 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
301 (add_com, add_info): Use cmd_cfunc_ftype.
303 2014-06-30 Tom Tromey <tromey@redhat.com>
305 * symtab.c (operator_chars): Make parameters and return type
307 (file_matches): Make "files" const.
308 (struct search_symbols_data) <files>: Now const.
309 (search_symbols): Make "regexp" and "files" parameters const.
311 (symtab_symbol_info): Remove cast.
312 (rbreak_command): Update.
313 * symtab.h (search_symbols): Update.
315 2014-06-27 Yao Qi <yao@codesourcery.com>
317 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
318 Change parameter type to 'struct thread_info *'. Caller
320 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
322 * dummy-frame.c (struct dummy_frame_id): New.
323 (dummy_frame_id_eq): New function.
324 (struct dummy_frame) <id>: Change its type to 'struct
326 (dummy_frame_push): Add parameter ptid and save it in
328 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
330 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
332 (lookup_dummy_frame): Change parameter type to 'struct
333 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
334 instead of frame_id_eq.
335 (dummy_frame_pop): Add parameter ptid. Callers updated.
336 Update comments. Compose dummy_frame_id and pass it to
338 (dummy_frame_discard): Add parameter ptid.
339 (dummy_frame_sniffer): Compose dummy_frame_id and call
340 dummy_frame_id_eq instead of frame_id_eq.
341 (fprint_dummy_frames): Print ptid.
342 * dummy-frame.h: Remove comments.
343 (dummy_frame_push): Add ptid in declaration.
344 (dummy_frame_pop, dummy_frame_discard): Likewise.
346 2014-06-26 Tom Tromey <tromey@redhat.com>
348 * cli/cli-cmds.c (error_no_arg): Make "why" const.
349 * command.h (error_no_arg): Update.
351 2014-06-26 Tom Tromey <tromey@redhat.com>
353 * cli/cli-setshow.c (do_set_command): Make "arg" const.
354 (do_show_command): Make "arg" const.
355 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
357 2014-06-26 Tom Tromey <tromey@redhat.com>
359 * record-full.c (record_full_get_bookmark): Make "args" const.
360 (record_full_goto_bookmark): Make "raw_bookmark" const.
361 * record.c (record_goto): New function.
362 (cmd_record_goto): Use it. Now static.
363 * record.h (record_goto): Declare.
364 (cmd_record_goto): Remove declaration.
365 * target-delegates.c: Rebuild.
366 * target.h (struct target_ops) <to_get_bookmark,
367 to_goto_bookmark>: Make parameter const.
369 2014-06-26 Tom Tromey <tromey@redhat.com>
371 * defs.h (generic_load): Update.
372 * m32r-rom.c (m32r_load_gen): Make "filename" const.
373 * monitor.c (monitor_load): Make "args" const.
374 * remote-m32r-sdi.c (m32r_load): Make "args" const.
375 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
377 (mips_load): Make "file" const.
378 * remote-sim.c (gdbsim_load): Make "args" const.
379 * remote.c (remote_load): Make "name" const.
380 * symfile.c (generic_load): Make "args" const.
381 * target-delegates.c: Rebuild.
382 * target.c (target_load): Make "arg" const.
383 (debug_to_load): Make "args" const.
384 * target.h (struct target_ops) <to_load>: Make parameter const.
385 (target_load): Update.
387 2014-06-26 Tom Tromey <tromey@redhat.com>
390 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
391 (dwarf2_physname, read_partial_die)
392 (guess_partial_die_structure_name, fixup_partial_die)
393 (guess_full_die_structure_name, anonymous_struct_prefix)
394 (dwarf2_name): Use per-BFD obstack.
396 2014-06-26 Yao Qi <yao@codesourcery.com>
398 * dummy-frame.c (dummy_frame_sniffer): Move local variables
399 dummyframe and this_id into inner block below.
401 2014-06-26 Yao Qi <yao@codesourcery.com>
403 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
404 with "signal_pass[0]" in the initialization of signal_pass.
406 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
408 * record-btrace.c (record_btrace_generating_corefile)
409 (record_btrace_prepare_to_generate_core)
410 (record_btrace_done_generating_core): New.
411 (record_btrace_xfer_partial, record_btrace_fetch_registers)
412 (record_btrace_store_registers, record_btrace_prepare_to_store):
413 Forward request when generating a core file.
414 (record_btrace_open): Set record_btrace_generating_corefile to zero.
415 (init_record_btrace_ops): Set to_prepare_to_generate_core and
416 to_done_generating_core.
418 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
420 * target.h (target_ops) <to_prepare_to_generate_core>
421 <to_done_generating_core>: New.
422 (target_prepare_to_generate_core, target_done_generating_core): New.
423 * target.c (target_prepare_to_generate_core)
424 (target_done_generating_core): New.
425 * target-delegates.c: Regenerate.
426 * gcore.c: (write_gcore_file): Rename to ...
427 (write_gcore_file_1): ...this.
428 (write_gcore_file): Call target_prepare_to_generate_core
429 and target_done_generating_core.
431 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
433 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
434 * gcore.c (write_gcore_file): Free memory returned from
436 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
437 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
439 2014-06-24 Yao Qi <yao@codesourcery.com>
441 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
442 (arm_linux_init_abi): Set skip_trampoline_code with
443 gdbarch_skip_trampoline_code instead of
444 find_solib_trampoline_target.
446 2014-06-24 Yao Qi <yao@codesourcery.com>
448 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
449 arm_skip_bx_reg returns non-zero.
451 2014-06-24 Yao Qi <yao@codesourcery.com>
453 * arm-tdep.c (arm_skip_bx_reg): New function.
454 (arm_skip_stub): Call arm_skip_bx_reg.
456 2014-06-23 Don Breazeal <donb@codesourcery.com>
458 * MAINTAINERS: Add myself as write-after-approval maintainer.
460 2014-06-23 Pedro Alves <palves@redhat.com>
462 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
463 DR_CONTROL before setting DR0..DR3.
464 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
465 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
466 bits of DR_CONTROL related to the debug register slot being
467 disabled. If all slots are vacant, clear local slowdown as well,
468 and assert DR_CONTROL is 0.
470 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
472 * python/lib/gdb/command/xmethods.py
473 (get_method_matchers_in_loci): Lookup xmethod matchers in the
474 current progspace only if the string "progspace" matches LOCUS_RE.
476 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
478 Fix --with-system-readline with readline-6.3 patch 5.
479 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
480 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
483 2014-06-20 Tom Tromey <tromey@redhat.com>
485 * dwarf2read.c (dw2_get_real_path): Use correct type in
487 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
489 2014-06-20 Gary Benson <gbenson@redhat.com>
491 * common/gdb_thread_db.h: Moved to nat. All includes updated.
492 * common/glibc_thread_db.h: Likewise.
493 * common/i386-cpuid.h: Likewise.
494 * common/i386-gcc-cpuid.h: Likewise.
495 * common/linux-btrace.h: Likewise.
496 * common/linux-osdata.h: Likewise.
497 * common/linux-procfs.h: Likewise.
498 * common/linux-ptrace.h: Likewise.
499 * common/mips-linux-watch.h: Likewise.
500 * common/linux-btrace.c: Moved to nat.
501 * common/linux-osdata.c: Likewise.
502 * common/linux-procfs.c: Likewise.
503 * common/linux-ptrace.c: Likewise.
504 * common/mips-linux-watch.c: Likewise.
505 * nat/gdb_thread_db.h: Moved from common.
506 * nat/glibc_thread_db.h: Likewise.
507 * nat/i386-cpuid.h: Likewise.
508 * nat/i386-gcc-cpuid.h: Likewise.
509 * nat/linux-btrace.c: Likewise.
510 * nat/linux-btrace.h: Likewise.
511 * nat/linux-osdata.c: Likewise.
512 * nat/linux-osdata.h: Likewise.
513 * nat/linux-procfs.c: Likewise.
514 * nat/linux-procfs.h: Likewise.
515 * nat/linux-ptrace.c: Likewise.
516 * nat/linux-ptrace.h: Likewise.
517 * nat/mips-linux-watch.c: Likewise.
518 * nat/mips-linux-watch.h: Likewise.
519 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
520 (object file files): Reordered.
521 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
522 of glibc_thread_db.h.
524 2014-06-20 Gary Benson <gbenson@redhat.com>
526 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
527 (i386_dr_low_type): Moved to nat/i386-dregs.h.
528 (i386_dr_low): Likewise.
529 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
530 (i386_dr_low_set_addr): Likewise.
531 (i386_dr_low_get_addr): Likewise.
532 (i386_dr_low_can_set_control): Likewise.
533 (i386_dr_low_set_control): Likewise.
534 (i386_dr_low_get_control): Likewise.
535 (i386_dr_low_get_status): Likewise.
536 (i386_get_debug_register_length): Likewise.
537 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
538 (i386_dr_low): Likewise.
539 * nat/i386-dregs.c (i386-low.h): Remove include.
540 (i386-nat.h): Likewise.
541 (nat/i386-dregs.h): New include.
542 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
543 (i386_dr_low_set_addr): Likewise.
544 (i386_dr_low_get_addr): Likewise.
545 (i386_dr_low_can_set_control): Likewise.
546 (i386_dr_low_set_control): Likewise.
547 (i386_dr_low_get_control): Likewise.
548 (i386_dr_low_get_status): Likewise.
549 (i386_get_debug_register_length): Likewise.
550 (debug_hw_points): Likewise.
552 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
554 * Makefile.in (SFILES): Add d-exp.y.
555 (YYFILES): Add d-exp.c.
556 (YYOBJ): Add d-exp.o.
557 (local-maintainer-clean): Delete d-exp.c.
559 * d-lang.h (d_parse): New declaration.
560 (d_error): New declaration.
561 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
562 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
563 PREC_ORDER operators.
564 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
566 2014-06-19 Yao Qi <yao@codesourcery.com>
568 * gdbthread.h (any_running): Remove the declaration.
569 * thread.c (any_running): Remove.
571 2014-06-19 Yao Qi <yao@codesourcery.com>
573 * gdbthread.h (struct thread_info) <state>: Change its type to
574 'enum thread_state'. Update comments.
576 2014-06-19 Pedro Alves <palves@redhat.com>
578 * gdbthread.h (ALL_THREADS): Delete.
579 (ALL_NON_EXITED_THREADS): New macro.
580 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
581 instead of ALL_THREADS.
582 * infrun.c (find_thread_needs_step_over)
583 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
584 instead of ALL_THREADS.
585 * record-btrace.c (record_btrace_open)
586 (record_btrace_stop_recording, record_btrace_close)
587 (record_btrace_is_replaying, record_btrace_resume)
588 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
589 * remote.c (append_pending_thread_resumptions): Likewise.
590 * thread.c (thread_apply_all_command): Likewise.
592 2014-06-19 Gary Benson <gbenson@redhat.com>
594 * i386-nat.c (i386_stopped_by_watchpoint):
595 Use i386_dr_stopped_by_watchpoint.
596 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
597 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
599 2014-06-19 Gary Benson <gbenson@redhat.com>
601 * nat/i386-dregs.c: New file.
602 * Makefile.in (i386-dregs.o): New rule.
603 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
604 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
605 * config/i386/darwin.mh (NATDEPFILES): Likewise.
606 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
607 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
608 * config/i386/go32.mh (NATDEPFILES): Likewise.
609 * config/i386/linux.mh (NATDEPFILES): Likewise.
610 * config/i386/linux64.mh (NATDEPFILES): Likewise.
611 * config/i386/mingw.mh (NATDEPFILES): Likewise.
612 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
613 * i386-nat.h (debug_hw_points): New declaration.
614 * i386-nat.c (breakpoint.h): Remove include.
615 (command.h): Likewise.
616 (target.h): Likewise.
617 (gdb_assert.h): Likewise.
618 (debug_hw_points): Made nonstatic.
619 (debug_printf): Now in i386-dregs.c.
620 (TARGET_HAS_DR_LEN_8): Likewise.
621 (DR_CONTROL_SHIFT): Likewise.
622 (DR_CONTROL_SIZE): Likewise.
623 (DR_RW_EXECUTE): Likewise.
624 (DR_RW_WRITE): Likewise.
625 (DR_RW_READ): Likewise.
626 (DR_RW_IORW): Likewise.
627 (DR_LEN_1): Likewise.
628 (DR_LEN_2): Likewise.
629 (DR_LEN_4): Likewise.
630 (DR_LEN_8): Likewise.
631 (DR_LOCAL_ENABLE_SHIFT): Likewise.
632 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
633 (DR_ENABLE_SIZE): Likewise.
634 (DR_LOCAL_SLOWDOWN): Likewise.
635 (DR_GLOBAL_SLOWDOWN): Likewise.
636 (DR_CONTROL_RESERVED): Likewise.
637 (I386_DR_CONTROL_MASK): Likewise.
638 (I386_DR_VACANT): Likewise.
639 (I386_DR_LOCAL_ENABLE): Likewise.
640 (I386_DR_GLOBAL_ENABLE): Likewise.
641 (I386_DR_DISABLE): Likewise.
642 (I386_DR_SET_RW_LEN): Likewise.
643 (I386_DR_GET_RW_LEN): Likewise.
644 (I386_DR_WATCH_HIT): Likewise.
645 (i386_wp_op_t): Likewise.
646 (i386_show_dr): Likewise.
647 (i386_length_and_rw_bits): Likewise.
648 (i386_insert_aligned_watchpoint): Likewise.
649 (i386_remove_aligned_watchpoint): Likewise.
650 (i386_handle_nonaligned_watchpoint): Likewise.
651 (i386_update_inferior_debug_regs): Likewise.
652 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
653 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
654 (i386_region_ok_for_watchpoint):
655 Use i386_dr_region_ok_for_watchpoint.
656 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
658 2014-06-19 Gary Benson <gbenson@redhat.com>
660 * i386-nat.c (i386_insert_hw_breakpoint): Use
661 i386_insert_watchpoint.
662 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
664 2014-06-19 Gary Benson <gbenson@redhat.com>
666 * i386-nat.c (i386_dr_show): Renamed to
667 i386_show_dr and made static. All uses updated.
668 (i386_dr_length_and_rw_bits): Renamed to
669 i386_length_and_rw_bits and made static.
671 (i386_dr_insert_aligned_watchpoint): Renamed to
672 i386_insert_aligned_watchpoint and made static.
674 (i386_dr_remove_aligned_watchpoint): Renamed to
675 i386_remove_aligned_watchpoint and made static.
677 (i386_dr_update_inferior_debug_regs): Renamed to
678 i386_update_inferior_debug_regs and made static.
680 * nat/i386-dregs.h (i386_dr_show): Removed.
681 (i386_dr_length_and_rw_bits): Likewise.
682 (i386_dr_insert_aligned_watchpoint): Likewise.
683 (i386_dr_remove_aligned_watchpoint): Likewise.
684 (i386_dr_update_inferior_debug_regs): Likewise.
686 2014-06-19 Gary Benson <gbenson@redhat.com>
688 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
689 * configure: Regenerate.
690 * config.in: Likewise.
691 * main.c (signal.h): New include.
692 (setup_alternate_signal_stack): New function.
693 (captured_main): Call the above.
694 * cp-support.c (signal.h): New include.
695 (catch_demangler_crashes): New flag.
696 (SIGJMP_BUF): New define.
697 (SIGSETJMP): Likewise.
698 (SIGLONGJMP): Likewise.
699 (gdb_demangle_jmp_buf): New static global.
700 (gdb_demangle_attempt_core_dump): Likewise.
701 (gdb_demangle_signal_handler): New function.
702 (gdb_demangle): If catch_demangler_crashes is set, install the
703 above signal handler before calling bfd_demangle, and restore
704 the original signal handler afterwards. Display the offending
705 symbol and call demangler_warning the first time a segmentation
707 (_initialize_cp_support): New maint set/show command.
709 2014-06-19 Gary Benson <gbenson@redhat.com>
711 * utils.h (resource_limit_kind): New enum.
712 (can_dump_core): New declaration.
713 (warn_cant_dump_core): Likewise.
714 (dump_core): Likewise.
715 * utils.c (dump_core): Made nonstatic. Added new
716 parameter "limit_kind".
717 (can_dump_core): Made nonstatic. Moved printing code to...
718 (warn_cant_dump_core): New function.
719 (can_dump_core_warn): Likewise.
720 (internal_vproblem): Replace calls to can_dump_core with
721 calls to can_dump_core_warn. Supply new argument to each.
723 2014-06-19 Gary Benson <gbenson@redhat.com>
725 * utils.h (demangler_vwarning): New declaration.
726 (demangler_warning): Likewise.
727 * utils.c (struct internal_problem)
728 <user_settable_should_quit>: New field.
729 <user_settable_should_dump_core>: Likewise
730 (internal_error_problem): Add values for above new fields.
731 (internal_warning_problem): Likewise.
732 (demangler_warning_problem): New static global.
733 (demangler_vwarning): New function.
734 (demangler_warning): Likewise.
735 (add_internal_problem_command): Selectively add commands.
736 (_initialize_utils): New internal problem command.
737 * maint.c (maintenance_demangler_warning): New function.
738 (_initialize_maint_cmds): New command.
740 2014-06-18 Tom Tromey <tromey@redhat.com>
742 * f-valprint.c (info_common_command_for_block): Update.
743 * symtab.h (struct general_symbol_info) <common_block>: Now
746 2014-06-18 Tom Tromey <tromey@redhat.com>
748 * symtab.h (struct symtab) <blockvector>: Now const.
749 * ada-lang.c (ada_add_global_exceptions): Update.
750 * buildsym.c (augment_type_symtab): Update.
751 * dwarf2read.c (dw2_lookup_symbol): Update.
752 * jit.c (finalize_symtab): Update.
753 * jv-lang.c (add_class_symtab_symbol): Update.
754 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
756 * objfiles.c (objfile_relocate1): Update.
757 * psymtab.c (lookup_symbol_aux_psymtabs)
758 (maintenance_check_psymtabs): Update.
759 * python/py-symtab.c (stpy_global_block, stpy_static_block):
761 * spu-tdep.c (spu_catch_start): Update.
762 * symmisc.c (dump_symtab_1): Update.
763 * symtab.c (lookup_global_symbol_from_objfile)
764 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
765 (basic_lookup_transparent_type_quick)
766 (basic_lookup_transparent_type, find_pc_sect_symtab)
767 (find_pc_sect_line, search_symbols): Update.
768 * block.c (find_block_in_blockvector): Make "bl" const.
769 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
771 (blockvector_contains_pc): Make "bv" const.
772 (block_for_pc_sect): Update.
773 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
774 (blockvector_contains_pc): Update.
775 * breakpoint.c (resolve_sal_pc): Update.
776 * inline-frame.c (block_starting_point_at): Update.
778 2014-06-18 Tom Tromey <tromey@redhat.com>
780 * completer.c (complete_line): Make "line_buffer" const.
781 * completer.h (complete_line): Update.
783 2014-06-18 Tom Tromey <tromey@redhat.com>
785 * symtab.c (add_macro_name): Remove unneeded cast.
787 2014-06-18 Tom Tromey <tromey@redhat.com>
789 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
790 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
792 2014-06-18 Tom Tromey <tromey@redhat.com>
794 * probe.c (info_probes_for_ops): Make "arg" const.
795 * probe.h (info_probes_for_ops): Update.
797 2014-06-18 Tom Tromey <tromey@redhat.com>
799 * varobj.c (varobj_create): Update.
800 * valops.c (value_of_this): Update.
801 * tracepoint.c (add_local_symbols, scope_info): Update.
802 * symtab.h (struct general_symbol_info) <block>: Now const.
803 * symtab.c (skip_prologue_sal)
804 (default_make_symbol_completion_list_break_on)
805 (skip_prologue_using_sal): Update.
806 * stack.h (iterate_over_block_locals)
807 (iterate_over_block_local_vars): Update.
808 * stack.c (print_frame_args): Update.
809 (iterate_over_block_locals, iterate_over_block_local_vars): Make
811 (get_selected_block): Make return type const.
812 * python/py-frame.c (frapy_block): Update.
813 * python/py-block.c (gdbpy_block_for_pc): Update.
814 * p-exp.y (%union) <bval>: Now const.
815 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
816 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
817 * m2-exp.y (%union) <bval>: Now const.
818 * linespec.c (get_current_search_block): Make return type const.
819 (create_sals_line_offset, find_label_symbols): Update.
820 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
822 (block_starting_point_at): Make "block" const.
823 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
824 (check_exception_resume): Update.
825 * guile/scm-frame.c (gdbscm_frame_block): Update.
826 * guile/scm-block.c (gdbscm_lookup_block): Update.
827 * frame.h (get_frame_block): Update.
828 (get_selected_block): Make return type const.
829 * frame.c (frame_id_inner): Update.
830 * f-valprint.c (info_common_command_for_block)
831 (info_common_command): Update.
832 * dwarf2loc.c (dwarf2_find_location_expression)
833 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
834 (locexpr_describe_location_piece): Update.
835 * c-exp.y (%union) <bval>: Now const.
836 * breakpoint.c (resolve_sal_pc): Update.
837 * blockframe.c (get_frame_block):Make return type const.
838 (get_pc_function_start, get_frame_function, find_pc_sect_function)
839 (block_innermost_frame): Update.
840 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
841 (block_for_pc, block_for_pc_sect): Update.
842 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
844 (block_for_pc_sect, block_for_pc): Make return type const.
845 * ax-gdb.c (gen_expr): Update.
846 * alpha-mdebug-tdep.c (find_proc_desc): Update.
847 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
848 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
849 (ada_read_var_value): Update.
850 * ada-exp.y (struct name_info) <block>: Now const.
852 (block_lookup): Constify.
854 2014-06-18 Gary Benson <gbenson@redhat.com>
856 * nat/i386-dregs.h: New file.
857 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
858 * i386-nat.h (i386-dregs.h): New include.
859 (DR_FIRSTADDR): Now in i386-dregs.h.
860 (DR_LASTADDR): Likewise.
861 (DR_NADDR): Likewise.
862 (DR_STATUS): Likewise.
863 (DR_CONTROL): Likewise.
864 (i386_debug_reg_state): Likewise.
865 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
867 2014-06-18 Don Breazeal <donb@codesourcery.com>
869 * breakpoint.c (set_longjmp_breakpoint): Call
870 momentary_breakpoint_from_master with additional argument.
871 (set_longjmp_breakpoint_for_call_dummy): Call
872 momentary_breakpoint_from_master with additional argument.
873 (set_std_terminate_breakpoint): Call
874 momentary_breakpoint_from_master with additional argument.
875 (momentary_breakpoint_from_master): Add argument to function
876 definition and use it to initialize structure member flag.
877 (clone_momentary_breakpoint): Call
878 momentary_breakpoint_from_master with additional argument.
879 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
880 member flags set in momentary_breakpoint_from_master.
882 2014-06-18 Gary Benson <gbenson@redhat.com>
884 * i386-nat.c (i386_show_dr): Renamed to
885 i386_dr_show and made nonstatic. All uses updated.
886 (i386_length_and_rw_bits): Renamed to
887 i386_dr_length_and_rw_bits and made nonstatic.
889 (i386_insert_aligned_watchpoint): Renamed to
890 i386_dr_insert_aligned_watchpoint and made nonstatic.
892 (i386_remove_aligned_watchpoint): Renamed to
893 i386_dr_remove_aligned_watchpoint and made nonstatic.
895 (i386_update_inferior_debug_regs): Renamed to
896 i386_dr_update_inferior_debug_regs and made nonstatic.
899 2014-06-18 Gary Benson <gbenson@redhat.com>
901 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
902 (i386_dr_low_can_set_control): Likewise.
903 (i386_dr_low_set_addr): Likewise.
904 (i386_dr_low_set_control): Likewise.
905 (i386_dr_low_get_addr): Likewise.
906 (i386_dr_low_get_status): Likewise.
907 (i386_dr_low_get_control): Likewise.
908 (i386_insert_aligned_watchpoint): Use new macros.
909 (i386_update_inferior_debug_regs): Likewise.
910 (i386_stopped_data_address): Likewise.
912 2014-06-18 Gary Benson <gbenson@redhat.com>
914 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
915 New parameter. All uses updated.
917 2014-06-18 Gary Benson <gbenson@redhat.com>
919 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
922 2014-06-18 Gary Benson <gbenson@redhat.com>
924 * i386-nat.c (debug_printf): New macro.
925 (i386_get_debug_register_length): Likewise.
926 (TARGET_HAS_DR_LEN_8): Use above macro.
927 (i386_show_dr): Use debug_printf instead of puts_unfiltered
928 and printf_unfiltered. Use phex to format values.
930 2014-06-18 Gary Benson <gbenson@redhat.com>
932 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
935 2014-06-18 Gary Benson <gbenson@redhat.com>
937 * i386-nat.c: Comment changes.
939 2014-06-18 Gary Benson <gbenson@redhat.com>
941 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
943 2014-06-18 Gary Benson <gbenson@redhat.com>
945 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
946 (i386_insert_aligned_watchpoint): Likewise.
947 (i386_remove_aligned_watchpoint): Likewise.
948 (i386_handle_nonaligned_watchpoint): Likewise.
950 2014-06-18 Gary Benson <gbenson@redhat.com>
952 * i386-nat.c: Whitespace changes.
954 2014-06-17 Samuel Bronson <naesten@gmail.com>
956 * MAINTAINERS: Update Roland McGrath's email address.
957 Thanks to Sergio Durigan Junior for pointing out that he left
958 Red Hat a while ago, and giving me a current address.
960 2014-06-17 Tom Tromey <tromey@redhat.com>
962 * utils.h (savestring): Remove declaration.
964 2014-06-17 Tom Tromey <tromey@redhat.com>
966 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
968 2014-06-16 Keith Seitz <keiths@redhat.com>
971 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
972 to update the varobj if inferior_ptid is null_ptid.
974 2014-06-16 Tom Tromey <tromey@redhat.com>
976 * target.h (struct target_ops) <to_info_proc>: Make parameter
978 (target_info_proc): Update.
979 * target.c (target_info_proc): Make "args" const.
980 * procfs.c (procfs_info_proc): Update.
981 * linux-tdep.c (linux_info_proc): Update.
982 (linux_core_info_proc_mappings): Make "args" const.
983 (linux_core_info_proc): Update.
984 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
985 * gdbarch.c: Rebuild.
986 * gdbarch.h: Rebuild.
987 * corelow.c (core_info_proc): Update.
989 2014-06-16 Tom Tromey <tromey@redhat.com>
991 * target.h (struct target_ops) <to_disconnect>: Make parameter
993 (target_disconnect): Update.
994 * target.c (target_disconnect): Make "args" const.
995 * target-delegates.c: Rebuild.
996 * remote.c (remote_disconnect): Update.
997 * record.h (record_disconnect): Update.
998 * record.c (record_disconnect): Update.
999 * inf-child.c (inf_child_disconnect): Update.
1001 2014-06-16 Tom Tromey <tromey@redhat.com>
1003 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1004 * target.c (debug_to_rcmd, default_rcmd): Update.
1005 * target-delegates.c: Rebuild.
1006 * remote.c (remote_rcmd): Update.
1007 * monitor.c (monitor_rcmd): Update.
1009 2014-06-16 Pedro Alves <palves@redhat.com>
1011 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1012 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1013 have OBJF_SHARED set.
1014 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1015 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1016 instead of OBJF_USERLOADED.
1017 * objfiles.h (OBJF_SHARED): Update comment.
1018 (userloaded_objfile_contains_address_p): Rename to ...
1019 (shared_objfile_contains_address_p): ... this, and update
1021 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1023 (remove_symbol_file_command): Skip objfiles that don't have
1026 2014-06-16 Tom Tromey <tromey@redhat.com>
1028 * minsyms.h (prim_record_minimal_symbol)
1029 (prim_record_minimal_symbol_and_info): Update comments.
1031 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1033 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1034 or --without-guile, according to how GDB was built.
1036 2014-06-13 Tom Tromey <tromey@redhat.com>
1038 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1040 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1042 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1044 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1045 help_list.Pass all_commands, not -1, to help_list.
1046 * cli/cli-dump.c (dump_command, append_command)
1047 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1048 (binary_dump_command, binary_append_command): Pass all_commands,
1049 not -1, to help_list.
1050 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1052 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1054 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1056 * top.c (set_history): Pass all_commands, not -1, to help_list.
1057 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1058 all_commands, not -1, to help_list.
1059 * symfile.c (overlay_command): Pass all_commands, not -1, to
1061 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1063 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1065 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1067 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1068 not -1, to help_list.
1069 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1070 not -1, to help_list.
1071 * maint.c (maintenance_command, maintenance_info_command)
1072 (maintenance_print_command, maintenance_set_cmd): Pass
1073 all_commands, not -1, to help_list.
1074 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1076 * language.c (set_check): Pass all_commands, not -1, to help_list.
1077 * infcmd.c (unset_command): Pass all_commands, not -1, to
1079 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1081 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1083 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1085 * breakpoint.c (save_command): Pass all_commands, not -1, to
1087 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1088 all_commands, not -1, to help_list.
1090 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1092 * regcache.c (struct register_to_invalidate): New structure.
1093 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1095 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1097 2014-06-12 Yao Qi <yao@codesourcery.com>
1099 * varobj.c (varobj_get_num_children): Call
1100 varobj_is_dynamic_p.
1101 (varobj_list_children): Likewise.
1102 (varobj_update): Likewise. Update comments.
1104 2014-06-12 Yao Qi <yao@codesourcery.com>
1106 * varobj.c (varobj_pretty_printed_p): Rename to ...
1107 (varobj_is_dynamic_p): ... this. New function.
1108 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1109 (varobj_is_dynamic_p): Declare.
1110 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1111 (mi_print_value_p, varobj_update_one): Likewise.
1113 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1114 Yao Qi <yao@codesourcery.com>
1116 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1117 (varobj_get_iterator): Wrap up code for pretty-printer by
1118 "#if HAVE_PYTHON" and "#endif".
1119 (update_dynamic_varobj_children): Likewise.
1121 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1122 Yao Qi <yao@codesourcery.com>
1124 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1125 gdb_python_initialized is false. Move some code from varobj.c.
1126 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1127 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1128 (struct varobj_item): Moved to varobj-iter.h".
1129 (varobj_clear_saved_item): New function.
1130 (update_dynamic_varobj_children): Move python-related code to
1132 (free_variable): Call varobj_clear_saved_item and
1135 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1136 Yao Qi <yao@codesourcery.com>
1138 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1139 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1140 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1141 (py-varobj.o): New rule.
1142 * python/py-varobj.c: New file.
1143 * python/python-internal.h (py_varobj_get_iterator): Declare.
1144 * varobj-iter.h: New file.
1145 * varobj.c: Include "varobj-iter.h"
1146 (struct varobj) <child_iter>: Change its type from "PyObject *"
1147 to "struct varobj_iter *".
1148 <saved_item>: Likewise.
1149 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1150 [HAVE_PYTHON] (varobj_get_iterator): New function.
1151 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1152 python-specific code to python/py-varobj.c.
1153 (install_visualizer): Call varobj_iter_delete instead of
1155 * varobj.h (varobj_ensure_python_env): Declare.
1157 2014-06-12 Yao Qi <yao@codesourcery.com>
1159 * varobj.c (struct varobj_item): New structure.
1160 (create_child_with_value): Update declaration.
1161 (varobj_add_child): Replace arguments 'name' and 'value' with
1162 'item'. All callers updated.
1163 (install_dynamic_child): Likewise.
1164 (update_dynamic_varobj_children): Likewise.
1165 (varobj_add_child): Likewise.
1166 (create_child_with_value): Likewise.
1168 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1170 * NEWS: Create a new section for the next release branch.
1171 Rename the section of the current branch, now that it has
1174 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1176 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1177 * version.in: Bump version to 7.8.50.DATE-cvs.
1179 2014-06-11 Pedro Alves <palves@redhat.com>
1182 * ser-mingw.c (net_windows_socket_check_pending): New function.
1183 (net_windows_select_thread): Ignore spurious wakeups. Use
1184 net_windows_socket_check_pending.
1185 (net_windows_wait_handle): Check for pending events with
1186 ioctlsocket, through net_windows_socket_check_pending, instead of
1187 checking the socket's event.
1189 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1191 * python/python-internal.h (gdb_PyObject_GetAttrString)
1192 (gdb_PyObject_HasAttrString): New inline function definitions.
1193 * py-value.c (get_field_flag): Remove the now unnecessary cast to
1194 char * of the second argument to PyObject_GetAttrString.
1196 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1198 * serial.c (serial_write): Fix index of character to be printed
1199 in call to serial_logchar when serial debug traces are enabled.
1201 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1203 * gdbtypes (resolve_dynamic_range): Add function description.
1205 2014-06-09 Pedro Alves <palves@redhat.com>
1207 * linux-nat.c (linux_child_follow_fork): Initialize status with
1208 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
1209 inner block. Only pass the signal to PTRACE_DETACH if in pass
1212 2014-06-09 Gary Benson <gbenson@redhat.com>
1214 * common/signals.c (gdb_signal_from_host): Reorder to separate
1215 the always-available ANSI-standard signals from the signals that
1217 (do_gdb_signal_to_host): Likewise.
1218 * proc-events.c (signal_table): Likewise.
1220 2014-06-08 Hui Zhu <hui@codesourcery.com>
1222 * common/linux-ptrace.c (linux_disable_event_reporting): New
1224 * common/linux-ptrace.h (linux_disable_event_reporting): New
1226 * linux-nat.c (linux_child_follow_fork): Do a single step before
1229 2014-06-07 Keith Seitz <keiths@redhat.com>
1233 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1234 from symbol_matches_domain in symtab.c. All local callers
1235 of symbol_matches_domain updated.
1236 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1237 search STRUCT_DOMAIN.
1238 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1239 independently. standard_lookup will do that automatically.
1240 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1241 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1242 (cp_lookup_symbol_in_namespace): Likewise.
1243 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1244 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1245 may return a STRUCT_DOMAIN match.
1246 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1247 * cp-support.c: Include language.h.
1248 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1250 * psymtab.c (match_partial_symbol): Compare the requested
1251 domain with the symbol's domain directly.
1252 (lookup_partial_symbol): Likewise.
1253 * symtab.c (lookup_symbol_in_language): Explain when/why
1254 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1255 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1256 appropriate languages.
1257 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1258 and moved to ada-lang.c
1259 (lookup_block_symbol): Explain that this function only returns
1260 symbol matching the requested DOMAIN.
1261 Compare the requested domain with the symbol's domain directly.
1262 (iterate_over_symbols): Compare the requested domain with the
1263 symbol's domain directly.
1264 * symtab.h (symbol_matches_domain): Remove.
1266 2014-06-06 Doug Evans <xdje42@gmail.com>
1268 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
1269 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
1270 (gdbscm_guile_version_is_at_least): Declare.
1271 (gdbscm_scm_string_to_int): Declare.
1272 * guile/guile.c (gdbscm_guile_major_version): New global.
1273 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
1274 (guile_datadir): New static global.
1275 (gdbscm_guile_data_directory): New function.
1276 (initialize_scheme_side): Update.
1277 (misc_guile_functions): Add guile-data-directory.
1278 (initialize_gdb_module): Fetch guile version number.
1279 * guile/lib/gdb.scm: Remove call to add-to-load-path.
1280 * guile/lib/gdb/init.scm (%initialize!): Ditto.
1281 * guile/lib/gdb/boot.scm: Use guile-data-directory.
1282 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
1284 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
1285 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
1286 * guile/scm-value.c (gdbscm_value_to_string): Only call
1287 scm_port_conversion_strategy if Guile version >= 2.0.6.
1289 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
1291 * main.c (print_gdb_help): Add -q and --silent.
1293 2014-06-06 Gary Benson <gbenson@redhat.com>
1295 * common/signals.c: Remove preprocessor conditionals for
1296 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
1297 SIGSEGV and SIGTERM.
1298 * proc-events.c: Likewise.
1300 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
1302 * symfile.c (symfile_free_objfile): Remove restriction to
1304 * symfile-mem.c (symbol_file_add_from_memory): Call
1305 add_target_sections_of_objfile.
1307 2014-06-05 Ludovic Courtès <ludo@gnu.org>
1309 * guile/scm-value.c (gdbscm_history_append_x): Use
1310 'vlscm_get_value_smob_arg_unsafe' instead of
1311 'vlscm_scm_to_value'.
1313 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
1316 * utils.c (printchar): Don't escape at all if quoter is NUL.
1317 Update function documentation to clarify effect of parameter
1319 * remote.c (escape_buffer): Pass '\\' as the quoter to
1320 fputstrn_unfiltered.
1321 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
1322 generate the output.
1323 (mi_solib_unloaded): Same.
1325 2014-06-05 Joel Brobecker <brobecker@adacore.com>
1327 * development.sh: Delete.
1328 * Makefile.in (config.status): Adjust dependency on development.sh.
1329 * configure.ac: Adjust development.sh source call.
1330 * configure: Regenerate.
1332 2014-06-04 Doug Evans <xdje42@gmail.com>
1334 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
1335 is_scheme_bkpt, spec.
1336 (bpscm_make_breakpoint_smob): Initialize new members.
1337 (gdbscm_create_breakpoint_x): Split into two ...
1338 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
1339 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
1340 (scheme_function breakpoint_functions): Update.
1341 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
1342 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
1343 register-breakpoint!.
1345 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
1348 * mem-break.c (z_type_supported): Return zero if
1349 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
1351 2014-06-04 Tom Tromey <tromey@redhat.com>
1353 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1354 value_from_contents_and_address_unresolved.
1355 (ada_template_to_fixed_record_type_1): Likewise.
1356 (ada_which_variant_applies): Likewise.
1357 * value.h (value_from_contents_and_address_unresolved): Declare.
1358 * value.c (value_from_contents_and_address_unresolved): New
1360 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
1361 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
1362 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
1364 2014-06-04 Tom Tromey <tromey@redhat.com>
1366 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
1368 2014-06-04 Tom Tromey <tromey@redhat.com>
1370 * procfs.c (procfs_attach): Make "args" const.
1371 * windows-nat.c (windows_attach): Make "args" const.
1372 * nto-procfs.c (procfs_attach): Make "args" const.
1373 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
1374 * go32-nat.c (go32_attach): Make "args" const.
1375 * gnu-nat.c (gnu_attach): Make "args" const.
1376 * darwin-nat.c (darwin_attach): Make "args" const.
1377 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
1378 * linux-nat.c (linux_nat_attach): Make "args" const.
1379 * remote.c (extended_remote_attach_1, extended_remote_attach):
1381 * target.h (struct target_ops) <to_attach>: Make "args" const.
1382 (find_default_attach): Likewise.
1383 * utils.c (parse_pid_to_attach): Make "args" const.
1384 * utils.h (parse_pid_to_attach): Update.
1386 2014-06-04 Tom Tromey <tromey@redhat.com>
1388 * target-delegates.c: Rebuild.
1389 * target.c (default_thread_address_space): New function.
1390 (target_thread_address_space): Simplify.
1391 * target.h (struct target_ops) <to_thread_address_space>: Add
1392 TARGET_DEFAULT_FUNC.
1394 2014-06-04 Doug Evans <xdje42@gmail.com>
1396 * guile/scm-type.c (type_smob): Remove duplicate typedef.
1398 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
1400 * record-btrace.c: Include event-loop.h and inf-loop.h.
1401 (record_btrace_resume_exec_dir)
1402 (record_btrace_async_inferior_event_handler)
1403 (record_btrace_handle_async_inferior_event): New.
1404 (record_btrace_open): Create async event handler.
1405 (record_btrace_close): Delete async event handler.
1406 (record_btrace_resume): Set record_btrace_resume_exec_dir,
1407 Mark async event handler.
1408 (record_btrace_execution_direction): New.
1409 (init_record_btrace_ops): Initialize to_execution_direction.
1411 2014-06-03 Doug Evans <xdje42@gmail.com>
1413 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
1414 (gdbscm_make_parameter): Ditto.
1416 2014-06-03 Doug Evans <dje@google.com>
1418 * exec.c (exec_close_1): Call clear_section_table instead of
1419 resize_section_table.
1420 (clear_section_table): New function.
1421 (resize_section_table): Make static. Rename arg num_added to
1423 * exec.h (clear_section_table): Declare.
1424 (resize_section_table): Delete.
1425 * progspace.c (release_program_space): Call clear_section_table
1426 instead of resize_section_table.
1428 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1430 * NEWS (Python Scripting): Add entry about the new xmethods
1433 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1435 * python/py-xmethods.c: New file.
1436 * python/py-objfile.c (objfile_object): New field 'xmethods'.
1437 (objfpy_dealloc): XDECREF on the new xmethods field.
1438 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
1440 (objfpy_get_xmethods): New function.
1441 (objfile_getset): New entry 'xmethods'.
1442 * python/py-progspace.c (pspace_object): New field 'xmethods'.
1443 (pspy_dealloc): XDECREF on the new xmethods field.
1444 (pspy_new, pspace_to_pspace_object): Initialize xmethods
1446 (pspy_get_xmethods): New function.
1447 (pspace_getset): New entry 'xmethods'.
1448 * python/python-internal.h: Add declarations for new functions.
1449 * python/python.c (_initialize_python): Invoke
1450 gdbpy_initialize_xmethods.
1451 * python/lib/gdb/__init__.py (xmethods): New
1453 * python/lib/gdb/xmethod.py: New file.
1454 * python/lib/gdb/command/xmethods.py: New file.
1456 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1458 * eval.c (evaluate_subexp_standard): Call the xmethod if the
1459 best match method returned by find_overload_match is an xmethod.
1460 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
1461 the best matching operator returned by find_overload_match is an
1463 * valops.c: #include "extension.h".
1464 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
1465 Return void. The list of matching source methods is returned in
1466 "fn_list" and a vector of matching debug method workers is
1467 returned in "xm_worker_vec". Update all callers.
1468 (value_find_oload_method_list): Likewise.
1469 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
1470 non-NULL, then the index of the best matching method in this
1471 vector is returned. Update all callers.
1472 (find_overload_match): Include xmethods while performing overload
1475 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1477 * defs.h (enum lval_type): New enumerator "lval_xcallable".
1478 * extension-priv.h (struct extension_language_ops): Add the
1480 * extension.c (new_xmethod_worker, clone_xmethod_worker,
1481 get_matching_xmethod_workers, get_xmethod_argtypes,
1482 invoke_xmethod, free_xmethod_worker,
1483 free_xmethod_worker_vec): New functions.
1484 * extension.h: #include "common/vec.h".
1485 New function declarations.
1486 (struct xmethod_worker): New struct.
1487 (VEC (xmethod_worker_ptr)): New vector type.
1488 (xmethod_worker_ptr): New typedef.
1489 (xmethod_worker_vec): Likewise.
1490 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
1492 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
1493 (struct builtin_type): New field "xmethod".
1494 * valarith.c (value_ptradd): Assert that the value argument is not
1496 * valops.c (value_must_coerce_to_target): Return 0 for
1497 lval_xcallable values.
1498 * value.c (struct value): New field XM_WORKER in the field
1500 (value_address, value_raw_address): Return 0 for lval_xcallable
1502 (set_value_address): Assert that the value is not an
1504 (value_free): Free the associated xmethod worker when freeing
1505 lval_xcallable values.
1506 (set_value_component_location): Assert that the WHOLE value is not
1508 (value_of_xmethod, call_xmethod): New functions.
1509 * value.h: Declare "struct xmethod_worker".
1510 Declare new functions value_of_xmethod, call_xmethod.
1512 2014-06-03 Joel Brobecker <brobecker@adacore.com>
1513 Pedro Alves <palves@redhat.com>
1515 PR breakpoints/17000
1516 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
1517 New function, extracted from software_breakpoint_inserted_here_p.
1518 (software_breakpoint_inserted_here_p): Replace factored out code
1519 by call to find_non_raw_software_breakpoint_inserted_here.
1520 (bp_target_info_copy_insertion_state): New function.
1521 (bkpt_insert_location): Handle the case of a single-step
1522 breakpoint already inserted at the same address.
1523 (bkpt_remove_location): Handle the case of a single-step
1524 breakpoint still inserted at the same address.
1525 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
1526 breakpoint already inserted at the same address.
1527 (deprecated_remove_raw_breakpoint): Handle the case of a
1528 non-raw breakpoint still inserted at the same address.
1529 (find_single_step_breakpoint): New function, extracted from
1530 single_step_breakpoint_inserted_here_p.
1531 (find_single_step_breakpoint): New function,
1532 factored out from single_step_breakpoint_inserted_here_p.
1533 (single_step_breakpoint_inserted_here_p): Reimplement.
1535 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
1537 Pushed by Joel Brobecker <brobecker@adacore.com>
1538 * source.c (show_substitute_path_command): Fix display of matching
1541 2014-06-03 Gary Benson <gbenson@redhat.com>
1543 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
1545 2014-06-02 Doug Evans <xdje42@gmail.com>
1547 Add parameter support for Guile.
1548 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
1549 (SUBDIR_GUILE_SRCS): Add scm-param.c.
1550 (scm-param.o): New rule.
1551 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
1552 (gdbscm_misc_error): Declare.
1553 (gdbscm_canonicalize_command_name): Declare.
1554 (gdbscm_scm_to_host_string): Declare.
1555 (gdbscm_scm_from_host_string): Declare.
1556 (gdbscm_initialize_parameters): Declare.
1557 * guile/guile.c (initialize_gdb_module): Call
1558 gdbscm_initialize_parameters.
1559 * guile/lib/gdb.scm: Export parameter symbols.
1560 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
1561 cmdscm_canonicalize_name and made public. All callers updated.
1562 * guile/scm-exception.c (gdbscm_misc_error): New function.
1563 * guile/scm-param.c: New file.
1564 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
1565 (gdbscm_scm_to_host_string): New function.
1566 (gdbscm_scm_from_host_string): New function.
1567 * scm-utils.c (gdbscm_gc_dup_argv): New function.
1569 2014-06-02 Doug Evans <xdje42@gmail.com>
1571 Add command support for Guile.
1572 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
1573 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
1574 (scm-cmd.o): New rule.
1575 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
1576 (gdbscm_user_error_p): Declare.
1577 (gdbscm_parse_command_name): Declare.
1578 (gdbscm_valid_command_class_p): Declare.
1579 (gdbscm_initialize_commands): Declare.
1580 * guile/guile.c (initialize_gdb_module): Call
1581 gdbscm_initialize_commands.
1582 * guile/lib/gdb.scm: Export command symbols.
1583 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
1584 (throw-user-error): New function.
1585 * guile/scm-cmd.c: New file.
1586 * guile/scm-exception.c (user_error_symbol): New static global.
1587 (gdbscm_user_error_p): New function.
1588 (gdbscm_initialize_exceptions): Set user_error_symbol.
1589 * scm-utils.c (gdbscm_gc_xstrdup): New function.
1591 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
1593 * top.c (command_loop): Handle comments here...
1594 (command_line_input): ... not here.
1596 2014-06-02 Doug Evans <xdje42@gmail.com>
1598 Add progspace support for Guile.
1599 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
1600 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
1601 (scm-progspace.o): New rule.
1602 * guile/guile-internal.h (pspace_smob): New typedef.
1603 (psscm_pspace_smob_pretty_printers): Declare.
1604 (psscm_pspace_smob_from_pspace): Declare.
1605 (psscm_scm_from_pspace): Declare.
1606 * guile/guile.c (initialize_gdb_module): Call
1607 gdbscm_initialize_pspaces.
1608 * guile/lib/gdb.scm: Export progspace symbols.
1609 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
1611 (append-pretty-printer!): Ditto.
1612 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
1614 * guile/scm-progspace.c: New file.
1616 2014-06-03 Alan Modra <amodra@gmail.com>
1618 * ppc64-tdep.c (ppc64_standard_linkage8): New.
1619 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
1621 2014-06-02 Doug Evans <dje@google.com>
1623 Add support for skeletonless type units.
1624 * dwarf2read.c (struct dwarf2_per_objfile): New member
1625 n_allocated_type_units.
1626 (struct dwarf2_per_objfile) <tu_stats>: New member
1627 nr_all_type_units_reallocs.
1628 (create_signatured_type_table_from_index): Initialize
1629 n_allocated_type_units
1630 (create_all_type_units): Ditto.
1631 (add_type_unit): Move up in file. New arg slot.
1632 All callers updated. Increase space for all_type_units more
1634 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
1635 (lookup_dwo_signatured_type): Handle skeletonless TUs.
1636 (lookup_dwp_signatured_type): Ditto.
1637 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
1638 All callers updated.
1639 (build_type_psymtabs_1): Leave type_unit_groups as
1640 NULL if no TUs present.
1641 (print_tu_stats): New function.
1642 (process_skeletonless_type_unit): New function.
1643 (process_dwo_file_for_skeletonless_type_units): New
1645 (process_skeletonless_type_units): New function.
1646 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
1647 Call print tu_stats if debugging enabled.
1649 2014-06-02 Pedro Alves <palves@redhat.com>
1651 * breakpoint.c (build_target_command_list): Don't build a command
1652 list if we have any duplicate location that isn't a dprintf.
1654 2014-06-02 Pedro Alves <palves@redhat.com>
1656 * breakpoint.c (dprintf_breakpoint_hit): New function.
1657 (initialize_breakpoint_ops): Install it as dprintf's
1658 breakpoint_hit method.
1660 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1662 * source.c (substitute_path_rule_matches): Simplify using
1663 filename_ncmp instead of FILENAME_CMP.
1665 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1667 * source.c (substitute_path_rule_matches): Remove trailing spaces.
1669 2014-06-01 Ludovic Courtès <ludo@gnu.org>
1671 * configure.ac: When Guile is available, check for the
1672 availability of 'scm_new_smob'.
1673 * configure, config.h.in: Regenerate.
1674 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
1677 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1679 * frame.c (struct frame_info): Add stop_string field.
1680 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
1681 (get_prev_frame_always): Old content moved into
1682 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
1683 TRY_CATCH, handle MEMORY_ERROR exceptions.
1684 (frame_stop_reason_string): New function definition.
1685 * frame.h (unwind_stop_reason_to_string): Extend comment to
1686 mention frame_stop_reason_string.
1687 (frame_stop_reason_string): New function declaration.
1688 * stack.c (frame_info): Switch to frame_stop_reason_string.
1689 (backtrace_command_1): Switch to frame_stop_reason_string.
1690 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
1691 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
1692 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
1694 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1696 * frame.c (frame_stop_reason_string): Rename to ...
1697 (unwind_stop_reason_to_string): this.
1698 * frame.h (frame_stop_reason_string): Rename to ...
1699 (unwind_stop_reason_to_string): this.
1700 * stack.c (frame_info): Update call to frame_stop_reason_string.
1701 (backtrace_command_1): Likewise.
1702 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
1703 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
1705 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1707 * frame.c (remove_prev_frame): New function.
1708 (get_prev_frame_if_no_cycle): Create / discard cleanup using
1711 2014-05-29 Pedro Alves <palves@redhat.com>
1713 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
1714 and make it const. When a single-step decays to a continue,
1715 clear 'step', not 'hw_step'. Pass whether the caller wanted
1716 to step to user_visible_resume_ptid, not what we ask the
1719 2014-05-29 Pedro Alves <palves@redhat.com>
1721 * infrun.c (process_event_stop_test, handle_step_into_function)
1722 (handle_step_into_function_backward): Adjust.
1723 Don't set the even thread's stop_step and call stop_waiting before
1724 calling end_stepping_range. Instead do that ...
1725 (end_stepping_range): ... here. Take an ecs pointer parameter.
1727 2014-05-29 Pedro Alves <palves@redhat.com>
1729 * infrun.c (stop_stepping): Rename to ...
1730 (stop_waiting): ... this.
1731 (proceed): Update comment.
1732 (process_event_stop_test, handle_inferior_event)
1733 (handle_signal_stop, handle_step_into_function)
1734 (handle_step_into_function_backward): Update.
1736 2014-05-29 Pedro Alves <palves@redhat.com>
1738 * infcall.c (run_inferior_call): Don't check whether the current
1739 thread is running after the proceed call.
1741 2014-05-29 Pedro Alves <palves@redhat.com>
1742 Tom Tromey <tromey@redhat.com>
1744 * NEWS: Mention "maint set target-async", "set mi-async", and that
1745 background execution commands are now always available.
1746 * target.h (target_async_permitted): Update comment.
1747 * target.c (target_async_permitted, target_async_permitted_1):
1749 (set_target_async_command): Rename to ...
1750 (maint_set_target_async_command): ... this.
1751 (show_target_async_command): Rename to ...
1752 (maint_show_target_async_command): ... this.
1753 (_initialize_target): Adjust.
1754 * infcmd.c (prepare_execution_command): Make extern.
1755 * inferior.h (prepare_execution_command): Declare.
1756 * infrun.c (set_observer_mode): Leave target async alone.
1757 * mi/mi-interp.c (mi_interpreter_init): Install
1758 mi_on_sync_execution_done as sync_execution_done observer.
1759 (mi_on_sync_execution_done): New function.
1760 (mi_execute_command_input_handler): Don't print the prompt if we
1761 just started a synchronous command with an async target.
1762 (mi_on_resume): Check sync_execution before printing prompt.
1763 * mi/mi-main.h (mi_async_p): Declare.
1764 * mi/mi-main.c: Include gdbcmd.h.
1765 (mi_async_p): New function.
1766 (mi_async, mi_async_1): New globals.
1767 (set_mi_async_command, show_mi_async_command, mi_async): New
1769 (exec_continue): Call prepare_execution_command.
1770 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
1771 (mi_execute_async_cli_command): Use mi_async_p.
1772 (_initialize_mi_main): Install "set mi-async". Make
1773 "target-async" a deprecated alias.
1775 2014-05-29 Pedro Alves <palves@redhat.com>
1777 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
1778 (_initialize_cli_interp): Adjust.
1779 * event-loop.c: Include "observer.h".
1780 (start_event_loop): Notify 'command_error' observers instead of
1781 calling display_gdb_prompt. Remove FIXME comment.
1782 * event-top.c (display_gdb_prompt): Remove call into the
1784 * inf-loop.c: Include "observer.h".
1785 (inferior_event_handler): Notify 'command_error' observers instead
1786 of calling display_gdb_prompt.
1787 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
1788 observers instead of calling display_gdb_prompt.
1789 * interps.c (interp_set): Don't call display_gdb_prompt.
1790 (current_interp_display_prompt_p): Delete.
1791 * interps.h (interp_prompt_p): Delete declaration.
1792 (interp_prompt_p_ftype): Delete.
1793 (struct interp_procs) <prompt_proc_p>: Delete field.
1794 (current_interp_display_prompt_p): Delete declaration.
1795 * mi-interp.c (mi_interpreter_prompt_p): Delete.
1796 (_initialize_mi_interp): Adjust.
1797 * tui-interp.c (tui_init): Install 'sync_execution_done' and
1798 'command_error' observers.
1799 (tui_on_sync_execution_done, tui_on_command_error): New
1801 (tui_display_prompt_p): Delete.
1802 (_initialize_tui_interp): Adjust.
1804 2014-05-29 Pedro Alves <palves@redhat.com>
1807 * cli/cli-interp.c: Include infrun.h and observer.h.
1808 (cli_uiout, cli_interp): New globals.
1809 (cli_on_signal_received, cli_on_end_stepping_range)
1810 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
1812 (cli_interpreter_init): Install them as 'end_stepping_range',
1813 'signal_received' 'signal_exited', 'exited' and 'no_history'
1815 (_initialize_cli_interp): Remove cli_interp local.
1816 * infrun.c (handle_inferior_event): Call the several stop reason
1817 observers instead of printing the stop reason directly.
1818 (end_stepping_range): New function.
1819 (print_end_stepping_range_reason, print_signal_exited_reason)
1820 (print_exited_reason, print_signal_received_reason)
1821 (print_no_history_reason): Make static, and add an uiout
1822 parameter. Print to that instead of to CURRENT_UIOUT.
1823 * infrun.h (print_end_stepping_range_reason)
1824 (print_signal_exited_reason, print_exited_reason)
1825 (print_signal_received_reason print_no_history_reason): New
1827 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
1829 <cli_uiout>: New field.
1830 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
1831 uiout for CLI output. Install 'signal_received',
1832 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
1834 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
1835 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
1836 (mi_on_no_history): New functions.
1837 (ui_out_free_cleanup): Delete function.
1838 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
1839 instead use the one already stored in the MI interpreter data.
1840 (mi_ui_out): Adjust.
1841 * tui/tui-interp.c: Include infrun.h and observer.h.
1842 (tui_interp): New global.
1843 (tui_on_signal_received, tui_on_end_stepping_range)
1844 (tui_on_signal_exited, tui_on_exited)
1845 (tui_on_no_history): New functions.
1846 (tui_init): Install them as 'end_stepping_range',
1847 'signal_received' 'signal_exited', 'exited' and 'no_history'
1849 (_initialize_tui_interp): Delete tui_interp local.
1851 2014-05-29 Pedro Alves <palves@redhat.com>
1854 * linux-nat.c (linux_nat_resume_callback): Rename the second
1855 parameter to 'except'. Skip LP if it points to EXCEPT.
1856 (linux_nat_resume): Don't mark the event lwp as not stopped
1857 before resuming sibling lwps. Instead ask
1858 linux_nat_resume_callback to skip the event lwp. Mark it as not
1859 stopped after actually resuming it.
1860 (linux_handle_syscall_trap): Mark the lwp as not stopped after
1862 (wait_lwp): Mark the lwp as stopped here.
1863 (stop_wait_callback): Mark the lwp as not stopped right after
1864 resuming it. Don't mark lwps as stopped here.
1865 (linux_nat_filter_event): Mark the lwp as stopped earlier.
1866 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
1868 2014-05-29 Pedro Alves <palves@redhat.com>
1871 * infrun.c (resume): Determine how much to resume depending on
1872 whether the caller wanted a step, not whether we can hardware step
1873 the target. Mark all threads that we intend to run as running,
1874 unless we're calling an inferior function.
1875 (normal_stop): If the thread is running an infcall, don't finish
1877 * target.c (target_resume): Don't mark threads as running here.
1879 2014-05-28 Joel Brobecker <brobecker@adacore.com>
1881 * serial.c (_initialize_serial): Remove support for
1882 the "set remotebaud" and "show remotebaud" commands.
1883 * NEWS: Add entry documenting the removal of that command.
1885 2014-05-28 Yao Qi <yao@codesourcery.com>
1887 * charset.c: Fix typo in comments.
1889 2014-05-27 Gary Benson <gbenson@redhat.com>
1891 * utils.c (internal_vproblem): Prompt for a bug report.
1893 2014-05-26 Andy Wingo <wingo@igalia.com>
1895 * guile/scm-arch.c (arscm_mark_arch_smob):
1896 * guile/scm-block.c (bkscm_mark_block_smob)
1897 (bkscm_mark_block_syms_progress_smob):
1898 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
1899 * guile/scm-exception.c (exscm_mark_exception_smob):
1900 * guile/scm-frame.c (frscm_mark_frame_smob):
1901 * guile/scm-iterator.c (itscm_mark_iterator_smob):
1902 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
1903 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
1904 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
1905 (ppscm_mark_pretty_printer_worker_smob):
1906 * guile/scm-symbol.c (syscm_mark_symbol_smob):
1907 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
1908 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
1909 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
1911 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
1914 2014-05-26 Andy Wingo <wingo@igalia.com>
1915 Doug Evans <xdje42@gmail.com>
1917 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
1918 empty_base_class. All uses updated.
1919 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
1920 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
1922 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
1923 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
1924 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
1925 (gdbscm_gsmob_has_property_p, add_property_name)
1926 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
1927 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
1928 (gdb-object-has-property?, gdb-object-properties): Remove.
1929 (gdb-object-kind): Renamed from gsmob-kind.
1931 2014-05-26 Andy Wingo <wingo@igalia.com>
1933 * configure.ac (try_guile_versions): Allow building with guile 2.2.
1934 * configure: Regenerate.
1936 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1938 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
1940 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1942 * record-btrace.c (record_btrace_allow_memory_access): Remove.
1943 (replay_memory_access_read_only, replay_memory_access_read_write)
1944 (replay_memory_access_types, replay_memory_access)
1945 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
1946 (cmd_set_record_btrace, cmd_show_record_btrace)
1947 (cmd_show_replay_memory_access): New.
1948 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
1949 (record_btrace_remove_breakpoint): Replace
1950 record_btrace_allow_memory_access with replay_memory_access.
1951 (_initialize_record_btrace): Add commands.
1952 * NEWS: Announce it.
1954 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1956 * aarch64-linux-nat.c (asm/ptrace.h): Include.
1958 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1960 * MAINTAINERS (Write After Approval): Move self back from
1963 2014-05-22 Pedro Alves <palves@redhat.com>
1965 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
1966 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
1967 (disable_randomization, enum exec_direction_kind)
1968 (execution_direction, stop_registers, start_remote)
1969 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
1970 (wait_for_inferior, normal_stop, get_last_target_status)
1971 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
1972 (insert_step_resume_breakpoint_at_sal)
1973 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
1974 (set_step_info, print_stop_event, signal_stop_state)
1975 (signal_print_state, signal_pass_state, signal_stop_update)
1976 (signal_print_update, signal_pass_update)
1977 (update_signals_program_target, clear_exit_convenience_vars)
1978 (displaced_step_dump_bytes, update_observer_mode)
1979 (signal_catch_update, gdb_signal_from_command): Move
1981 * infrun.h: ... to this new file.
1982 * amd64-tdep.c: Include infrun.h.
1983 * annotate.c: Include infrun.h.
1984 * arch-utils.c: Include infrun.h.
1985 * arm-linux-tdep.c: Include infrun.h.
1986 * arm-tdep.c: Include infrun.h.
1987 * break-catch-sig.c: Include infrun.h.
1988 * breakpoint.c: Include infrun.h.
1989 * common/agent.c: Include infrun.h instead of inferior.h.
1990 * corelow.c: Include infrun.h.
1991 * event-top.c: Include infrun.h.
1992 * go32-nat.c: Include infrun.h.
1993 * i386-tdep.c: Include infrun.h.
1994 * inf-loop.c: Include infrun.h.
1995 * infcall.c: Include infrun.h.
1996 * infcmd.c: Include infrun.h.
1997 * infrun.c: Include infrun.h.
1998 * linux-fork.c: Include infrun.h.
1999 * linux-nat.c: Include infrun.h.
2000 * linux-thread-db.c: Include infrun.h.
2001 * monitor.c: Include infrun.h.
2002 * nto-tdep.c: Include infrun.h.
2003 * procfs.c: Include infrun.h.
2004 * record-btrace.c: Include infrun.h.
2005 * record-full.c: Include infrun.h.
2006 * remote-m32r-sdi.c: Include infrun.h.
2007 * remote-mips.c: Include infrun.h.
2008 * remote-notif.c: Include infrun.h.
2009 * remote-sim.c: Include infrun.h.
2010 * remote.c: Include infrun.h.
2011 * reverse.c: Include infrun.h.
2012 * rs6000-tdep.c: Include infrun.h.
2013 * s390-linux-tdep.c: Include infrun.h.
2014 * solib-irix.c: Include infrun.h.
2015 * solib-osf.c: Include infrun.h.
2016 * solib-svr4.c: Include infrun.h.
2017 * target.c: Include infrun.h.
2018 * top.c: Include infrun.h.
2019 * windows-nat.c: Include infrun.h.
2020 * mi/mi-interp.c: Include infrun.h.
2021 * mi/mi-main.c: Include infrun.h.
2022 * python/py-threadevent.c: Include infrun.h.
2024 2014-05-22 Pedro Alves <palves@redhat.com>
2026 * infrun.c (handle_inferior_event): Store the exit code for
2027 --return-child-result here, instead of ...
2028 (print_exited_reason): ... here.
2030 2014-05-21 Pedro Alves <palves@redhat.com>
2033 * gdbthread.h (struct thread_control_state): New field
2035 * infrun.c (follow_fork): Copy the new thread control field to the
2037 (clear_proceed_status_thread): Clear the new thread control field.
2038 (proceed): Set the new thread control field.
2039 * interps.h (command_interp): Declare.
2040 * interps.c (command_interpreter): New global.
2041 (command_interp): New function.
2042 (interp_exec): Set `command_interpreter' while here.
2043 * cli-out.c (cli_uiout_dtor): New function.
2044 (cli_ui_out_impl): Install it.
2045 * mi/mi-interp.c: Include cli-out.h.
2046 (mi_cmd_interpreter_exec): Add comment.
2047 (restore_current_uiout_cleanup): New function.
2048 (ui_out_free_cleanup): New function.
2049 (mi_on_normal_stop): If finishing an execution command started by
2050 a CLI command, or any kind of breakpoint-like event triggered,
2051 print the stop event to the output (CLI) stream.
2052 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2054 2014-05-21 Pedro Alves <palves@redhat.com>
2056 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2057 current source line having changed.
2058 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2059 * infrun.c (normal_stop): Adjust call to
2060 set_current_sal_from_frame.
2061 * source.c (clear_lines_listed_range): New function.
2062 (set_current_source_symtab_and_line, identify_source_line): Clear
2063 the lines listed range.
2064 (line_info): Handle the first "info line" after the current source
2065 line having changed.
2066 * stack.c (print_stack_frame): Remove center handling.
2067 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2070 2014-05-21 Pedro Alves <palves@redhat.com>
2072 * inf-child.c (inf_child_mourn_inferior): New function.
2073 * inf-child.h (inf_child_mourn_inferior): New declaration.
2074 * darwin-nat.c (darwin_mourn_inferior): Use
2075 inf_child_mourn_inferior.
2076 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2077 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2078 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2079 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2080 * windows-nat.c (windows_mourn_inferior): Likewise.
2082 2014-05-21 Doug Evans <xdje42@gmail.com>
2084 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
2086 2014-05-21 Doug Evans <xdje42@gmail.com>
2088 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
2089 (gdbscm_out_of_range_error): Ditto.
2090 (gdbscm_memory_error): Ditto.
2091 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2092 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
2093 (gdbscm_out_of_range_error): Update.
2094 (gdbscm_memory_error): Update.
2095 (gdbscm_scm_to_target_string_unsafe): Delete.
2097 2014-05-21 Pedro Alves <palves@redhat.com>
2099 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2101 (inf_child_open_target): New function.
2102 (inf_child_open): Use inf_child_open_target to push the target
2103 instead of erroring out.
2104 (inf_child_disconnect, inf_child_close)
2105 (inf_child_maybe_unpush_target): New functions.
2106 (inf_child_target): Install inf_child_disconnect and
2107 inf_child_close. Store a pointer to the returned object.
2108 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2110 * target.c (auto_connect_native_target): New global.
2111 (show_default_run_target): New function.
2112 (find_default_run_target): Return NULL if automatically connecting
2113 to the native target is disabled.
2114 (_initialize_target): Install set/show auto-connect-native-target.
2115 * NEWS: Mention "set auto-connect-native-target", and "target
2117 * linux-nat.c (super_close): New global.
2118 (linux_nat_close): Call super_close.
2119 (linux_nat_add_target): Store a pointer to the base class's
2121 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2122 inf_child_maybe_unpush.
2123 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2125 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2126 the inferior. Use inf_child_maybe_unpush_target.
2127 (inf_ttrace_attach): Don't push the target if it is already
2129 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2130 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2131 after mourning the inferior. Use inf_child_maybe_unpush_target.
2132 (darwin_attach_pid): Don't push the target if it is already
2134 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2135 mourning the inferior. Use inf_child_maybe_unpush_target.
2136 (gnu_detach): Use inf_child_maybe_unpush_target.
2137 * go32-nat.c (go32_create_inferior): Don't push the target if it
2139 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2140 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2141 (procfs_open): Rename to ...
2142 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2143 comments. Can target_preopen before changing node. Call
2144 inf_child_open_target to push the target explicitly.
2145 (procfs_attach): Don't push the target if it is already pushed.
2146 (procfs_detach): Use inf_child_maybe_unpush_target.
2147 (procfs_create_inferior): Don't push the target if it is already
2149 (nto_native_ops): New global.
2150 (procfs_open): Reimplement.
2151 (procfs_native_open): New function.
2152 (init_procfs_targets): Install procfs_native_open as to_open of
2153 "target native". Store a pointer to the "native" target in
2155 * procfs.c (procfs_attach): Don't push the target if it is already
2157 (procfs_detach): Use inf_child_maybe_unpush_target.
2158 (procfs_mourn_inferior): Only unpush the target after mourning the
2159 inferior. Use inf_child_maybe_unpush_target.
2160 (procfs_init_inferior): Don't push the target if it is already
2162 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2163 if it is already pushed.
2165 2014-05-21 Pedro Alves <palves@redhat.com>
2167 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2168 and "procfs" targets are now called "native" instead.
2170 2014-05-21 Pedro Alves <palves@redhat.com>
2172 * go32-nat.c (go32_open): Delete.
2173 (go32_target): Don't override the to_open method.
2175 2014-05-21 Pedro Alves <palves@redhat.com>
2177 * nto-procfs.c (procfs_can_run): New function.
2178 (nto_procfs_ops): New global.
2179 (init_procfs_targets): New, based on procfs_target. Install
2180 "target native" in addition to "target procfs".
2181 (_initialize_procfs): Call init_procfs_targets instead of adding
2184 2014-05-21 Pedro Alves <palves@redhat.com>
2186 * windows-nat.c (windows_target): Don't override to_shortname,
2187 to_longname or to_doc.
2189 2014-05-21 Pedro Alves <palves@redhat.com>
2191 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2194 2014-05-21 Pedro Alves <palves@redhat.com>
2196 * darwin-nat.c (_initialize_darwin_inferior): Don't override
2197 to_shortname, to_longname or to_doc.
2199 2014-05-21 Pedro Alves <palves@redhat.com>
2201 * go32-nat.c (go32_target): Don't override to_shortname,
2202 to_longname or to_doc.
2204 2014-05-21 Pedro Alves <palves@redhat.com>
2206 * inf-child.c (inf_child_open): Remove mention of "child".
2207 (inf_child_target): Rename target to "native" instead of "child".
2209 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2211 * Makefile.in (SFILES): Delete "regset.c".
2212 (COMMON_OBS): Delete "regset.o".
2214 * regset.h (regset_alloc): Delete prototype.
2216 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2218 * sparc-linux-tdep.c (sparc32_linux_gregset)
2219 (sparc32_linux_fpregset): New static regset structures.
2220 (sparc32_linux_init_abi): Drop dynamic regset allocations.
2221 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
2223 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
2224 (sparc64_linux_fpregset): New static regset structures.
2225 (sparc64_linux_init_abi): Drop dynamic regset allocations.
2226 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
2227 New static regset structures.
2228 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
2229 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
2230 New static regset structures.
2231 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
2232 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
2233 New static regset structures.
2234 (sparc64obsd_init_abi): Drop dynamic regset allocations.
2235 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
2236 New static regset structures.
2237 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
2239 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2241 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
2242 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
2243 register maps ("regmaps") from "*regset" to "*regmap". Do this
2244 for all regmap types and variables.
2245 * sparc-linux-tdep.c (sparc32_linux_step_trap)
2246 (sparc32_linux_supply_core_gregset)
2247 (sparc32_linux_collect_core_gregset)
2248 (sparc32_linux_supply_core_fpregset)
2249 (sparc32_linux_collect_core_fpregset): Likewise.
2250 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
2251 (sparc_gregmap, sparc_fpregmap): ... these.
2252 (sparc_supply_gregset, sparc_collect_gregset)
2253 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2254 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
2255 (_initialize_sparc_nat): Rename regmaps.
2256 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
2257 (sparc_gregmap, sparc_fpregmap): ... these.
2258 (sparc_supply_gregset, sparc_collect_gregset)
2259 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2260 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
2262 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
2263 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
2265 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
2267 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
2268 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
2269 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
2271 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2272 (sparc32_bsd_fpregset): Rename to...
2273 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2274 (sparc32_bsd_fpregmap): ... these.
2275 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
2276 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2277 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
2278 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
2279 (struct sparc_gregmap, struct sparc_fpregmap)
2280 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2281 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
2282 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
2283 (sparc32_supply_regset, sparc32_collect_gregset)
2284 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
2286 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
2287 (sparc64_linux_ptrace_gregmap): ... this.
2288 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
2289 (_initialize_sparc64_linux_nat): Rename regmaps.
2290 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
2291 (sparc64_linux_core_gregmap): ... this.
2292 (sparc64_linux_supply_core_gregset)
2293 (sparc64_linux_collect_core_gregset)
2294 (sparc64_linux_supply_core_fpregset)
2295 (sparc64_linux_collect_core_fpregset): Rename regmaps.
2296 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
2297 (sparc64_sol2_fpregset): Rename to...
2298 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
2299 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2300 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
2302 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
2303 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
2304 (sparc64_bsd_fpregset): Rename to...
2305 (struct sparc_gregmap, sparc64_sol2_gregmap)
2306 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
2307 (sparc64_bsd_fpregmap): ... these.
2308 (sparc64_supply_gregset, sparc64_collect_gregset)
2309 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
2311 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
2312 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
2313 (sparc64fbsd_gregmap): ... this.
2314 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
2315 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
2317 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
2318 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2319 (sparc64nbsd_collect_fpregset): Likewise.
2320 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
2321 (sparc64nbsd_gregmap): ... this.
2322 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
2324 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
2325 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
2326 (sparc64obsd_gregmap): ... this.
2327 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
2329 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
2330 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
2331 (sparc32nbsd_gregmap): ... this.
2332 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
2335 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2337 * score-tdep.c (score7_linux_gregset): New static regset
2339 (score7_linux_regset_from_core_section): Remove dynamic regset
2341 (score_gdbarch_init): Drop allocation of tdep structure.
2342 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
2344 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2346 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
2348 (am33_regset_from_core_section): Remove dynamic regset
2351 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2353 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
2354 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
2356 (mips_linux_regset_from_core_section): Remove dynamic regset
2358 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2359 'gregset64', 'fpregset', and 'fpregset64'.
2360 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
2361 deleted tdep fields.
2363 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2365 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
2367 (amd64_regset_from_core_section): Remove dynamic regset
2369 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
2371 (amd64obsd_regset_from_core_section): Remove dynamic regset
2373 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2375 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
2376 x86-common regset supply function.
2377 * i386-tdep.c (i386_collect_gregset): Make static.
2378 (i386_gregset): New global regset structure.
2379 (i386_fpregset, i386_xstateregset): New static regset structures.
2380 (i386_regset_from_core_section): Remove dynamic regset
2382 (i386_gdbarch_init): Remove initialization of tdep fields
2383 'gregset', 'fpregset', and 'xstateregset'.
2384 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2385 'fpregset', and 'xstateregset'.
2386 (i386_collect_gregset): Remove prototype.
2387 (i386_gregset): New declaration.
2388 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
2390 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
2393 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2395 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
2396 (arm_linux_vfpregset): New static regset structures.
2397 (arm_linux_regset_from_core_section): Remove dynamic allocation of
2399 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
2400 and 'vfpregset' fields.
2402 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2404 * aarch64-linux-tdep.c (aarch64_linux_gregset)
2405 (aarch64_linux_fpregset): New static regset structures.
2406 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
2407 of regset structures.
2408 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
2411 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2413 * regset.h (struct regset): Remove gdbarch field.
2414 * regset.c (regset_alloc): Drop initialization of gdbarch field.
2415 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2416 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
2418 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
2419 (ppc32_linux_fpregset, ppc32_linux_vrregset)
2420 (ppc32_linux_vsxregset): Likewise.
2421 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
2422 via the regcache instead of the regset.
2423 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
2424 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
2425 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
2426 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
2429 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2431 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
2432 Constify structures.
2433 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
2434 (alphanbsd_aout_gregset): Likewise.
2435 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
2436 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
2438 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
2439 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
2441 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
2442 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
2443 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
2444 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
2445 * m88k-tdep.c (m88k_gregset): Likewise.
2446 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
2447 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
2448 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2449 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
2450 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2451 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2452 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2453 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2454 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
2456 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
2457 * sh-tdep.h (sh_corefile_gregset): Likewise.
2458 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
2459 * vax-tdep.c (vax_gregset): Likewise.
2461 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2463 Fix TLS access for -static -pthread.
2464 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
2465 (try_thread_db_load_1): Initialize it.
2466 (thread_db_get_thread_local_address): Call it if LM is zero.
2467 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
2468 * target.h (struct target_ops) (to_get_thread_local_address): Add
2469 load_module_addr comment.
2471 2014-05-21 Pedro Alves <palves@redhat.com>
2473 * dcache.c (dcache_read_memory_partial): If reading the cache line
2474 fails, fallback to reading just the memory the caller wanted.
2476 2014-05-20 Doug Evans <dje@google.com>
2478 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
2479 instead of get_current_arch.
2481 2014-05-20 Pedro Alves <palves@redhat.com>
2483 * NEWS: Mention that compare-sections now works with all targets.
2485 * remote.c (PACKET_qCRC): New enum value.
2486 (remote_verify_memory): Don't send qCRC if the target has no
2487 execution. Use packet_support/packet_ok. If the target doesn't
2488 support the qCRC packet, fallback to a deep memory copy.
2489 (compare_sections_command): Say "target image" instead of "remote
2491 (_initialize_remote): Add PACKET_qCRC to the list of config
2492 packets that have no associated command. Extend comment.
2493 * target.c (simple_verify_memory, default_verify_memory): New
2495 * target.h (struct target_ops) <to_verify_memory>: Default to
2496 default_verify_memory.
2497 (simple_verify_memory): New declaration.
2498 * target-delegates.c: Regenerate.
2500 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
2502 * record-btrace.c (record_btrace_step_thread): Check for empty history.
2504 2014-05-20 Hui Zhu <hui@codesourcery.com>
2505 Yao Qi <yao@codesourcery.com>
2508 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
2509 and change address of sp and pc.
2511 2014-05-19 Tom Tromey <tromey@redhat.com>
2513 * gdbtypes.c (rank_function): Use XNEWVEC.
2514 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
2516 2014-05-19 Doug Evans <dje@google.com>
2518 * dwarf2read.c (build_type_psymtabs_1): Renamed from
2519 build_type_unit_groups and moved closer to only caller. Remove
2520 arguments. All references updated. Remove outdated .gdb_index
2522 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
2523 build_type_psymtabs_1.
2525 2014-05-19 Doug Evans <dje@google.com>
2527 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
2528 n_type_unit_groups, all_type_unit_groups. All uses removed.
2529 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
2530 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
2531 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
2532 (add_type_unit_group_to_table): Delete.
2534 2014-05-19 Doug Evans <dje@google.com>
2536 * eval.c (evaluate_subexp_standard): Add some comments.
2538 2014-05-17 Doug Evans <xdje42@gmail.com>
2540 * progspace.c (remove_program_space): Delete, unused.
2541 * progspace.h (remove_program_space): Ditto.
2543 2014-05-17 Doug Evans <xdje42@gmail.com>
2545 * inferior.c (prune_inferiors): Fix comment.
2546 (remove_inferior_command): Call prune_program_spaces.
2548 2014-05-16 Doug Evans <dje@google.com>
2550 New command line option -D.
2552 * main.c (set_gdb_data_directory): New function.
2553 (captured_main): Recognize -D. Flag error for --data-directory "".
2554 Call set_gdb_data_directory.
2555 (print_gdb_help): Print --data-directory, -D.
2556 * main.h (set_gdb_data_directory): Declare.
2557 * top.c (staged_gdb_datadir): New static global.
2558 (set_gdb_datadir): Call set_gdb_data_directory
2559 (show_gdb_datadir): New function.
2560 (init_main): Update init of data-directory parameter.
2562 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
2564 Import the "dirfd" gnulib module.
2565 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
2566 * gnulib/aclocal.m4: Update.
2567 * gnulib/config.in: Update.
2568 * gnulib/configure: Update.
2569 * gnulib/import/Makefile.am: Update.
2570 * gnulib/import/Makefile.in: Update.
2571 * gnulib/import/dirfd.c: New.
2572 * gnulib/import/m4/dirfd.m4: New.
2573 * gnulib/import/m4/gnulib-cache.m4: Update.
2574 * gnulib/import/m4/gnulib-comp.m4: Update.
2576 2014-05-16 Pierre Muller <muller@sourceware.org>
2577 Yao Qi <yao@codesourcery.com>
2579 * valprint.c (print_wchar): Move the code on checking whether
2580 W is a printable wide char to the default branch of switch
2581 statement below. Call wchar_printable instead of gdb_iswprint.
2583 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
2585 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
2586 ldr.w and ldrd instructions.
2588 2014-05-15 Doug Evans <dje@google.com>
2590 * dwarf2read.c (read_structure_type): Delete outdated comments.
2592 2014-05-14 Tom Tromey <tromey@redhat.com>
2594 * macrocmd.c (print_macro_definition): Reindent.
2596 2014-05-13 Doug Evans <xdje42@gmail.com>
2598 * python/py-cmd.c (cmdpy_completer): Add comment.
2599 (completers): Make const.
2601 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
2603 * infrun.c (resume): Remove should_resume (unused). Move up
2604 declaration of resume_ptid.
2606 2014-05-13 Tom Tromey <tromey@redhat.com>
2608 * language.h (unop_type_check): Remove.
2609 (binop_type_check): Don't declare.
2611 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
2613 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
2614 call to regcache_raw_collect.
2616 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2618 * mi/mi-console.c (mi_console_raw_packet): Use the value from
2619 mi_console->quote as the quoting character.
2621 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2623 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
2625 2014-04-29 Tom Tromey <tromey@redhat.com>
2627 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
2628 "show debug varobj".
2630 2014-05-07 Kyle McMartin <kyle@redhat.com>
2632 Pushed by Joel Brobecker <brobecker@adacore.com>.
2633 * aarch64-tdep.c (aarch64_software_single_step): New function.
2634 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
2635 with aarch64_software_single_step.
2637 2014-05-05 Joel Brobecker <brobecker@adacore.com>
2641 2014-05-05 Keith Seitz <keiths@redhat.com>
2643 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
2644 variable or history value is successfully parsed.
2646 2014-05-05 Yao Qi <yao@codesourcery.com>
2647 Pedro Alves <palves@redhat.com>
2649 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
2650 address of blocks that intersects the requested range. Trim
2651 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
2653 * ctf.c (ctf_xfer_partial): Likewise.
2655 2014-05-05 Yao Qi <yao@codesourcery.com>
2657 * printcmd.c (display_command): Remove the check to
2658 target_has_execution.
2660 2014-05-03 Mark Kettenis <kettenis@gnu.org>
2662 * ppcobsd-nat.c: Include "obsd-nat.h".
2663 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
2665 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2667 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2669 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
2670 and 16-bit signed and unsigned arguments. Update comment.
2671 (stap_parse_probe_arguments): Extend code to handle such
2672 arguments. Use warning instead of complaint to notify about
2673 unrecognized bitness.
2675 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2677 PR breakpoints/16889
2678 * stap-probe.c (stap_parse_probe_arguments): Simplify
2679 check for non-prefixed probes (i.e., probes whose
2680 arguments do not start with "N@"). Always set the
2681 argument type to a sane value.
2683 2014-05-01 David Taylor <dtaylor@emc.com>
2685 * remote.c (compare_sections_command): Add -r option to compare
2686 all loadable read-only sections.
2688 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
2690 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
2691 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
2693 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
2694 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
2695 Remove unused CORE_ADDR argument. Update all callers.
2697 2014-04-29 Pedro Alves <palves@redhat.com>
2699 * remote.c (struct packet_config) <detect>: Extend comment.
2700 (add_packet_config_cmd): Don't set the config's detect or support
2702 (init_all_packet_configs): Also initialize the config's 'detect'
2704 (reset_all_packet_configs_support): New function.
2705 (remote_open_1): Call reset_all_packet_configs_support instead of
2706 init_all_packet_configs.
2707 (_initialize_remote): Initialize all packet configs. Assert that
2708 all packets have an associated command, except a few known
2711 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2713 * dwarf2read.c (read_subrange_type): Handle dynamic
2714 DW_AT_lower_bound attributes.
2716 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2718 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
2719 dynamic bounds before computing its upper bound.
2720 (ada_discrete_type_low_bound): Same as above with the lower bound.
2722 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2724 * dwarf2read.c (is_dynamic_type): Return true for dynamic
2725 range types. Adjust the array handling implementation to
2726 take advantage of this change.
2727 (resolve_dynamic_range): New function, mostly extracted from
2728 resolve_dynamic_bounds.
2729 (resolve_dynamic_array): New function, mostly extracted from
2730 resolve_dynamic_bounds.
2731 (resolve_dynamic_bounds): Delete.
2732 (resolve_dynamic_type): Reimplement. Add handling of
2733 TYPE_CODE_RANGE types.
2735 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2737 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
2738 handling of parallel ___XA types.
2740 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2742 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
2743 unnecessary second call to static_unwrap_type.
2745 2014-04-27 Hui Zhu <hui@codesourcery.com>
2747 * stack.c (print_frame_info): Call do_gdb_disassembly with
2748 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
2750 2014-04-26 Doug Evans <xdje42@gmail.com>
2752 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
2754 2014-04-25 Pedro Alves <palves@redhat.com>
2757 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
2758 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
2759 and newline from built string.
2760 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
2761 (linux_ptrace_attach_fail_reason): ... this.
2762 * linux-nat.c (linux_nat_attach): Adjust to use
2763 linux_ptrace_attach_fail_reason.
2765 2014-04-25 Pedro Alves <palves@redhat.com>
2767 * remote.c (struct remote_state): Remove multi_process_aware,
2768 non_stop_aware, cond_tracepoints, cond_breakpoints,
2769 breakpoint_commands, fast_tracepoints, static_tracepoints,
2770 install_in_trace, disconnected_tracing,
2771 enable_disable_tracepoints, string_tracing, and
2772 augmented_libraries_svr4_read fields.
2773 (remote_multi_process_p): Move further below in the file.
2774 (struct packet_config): Add comments.
2775 (update_packet_config): Delete function.
2776 (show_packet_config_cmd): Use packet_config_support.
2777 (add_packet_config_cmd): Use NULL as set callback.
2778 (packet_ok): "set remote foo-packet"-style commands no longer
2779 change config->supported -- adjust.
2780 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
2781 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
2782 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
2783 (PACKET_QNonStop, PACKET_multiprocess_feature)
2784 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
2785 (PACKET_DisconnectedTracing_feature)
2786 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
2787 (set_remote_protocol_packet_cmd): Delete function.
2788 (packet_config_support, packet_support): New functions.
2789 (set_remote_protocol_Z_packet_cmd): Don't call
2790 update_packet_config.
2791 (remote_query_attached, remote_pass_signals)
2792 (remote_program_signals, remote_threads_info)
2793 (remote_threads_extra_info, remote_start_remote): Use
2795 (remote_start_remote): Use packet_config_support and
2797 (init_all_packet_configs): Set all packets to unknown support,
2798 instead of calling update_packet_config.
2799 (remote_check_symbols): Use packet_support.
2800 (remote_supported_packet): Unconditionally set the packet config's
2802 (remote_multi_process_feature, remote_non_stop_feature)
2803 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
2804 (remote_breakpoint_commands_feature)
2805 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
2806 (remote_install_in_trace_feature)
2807 (remote_disconnected_tracing_feature)
2808 (remote_enable_disable_tracepoint_feature)
2809 (remote_string_tracing_feature)
2810 (remote_augmented_libraries_svr4_read_feature): Delete functions.
2811 (remote_protocol_features): Adjust to use remote_supported_packet
2812 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
2813 "ConditionalTracepoints", "ConditionalBreakpoints",
2814 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
2815 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
2816 "EnableDisableTracepoints", and "tracenz".
2817 (remote_query_supported): Use packet_support.
2818 (remote_open_1): Adjust.
2819 (extended_remote_attach_1): Use packet_support. Switch on the
2820 result of packet_ok instead of checking whether the packet ended
2822 (remote_vcont_resume): Use packet_support.
2823 (remote_resume, remote_stop_ns, fetch_register_using_p)
2824 (remote_prepare_to_store, store_register_using_P)
2825 (check_binary_download, remote_write_bytes): Use packet_support.
2826 (remote_vkill): Use packet_support. Switch on the result of
2827 packet_ok instead of checking whether the packet ended up
2829 (extended_remote_supports_disable_randomization): Use
2831 (extended_remote_run): Switch on the result of packet_ok instead
2832 of checking whether the packet ended up disabled.
2833 (remote_insert_breakpoint, remote_remove_breakpoint)
2834 (remote_insert_watchpoint, remote_remove_watchpoint)
2835 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
2837 (remote_search_memory): Use packet_config_support.
2838 (remote_get_thread_local_address, remote_get_tib_address)
2839 (remote_hostio_send_command, remote_can_execute_reverse): Use
2841 (remote_supports_cond_tracepoints)
2842 (remote_supports_cond_breakpoints)
2843 (remote_supports_fast_tracepoints)
2844 (remote_supports_static_tracepoints)
2845 (remote_supports_install_in_trace)
2846 (remote_supports_enable_disable_tracepoint)
2847 (remote_supports_string_tracing)
2848 (remote_can_run_breakpoint_commands): Rewrite, checking whether
2849 the packet config says the feature is enabled or disabled.
2850 (remote_download_tracepoint, remote_trace_set_readonly_regions)
2851 (remote_get_trace_status): Use packet_support.
2852 (remote_set_disconnected_tracing): Adjust to check whether the
2853 feature is enabled with packet_support.
2854 (remote_set_trace_buffer_size, remote_use_agent)
2855 (remote_can_use_agent, remote_supports_btrace): Use
2857 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
2858 Use packet_config_support.
2859 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
2860 the packet config says the feature is enabled or disabled.
2861 (set_range_stepping): Use packet_support.
2863 2014-04-25 Tom Tromey <tromey@redhat.com>
2865 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
2868 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
2870 * NEWS: Mention support for C99 variable length arrays.
2872 2014-04-24 Joel Brobecker <brobecker@adacore.com>
2874 * ada-lang.c (standard_exc): Expand introductory comment.
2876 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
2877 Walfred Tedeschi <walfred.tedeschi@intel.com>
2879 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
2881 (amd64_linux_read_description): Add code to handle AVX512 xstate
2882 mask and return respective tdesc.
2883 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
2884 and features/i386/x32-avx512-linux.c.
2885 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
2886 (amd64_linux_core_read_description): Add code to handle AVX512
2887 xstate mask and return respective tdesc.
2888 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
2889 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
2891 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
2892 (tdesc_amd64_avx512_linux): New prototype.
2893 (tdesc_x32_avx512_linux): Likewise.
2894 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
2895 features/i386/x32-avx512.c.
2896 (amd64_ymm_avx512_names): New register names for pseudo
2898 (amd64_ymmh_avx512_names): New register names for raw registers
2900 (amd64_k_names): New register names for K registers.
2901 (amd64_zmmh_names): New register names for ZMM raw registers.
2902 (amd64_zmm_names): New registers names for ZMM pseudo registers.
2903 (amd64_xmm_avx512_names): New register names for XMM16-31
2905 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
2907 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
2908 if feature is present.
2909 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
2910 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
2911 (AMD64_NUM_REGS): Adjust to new number of registers.
2912 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
2913 registers supplied via XSTATE by AVX512 registers.
2914 (i386_linux_read_description): Add case for AVX512.
2915 * i386-linux-tdep.c: Include i386-avx512-linux.c.
2916 (i386_linux_gregset_reg_offset): Add AVX512 registers.
2917 (i386_linux_core_read_description): Add case for AVX512.
2918 (i386_linux_init_abi): Install supported register note section
2920 (_initialize_i386_linux_tdep): Add call to tdesc init function for
2922 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
2923 registers to be number of zmm7h + 1.
2924 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
2925 * i386-tdep.c: Include features/i386/i386-avx512.c.
2926 (i386_zmm_names): Add ZMM pseudo register names array.
2927 (i386_zmmh_names): Add ZMM raw register names array.
2928 (i386_k_names): Add K raw register names array.
2929 (num_lower_zmm_regs): Add constant for the number of lower ZMM
2930 registers. AVX512 has 16 more ZMM registers than there are YMM
2932 (i386_zmmh_regnum_p): Add function to look up register number of
2934 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
2935 (i386_k_regnum_p): Likewise for K raw registers.
2936 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
2937 registers added by AVX512.
2938 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
2939 registers added by AVX512.
2940 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
2942 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
2943 (i386_pseudo_register_name): Add ZMM pseudo registers.
2944 (i386_zmm_type): Construct and return vector registers type for ZMM
2946 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
2947 ZMM0-31 pseudo registers and K registers.
2948 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
2949 and YMM16-31 registers from register cache.
2950 (i386_pseudo_register_write): Add code to write K, ZMM and
2952 (i386_register_reggroup_p): Add code to include/exclude AVX512
2953 registers in/from respective register groups.
2954 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
2955 registers if feature is present in xcr0.
2956 (i386_gdbarch_init): Add code to initialize AVX512 feature
2957 variables in tdep structure, wire in pseudo registers and call
2958 initialize_tdesc_i386_avx512.
2959 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
2961 (i386_regnum): Add AVX512 registers.
2962 (I386_SSE_NUM_REGS): New define for number of SSE registers.
2963 (I386_AVX_NUM_REGS): Likewise for AVX registers.
2964 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
2965 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
2967 (i386_xmm_avx512_regnum_p): New prototype for register look up.
2968 (i386_ymm_avx512_regnum_p): Likewise.
2969 (i386_k_regnum_p): Likewise.
2970 (i386_zmm_regnum_p): Likewise.
2971 (i386_zmmh_regnum_p): Likewise.
2972 * i387-tdep.c : Update year in copyright notice.
2973 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
2975 (XSAVE_YMM_AVX512_ADDR): New macro.
2976 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
2978 (XSAVE_XMM_AVX512_ADDR): New macro.
2979 (xsave_avx512_k_offset): New table for K register offsets in
2981 (XSAVE_AVX512_K_ADDR): New macro.
2982 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
2984 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
2985 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
2987 (i387_collect_xsave): Add code to collect AVX512 registers from
2989 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
2990 of XMM16-31 registers.
2991 (I387_NUM_K_REGS): New define for number of K registers.
2992 (I387_K0_REGNUM): New define for K0 register number.
2993 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
2994 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
2995 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
2997 (I387_YMM16H_REGNUM): New define for YMM16H register number.
2998 (I387_XMM16_REGNUM): New define for XMM16 register number.
2999 (I387_YMM0_REGNUM): New define for YMM0 register number.
3000 (I387_KEND_REGNUM): New define for last K register number.
3001 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3002 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3004 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3006 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3008 * features/Makefile: Add AVX512 related files.
3009 * features/i386/32bit-avx512.xml: New file.
3010 * features/i386/64bit-avx512.xml: Likewise.
3011 * features/i386/amd64-avx512-linux.c: Likewise.
3012 * features/i386/amd64-avx512-linux.xml: Likewise.
3013 * features/i386/amd64-avx512.c: Likewise.
3014 * features/i386/amd64-avx512.xml: Likewise.
3015 * features/i386/i386-avx512-linux.c: Likewise.
3016 * features/i386/i386-avx512-linux.xml: Likewise.
3017 * features/i386/i386-avx512.c: Likewise.
3018 * features/i386/i386-avx512.xml: Likewise.
3019 * features/i386/x32-avx512-linux.c: Likewise.
3020 * features/i386/x32-avx512-linux.xml: Likewise.
3021 * features/i386/x32-avx512.c: Likewise.
3022 * features/i386/x32-avx512.xml: Likewise.
3023 * regformats/i386/amd64-avx512-linux.dat: New file.
3024 * regformats/i386/amd64-avx512.dat: Likewise.
3025 * regformats/i386/i386-avx512-linux.dat: Likewise.
3026 * regformats/i386/i386-avx512.dat: Likewise.
3027 * regformats/i386/x32-avx512-linux.dat: Likewise.
3028 * regformats/i386/x32-avx512.dat: Likewise.
3029 * NEWS: Add note about new support for AVX512.
3032 2014-04-23 Pedro Alves <palves@redhat.com>
3034 * breakpoint.c (insert_bp_location): Tolerate errors if the
3035 breakpoint is set in a user-loaded objfile.
3036 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3037 location is marked shlib_disabled. If the breakpoint is set in a
3038 user-loaded objfile is a GDB-side memory breakpoint, validate it
3039 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3040 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3042 * mem-break.c (memory_validate_breakpoint): New function.
3043 * objfiles.c (userloaded_objfile_contains_address_p): New
3045 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3046 * target.h (memory_validate_breakpoint): New declaration.
3048 2014-04-23 Pedro Alves <palves@redhat.com>
3050 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3051 the breakpoint is set in a shared library, only suppress
3052 errors for software breakpoints, not hardware breakpoints.
3054 2014-04-22 Pedro Alves <palves@redhat.com>
3056 * infrun.c (schedlock_applies): New function, factored out from
3057 find_thread_needs_step_over.
3058 (find_thread_needs_step_over): Use it.
3059 (switch_back_to_stepped_thread): Always clear trap_expected if the
3060 step over is finished. Return early if scheduler locking applies.
3061 Look for the stepping thread and a potential step-over thread with
3063 (currently_stepping_or_nexting_callback): Delete.
3065 2014-04-22 Nick Clifton <nickc@redhat.com>
3067 * NEWS: Mention that ARM sim now supports tracing.
3069 2014-04-22 Yao Qi <yao@codesourcery.com>
3071 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3073 * tracefile.c (tracefile_fetch_registers): ... it. New
3075 * tracefile.h (tracefile_fetch_registers): Declare.
3076 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3077 tracefile_fetch_registers.
3079 2014-04-19 Eli Zaretskii <eliz@gnu.org>
3082 * windows-nat.c (thread_rec): Don't display a warning when
3083 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3084 fails for any reason, set th->suspended to -1, so that we don't
3085 try to resume such a thread. Also, don't return NULL in these
3086 cases, to avoid completely ruin the session due to "PC register is
3087 not available" error.
3088 (do_windows_fetch_inferior_registers): Check errors in
3089 GetThreadContext call.
3090 (windows_continue): Accept an additional argument KILLED; if not
3091 zero, ignore errors in the SetThreadContext call, since the
3092 inferior was killed and is shutting down.
3093 (windows_resume, get_windows_debug_event)
3094 (windows_create_inferior, windows_mourn_inferior)
3095 (windows_kill_inferior): All callers of windows_continue changed
3096 to adjust to its new calling sequence.
3098 2014-04-19 Yao Qi <yao@codesourcery.com>
3100 * ctf.c (ctf_open): Call post_create_inferior.
3102 2014-04-19 Yao Qi <yao@codesourcery.com>
3104 * ctf.c (handle_id): New static variable.
3105 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3106 value. Get the declaration of event "register" and get length
3107 of field "contents".
3109 2014-04-19 Yao Qi <yao@codesourcery.com>
3111 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3113 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3115 * valops.c (oload_method_static): Remove unnecessary argument
3116 METHOD. Update all callers.
3118 2014-04-18 Pedro alves <palves@redhat.com>
3119 Tom Tromey <tromey@redhat.com>
3122 * frame.c (get_prev_frame_1): Rename to ...
3123 (get_prev_frame_always): ... this, and make extern. Adjust.
3124 (skip_artificial_frames): Use get_prev_frame_always.
3125 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3126 (get_frame_unwind_stop_reason): Adjust to rename.
3127 * frame.h (get_prev_frame_always): Declare.
3128 * inline-frame.c: Include frame.h.
3129 (inline_frame_this_id): Use get_prev_frame_always.
3131 2014-04-18 Tristan Gingold <gingold@adacore.com>
3133 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3134 code by using bfd_mach_o_get_base_address.
3136 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3138 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3139 (spu_ax_pseudo_register_collect): New function.
3140 (spu_ax_pseudo_register_push_stack): Likewise.
3141 (spu_dwarf_reg_to_regnum): Likewise.
3142 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3144 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3146 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3147 Replace FRAME argument with FRAME_ID.
3148 * gdbarch.c, gdbarch.h: Regenerate.
3149 * findvar.c (default_value_from_register): Add GDBARCH argument;
3150 replace FRAME by FRAME_ID. No longer call get_frame_id.
3151 (value_from_register): Update call to gdbarch_value_from_register.
3152 * value.h (default_value_from_register): Update prototype.
3153 * s390-linux-tdep.c (s390_value_from_register): Update interface
3154 and call to default_value_from_register.
3155 * spu-tdep.c (spu_value_from_register): Likewise.
3157 * findvar.c (address_from_register): Remove TYPE argument.
3158 Do not call value_from_register; use gdbarch_value_from_register
3159 with null_frame_id instead.
3160 * value.h (address_from_register): Update prototype.
3161 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3162 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3163 address_from_register interface change.
3165 2014-04-17 Yao Qi <yao@codesourcery.com>
3167 * gdbtypes.h: Update comments to link to types and macros'
3170 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3172 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3174 2014-04-16 Keith Seitz <keiths@redhat.com>
3177 * dwarf2read.c (skip_one_die): Check that all relative-offset
3178 sibling DIEs fall within range of the current reader's buffer.
3179 (read_partial_die): Likewise.
3181 2014-04-16 Keith Seitz <keiths@redhat.com>
3184 * cp-namespace.c (lookup_symbol_file): If the type name of
3185 `this' is NULL, return immediately.
3187 2014-04-14 Keith Seitz <keiths@redhat.com>
3190 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3191 from symbol_matches_domain in symtab.c. All local callers
3192 of symbol_matches_domain updated.
3193 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3194 search STRUCT_DOMAIN.
3195 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3196 independently. standard_lookup will do that automatically.
3197 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3198 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3199 (cp_lookup_symbol_in_namespace): Likewise.
3200 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3201 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3202 may return a STRUCT_DOMAIN match.
3203 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3204 * cp-support.c: Include language.h.
3205 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3207 * psymtab.c (match_partial_symbol): Compare the requested
3208 domain with the symbol's domain directly.
3209 (lookup_partial_symbol): Likewise.
3210 * symtab.c (lookup_symbol_in_language): Explain when/why
3211 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3212 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3213 appropriate languages.
3214 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3215 and moved to ada-lang.c
3216 (lookup_block_symbol): Explain that this function only returns
3217 symbol matching the requested DOMAIN.
3218 Compare the requested domain with the symbol's domain directly.
3219 (iterate_over_symbols): Compare the requested domain with the
3220 symbol's domain directly.
3221 * symtab.h (symbol_matches_domain): Remove.
3223 2014-04-14 Tom Tromey <tromey@redhat.com>
3226 * c-exp.y (type_aggregate_p): New function.
3227 (qualified_name, classify_inner_name): Use it.
3228 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
3229 and TYPE_TARGET_TYPE of an enum type.
3230 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
3232 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
3233 handle TYPE_DECLARED_CLASS.
3234 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
3236 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
3237 * valops.c (enum_constant_from_type): New function.
3238 (value_aggregate_elt): Use it.
3239 * cp-namespace.c (cp_lookup_nested_symbol): Handle
3242 2014-04-14 Tom Tromey <tromey@redhat.com>
3244 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
3245 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
3247 * value.h (value_aggregate_elt): Update.
3249 2014-04-14 Tom Tromey <tromey@redhat.com>
3251 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
3253 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3255 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3256 (evaluate_subexp_standard): Pass noside argument.
3257 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3258 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3259 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3260 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3261 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3263 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3265 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3266 points to a constant blob.
3268 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3270 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3271 property and store it as the high bound and flag the range accordingly.
3272 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3273 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3274 * gdbtypes.h (enum range_flags): New enum.
3275 (struct range_bounds): Add flags member.
3277 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3279 * c-typeprint.c (c_type_print_varspec_suffix): Added
3280 check for not yet resolved high bound. If unresolved, print
3281 "variable length" string to the console instead of random
3284 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3286 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
3288 (ada_template_to_fixed_record_type_1): Likewise.
3289 (ada_to_fixed_type_1): Likewise.
3290 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3291 (cp_print_value): Likewise.
3292 * d-valprint.c (dynamic_array_type): Likewise.
3293 * findvar.c (address_of_variable): Likewise.
3294 * jv-valprint.c (java_value_print): Likewise.
3295 * valops.c (value_ind): Likewise.
3296 * value.c (coerce_ref): Likewise.
3298 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3300 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3301 value and retrieve the dynamic type size.
3303 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3305 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3306 passed to sizeof is dynamic evaluate the argument to compute the length.
3308 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3309 Joel Brobecker <brobecker@adacore.com>
3311 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3312 (dwarf2_evaluate_property): New function.
3313 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3314 * dwarf2read.c (attr_to_dynamic_prop): New function.
3315 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3317 * gdbtypes.c: Include dwarf2loc.h.
3318 (is_dynamic_type): New function.
3319 (resolve_dynamic_type): New function.
3320 (resolve_dynamic_bounds): New function.
3321 (get_type_length): New function.
3322 (check_typedef): Use get_type_length to compute type length.
3323 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3324 (TYPE_LOW_BOUND_KIND): New macro.
3325 (is_dynamic_type): New function prototype.
3326 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3327 to resolve dynamic properties of the type. Update comment.
3328 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3330 2014-04-14 Richard Henderson <rth@redhat.com>
3332 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
3334 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
3335 Doug Evans <xdje42@gmail.com>
3337 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
3338 dereference TYPE_CODE_REF values.
3340 2014-04-11 Joel Brobecker <brobecker@adacore.com>
3342 Revert the following changes due to regressions:
3344 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3345 (dwarf2_evaluate_property): New function.
3346 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3347 * dwarf2read.c (attr_to_dynamic_prop): New function.
3348 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3350 * gdbtypes.c: Include dwarf2loc.h.
3351 (is_dynamic_type): New function.
3352 (resolve_dynamic_type): New function.
3353 (resolve_dynamic_bounds): New function.
3354 (get_type_length): New function.
3355 (check_typedef): Use get_type_length to compute type length.
3356 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3357 (TYPE_LOW_BOUND_KIND): New macro.
3358 (is_dynamic_type): New function prototype.
3359 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3360 to resolve dynamic properties of the type. Update comment.
3361 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3363 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3364 passed to sizeof is dynamic evaluate the argument to compute the length.
3366 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3367 value and retrieve the dynamic type size.
3369 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3370 (ada_template_to_fixed_record_type_1): Likewise.
3371 (ada_to_fixed_type_1): Likewise.
3372 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3373 (cp_print_value): Likewise.
3374 * d-valprint.c (dynamic_array_type): Likewise.
3375 * eval.c (evaluate_subexp_with_coercion): Likewise.
3376 * findvar.c (address_of_variable): Likewise.
3377 * jv-valprint.c (java_value_print): Likewise.
3378 * valops.c (value_ind): Likewise.
3379 * value.c (coerce_ref): Likewise.
3381 * c-typeprint.c (c_type_print_varspec_suffix): Added
3382 check for not yet resolved high bound. If unresolved, print
3383 "variable length" string to the console instead of random
3386 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3387 property and store it as the high bound and flag the range accordingly.
3388 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3389 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3390 * gdbtypes.h (enum range_flags): New enum.
3391 (struct range_bounds): Add flags member.
3393 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3394 points to a constant blob.
3396 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3397 (evaluate_subexp_standard): Pass noside argument.
3398 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3399 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3400 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3401 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3402 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3404 2014-04-11 Keith Seitz <keiths@redhat.com>
3407 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
3408 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
3411 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3413 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3414 (evaluate_subexp_standard): Pass noside argument.
3415 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3416 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3417 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3418 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3419 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3421 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3423 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3424 points to a constant blob.
3426 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3428 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3429 property and store it as the high bound and flag the range accordingly.
3430 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3431 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3432 * gdbtypes.h (enum range_flags): New enum.
3433 (struct range_bounds): Add flags member.
3435 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3437 * c-typeprint.c (c_type_print_varspec_suffix): Added
3438 check for not yet resolved high bound. If unresolved, print
3439 "variable length" string to the console instead of random
3442 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3444 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3445 (ada_template_to_fixed_record_type_1): Likewise.
3446 (ada_to_fixed_type_1): Likewise.
3447 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3448 (cp_print_value): Likewise.
3449 * d-valprint.c (dynamic_array_type): Likewise.
3450 * eval.c (evaluate_subexp_with_coercion): Likewise.
3451 * findvar.c (address_of_variable): Likewise.
3452 * jv-valprint.c (java_value_print): Likewise.
3453 * valops.c (value_ind): Likewise.
3454 * value.c (coerce_ref): Likewise.
3456 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3458 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3459 value and retrieve the dynamic type size.
3461 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3463 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3464 passed to sizeof is dynamic evaluate the argument to compute the length.
3466 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3468 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3469 (dwarf2_evaluate_property): New function.
3470 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3471 * dwarf2read.c (attr_to_dynamic_prop): New function.
3472 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3474 * gdbtypes.c: Include dwarf2loc.h.
3475 (is_dynamic_type): New function.
3476 (resolve_dynamic_type): New function.
3477 (resolve_dynamic_bounds): New function.
3478 (get_type_length): New function.
3479 (check_typedef): Use get_type_length to compute type length.
3480 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3481 (TYPE_LOW_BOUND_KIND): New macro.
3482 (is_dynamic_type): New function prototype.
3483 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3484 to resolve dynamic properties of the type. Update comment.
3485 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3487 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3489 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
3490 declaring high/low bounds and change uses accordingly. Call
3491 create_range_type instead of create_static_range_type.
3492 * gdbtypes.c (create_range_type): New function.
3493 (create_range_type): Convert bounds into struct bound_prop and pass
3494 them to create_range_type.
3495 * gdbtypes.h (struct bound_prop): New struct.
3496 (create_range_type): New function prototype.
3497 (struct range_bounds): Use struct bound_prop instead of LONGEST for
3498 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
3499 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
3501 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
3503 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3505 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
3506 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
3507 * ada-lang.c: All uses of create_range_type updated.
3508 * coffread.c: All uses of create_range_type updated.
3509 * dwarf2read.c: All uses of create_range_type updated.
3510 * f-exp.y: All uses of create_range_type updated.
3511 * m2-valprint.c: All uses of create_range_type updated.
3512 * mdebugread.c: All uses of create_range_type updated.
3513 * stabsread.c: All uses of create_range_type updated.
3514 * valops.c: All uses of create_range_type updated.
3515 * valprint.c: All uses of create_range_type updated.
3517 2014-04-10 Pedro Alves <palves@redhat.com>
3519 * breakpoint.c (single_step_breakpoints)
3520 (single_step_gdbarch): Move up in the file.
3521 (one_breakpoint_xfer_memory): New function, factored out from ...
3522 (breakpoint_xfer_memory): ... here. Also process single-step
3525 2014-04-09 Tristan Gingold <gingold@adacore.com>
3527 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
3529 (darwin_decode_exception_message): Free port only after use.
3531 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
3533 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
3534 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
3535 when setting the size of call_length.
3537 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
3539 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
3540 dereference TYPE_CODE_REF values.
3542 2014-04-07 Joel Brobecker <brobecker@adacore.com>
3544 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
3545 end of warning message.
3547 2014-04-03 Doug Evans <dje@google.com>
3549 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
3550 of stub_comp_unit_die, stub_comp_dir is non-NULL.
3552 2014-04-02 Alan Modra <amodra@gmail.com>
3554 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
3555 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
3556 (struct symbol_file_add_from_memory_args): Add size field.
3557 (find_vdso_size): New function.
3558 (add_vsyscall_page): Attempt to find vdso size.
3560 2014-04-01 Doug Evans <dje@google.com>
3562 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
3564 2014-04-01 Tristan Gingold <gingold@adacore.com>
3566 * darwin-nat.c (darwin_encode_reply): Add prototype.
3567 (darwin_decode_exception_message): Reply to unknown inferiors.
3568 (darwin_decode_message): Handle message by id. Ignore message
3569 to unknown inferior.
3570 (darwin_wait): Discard unknown messages, add debug trace.
3572 2014-03-31 Doug Evans <dje@google.com>
3574 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
3577 2014-03-31 Doug Evans <dje@google.com>
3579 New option "set print symbol-loading".
3581 * solib.c (solib_read_symbols): Only print symbol loading messages
3583 (solib_add): If symbol loading is in "brief" mode, notify user
3584 symbols are being loaded.
3585 (reload_shared_libraries_1): Ditto.
3586 * symfile.c (print_symbol_loading_off): New static global.
3587 (print_symbol_loading_brief): New static global.
3588 (print_symbol_loading_full): New static global.
3589 (print_symbol_loading_enums): New static global.
3590 (print_symbol_loading): New static global.
3591 (print_symbol_loading_p): New function.
3592 (symbol_file_add_with_addrs): Only print symbol loading messages
3594 (_initialize_symfile): Register "print symbol-loading" set/show
3596 * symfile.h (print_symbol_loading_p): Declare.
3598 2014-03-30 Doug Evans <xdje42@gmail.com>
3600 * infrun.c (set_last_target_status): New function.
3601 (handle_inferior_event): Call it.
3603 2014-03-30 Doug Evans <xdje42@gmail.com>
3605 * inferior.h (enum stop_kind): Improve comment.
3607 2014-03-28 Joel Brobecker <brobecker@adacore.com>
3609 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
3610 a reference, strip the reference layer before calling
3611 the lang_ops value_has_mutated callback.
3613 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
3615 Remove some globals from our parser.
3616 * language.c (unk_lang_parser): Add "struct parser_state"
3618 * language.h (struct language_defn) <la_parser>: Likewise.
3619 * parse.c (expout, expout_size, expout_ptr): Remove variables.
3620 (initialize_expout): Add "struct parser_state" argument.
3621 Rewrite function to use the parser state.
3622 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
3623 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
3624 write_exp_elt_longcst, write_exp_elt_dblcst,
3625 write_exp_elt_decfloatcst, write_exp_elt_type,
3626 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3627 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
3628 write_dollar_variable): Likewise.
3629 (parse_exp_in_context_1): Use parser state.
3630 (insert_type_address_space): Add "struct parser_state" argument.
3632 (increase_expout_size): New function.
3633 * parser-defs.h: Forward declare "struct language_defn" and
3634 "struct parser_state".
3635 (expout, expout_size, expout_ptr): Remove extern declarations.
3636 (parse_gdbarch, parse_language): Rewrite macro declarations to
3637 accept the parser state.
3638 (struct parser_state): New struct.
3639 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
3640 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
3641 write_exp_elt_decfloatcst, write_exp_elt_type,
3642 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3643 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
3644 write_exp_msymbol, write_dollar_variable,
3645 mark_struct_expression, insert_type_address_space): Add "struct
3646 parser_state" argument.
3647 (increase_expout_size): New function.
3648 * utils.c (do_clear_parser_state): New function.
3649 (make_cleanup_clear_parser_state): Likewise.
3650 * utils.h (make_cleanup_clear_parser_state): New function
3652 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
3653 Update calls to write_exp* in order to pass the parser state.
3654 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
3655 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
3656 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3657 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
3658 * stap-probe.c (stap_parse_register_operand): Likewise.
3659 (stap_parse_single_operand): Likewise.
3660 (stap_parse_argument_1): Likewise.
3661 (stap_parse_argument): Use parser state.
3662 * stap-probe.h: Include "parser-defs.h".
3663 (struct stap_parse_info) <pstate>: New field.
3664 * c-exp.y (parse_type): Rewrite to use parser state.
3665 (yyparse): Redefine to c_parse_internal.
3666 (pstate): New global variable.
3667 (parse_number): Add "struct parser_state" argument.
3668 (write_destructor_name): Likewise.
3669 (type_exp): Update calls to write_exp* and similars in order to
3671 (exp1, exp, variable, qualified_name, space_identifier,
3672 typename, typebase): Likewise.
3673 (write_destructor_name, parse_number, lex_one_token,
3674 classify_name, classify_inner_name, c_parse): Add "struct
3675 parser_state" argument. Update function to use parser state.
3676 * c-lang.h: Forward declare "struct parser_state".
3677 (c_parse): Add "struct parser_state" argument.
3678 * ada-exp.y (parse_type): Rewrite macro to use parser state.
3679 (yyparse): Redefine macro to ada_parse_internal.
3680 (pstate): New variable.
3681 (write_int, write_object_renaming, write_var_or_type,
3682 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
3683 type_int, type_long, type_long_long, type_float, type_double,
3684 type_long_double, type_char, type_boolean, type_system_address):
3685 Add "struct parser_state" argument.
3686 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
3687 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
3688 var_or_type, aggregate, aggregate_component_list,
3689 positional_list, others, component_group,
3690 component_associations): Update calls to write_exp* and similar
3691 functions in order to use parser state.
3692 (ada_parse, write_var_from_sym, write_int,
3693 write_exp_op_with_string, write_object_renaming,
3694 find_primitive_type, write_selectors, write_ambiguous_var,
3695 write_var_or_type, write_name_assoc, type_int, type_long,
3696 type_long_long, type_float, type_double, type_long_double,
3697 type_char, type_boolean, type_system_address): Add "struct
3698 parser_state" argument. Adjust function to use parser state.
3699 * ada-lang.c (parse): Likewise.
3700 * ada-lang.h: Forward declare "struct parser_state".
3701 (ada_parse): Add "struct parser_state" argument.
3702 * ada-lex.l (processInt, processReal): Likewise. Adjust all
3703 calls to both functions.
3704 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
3706 (yyparse): Redefine macro to f_parse_internal.
3707 (pstate): New variable.
3708 (parse_number): Add "struct parser_state" argument.
3709 (type_exp, exp, subrange, typebase): Update calls to write_exp*
3710 and similars in order to use parser state.
3711 (parse_number): Adjust code to use parser state.
3713 (f_parse): New function.
3714 * f-lang.h: Forward declare "struct parser_state".
3715 (f_parse): Add "struct parser_state" argument.
3716 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
3718 (yyparse): Redefine macro for java_parse_internal.
3719 (pstate): New variable.
3720 (push_expression_name, push_expression_name, insert_exp): Add
3721 "struct parser_state" argument.
3722 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
3723 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
3724 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
3725 PostIncrementExpression, PostDecrementExpression,
3726 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
3727 UnaryExpressionNotPlusMinus, CastExpression,
3728 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
3729 RelationalExpression, EqualityExpression, AndExpression,
3730 ExclusiveOrExpression, InclusiveOrExpression,
3731 ConditionalAndExpression, ConditionalOrExpression,
3732 ConditionalExpression, Assignment, LeftHandSide): Update
3733 calls to write_exp* and similars in order to use parser state.
3734 (parse_number): Ajust code to use parser state.
3736 (java_parse): New function.
3737 (push_variable): Add "struct parser_state" argument. Adjust
3738 code to user parser state.
3739 (push_fieldnames, push_qualified_expression_name,
3740 push_expression_name, insert_exp): Likewise.
3741 * jv-lang.h: Forward declare "struct parser_state".
3742 (java_parse): Add "struct parser_state" argument.
3743 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
3745 (yyparse): Redefine macro to m2_parse_internal.
3746 (pstate): New variable.
3747 (type_exp, exp, fblock, variable, type): Update calls to
3748 write_exp* and similars to use parser state.
3750 (m2_parse): New function.
3751 * m2-lang.h: Forward declare "struct parser_state".
3752 (m2_parse): Add "struct parser_state" argument.
3753 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
3754 * objc-lang.h: Forward declare "struct parser_state".
3755 (end_msglist): Add "struct parser_state" argument.
3756 * p-exp.y (parse_type): Rewrite macro to use parser state.
3757 (yyparse): Redefine macro to pascal_parse_internal.
3758 (pstate): New variable.
3759 (parse_number): Add "struct parser_state" argument.
3760 (type_exp, exp1, exp, qualified_name, variable): Update calls to
3761 write_exp* and similars in order to use parser state.
3762 (parse_number, yylex): Adjust code to use parser state.
3763 (pascal_parse): New function.
3764 * p-lang.h: Forward declare "struct parser_state".
3765 (pascal_parse): Add "struct parser_state" argument.
3766 * go-exp.y (parse_type): Rewrite macro to use parser state.
3767 (yyparse): Redefine macro to go_parse_internal.
3768 (pstate): New variable.
3769 (parse_number): Add "struct parser_state" argument.
3770 (type_exp, exp1, exp, variable, type): Update calls to
3771 write_exp* and similars in order to use parser state.
3772 (parse_number, lex_one_token, classify_name, yylex): Adjust code
3773 to use parser state.
3774 (go_parse): Likewise.
3775 * go-lang.h: Forward declare "struct parser_state".
3776 (go_parse): Add "struct parser_state" argument.
3778 2014-03-27 Doug Evans <dje@google.com>
3780 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
3782 2014-03-27 Doug Evans <dje@google.com>
3784 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
3785 Remove argument abbrev_section. All callers updated.
3787 2014-03-27 Doug Evans <dje@google.com>
3789 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
3790 addr_base, ranges_base.
3792 2014-03-26 Keith Seitz <keiths@redhat.com>
3794 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
3795 types, not VAR_DOMAIN.
3797 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
3799 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
3801 * features/nios2-linux.c: Regenerated.
3802 * features/nios2.c: Regenerated.
3804 2014-03-25 Pedro Alves <palves@redhat.com>
3806 * cli/cli-script.c (script_from_file): Force the interpreter to
3809 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3811 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
3812 small stack allocation.
3814 2014-03-24 Tristan Gingold <gingold@adacore.com>
3816 * darwin-nat.c (exc_server): Remove unused prototype.
3817 (darwin_dump_message): Correctly display data on x86_64.
3818 (darwin_encode_reply): Fix style.
3819 Add comments and fix indentation.
3821 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3823 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
3825 2014-03-22 Doug Evans <xdje42@gmail.com>
3827 * infcmd.c: Whitespace fixes.
3828 (interrupt_command): Merge two function comments into one.
3830 2014-03-22 Doug Evans <xdje42@gmail.com>
3832 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
3835 2014-03-22 Yao Qi <yao@codesourcery.com>
3837 * remote.c (target_read_live_memory): Remove.
3838 (memory_xfer_live_readonly_partial): Rename it to
3839 remote_xfer_live_readonly_partial. Remove argument 'object'.
3840 All callers updated. Call remote_read_bytes_1
3841 instead of target_read_live_memory.
3842 * tracepoint.c (set_traceframe_number): Remove.
3843 (make_cleanup_restore_traceframe_number): Likewise .
3844 * tracepoint.h (set_traceframe_number): Remove declaration.
3845 (make_cleanup_restore_traceframe_number): Likewise.
3847 2014-03-22 Yao Qi <yao@codesourcery.com>
3849 * remote.c (remote_read_bytes): Move code on reading from the
3851 (remote_read_bytes_1): ... here. New function.
3853 2014-03-22 Yao Qi <yao@codesourcery.com>
3855 * ctf.c (ctf_xfer_partial): Check the return value of
3856 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
3857 return TARGET_XFER_UNAVAILABLE.
3858 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3859 * target.c (target_read_live_memory): Move it to remote.c.
3860 (memory_xfer_live_readonly_partial): Likewise.
3861 (memory_xfer_partial_1): Move some code to remote_read_bytes.
3862 * remote.c (target_read_live_memory): Moved from target.c.
3863 (memory_xfer_live_readonly_partial): Likewise.
3864 (remote_read_bytes): Factored out from
3865 memory_xfer_partial_1.
3867 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
3869 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
3872 2014-03-21 Pedro Alves <palves@redhat.com>
3874 * infrun.c (normal_stop): Extend comment.
3876 2014-03-21 Hui Zhu <hui@codesourcery.com>
3877 Pedro Alves <palves@redhat.com>
3879 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
3881 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
3882 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
3883 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
3885 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
3887 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
3888 `z' formatted output modifier.
3890 2014-03-20 Tom Tromey <tromey@redhat.com>
3891 Sergio Durigan Junior <sergiodj@redhat.com>
3893 * probe.c (parse_probes): Turn assert into an ordinary error.
3894 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
3895 exceptions when parsing probes. Rearrange the code for clarity.
3897 2014-03-20 Tom Tromey <tromey@redhat.com>
3900 * top.c (execute_command): Only dispatch events if the command
3903 2014-03-20 Tom Tromey <tromey@redhat.com>
3906 * infcall.c: Include event-top.h.
3907 (run_inferior_call): Call async_disable_stdin if needed.
3909 2014-03-20 Pedro Alves <palves@redhat.com>
3911 * infrun.c (prepare_to_proceed): Delete.
3912 (thread_still_needs_step_over): New function.
3913 (find_thread_needs_step_over): New function.
3914 (proceed): If the current thread needs a step-over, set its
3915 steping_over_breakpoint flag. Adjust to use
3916 find_thread_needs_step_over instead of prepare_to_proceed.
3917 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
3918 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
3920 (switch_back_to_stepped_thread): Step over breakpoints of all
3921 threads not the stepping thread, before switching back to the
3924 2014-03-20 Pedro Alves <palves@redhat.com>
3926 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
3928 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
3929 * infrun.c (saved_singlestep_ptid)
3930 (stepping_past_singlestep_breakpoint): Delete.
3931 (resume): Remove stepping_past_singlestep_breakpoint handling.
3932 (proceed): Store the prev_pc of the stepping thread too.
3933 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
3935 (enum infwait_states): Delete infwait_thread_hop_state.
3936 (struct execution_control_state) <hit_singlestep_breakpoint>: New
3938 (handle_inferior_event): Adjust.
3939 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
3940 handling and the thread-hop code. Before removing single-step
3941 breakpoints, check whether the thread hit a single-step breakpoint
3942 of another thread. If it did, the trap is not a random signal.
3943 (switch_back_to_stepped_thread): If the event thread hit a
3944 single-step breakpoint, unblock it before switching to the
3945 stepping thread. Handle the case of the stepped thread having
3947 (keep_going): Handle the case of the current thread moving past a
3948 single-step breakpoint.
3950 2014-03-20 Pedro Alves <palves@redhat.com>
3953 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
3954 are being stepped over.
3955 (breakpoint_address_match): Make extern.
3956 * breakpoint.h (breakpoint_address_match): New declaration.
3957 * inferior.h (stepping_past_instruction_at): New declaration.
3958 * infrun.c (struct step_over_info): New type.
3959 (step_over_info): New global.
3960 (set_step_over_info, clear_step_over_info)
3961 (stepping_past_instruction_at): New functions.
3962 (handle_inferior_event): Clear the step-over info when
3963 trap_expected is cleared.
3964 (resume): Remove now stale comment.
3965 (clear_proceed_status): Clear step-over info.
3966 (proceed): Adjust step-over handling to set or clear the step-over
3967 info instead of removing all breakpoints.
3968 (handle_signal_stop): When setting up a thread-hop, don't remove
3970 (stop_stepping): Clear step-over info.
3971 (keep_going): Adjust step-over handling to set or clear step-over
3972 info and then always inserting breakpoints, instead of removing
3973 all breakpoints when stepping over one.
3975 2014-03-20 Pedro Alves <palves@redhat.com>
3977 * infrun.c (previous_inferior_ptid): Adjust comment.
3978 (deferred_step_ptid): Delete.
3979 (infrun_thread_ptid_changed, prepare_to_proceed)
3980 (init_wait_for_inferior): Adjust.
3981 (handle_signal_stop): Delete deferred_step_ptid handling.
3983 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3986 * defs.h (sync_quit_force_run): New declaration.
3987 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
3988 * event-top.c (async_sigterm_handler): New declaration.
3989 (async_sigterm_token): New variable.
3990 (async_init_signals): Create also async_sigterm_token.
3991 (async_sigterm_handler): New function.
3992 (sync_quit_force_run): New variable.
3993 (handle_sigterm): Replace quit_force call by other calls.
3994 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
3996 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
3998 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
3999 offset into SPE pseudo registers.
4001 2014-03-18 Pedro Alves <palves@redhat.com>
4004 * inferior.h (print_stop_event): Declare.
4005 * infrun.c (print_stop_event): New, factored out from ...
4006 (normal_stop): ... this.
4007 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4008 of bpstat_print/print_stack_frame.
4010 2014-03-17 Tom Tromey <tromey@redhat.com>
4012 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4014 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4016 * ada-lang.c (decode_constrained_packed_array): Perform a
4017 minimal coercion for reference with coerce_ref instead of
4020 2014-03-17 Tristan Gingold <gingold@adacore.com>
4022 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4023 (darwin_solib_create_inferior_hook): Emit a warning if version
4026 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
4028 * python/py-value.c (get_field_flag): Cast flag_name argument to
4029 PyObject_GetAttrString to support Python 2.4.
4031 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4033 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4034 (Global Maintainers): Remove Jan Kratochvil.
4036 2014-03-14 Pedro Alves <palves@redhat.com>
4038 * inferior.h (terminal_ours_for_output): Rename to ...
4039 (child_terminal_ours_for_output): ... this.
4040 (terminal_save_ours): Rename to ...
4041 (child_terminal_save_ours): ... this.
4042 (terminal_ours): Rename to ...
4043 (child_terminal_ours): ... this.
4044 (terminal_inferior): Rename to ...
4045 (child_terminal_inferior): ... this.
4046 (terminal_init_inferior): Rename to ...
4047 (child_terminal_init_inferior): ... this.
4048 (terminal_init_inferior_with_pgrp): Rename to ...
4049 (child_terminal_init_inferior_with_pgrp): ... this.
4050 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4051 (child_terminal_init_with_pgrp): ... this.
4052 (terminal_save_ours): Rename to ...
4053 (child_terminal_save_ours): ... this.
4054 (terminal_init_inferior): Rename to ...
4055 (child_terminal_init): ... this. Adjust.
4056 (terminal_inferior): Rename to ...
4057 (child_terminal_inferior): ... this.
4058 (terminal_ours_for_output): Rename to ...
4059 (child_terminal_ours_for_output): ... this. Adjust.
4060 (terminal_ours): Rename to ...
4061 (child_terminal_ours): ... this.
4062 (terminal_ours_1): Rename to ...
4063 (child_terminal_ours_1): ... this. Adjust.
4064 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4065 * windows-nat.c (do_initial_windows_stuff): Adjust.
4066 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4067 (gnu_terminal_init): ... this. Adjust.
4068 (gnu_target): Adjust.
4069 * inf-child.c (inf_child_target): Adjust.
4071 2014-03-13 Doug Evans <xdje42@gmail.com>
4074 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4077 2014-03-13 Doug Evans <xdje42@gmail.com>
4079 * value.c (record_latest_value): Call release_value_or_incref
4080 instead of release_value.
4082 2014-03-13 Pedro Alves <palves@redhat.com>
4084 * procfs.c (procfs_target): Don't override to_shortname,
4085 to_longname or to_doc.
4087 2014-03-13 Pedro Alves <palves@redhat.com>
4089 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4090 Unix in user visible strings.
4092 2014-03-12 Stan Shebs <stan@codesourcery.com>
4094 * gdbtypes.h: Annotate comments for Doxygen, add a page
4095 block comment with some general info.
4097 2014-03-12 Pedro Alves <palves@redhat.com>
4099 * infcmd.c (prepare_execution_command): New function, factored out
4100 from several execution commands.
4101 (run_command_1, continue_command, step_1, jump_command)
4102 (signal_command, until_command, advance_command, finish_command)
4103 (attach_command): Use prepare_execution_command.
4105 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
4107 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4110 (struct arm_linux_thread_points): Removed.
4111 (struct arm_linux_process_info): New.
4112 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4113 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4114 (arm_linux_find_breakpoints_by_tid): Removed.
4115 (struct arch_lwp_info): New.
4116 (arm_linux_find_process_pid): New functions.
4117 (arm_linux_add_process): New functions.
4118 (arm_linux_process_info_get): New functions.
4119 (arm_linux_forget_process): New function.
4120 (arm_linux_get_debug_reg_state): New function.
4121 (struct update_registers_data): New.
4122 (update_registers_callback): New function.
4123 (arm_linux_insert_hw_breakpoint1): Updated.
4124 (arm_linux_remove_hw_breakpoint1): Updated.
4125 (arm_linux_insert_hw_breakpoint): Updated.
4126 (arm_linux_remove_hw_breakpoint): Updated.
4127 (arm_linux_insert_watchpoint): Updated.
4128 (arm_linux_remove_watchpoint): Updated.
4129 (arm_linux_new_thread): Updated.
4130 (arm_linux_prepare_to_resume): New function.
4131 (arm_linux_new_fork): New function.
4132 (_initialize_arm_linux_nat): Updated.
4134 2014-03-12 Pedro Alves <palves@redhat.com>
4136 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4138 2014-03-12 Tom Tromey <tromey@redhat.com>
4140 * inf-child.c (return_zero): New function.
4141 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4142 * aix-thread.c (aix_thread_inferior_created): New function.
4143 (aix_thread_attach): Remove.
4144 (init_aix_thread_ops): Don't set to_attach.
4145 (_initialize_aix_thread): Register inferior_created observer.
4146 * corelow.c (init_core_ops): Don't set to_attach or
4148 * exec.c (init_exec_ops): Don't set to_attach or
4150 * infcmd.c (run_command_1): Use find_run_target. Make direct
4152 (attach_command): Use find_attach_target. Make direct target
4154 * record-btrace.c (init_record_btrace_ops): Don't set
4156 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4158 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4159 set to_create_inferior.
4160 * target.c (complete_target_initialization): Add assertion.
4161 (target_create_inferior): Remove.
4162 (find_default_attach, find_default_create_inferior): Remove.
4163 (find_attach_target, find_run_target): New functions.
4164 (find_default_is_async_p, find_default_can_async_p)
4165 (target_supports_non_stop, target_attach): Remove.
4166 (init_dummy_target): Don't set to_create_inferior or
4167 to_supports_non_stop.
4168 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4169 TARGET_DEFAULT_FUNC.
4170 <to_create_inferior>: Add comment.
4171 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4172 TARGET_DEFAULT_RETURN.
4173 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4174 (find_attach_target, find_run_target): Declare.
4175 (target_create_inferior): Remove.
4176 (target_has_execution_1): Update comment.
4177 (target_supports_non_stop): Remove.
4178 * target-delegates.c: Rebuild.
4180 2014-03-12 Pedro Alves <palves@redhat.com>
4182 * inf-child.h: Update comment to not mention Unix.
4184 2014-03-12 Pedro Alves <palves@redhat.com>
4186 * inf-child.c: Update top comment to not mention Unix. Add
4187 generic comment describing how this target is meant to be used.
4188 (inf_child_post_attach, inf_child_post_startup_inferior)
4189 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4192 2014-03-12 Pedro Alves <palves@redhat.com>
4194 * nto-procfs.c: Include inf-child.h.
4195 (procfs_ops): Delete global.
4196 (procfs_can_run): Delete method.
4197 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
4198 target pointer instead of referencing procfs_ops.
4199 (procfs_prepare_to_store): Delete.
4200 (init_procfs_ops): Delete function.
4201 (procfs_target): New function, based on init_procfs_ops, but
4202 inherit inf_child_target.
4203 (_initialize_procfs): Use procfs_target.
4205 2014-03-12 Pedro Alves <palves@redhat.com>
4207 * windows-nat.c: Include inf-child.h.
4208 (windows_ops): Delete global.
4209 (windows_open, windows_prepare_to_store, windows_can_run): Delete
4211 (init_windows_ops): Delete function.
4212 (windows_target): New function, based on init_windows_ops, but
4213 inherit inf_child_target.
4214 (_initialize_windows_nat): Use windows_target. Install x86
4215 specific target methods here.
4217 2014-03-10 Doug Evans <xdje42@gmail.com>
4219 * guile/guile.c (call_initialize_gdb_module): New function.
4220 (initialize_guile): Replace call to scm_init_guile with call to
4223 2014-03-10 Joel Brobecker <brobecker@adacore.com>
4225 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
4226 in call to TYPE_CODE macro.
4228 2014-03-10 Jerome Guitton <guitton@adacore.com>
4230 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
4231 Resolve tagged types to full view.
4233 2014-03-10 Hui Zhu <hui@codesourcery.com>
4235 * target.h (target_insert_breakpoint): Remove "hardware" from its
4238 2014-03-07 Doug Evans <dje@google.com>
4240 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
4242 2014-03-07 Doug Evans <dje@google.com>
4244 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
4245 Remove unused local comp_dir_attr. Assert exactly one of
4246 stub_comp_unit_die, stub_comp_dir is non-NULL.
4248 2014-03-07 Joel Brobecker <brobecker@adacore.com>
4250 * target.h (complete_target_initialization, add_target):
4253 2014-03-07 Pedro Alves <palves@redhat.com>
4255 * go32-nat.c: Include inf-child.h.
4256 (go32_ops): Delete global.
4257 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
4259 (go32_create_inferior): Push the passed in target pointer instead
4260 of referencing go32_ops.
4261 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
4262 (go32_target): New function, based on init_go32_ops, but inherit
4264 (_initialize_go32_nat): Use go32_target. Move parts of
4267 2014-03-06 Joel Brobecker <brobecker@adacore.com>
4269 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
4270 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
4271 SYMBOL_VALUE_ADDRESS.
4272 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
4274 2014-03-06 Yao Qi <yao@codesourcery.com>
4276 * breakpoint.c (get_tracepoint_by_number): Remove argument
4277 optional_p. All callers updated. Adjust comments. Update
4279 * breakpoint.h (get_tracepoint_by_number): Update declaration.
4281 2014-03-06 Yao Qi <yao@codesourcery.com>
4283 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
4284 early if get_number returns zero. Use 'p' instead of 'args'.
4286 2014-03-06 Yao Qi <yao@codesourcery.com>
4288 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
4291 2014-03-06 Yao Qi <yao@codesourcery.com>
4293 PR breakpoints/16508
4294 * tracepoint.c (check_trace_running): New function.
4295 (trace_find_command): Move code to check_trace_running and
4296 call check_trace_running.
4297 (trace_find_pc_command): Likewise.
4298 (trace_find_tracepoint_command): Likewise.
4299 (trace_find_line_command): Likewise.
4300 (trace_find_range_command): Likewise.
4301 * tracepoint.h (check_trace_running): Likewise.
4302 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
4304 2014-03-06 Yao Qi <yao@codesourcery.com>
4306 * target.h (struct target_ops) <to_traceframe_info>: Use
4307 TARGET_DEFAULT_NORETURN (tcomplain ()).
4308 * target-delegates.c: Regenerated.
4310 2014-03-05 Pedro Alves <palves@redhat.com>
4313 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
4314 void. Update comment.
4315 (dcache_xfer_memory): Delete.
4316 (dcache_read_memory_partial): New, based on the read bits of
4318 (dcache_update): Add status parameter. Use ULONGEST for len, and
4319 adjust. Discard cache lines if the reason for the update was
4321 * dcache.h (dcache_xfer_memory): Delete declaration.
4322 (dcache_read_memory_partial): New declaration.
4323 (dcache_update): Update prototype.
4324 * target.c (raw_memory_xfer_partial): Update the dcache here.
4325 (memory_xfer_partial_1): Don't handle dcache writes here.
4327 2014-03-05 Mike Frysinger <vapier@gentoo.org>
4329 * remote-sim.c (gdbsim_load): Add const to prog.
4331 2014-03-03 Tom Tromey <tromey@redhat.com>
4333 * elfread.c (probe_key): Change to bfd_data.
4334 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
4335 now per-BFD, not per-objfile.
4336 * stap-probe.c (stap_probe_destroy): Update comment.
4337 (handle_stap_probe): Allocate on the per-BFD obstack.
4339 2014-03-03 Tom Tromey <tromey@redhat.com>
4341 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
4342 * breakpoint.c (create_longjmp_master_breakpoint): Use
4344 (add_location_to_breakpoint, bkpt_probe_insert_location)
4345 (bkpt_probe_remove_location): Update.
4346 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
4347 * elfread.c (elf_symfile_relocate_probe): Remove.
4348 (elf_probe_fns): Update.
4349 (insert_exception_resume_breakpoint): Change type of "probe"
4350 parameter to bound_probe.
4351 (check_exception_resume): Update.
4352 * objfiles.c (objfile_relocate1): Don't relocate probes.
4353 * probe.c (bound_probe_s): New typedef.
4354 (parse_probes): Use get_probe_address. Set sal's objfile.
4355 (find_probe_by_pc): Return a bound_probe.
4356 (collect_probes): Return a VEC(bound_probe_s).
4357 (compare_probes): Update.
4358 (gen_ui_out_table_header_info): Change type of "probes"
4360 (info_probes_for_ops): Update.
4361 (get_probe_address): New function.
4362 (probe_safe_evaluate_at_pc): Update.
4363 * probe.h (struct probe_ops) <get_probe_address>: New field.
4364 <set_semaphore, clear_semaphore>: Add objfile parameter.
4365 (struct probe) <objfile>: Remove field.
4367 <address>: Update comment.
4368 (struct bound_probe): New.
4369 (find_probe_by_pc): Return a bound_probe.
4370 (get_probe_address): Declare.
4371 * solib-svr4.c (struct probe_and_action) <address>: New field.
4372 (hash_probe_and_action, equal_probe_and_action): Update.
4373 (register_solib_event_probe): Add address parameter.
4374 (solib_event_probe_at): Update.
4375 (svr4_create_probe_breakpoints): Add objfile parameter. Use
4377 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
4378 (stap_get_probe_address): New function.
4379 (stap_can_evaluate_probe_arguments, compute_probe_arg)
4380 (compile_probe_arg): Update.
4381 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
4383 (handle_stap_probe): Don't relocate the probe.
4384 (stap_relocate): Remove.
4385 (stap_gen_info_probes_table_values): Update.
4386 (stap_probe_ops): Remove stap_relocate.
4387 * symfile-debug.c (debug_sym_relocate_probe): Remove.
4388 (debug_sym_probe_fns): Update.
4389 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
4390 * symtab.c (init_sal): Use memset.
4391 * symtab.h (struct symtab_and_line) <objfile>: New field.
4392 * tracepoint.c (start_tracing, stop_tracing): Update.
4394 2014-03-03 Tom Tromey <tromey@redhat.com>
4396 * probe.h (parse_probes, find_probe_by_pc)
4397 (find_probes_in_objfile): Fix comments.
4399 2014-03-02 Doug Evans <xdje42@gmail.com>
4401 * infrun.c (handle_signal_stop): Replace test for
4402 TARGET_WAITKIND_STOPPED with an assert.
4404 2014-03-02 Doug Evans <xdje42@gmail.com>
4406 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
4408 2014-03-02 Doug Evans <xdje42@gmail.com>
4410 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
4412 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4414 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
4416 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4418 * i386obsd-nat.c: Include "obsd-nat.h".
4419 (_initialize_i386obsd_nat): Call obsd_add_target instead of
4421 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4423 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4425 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
4427 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4429 * mips64obsd-nat.c: Include "obsd-nath".
4430 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
4432 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4434 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4436 * amd64obsd-nat.c: Include "obsd-nat,h.
4437 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
4439 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4441 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
4443 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
4444 (find_overload_match): Update call to find_oload_champ.
4445 (find_oload_champ_namespace_loop): Likewise
4447 2014-02-28 Mark Kettenis <kettenis@gnu.org>
4449 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
4451 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
4452 * config/sparc/obsd64.mh: New file.
4453 * sparc64obsd-nat.c: New file.
4455 * obsd-nat.h: New file.
4456 * obsd-nat.c: New file.
4457 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
4458 (ALLDEPFILES): Add obsd-nat.c.
4460 2014-02-28 Tom Tromey <tromey@redhat.com>
4462 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
4463 * cli-out.h (cli_ui_out_impl): Now const.
4464 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
4465 * ui-out.c (struct ui_out) <impl>: Now const.
4466 (default_ui_out_impl): Now const.
4467 (ui_out_new): Make 'impl' parameter const.
4468 * ui-out.h (ui_out_new): Update.
4470 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4472 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
4474 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4476 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
4478 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4480 Additional PR 8882 fix.
4481 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
4483 2014-02-27 Pedro Alves <palves@redhat.com>
4485 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
4488 2014-02-27 Pedro Alves <palves@redhat.com>
4491 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
4492 * nat/linux-waitpid.c: Include string.h.
4493 (status_to_str): Moved here and made extern.
4494 * nat/linux-waitpid.h (status_to_str): New declaration.
4496 2014-02-27 Hui Zhu <hui@codesourcery.com>
4499 * infrun.c (ptid_match): Move ...
4500 * common/ptid.c (ptid_match): ... here.
4501 * inferior.h (ptid_match): Move ...
4502 * common/ptid.h (ptid_match): ... here.
4504 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4506 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
4507 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
4510 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4512 * obsd-tdep.c (obsd_auxv_parse): New function.
4513 (obsd_init_abi): Set auxv_parse.
4515 * gdbarch.sh (auxv_parse): New.
4516 * gdbarch.h: Regenerated.
4517 * gdbarch.c: Regenerated.
4518 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
4520 2014-02-26 Ludovic Courtès <ludo@gnu.org>
4522 * guile/scm-value.c (gdbscm_history_append_x): New function.
4523 (value_functions): Add it.
4525 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4527 * dwarf2read.c (attr_value_as_address): New function.
4528 (dwarf2_find_base_address, read_call_site_scope): Use
4529 attr_value_as_address in place of DW_ADDR.
4530 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
4531 the low and high addresses. Slight rework of the handling
4532 of the high pc being a constant form, and limit it to
4533 DWARF verson 4 or higher.
4534 (dwarf2_record_block_ranges): Likewise.
4535 (read_partial_die): Likewise.
4536 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
4538 2014-02-26 Tom Tromey <tromey@redhat.com>
4540 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
4542 2014-02-26 Tom Tromey <tromey@redhat.com>
4544 * elfread.c (elf_read_minimal_symbols): Return early if
4545 minimal symbols have already been read. Add "ei" parameter.
4546 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
4547 * minsyms.c (prim_record_minimal_symbol_full): Update.
4548 * objfiles.h (struct objstats) <n_minsyms>: Move...
4549 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
4550 * symmisc.c (print_objfile_statistics): Update.
4552 2014-02-26 Tom Tromey <tromey@redhat.com>
4554 * elfread.c (elf_read_minimal_symbols): New function, from
4556 (elf_symfile_read): Call it.
4558 2014-02-26 Tom Tromey <tromey@redhat.com>
4560 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
4561 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
4562 (lookup_minimal_symbol_solib_trampoline)
4563 (lookup_minimal_symbol_by_pc_section_1)
4564 (lookup_minimal_symbol_and_objfile): Update.
4565 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
4566 Don't allocate a minimal symbol if minsyms have already been read.
4567 (build_minimal_symbol_hash_tables): Update.
4568 (install_minimal_symbols): Do nothing if minsyms already read.
4569 Use the per-BFD obstack.
4570 (terminate_minimal_symbol_table): Use the per-BFD obstack.
4571 * objfiles.c (allocate_objfile): Call
4572 terminate_minimal_symbol_table later.
4573 (have_minimal_symbols): Update.
4574 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
4575 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
4576 Move from struct objfile.
4577 <minsyms_read>: New field.
4578 (struct objfile) <msymbols, minimal_symbol_count,
4579 msymbol_hash, msymbol_demangled_hash>: Move.
4580 (ALL_OBJFILE_MSYMBOLS): Update.
4581 * symfile.c (read_symbols): Set minsyms_read.
4582 (reread_symbols): Update.
4583 * symmisc.c (dump_objfile, dump_msymbols): Update.
4585 2014-02-26 Tom Tromey <tromey@redhat.com>
4587 * minsyms.c (msymbols_sort): Remove.
4588 * minsyms.h (msymbols_sort): Remove.
4589 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
4590 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
4591 * elfread.c (elf_symtab_read): Don't add section offsets.
4592 * xcoffread.c (record_minimal_symbol): Don't add section offset
4593 to minimal symbol address.
4594 * somread.c (text_offset, data_offset): Remove.
4595 (som_symtab_read): Don't add section offsets to minimal symbol
4597 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
4598 Don't add section offsets to minimal symbols.
4599 * coffread.c (coff_symtab_read): Don't add section offsets
4600 to minimal symbol addresses.
4601 * machoread.c (macho_symtab_add_minsym): Don't add section offset
4602 to minimal symbol addresses.
4603 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
4604 section offset to minimal symbol addresses.
4605 * mdebugread.c (parse_partial_symbols): Don't add section
4606 offset to minimal symbol addresses.
4607 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
4608 offset to minimal symbol addresses.
4610 2014-02-26 Tom Tromey <tromey@redhat.com>
4612 * ada-lang.c (ada_main_name): Update.
4613 (ada_add_standard_exceptions): Update.
4614 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4615 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4616 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
4617 * auxv.c (ld_so_xfer_auxv): Update.
4618 * avr-tdep.c (avr_scan_prologue): Update.
4619 * ax-gdb.c (gen_var_ref): Update.
4620 * blockframe.c (get_pc_function_start)
4621 (find_pc_partial_function_gnu_ifunc): Update.
4622 * breakpoint.c (create_overlay_event_breakpoint)
4623 (create_longjmp_master_breakpoint)
4624 (create_std_terminate_master_breakpoint)
4625 (create_exception_master_breakpoint): Update.
4626 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4627 * c-valprint.c (c_val_print): Update.
4628 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4629 * common/agent.c (agent_look_up_symbols): Update.
4630 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4631 * dwarf2loc.c (call_site_to_target_addr): Update.
4632 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
4633 * elfread.c (elf_gnu_ifunc_record_cache)
4634 (elf_gnu_ifunc_resolve_by_got): Update.
4635 * findvar.c (default_read_var_value): Update.
4636 * frame.c (inside_main_func): Update.
4637 * frv-tdep.c (frv_frame_this_id): Update.
4638 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4639 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4641 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
4642 (hppa_hpux_find_dummy_bpaddr): Update.
4643 * hppa-tdep.c (hppa_symbol_address): Update.
4644 * infcmd.c (until_next_command): Update.
4645 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
4647 * linespec.c (minsym_found, add_minsym): Update.
4648 * linux-nat.c (get_signo): Update.
4649 * linux-thread-db.c (inferior_has_bug): Update.
4650 * m32c-tdep.c (m32c_return_value)
4651 (m32c_m16c_address_to_pointer): Update.
4652 * m32r-tdep.c (m32r_frame_this_id): Update.
4653 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4654 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4655 * maint.c (maintenance_translate_address): Update.
4656 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
4657 (frob_address): New function.
4658 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
4659 frob_address. Rename parameter to "pc_in".
4660 (compare_minimal_symbols, compact_minimal_symbols): Use raw
4662 (find_solib_trampoline_target, minimal_symbol_upper_bound):
4664 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4665 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
4666 * objc-lang.c (find_objc_msgsend): Update.
4667 * objfiles.c (objfile_relocate1): Update.
4668 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4669 * p-valprint.c (pascal_val_print): Update.
4670 * parse.c (write_exp_msymbol): Update.
4671 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
4672 (ppc_elfv2_skip_entrypoint): Update.
4673 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4674 * printcmd.c (build_address_symbolic, msym_info)
4675 (address_info): Update.
4676 * proc-service.c (ps_pglobal_lookup): Update.
4677 * psymtab.c (find_pc_sect_psymtab_closer)
4678 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
4679 Change msymbol parameter to bound_minimal_symbol.
4680 * ravenscar-thread.c (get_running_thread_id): Update.
4681 * remote.c (remote_check_symbols): Update.
4682 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
4684 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4685 * solib-dsbt.c (lm_base): Update.
4686 * solib-frv.c (lm_base, main_got): Update.
4687 * solib-irix.c (locate_base): Update.
4688 * solib-som.c (som_solib_create_inferior_hook)
4689 (link_map_start): Update.
4690 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
4691 * solib-svr4.c (elf_locate_base, enable_break): Update.
4692 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4693 (flush_ea_cache): Update.
4694 * stabsread.c (define_symbol, scan_file_globals): Update.
4695 * stack.c (find_frame_funname): Update.
4696 * symfile-debug.c (debug_qf_expand_symtabs_matching)
4697 (debug_qf_find_pc_sect_symtab): Update.
4698 * symfile.c (simple_read_overlay_table)
4699 (simple_overlay_update): Update.
4700 * symfile.h (struct quick_symbol_functions)
4701 <find_pc_sect_symtab>: Change type of msymbol to
4702 bound_minimal_symbol.
4703 * symmisc.c (dump_msymbols): Update.
4704 * symtab.c (find_pc_sect_symtab_via_partial)
4705 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
4706 (search_symbols, print_msymbol_info): Update.
4707 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
4708 (MSYMBOL_VALUE_ADDRESS): Redefine.
4709 (BMSYMBOL_VALUE_ADDRESS): New macro.
4710 * tracepoint.c (scope_info): Update.
4711 * tui/tui-disasm.c (tui_find_disassembly_address)
4712 (tui_get_begin_asm_address): Update.
4713 * valops.c (find_function_in_inferior): Update.
4714 * value.c (value_static_field, value_fn_field): Update.
4716 2014-02-26 Tom Tromey <tromey@redhat.com>
4718 * ada-lang.c (ada_update_initial_language): Update.
4719 (ada_main_name, ada_has_this_exception_support): Update.
4720 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4721 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4722 * arm-tdep.c (arm_skip_stub): Update.
4723 * auxv.c (ld_so_xfer_auxv): Update.
4724 * avr-tdep.c (avr_scan_prologue): Update.
4725 * ax-gdb.c (gen_var_ref): Update.
4726 * breakpoint.c (struct breakpoint_objfile_data)
4727 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
4728 type to bound_minimal_symbol.
4729 (create_overlay_event_breakpoint)
4730 (create_longjmp_master_breakpoint)
4731 (create_std_terminate_master_breakpoint)
4732 (create_exception_master_breakpoint): Update.
4733 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4734 * c-exp.y (classify_name): Update.
4735 * coffread.c (coff_symfile_read): Update.
4736 * common/agent.c (agent_look_up_symbols): Update.
4737 * d-lang.c (d_main_name): Update.
4738 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4739 * dec-thread.c (enable_dec_thread): Update.
4740 * dwarf2loc.c (call_site_to_target_addr): Update.
4741 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
4742 * eval.c (evaluate_subexp_standard): Update.
4743 * findvar.c (struct minsym_lookup_data) <result>: Change type
4744 to bound_minimal_symbol.
4746 (minsym_lookup_iterator_cb, default_read_var_value): Update.
4747 * frame.c (inside_main_func): Update.
4748 * frv-tdep.c (frv_frame_this_id): Update.
4749 * gcore.c (call_target_sbrk): Update.
4750 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4751 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4753 * go-lang.c (go_main_name): Update.
4754 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
4755 (hppa_hpux_find_import_stub_for_addr): Update.
4756 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
4757 Update. Change return type.
4758 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
4760 * jit.c (jit_breakpoint_re_set_internal): Update.
4761 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
4763 * linux-nat.c (get_signo): Update.
4764 * linux-thread-db.c (inferior_has_bug): Update
4765 * m32c-tdep.c (m32c_return_value)
4766 (m32c_m16c_address_to_pointer): Update.
4767 * m32r-tdep.c (m32r_frame_this_id): Update.
4768 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4769 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4770 * minsyms.c (lookup_minimal_symbol_internal): Rename to
4771 lookup_minimal_symbol. Change return type.
4772 (lookup_minimal_symbol): Remove.
4773 (lookup_bound_minimal_symbol): Update.
4774 (lookup_minimal_symbol_text): Change return type.
4775 (lookup_minimal_symbol_solib_trampoline): Change return type.
4776 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
4777 (lookup_minimal_symbol_solib_trampoline): Change return type.
4778 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4779 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4780 (value_nsstring, find_imps): Update.
4781 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4782 * p-lang.c (pascal_main_name): Update.
4783 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
4784 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4785 * proc-service.c (ps_pglobal_lookup): Update.
4786 * ravenscar-thread.c (get_running_thread_msymbol): Change
4788 (has_ravenscar_runtime, get_running_thread_id): Update.
4789 * remote.c (remote_check_symbols): Update.
4790 * sol-thread.c (ps_pglobal_lookup): Update.
4791 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4792 * solib-dsbt.c (lm_base): Update.
4793 * solib-frv.c (lm_base, frv_relocate_section_addresses):
4795 * solib-irix.c (locate_base): Update.
4796 * solib-som.c (som_solib_create_inferior_hook)
4797 (som_solib_desire_dynamic_linker_symbols, link_map_start):
4799 * solib-spu.c (spu_enable_break): Update.
4800 * solib-svr4.c (elf_locate_base, enable_break): Update.
4801 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4802 (flush_ea_cache): Update.
4803 * stabsread.c (define_symbol): Update.
4804 * symfile.c (simple_read_overlay_table): Update.
4805 * symtab.c (find_pc_sect_line): Update.
4806 * tracepoint.c (scope_info): Update.
4807 * tui-disasm.c (tui_get_begin_asm_address): Update.
4808 * value.c (value_static_field): Update.
4810 2014-02-26 Tom Tromey <tromey@redhat.com>
4812 * minsyms.c (prim_record_minimal_symbol_full): Use
4813 SET_MSYMBOL_VALUE_ADDRESS.
4814 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
4815 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
4816 SET_MSYMBOL_VALUE_ADDRESS.
4817 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
4818 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
4820 2014-02-26 Tom Tromey <tromey@redhat.com>
4822 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
4823 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4824 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4825 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4826 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
4827 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
4828 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
4829 * ada-lang.c (ada_main_name): Update.
4830 (ada_lookup_simple_minsym): Update.
4831 (ada_make_symbol_completion_list): Update.
4832 (ada_add_standard_exceptions): Update.
4833 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
4834 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4835 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
4836 * arm-tdep.c (skip_prologue_function): Update.
4837 (arm_skip_stack_protector, arm_skip_stub): Update.
4838 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
4839 (arm_wince_skip_main_prologue): Update.
4840 * auxv.c (ld_so_xfer_auxv): Update.
4841 * avr-tdep.c (avr_scan_prologue): Update.
4842 * ax-gdb.c (gen_var_ref): Update.
4843 * block.c (call_site_for_pc): Update.
4844 * blockframe.c (get_pc_function_start): Update.
4845 (find_pc_partial_function_gnu_ifunc): Update.
4846 * breakpoint.c (create_overlay_event_breakpoint): Update.
4847 (create_longjmp_master_breakpoint): Update.
4848 (create_std_terminate_master_breakpoint): Update.
4849 (create_exception_master_breakpoint): Update.
4850 (resolve_sal_pc): Update.
4851 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4852 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
4854 * c-valprint.c (c_val_print): Update.
4855 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4856 * coffread.c (coff_symfile_read): Update.
4857 * common/agent.c (agent_look_up_symbols): Update.
4858 * dbxread.c (find_stab_function_addr): Update.
4859 (end_psymtab): Update.
4860 * dwarf2loc.c (call_site_to_target_addr): Update.
4861 (func_verify_no_selftailcall): Update.
4862 (tailcall_dump): Update.
4863 (call_site_find_chain_1): Update.
4864 (dwarf_expr_reg_to_entry_parameter): Update.
4865 * elfread.c (elf_gnu_ifunc_record_cache): Update.
4866 (elf_gnu_ifunc_resolve_by_got): Update.
4867 * f-valprint.c (info_common_command): Update.
4868 * findvar.c (read_var_value): Update.
4869 * frame.c (get_prev_frame_1): Update.
4870 (inside_main_func): Update.
4871 * frv-tdep.c (frv_skip_main_prologue): Update.
4872 (frv_frame_this_id): Update.
4873 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4874 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
4875 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
4876 (gnuv3_skip_trampoline): Update.
4877 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
4878 (hppa64_hpux_in_solib_call_trampoline): Update.
4879 (hppa_hpux_skip_trampoline_code): Update.
4880 (hppa64_hpux_search_dummy_call_sequence): Update.
4881 (hppa_hpux_find_import_stub_for_addr): Update.
4882 (hppa_hpux_find_dummy_bpaddr): Update.
4883 * hppa-tdep.c (hppa_symbol_address)
4884 (hppa_lookup_stub_minimal_symbol): Update.
4885 * i386-tdep.c (i386_skip_main_prologue): Update.
4886 (i386_pe_skip_trampoline_code): Update.
4887 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
4888 * infcall.c (get_function_name): Update.
4889 * infcmd.c (until_next_command): Update.
4890 * jit.c (jit_breakpoint_re_set_internal): Update.
4891 (jit_inferior_init): Update.
4892 * linespec.c (minsym_found): Update.
4893 (add_minsym): Update.
4894 * linux-fork.c (info_checkpoints_command): Update.
4895 * linux-nat.c (get_signo): Update.
4896 * linux-thread-db.c (inferior_has_bug): Update.
4897 * m32c-tdep.c (m32c_return_value): Update.
4898 (m32c_m16c_address_to_pointer): Update.
4899 (m32c_m16c_pointer_to_address): Update.
4900 * m32r-tdep.c (m32r_frame_this_id): Update.
4901 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4902 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4903 * maint.c (maintenance_translate_address): Update.
4904 * minsyms.c (add_minsym_to_hash_table): Update.
4905 (add_minsym_to_demangled_hash_table): Update.
4906 (msymbol_objfile): Update.
4907 (lookup_minimal_symbol): Update.
4908 (iterate_over_minimal_symbols): Update.
4909 (lookup_minimal_symbol_text): Update.
4910 (lookup_minimal_symbol_by_pc_name): Update.
4911 (lookup_minimal_symbol_solib_trampoline): Update.
4912 (lookup_minimal_symbol_by_pc_section_1): Update.
4913 (lookup_minimal_symbol_and_objfile): Update.
4914 (prim_record_minimal_symbol_full): Update.
4915 (compare_minimal_symbols): Update.
4916 (compact_minimal_symbols): Update.
4917 (build_minimal_symbol_hash_tables): Update.
4918 (install_minimal_symbols): Update.
4919 (terminate_minimal_symbol_table): Update.
4920 (find_solib_trampoline_target): Update.
4921 (minimal_symbol_upper_bound): Update.
4922 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4923 * mips-tdep.c (mips_stub_frame_sniffer): Update.
4924 (mips_skip_pic_trampoline_code): Update.
4925 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
4926 * objc-lang.c (selectors_info): Update.
4927 (classes_info): Update.
4928 (find_methods): Update.
4929 (find_imps): Update.
4930 (find_objc_msgsend): Update.
4931 * objfiles.c (objfile_relocate1): Update.
4932 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
4933 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4934 * p-valprint.c (pascal_val_print): Update.
4935 * parse.c (write_exp_msymbol): Update.
4936 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
4937 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
4938 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4939 * printcmd.c (build_address_symbolic): Update.
4941 (address_info): Update.
4942 * proc-service.c (ps_pglobal_lookup): Update.
4943 * psymtab.c (find_pc_sect_psymtab_closer): Update.
4944 (find_pc_sect_psymtab): Update.
4945 * python/py-framefilter.c (py_print_frame): Update.
4946 * ravenscar-thread.c (get_running_thread_id): Update.
4947 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
4949 * remote.c (remote_check_symbols): Update.
4950 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
4951 (rs6000_skip_trampoline_code): Update.
4952 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
4953 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4954 * solib-dsbt.c (lm_base): Update.
4955 * solib-frv.c (lm_base): Update.
4957 * solib-irix.c (locate_base): Update.
4958 * solib-som.c (som_solib_create_inferior_hook): Update.
4959 (som_solib_desire_dynamic_linker_symbols): Update.
4960 (link_map_start): Update.
4961 * solib-spu.c (spu_enable_break): Update.
4962 (ocl_enable_break): Update.
4963 * solib-svr4.c (elf_locate_base): Update.
4964 (enable_break): Update.
4965 * spu-tdep.c (spu_get_overlay_table): Update.
4966 (spu_catch_start): Update.
4967 (flush_ea_cache): Update.
4968 * stabsread.c (define_symbol): Update.
4969 (scan_file_globals): Update.
4970 * stack.c (find_frame_funname): Update.
4971 (frame_info): Update.
4972 * symfile.c (simple_read_overlay_table): Update.
4973 (simple_overlay_update): Update.
4974 * symmisc.c (dump_msymbols): Update.
4975 * symtab.c (fixup_section): Update.
4976 (find_pc_sect_line): Update.
4977 (skip_prologue_sal): Update.
4978 (search_symbols): Update.
4979 (print_msymbol_info): Update.
4980 (rbreak_command): Update.
4981 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
4982 (completion_list_objc_symbol): Update.
4983 (default_make_symbol_completion_list_break_on): Update.
4984 * tracepoint.c (scope_info): Update.
4985 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
4986 (tui_get_begin_asm_address): Update.
4987 * valops.c (find_function_in_inferior): Update.
4988 * value.c (value_static_field): Update.
4989 (value_fn_field): Update.
4991 2014-02-26 Tom Tromey <tromey@redhat.com>
4993 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
4994 bound minimal symbols. Move code that knows about minsym
4996 * minsyms.c (minimal_symbol_upper_bound): ... here. New
4998 * minsyms.h (minimal_symbol_upper_bound): Declare.
4999 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5000 minimal_symbol_upper_bound.
5002 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5004 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5005 Use the type's name if its basic type does not have a tag.
5007 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5009 * dwarf2read.c (read_subrange_type): Add comment.
5011 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5013 * dwarf2read.c (update_enumeration_type_from_children): New
5014 function, mostly extracted from process_structure_scope.
5015 (read_enumeration_type): Call update_enumeration_type_from_children.
5016 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5017 and flag_flag_enum fields.
5019 2014-02-26 Pedro Alves <palves@redhat.com>
5021 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5022 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5023 to_xfer_partial method.
5025 2014-02-26 Pedro Alves <palves@redhat.com>
5027 * target.c (complete_target_initialization): Don't install
5028 default_xfer_partial as to_xfer_partial hook.
5030 (update_current_target): Don't INHERIT nor de_fault
5031 deprecated_xfer_memory. Delete de_fault macro.
5032 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5033 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5034 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5037 2014-02-26 Pedro Alves <palves@redhat.com>
5039 * go32-nat.c (my_write_child): New function.
5040 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5041 (go32_xfer_partial): New function.
5042 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5043 Instead install a to_xfer_partial hook.
5045 2014-02-26 Pedro Alves <palves@redhat.com>
5047 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5048 to_xfer_partial helper. Rewrite.
5049 (procfs_xfer_partial): New function.
5050 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5051 Install a to_xfer_partial hook.
5053 2014-02-26 Pedro Alves <palves@redhat.com>
5055 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5056 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5057 (m32r_xfer_partial): New function.
5058 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5059 Install a to_xfer_partial hook.
5061 2014-02-26 Pedro Alves <palves@redhat.com>
5063 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5065 (mips_xfer_partial): New function.
5066 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5067 hook. Install a to_xfer_partial hook.
5069 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5071 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5072 * gdbtypes.c (create_array_type_with_stride): New function,
5073 renaming create_array_type, but with an added parameter
5074 called "bit_stride".
5075 (create_array_type): Re-implement using
5076 create_array_type_with_stride.
5077 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5078 and DW_AT_bit_stride attributes.
5080 2014-02-26 Pedro Alves <palves@redhat.com>
5082 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5083 task-specific breakpoints.
5085 2014-02-25 Pedro Alves <palves@redhat.com>
5087 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5088 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5090 2014-02-25 Stan Shebs <stan@codesourcery.com>
5092 * defs.h: Annotate comments for Doxygen.
5094 2014-02-25 Tom Tromey <tromey@redhat.com>
5096 * target.h (target_ignore): Don't declare.
5097 * target.c (target_ignore): Remove.
5099 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5102 * auto-load.c (auto_load_objfile_script_1): Change filename to
5105 2014-02-25 Joel Brobecker <brobecker@adacore.com>
5107 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5108 documentation. Adjust prototype to match the target_ops
5109 to_xfer_partial method. Adjust implementation accordingly.
5111 2014-02-25 Hui Zhu <hui@codesourcery.com>
5113 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5116 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5118 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5119 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5120 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5121 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5122 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5123 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5124 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5125 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5127 (rl78_register_type): Use a data pointer type for SP and
5128 new pseudo registers mentioned above. Use a 16 bit integer
5129 type for all other register pairs.
5130 (rl78_register_name, rl78_g10_register_name): Update for
5131 new pseudo registers.
5132 (rl78_pseudo_register_read): Likewise.
5133 (rl78_pseudo_register_write): Likewise.
5134 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5135 to the newly added pseudo registers.
5137 2014-02-24 Doug Evans <dje@google.com>
5139 * value.c (record_latest_value): Fix comment.
5140 * printcmd.c (print_command_1): Remove code to handle -1 return from
5141 record_latest_value.
5143 2014-02-24 Pedro Alves <palves@redhat.com>
5145 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5146 deprecated_xfer_memory hook.
5147 (procfs_xfer_partial): Call procfs_xfer_memory instead
5148 of the deprecated_xfer_memory target hook.
5149 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5152 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5154 * windows-nat.c (windows_xfer_shared_libraries): Return
5155 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5156 requested object is TARGET_OBJECT_LIBRARIES.
5158 2014-02-24 Yao Qi <yao@codesourcery.com>
5160 * target.h (enum target_xfer_status)
5161 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5162 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5164 * corefile.c (memory_error_message): User updated.
5165 * exec.c (section_table_read_available_memory): Likewise.
5166 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5167 * target.c (target_xfer_status_to_string): Likewise.
5168 (raw_memory_xfer_partial): Likewise.
5169 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5170 * valops.c (read_value_memory): Likewise.
5171 * exec.h: Update comments.
5173 2014-02-24 Yao Qi <yao@codesourcery.com>
5175 * target.c (target_xfer_status_to_string): Rename argument err
5177 * target.h (target_xfer_status_to_string): Update declaration.
5178 Replace target_xfer_error_to_string with
5179 target_xfer_status_to_string in comment.
5181 2014-02-24 Yao Qi <yao@codesourcery.com>
5183 * mips-linux-nat.c (super_close): Update its type.
5184 (mips_linux_close): Pass 'self' to super_close.
5186 2014-02-24 Yao Qi <yao@codesourcery.com>
5188 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5189 * corefile.c (read_memory): Adjusted.
5190 * target.c (target_write_with_progress): Adjusted.
5192 2014-02-23 Yao Qi <yao@codesourcery.com>
5196 2013-10-25 Yao Qi <yao@codesourcery.com>
5198 * remote.c (remote_traceframe_info): Return early if
5199 traceframe is not selected.
5201 2013-07-19 Yao Qi <yao@codesourcery.com>
5203 * target.c (update_current_target): Change the default action
5204 of 'to_traceframe_info' from tcomplain to return_zero.
5205 * target.h (struct target_ops) <to_traceframe_info>: Add more
5208 2014-02-23 Yao Qi <yao@codesourcery.com>
5210 * valops.c (read_value_memory): Rewrite it. Call
5211 target_xfer_partial in a loop.
5212 * exec.h (section_table_available_memory): Remove declaration.
5213 Move comments to ...
5214 * exec.c (section_table_available_memory): ... here. Make it
5217 2014-02-23 Yao Qi <yao@codesourcery.com>
5219 * exec.c (section_table_read_available_memory): New function.
5220 * exec.h (section_table_read_available_memory): Declare.
5221 * ctf.c (ctf_xfer_partial): Call
5222 section_table_read_available_memory.
5223 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5225 2014-02-23 Yao Qi <yao@codesourcery.com>
5227 * ctf.c (ctf_xfer_partial): Move code to ...
5228 * exec.c (exec_read_partial_read_only): ... it. New function.
5229 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5230 * tracefile.c: Include "exec.h".
5231 * exec.h (exec_read_partial_read_only): Declare.
5233 2014-02-23 Yao Qi <yao@codesourcery.com>
5235 * tracefile-tfile.c (tfile_has_all_memory): Remove.
5236 (tfile_has_memory): Remove.
5237 (init_tfile_ops): Don't set fields to_has_all_memory and
5238 to_has_memory of tfile_ops.
5239 * tracefile.c (tracefile_has_all_memory): New function.
5240 (tracefile_has_memory): New function.
5241 (init_tracefile_ops): Initialize fields to_has_all_memory and
5242 to_has_memory of 'ops'.
5244 2014-02-23 Yao Qi <yao@codesourcery.com>
5246 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
5247 (ctf_thread_alive, ctf_get_trace_status): Remove.
5248 (init_ctf_ops): Don't set some fields of ctf_ops. Call
5250 * tracefile-tfile.c (tfile_get_trace_status): Remove.
5251 (tfile_has_stack, tfile_has_registers): Remove.
5252 (tfile_thread_alive): Remove.
5253 (init_tfile_ops): Don't set some fields of tfile_ops. Call
5255 * tracefile.c (tracefile_has_stack): New function.
5256 (tracefile_has_registers): New function.
5257 (tracefile_thread_alive): New function.
5258 (tracefile_get_trace_status): New function.
5259 (init_tracefile_ops): New function.
5260 * tracefile.h (init_tracefile_ops): Declare.
5262 2014-02-23 Yao Qi <yao@codesourcery.com>
5264 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
5265 (O_LARGEFILE): Likewise.
5266 (tfile_ops): Likewise.
5267 (TRACE_HEADER_SIZE): Likewise.
5268 (trace_fd, trace_frames_offset, cur_offset): Likewise.
5269 (cur_data_size): Likewise.
5270 (tfile_read, tfile_open, tfile_interp_line): Likewise.
5271 (tfile_close, tfile_files_info): Likewise.
5272 (tfile_get_trace_status): Likewise.
5273 (tfile_get_tracepoint_status): Likewise.
5274 (tfile_get_traceframe_address): Likewise.
5275 (tfile_trace_find, match_blocktype): Likewise.
5276 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
5277 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
5278 (tfile_get_trace_state_variable_value): Likewise.
5279 (tfile_has_all_memory, tfile_has_memory): Likewise.
5280 (tfile_has_stack, tfile_has_registers): Likewise.
5281 (tfile_thread_alive, build_traceframe_info): Likewise.
5282 (tfile_traceframe_info, init_tfile_ops): Likewise.
5283 (_initialize_tracepoint): Don't call init_tfile_ops
5284 and add_target_with_completer.
5285 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
5286 exec.h, completer.h and filenames.h.
5287 (_initialize_tracefile_tfile): New function.
5289 2014-02-23 Yao Qi <yao@codesourcery.com>
5291 * Makefile.in (REMOTE_OBS): Append tracefile.o and
5293 (HFILES_NO_SRCDIR): Add tracefile.h.
5294 * ctf.c: Include "tracefile.h".
5295 * tracefile.h: New file.
5296 * tracefile.c: New file
5297 * tracefile-tfile.c: New file.
5298 * tracepoint.c: Include "tracefile.h".
5299 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
5300 (stop_reason_names): Add const.
5301 (trace_file_writer_xfree): Move it to tracefile.c.
5302 (trace_save, trace_save_command, trace_save_tfile): Likewise.
5303 (trace_save_ctf): Likewise.
5304 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
5305 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
5306 (tfile_write_header, tfile_write_regblock_type): Likewise.
5307 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
5308 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
5309 (tfile_write_raw_data, tfile_end): Likewise.
5310 (tfile_trace_file_writer_new): Likewise.
5311 (free_uploaded_tp): Make it extern.
5312 (free_uploaded_tsv): Make it extern.
5313 (_initialize_tracepoint): Move code to register command 'tsave'
5315 * tracepoint.h (stop_reason_names): Declare.
5316 (struct trace_frame_write_ops): Move it to tracefile.h.
5317 (struct trace_file_write_ops): Likewise.
5318 (struct trace_file_writer): Likewise.
5319 (free_uploaded_tsvs, free_uploaded_tps): Declare.
5321 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5324 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
5326 (get_cores_used_by_process): New parameter num_cores, use it.
5327 (linux_xfer_osdata_processes): Pass num_cores to it.
5328 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
5331 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
5333 * target.c (memory_xfer_partial): Fix length arg in call to
5334 breakpoint_xfer_memory.
5336 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5339 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
5340 number comes after the + or - signs. Adjust length of register
5341 name to be extracted.
5343 2014-02-20 Tom Tromey <tromey@redhat.com>
5345 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
5346 (ada_varobj_ops): Mark "extern".
5348 2014-02-20 Tom Tromey <tromey@redhat.com>
5350 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
5352 2014-02-20 Doug Evans <xdje42@gmail.com>
5354 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
5355 All callers updated.
5356 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
5357 All callers updated.
5358 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
5359 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
5361 2014-02-20 lin zuojian <manjian2006@gmail.com>
5362 Joel Brobecker <brobecker@adacore.com>
5363 Doug Evans <xdje42@gmail.com>
5366 * dwarf2read.c (struct die_info): New member in_process.
5367 (reset_die_in_process): New function.
5368 (process_die): Set it at the start, reset when returning.
5369 (inherit_abstract_dies): Only call process_die if origin_child_die
5370 not already being processed.
5372 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5374 * windows-nat.c (handle_unload_dll): Add function documentation.
5375 (do_initial_windows_stuff): Add comment explaining why we wait
5376 until after inferior initialization has finished before
5377 processing all DLLs.
5379 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5381 * windows-nat.c (get_module_name): Delete.
5382 (windows_get_exec_module_filename): New function, mostly
5383 inspired from get_module_name.
5384 (windows_pid_to_exec_file): Replace call to get_module_name
5385 by call to windows_get_exec_module_filename.
5387 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5389 * windows-nat.c (handle_load_dll): Rewrite this function's
5390 introductory comment. Remove code using get_module_name
5391 to get the DLL's name.
5393 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5395 * windows-nat.c (get_windows_debug_event): Ignore
5396 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
5397 if windows_initialization_done == 0.
5398 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
5399 Adjust implementation to always load all DLLs.
5400 (do_initial_windows_stuff): Replace call to
5401 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
5403 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5405 * windows-nat.c (_initialize_windows_nat): Deprecate the
5406 "dll-symbols" command. Turn the "add-shared-symbol-files"
5407 and "assf" aliases into commands, and deprecate them as well.
5408 * NEWS: Add entry explaining that "dll-symbols" and its two
5409 aliases are now deprecated.
5411 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5413 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
5414 new-line in debug string. Remove trailing spaces.
5416 2014-02-19 Stan Shebs <stan@codesourcery.com>
5418 * darwin-nat.c (darwin_xfer_partial): Fix return type.
5420 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
5422 * NEWS: Add entry for the new feature
5423 * python/py-value.c (valpy_binop): Call value_x_binop for struct
5426 2014-02-19 Stan Shebs <stan@codesourcery.com>
5428 * MAINTAINERS: List Yao Qi as nios2 maintainer.
5430 2014-02-19 Pedro Alves <palves@redhat.com>
5432 * common/ptid.h (struct ptid): Mention that process_stratum
5433 targets should prefer ptid.lwp.
5435 2014-02-19 Pedro Alves <palves@redhat.com>
5437 * remote.c (remote_thread_alive, write_ptid, read_ptid)
5438 (read_ptid, remote_newthread_step, remote_threads_extra_info)
5439 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
5440 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
5441 store remote thread ids rather than ptid.tid.
5442 (_initialize_remote): Adjust.
5444 2014-02-19 Tom Tromey <tromey@redhat.com>
5446 * target.c (target_get_unwinder): Rewrite.
5447 (target_get_tailcall_unwinder): Rewrite.
5448 * record-btrace.c (record_btrace_to_get_unwinder): New function.
5449 (record_btrace_to_get_tailcall_unwinder): New function.
5450 (init_record_btrace_ops): Update.
5451 * target.h (struct target_ops) <to_get_unwinder,
5452 to_get_tailcall_unwinder>: Now function pointers. Use
5453 TARGET_DEFAULT_RETURN.
5455 2014-02-19 Tom Tromey <tromey@redhat.com>
5457 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
5459 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
5461 2014-02-19 Tom Tromey <tromey@redhat.com>
5463 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
5465 * target-delegates.c: Rebuild.
5466 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
5467 TARGET_DEFAULT_FUNC.
5468 * target.c (default_target_decr_pc_after_break): Rename from
5469 forward_target_decr_pc_after_break. Simplify.
5470 (target_decr_pc_after_break): Rely on delegation.
5472 2014-02-19 Tom Tromey <tromey@redhat.com>
5474 * target.c (update_current_target): Do not INHERIT to_doc or
5475 to_magic. Do not de_fault to_open or to_close.
5477 2014-02-19 Tom Tromey <tromey@redhat.com>
5479 * gcore.h (objfile_find_memory_regions): Declare.
5480 * gcore.c (objfile_find_memory_regions): No longer static. Add
5482 (_initialize_gcore): Don't call exec_set_find_memory_regions.
5483 * exec.c: Include gcore.h.
5484 (exec_set_find_memory_regions): Remove.
5485 (exec_find_memory_regions): Remove.
5486 (exec_do_find_memory_regions): Remove.
5487 (init_exec_ops): Update.
5488 * defs.h (exec_set_find_memory_regions): Remove.
5490 2014-02-19 Tom Tromey <tromey@redhat.com>
5492 * target-delegates.c: Rebuild.
5493 * target.h (struct target_ops) <to_extra_thread_info,
5494 to_thread_name, to_pid_to_exec_file, to_get_section_table,
5495 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
5496 not 0, in TARGET_DEFAULT_RETURN.
5498 2014-02-19 Tom Tromey <tromey@redhat.com>
5500 * target.c (complete_target_initialization): Remove casts. Use
5501 return_zero_has_execution.
5502 (return_zero): Add "ignore" argument.
5503 (return_zero_has_execution): New function.
5504 (init_dummy_target): Remove casts. Use
5505 return_zero_has_execution.
5507 2014-02-19 Tom Tromey <tromey@redhat.com>
5509 * target.c (update_current_target): Update comments. Do not
5512 2014-02-19 Tom Tromey <tromey@redhat.com>
5514 * arm-linux-nat.c (arm_linux_read_description): Delegate when
5516 * corelow.c (core_read_description): Delegate when needed.
5517 * remote.c (remote_read_description): Delegate when needed.
5518 * target-delegates.c: Rebuild.
5519 * target.c (target_read_description): Rewrite.
5520 * target.h (struct target_ops) <to_read_description>: Update
5521 comment. Use TARGET_DEFAULT_RETURN.
5523 2014-02-19 Tom Tromey <tromey@redhat.com>
5525 * target-delegates.c: Rebuild.
5526 * target.c (update_current_target): Don't inherit or default
5528 (find_default_run_target): Check against delegate_can_run.
5529 * target.h (struct target_ops) <to_can_run>: Use
5530 TARGET_DEFAULT_RETURN.
5532 2014-02-19 Tom Tromey <tromey@redhat.com>
5534 * target-delegates.c: Rebuild.
5535 * target.c (target_disconnect): Unconditionally delegate.
5536 * target.h (struct target_ops) <to_disconnect>: Use
5537 TARGET_DEFAULT_NORETURN.
5539 2014-02-19 Tom Tromey <tromey@redhat.com>
5541 * record.c (record_stop): Unconditionally delegate.
5542 * target-delegates.c: Rebuild.
5543 * target.c (target_stop_recording): Unconditionally delegate.
5544 * target.h (struct target_ops) <to_stop_recording>: Use
5545 TARGET_DEFAULT_IGNORE.
5547 2014-02-19 Tom Tromey <tromey@redhat.com>
5549 * target-delegates.c: Rebuild.
5550 * target.c (target_enable_btrace): Unconditionally delegate.
5551 * target.h (struct target_ops) <to_enable_btrace>: Use
5552 TARGET_DEFAULT_NORETURN.
5554 2014-02-19 Tom Tromey <tromey@redhat.com>
5556 * target-delegates.c: Rebuild.
5557 * target.c (target_read_btrace): Unconditionally delegate.
5558 * target.h (struct target_ops) <to_read_btrace>: Use
5559 TARGET_DEFAULT_NORETURN.
5561 2014-02-19 Tom Tromey <tromey@redhat.com>
5563 * target-delegates.c: Rebuild.
5564 * target.c (target_teardown_btrace): Unconditionally delegate.
5565 * target.h (struct target_ops) <to_teardown_btrace>: Use
5566 TARGET_DEFAULT_NORETURN.
5568 2014-02-19 Tom Tromey <tromey@redhat.com>
5570 * target-delegates.c: Rebuild.
5571 * target.c (target_disable_btrace): Unconditionally delegate.
5572 * target.h (struct target_ops) <to_disable_btrace>: Use
5573 TARGET_DEFAULT_NORETURN.
5575 2014-02-19 Tom Tromey <tromey@redhat.com>
5577 * target-delegates.c: Rebuild.
5578 * target.c (default_search_memory): New function.
5579 (simple_search_memory): Update comment.
5580 (target_search_memory): Unconditionally delegate.
5581 * target.h (struct target_ops) <to_search_memory>: Use
5582 TARGET_DEFAULT_FUNC.
5584 2014-02-19 Tom Tromey <tromey@redhat.com>
5586 * auxv.c (default_auxv_parse): No longer static.
5587 (target_auxv_parse): Unconditionally delegate.
5588 * auxv.h (default_auxv_parse): Declare.
5589 * target-delegates.c: Rebuild.
5590 * target.c: Include auxv.h.
5591 * target.h (struct target_ops) <to_auxv_parse>: Use
5592 TARGET_DEFAULT_FUNC.
5594 2014-02-19 Tom Tromey <tromey@redhat.com>
5596 * target-delegates.c: Rebuild.
5597 * target.c (target_memory_map): Unconditionally delegate.
5598 * target.h (struct target_ops) <to_memory_map>: Use
5599 TARGET_DEFAULT_RETURN.
5601 2014-02-19 Tom Tromey <tromey@redhat.com>
5603 * target-delegates.c: Rebuild.
5604 * target.c (target_thread_alive): Unconditionally delegate.
5605 * target.h (struct target_ops) <to_thread_alive>: Use
5606 TARGET_DEFAULT_RETURN.
5608 2014-02-19 Tom Tromey <tromey@redhat.com>
5610 * target-delegates.c: Rebuild.
5611 * target.c (target_save_record): Unconditionally delegate.
5612 * target.h (struct target_ops) <to_save_record>: Use
5613 TARGET_DEFAULT_NORETURN.
5615 2014-02-19 Tom Tromey <tromey@redhat.com>
5617 * target-delegates.c: Rebuild.
5618 * target.c (target_delete_record): Unconditionally delegate.
5619 * target.h (struct target_ops) <to_delete_record>: Use
5620 TARGET_DEFAULT_NORETURN.
5622 2014-02-19 Tom Tromey <tromey@redhat.com>
5624 * target-delegates.c: Rebuild.
5625 * target.c (target_record_is_replaying): Unconditionally
5627 * target.h (struct target_ops) <to_record_is_replaying>: Use
5628 TARGET_DEFAULT_RETURN.
5630 2014-02-19 Tom Tromey <tromey@redhat.com>
5632 * target-delegates.c: Rebuild.
5633 * target.c (target_goto_record_begin): Unconditionally delegate.
5634 * target.h (struct target_ops) <to_goto_record_begin>: Use
5635 TARGET_DEFAULT_NORETURN.
5637 2014-02-19 Tom Tromey <tromey@redhat.com>
5639 * target-delegates.c: Rebuild.
5640 * target.c (target_goto_record_end): Unconditionally delegate.
5641 * target.h (struct target_ops) <to_goto_record_end>: Use
5642 TARGET_DEFAULT_NORETURN.
5644 2014-02-19 Tom Tromey <tromey@redhat.com>
5646 * target-delegates.c: Rebuild.
5647 * target.c (target_goto_record): Unconditionally delegate.
5648 * target.h (struct target_ops) <to_goto_record>: Use
5649 TARGET_DEFAULT_NORETURN.
5651 2014-02-19 Tom Tromey <tromey@redhat.com>
5653 * target-delegates.c: Rebuild.
5654 * target.c (target_insn_history): Unconditionally delegate.
5655 * target.h (struct target_ops) <to_insn_history>: Use
5656 TARGET_DEFAULT_NORETURN.
5658 2014-02-19 Tom Tromey <tromey@redhat.com>
5660 * target-delegates.c: Rebuild.
5661 * target.c (target_insn_history_from): Unconditionally delegate.
5662 * target.h (struct target_ops) <to_insn_history_from>: Use
5663 TARGET_DEFAULT_NORETURN.
5665 2014-02-19 Tom Tromey <tromey@redhat.com>
5667 * target-delegates.c: Rebuild.
5668 * target.c (target_insn_history_range): Unconditionally delegate.
5669 * target.h (struct target_ops) <to_insn_history_range>: Use
5670 TARGET_DEFAULT_NORETURN.
5672 2014-02-19 Tom Tromey <tromey@redhat.com>
5674 * target-delegates.c: Rebuild.
5675 * target.c (target_call_history): Unconditionally delegate.
5676 * target.h (struct target_ops) <to_call_history>: Use
5677 TARGET_DEFAULT_NORETURN.
5679 2014-02-19 Tom Tromey <tromey@redhat.com>
5681 * target-delegates.c: Rebuild.
5682 * target.c (target_call_history_from): Unconditionally delegate.
5683 * target.h (struct target_ops) <to_call_history_from>: Use
5684 TARGET_DEFAULT_NORETURN.
5686 2014-02-19 Tom Tromey <tromey@redhat.com>
5688 * target-delegates.c: Rebuild.
5689 * target.c (target_call_history_range): Unconditionally delegate.
5690 * target.h (struct target_ops) <to_call_history_range>: Use
5691 TARGET_DEFAULT_NORETURN.
5693 2014-02-19 Tom Tromey <tromey@redhat.com>
5695 * target-delegates.c: Rebuild.
5696 * target.c (target_verify_memory): Unconditionally delegate.
5697 * target.h (struct target_ops) <to_verify_memory>: Use
5698 TARGET_DEFAULT_NORETURN.
5700 2014-02-19 Tom Tromey <tromey@redhat.com>
5702 * target-delegates.c: Rebuild.
5703 * target.c (target_core_of_thread): Unconditionally delegate.
5704 * target.h (struct target_ops) <to_core_of_thread>: Use
5705 TARGET_DEFAULT_RETURN.
5707 2014-02-19 Tom Tromey <tromey@redhat.com>
5709 * target-delegates.c: Rebuild.
5710 * target.c (target_flash_done): Unconditionally delegate.
5711 * target.h (struct target_ops) <to_flash_done>: Use
5712 TARGET_DEFAULT_NORETURN.
5714 2014-02-19 Tom Tromey <tromey@redhat.com>
5716 * target-delegates.c: Rebuild.
5717 * target.c (target_flash_erase): Unconditionally delegate.
5718 * target.h (struct target_ops) <to_flash_erase>: Use
5719 TARGET_DEFAULT_NORETURN.
5721 2014-02-19 Tom Tromey <tromey@redhat.com>
5723 * target-delegates.c: Rebuild.
5724 * target.c (target_get_section_table): Unconditionally delegate.
5725 * target.h (struct target_ops) <to_get_section_table>: Use
5726 TARGET_DEFAULT_RETURN.
5728 2014-02-19 Tom Tromey <tromey@redhat.com>
5730 * target-delegates.c: Rebuild.
5731 * target.c (target_pid_to_str): Unconditionally delegate.
5732 (init_dummy_target): Don't initialize to_pid_to_str.
5733 (default_pid_to_str): Rename from dummy_pid_to_str.
5734 * target.h (struct target_ops) <to_pid_to_str>: Use
5735 TARGET_DEFAULT_FUNC.
5737 2014-02-19 Tom Tromey <tromey@redhat.com>
5739 * target-delegates.c: Rebuild.
5740 * target.c (target_find_new_threads): Unconditionally delegate.
5741 * target.h (struct target_ops) <to_find_new_threads>: Use
5742 TARGET_DEFAULT_RETURN.
5744 2014-02-19 Tom Tromey <tromey@redhat.com>
5746 * target-delegates.c: Rebuild.
5747 * target.c (target_program_signals): Unconditionally delegate.
5748 * target.h (struct target_ops) <to_program_signals>: Use
5749 TARGET_DEFAULT_IGNORE.
5751 2014-02-19 Tom Tromey <tromey@redhat.com>
5753 * target-delegates.c: Rebuild.
5754 * target.c (target_pass_signals): Unconditionally delegate.
5755 * target.h (struct target_ops) <to_pass_signals>: Use
5756 TARGET_DEFAULT_IGNORE.
5758 2014-02-19 Tom Tromey <tromey@redhat.com>
5760 * target-delegates.c: Rebuild.
5761 * target.c (default_mourn_inferior): New function.
5762 (target_mourn_inferior): Unconditionally delegate.
5763 * target.h (struct target_ops) <to_mourn_inferior>: Use
5764 TARGET_DEFAULT_FUNC.
5766 2014-02-19 Tom Tromey <tromey@redhat.com>
5768 * target-delegates.c: Rebuild.
5769 * target.c (default_follow_fork): New function.
5770 (target_follow_fork): Unconditionally delegate.
5771 * target.h (struct target_ops) <to_follow_fork>: Use
5772 TARGET_DEFAULT_FUNC.
5774 2014-02-19 Tom Tromey <tromey@redhat.com>
5776 * target-delegates.c: Rebuild.
5777 * target.c (target_kill): Unconditionally delegate.
5778 * target.h (struct target_ops) <to_kill>: Use
5779 TARGET_DEFAULT_NORETURN.
5781 2014-02-19 Tom Tromey <tromey@redhat.com>
5783 * target-delegates.c: Rebuild.
5784 * target.c (target_masked_watch_num_registers): Unconditionally
5786 * target.h (struct target_ops) <to_masked_watch_num_registers>:
5787 Use TARGET_DEFAULT_RETURN.
5789 2014-02-19 Tom Tromey <tromey@redhat.com>
5791 * target-delegates.c: Rebuild.
5792 * target.c (target_remove_mask_watchpoint): Unconditionally
5794 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
5795 TARGET_DEFAULT_RETURN.
5797 2014-02-19 Tom Tromey <tromey@redhat.com>
5799 * target-delegates.c: Rebuild.
5800 * target.c (target_insert_mask_watchpoint): Unconditionally
5802 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
5803 TARGET_DEFAULT_RETURN.
5805 2014-02-19 Tom Tromey <tromey@redhat.com>
5807 * target-delegates.c: Rebuild.
5808 * target.c (target_ranged_break_num_registers): Unconditionally
5810 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5811 Use TARGET_DEFAULT_RETURN.
5813 2014-02-19 Tom Tromey <tromey@redhat.com>
5815 * target-delegates.c: Rebuild.
5816 * target.c (target_fetch_registers): Unconditionally delegate.
5817 * target.h (struct target_ops) <to_fetch_registers>: Use
5818 TARGET_DEFAULT_NORETURN.
5820 2014-02-19 Tom Tromey <tromey@redhat.com>
5822 * target-delegates.c: Rebuild.
5823 * target.c (update_current_target): Don't inherit or default
5825 * target.h (struct target_ops) <to_stop>: Use
5826 TARGET_DEFAULT_IGNORE.
5828 2014-02-19 Tom Tromey <tromey@redhat.com>
5830 * target-delegates.c: Rebuild.
5831 * target.c (update_current_target): Don't inherit or default
5832 to_can_run_breakpoint_commands.
5833 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5834 Use TARGET_DEFAULT_RETURN.
5836 2014-02-19 Tom Tromey <tromey@redhat.com>
5838 * target-delegates.c: Rebuild.
5839 * target.c (update_current_target): Don't inherit or default
5840 to_supports_evaluation_of_breakpoint_conditions.
5841 * target.h (struct target_ops)
5842 <to_supports_evaluation_of_breakpoint_conditions>: Use
5843 TARGET_DEFAULT_RETURN.
5845 2014-02-19 Tom Tromey <tromey@redhat.com>
5847 * target-delegates.c: Rebuild.
5848 * target.c (update_current_target): Don't inherit or default
5849 to_augmented_libraries_svr4_read.
5850 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5851 Use TARGET_DEFAULT_RETURN.
5853 2014-02-19 Tom Tromey <tromey@redhat.com>
5855 * target-delegates.c: Rebuild.
5856 * target.c (update_current_target): Don't inherit or default
5858 * target.h (struct target_ops) <to_can_use_agent>: Use
5859 TARGET_DEFAULT_RETURN.
5861 2014-02-19 Tom Tromey <tromey@redhat.com>
5863 * target-delegates.c: Rebuild.
5864 * target.c (update_current_target): Don't inherit or default
5866 * target.h (struct target_ops) <to_use_agent>: Use
5867 TARGET_DEFAULT_NORETURN.
5869 2014-02-19 Tom Tromey <tromey@redhat.com>
5871 * target-delegates.c: Rebuild.
5872 * target.c (update_current_target): Don't inherit or default
5874 (return_null): Remove.
5875 * target.h (struct target_ops) <to_traceframe_info>: Use
5876 TARGET_DEFAULT_RETURN.
5878 2014-02-19 Tom Tromey <tromey@redhat.com>
5880 * target-delegates.c: Rebuild.
5881 * target.c (update_current_target): Don't inherit or default
5882 to_static_tracepoint_markers_by_strid.
5883 * target.h (struct target_ops)
5884 <to_static_tracepoint_markers_by_strid>: Use
5885 TARGET_DEFAULT_NORETURN.
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_static_tracepoint_marker_at.
5892 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5893 Use TARGET_DEFAULT_RETURN.
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_set_permissions>: Use
5901 TARGET_DEFAULT_IGNORE.
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_get_tib_address>: Use
5909 TARGET_DEFAULT_NORETURN.
5911 2014-02-19 Tom Tromey <tromey@redhat.com>
5913 * target-delegates.c: Rebuild.
5914 * target.c (update_current_target): Don't inherit or default
5916 * target.h (struct target_ops) <to_set_trace_notes>: Use
5917 TARGET_DEFAULT_RETURN.
5919 2014-02-19 Tom Tromey <tromey@redhat.com>
5921 * target-delegates.c: Rebuild.
5922 * target.c (update_current_target): Don't initialize
5923 to_set_trace_buffer_size.
5924 * target.h (struct target_ops) <to_set_trace_buffer_size>: 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_set_circular_trace_buffer.
5932 * target.h (struct target_ops) <to_set_circular_trace_buffer>: 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_set_disconnected_tracing.
5940 * target.h (struct target_ops) <to_set_disconnected_tracing>: 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
5947 to_get_min_fast_tracepoint_insn_len.
5948 (return_minus_one): Remove.
5949 * target.h (struct target_ops)
5950 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
5952 2014-02-19 Tom Tromey <tromey@redhat.com>
5954 * target-delegates.c: Rebuild.
5955 * target.c (update_current_target): Don't inherit or default
5956 to_get_raw_trace_data.
5957 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
5958 TARGET_DEFAULT_NORETURN.
5960 2014-02-19 Tom Tromey <tromey@redhat.com>
5962 * target-delegates.c: Rebuild.
5963 * target.c (update_current_target): Don't inherit or default
5964 to_upload_trace_state_variables.
5965 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5966 Use TARGET_DEFAULT_RETURN.
5968 2014-02-19 Tom Tromey <tromey@redhat.com>
5970 * target-delegates.c: Rebuild.
5971 * target.c (update_current_target): Don't inherit or default
5972 to_upload_tracepoints.
5973 * target.h (struct target_ops) <to_upload_tracepoints>: Use
5974 TARGET_DEFAULT_RETURN.
5976 2014-02-19 Tom Tromey <tromey@redhat.com>
5978 * target-delegates.c: Rebuild.
5979 * target.c (update_current_target): Don't inherit or default
5981 * target.h (struct target_ops) <to_save_trace_data>: Use
5982 TARGET_DEFAULT_NORETURN.
5984 2014-02-19 Tom Tromey <tromey@redhat.com>
5986 * target-delegates.c: Rebuild.
5987 * target.c (update_current_target): Don't inherit or default
5988 to_get_trace_state_variable_value.
5989 * target.h (struct target_ops)
5990 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
5992 2014-02-19 Tom Tromey <tromey@redhat.com>
5994 * target-delegates.c: Rebuild.
5995 * target.c (update_current_target): Don't inherit or default
5997 * target.h (struct target_ops): Use 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
6004 * target.h (struct target_ops) <to_trace_stop>: Use
6005 TARGET_DEFAULT_NORETURN.
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_get_tracepoint_status.
6012 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6013 TARGET_DEFAULT_NORETURN.
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
6019 to_get_trace_status.
6020 * target.h (struct target_ops) <to_get_trace_status>: Use
6021 TARGET_DEFAULT_RETURN.
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_trace_start>: 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
6035 to_trace_set_readonly_regions.
6036 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6037 Use TARGET_DEFAULT_NORETURN.
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
6043 to_disable_tracepoint.
6044 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6045 TARGET_DEFAULT_NORETURN.
6047 2014-02-19 Tom Tromey <tromey@redhat.com>
6049 * target-delegates.c: Rebuild.
6050 * target.c (update_current_target): Don't inherit or default
6051 to_enable_tracepoint.
6052 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6053 TARGET_DEFAULT_NORETURN.
6055 2014-02-19 Tom Tromey <tromey@redhat.com>
6057 * target-delegates.c: Rebuild.
6058 * target.c (update_current_target): Don't inherit or default
6059 to_download_trace_state_variable.
6060 * target.h (struct target_ops) <to_download_trace_state_variable>:
6061 Use TARGET_DEFAULT_NORETURN.
6063 2014-02-19 Tom Tromey <tromey@redhat.com>
6065 * target-delegates.c: Rebuild.
6066 * target.c (update_current_target): Don't inherit or default
6067 to_can_download_tracepoint.
6068 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6069 TARGET_DEFAULT_RETURN.
6071 2014-02-19 Tom Tromey <tromey@redhat.com>
6073 * target-delegates.c: Rebuild.
6074 * target.c (update_current_target): Don't inherit or default
6075 to_download_tracepoint.
6076 * target.h (struct target_ops) <to_download_tracepoint>: Use
6077 TARGET_DEFAULT_NORETURN.
6079 2014-02-19 Tom Tromey <tromey@redhat.com>
6081 * target-delegates.c: Rebuild.
6082 * target.c (update_current_target): Don't inherit or default
6084 * target.h (struct target_ops) <to_trace_init>: Use
6085 TARGET_DEFAULT_RETURN.
6087 2014-02-19 Tom Tromey <tromey@redhat.com>
6089 * target-delegates.c: Rebuild.
6090 * target.c (update_current_target): Don't inherit or default
6091 to_supports_string_tracing.
6092 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6093 TARGET_DEFAULT_RETURN.
6095 2014-02-19 Tom Tromey <tromey@redhat.com>
6097 * target-delegates.c: Rebuild.
6098 * target.c (update_current_target): Don't inherit or default
6099 to_supports_enable_disable_tracepoint.
6100 * target.h (struct target_ops)
6101 <to_supports_enable_disable_tracepoint>: Use
6102 TARGET_DEFAULT_RETURN.
6104 2014-02-19 Tom Tromey <tromey@redhat.com>
6106 * target-delegates.c: Rebuild.
6107 * target.c (update_current_target): Don't inherit or default
6108 to_supports_multi_process.
6109 * target.h (struct target_ops) <to_supports_multi_process>: Use
6110 TARGET_DEFAULT_RETURN.
6112 2014-02-19 Tom Tromey <tromey@redhat.com>
6114 * target-delegates.c: Rebuild.
6115 * target.c (update_current_target): Don't inherit or default
6116 to_get_ada_task_ptid.
6117 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6118 TARGET_DEFAULT_FUNC.
6120 2014-02-19 Tom Tromey <tromey@redhat.com>
6122 * target-delegates.c: Rebuild.
6123 * target.c (update_current_target): Don't inherit or default
6124 to_thread_architecture.
6125 * target.h (struct target_ops) <to_thread_architecture>: Use
6126 TARGET_DEFAULT_FUNC.
6128 2014-02-19 Tom Tromey <tromey@redhat.com>
6130 * target-delegates.c: Rebuild.
6131 * target.c (update_current_target): Don't inherit or default
6132 to_execution_direction.
6133 * target.h (struct target_ops) <to_execution_direction>: Use
6134 TARGET_DEFAULT_FUNC.
6136 2014-02-19 Tom Tromey <tromey@redhat.com>
6138 * target-delegates.c: Rebuild.
6139 * target.c (update_current_target): Don't inherit or default
6140 to_can_execute_reverse.
6141 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6142 TARGET_DEFAULT_RETURN.
6143 (target_can_execute_reverse): Unconditionally delegate.
6145 2014-02-19 Tom Tromey <tromey@redhat.com>
6147 * target-delegates.c: Rebuild.
6148 * target.c (update_current_target): Don't inherit or default
6150 (dummy_goto_bookmark): Remove.
6151 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6152 * target.h (struct target_ops) <to_goto_bookmark>: Use
6153 TARGET_DEFAULT_NORETURN.
6155 2014-02-19 Tom Tromey <tromey@redhat.com>
6157 * target-delegates.c: Rebuild.
6158 * target.c (update_current_target): Don't inherit or default
6160 (dummy_get_bookmark): Remove.
6161 (init_dummy_target): Don't inherit or default to_get_bookmark.
6162 * target.h (struct target_ops) <to_get_bookmark>: Use
6163 TARGET_DEFAULT_NORETURN
6165 2014-02-19 Tom Tromey <tromey@redhat.com>
6167 * target-delegates.c: Rebuild.
6168 * target.c (update_current_target): Don't inherit or default
6169 to_make_corefile_notes.
6170 (init_dummy_target): Don't initialize to_make_corefile_notes.
6171 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6172 TARGET_DEFAULT_FUNC.
6174 2014-02-19 Tom Tromey <tromey@redhat.com>
6176 * target-delegates.c: Rebuild.
6177 * target.c (update_current_target): Don't inherit or default
6178 to_find_memory_regions.
6179 (init_dummy_target): Don't initialize to_find_memory_regions.
6180 * target.h (struct target_ops) <to_find_memory_regions>: Use
6181 TARGET_DEFAULT_FUNC.
6183 2014-02-19 Tom Tromey <tromey@redhat.com>
6185 * target-delegates.c: Rebuild.
6186 * target.c (update_current_target): Don't inherit or default
6188 * target.h (struct target_ops) <to_log_command>: Use
6189 TARGET_DEFAULT_IGNORE.
6190 (target_log_command): Unconditionally delegate.
6192 2014-02-19 Tom Tromey <tromey@redhat.com>
6194 * target-delegates.c: Rebuild.
6195 * target.c (update_current_target): Don't inherit or default
6196 to_pid_to_exec_file.
6197 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
6198 TARGET_DEFAULT_RETURN.
6200 2014-02-19 Tom Tromey <tromey@redhat.com>
6202 * target-delegates.c: Rebuild.
6203 * target.c (update_current_target): Don't inherit or default
6205 (target_thread_name): Unconditionally delegate.
6206 * target.h (struct target_ops) <to_thread_name>: Use
6207 TARGET_DEFAULT_RETURN.
6209 2014-02-19 Tom Tromey <tromey@redhat.com>
6211 * target-delegates.c: Rebuild.
6212 * target.c (update_current_target): Don't inherit or default
6213 to_extra_thread_info.
6214 * target.h (struct target_ops) <to_extra_thread_info>: Use
6215 TARGET_DEFAULT_RETURN.
6217 2014-02-19 Tom Tromey <tromey@redhat.com>
6219 * target-delegates.c: Rebuild.
6220 * target.c (update_current_target): Don't inherit or default
6222 * target.h (struct target_ops) <to_has_exited>: Use
6223 TARGET_DEFAULT_RETURN..
6225 2014-02-19 Tom Tromey <tromey@redhat.com>
6227 * target-delegates.c: Rebuild.
6228 * target.c (update_current_target): Don't inherit or default
6229 to_set_syscall_catchpoint.
6230 (return_one): Remove.
6231 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
6232 TARGET_DEFAULT_RETURN.
6234 2014-02-19 Tom Tromey <tromey@redhat.com>
6236 * target-delegates.c: Rebuild.
6237 * target.c (update_current_target): Don't inherit or default
6238 to_insert_exec_catchpoint.
6239 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6240 TARGET_DEFAULT_RETURN.
6242 2014-01-08 Tom Tromey <tromey@redhat.com>
6244 * target-delegates.c: Rebuild.
6245 * target.c (update_current_target): Don't inherit or default
6246 to_insert_exec_catchpoint.
6247 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6248 TARGET_DEFAULT_RETURN.
6250 2014-02-19 Tom Tromey <tromey@redhat.com>
6252 * target-delegates.c: Rebuild.
6253 * target.c (update_current_target): Don't inherit or default
6254 to_remove_vfork_catchpoint.
6255 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
6256 TARGET_DEFAULT_RETURN.
6258 2014-02-19 Tom Tromey <tromey@redhat.com>
6260 * target-delegates.c: Rebuild.
6261 * target.c (update_current_target): Don't inherit or default
6262 to_insert_vfork_catchpoint.
6263 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
6264 TARGET_DEFAULT_RETURN.
6266 2014-02-19 Tom Tromey <tromey@redhat.com>
6268 * target-delegates.c: Rebuild.
6269 * target.c (update_current_target): Don't inherit or default
6270 to_remove_fork_catchpoint.
6271 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
6272 TARGET_DEFAULT_RETURN.
6274 2014-02-19 Tom Tromey <tromey@redhat.com>
6276 * target-delegates.c: Rebuild.
6277 * target.c (update_current_target): Don't inherit or default
6278 to_insert_fork_catchpoint.
6279 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
6280 TARGET_DEFAULT_RETURN.
6282 2014-02-19 Tom Tromey <tromey@redhat.com>
6284 * target-delegates.c: Rebuild.
6285 * target.c (update_current_target): Don't inherit or default
6286 to_post_startup_inferior.
6287 * target.h (struct target_ops) <to_post_startup_inferior>: Use
6288 TARGET_DEFAULT_IGNORE.
6290 2014-02-19 Tom Tromey <tromey@redhat.com>
6292 * target-delegates.c: Rebuild.
6293 * target.c (update_current_target): Don't inherit or default
6295 * target.h (struct target_ops) <to_load>: Use
6296 TARGET_DEFAULT_NORETURN.
6298 2014-02-19 Tom Tromey <tromey@redhat.com>
6300 * target-delegates.c: Rebuild.
6301 * target.c (update_current_target): Don't inherit or default
6303 * target.h (struct target_ops) <to_terminal_info>: Use
6304 TARGET_DEFAULT_FUNC.
6306 2014-02-19 Tom Tromey <tromey@redhat.com>
6308 * target-delegates.c: Rebuild.
6309 * target.c (update_current_target): Don't inherit or default
6310 to_terminal_save_ours.
6311 * target.h (struct target_ops) <to_terminal_save_ours>: Use
6312 TARGET_DEFAULT_IGNORE.
6314 2014-02-19 Tom Tromey <tromey@redhat.com>
6316 * target-delegates.c: Rebuild.
6317 * target.c (update_current_target): Don't inherit or default
6319 * target.h (struct target_ops) <to_terminal_ours>: Use
6320 TARGET_DEFAULT_IGNORE.
6322 2014-02-19 Tom Tromey <tromey@redhat.com>
6324 * target-delegates.c: Rebuild.
6325 * target.c (update_current_target): Don't inherit or default
6326 to_terminal_ours_for_output.
6327 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
6328 TARGET_DEFAULT_IGNORE.
6330 2014-02-19 Tom Tromey <tromey@redhat.com>
6332 * target-delegates.c: Rebuild.
6333 * target.c (update_current_target): Don't inherit or default
6334 to_terminal_inferior.
6335 * target.h (struct target_ops) <to_terminal_inferior>: Use
6336 TARGET_DEFAULT_IGNORE.
6338 2014-02-19 Tom Tromey <tromey@redhat.com>
6340 * target-delegates.c: Rebuild.
6341 * target.c (update_current_target): Don't inherit or default
6343 * target.h (struct target_ops) <to_terminal_init>: Use
6344 TARGET_DEFAULT_IGNORE.
6346 2014-02-19 Tom Tromey <tromey@redhat.com>
6348 * target-delegates.c: Rebuild.
6349 * target.c (update_current_target): Don't inherit or default
6350 to_can_accel_watchpoint_condition.
6351 * target.h (struct target_ops)
6352 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
6354 2014-02-19 Tom Tromey <tromey@redhat.com>
6356 * target-delegates.c: Rebuild.
6357 * target.c (update_current_target): Don't inherit or default
6358 to_region_ok_for_hw_watchpoint.
6359 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6360 Use TARGET_DEFAULT_FUNC.
6362 2014-02-19 Tom Tromey <tromey@redhat.com>
6364 * target-delegates.c: Rebuild.
6365 * target.c (update_current_target): Don't inherit or default
6366 to_watchpoint_addr_within_range.
6367 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
6368 Use TARGET_DEFAULT_FUNC.
6370 2014-02-19 Tom Tromey <tromey@redhat.com>
6372 * target-delegates.c: Rebuild.
6373 * target.c (update_current_target): Don't inherit or default
6374 to_remove_watchpoint.
6375 * target.h (struct target_ops) <to_remove_watchpoint>: Use
6376 TARGET_DEFAULT_NORETURN.
6378 2014-02-19 Tom Tromey <tromey@redhat.com>
6380 * target-delegates.c: Rebuild.
6381 * target.c (update_current_target): Don't inherit or default
6382 to_insert_watchpoint.
6383 * target.h (struct target_ops) <to_insert_watchpoint>: Use
6384 TARGET_DEFAULT_RETURN.
6386 2014-02-19 Tom Tromey <tromey@redhat.com>
6388 * target-delegates.c: Rebuild.
6389 * target.c (update_current_target): Don't inherit or default
6390 to_remove_hw_breakpoint.
6391 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
6392 TARGET_DEFAULT_RETURN.
6394 2014-02-19 Tom Tromey <tromey@redhat.com>
6396 * target-delegates.c: Rebuild.
6397 * target.c (update_current_target): Don't inherit or default
6398 to_insert_hw_breakpoint.
6399 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
6400 TARGET_DEFAULT_RETURN.
6402 2014-02-19 Tom Tromey <tromey@redhat.com>
6404 * target-delegates.c: Rebuild.
6405 * target.c (update_current_target): Don't inherit or default
6406 to_can_use_hw_breakpoint.
6407 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
6408 TARGET_DEFAULT_RETURN.
6410 2014-02-19 Tom Tromey <tromey@redhat.com>
6412 * target-delegates.c: Rebuild.
6413 * target.c (update_current_target): Don't inherit or default
6415 * target.h (struct target_ops) <to_files_info>: Use
6416 TARGET_DEFAULT_IGNORE.
6418 2014-02-19 Tom Tromey <tromey@redhat.com>
6420 * target-delegates.c: Rebuild.
6421 * target.c (update_current_target): Don't inherit or default
6423 * target.h (struct target_ops) <to_store>: Use
6424 TARGET_DEFAULT_NORETURN.
6426 2014-02-19 Tom Tromey <tromey@redhat.com>
6428 * target-delegates.c: Rebuild.
6429 * target.c (update_current_target): Don't inherit or default
6431 * target.h (struct target_ops) <to_post_attach>: Use
6432 TARGET_DEFAULT_IGNORE.
6434 2014-02-19 Tom Tromey <tromey@redhat.com>
6436 * target-delegates.c: Rebuild.
6437 * target.c (update_current_target): Don't inherit or default
6439 (default_rcmd): New function.
6440 (do_monitor_command): Unconditionally delegate.
6441 * target.h (struct target_ops) <to_rmcd>: Use
6442 TARGET_DEFAULT_FUNC.
6444 2014-02-19 Tom Tromey <tromey@redhat.com>
6446 * target-delegates.c: Rebuild.
6447 * target.c (init_dummy_target): Don't initialize to_attach.
6448 (target_attach): Unconditionally delegate.
6449 * target.h (struct target_ops) <to_attach>: Use
6450 TARGET_DEFAULT_FUNC.
6452 2014-02-19 Tom Tromey <tromey@redhat.com>
6454 * target-delegates.c: Rebuild.
6455 * target.c (target_detach): Unconditionally delegate.
6456 (init_dummy_target): Don't initialize to_detach.
6457 * target.h (struct target_ops) <to_detach>: Use
6458 TARGET_DEFAULT_IGNORE.
6460 2014-02-19 Tom Tromey <tromey@redhat.com>
6462 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6464 (target_augmented_libraries_svr4_read): Add argument.
6465 * target.c (update_current_target): Update.
6466 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
6469 2014-02-19 Tom Tromey <tromey@redhat.com>
6471 * target.h (struct target_ops) <to_call_history_range>: Add
6473 * target.c (target_call_history_range): Add argument.
6474 * record-btrace.c (record_btrace_call_history_range): Add 'self'
6476 (record_btrace_call_history_from): Update.
6478 2014-02-19 Tom Tromey <tromey@redhat.com>
6480 * target.h (struct target_ops) <to_call_history_from>: Add
6482 * target.c (target_call_history_from): Add argument.
6483 * record-btrace.c (record_btrace_call_history_from): Add 'self'
6486 2014-02-19 Tom Tromey <tromey@redhat.com>
6488 * target.h (struct target_ops) <to_call_history>: Add argument.
6489 * target.c (target_call_history): Add argument.
6490 * record-btrace.c (record_btrace_call_history): Add 'self'
6493 2014-02-19 Tom Tromey <tromey@redhat.com>
6495 * target.h (struct target_ops) <to_insn_history_range>: Add
6497 * target.c (target_insn_history_range): Add argument.
6498 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
6500 (record_btrace_insn_history_from): Update.
6502 2014-02-19 Tom Tromey <tromey@redhat.com>
6504 * target.h (struct target_ops) <to_insn_history_from>: Add
6506 * target.c (target_insn_history_from): Add argument.
6507 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
6510 2014-02-19 Tom Tromey <tromey@redhat.com>
6512 * target.h (struct target_ops) <to_insn_history>: Add argument.
6513 * target.c (target_insn_history): Add argument.
6514 * record-btrace.c (record_btrace_insn_history): Add 'self'
6517 2014-02-19 Tom Tromey <tromey@redhat.com>
6519 * target.h (struct target_ops) <to_goto_record>: Add argument.
6520 * target.c (target_goto_record): Add argument.
6521 * record-full.c (record_full_goto): Add 'self' argument.
6522 * record-btrace.c (record_btrace_goto): Add 'self' argument.
6524 2014-02-19 Tom Tromey <tromey@redhat.com>
6526 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
6527 * target.c (target_goto_record_end): Add argument.
6528 * record-full.c (record_full_goto_end): Add 'self' argument.
6529 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
6531 2014-02-19 Tom Tromey <tromey@redhat.com>
6533 * target.h (struct target_ops) <to_goto_record_begin>: Add
6535 * target.c (target_goto_record_begin): Add argument.
6536 * record-full.c (record_full_goto_begin): Add 'self' argument.
6537 * record-btrace.c (record_btrace_goto_begin): Add 'self'
6540 2014-02-19 Tom Tromey <tromey@redhat.com>
6542 * target.h (struct target_ops) <to_record_is_replaying>: Add
6544 * target.c (target_record_is_replaying): Add argument.
6545 * record-full.c (record_full_is_replaying): Add 'self' argument.
6546 * record-btrace.c (record_btrace_is_replaying): Add 'self'
6548 (record_btrace_xfer_partial, record_btrace_store_registers)
6549 (record_btrace_prepare_to_store, record_btrace_resume)
6550 (record_btrace_wait, record_btrace_decr_pc_after_break)
6551 (record_btrace_find_new_threads, record_btrace_thread_alive):
6554 2014-02-19 Tom Tromey <tromey@redhat.com>
6556 * target.h (struct target_ops) <to_delete_record>: Add argument.
6557 * target.c (target_delete_record): Add argument.
6558 * record-full.c (record_full_delete): Add 'self' argument.
6560 2014-02-19 Tom Tromey <tromey@redhat.com>
6562 * target.h (struct target_ops) <to_save_record>: Add argument.
6563 * target.c (target_save_record): Add argument.
6564 * record-full.c (record_full_save): Add 'self' argument.
6565 (record_full_save): Add 'self' argument.
6567 2014-02-19 Tom Tromey <tromey@redhat.com>
6569 * target.h (struct target_ops) <to_info_record>: Add argument.
6570 * target.c (target_info_record): Add argument.
6571 * record.c (info_record_command): Add argument.
6572 * record-full.c (record_full_info): Add 'self' argument.
6573 * record-btrace.c (record_btrace_info): Add 'self' argument.
6575 2014-02-19 Tom Tromey <tromey@redhat.com>
6577 * target.h (struct target_ops) <to_stop_recording>: Add argument.
6578 * target.c (target_stop_recording): Add argument.
6579 * record.c (record_stop): Add argument.
6580 * record-btrace.c (record_btrace_stop_recording): Add 'self'
6583 2014-02-19 Tom Tromey <tromey@redhat.com>
6585 * target.h (struct target_ops) <to_read_btrace>: Add argument.
6586 * target.c (struct target_ops) <to_read_btrace>: Add argument.
6587 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
6589 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
6590 (_initialize_amd64_linux_nat): Use it.
6591 * i386-linux-nat.c (i386_linux_read_btrace): New function.
6592 (_initialize_i386_linux_nat): Use it.
6594 2014-02-19 Tom Tromey <tromey@redhat.com>
6596 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
6597 * target.c (target_teardown_btrace): Add argument.
6598 * remote.c (remote_teardown_btrace): Add 'self' argument.
6599 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
6601 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
6604 2014-02-19 Tom Tromey <tromey@redhat.com>
6606 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
6607 * target.c (target_disable_btrace): Add argument.
6608 * remote.c (remote_disable_btrace): Add 'self' argument.
6609 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
6611 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
6614 2014-02-19 Tom Tromey <tromey@redhat.com>
6616 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
6617 * target.c (target_enable_btrace): Add argument.
6618 * remote.c (remote_enable_btrace): Add 'self' argument.
6619 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
6621 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
6624 2014-02-19 Tom Tromey <tromey@redhat.com>
6626 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
6627 (target_can_use_agent): Add argument.
6628 * target.c (update_current_target): Update.
6629 * remote.c (remote_can_use_agent): Add 'self' argument.
6630 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
6632 2014-02-19 Tom Tromey <tromey@redhat.com>
6634 * target.h (struct target_ops) <to_use_agent>: Add argument.
6635 (target_use_agent): Add argument.
6636 * target.c (update_current_target): Update.
6637 * remote.c (remote_use_agent): Add 'self' argument.
6638 * inf-child.c (inf_child_use_agent): Add 'self' argument.
6640 2014-02-19 Tom Tromey <tromey@redhat.com>
6642 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
6643 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
6644 (target_traceframe_info): Add argument.
6645 * target.c (update_current_target): Update.
6646 * remote.c (remote_traceframe_info): Add 'self' argument.
6647 * ctf.c (ctf_traceframe_info): Add 'self' argument.
6649 2014-02-19 Tom Tromey <tromey@redhat.com>
6651 * target.h (target_static_tracepoint_markers_by_strid): Add
6653 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
6655 * target.c (update_current_target): Update.
6656 * remote.c (struct target_ops)
6657 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6658 * linux-nat.c (struct target_ops)
6659 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6661 2014-02-19 Tom Tromey <tromey@redhat.com>
6663 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6665 (target_static_tracepoint_marker_at): Add argument.
6666 * target.c (update_current_target): Update.
6667 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
6670 2014-02-19 Tom Tromey <tromey@redhat.com>
6672 * target.h (struct target_ops) <to_set_permissions>: Add argument.
6673 (target_set_permissions): Add argument.
6674 * target.c (update_current_target): Update.
6675 * remote.c (remote_set_permissions): Add 'self' argument.
6676 (remote_start_remote): Update.
6678 2014-02-19 Tom Tromey <tromey@redhat.com>
6680 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
6681 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
6682 (target_get_tib_address): Add argument.
6683 * target.c (update_current_target): Update.
6684 * remote.c (remote_get_tib_address): Add 'self' argument.
6686 2014-02-19 Tom Tromey <tromey@redhat.com>
6688 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
6689 (target_set_trace_notes): Add argument.
6690 * target.c (update_current_target): Update.
6691 * remote.c (remote_set_trace_notes): Add 'self' argument.
6693 2014-02-19 Tom Tromey <tromey@redhat.com>
6695 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
6697 (target_set_trace_buffer_size): Add argument.
6698 * target.c (update_current_target): Update.
6699 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
6701 2014-02-19 Tom Tromey <tromey@redhat.com>
6703 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
6705 (target_set_circular_trace_buffer): Add argument.
6706 * target.c (update_current_target): Update.
6707 * remote.c (remote_set_circular_trace_buffer): Add 'self'
6710 2014-02-19 Tom Tromey <tromey@redhat.com>
6712 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
6714 (target_set_disconnected_tracing): Add argument.
6715 * target.c (update_current_target): Update.
6716 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
6718 2014-02-19 Tom Tromey <tromey@redhat.com>
6720 * target.h (struct target_ops)
6721 <to_get_min_fast_tracepoint_insn_len>: Add argument.
6722 (target_get_min_fast_tracepoint_insn_len): Add argument.
6723 * target.c (update_current_target): Update.
6724 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
6727 2014-02-19 Tom Tromey <tromey@redhat.com>
6729 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
6731 (target_get_raw_trace_data): Add argument.
6732 * target.c (update_current_target): Update.
6733 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
6735 2014-02-19 Tom Tromey <tromey@redhat.com>
6737 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6739 (target_upload_trace_state_variables): Add argument.
6740 * target.c (update_current_target): Update.
6741 * remote.c (remote_upload_trace_state_variables): Add 'self'
6743 (remote_start_remote): Update.
6745 2014-02-19 Tom Tromey <tromey@redhat.com>
6747 * target.h (struct target_ops) <to_upload_tracepoints>: Add
6749 (target_upload_tracepoints): Add argument.
6750 * target.c (update_current_target): Update.
6751 * remote.c (remote_upload_tracepoints): Add 'self' argument.
6752 (remote_start_remote): Update.
6754 2014-02-19 Tom Tromey <tromey@redhat.com>
6756 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
6757 (target_save_trace_data): Add argument.
6758 * target.c (update_current_target): Update.
6759 * remote.c (remote_save_trace_data): Add 'self' argument.
6761 2014-02-19 Tom Tromey <tromey@redhat.com>
6763 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
6765 * target.h (struct target_ops)
6766 <to_get_trace_state_variable_value>: Add argument.
6767 (target_get_trace_state_variable_value): Add argument.
6768 * target.c (update_current_target): Update.
6769 * remote.c (remote_get_trace_state_variable_value): Add 'self'
6771 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
6773 2014-02-19 Tom Tromey <tromey@redhat.com>
6775 * tracepoint.c (tfile_trace_find): Add 'self' argument.
6776 * target.h (struct target_ops) <to_trace_find>: Add argument.
6777 (target_trace_find): Add argument.
6778 * target.c (update_current_target): Update.
6779 * remote.c (remote_trace_find): Add 'self' argument.
6780 * ctf.c (ctf_trace_find): Add 'self' argument.
6782 2014-02-19 Tom Tromey <tromey@redhat.com>
6784 * target.h (struct target_ops) <to_trace_stop>: Add argument.
6785 (target_trace_stop): Add argument.
6786 * target.c (update_current_target): Update.
6787 * remote.c (remote_trace_stop): Add 'self' argument.
6789 2014-02-19 Tom Tromey <tromey@redhat.com>
6791 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
6792 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
6794 (target_get_tracepoint_status): Add argument.
6795 * target.c (update_current_target): Update.
6796 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
6798 2014-02-19 Tom Tromey <tromey@redhat.com>
6800 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
6801 * target.h (struct target_ops) <to_get_trace_status>: Add
6803 (target_get_trace_status): Add argument.
6804 * target.c (update_current_target): Update.
6805 * remote.c (remote_get_trace_status): Add 'self' argument.
6806 (remote_start_remote, remote_can_download_tracepoint): Update.
6807 * ctf.c (ctf_get_trace_status): Add 'self' argument.
6809 2014-02-19 Tom Tromey <tromey@redhat.com>
6811 * target.h (struct target_ops) <to_trace_start>: Add argument.
6812 (target_trace_start): Add argument.
6813 * target.c (update_current_target): Update.
6814 * remote.c (remote_trace_start): Add 'self' argument.
6816 2014-02-19 Tom Tromey <tromey@redhat.com>
6818 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6820 (target_trace_set_readonly_regions): Add argument.
6821 * target.c (update_current_target): Update.
6822 * remote.c (remote_trace_set_readonly_regions): Add 'self'
6825 2014-02-19 Tom Tromey <tromey@redhat.com>
6827 * target.h (struct target_ops) <to_disable_tracepoint>: Add
6829 (target_disable_tracepoint): Add argument.
6830 * target.c (update_current_target): Update.
6831 * remote.c (remote_disable_tracepoint): Add 'self' argument.
6833 2014-02-19 Tom Tromey <tromey@redhat.com>
6835 * target.h (struct target_ops) <to_enable_tracepoint>: Add
6837 (target_enable_tracepoint): Add argument.
6838 * target.c (update_current_target): Update.
6839 * remote.c (remote_enable_tracepoint): Add 'self' argument.
6841 2014-02-19 Tom Tromey <tromey@redhat.com>
6843 * target.h (struct target_ops) <to_download_trace_state_variable>:
6845 (target_download_trace_state_variable): Add argument.
6846 * target.c (update_current_target): Update.
6847 * remote.c (remote_download_trace_state_variable): Add 'self'
6850 2014-02-19 Tom Tromey <tromey@redhat.com>
6852 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
6854 (target_can_download_tracepoint): Add argument.
6855 * target.c (update_current_target): Update.
6856 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
6858 2014-02-19 Tom Tromey <tromey@redhat.com>
6860 * target.h (struct target_ops) <to_download_tracepoint>: Add
6862 (target_download_tracepoint): Add argument.
6863 * target.c (update_current_target): Update.
6864 * remote.c (remote_download_tracepoint): Add 'self' argument.
6866 2014-02-19 Tom Tromey <tromey@redhat.com>
6868 * target.h (struct target_ops) <to_trace_init>: Add argument.
6869 (target_trace_init): Add argument.
6870 * target.c (update_current_target): Update.
6871 * remote.c (remote_trace_init): Add 'self' argument.
6873 2014-02-19 Tom Tromey <tromey@redhat.com>
6875 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
6876 * target.c (target_fileio_readlink): Add argument.
6877 * remote.c (remote_hostio_readlink): Add 'self' argument.
6878 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
6880 2014-02-19 Tom Tromey <tromey@redhat.com>
6882 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
6883 * target.c (target_fileio_unlink): Add argument.
6884 * remote.c (remote_hostio_unlink): Add 'self' argument.
6885 (remote_file_delete): Update.
6886 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
6888 2014-02-19 Tom Tromey <tromey@redhat.com>
6890 * target.h (struct target_ops) <to_fileio_close>: Add argument.
6891 * target.c (target_fileio_close): Add argument.
6892 * remote.c (remote_hostio_close): Add 'self' argument.
6893 (remote_hostio_close_cleanup): Update.
6894 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
6896 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
6898 2014-02-19 Tom Tromey <tromey@redhat.com>
6900 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
6901 * target.c (target_fileio_pread): Add argument.
6902 * remote.c (remote_hostio_pread): Add 'self' argument.
6903 (remote_bfd_iovec_pread, remote_file_get): Update.
6904 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
6906 2014-02-19 Tom Tromey <tromey@redhat.com>
6908 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
6909 * target.c (target_fileio_pwrite): Add argument.
6910 * remote.c (remote_hostio_pwrite): Add 'self' argument.
6911 (remote_file_put): Update.
6912 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
6914 2014-02-19 Tom Tromey <tromey@redhat.com>
6916 * target.h (struct target_ops) <to_fileio_open>: Add argument.
6917 * target.c (target_fileio_open): Add argument.
6918 * remote.c (remote_hostio_open): Add 'self' argument.
6919 (remote_bfd_iovec_open): Add 'self' argument.
6920 (remote_file_put): Add 'self' argument.
6921 (remote_file_get): Add 'self' argument.
6922 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
6924 2014-02-19 Tom Tromey <tromey@redhat.com>
6926 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6928 (target_can_run_breakpoint_commands): Add argument.
6929 * target.c (update_current_target): Update.
6930 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
6932 (remote_insert_breakpoint): Add 'self' argument.
6933 (remote_insert_hw_breakpoint): Add 'self' argument.
6934 (remote_can_run_breakpoint_commands): Add 'self' argument.
6936 2014-02-19 Tom Tromey <tromey@redhat.com>
6938 * target.h (struct target_ops)
6939 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
6940 (target_supports_evaluation_of_breakpoint_conditions): Add
6942 * target.c (update_current_target): Update.
6943 * remote.c (remote_supports_cond_breakpoints): Add 'self'
6945 (remote_insert_breakpoint): Add 'self' argument.
6946 (remote_insert_hw_breakpoint): Add 'self' argument.
6947 (remote_supports_cond_breakpoints): Add 'self' argument.
6949 2014-02-19 Tom Tromey <tromey@redhat.com>
6951 * target.h (struct target_ops) <to_supports_string_tracing>: Add
6953 (target_supports_string_tracing): Add argument.
6954 * target.c (update_current_target): Update.
6955 * remote.c (remote_supports_string_tracing): Add 'self' argument.
6957 2014-02-19 Tom Tromey <tromey@redhat.com>
6959 * target.h (struct target_ops)
6960 <to_supports_disable_randomization>: Add argument.
6961 * target.c (find_default_supports_disable_randomization): Add
6963 (target_supports_disable_randomization): Add argument.
6964 (find_default_supports_disable_randomization): Add 'self'
6966 * remote.c (extended_remote_supports_disable_randomization): Add
6968 (remote_supports_disable_randomization): Add 'self' argument.
6969 (extended_remote_create_inferior): Update.
6970 * linux-nat.c (linux_nat_supports_disable_randomization): Add
6973 2014-02-19 Tom Tromey <tromey@redhat.com>
6975 * target.h (struct target_ops)
6976 <to_supports_enable_disable_tracepoint>: Add argument.
6977 (target_supports_enable_disable_tracepoint): Add argument.
6978 * target.c (update_current_target): Update.
6979 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
6982 2014-02-19 Tom Tromey <tromey@redhat.com>
6984 * target.h (struct target_ops) <to_supports_multi_process>: Add
6986 (target_supports_multi_process): Add argument.
6987 * target.c (update_current_target): Update.
6988 * remote.c (remote_supports_multi_process): Add 'self' argument.
6989 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
6991 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
6994 2014-02-19 Tom Tromey <tromey@redhat.com>
6996 * target.h (struct target_ops) <to_execution_direction>: Add
6998 (target_execution_direction): Add argument.
6999 * target.c (default_execution_direction): Add 'self' argument.
7000 * record-full.c (record_full_execution_direction): Add 'self'
7003 2014-02-19 Tom Tromey <tromey@redhat.com>
7005 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7007 (target_can_execute_reverse): Add argument.
7008 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7009 * record-full.c (record_full_can_execute_reverse): Add 'self'
7011 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7014 2014-02-19 Tom Tromey <tromey@redhat.com>
7016 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7017 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7019 (target_get_ada_task_ptid): Add argument.
7020 * target.c (update_current_target): Update.
7021 (default_get_ada_task_ptid): Add 'self' argument.
7022 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7023 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7024 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7026 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7028 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7030 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7032 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7033 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7036 2014-02-19 Tom Tromey <tromey@redhat.com>
7038 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7039 (target_goto_bookmark): Add argument.
7040 * target.c (dummy_goto_bookmark): Add 'self' argument.
7041 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7043 2014-02-19 Tom Tromey <tromey@redhat.com>
7045 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7046 (target_get_bookmark): Add argument.
7047 * target.c (dummy_get_bookmark): Add 'self' argument.
7048 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7050 2014-02-19 Tom Tromey <tromey@redhat.com>
7052 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7054 (target_make_corefile_notes): Add argument.
7055 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7056 * procfs.c (procfs_make_note_section): Add 'self' argument.
7057 (procfs_make_note_section): Add 'self' argument.
7058 (procfs_make_note_section): Add 'self' argument.
7059 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7061 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7062 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7063 * exec.c (exec_make_note_section): Add 'self' argument.
7064 (exec_make_note_section): Add 'self' argument.
7066 2014-02-19 Tom Tromey <tromey@redhat.com>
7068 * target.h (struct target_ops) <to_find_memory_regions>: Add
7070 (target_find_memory_regions): Add argument.
7071 * target.c (dummy_find_memory_regions): Add 'self' argument.
7072 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7073 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7074 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7075 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7076 * exec. (exec_do_find_memory_regions): New global.
7077 (exec_set_find_memory_regions): Rewrite.
7078 (exec_find_memory_regions): New function.
7079 (init_exec_ops): Use exec_find_memory_regions.
7081 2014-02-19 Tom Tromey <tromey@redhat.com>
7083 * target.h (struct target_ops) <to_supports_non_stop>: Add
7085 * target.c (find_default_supports_non_stop): Add argument.
7086 (target_supports_non_stop): Add argument.
7087 (find_default_supports_non_stop): Add 'self' argument.
7088 * remote.c (remote_supports_non_stop): Add 'self' argument.
7089 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7091 2014-02-19 Tom Tromey <tromey@redhat.com>
7093 * target.h (struct target_ops) <to_log_command>: Add argument.
7094 (target_log_command): Add argument.
7095 * serial.h (serial_log_command): Add 'self' argument.
7096 * serial.c (serial_log_command): Add 'self' argument.
7098 2014-02-19 Tom Tromey <tromey@redhat.com>
7100 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7101 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7103 (target_pid_to_exec_file): Add argument.
7104 * target.c (debug_to_pid_to_exec_file): Add argument.
7105 (update_current_target): Update.
7106 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7107 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7108 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7109 (linux_handle_extended_wait): Update.
7110 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7111 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7112 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7113 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7115 2014-02-19 Tom Tromey <tromey@redhat.com>
7117 * target.h (struct target_ops) <to_rcmd>: Add argument.
7118 (target_rcmd): Add argument.
7119 * target.c (debug_to_rcmd): Add argument.
7120 (update_current_target, do_monitor_command): Update.
7121 * remote.c (remote_rcmd): Add 'self' argument.
7122 * monitor.c (monitor_rcmd): Add 'self' argument.
7124 2014-02-19 Tom Tromey <tromey@redhat.com>
7126 * windows-nat.c (windows_stop): Add 'self' argument.
7127 * target.h (struct target_ops) <to_stop>: Add argument.
7128 * target.c (target_stop): Add argument.
7129 (debug_to_stop): Add argument.
7130 (update_current_target): Update.
7131 * remote.c (remote_stop): Add 'self' argument.
7132 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7133 (gdbsim_cntrl_c): Update.
7134 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7135 * procfs.c (procfs_stop): Add 'self' argument.
7136 * nto-procfs.c (procfs_stop): Add 'self' argument.
7137 * monitor.c (monitor_stop): Add 'self' argument.
7138 (monitor_open): Update.
7139 * linux-nat.c (linux_nat_stop): Add argument.
7140 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7141 * gnu-nat.c (gnu_stop): Add 'self' argument.
7142 * darwin-nat.c (darwin_stop): Add 'self' argument.
7144 2014-02-19 Tom Tromey <tromey@redhat.com>
7146 * target.h (struct target_ops) <to_thread_name>: Add argument.
7147 * target.c (target_thread_name): Add argument.
7148 (update_current_target): Update.
7149 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7151 2014-02-19 Tom Tromey <tromey@redhat.com>
7153 * target.h (struct target_ops) <to_extra_thread_info>: Add
7155 (target_extra_thread_info): Add argument.
7156 * target.c (update_current_target): Update.
7157 * remote.c (remote_threads_extra_info): Add 'self' argument.
7158 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7160 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7161 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7162 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7164 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7166 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7168 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7171 2014-02-19 Tom Tromey <tromey@redhat.com>
7173 * target.h (struct target_ops) <to_program_signals>: Add argument.
7174 * target.c (target_program_signals): Add argument.
7175 * remote.c (remote_program_signals): Add 'self' argument.
7177 2014-02-19 Tom Tromey <tromey@redhat.com>
7179 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7180 * target.c (target_pass_signals): Add argument.
7181 * remote.c (remote_pass_signals): Add 'self' argument.
7182 (remote_start_remote): Update.
7183 * procfs.c (procfs_pass_signals): Add 'self' argument.
7184 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7185 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7186 (linux_nat_create_inferior, linux_nat_attach): Update.
7188 2014-02-19 Tom Tromey <tromey@redhat.com>
7190 * windows-nat.c (windows_can_run): Add 'self' argument.
7191 * target.h (struct target_ops) <to_can_run>: Add argument.
7192 (target_can_run): Add argument.
7193 * target.c (debug_to_can_run): Add argument.
7194 (update_current_target): Update.
7195 * nto-procfs.c (procfs_can_run): Add 'self' argument.
7196 * inf-child.c (inf_child_can_run): Add 'self' argument.
7197 * go32-nat.c (go32_can_run): Add 'self' argument.
7199 2014-02-19 Tom Tromey <tromey@redhat.com>
7201 * target.h (struct target_ops) <to_has_exited>: Add argument.
7202 (target_has_exited): Add argument.
7203 * target.c (debug_to_has_exited): Add argument.
7204 (update_current_target): Update.
7206 2014-02-19 Tom Tromey <tromey@redhat.com>
7208 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
7210 (target_set_syscall_catchpoint): Add argument.
7211 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
7213 * target.c (update_current_target): Update.
7215 2014-02-19 Tom Tromey <tromey@redhat.com>
7217 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
7219 (target_remove_exec_catchpoint): Add argument.
7220 * target.c (debug_to_remove_exec_catchpoint): Add argument.
7221 (update_current_target): Update.
7222 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
7225 2014-02-19 Tom Tromey <tromey@redhat.com>
7227 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
7229 (target_insert_exec_catchpoint): Add argument.
7230 * target.c (debug_to_insert_exec_catchpoint): Add argument.
7231 (update_current_target): Update.
7232 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
7235 2014-02-19 Tom Tromey <tromey@redhat.com>
7237 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
7239 (target_remove_vfork_catchpoint): Add argument.
7240 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
7241 (update_current_target): Update.
7242 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
7245 2014-02-19 Tom Tromey <tromey@redhat.com>
7247 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
7249 (target_insert_vfork_catchpoint): Add argument.
7250 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
7251 (update_current_target): Update.
7252 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
7255 2014-02-19 Tom Tromey <tromey@redhat.com>
7257 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
7259 (target_remove_fork_catchpoint): Add argument.
7260 * target.c (debug_to_remove_fork_catchpoint): Add argument.
7261 (update_current_target): Update.
7262 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
7265 2014-02-19 Tom Tromey <tromey@redhat.com>
7267 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
7269 (target_insert_fork_catchpoint): Add argument.
7270 * target.c (debug_to_insert_fork_catchpoint): Add argument.
7271 (update_current_target): Update.
7272 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
7275 2014-02-19 Tom Tromey <tromey@redhat.com>
7277 * target.h (struct target_ops) <to_post_startup_inferior>: Add
7279 (target_post_startup_inferior): Add argument.
7280 * target.c (debug_to_post_startup_inferior): Add argument.
7281 (update_current_target): Update.
7282 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
7284 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
7286 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
7288 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
7290 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
7292 (super_post_startup_inferior): Likewise.
7293 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
7295 (super_post_startup_inferior): Likewise.
7296 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
7297 Add 'self' argument.
7298 (super_post_startup_inferior): Likewise.
7300 2014-02-19 Tom Tromey <tromey@redhat.com>
7302 * target.h (struct target_ops) <to_load>: Add argument.
7303 * target.c (target_load): Add argument.
7304 (debug_to_load): Add argument.
7305 (update_current_target): Update.
7306 * remote.c (remote_load): Add 'self' argument.
7307 * remote-sim.c (gdbsim_load): Add 'self' argument.
7308 * remote-mips.c (mips_load): Add 'self' argument.
7309 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
7310 * monitor.c (monitor_load): Add 'self' argument.
7311 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
7313 2014-02-19 Tom Tromey <tromey@redhat.com>
7315 * target.h (struct target_ops) <to_terminal_info>: Add argument.
7316 (target_terminal_info): Add argument.
7317 * target.c (debug_to_terminal_info): Add argument.
7318 (default_terminal_info): Likewise.
7319 * inflow.c (child_terminal_info): Add 'self' argument.
7320 * inferior.h (child_terminal_info): Add 'self' argument.
7321 * go32-nat.c (go32_terminal_info): Add 'self' argument.
7323 2014-02-19 Tom Tromey <tromey@redhat.com>
7325 * target.h (struct target_ops) <to_terminal_save_ours>: Add
7327 (target_terminal_save_ours): Add argument.
7328 * target.c (debug_to_terminal_save_ours): Add argument.
7329 (update_current_target): Update.
7330 * inflow.c (terminal_save_ours): Add 'self' argument.
7331 * inferior.h (terminal_save_ours): Add 'self' argument.
7333 2014-02-19 Tom Tromey <tromey@redhat.com>
7335 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
7336 (target_terminal_ours): Add argument.
7337 * target.c (debug_to_terminal_ours): Add argument.
7338 (update_current_target): Update.
7339 * remote.c (remote_terminal_ours): Add 'self' argument.
7340 (remote_close): Update.
7341 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
7342 * inflow.c (terminal_ours): Add 'self' argument.
7343 * inferior.h (terminal_ours): Add 'self' argument.
7344 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7346 2014-02-19 Pedro Alves <palves@redhat.com>
7347 Tom Tromey <tromey@redhat.com>
7349 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
7351 (target_terminal_ours_for_output): Add argument.
7352 * target.c (debug_to_terminal_ours_for_output): Add argument.
7353 (update_current_target): Update.
7354 * inflow.c (terminal_ours_for_output): Add 'self' argument.
7355 * inferior.h (terminal_ours_for_output): Add 'self' argument.
7356 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7358 2014-02-19 Tom Tromey <tromey@redhat.com>
7360 * target.h (struct target_ops) <to_terminal_inferior>: Add
7362 * target.c (target_terminal_inferior): Add argument.
7363 (update_current_target): Update.
7364 * remote.c (remote_terminal_inferior): Add 'self' argument.
7365 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
7366 * inflow.c (terminal_inferior): Add 'self' argument.
7367 * inferior.h (terminal_inferior): Add 'self' argument.
7368 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
7369 (go32_terminal_inferior): Add 'self' argument.
7371 2014-02-19 Tom Tromey <tromey@redhat.com>
7373 * target.h (struct target_ops) <to_terminal_init>: Add argument.
7374 (target_terminal_init): Add argument.
7375 * target.c (debug_to_terminal_init): Add argument.
7376 (update_current_target): Update.
7377 * inflow.c (terminal_init_inferior): Add 'self' argument.
7378 * inferior.h (terminal_init_inferior): Add 'self' argument.
7379 * go32-nat.c (go32_terminal_init): Add 'self' argument.
7380 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
7382 2014-02-19 Tom Tromey <tromey@redhat.com>
7384 * target.h (struct target_ops)
7385 <to_can_accel_watchpoint_condition>: Add argument.
7386 (target_can_accel_watchpoint_condition): Add argument.
7387 * target.c (debug_to_can_accel_watchpoint_condition): Add
7389 (update_current_target): Update.
7390 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
7393 2014-02-19 Tom Tromey <tromey@redhat.com>
7395 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7397 (target_region_ok_for_hw_watchpoint): Add argument.
7398 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
7399 (default_region_ok_for_hw_watchpoint): Add argument.
7400 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
7401 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
7403 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
7405 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
7407 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
7409 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
7411 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
7413 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
7414 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
7416 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
7417 Add 'self' argument.
7419 2014-02-19 Tom Tromey <tromey@redhat.com>
7421 * target.h (struct target_ops) <to_insert_watchpoint>: Add
7423 (target_insert_watchpoint): Add argument.
7424 * target.c (debug_to_insert_watchpoint): Add argument.
7425 (update_current_target): Update.
7426 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
7427 * remote.c (remote_insert_watchpoint): Add 'self' argument.
7428 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
7429 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
7430 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
7431 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
7433 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
7434 (procfs_insert_hw_watchpoint): Add 'self' argument.
7435 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
7437 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
7439 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
7441 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
7442 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
7444 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
7447 2014-02-19 Tom Tromey <tromey@redhat.com>
7449 * target.h (struct target_ops) <to_remove_watchpoint>: Add
7451 (target_remove_watchpoint): Add argument.
7452 * target.c (debug_to_remove_watchpoint): Add argument.
7453 (update_current_target): Update.
7454 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
7455 * remote.c (remote_remove_watchpoint): Add 'self' argument.
7456 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
7457 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
7458 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
7459 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
7461 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
7462 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
7464 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
7466 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
7468 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
7469 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
7471 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
7474 2014-02-19 Tom Tromey <tromey@redhat.com>
7476 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
7478 (target_remove_hw_breakpoint): Add argument.
7479 * target.c (debug_to_remove_hw_breakpoint): Add argument.
7480 (update_current_target): Update.
7481 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
7482 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
7484 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
7485 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
7487 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
7490 2014-02-19 Tom Tromey <tromey@redhat.com>
7492 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
7494 (target_insert_hw_breakpoint): Add argument.
7495 * target.c (debug_to_insert_hw_breakpoint): Add argument.
7496 (update_current_target): Update.
7497 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
7498 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
7500 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
7501 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
7502 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
7504 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
7507 2014-02-19 Tom Tromey <tromey@redhat.com>
7509 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
7511 (target_can_use_hardware_watchpoint): Add argument.
7512 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
7513 (update_current_target): Update.
7514 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
7516 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
7518 * remote.c (remote_check_watch_resources): Add 'self' argument.
7519 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
7520 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
7522 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
7523 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
7525 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
7527 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
7529 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
7531 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
7533 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
7535 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
7536 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
7538 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
7541 2014-02-19 Tom Tromey <tromey@redhat.com>
7543 * target.h (struct target_ops) <to_post_attach>: Add argument.
7544 (target_post_attach): Add argument.
7545 * target.c (debug_to_post_attach): Add argument.
7546 (update_current_target): Update.
7547 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
7548 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
7549 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
7550 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
7551 * inf-child.c (inf_child_post_attach): Add 'self' argument.
7553 2014-02-19 Tom Tromey <tromey@redhat.com>
7555 * windows-nat.c (windows_close): Add 'self' argument.
7556 * tracepoint.c (tfile_close): Add 'self' argument.
7557 * target.h (struct target_ops) <to_close>: Add argument.
7558 * target.c (target_close): Add argument.
7559 (update_current_target): Update.
7560 * remote.c (remote_close): Add 'self' argument.
7561 * remote-sim.c (gdbsim_close): Add 'self' argument.
7562 * remote-mips.c (mips_close): Add 'self' argument.
7563 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
7564 * record-full.c (record_full_close): Add 'self' argument.
7565 * record-btrace.c (record_btrace_close): Add 'self' argument.
7566 * monitor.h (monitor_close): Add 'self' argument.
7567 * monitor.c (monitor_close): Add 'self' argument.
7568 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
7569 * linux-nat.c (linux_nat_close): Add argument.
7570 * go32-nat.c (go32_close): Add 'self' argument.
7571 * exec.c (exec_close_1): Add 'self' argument.
7572 * ctf.c (ctf_close): Add 'self' argument.
7573 * corelow.c (core_close): Add 'self' argument.
7574 (core_close_cleanup): Update.
7575 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
7576 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
7578 2014-02-19 Tom Tromey <tromey@redhat.com>
7580 * remote.c (remote_load): New function.
7581 (init_remote_ops): Use it.
7583 2014-02-19 Tom Tromey <tromey@redhat.com>
7585 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
7587 * common/linux-btrace.h (linux_supports_btrace): Update.
7588 * remote.c (remote_supports_btrace): Add "self" argument.
7589 * target-delegates.c: Rebuild.
7590 * target.c (target_supports_btrace): Remove.
7591 * target.h (struct target_ops) <to_supports_btrace>: Add
7592 target_ops argument.
7593 (target_supports_btrace): New define.
7595 2014-02-19 Tom Tromey <tromey@redhat.com>
7597 * record-full.c (record_full_beneath_to_resume_ops)
7598 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
7599 (record_full_beneath_to_wait)
7600 (record_full_beneath_to_store_registers_ops)
7601 (record_full_beneath_to_store_registers)
7602 (record_full_beneath_to_xfer_partial_ops)
7603 (record_full_beneath_to_xfer_partial)
7604 (record_full_beneath_to_insert_breakpoint_ops)
7605 (record_full_beneath_to_insert_breakpoint)
7606 (record_full_beneath_to_remove_breakpoint_ops)
7607 (record_full_beneath_to_remove_breakpoint)
7608 (record_full_beneath_to_stopped_by_watchpoint)
7609 (record_full_beneath_to_stopped_data_address)
7610 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
7611 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
7612 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
7613 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
7614 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
7615 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
7616 (tmp_to_stopped_data_address, tmp_to_async): Remove.
7617 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
7618 (record_full_resume, record_full_wait_1)
7619 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
7620 (record_full_store_registers, record_full_xfer_partial)
7621 (record_full_insert_breakpoint, record_full_remove_breakpoint)
7622 (record_full_async, record_full_core_xfer_partial): Use target
7624 * target-delegates.c: Rebuild.
7625 * target.c (current_xfer_partial): Remove.
7626 (update_current_target): Do not INHERIT or de_fault
7627 to_insert_breakpoint, to_remove_breakpoint,
7628 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
7629 to_is_async_p, to_async. Do not set to_xfer_partial field.
7630 (default_xfer_partial): Simplify.
7631 (current_xfer_partial): Remove.
7632 (target_wait, target_resume): Simplify.
7633 (find_default_can_async_p, find_default_is_async_p): Update.
7634 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
7635 to_xfer_partial, to_stopped_by_watchpoint,
7636 to_stopped_data_address.
7637 (target_store_registers): Simplify.
7638 (forward_target_remove_breakpoint)
7639 (forward_target_insert_breakpoint): Remove.
7640 (target_remove_breakpoint, target_insert_breakpoint)
7641 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
7642 * target.h (struct target_ops) <to_resume, to_wait,
7643 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
7644 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
7645 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
7647 (forward_target_remove_breakpoint)
7648 (forward_target_insert_breakpoint): Remove.
7649 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
7651 (record_btrace_insert_breakpoint): Delegate directly.
7653 2014-02-19 Tom Tromey <tromey@redhat.com>
7656 * target-delegates.c: New file.
7657 * target.c: Include target-delegates.c.
7658 (init_dummy_target): Call install_dummy_methods.
7659 (complete_target_initialization): Call install_delegators.
7660 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
7661 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
7662 * make-target-delegates: New file.
7664 2014-02-19 Tom Tromey <tromey@redhat.com>
7666 * record.c (find_record_target): Use find_target_at.
7667 * target.c (find_target_at): New function.
7668 * target.h (find_target_at): Declare.
7670 2014-02-19 Tom Tromey <tromey@redhat.com>
7672 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
7674 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
7676 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
7677 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
7679 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
7681 * linux-nat.c (save_sigtrap): Update.
7682 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
7683 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
7684 (linux_nat_close): Update.
7685 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
7687 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
7689 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
7690 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
7691 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
7692 (tmp_to_async): Add 'ops' argument.
7693 (record_full_stopped_by_watchpoint, record_full_async)
7694 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
7696 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
7697 (m32r_stopped_by_watchpoint): Add 'ops' argument.
7698 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
7699 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
7700 (remote_is_async_p, remote_async): Add 'ops' argument.
7701 (remote_stopped_data_address): Update.
7702 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
7703 * target.c (update_current_target)
7704 (find_default_can_async_p, find_default_is_async_p): Update.
7705 (init_dummy_target): Update.
7706 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
7707 * target.h (struct target_ops) <to_stopped_by_watchpoint,
7708 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
7709 (target_can_async_p, target_is_async_p, target_async)
7710 (target_stopped_by_watchpoint): Update.
7712 2014-02-19 Yao Qi <yao@codesourcery.com>
7715 * gdbarch.sh: Remove startup_gdbarch.
7716 * gdbarch.c: Regenerated.
7717 * gdbarch.h: Likewise.
7719 2014-02-17 Kevin Buettner <kevinb@redhat.com>
7721 * rl78-tdep.c (rl78_g10_register_name): New function.
7722 (rl78_return_value): Add g10 support.
7723 (rl78_gdbarch_init): Register rl78_g10_register_name for the
7726 2014-02-17 Doug Evans <xdje42@gmail.com>
7728 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
7729 (SUBDIR_GUILE_SRCS): Ditto.
7730 (scm-gsmob.o): Ditto.
7732 2014-02-17 Yao Qi <yao@codesourcery.com>
7734 * gnu-nat.c (ILL_RPC): Declare defined function.
7736 2014-02-17 Yao Qi <yao@codesourcery.com>
7738 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
7739 mach_msg_type_number_t.
7740 (gnu_write_inferior): Likewise.
7742 2014-02-17 Yao Qi <yao@codesourcery.com>
7744 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
7746 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
7747 (inf_validate_procs, inf_signal): Likewise.
7748 (S_exception_raise_request): Likewise.
7749 (do_mach_notify_dead_name): Likewise.
7750 (steal_exc_port): Likewise.
7751 (gnu_read_inferior): Change 'copy_count''s type to
7752 mach_msg_type_number_t.
7753 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
7756 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
7758 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
7759 flag. Adjust all users; in particular...
7760 (gnu_wait): ..., don't decrement its value in here...
7761 (gnu_create_inferior): ..., and instead set the flag in here,
7762 around the startup_inferior call, and call that one with
7763 START_INFERIOR_TRAPS_EXPECTED.
7765 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
7766 (ILL_RPC): ... new macro.
7767 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
7768 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
7769 (do_mach_notify_send_once, S_proc_setmsgport_reply)
7770 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
7771 functions with ILL_RPC macro.
7772 (S_proc_pid2task_reply, S_proc_task2pid_reply)
7773 (S_proc_task2proc_reply, S_proc_proc2task_reply)
7774 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
7775 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
7776 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
7777 (S_proc_getlogin_reply, S_proc_getsid_reply)
7778 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
7779 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
7780 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
7781 (S_proc_getnports_reply, S_proc_is_important_reply)
7782 (S_proc_get_code_reply): New stub functions, generated with
7785 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
7786 collected the type check structures.
7788 * reply_mig_hack.awk: Don't expect to see the auto keyword.
7790 2014-02-14 Doug Evans <dje@google.com>
7792 * target.c (target_write_partial): Fix result type.
7794 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
7796 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
7797 the proper offsets to access fpregset_t.
7799 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
7801 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
7802 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
7803 * h8300-tdep.c (setmachinelist): Remove global.
7804 * hppa-tdep.c (hppa_sigtramp): Remove global.
7805 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
7806 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
7807 * ravenscar-thread.c (update_target_observer): Remove global.
7808 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
7810 2014-02-12 Tom Tromey <tromey@redhat.com>
7812 * common/rsp-low.c: Update comments.
7813 * common/rsp-low.h: Update comments.
7815 2014-02-12 Tom Tromey <tromey@redhat.com>
7817 * common/rsp-low.c (convert_ascii_to_int): Remove.
7818 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
7820 2014-02-12 Tom Tromey <tromey@redhat.com>
7822 * common/rsp-low.h (unhexify): Don't declare.
7823 * common/rsp-low.c (unhexify): Remove.
7825 2014-02-12 Tom Tromey <tromey@redhat.com>
7827 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
7828 * common/rsp-low.c (convert_int_to_ascii): Remove.
7830 2014-02-12 Tom Tromey <tromey@redhat.com>
7832 * common/rsp-low.h (hexify): Don't declare.
7833 * common/rsp-low.c (hexify): Remove.
7835 2014-02-12 Tom Tromey <tromey@redhat.com>
7837 * common/rsp-low.c (hexify): Never take strlen of argument.
7839 2014-02-12 Tom Tromey <tromey@redhat.com>
7841 * common/rsp-low.c (bin2hex): Never take strlen of argument.
7842 * remote.c (extended_remote_run, remote_rcmd)
7843 (remote_download_trace_state_variable, remote_save_trace_data)
7844 (remote_set_trace_notes): Update.
7845 * tracepoint.c (encode_source_string, tfile_write_status)
7846 (tfile_write_uploaded_tsv): Update.
7848 2014-02-12 Tom Tromey <tromey@redhat.com>
7850 * tracepoint.c: Include rsp-low.h.
7851 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
7852 * remote.c: Include rsp-low.h.
7853 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
7854 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
7855 (remote_unescape_input): Move to common/rsp-low.c.
7856 * common/rsp-low.h: New file.
7857 * common/rsp-low.c: New file.
7858 * Makefile.in (SFILES): Add common/rsp-low.c.
7859 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
7860 (COMMON_OBS): Add rsp-low.o.
7861 (rsp-low.o): New target.
7863 2014-02-12 Tom Tromey <tromey@redhat.com>
7865 * utils.h: Include print-utils.h.
7866 (host_address_to_string, plongest, pulongest, phex, phex_nz)
7867 (int_string, core_addr_to_string, core_addr_to_string_nz)
7868 (hex_string, hex_string_custom): Don't declare.
7869 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
7870 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
7871 (hex_string_custom, int_string, core_addr_to_string)
7872 (core_addr_to_string_nz, host_address_to_string): Move to
7873 common/print-utils.c.
7874 * common/print-utils.h: New file.
7875 * common/print-utils.c: New file
7876 * Makefile.in (SFILES): Add common/print-utils.c.
7877 (HFILES_NO_SRCDIR): Add common/print-utils.h.
7878 (COMMON_OBS): Add print-utils.o.
7879 (print-utils.o): New target.
7881 2014-02-12 Tom Tromey <tromey@redhat.com>
7883 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
7885 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7887 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
7889 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7891 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
7892 if a PT_IO ptrace request returns sucessfully but indicates that 0
7893 bytes were transferred.
7895 2014-02-12 Pedro Alves <palves@redhat.com>
7896 Kevin Buettner <kevinb@redhat.com>
7898 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
7899 TYPE_INSTANCE_FLAG_CODE_SPACE.
7901 2014-02-12 Pedro Alves <palves@redhat.com>
7903 * h8300-tdep.c (pseudo_from_raw_register)
7904 (raw_from_pseudo_register): New functions.
7905 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
7908 2014-02-12 Pedro Alves <palves@redhat.com>
7910 * h8300-tdep.c (h8300_register_sim_regno): New function.
7911 (h8300_gdbarch_init): Install h8300_register_sim_regno as
7912 gdbarch_register_sim_regno hook.
7914 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7916 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
7918 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7920 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
7922 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7924 * obsd-tdep.h (obsd_init_abi): New prototype.
7925 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
7926 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
7927 (obsd_init_abi): New functions.
7928 * i386obsd-tdep.c: Include "obsd-tdep.h".
7929 (i386obsd_init_abi): Call obsd_init_abi.
7930 * amd64obsd-tdep.c: Include "obsd-tdep.h".
7931 (amd64obsd_init_abi): Call obsd_init_abi.
7932 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
7933 obsd-tdep.c to gdb_target_obs.
7935 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
7937 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
7938 double float arguments to 16-byte in the argument slots.
7940 2014-02-11 Doug Evans <xdje42@gmail.com>
7942 * configure.ac: Don't crash if pkg-config is not found and guile
7943 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
7945 * configure: Regenerate.
7947 2014-02-11 Yao Qi <yao@codesourcery.com>
7949 * aix-thread.c (aix_thread_xfer_partial): Update comments.
7950 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
7951 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7952 * gnu-nat.c (gnu_xfer_memory): Likewise.
7953 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7954 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7955 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7956 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7958 2014-02-11 Yao Qi <yao@codesourcery.com>
7960 * target.h (enum target_xfer_error): Rename to ...
7961 (enum target_xfer_status): ... it. New. All users updated.
7962 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
7964 (TARGET_XFER_STATUS_ERROR_P): New macro.
7965 (target_xfer_error_to_string): Remove declaration.
7966 (target_xfer_status_to_string): Declare.
7967 (target_xfer_partial_ftype): Adjust it.
7968 (struct target_ops) <to_xfer_partial>: Return
7969 target_xfer_status. Add argument xfered_len. Update
7971 * target.c (target_xfer_error_to_string): Rename to ...
7972 (target_xfer_status_to_string): ... it. New. All callers
7974 (target_read_live_memory): Likewise. Call target_xfer_partial
7975 instead of target_read.
7976 (memory_xfer_live_readonly_partial): Return
7977 target_xfer_status. Add argument xfered_len.
7978 (raw_memory_xfer_partial): Likewise.
7979 (memory_xfer_partial_1): Likewise.
7980 (memory_xfer_partial): Likewise.
7981 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
7982 properly. Update debug message.
7983 (default_xfer_partial, current_xfer_partial): Likewise.
7984 (target_write_partial): Likewise.
7985 (target_read_partial): Likewise. All callers updated.
7986 (read_whatever_is_readable): Likewise.
7987 (target_write_with_progress): Likewise.
7988 (target_read_alloc_1): Likewise.
7990 * aix-thread.c (aix_thread_xfer_partial): Likewise.
7991 * auxv.c (procfs_xfer_auxv): Likewise.
7992 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
7993 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7994 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7995 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
7996 * corefile.c (read_memory): Adjust.
7997 * corelow.c (core_xfer_partial): Likewise.
7998 * ctf.c (ctf_xfer_partial): Likewise.
7999 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8001 (darwin_xfer_partial): Likewise.
8002 * exec.c (section_table_xfer_memory_partial): Likewise. All
8004 (exec_xfer_partial): Likewise.
8005 * exec.h (section_table_xfer_memory_partial): Update
8007 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8009 (gnu_xfer_partial): Likewise.
8010 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8011 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8012 (ia64_hpux_xfer_solib_got): Likewise.
8013 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8014 type of 'partial_len' to ULONGEST.
8015 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8016 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8017 (linux_nat_xfer_partial): Likewise.
8018 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8019 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8020 * monitor.c (monitor_xfer_memory): Likewise.
8021 (monitor_xfer_partial): Likewise.
8022 * procfs.c (procfs_xfer_partial): Likewise.
8023 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8024 * record-full.c (record_full_xfer_partial): Likewise.
8025 (record_full_core_xfer_partial): Likewise.
8026 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8027 (gdbsim_xfer_partial): Likewise.
8028 * remote.c (remote_write_bytes_aux): Likewise. All callers
8030 (remote_write_bytes, remote_read_bytes): Likewise. All
8032 (remote_flash_erase): Likewise. All callers updated.
8033 (remote_write_qxfer): Likewise. All callers updated.
8034 (remote_read_qxfer): Likewise. All callers updated.
8035 (remote_xfer_partial): Likewise.
8036 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8037 (rs6000_xfer_shared_libraries): Likewise.
8038 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8039 (sol_thread_xfer_partial): Likewise.
8040 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8041 (sparc_xfer_partial): Likewise.
8042 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8044 (spu_xfer_partial): Likewise.
8045 * spu-multiarch.c (spu_xfer_partial): Likewise.
8046 * tracepoint.c (tfile_xfer_partial): Likewise.
8047 * windows-nat.c (windows_xfer_memory): Likewise.
8048 (windows_xfer_shared_libraries): Likewise.
8049 (windows_xfer_partial): Likewise.
8050 * valprint.c: Replace 'target_xfer_error' with
8051 'target_xfer_status' in comments.
8053 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8055 Checked in by Joel Brobecker <brobecker@adacore.com>.
8056 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8058 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8060 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8061 function parameters.
8063 2014-02-10 Will Newton <will.newton@linaro.org>
8065 * elfread.c (elf_rel_plt_read): Look for a .got section if
8066 looking up .got.plt fails.
8067 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8068 on address passed to elf_gnu_ifunc_record_cache.
8069 (elf_gnu_ifunc_resolve_addr): Likewise.
8070 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8072 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8074 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8075 (X_RETTURN): New macro.
8076 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8078 * sparc64-tdep.c (sparc64_init_abi): Hook
8079 sparc_in_function_epilogue_p.
8081 2014-02-10 Gary Benson <gbenson@redhat.com>
8083 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8084 Rename name_matcher to symbol_matcher.
8086 2014-02-10 Gary Benson <gbenson@redhat.com>
8088 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8089 Use expand_symtabs_file_matcher_ftype and
8090 expand_symtabs_symbol_matcher_ftype.
8092 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8094 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8095 (struct ada_symbol_cache): New.
8096 (ada_free_symbol_cache): Forward declare.
8097 (struct ada_pspace_data): New.
8098 (ada_pspace_data_handle): New static global.
8099 (get_ada_pspace_data, ada_pspace_data_cleanup)
8100 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8101 (cache_space, cache): Delete, now folded inside struct
8103 (ada_get_symbol_cache): New function.
8104 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8106 (_initialize_ada_language): Remove initialization of cache_space.
8107 Move call to observer_attach_inferior_exit up, grouping it
8108 with the other observer registrations inside this function.
8109 Rename command to be more general. Add call to
8110 register_program_space_data_with_cleanup.
8112 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8114 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8115 ada_new_objfile_observer.
8116 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8117 (_initialize_tasks): Update uses of ada_new_objfile_observer
8118 and ada_tasks_normal_stop_observer.
8120 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8122 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8123 returned by the 'Length attribute to integer.
8125 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8127 * ada-lang.c (_initialize_ada_language): Initialize
8128 cache_space obstack.
8130 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8132 * ada-lang.c (HASH_SIZE): New macro.
8133 (struct cache_entry): New type.
8134 (cache_space, cache): New static globals.
8135 (ada_clear_symbol_cache, find_entry): New functions.
8136 (lookup_cached_symbol, cache_symbol): Implement.
8137 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8138 (_initialize_ada_language): Attach ada_new_objfile_observer
8139 and ada_free_objfile_observer.
8141 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8143 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8144 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8145 struct block * parameter.
8146 (ada_lookup_symbol_list_worker): Constify local variable "block".
8147 Remove cast which is no longer necessary.
8149 2014-02-10 Doug Evans <xdje42@gmail.com>
8151 Add Guile as an extension language.
8152 * NEWS: Mention Guile scripting.
8153 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8154 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8155 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8156 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8157 (CLIBS): Add GUILE_LIBS.
8158 (install-guile): New rule.
8159 (guile.o): New rule.
8160 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8161 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8162 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8163 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8164 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8165 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8166 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8167 * configure.ac: New option --with-guile.
8168 * configure: Regenerate.
8169 * config.in: Regenerate.
8170 * auto-load.c: Remove #include "python/python.h". Add #include
8171 "gdb/section-scripts.h".
8172 (source_section_scripts): Handle Guile scripts.
8173 (_initialize_auto_load): Add name of Guile objfile script to
8174 scripts-directory help text.
8175 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8176 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8177 (struct breakpoint): New member scm_bp_object.
8178 * defs.h (enum command_control_type): New value guile_control.
8179 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8181 (show_user): Update comment.
8182 (_initialize_cli_cmds): Update help text for "show user". Update help
8183 text for max-user-call-depth.
8184 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8186 (multi_line_command_p): Add guile_control.
8187 (print_command_lines): Handle guile_control.
8188 (execute_control_command, recurse_read_control_structure): Ditto.
8189 (process_next_line): Recognize "guile" commands.
8190 * disasm.c (gdb_disassemble_info): Make non-static.
8191 * disasm.h: #include "dis-asm.h".
8192 (struct gdbarch): Add forward decl.
8193 (gdb_disassemble_info): Declare.
8194 * extension.c: #include "guile/guile.h".
8195 (extension_languages): Add guile.
8196 (get_ext_lang_defn): Handle EXT_LANG_GDB.
8197 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
8198 * gdbtypes.c (get_unsigned_type_max): New function.
8199 (get_signed_type_minmax): New function.
8200 * gdbtypes.h (get_unsigned_type_max): Declare.
8201 (get_signed_type_minmax): Declare.
8202 * guile/README: New file.
8203 * guile/guile-internal.h: New file.
8204 * guile/guile.c: New file.
8205 * guile/guile.h: New file.
8206 * guile/scm-arch.c: New file.
8207 * guile/scm-auto-load.c: New file.
8208 * guile/scm-block.c: New file.
8209 * guile/scm-breakpoint.c: New file.
8210 * guile/scm-disasm.c: New file.
8211 * guile/scm-exception.c: New file.
8212 * guile/scm-frame.c: New file.
8213 * guile/scm-gsmob.c: New file.
8214 * guile/scm-iterator.c: New file.
8215 * guile/scm-lazy-string.c: New file.
8216 * guile/scm-math.c: New file.
8217 * guile/scm-objfile.c: New file.
8218 * guile/scm-ports.c: New file.
8219 * guile/scm-pretty-print.c: New file.
8220 * guile/scm-safe-call.c: New file.
8221 * guile/scm-string.c: New file.
8222 * guile/scm-symbol.c: New file.
8223 * guile/scm-symtab.c: New file.
8224 * guile/scm-type.c: New file.
8225 * guile/scm-utils.c: New file.
8226 * guile/scm-value.c: New file.
8227 * guile/lib/gdb.scm: New file.
8228 * guile/lib/gdb/boot.scm: New file.
8229 * guile/lib/gdb/experimental.scm: New file.
8230 * guile/lib/gdb/init.scm: New file.
8231 * guile/lib/gdb/iterator.scm: New file.
8232 * guile/lib/gdb/printing.scm: New file.
8233 * guile/lib/gdb/types.scm: New file.
8234 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
8235 (VPATH): Add $(GUILE_SRCDIR).
8236 (GUILE_DIR): New variable.
8237 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
8238 (all): Add stamp-guile dependency.
8239 (stamp-guile): New rule.
8240 (clean-guile, install-guile, uninstall-guile): New rules.
8241 (install-only): Add install-guile dependency.
8242 (uninstall): Add uninstall-guile dependency.
8243 (clean): Add clean-guile dependency.
8245 2014-02-09 Doug Evans <xdje42@gmail.com>
8247 Revert this patch (which I approved, mea culpa).
8249 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8251 * Makefile.in (all-lib): Remove.
8252 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8254 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8256 Fix Python stack corruption.
8257 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
8260 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8262 * Makefile.in (all-lib): Remove.
8263 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8265 2014-02-07 Doug Evans <dje@google.com>
8267 * extension-priv.h (extension_language_script_ops): Add comment.
8268 (extension_language_ops): Add comment.
8269 (active_ext_lang_state): Fix typo in comment.
8271 2014-02-07 Pedro Alves <palves@redhat.com>
8273 PR breakpoints/16292
8274 * infrun.c (handle_signal_stop) <signal arrives while stepping
8275 over a breakpoint>: Switch back to the stepping thread.
8277 2014-02-07 Yao Qi <yao@codesourcery.com>
8279 * target.c (target_xfer_partial): Return zero if LEN is zero.
8281 2014-02-07 Yao Qi <yao@codesourcery.com>
8283 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
8284 (ld_so_xfer_auxv): Likewise.
8285 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8286 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8287 * corelow.c (core_xfer_partial): Likewise.
8288 * ctf.c (ctf_xfer_partial): Likewise.
8289 * darwin-nat.c (darwin_read_dyld_info): Likewise.
8290 (darwin_xfer_partial): Likewise.
8291 * exec.c (exec_xfer_partial): Likewise.
8292 * gnu-nat.c (gnu_xfer_partial): Likewise.
8293 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
8294 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8295 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8296 * linux-nat.c (linux_xfer_siginfo): Likewise.
8297 (linux_proc_xfer_spu): Likewise.
8298 * procfs.c (procfs_xfer_partial): Likewise.
8299 * record-full.c (record_full_xfer_partial): Likewise.
8300 (record_full_core_xfer_partial): Likewise.
8301 * remote-sim.c (gdbsim_xfer_partial): Likewise.
8302 * remote.c (remote_write_qxfer): Likewise.
8303 (remote_write_qxfer, remote_read_qxfer): Likewise.
8304 (remote_xfer_partial): Likewise.
8305 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8306 (rs6000_xfer_shared_libraries): Likewise.
8307 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8308 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8309 (spu_xfer_partial): Likewise.
8310 * target.c (memory_xfer_partial_1): Likewise.
8311 * tracepoint.c (tfile_xfer_partial): Likewise.
8312 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
8313 (windows_xfer_partial): Likewise.
8315 2014-02-07 Yao Qi <yao@codesourcery.com>
8317 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
8319 (core_xfer_shared_libraries_aix): Likewise.
8320 * gdbarch.c, gdbarch.h: Regenerated.
8321 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
8322 ULONGEST. Change 'len_avail' type to ULONGEST.
8323 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8324 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8326 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
8328 2014-02-07 Yao Qi <yao@codesourcery.com>
8330 * corefile.c (memory_error): Get 'exception' from ERR and pass
8331 'exception' to throw_error.
8333 2014-02-06 Doug Evans <xdje42@gmail.com>
8335 * configure.ac (libpython checking): Remove all but python.o from
8336 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
8337 * configure: Regenerate.
8339 * Makefile.in (SFILES): Add extension.c.
8340 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
8341 (COMMON_OBS): Add extension.o.
8342 * extension.h: New file.
8343 * extension-priv.h: New file.
8344 * extension.c: New file.
8346 * python/python-internal.h: #include "extension.h".
8347 (gdbpy_auto_load_enabled): Declare.
8348 (gdbpy_apply_val_pretty_printer): Declare.
8349 (gdbpy_apply_frame_filter): Declare.
8350 (gdbpy_preserve_values): Declare.
8351 (gdbpy_breakpoint_cond_says_stop): Declare.
8352 (gdbpy_breakpoint_has_cond): Declare.
8353 (void source_python_script_for_objfile): Delete.
8354 * python/python.c: #include "extension-priv.h".
8355 Delete inclusion of "observer.h".
8356 (extension_language_python): Moved here and renamed from
8357 script_language_python in py-auto-load.c.
8358 Redefined to be of type extension_language_defn.
8359 (python_extension_script_ops): New global.
8360 (python_extension_ops): New global.
8361 (struct python_env): New member previous_active.
8362 (restore_python_env): Call restore_active_ext_lang.
8363 (ensure_python_env): Call set_active_ext_lang.
8364 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
8366 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
8368 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
8370 (gdbpy_eval_from_control_command): Renamed from
8371 eval_python_from_control_command, made static. New arg extlang.
8372 (gdbpy_source_script) Renamed from source_python_script, made static.
8374 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
8375 result to int. New arg extlang.
8376 (gdbpy_source_objfile_script): Renamed from
8377 source_python_script_for_objfile, made static. New arg extlang.
8378 (gdbpy_start_type_printers): Renamed from start_type_printers, made
8379 static. New args extlang, extlang_printers. Change result type to
8381 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
8382 static. New arg extlang. Rename arg printers to extlang_printers
8383 and change type to ext_lang_type_printers *.
8384 (gdbpy_free_type_printers): Renamed from free_type_printers, made
8385 static. Replace argument arg with extlang, extlang_printers.
8386 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
8387 (!HAVE_PYTHON, source_python_script): Delete.
8388 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
8389 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
8390 (!HAVE_PYTHON, start_type_printers): Delete.
8391 (!HAVE_PYTHON, apply_type_printers): Delete.
8392 (!HAVE_PYTHON, free_type_printers): Delete.
8393 (_initialize_python): Delete call to observer_attach_before_prompt.
8394 (finalize_python): Set/restore active extension language.
8395 (gdbpy_finish_initialization) Renamed from
8396 finish_python_initialization, made static. New arg extlang.
8397 (gdbpy_initialized): New function.
8398 * python/python.h: #include "extension.h". Delete #include
8399 "value.h", "mi/mi-cmds.h".
8400 (extension_language_python): Declare.
8401 (GDBPY_AUTO_FILE_NAME): Delete.
8402 (enum py_bt_status): Moved to extension.h and renamed to
8404 (enum frame_filter_flags): Moved to extension.h.
8405 (enum py_frame_args): Moved to extension.h and renamed to
8406 ext_lang_frame_args.
8407 (finish_python_initialization): Delete.
8408 (eval_python_from_control_command): Delete.
8409 (source_python_script): Delete.
8410 (apply_val_pretty_printer): Delete.
8411 (apply_frame_filter): Delete.
8412 (preserve_python_values): Delete.
8413 (gdbpy_script_language_defn): Delete.
8414 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
8415 (start_type_printers, apply_type_printers, free_type_printers): Delete.
8417 * auto-load.c: #include "extension.h".
8418 (GDB_AUTO_FILE_NAME): Delete.
8419 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
8420 (script_language_gdb): Delete, moved to extension.c and renamed to
8421 extension_language_gdb.
8422 (source_gdb_script_for_objfile): Delete.
8423 (auto_load_pspace_info): New member unsupported_script_warning_printed.
8424 (loaded_script): Change type of language member to
8425 struct extension_language_defn *.
8426 (init_loaded_scripts_info): Initialize
8427 unsupported_script_warning_printed.
8428 (maybe_add_script): Make static. Change type of language arg to
8429 struct extension_language_defn *.
8430 (clear_section_scripts): Reset unsupported_script_warning_printed.
8431 (auto_load_objfile_script_1): Rewrite to use extension language API.
8432 (auto_load_objfile_script): Make public. Remove support-compiled-in
8433 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
8434 (source_section_scripts): Rewrite to use extension language API.
8435 (load_auto_scripts_for_objfile): Rewrite to use
8436 auto_load_scripts_for_objfile.
8437 (collect_matching_scripts_data): Change type of language member to
8438 struct extension_language_defn *.
8439 (auto_load_info_scripts): Change type of language arg to
8440 struct extension_language_defn *.
8441 (unsupported_script_warning_print): New function.
8442 (script_not_found_warning_print): Make static.
8443 (_initialize_auto_load): Rewrite construction of scripts-directory
8445 * auto-load.h (struct objfile): Add forward decl.
8446 (struct script_language): Delete.
8447 (struct auto_load_pspace_info): Add forward decl.
8448 (struct extension_language_defn): Add forward decl.
8449 (maybe_add_script): Delete.
8450 (auto_load_objfile_script): Declare.
8451 (script_not_found_warning_print): Delete.
8452 (auto_load_info_scripts): Update prototype.
8453 (auto_load_gdb_scripts_enabled): Declare.
8454 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
8455 auto_load_python_scripts_enabled and made public.
8456 (script_language_python): Delete, moved to python.c.
8457 (gdbpy_script_language_defn): Delete.
8458 (info_auto_load_python_scripts): Update to use
8459 extension_language_python.
8461 * breakpoint.c (condition_command): Replace call to
8462 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
8463 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
8464 with call to breakpoint_ext_lang_cond_says_stop.
8465 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
8466 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
8467 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
8468 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
8470 (local_setattro): Print name of extension language with existing
8473 * valprint.c (val_print, value_print): Update to call
8474 apply_ext_lang_val_pretty_printer.
8475 * cp-valprint.c (cp_print_value): Update call to
8476 apply_ext_lang_val_pretty_printer.
8477 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
8478 (gdbpy_apply_val_pretty_printer): Renamed from
8479 apply_val_pretty_printer. New arg extlang.
8480 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
8482 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
8483 extension language API.
8484 * cli/cli-script.c (execute_control_command): Update to call
8485 eval_ext_lang_from_control_command.
8487 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
8488 enum ext_lang_bt_status values. Update call to
8489 apply_ext_lang_frame_filter.
8490 (mi_cmd_stack_list_locals): Ditto.
8491 (mi_cmd_stack_list_args): Ditto.
8492 (mi_cmd_stack_list_variables): Ditto.
8493 * mi/mi-main.c: Delete #include "python/python-internal.h".
8494 Add #include "extension.h".
8495 (mi_cmd_list_features): Replace reference to python internal variable
8496 gdb_python_initialized with call to ext_lang_initialized_p.
8498 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
8499 Update to use enum ext_lang_frame_args. Update to call
8500 apply_ext_lang_frame_filter.
8501 * python/py-framefilter.c (extract_sym): Update to use enum
8503 (extract_value, py_print_type, py_print_value): Ditto.
8504 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
8505 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
8506 (py_print_frame): Ditto.
8507 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
8508 New arg extlang. Update to use enum ext_lang_bt_status.
8510 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
8511 finish_python_initialization. Replace with call to
8512 finish_ext_lang_initialization.
8514 * typeprint.c (do_free_global_table): Update to call
8515 free_ext_lang_type_printers.
8516 (create_global_typedef_table): Update to call
8517 start_ext_lang_type_printers.
8518 (find_global_typedef): Update to call apply_ext_lang_type_printers.
8519 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
8520 (type_print_options): Change type of global_printers from "void *"
8521 to "struct ext_lang_type_printers *".
8523 * value.c (preserve_values): Update to call preserve_ext_lang_values.
8524 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
8525 (gdbpy_preserve_values): Renamed from preserve_python_values.
8527 (!HAVE_PYTHON, preserve_python_values): Delete.
8529 * utils.c (quit_flag): Delete, moved to extension.c.
8530 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
8533 * eval.c: Delete #include "python/python.h".
8534 * main.c: Delete #include "python/python.h".
8536 * defs.h: Update comment.
8538 2014-02-06 Joel Brobecker <brobecker@adacore.com>
8542 2014-02-05 Mark Kettenis <kettenis@gnu.org>
8544 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
8547 2014-02-05 Yao Qi <yao@codesourcery.com>
8549 * remote.c (remote_pass_signals): Remove local 'buf' and use
8551 (remote_program_signals): Likewise.
8553 2014-02-05 Yao Qi <yao@codesourcery.com>
8555 * ctf.c: Include "inferior.h" and "gdbthread.h".
8556 (CTF_PID): A new macro.
8557 (ctf_open): Call inferior_appeared and add_thread_silent.
8558 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
8559 (ctf_thread_alive): New function.
8560 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
8562 2014-02-05 Yao Qi <yao@codesourcery.com>
8566 2013-05-24 Yao Qi <yao@codesourcery.com>
8568 * tracepoint.c (TFILE_PID): Remove.
8569 (tfile_open): Don't add thread and inferior.
8570 (tfile_close): Don't set 'inferior_ptid'. Don't call
8571 exit_inferior_silent.
8572 (tfile_thread_alive): Remove.
8573 (init_tfile_ops): Don't set field 'to_thread_alive' of
8576 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
8578 * remote.c (remote_start_remote): Call remote_check_symbols even
8579 if only symbol-file (not file) has been given.
8581 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8583 * gdbarch.sh (skip_entrypoint): New callback.
8584 * gdbarch.c, gdbarch.h: Regenerate.
8585 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
8586 * infrun.c (fill_in_stop_func): Likewise.
8587 * ppc-linux-tdep.c: Include "elf/ppc64.h".
8588 (ppc_elfv2_elf_make_msymbol_special): New function.
8589 (ppc_elfv2_skip_entrypoint): Likewise.
8590 (ppc_linux_init_abi): Install them for ELFv2.
8592 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8594 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
8595 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
8596 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
8597 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
8598 structures returned in GPRs.
8600 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8602 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
8603 offset to the stack parameter list for the ELFv2 ABI.
8605 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8607 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
8608 set_gdbarch_convert_from_func_ptr_addr and
8609 set_gdbarch_elf_make_msymbol_special for ELFv1.
8610 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
8611 function descriptors on ELFv1.
8612 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
8613 set up r12 at function entry.
8615 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8617 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
8618 (struct gdbarch_tdep): New member elf_abi.
8620 * rs6000-tdep.c: Include "elf/ppc64.h".
8621 (rs6000_gdbarch_init): Detect ELF ABI version.
8623 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8625 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
8626 within a register pair holding a DFP 128-bit value on little-endian.
8627 (ppc64_sysv_abi_return_value_base): Likewise.
8628 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
8629 (dfp_pseudo_register_write): Likewise.
8631 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8633 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
8634 offset on little-endian when passing _Decimal32.
8635 (ppc64_sysv_abi_return_value_base): Likewise for return values.
8637 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8639 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
8640 of the overlapped FP register within the VSX register on little-
8642 (efpr_pseudo_register_write): Likewise.
8644 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8646 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
8647 offset on little-endian when passing small structures.
8649 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8651 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
8652 (struct ppc64_sysv_argpos): New data structure.
8653 (ppc64_sysv_abi_push_float): Remove.
8654 (ppc64_sysv_abi_push_val): New function.
8655 (ppc64_sysv_abi_push_integer): Likewise.
8656 (ppc64_sysv_abi_push_freg): Likewise.
8657 (ppc64_sysv_abi_push_vreg): Likewise.
8658 (ppc64_sysv_abi_push_param): Likewise.
8659 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
8660 (ppc64_sysv_abi_return_value_base): New function.
8661 (ppc64_sysv_abi_return_value): Refactor to use it.
8663 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8665 * NEWS: Document new target powerpc64le-*-linux*.
8667 2014-02-04 Mark Kettenis <kettenis@gnu.org>
8669 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
8670 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
8672 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
8673 register set used in ELF core dumps. Add floating-point register set.
8675 2014-02-03 Kevin Buettner <kevinb@redhat.com>
8677 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
8678 dwarf2_to_gdb[] table using symbolic constants. Adjust
8679 penultimate entry from number representing the PC register
8680 to symbolic constant representing the MDR register. Add
8681 constant for the PC register to the end of the table.
8683 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8685 * bsd-kvm.c: Include <sys/param.h>
8687 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8689 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
8691 2014-01-31 Joel Brobecker <brobecker@adacore.com>
8693 * ada-lang.h (clear_ada_sym_cache): Delete.
8695 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
8697 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
8699 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
8701 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
8702 the sigreturn register save area only if the syscall is
8705 2014-01-29 Joel Brobecker <brobecker@adacore.com>
8707 * valops.c (value_slice): Minor reformatting.
8709 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
8711 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
8713 2014-01-28 Joel Brobecker <brobecker@adacore.com>
8715 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
8717 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
8718 (ada_ignore_descriptive_types_p): New static global.
8719 (find_parallel_type_by_descriptive_type): Return immediately
8720 if ada_ignore_descriptive_types_p is set.
8721 (_initialize_ada_language): Register new commands "maintenance
8722 set ada", "maintenance show ada", "maintenance set ada
8723 ignore-descriptive-types" and "maintenance show ada
8724 ignore-descriptive-types".
8725 * NEWS: Add entry for new "maint ada set/show
8726 ignore-descriptive-types" commands.
8728 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
8730 * record-btrace.c (record_btrace_close): Call btrace_teardown
8733 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8735 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
8738 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8740 * ada-typeprint (type_is_full_subrange_of_target_type):
8742 (print_range): Add parameter bounds_prefered_p. If not set,
8743 try printing range types using the name of their base type.
8744 (print_range_type): Add parameter bounds_prefered_p.
8745 Use it in call to print_range.
8746 (print_array_type, ada_print_type): Update calls to print_range
8747 and print_range_type.
8749 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8751 * ada-typeprint.c (print_array_type, print_choices, print_range)
8752 (print_range_bound, print_dynamic_range_bound, print_range_type):
8755 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8757 * ada-typeprint.c (print_range): Add missing empty line
8758 after local declaration.
8760 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8762 * ada-valprint.c (print_optional_low_bound): Get index_type's
8763 target type for as long as it is a TYPE_CODE_RANGE.
8765 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8767 * procfs.c (procfs_make_note_section): Remove assertion and
8770 2014-01-24 Yao Qi <yao@codesourcery.com>
8772 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
8773 * corelow.c (get_core_siginfo): Likewise.
8775 2014-01-24 Yao Qi <yao@codesourcery.com>
8777 * remote.c (remote_write_bytes_aux): Change type of 'len' to
8778 ULONGEST. Don't check 'len' is negative.
8779 (remote_write_bytes): Change type of 'len' to ULONGEST.
8781 2014-01-23 Tom Tromey <tromey@redhat.com>
8784 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
8785 Handle exception from frame.block.
8786 (FrameVars.fetch_frame_locals): Likewise.
8788 2014-01-23 Tom Tromey <tromey@redhat.com>
8791 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
8792 on a NULL pointer. Move "goto error" to correct place.
8794 2014-01-23 Tom Tromey <tromey@redhat.com>
8797 * python/py-framefilter.c (apply_frame_filter): Call
8798 ensure_python_env after computing gdbarch.
8800 2014-01-23 Yao Qi <yao@codesourcery.com>
8802 * target.c (raw_memory_xfer_partial): Change argument type
8803 from void * to gdb_byte *.
8804 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
8806 2014-01-22 Doug Evans <dje@google.com>
8808 New gdbserver option --debug-format=timestamp.
8811 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
8813 * syscalls/s390x-linux.xml: New file.
8814 * syscalls/s390-linux.xml: New file.
8815 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
8816 (XML_SYSCALL_FILENAME_S390X): Likewise.
8817 (op_svc): New enum value for SVC opcode.
8818 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
8819 (s390_linux_get_syscall_number): New function.
8820 (s390_gdbarch_init): Register '*get_syscall_number' and the
8821 syscall xml file name.
8822 * data-directory/Makefile.in (SYSCALLS_FILES): Add
8823 "s390-linux.xml" and "s390x-linux.xml".
8824 * NEWS: Announce new feature.
8826 2014-01-22 Baruch Siach <baruch@tkos.co.il>
8828 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
8830 2014-01-22 Pedro Alves <palves@redhat.com>
8832 * xtensa-config.c: Include defs.h.
8834 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8836 * common/common-utils.h: Add "ARI:" comment beside __func__
8839 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8841 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
8842 documentation a bit.
8844 2014-01-21 Roland McGrath <mcgrathr@google.com>
8846 * configure.ac: Call AM_PROG_INSTALL_STRIP.
8847 * configure: Regenerate.
8848 * aclocal.m4: Regenerate.
8849 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
8850 New substituted variables.
8851 (install-strip): New target.
8852 (INSTALL_SCRIPT): New substituted variable.
8853 (FLAGS_TO_PASS): Add it.
8854 (install-only): Use $(INSTALL_SCRIPT) rather than
8855 $(INSTALL_PROGRAM) for gcore.
8857 2014-01-20 Tom Tromey <tromey@redhat.com>
8859 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
8862 2014-01-20 Tom Tromey <tromey@redhat.com>
8864 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
8865 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
8866 (deprecated_cmd_warning, complete_on_cmdlist): Update.
8867 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
8868 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
8869 (struct cmd_list_element) <flags>: Remove.
8870 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
8871 doc_allocated>: New fields.
8872 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
8874 * maint.c (maintenance_do_deprecate): Update.
8875 * top.c (execute_command): Update.
8877 2014-01-20 Baruch Siach <baruch@tkos.co.il>
8879 * xtensa-linux-nat.c: Include asm/ptrace.h.
8881 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8883 * Makefile.in (SFILES): Add d-support.c.
8884 (COMMON_OBS): Add d-support.o.
8885 * d-lang.h (d_parse_symbol): Add comment, now defined in
8887 * d-lang.c (parse_call_convention)
8888 (parse_attributes, parse_function_types)
8889 (parse_function_args, parse_type, parse_identifier)
8890 (call_convention_p, d_parse_symbol): Move functions to ...
8891 * d-support.c: ... New file.
8893 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8895 * d-lang.h (d_parse_symbol): Add declaration.
8896 * d-lang.c (extract_identifiers)
8897 (extract_type_info): Remove functions.
8898 (parse_call_convention, parse_attributes)
8899 (parse_function_types, parse_function_args)
8900 (parse_type, parse_identifier, call_convention_p)
8901 (d_parse_symbol): New functions.
8902 (d_demangle): Use d_parse_symbol to demangle D symbols.
8904 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8906 * d-lang.h (struct builtin_d_type): New data type.
8907 (builtin_d_type): Add declaration.
8908 * d-lang.c (d_language_arch_info, build_d_types)
8909 (builtin_d_type): New functions.
8910 (enum d_primitive_types): New data type.
8911 (d_language_defn): Change c_language_arch_info to
8912 d_language_arch_info.
8913 (d_type_data): New static variable.
8914 (_initialize_d_language): Initialize d_type_data.
8916 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8918 * d-lang.h (d_main_name): Add declaration.
8919 * d-lang.c (d_main_name): New function.
8920 * symtab.c (find_main_name): Add call to d_main_name.
8922 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8924 * d-lang.c (d_language_defn): Change macro_expansion_c to
8927 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8929 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8931 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
8933 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
8934 gdb_exception" declaration.
8935 * remote.c (getpkt_or_notif_sane): Likewise.
8937 2014-01-17 Doug Evans <dje@google.com>
8939 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
8940 function, contents of dirnames_to_char_ptr_vec_append moved here.
8941 (delim_string_to_char_ptr_vec): New function.
8942 (dirnames_to_char_ptr_vec_append): Rewrite.
8943 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
8945 2014-01-17 Doug Evans <dje@google.com>
8947 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
8949 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
8950 #include "common-utils.h".
8951 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
8952 * common/vec.h (VEC_ASSERT_PASS): Update.
8953 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
8954 (MACH_CHECK_ERROR): Update.
8956 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
8958 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
8960 * gdbarch.h: Regenerate.
8962 2014-01-16 Tom Tromey <tromey@redhat.com>
8964 * value.c (struct value) <regnum>: Move earlier.
8966 2014-01-16 Tom Tromey <tromey@redhat.com>
8968 * remote.c (extended_remote_create_inferior): Rename from
8969 extended_remote_create_inferior_1. Add "ops" argument. Remove
8972 2014-01-16 Pedro Alves <palves@redhat.com>
8974 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
8975 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
8978 2014-01-16 Doug Evans <dje@google.com>
8980 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
8982 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8984 * btrace.h (btrace_thread_flag): New.
8985 (struct btrace_thread_info) <flags>: New.
8986 * record-btrace.c (record_btrace_resume_thread)
8987 (record_btrace_find_thread_to_move, btrace_step_no_history)
8988 (btrace_step_stopped, record_btrace_start_replaying)
8989 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
8990 (record_btrace_find_resume_thread): New.
8991 (record_btrace_resume, record_btrace_wait): Extend.
8992 (record_btrace_can_execute_reverse): New.
8993 (record_btrace_open): Fail in non-stop mode.
8994 (record_btrace_set_replay): Split into this, ...
8995 (record_btrace_stop_replaying): ... this, ...
8996 (record_btrace_clear_histories): ... and this.
8997 (init_record_btrace_ops): Init to_can_execute_reverse.
8998 * NEWS: Announce it.
9000 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9002 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9003 (forward_target_decr_pc_after_break)
9004 (target_decr_pc_after_break): New.
9005 * target.c (forward_target_decr_pc_after_break)
9006 (target_decr_pc_after_break): New.
9007 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9008 instead of gdbarch_decr_pc_after_break.
9009 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9010 instead of gdbarch_decr_pc_after_break.
9011 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9012 instead of gdbarch_decr_pc_after_break.
9013 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9014 instead of gdbarch_decr_pc_after_break.
9015 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9016 instead of gdbarch_decr_pc_after_break.
9017 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9018 instead of gdbarch_decr_pc_after_break.
9020 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9022 * btrace.c: Include regcache.h.
9023 (btrace_add_pc): New.
9024 (btrace_enable): Call btrace_add_pc.
9025 (btrace_is_empty): New.
9026 * btrace.h (btrace_is_empty): New.
9027 * record-btrace.c (require_btrace, record_btrace_info): Call
9030 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9032 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9033 Support delta reads.
9034 (linux_disable_btrace): Change return type.
9035 * common/linux-btrace.h (linux_read_btrace): Change parameters
9036 and return type to allow error reporting. Update users.
9037 (linux_disable_btrace): Change return type. Update users.
9038 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9040 (btrace_error): New.
9041 (btrace_block) <begin>: Comment on BEGIN == 0.
9042 * btrace.c (btrace_compute_ftrace): Start from the end of
9044 (btrace_stitch_trace, btrace_clear_history): New.
9045 (btrace_fetch): Read delta trace, return if replaying.
9046 (btrace_clear): Move clear history code to btrace_clear_history.
9047 (parse_xml_btrace): Throw an error if parsing failed.
9048 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9049 and return type to allow error reporting.
9050 (target_read_btrace): Change parameters and return type to allow
9052 * target.c (target_read_btrace): Update.
9053 * remote.c (remote_read_btrace): Support delta reads. Pass
9055 * NEWS: Announce it.
9057 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9059 * record.h (record_btrace_frame_unwind)
9060 (record_btrace_tailcall_frame_unwind): New declarations.
9061 * dwarf2-frame: Include record.h
9062 (dwarf2_frame_cfa): Throw an error for btrace frames.
9063 * record-btrace.c: Include hashtab.h.
9064 (btrace_get_bfun_name): New.
9065 (btrace_call_history): Call btrace_get_bfun_name.
9066 (struct btrace_frame_cache): New.
9068 (bfcache_hash, bfcache_eq, bfcache_new): New.
9069 (btrace_get_frame_function): New.
9070 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9071 (record_btrace_frame_this_id): Compute own id.
9072 (record_btrace_frame_prev_register): Provide PC, throw_error
9073 for all other registers.
9074 (record_btrace_frame_sniffer): Detect btrace frames.
9075 (record_btrace_tailcall_frame_sniffer): New.
9076 (record_btrace_frame_dealloc_cache): New.
9077 (record_btrace_frame_unwind): Add new functions.
9078 (record_btrace_tailcall_frame_unwind): New.
9079 (_initialize_record_btrace): Allocate cache.
9080 * btrace.c (btrace_clear): Call reinit_frame_cache.
9081 * NEWS: Announce it.
9083 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9085 * record-btrace.c (record_btrace_set_replay)
9086 (record_btrace_goto_begin, record_btrace_goto_end)
9087 (record_btrace_goto): New.
9088 (init_record_btrace_ops): Initialize them.
9089 * NEWS: Announce it.
9091 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9093 * record-btrace.c (record_btrace_find_new_threads)
9094 (record_btrace_thread_alive): New.
9095 (init_record_btrace_ops): Initialize to_find_new_threads and
9098 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9100 * record-btrace.c (record_btrace_resume): New.
9101 (record_btrace_wait): New.
9102 (init_record_btrace_ops): Initialize to_wait and to_resume.
9104 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9106 * record-btrace.c (record_btrace_xfer_partial)
9107 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9108 (record_btrace_allow_memory_access): New.
9109 (init_record_btrace_ops): Initialize new methods.
9110 * target.c (raw_memory_xfer_partial): Bail out if target reports
9111 that this memory is not available.
9113 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9115 * target.h (target_ops) <to_insert_breakpoint>
9116 <to_remove_breakpoint>: Add target_ops parameter.
9117 (forward_target_insert_breakpoint): New.
9118 (forward_target_remove_breakpoint): New.
9119 (memory_remove_breakpoint, memory_insert_breakpoint):
9120 Add target_ops parameter.
9121 * target.c (target_insert_breakpoint): Split into this and ...
9122 (forward_target_insert_breakpoint): ... this.
9123 (target_remove_breakpoint): Split into this and ...
9124 (forward_target_remove_breakpoint): ... this.
9125 (debug_to_insert_breakpoint): Add target_ops parameter.
9126 Call forward_target_insert_breakpoint.
9127 (debug_to_remove_breakpoint): Add target_ops parameter.
9128 Call forward_target_remove_breakpoint.
9129 (update_current_target): Do not inherit or default to_insert_breakpoint
9130 and to_remove_breakpoint.
9131 * corelow.c (ignore): Add target_ops parameter.
9132 * exec.c (ignore): Add target_ops parameter.
9133 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9134 Add target_ops parameter.
9135 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9136 Add target_ops parameter.
9137 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9138 Add target_ops parameter.
9139 * record-full.c (record_full_beneath_to_insert_breakpoint)
9140 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9141 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9142 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9143 (record_full_core_remove_breakpoint): Add target_ops parameter.
9145 (record_full_beneath_to_insert_breakpoint_ops)
9146 (record_full_beneath_to_remove_breakpoint_ops)
9147 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9148 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9149 tmp_to_remove_breakpoint_ops,
9150 record_full_beneath_to_insert_breakpoint_ops, and
9151 record_full_beneath_to_remove_breakpoint_ops.
9152 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9153 (m32r_remove_breakpoint): Add target_ops parameter.
9154 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9155 Add target_ops parameter.
9156 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9157 Add target_ops parameter.
9159 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9160 Markus Metzger <markus.t.metzger@intel.com>
9162 * record-btrace.c: Include frame-unwind.h.
9163 (record_btrace_frame_unwind_stop_reason)
9164 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9165 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9167 (init_record_btrace_ops): Install it.
9169 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9171 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9174 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9176 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9179 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9181 * frame-unwind.c: Include target.h.
9182 (frame_unwind_try_unwinder): New function with code from ...
9183 (frame_unwind_find_by_frame): ... here. New variable
9184 unwinder_from_target, call also target_get_unwinder)
9185 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9186 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9187 * target.h (struct target_ops): New fields to_get_unwinder and
9188 to_get_tailcall_unwinder.
9189 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9191 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9193 * record-btrace.c (record_btrace_fetch_registers)
9194 (record_btrace_store_registers)
9195 (record_btrace_to_prepare_to_store): New.
9196 (init_record_btrace_ops): Add the above.
9198 2014-01-16 Tom Tromey <tromey@redhat.com>
9200 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
9201 * target.h (struct target_ops) <to_prepare_to_store>: Add
9203 (target_prepare_to_store): Add argument.
9204 * target.c (debug_to_prepare_to_store): Add argument.
9205 (update_current_target): Update.
9206 * remote.c (remote_prepare_to_store): Add 'self' argument.
9207 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
9208 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
9209 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
9210 * record-full.c (record_full_core_prepare_to_store): Add 'self'
9212 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
9213 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
9214 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
9215 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
9216 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
9218 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9220 * btrace.h (replay) <replay>: New.
9221 (btrace_is_replaying): New.
9222 * btrace.c (btrace_clear): Free replay iterator.
9223 (btrace_is_replaying): New.
9224 * record-btrace.c (record_btrace_is_replaying): New.
9225 (record_btrace_info): Print insn number if replaying.
9226 (record_btrace_insn_history): Start at replay position.
9227 (record_btrace_call_history): Start at replay position.
9228 (init_record_btrace_ops): Init to_record_is_replaying.
9230 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9232 * record-btrace.c (record_btrace_insn_history_range): Include
9234 (record_btrace_insn_history_from): Adjust range.
9235 (record_btrace_call_history_range): Include
9237 (record_btrace_call_history_from): Adjust range.
9238 * NEWS: Announce changes.
9240 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9242 * record.h (enum record_print_flag)
9243 <record_print_indent_calls>: New.
9244 * record.c (get_call_history_modifiers): Recognize /c modifier.
9245 (_initialize_record): Document /c modifier.
9246 * record-btrace.c (btrace_call_history): Add btinfo parameter.
9247 Reorder fields. Optionally indent the function name. Update
9249 * NEWS: Announce changes.
9251 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9253 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
9255 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9257 * btrace.c (ftrace_new_function): Start counting at one.
9258 * record-btrace.c (record_btrace_info): Adjust number of calls
9260 * NEWS: Announce it.
9262 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9264 * record-btrace.c (btrace_call_history_insn_range): Print
9265 insn range as [begin, end].
9267 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9269 * btrace.h (struct btrace_func_link): New.
9270 (enum btrace_function_flag): New.
9271 (struct btrace_inst): Rename to ...
9272 (struct btrace_insn): ...this. Update all users.
9273 (struct btrace_func) <ibegin, iend>: Remove.
9274 (struct btrace_func_link): New.
9275 (struct btrace_func): Rename to ...
9276 (struct btrace_function): ...this. Update all users.
9277 (struct btrace_function) <segment, flow, up, insn, insn_offset)
9278 (number, level, flags>: New.
9279 (struct btrace_insn_iterator): Rename to ...
9280 (struct btrace_insn_history): ...this.
9282 (struct btrace_insn_iterator, btrace_call_iterator): New.
9283 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
9284 (struct btrace_target_info) <begin, end, level>
9285 <insn_history, call_history>: New.
9286 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9287 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9288 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9289 (btrace_call_number, btrace_call_begin, btrace_call_end)
9290 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9291 (btrace_find_function_by_number, btrace_set_insn_history)
9292 (btrace_set_call_history): New.
9293 * btrace.c (btrace_init_insn_iterator)
9294 (btrace_init_func_iterator, compute_itrace): Remove.
9295 (ftrace_print_function_name, ftrace_print_filename)
9296 (ftrace_skip_file): Change
9298 (ftrace_init_func): Remove.
9299 (ftrace_debug): Use new btrace_function fields.
9300 (ftrace_function_switched): Also consider gaining and
9301 losing symbol information).
9302 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
9303 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
9304 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
9306 (ftrace_new_function): Move. Remove debug print.
9307 (ftrace_update_lines, ftrace_update_insns): New.
9308 (ftrace_update_function): Check for call, ret, and jump.
9309 (compute_ftrace): Renamed to ...
9310 (btrace_compute_ftrace): ...this. Rewritten to compute call
9312 (btrace_fetch, btrace_clear): Updated.
9313 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9314 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9315 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9316 (btrace_call_number, btrace_call_begin, btrace_call_end)
9317 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9318 (btrace_find_function_by_number, btrace_set_insn_history)
9319 (btrace_set_call_history): New.
9320 * record-btrace.c (require_btrace): Use new btrace thread
9322 (record_btrace_info, btrace_insn_history)
9323 (record_btrace_insn_history, record_btrace_insn_history_range):
9324 Use new btrace thread info fields and new iterator.
9325 (btrace_func_history_src_line): Rename to ...
9326 (btrace_call_history_src_line): ...this. Use new btrace
9328 (btrace_func_history): Rename to ...
9329 (btrace_call_history): ...this. Use new btrace thread info
9330 fields and new iterator.
9331 (record_btrace_call_history, record_btrace_call_history_range):
9332 Use new btrace thread info fields and new iterator.
9334 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9336 * frame.h (frame_id_build_unavailable_stack_special): New.
9337 * frame.c (frame_id_build_unavailable_stack_special): New.
9339 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9341 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
9342 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
9343 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
9345 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
9346 (i386_insn_is_jump, i386_jmp_p): New.
9347 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
9348 insn_is_jump to gdbarch.
9349 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
9350 * gdbarch.h: Regenerated.
9351 * gdbarch.c: Regenerated.
9352 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
9353 (default_insn_is_jump): New.
9354 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
9355 (default_insn_is_jump): New.
9357 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9359 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
9361 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
9362 (btrace_read_type) <btrace_read_new>: Change to ...
9363 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
9365 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9367 * common/linux-btrace.c (linux_read_btrace): Free trace from
9370 2014-01-15 Doug Evans <dje@google.com>
9372 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
9375 2014-01-15 Tom Tromey <tromey@redhat.com>
9377 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
9378 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
9379 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
9380 (set_objfile_main_name): New function.
9381 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
9382 language_of_main>: New fields.
9383 (set_objfile_main_name): Declare.
9384 * symtab.c (find_main_name): Loop over objfiles to find the main
9386 (set_main_name): Now static.
9387 (get_main_info): Add comment.
9388 * symtab.h (set_main_name): Don't declare.
9390 2014-01-15 Tom Tromey <tromey@redhat.com>
9392 * symtab.c (main_progspace_key): New global.
9393 (struct main_info): New.
9394 (name_of_main, language_of_main): Remove.
9395 (get_main_info, main_info_cleanup): New function.
9396 (set_main_name, main_name, main_language): Use get_main_info.
9397 (_initialize_symtab): Initialize main_progspace_key.
9399 2014-01-15 Tom Tromey <tromey@redhat.com>
9401 * dbxread.c (process_one_symbol): Update.
9402 * dwarf2read.c (read_partial_die): Update.
9403 * symfile.c (set_initial_language): Call main_language.
9404 * symtab.c (language_of_main): Now static.
9405 (set_main_name): Add 'lang' parameter.
9406 (find_main_name): Update.
9407 (main_language): New function.
9408 (symtab_observer_executable_changed): Update.
9409 * symtab.h (set_main_name): Update.
9410 (language_of_main): Remove.
9411 (main_language): Declare.
9413 2014-01-15 Tom Tromey <tromey@redhat.com>
9415 * symfile.c (init_entry_point_info): Use new "initialized" field.
9417 * objfiles.h (struct entry_point) <initialized>: New field.
9418 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
9419 (struct objfile) <ei>: ...here. Remove.
9420 * objfiles.c (entry_point_address_query): Update.
9422 2014-01-15 Tom Tromey <tromey@redhat.com>
9424 * objfiles.c (entry_point_address_query): Relocate entry point
9426 (objfile_relocate1): Do not relocate entry point address.
9427 * objfiles.h (struct entry_info) <entry_point>: Update comment.
9428 <the_bfd_section_index>: New field.
9429 * symfile.c (init_entry_point_info): Find the entry point's
9432 2014-01-15 Tom Tromey <tromey@redhat.com>
9434 * solib-frv.c (enable_break): Use entry_point_address_query.
9436 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9438 * NEWS: Add note on improved process record-replay on
9439 arm*-linux* targets.
9441 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9443 * arm-tdep.c (enum arm_record_result): New enum.
9444 (arm_record_unsupported_insn): New function.
9445 (arm_record_coproc_data_proc): Removed.
9446 (thumb2_record_ld_st_multiple): New function.
9447 (thumb2_record_ld_st_dual_ex_tbb): New function.
9448 (thumb2_record_data_proc_sreg_mimm): New function.
9449 (thumb2_record_ps_dest_generic): New function.
9450 (thumb2_record_branch_misc_cntrl): New function.
9451 (thumb2_record_str_single_data): New function.
9452 (thumb2_record_ld_mem_hints): New function.
9453 (thumb2_record_ld_word): New function.
9454 (thumb2_record_lmul_lmla_div): New function.
9455 (thumb2_record_decode_insn_handler): New function.
9456 (decode_insn): Add thumb32 instruction handlers.
9458 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9460 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
9461 (struct arm_linux_record_tdep): Declare.
9462 (arm_canonicalize_syscall): New function.
9463 (arm_all_but_pc_registers_record): New function.
9464 (arm_linux_syscall_record): New function.
9465 (arm_linux_init_abi): Add syscall recording constructs.
9466 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
9467 decoding. (arm_record_coproc_data_proc): Update arm syscall
9469 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
9470 <arm_syscall_record>: New field.
9471 * configure.tgt (arm*-*-linux*): Add linux-record.o to
9474 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9476 * arm-tdep.c (thumb_record_misc): Update to use sp as base
9477 register for push instruction recording.
9479 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9481 * arm-tdep.c (thumb_record_misc): Update to correct logical
9482 error while recording ldm, ldmia and pop instructions.
9484 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9486 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
9488 2014-01-15 Pedro Alves <palves@redhat.com>
9490 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
9491 (go32_resume, go32_fetch_registers, store_register)
9492 (go32_store_registers, go32_prepare_to_store)
9493 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
9494 (go32_create_inferior, go32_can_run, go32_terminal_init)
9495 (go32_terminal_inferior, go32_terminal_ours): Delete forward
9498 2014-01-15 Tom Tromey <tromey@redhat.com>
9500 * target.h (async_callback_ftype): New typedef.
9501 (struct target_ops) <to_async>: Use it.
9503 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9505 * python/py-value.c (get_field_type): Remove unnecessary curly
9506 braces for single-statement if block.
9508 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9510 * python/py-type.c (convert_field): Add missing empty line
9513 2014-01-14 Doug Evans <dje@google.com>
9515 * symfile.h (expand_symtabs_matching): Renamed from
9516 expand_partial_symbol_names. Update prototype.
9517 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9518 * symfile.c (expand_symtabs_matching): Renamed from
9519 expand_partial_symbol_names. New args file_matcher, kind.
9520 Rename arg fun to symbol_matcher.
9521 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9522 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
9523 ada_expand_partial_symbol_name.
9524 (ada_make_symbol_completion_list): Update to call
9525 expand_symtabs_matching.
9526 (ada_add_global_exceptions): Call expand_symtabs_matching.
9527 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
9528 call map_symbol_filenames.
9529 * symtab.c (sources_info): Update to call map_symbol_filenames.
9530 (search_symbols): Call expand_symtabs_matching.
9531 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
9532 (default_make_symbol_completion_list_break_on): Update to call
9533 expand_symtabs_matching.
9534 (make_source_files_completion_list): Update to call
9535 map_symbol_filenames.
9537 2014-01-14 Doug Evans <dje@google.com>
9539 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
9540 (expand_symtabs_symbol_matcher_ftype): New typedef.
9541 (quick_symbol_functions.expand_symtabs_matching): Update to use.
9542 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9543 * symfile.c (expand_partial_symbol_names): Update to use
9544 expand_symtabs_symbol_matcher_ftype.
9545 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
9546 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9547 Arg name_matcher renamed to symbol_matcher.
9548 * psymtab.c (recursively_search_psymtabs): Update to use
9549 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
9551 (expand_symtabs_matching_via_partial): Update to use
9552 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9553 Arg name_matcher renamed to symbol_matcher.
9555 2014-01-14 Doug Evans <dje@google.com>
9557 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
9558 (map_partial_symbol_filenames): Ditto.
9559 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
9560 (map_partial_symbol_filenames): Ditto.
9561 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
9562 (map_partial_symbol_filenames): Ditto.
9563 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
9564 (map_partial_symbol_filenames): Ditto.
9565 * symtab.c: Delete #include "psymtab.h".
9567 2014-01-14 Pedro Alves <palves@redhat.com>
9568 Tom Tromey <tromey@redhat.com>
9570 * infrun.c (use_displaced_stepping): Use find_record_target
9571 instead of RECORD_IS_USED.
9572 (adjust_pc_after_break): Use record_full_is_used instead of
9574 * record-btrace.c (record_btrace_open): Call record_preopen
9575 instead of checking RECORD_IS_USED.
9576 * record-full.c (record_full_shortname)
9577 (record_full_core_shortname): New globals.
9578 (record_full_is_used): New function.
9579 (find_full_open): Call record_preopen instead of checking
9581 (init_record_full_ops): Set the target's shortname to
9582 record_full_shortname.
9583 (init_record_full_core_ops): Set the target's shortname to
9584 record_full_core_shortname.
9585 * record-full.h (record_full_is_used): Declare.
9586 * record.c (find_record_target): Make extern.
9587 (record_preopen): New function.
9588 * record.h (RECORD_IS_USED): Delete macro.
9589 (find_record_target, record_preopen): Declare functions.
9591 2014-01-14 Yao Qi <yao@codesourcery.com>
9593 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
9594 'len''s type to ULONGEST.
9595 (core_xfer_shared_libraries_aix): Likewise.
9596 * gdbarch.c, gdbarch.h: Regenerated.
9597 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
9598 Change type of 'len' to ULONGEST.
9599 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9600 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
9602 2014-01-14 Yao Qi <yao@codesourcery.com>
9604 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
9605 type of 'len' to ULONGEST.
9606 (linux_xfer_osdata_processgroups): Likewise.
9607 (linux_xfer_osdata_threads): Likewise.
9608 (linux_xfer_osdata_fds): Likewise.
9609 (linux_xfer_osdata_isockets): Likewise.
9610 (linux_xfer_osdata_shm): Likewise.
9611 (linux_xfer_osdata_sem): Likewise.
9612 (linux_xfer_osdata_msg): Likewise.
9613 (linux_common_xfer_osdata): Likewise.
9614 (struct osdata_type) <getter>: Likewise.
9615 * common/linux-osdata.h (linux_common_xfer_osdata): Update
9618 2014-01-14 Yao Qi <yao@codesourcery.com>
9620 * target.h (target_xfer_partial_ftype): Update.
9621 (struct target_ops) <to_xfer_partial>: Change 'len' type to
9623 * aix-thread.c (aix_thread_xfer_partial): Change type of
9624 argument 'len' to ULONGEST.
9625 * auxv.c (procfs_xfer_auxv): Likewise.
9626 (ld_so_xfer_auxv): Likewise.
9627 (memory_xfer_auxv): Likewise.
9628 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9629 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9630 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9631 * corelow.c (core_xfer_partial): Likewise.
9632 * ctf.c (ctf_xfer_partial): Likewise.
9633 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
9635 (darwin_read_dyld_info): Likewise.
9636 (darwin_xfer_partial): Likewise.
9637 * exec.c (section_table_xfer_memory_partial): Likewise.
9638 (exec_xfer_partial): Likewise.
9639 * exec.h (section_table_xfer_memory_partial): Update
9641 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
9642 instead of plongest.
9643 (gnu_xfer_partial): Likewise.
9644 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
9645 (ia64_hpux_xfer_solib_got): Likewise.
9646 (ia64_hpux_xfer_partial): Likewise.
9647 * ia64-linux-nat.c (ia64_linux_xfer_partial):
9648 * inf-ptrace.c (inf_ptrace_xfer_partial):
9649 * inf-ttrace.c (inf_ttrace_xfer_partial):
9650 * linux-nat.c (linux_xfer_siginfo): Likewise.
9651 (linux_nat_xfer_partial): Likewise.
9652 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
9653 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
9654 * monitor.c (monitor_xfer_memory): Likewise.
9655 (monitor_xfer_partial): Likewise.
9656 * procfs.c (procfs_xfer_partial): Likewise.
9657 * record-full.c (record_full_xfer_partial): Likewise.
9658 (record_full_core_xfer_partial): Likewise.
9659 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
9660 instead of plongest.
9661 (gdbsim_xfer_partial): Likewise.
9662 * remote.c (remote_xfer_partial): Likewise.
9663 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9664 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9666 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9667 (rs6000_xfer_shared_libraries): Likewise.
9668 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9669 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9670 (sparc_xfer_partial): Likewise.
9671 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9672 (spu_xfer_partial): Likewise.
9673 * spu-multiarch.c (spu_xfer_partial): Likewise.
9674 * target.c (target_read_live_memory): Likewise.
9675 (memory_xfer_live_readonly_partial): Likewise.
9676 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
9677 (target_xfer_partial, default_xfer_partial): Likewise.
9678 (current_xfer_partial): Likewise.
9679 * tracepoint.c (tfile_xfer_partial): Likewise.
9680 * windows-nat.c (windows_xfer_memory): Likewise. Call
9681 pulongest instead of plongest.
9682 (windows_xfer_partial): Likewise.
9683 (windows_xfer_shared_libraries): Likewise.
9685 2014-01-14 Yao Qi <yao@codesourcery.com>
9687 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
9688 target_xfer_partial_ftype.
9690 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
9694 * valops.c (value_struct_elt_bitpos): New function
9695 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
9696 object to 'None' if the field name is an empty string ("").
9697 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
9698 attribute to look for a field when 'name' is 'None'.
9699 (get_field_type): New function
9701 2014-01-13 Doug Evans <dje@google.com>
9704 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
9705 (try_open_dwop_file): Ditto.
9706 * gdb_bfd.c: #include "vec.h".
9707 (bfdp): New typedef.
9708 (struct gdb_bfd_data): New member included_bfds.
9709 (gdb_bfd_unref): Unref all included bfds.
9710 (gdb_bfd_record_inclusion): New function.
9711 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
9713 2014-01-13 Tom Tromey <tromey@redhat.com>
9715 * gdbcore.h (deprecated_core_resize_section_table): Remove.
9717 2014-01-13 Tom Tromey <tromey@redhat.com>
9719 * defs.h (use_windows): Remove.
9720 * gdb.c (main): Update.
9721 * main.c (captured_main, gdb_main): Update.
9722 * main.h (struct captured_main_args) <use_windows>: Remove.
9723 * top.c (use_windows): Remove.
9725 2014-01-13 Tom Tromey <tromey@redhat.com>
9727 * defs.h (deprecated_flush_hook): Remove.
9729 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9732 * linux-thread-db.c (try_thread_db_load): Add parameter
9733 check_auto_load_safe. Move here the file_is_auto_load_safe call.
9734 (try_thread_db_load_from_pdir_1): Move it there from here.
9735 (try_thread_db_load_from_sdir): Update caller.
9736 (try_thread_db_load_from_dir): Move it there from here.
9738 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
9740 * regformats/regdat.sh: Always rewrite the register file.
9742 2014-01-13 Pedro Alves <palves@redhat.com>
9744 * Makefile.in (CHECK_HEADERS): New variable.
9745 (check-headers:): New rule.
9747 2014-01-13 Tom Tromey <tromey@redhat.com>
9749 * cli/cli-setshow.c (do_set_command): Update.
9750 * defs.h (deprecated_set_hook): Remove.
9751 * top.c (deprecated_set_hook): Remove.
9753 2014-01-13 Pedro Alves <palves@redhat.com>
9755 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
9756 the tracepoint if the PC is a pseudo-register.
9758 2014-01-13 Tom Tromey <tromey@redhat.com>
9760 * defs.h (XCALLOC): Remove.
9761 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
9762 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
9763 * dwarf2loc.c (allocate_piece_closure): Likewise.
9764 * elfread.c (elf_symfile_segments): Likewise.
9765 (elf_symfile_segments): Likewise.
9766 * gdbtypes.c (copy_type_recursive): Likewise.
9767 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
9768 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
9769 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
9771 * mt-tdep.c (mt_gdbarch_init): Likewise.
9772 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
9774 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
9775 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
9776 * registry.c (registry_alloc_data): Likewise.
9777 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
9778 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9779 * serial.c (serial_fdopen_ops): Likewise.
9780 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
9782 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
9783 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
9786 2014-01-13 Tom Tromey <tromey@redhat.com>
9788 * defs.h (XMALLOC): Remove.
9789 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
9790 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9791 * cli-out.c (struct ui_out *): Likewise.
9792 * cli/cli-dump.c (add_dump_command): Likewise.
9793 (add_dump_command): Likewise.
9794 * complaints.c (get_complaints): Likewise.
9795 (find_complaint): Likewise.
9796 * dwarf2-frame.c (execute_cfa_program): Likewise.
9797 * dwarf2read.c (abbrev_table_read_table): Likewise.
9798 * gdbarch.sh: Likewise.
9799 * gdbarch.c: Rebuild.
9800 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
9801 * interps.c (interp_new): Likewise.
9802 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9803 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9804 * mi/mi-console.c (mi_console_file_new): Likewise.
9805 * mi/mi-interp.c (mi_interpreter_init): Likewise.
9806 * mi/mi-out.c (mi_out_new): Likewise.
9807 * mi/mi-parse.c (mi_parse): Likewise.
9808 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9809 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9810 * observer.c (xalloc_observer_list_node): Likewise.
9811 * regcache.c (regcache_xmalloc_1): Likewise.
9812 * reggroups.c (reggroup_new): Likewise.
9813 (_initialize_reggroup): Likewise.
9814 * registry.c (register_data_with_cleanup): Likewise.
9815 * remote.c (remote_notif_stop_alloc_reply): Likewise.
9816 * ser-base.c (serial_ttystate): Likewise.
9817 * ser-mingw.c (make_pipe_state): Likewise.
9818 * ser-pipe.c (pipe_open): Likewise.
9819 * serial.c (serial_open): Likewise.
9820 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9821 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
9822 (tui_alloc_win_info): Likewise.
9823 (tui_add_content_elements): Likewise.
9824 * tui/tui-file.c (tui_file_new): Likewise.
9825 * tui/tui-out.c (tui_out_new): Likewise.
9826 * ui-file.c (mem_file_new): Likewise.
9827 * ui-out.c (push_level): Likewise.
9828 (make_cleanup_ui_out_end): Likewise.
9829 (append_header_to_list): Likewise.
9830 (ui_out_new): Likewise.
9831 * user-regs.c (user_reg_add_builtin): Likewise.
9833 2014-01-13 Tom Tromey <tromey@redhat.com>
9835 * defs.h (XZALLOC): Remove.
9836 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
9837 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
9838 (get_ada_tasks_inferior_data): Likewise.
9839 * auto-load.c (get_auto_load_pspace_data): Likewise.
9840 * auxv.c (get_auxv_inferior_data): Likewise.
9841 * bfd-target.c (target_bfd_reopen): Likewise.
9842 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
9843 (deprecated_insert_raw_breakpoint): Likewise.
9844 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
9845 * corelow.c (core_open): Likewise.
9846 * darwin-nat.c (darwin_check_new_threads): Likewise.
9847 (darwin_attach_pid): Likewise.
9848 * dummy-frame.c (dummy_frame_push): Likewise.
9849 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
9850 * dwarf2loc.c (allocate_piece_closure): Likewise.
9851 * elfread.c (elf_symfile_segments): Likewise.
9852 * eval.c (ptrmath_type_p): Likewise.
9853 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
9854 * gdbtypes.c (alloc_type_arch): Likewise.
9855 (alloc_type_instance): Likewise.
9856 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9857 * inf-child.c (inf_child_can_use_agent): Likewise.
9858 * inflow.c (get_inflow_inferior_data): Likewise.
9859 * infrun.c (save_infcall_suspend_state): Likewise.
9860 * jit.c (jit_reader_load): Likewise.
9861 (get_jit_objfile_data): Likewise.
9862 (get_jit_program_space_data): Likewise.
9863 (jit_object_open_impl): Likewise.
9864 (jit_symtab_open_impl): Likewise.
9865 (jit_block_open_impl): Likewise.
9866 (jit_frame_sniffer): Likewise.
9867 * linux-fork.c (add_fork): Likewise.
9868 * maint.c (make_command_stats_cleanup): Likewise.
9869 * objfiles.c (get_objfile_pspace_data): Likewise.
9870 * opencl-lang.c (struct lval_closure): Likewise.
9871 * osdata.c (osdata_start_osdata): Likewise.
9872 * progspace.c (new_address_space): Likewise.
9873 (add_program_space): Likewise.
9874 * remote-sim.c (get_sim_inferior_data): Likewise.
9875 * sh-tdep.c (sh_gdbarch_init): Likewise.
9876 * skip.c (Ignore): Likewise.
9877 (skip_delete_command): Likewise.
9878 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
9879 (library_list_start_library): Likewise.
9880 (solib_aix_current_sos): Likewise.
9881 * solib-darwin.c (get_darwin_info): Likewise.
9882 (darwin_current_sos): Likewise.
9883 * solib-dsbt.c (get_dsbt_info): Likewise.
9884 * solib-ia64-hpux.c (new_so_list): Likewise.
9885 (ia64_hpux_get_solib_linkage_addr): Likewise.
9886 * solib-spu.c (append_ocl_sos): Likewise.
9887 (spu_current_sos): Likewise.
9888 * solib-svr4.c (get_svr4_info): Likewise.
9889 (svr4_keep_data_in_core): Likewise.
9890 (library_list_start_library): Likewise.
9891 (svr4_default_sos): Likewise.
9892 (svr4_read_so_list): Likewise.
9893 * solib-target.c (library_list_start_library): Likewise.
9894 (solib_target_current_sos): Likewise.
9895 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9896 * symfile-debug.c (install_symfile_debug_logging): Likewise.
9897 * symfile.c (default_symfile_segments): Likewise.
9898 * target-descriptions.c (tdesc_data_init): Likewise.
9899 (tdesc_create_reg): Likewise.
9900 (struct tdesc_type *): Likewise.
9901 (tdesc_create_vector): Likewise.
9902 (tdesc_set_struct_size): Likewise.
9903 (struct tdesc_type *): Likewise.
9904 (tdesc_free_feature): Likewise.
9905 (tdesc_create_feature): Likewise.
9906 * windows-nat.c (windows_add_thread): Likewise.
9907 (windows_make_so): Likewise.
9908 * xml-support.c (gdb_xml_body_text): Likewise.
9909 (gdb_xml_create_parser_and_cleanup): Likewise.
9910 (xml_process_xincludes): Likewise.
9911 * xml-syscall.c (allocate_syscalls_info): Likewise.
9912 (syscall_create_syscall_desc): Likewise.
9914 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
9916 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
9917 function, with code from i386_stap_parse_special_token.
9918 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9919 (i386_stap_parse_special_token): Move code to the two functions
9922 2014-01-09 Pedro Alves <palves@redhat.com>
9923 Hui Zhu <hui@codesourcery.com>
9926 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
9927 bp_err_string. Don't mark the location shlib_disabled if the
9928 error thrown wasn't a generic or memory error. Catch errors
9929 thrown while inserting breakpoints in overlayed code. Output
9930 error message of software breakpoints.
9931 * remote.c (remote_insert_breakpoint): If this breakpoint has
9932 target-side commands but this stub doesn't support Z0 packets,
9933 throw NOT_SUPPORTED_ERROR error.
9934 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
9935 * target.h (target_insert_breakpoint): Extend comment.
9936 (target_insert_hw_breakpoint): Add comment.
9938 2014-01-08 Pedro Alves <palves@redhat.com>
9940 * remote.c (remote_add_thread): Add threads silently if starting
9942 (remote_notice_new_inferior): If in all-stop, and starting up,
9943 don't call notice_new_inferior.
9944 (get_current_thread): New function, factored out from ...
9945 (add_current_inferior_and_thread): ... this. Adjust.
9946 (remote_start_remote) <all-stop>: Fetch the thread list. If we
9947 found any thread, then select the remote's current thread as GDB's
9950 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9952 * NEWS: Create a new section for the next release branch.
9953 Rename the section of the current branch, now that it has
9956 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9958 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
9959 * version.in: Bump version to 7.7.50.DATE-cvs.
9961 2014-01-08 Yao Qi <yao@codesourcery.com>
9963 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
9964 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
9965 (spu_xfer_partial): Cast 'buf' to 'const char *'.
9967 2014-01-08 Yao Qi <yao@codesourcery.com>
9969 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
9970 return value of bfd_get_filename to symbol_file_add_from_bfd.
9972 2014-01-08 Pierre Muller <muller@sourceware.org>
9975 * coff-pe-read.c (struct read_pe_section_data): Add index field.
9976 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
9977 to prim_record_mininal_symbol_and_info.
9978 (add_pe_forwarded_sym): Use known section number of forwarded symbol
9979 in call to prim_record_minimal_symbol_and_info.
9980 (read_pe_exported_syms): Set index field of section_data.
9982 2014-01-07 Andrew Pinski <apinski@cavium.com>
9984 * features/aarch64-core.xml (cpsr): Change to be 64bit.
9985 * features/aarch64.c: Regenerate.
9987 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
9989 * target.c (return_null): Define.
9990 (update_current_target): Use it instead of return_zero for
9991 functions that return a pointer.
9993 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9995 * source.c (add_path): Fix check for duplicated paths in the previously
9998 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10000 * ada-lang.c: Remove duplicated include statements.
10001 * alphabsd-nat.c: Ditto.
10002 * amd64-darwin-tdep.c: Ditto.
10003 * amd64fbsd-nat.c: Ditto.
10004 * auto-load.c: Ditto.
10006 * breakpoint.c: Ditto.
10007 * dbxread.c: Ditto.
10008 * fork-child.c: Ditto.
10009 * gdb_usleep.c: Ditto.
10010 * i386-darwin-tdep.c: Ditto.
10011 * i386fbsd-nat.c: Ditto.
10013 * inferior.c: Ditto.
10014 * jv-lang.c: Ditto.
10015 * linux-nat.c: Ditto.
10016 * linux-tdep.c: Ditto.
10017 * m68kbsd-nat.c: Ditto.
10018 * m68klinux-nat.c: Ditto.
10019 * microblaze-tdep.c: Ditto.
10020 * mips-linux-tdep.c: Ditto.
10021 * mn10300-tdep.c: Ditto.
10022 * nto-tdep.c: Ditto.
10023 * opencl-lang.c: Ditto.
10025 * printcmd.c: Ditto.
10026 * regcache.c: Ditto.
10027 * remote-m32r-sdi.c: Ditto.
10029 * symfile.c: Ditto.
10031 * tilegx-linux-nat.c: Ditto.
10032 * tilegx-tdep.c: Ditto.
10033 * tracepoint.c: Ditto.
10035 * vaxbsd-nat.c: Ditto.
10036 * windows-nat.c: Ditto.
10037 * xtensa-tdep.c: Ditto.
10039 2014-01-07 Yao Qi <yao@codesourcery.com>
10041 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10043 2014-01-07 Yao Qi <yao@codesourcery.com>
10044 Joel Brobecker <brobecker@adacore.com>
10046 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10047 (pdc_write_regs): Likewise.
10048 (fetch_regs_kernel_thread): Likewise.
10049 (store_regs_kernel_thread): Likewise.
10051 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10053 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10054 tagged type objects to their actual type.
10056 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10058 * ada-valprint.c (print_field_values): Add "language" parameter.
10059 Update calls to print_field_values and print_variant_part.
10060 Pass new parameter "language" in call to val_print instead
10061 of "current_language". Replace call to ada_val_print by call
10063 (print_variant_part): Add "language" parameter.
10064 (ada_val_print_struct_union): Update call to print_field_values.
10066 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10068 * ada-valprint.c (ui_memcpy): Delete.
10069 (ada_print_floating): Update documentation. Add empty line
10070 between between function documentation and implementation.
10071 Delete variable "buffer". Use ui_file_xstrdup in place of
10072 ui_file_put. Minor adjustments following this change.
10074 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10076 * ada-valprint.c (ada_val_print_string): New function,
10077 extracted from ada_val_print_array.
10078 (ada_val_print_array): Replace extracted code by call
10079 to ada_val_print_string followed by a return. Move
10080 "else" branch to the function's top block.
10082 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10084 * ada-valprint.c (ada_val_print_array): Move implementation
10085 down. Rename parameter "offset" and "val" into "offset_aligned"
10086 and "original_value" respectively. Add parameter "offset".
10088 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10090 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10091 re-organizing the code. Change the "???" message printed
10092 when target type is a TYPE_CODE_UNDEF into
10093 "<ref to undefined type>".
10095 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10097 * ada-valprint.c (print_record): Delete, implementation inlined...
10098 (ada_val_print_struct_union): ... here. Remove call to
10099 ada_check_typedef in inlined implementation.
10101 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10103 * ada-valprint.c (ada_val_print_gnat_array): New function,
10104 extracted from ada_val_print_1;
10105 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10106 (ada_val_print_flt, ada_val_print_struct_union)
10107 (ada_val_print_ref): Likewise.
10108 (ada_val_print_1): Delete variables i and elttype.
10109 Replace extracted-out code by call to corresponding
10112 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10114 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10116 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10118 * ada-valprint.c (ada_val_print_1): Replace calls to
10119 ada_val_print_1 by calls to val_print.
10121 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10123 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10124 Update calls to self accordingly. Replace calls to c_val_print
10125 by calls to val_print.
10127 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10129 * ada-valprint.c (print_record): Delete declaration.
10130 (adjust_type_signedness, ada_val_print_1): Likewise.
10131 (ada_val_print): Move function implementation down.
10132 (print_variant_part, print_field_values, print_record):
10133 Move function implementation up.
10135 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10137 * python/py-type.c (typy_get_name): New function.
10138 (type_object_getset): Add entry for attribute "name".
10139 * NEWS: Add entry mentioning this new attribute.
10141 2014-01-07 Yao Qi <yao@codesourcery.com>
10143 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10146 2014-01-07 Yao Qi <yao@codesourcery.com>
10148 * gnu-nat.c (info_port_rights): Add qualifier const to
10151 2014-01-07 Yao Qi <yao@codesourcery.com>
10153 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10155 2014-01-07 Yao Qi <yao@codesourcery.com>
10157 * gnu-nat.c (make_inf) Update declaration.
10158 (make_inf): Make it static.
10159 (inf_set_traced): Likewise.
10160 (inf_port_to_thread, inf_task_died_status): Likewise.
10162 2014-01-07 Yao Qi <yao@codesourcery.com>
10164 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10166 2014-01-07 Yao Qi <yao@codesourcery.com>
10168 * gnu-nat.c (_initialize_gnu_nat): Declare.
10170 2014-01-07 Yao Qi <yao@codesourcery.com>
10172 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10174 (struct gdbarch_info) <byte_order>: Change type to
10176 <byte_order_for_code>: Likewise.
10177 * gdbarch.c, gdbarch.h: Regenerated.
10179 2014-01-06 Sasha Smundak <asmundak@google.com>
10181 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10183 2014-01-06 Tom Tromey <tromey@redhat.com>
10185 * doublest.c (convert_doublest_to_floatformat): Use const, not
10187 * somread.c (som_symtab_read): Likewise.
10189 2014-01-07 Hui Zhu <hui@codesourcery.com>
10191 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10192 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10193 (gdb_bfd_fopen): Ditto.
10194 (gdb_bfd_openr): Ditto.
10195 (gdb_bfd_openw): Ditto.
10196 (gdb_bfd_openr_iovec): Ditto.
10197 (gdb_bfd_fdopenr): Ditto.
10198 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
10199 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
10201 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
10203 * symfile-mem.c (symbol_file_add_from_memory): Removed
10204 gdb_bfd_stash_filename.
10206 2014-01-03 Doug Evans <dje@google.com>
10208 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
10211 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10213 Update year range in copyright notice of all files.
10215 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10217 * top.c (print_gdb_version): Set copyright year to 2014.
10219 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10221 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
10223 For older changes see ChangeLog-2013.
10229 version-control: never