1 2014-07-18 Tom Tromey <tromey@redhat.com>
4 * utils.c (quit): Use target_supports_terminal_ours.
5 * target.h (target_supports_terminal_ours): Declare.
6 * target.c (target_supports_delete_record): Don't check
7 to_delete_record against NULL.
8 (target_supports_terminal_ours): New function.
10 2014-07-18 Tom Tromey <tromey@redhat.com>
13 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
14 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
15 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
16 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
17 * windows-nat.c (windows_xfer_partial): Always delegate.
18 * record-btrace.c (record_btrace_xfer_partial): Simplify
20 (record_btrace_fetch_registers, record_btrace_store_registers)
21 (record_btrace_prepare_to_store, record_btrace_resume)
22 (record_btrace_wait, record_btrace_find_new_threads)
23 (record_btrace_thread_alive): Likewise.
24 * procfs.c (procfs_xfer_partial): Always delegate.
25 * corelow.c (core_xfer_partial): Always delegate.
26 * sol-thread.c (sol_find_new_threads): Simplify delegation.
28 2014-07-18 Tom Tromey <tromey@redhat.com>
30 * exec.c (exec_make_note_section): Move earlier.
32 2014-07-17 Doug Evans <dje@google.com>
35 * maint.c (count_symtabs_and_blocks): Handle NULL
36 current_program_space.
37 (report_command_stats): Check global enabled flag in addition to
38 recorded enabled flag.
39 (make_command_stats_cleanup): Handle msg_type == 0, startup.
41 2014-07-16 Pedro Alves <palves@redhat.com>
43 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
45 2014-07-16 Tom Tromey <tromey@redhat.com>
47 * target.h (struct target_ops) <to_delete_record>: Reformat
50 2014-07-16 Tom Tromey <tromey@redhat.com>
52 * target-delegates.c: Rebuild.
54 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
56 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
57 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
58 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
59 (avr_pointer_to_address): Likewise.
60 (avr_address_class_type_flags): New function.
61 (avr_address_class_type_flags_to_name): Likewise.
62 (avr_address_class_name_to_type_flags): Likewise.
63 (avr_gdbarch_init): Set address_class_type_flags,
64 address_class_type_flags_to_name and
65 address_class_name_to_type_flags.
67 2014-07-15 Pedro Alves <palves@redhat.com>
69 * linux-nat.c (kill_callback): Save errno and work with saved
72 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
74 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
76 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
78 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
79 breakpoint support correctly.
81 2014-07-14 Pedro Alves <palves@redhat.com>
83 * utils.c (prompt_for_continue): Call target_terminal_ours.
85 2014-07-14 Pedro Alves <palves@redhat.com>
87 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
88 catch_errors. Don't re-enable stdin or notify observers where,
90 (fetch_inferior_event_wrapper): Delete.
92 2014-07-14 Pedro Alves <palves@redhat.com>
95 * top.c: Include "inf-loop.h".
96 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
98 (gdb_readline_wrapper_cleanup): Make the target async again, if it
100 (gdb_readline_wrapper): Store whether the target is async, and
103 2014-07-14 Pedro Alves <palves@redhat.com>
106 * top.c (gdb_readline_wrapper_line): Tweak comment.
107 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
108 the input handler callback.
110 2014-07-14 Pedro Alves <palves@redhat.com>
113 * main.c: Include event-top.h.
114 (handle_command_errors): New function.
115 (catch_command_errors, catch_command_errors_const): Use it.
117 2014-07-14 Pedro Alves <palves@redhat.com>
119 * exceptions.c (catch_command_errors, catch_command_errors_const):
121 * exceptions.h (catch_command_errors_ftype)
122 (catch_command_errors_const_ftype): Moved to main.c.
123 (catch_command_errors, catch_command_errors_const): Delete
125 * main.c (catch_command_errors_ftype)
126 (catch_command_errors_const_ftype): Moved here from exceptions.h.
127 (catch_command_errors, catch_command_errors_const)): Moved here
128 from exceptions.c and make static.
130 2014-07-14 Pedro Alves <palves@redhat.com>
132 * exceptions.c (print_any_exception): Delete.
133 (catch_exceptions_with_msg): Use exception_print instead of
135 (catch_errors): Use exception_fprintf instead of
137 (catch_command_errors, catch_command_errors_const): Use
138 exception_print instead of print_any_exception.
140 2014-07-14 Pedro Alves <palves@redhat.com>
142 * infcall.c (run_inferior_call): Set 'sync_execution' while
143 running the inferior call.
145 2014-07-14 Pedro Alves <palves@redhat.com>
147 * value.c (value_contents_equal): Delete function.
148 * value.h (value_contents_equal): Delete declaration.
150 2014-07-14 Tom Tromey <tromey@redhat.com>
153 * gdbtypes.c (is_dynamic_type_internal): New function, from
155 (is_dynamic_type): Rewrite.
156 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
157 (resolve_dynamic_struct): Likewise.
158 (resolve_dynamic_type_internal): New function, from
159 resolve_dynamic_type.
160 (resolve_dynamic_type): Rewrite.
162 2014-07-14 Tom Tromey <tromey@redhat.com>
164 * target.c (target_require_runnable): Also check record_stratum.
167 2014-07-11 Yao Qi <yao@codesourcery.com>
169 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
170 thumb_instruction_restores_sp return true.
172 2014-07-11 Yao Qi <yao@codesourcery.com>
174 * arm-tdep.c (thumb_instruction_restores_sp): New function.
175 (thumb_in_function_epilogue_p): Call
176 thumb_instruction_restores_sp.
178 2014-07-11 Yao Qi <yao@codesourcery.com>
180 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
182 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
184 2014-07-11 Gary Benson <gbenson@redhat.com>
186 * amd64-linux-nat.c (gdbcore.h): Remove include.
187 (regset.h): Likewise.
188 (nat/linux-btrace.h): Likewise.
189 (btrace.h): Likewise.
190 (gdb_assert.h): Likewise.
191 (string.h): Likewise.
192 (sys/uio.h): Likewise.
193 (sys/debugreg.h): Likewise.
194 (sys/syscall.h): Likewise.
195 (sys/procfs.h): Likewise.
196 (sys/user.h): Likewise.
197 (asm/ptrace.h): Likewise.
198 (i386-nat.h): Likewise.
199 * i386-linux-nat.c (i386-nat.h): Likewise.
200 (regset.h): Likewise.
201 (target.h): Likewise.
202 (linux-nat.h): Likewise.
203 (nat/linux-btrace.h): Likewise.
204 (btrace.h): Likewise.
205 (gdb_assert.h): Likewise.
206 (string.h): Likewise.
207 (sys/uio.h): Likewise.
208 (sys/user.h): Likewise.
209 (sys/procfs.h): Likewise.
210 (sys/reg.h): Likewise.
211 (sys/debugreg.h): Likewise.
212 (ORIG_EAX): Remove definition.
214 2014-07-11 Gary Benson <gbenson@redhat.com>
216 * i386-linux-nat.h: New file.
217 * x86-linux-nat.h: Likewise.
218 * x86-linux-nat.c: Likewise.
219 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
220 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
221 * config/i386/linux64.mh (NATDEPFILES): Likewise.
222 * amd64-linux-nat.c (x86-linux-nat.h): New include.
223 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
224 (PTRACE_SETREGSET): Likewise.
225 (arch_lwp_info): Now in x86-linux-nat.c.
226 (have_ptrace_getregset): Now in x86-linux-nat.h.
227 (x86_linux_dr_get): Now in x86-linux-nat.c.
228 (x86_linux_dr_set): Likewise.
229 (x86_linux_dr_get_addr): Likewise.
230 (x86_linux_dr_get_control): Likewise.
231 (x86_linux_dr_get_status): Likewise.
232 (update_debug_registers_callback): Likewise.
233 (x86_linux_dr_set_control): Likewise.
234 (x86_linux_dr_set_addr): Likewise.
235 (x86_linux_prepare_to_resume): Likewise.
236 (x86_linux_new_thread): Likewise.
237 (x86_linux_new_fork): Likewise.
238 (x86_linux_get_thread_area): Likewise.
239 (super_post_startup_inferior): Likewise.
240 (x86_linux_child_post_startup_inferior): Likewise.
241 (AMD64_LINUX_USER64_CS): Likewise.
242 (AMD64_LINUX_X32_DS): Likewise.
243 (x86_linux_read_description): Likewise.
244 (x86_linux_enable_btrace): Likewise.
245 (x86_linux_disable_btrace): Likewise.
246 (x86_linux_teardown_btrace): Likewise.
247 (x86_linux_read_btrace): Likewise.
248 (x86_linux_create_target): Likewise.
249 (x86_linux_add_target): Likewise.
250 * i386-linux-nat.c (x86-linux-nat.h): New include.
251 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
252 (PTRACE_SETREGSET): Likewise.
253 (arch_lwp_info): Now in x86-linux-nat.c.
254 (have_ptrace_getregset): Now in x86-linux-nat.h.
255 (x86_linux_dr_get): Now in x86-linux-nat.c.
256 (x86_linux_dr_set): Likewise.
257 (x86_linux_dr_get_addr): Likewise.
258 (x86_linux_dr_get_control): Likewise.
259 (x86_linux_dr_get_status): Likewise.
260 (update_debug_registers_callback): Likewise.
261 (x86_linux_dr_set_control): Likewise.
262 (x86_linux_dr_set_addr): Likewise.
263 (x86_linux_prepare_to_resume): Likewise.
264 (x86_linux_new_thread): Likewise.
265 (x86_linux_new_fork): Likewise.
266 (x86_linux_get_thread_area): Likewise.
267 (super_post_startup_inferior): Likewise.
268 (x86_linux_child_post_startup_inferior): Likewise.
269 (AMD64_LINUX_USER64_CS): Likewise.
270 (AMD64_LINUX_X32_DS): Likewise.
271 (x86_linux_read_description): Likewise.
272 (x86_linux_enable_btrace): Likewise.
273 (x86_linux_disable_btrace): Likewise.
274 (x86_linux_teardown_btrace): Likewise.
275 (x86_linux_read_btrace): Likewise.
276 (x86_linux_create_target): Likewise.
277 (x86_linux_add_target): Likewise.
279 2014-07-11 Gary Benson <gbenson@redhat.com>
281 * amd64-linux-nat.c: Comment and whitespace changes.
282 * i386-linux-nat.c: Comment and whitespace changes.
284 2014-07-11 Gary Benson <gbenson@redhat.com>
286 * amd64-linux-nat.c (x86_linux_create_target): New function.
287 (x86_linux_add_target): Likewise.
288 (_initialize_amd64_linux_nat): Delegate to the above new functions.
289 * i386-linux-nat.c (x86_linux_create_target): New function.
290 (x86_linux_add_target): Likewise.
291 (_initialize_i386_linux_nat): Delegate to the above new functions.
293 2014-07-11 Gary Benson <gbenson@redhat.com>
295 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
296 (ps_get_thread_area): Delegate to the above in 32-bit mode.
297 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
298 (ps_get_thread_area): Delegate to the above.
300 2014-07-11 Gary Benson <gbenson@redhat.com>
302 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
303 x86_linux_read_description. All uses updated. amd64-specific
304 code conditionalized. Conditionalized i386-specific code added.
305 Redundant cast removed.
306 * i386-linux-nat.c (i386_linux_read_description): Renamed to
307 x86_linux_read_description. All uses updated. i386-specific
308 code conditionalized. Conditionalized amd64-specific code added.
309 One sizeof replaced with the actual type it is describing.
311 2014-07-11 Gary Benson <gbenson@redhat.com>
313 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
314 x86_linux_dr_get. All uses updated.
315 (amd64_linux_dr_set): Renamed to
316 x86_linux_dr_set. All uses updated.
317 (amd64_linux_dr_get_addr): Renamed to
318 x86_linux_dr_get_addr. All uses updated.
319 (amd64_linux_dr_get_control): Renamed to
320 x86_linux_dr_get_control. All uses updated.
321 (amd64_linux_dr_get_status): Renamed to
322 x86_linux_dr_get_status. All uses updated.
323 (amd64_linux_dr_set_control): Renamed to
324 x86_linux_dr_set_control. All uses updated.
325 (amd64_linux_dr_set_addr): Renamed to
326 x86_linux_dr_set_addr. All uses updated.
327 (amd64_linux_prepare_to_resume): Renamed to
328 x86_linux_prepare_to_resume. All uses updated.
329 (amd64_linux_new_thread): Renamed to
330 x86_linux_new_thread. All uses updated.
331 (amd64_linux_new_fork): Renamed to
332 x86_linux_new_fork. All uses updated.
333 (amd64_linux_child_post_startup_inferior): Renamed to
334 x86_linux_child_post_startup_inferior. All uses updated.
335 (amd64_linux_enable_btrace): Renamed to
336 x86_linux_enable_btrace. All uses updated.
337 (amd64_linux_disable_btrace): Renamed to
338 x86_linux_disable_btrace. All uses updated.
339 (amd64_linux_teardown_btrace): Renamed to
340 x86_linux_teardown_btrace. All uses updated.
341 (amd64_linux_read_btrace): Renamed to
342 x86_linux_read_btrace. All uses updated.
343 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
344 x86_linux_dr_get. All uses updated.
345 (i386_linux_dr_set): Renamed to
346 x86_linux_dr_set. All uses updated.
347 (i386_linux_dr_get_addr): Renamed to
348 x86_linux_dr_get_addr. All uses updated.
349 (i386_linux_dr_get_control): Renamed to
350 x86_linux_dr_get_control. All uses updated.
351 (i386_linux_dr_get_status): Renamed to
352 x86_linux_dr_get_status. All uses updated.
353 (i386_linux_dr_set_control): Renamed to
354 x86_linux_dr_set_control. All uses updated.
355 (i386_linux_dr_set_addr): Renamed to
356 x86_linux_dr_set_addr. All uses updated.
357 (i386_linux_prepare_to_resume): Renamed to
358 x86_linux_prepare_to_resume. All uses updated.
359 (i386_linux_new_thread): Renamed to
360 x86_linux_new_thread. All uses updated.
361 (i386_linux_new_fork): Renamed to
362 x86_linux_new_fork. All uses updated.
363 (i386_linux_child_post_startup_inferior): Renamed to
364 x86_linux_child_post_startup_inferior. All uses updated.
365 (i386_linux_enable_btrace): Renamed to
366 x86_linux_enable_btrace. All uses updated.
367 (i386_linux_disable_btrace): Renamed to
368 x86_linux_disable_btrace. All uses updated.
369 (i386_linux_teardown_btrace): Renamed to
370 x86_linux_teardown_btrace. All uses updated.
371 (i386_linux_read_btrace): Renamed to
372 x86_linux_read_btrace. All uses updated.
374 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
376 * remote.c (extended_remote_post_attach): New function.
377 (init_extended_remote_ops): Install it as to_post_attach method.
379 2014-07-09 Pedro Alves <palves@redhat.com>
381 * infcmd.c (attach_command_post_wait): Don't call
382 target_terminal_inferior here.
383 (attach_command): Call it here instead.
385 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
387 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
389 * c-varobj.c (c_is_path_expr_parent): New function, moved core
390 from varobj.c, with additional checks.
391 (c_varobj_ops): Fill in is_path_expr_parent field.
392 (cplus_varobj_ops): Fill in is_path_expr_parent field.
393 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
395 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
397 (varobj_default_is_path_expr_parent): New function.
398 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
399 (varobj_default_is_path_expr_parent): Declare new function.
401 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
403 * infcmd.c (finish_backward): Turn internal error into normal error.
405 2014-07-07 Pedro Alves <palves@redhat.com>
408 * remote.c (async_handle_remote_sigint)
409 (async_handle_remote_sigint_twice): Call
410 gdb_call_async_signal_handler instead of
411 mark_async_signal_handler.
413 2014-07-07 Tom Tromey <tromey@redhat.com>
415 * target-delegates.c: Rebuild.
416 * target.c (target_info_record): Remove.
417 * record.c (info_record_command): Unconditionally call
419 * target.h (struct target_ops) <to_info_record>: Use
420 TARGET_DEFAULT_IGNORE.
421 (target_info_record): Remove.
423 2014-07-07 Tom Tromey <tromey@redhat.com>
425 * target.h (struct target_ops) <to_get_thread_local_address>: Use
426 TARGET_DEFAULT_NORETURN.
427 * target.c (generic_tls_error): New function.
428 (target_translate_tls_address): Don't search target stack.
429 * target-delegates.c: Rebuild.
430 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
432 * linux-thread-db.c (thread_db_get_thread_local_address):
433 Unconditionally call beneath target.
435 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
437 * cli/cli-logging.c (pop_output_files): Assign targerr to
440 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
442 * MAINTAINERS (Write After Approval): Update my email address.
444 2014-07-02 Gary Benson <gbenson@redhat.com>
446 * proc-service.c (ps_xfer_memory): Update comment.
447 (ps_pstop): Remove unused function.
448 (ps_pcontinue): Likewise.
449 (ps_lstop): Likewise.
450 (ps_lcontinue): Likewise.
451 (ps_lgetxregsize): Likewise.
452 (ps_lgetxregs): Likewise.
453 (ps_lsetxregs): Likewise.
455 (ps_ptread): Likewise.
456 (ps_ptwrite): Likewise.
458 2014-07-01 Mark Wielaard <mjw@redhat.com>
460 * dwarf2read.c (add_array_cv_type): New function.
461 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
462 (read_tag_volatile_type): Likewise.
464 2014-07-01 Tom Tromey <tromey@redhat.com>
466 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
467 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
468 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
469 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
470 * command.h (cmd_cfunc_ftype): Move earlier.
471 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
472 (add_com, add_info): Use cmd_cfunc_ftype.
474 2014-06-30 Tom Tromey <tromey@redhat.com>
476 * symtab.c (operator_chars): Make parameters and return type
478 (file_matches): Make "files" const.
479 (struct search_symbols_data) <files>: Now const.
480 (search_symbols): Make "regexp" and "files" parameters const.
482 (symtab_symbol_info): Remove cast.
483 (rbreak_command): Update.
484 * symtab.h (search_symbols): Update.
486 2014-06-27 Yao Qi <yao@codesourcery.com>
488 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
489 Change parameter type to 'struct thread_info *'. Caller
491 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
493 * dummy-frame.c (struct dummy_frame_id): New.
494 (dummy_frame_id_eq): New function.
495 (struct dummy_frame) <id>: Change its type to 'struct
497 (dummy_frame_push): Add parameter ptid and save it in
499 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
501 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
503 (lookup_dummy_frame): Change parameter type to 'struct
504 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
505 instead of frame_id_eq.
506 (dummy_frame_pop): Add parameter ptid. Callers updated.
507 Update comments. Compose dummy_frame_id and pass it to
509 (dummy_frame_discard): Add parameter ptid.
510 (dummy_frame_sniffer): Compose dummy_frame_id and call
511 dummy_frame_id_eq instead of frame_id_eq.
512 (fprint_dummy_frames): Print ptid.
513 * dummy-frame.h: Remove comments.
514 (dummy_frame_push): Add ptid in declaration.
515 (dummy_frame_pop, dummy_frame_discard): Likewise.
517 2014-06-26 Tom Tromey <tromey@redhat.com>
519 * cli/cli-cmds.c (error_no_arg): Make "why" const.
520 * command.h (error_no_arg): Update.
522 2014-06-26 Tom Tromey <tromey@redhat.com>
524 * cli/cli-setshow.c (do_set_command): Make "arg" const.
525 (do_show_command): Make "arg" const.
526 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
528 2014-06-26 Tom Tromey <tromey@redhat.com>
530 * record-full.c (record_full_get_bookmark): Make "args" const.
531 (record_full_goto_bookmark): Make "raw_bookmark" const.
532 * record.c (record_goto): New function.
533 (cmd_record_goto): Use it. Now static.
534 * record.h (record_goto): Declare.
535 (cmd_record_goto): Remove declaration.
536 * target-delegates.c: Rebuild.
537 * target.h (struct target_ops) <to_get_bookmark,
538 to_goto_bookmark>: Make parameter const.
540 2014-06-26 Tom Tromey <tromey@redhat.com>
542 * defs.h (generic_load): Update.
543 * m32r-rom.c (m32r_load_gen): Make "filename" const.
544 * monitor.c (monitor_load): Make "args" const.
545 * remote-m32r-sdi.c (m32r_load): Make "args" const.
546 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
548 (mips_load): Make "file" const.
549 * remote-sim.c (gdbsim_load): Make "args" const.
550 * remote.c (remote_load): Make "name" const.
551 * symfile.c (generic_load): Make "args" const.
552 * target-delegates.c: Rebuild.
553 * target.c (target_load): Make "arg" const.
554 (debug_to_load): Make "args" const.
555 * target.h (struct target_ops) <to_load>: Make parameter const.
556 (target_load): Update.
558 2014-06-26 Tom Tromey <tromey@redhat.com>
561 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
562 (dwarf2_physname, read_partial_die)
563 (guess_partial_die_structure_name, fixup_partial_die)
564 (guess_full_die_structure_name, anonymous_struct_prefix)
565 (dwarf2_name): Use per-BFD obstack.
567 2014-06-26 Yao Qi <yao@codesourcery.com>
569 * dummy-frame.c (dummy_frame_sniffer): Move local variables
570 dummyframe and this_id into inner block below.
572 2014-06-26 Yao Qi <yao@codesourcery.com>
574 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
575 with "signal_pass[0]" in the initialization of signal_pass.
577 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
579 * record-btrace.c (record_btrace_generating_corefile)
580 (record_btrace_prepare_to_generate_core)
581 (record_btrace_done_generating_core): New.
582 (record_btrace_xfer_partial, record_btrace_fetch_registers)
583 (record_btrace_store_registers, record_btrace_prepare_to_store):
584 Forward request when generating a core file.
585 (record_btrace_open): Set record_btrace_generating_corefile to zero.
586 (init_record_btrace_ops): Set to_prepare_to_generate_core and
587 to_done_generating_core.
589 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
591 * target.h (target_ops) <to_prepare_to_generate_core>
592 <to_done_generating_core>: New.
593 (target_prepare_to_generate_core, target_done_generating_core): New.
594 * target.c (target_prepare_to_generate_core)
595 (target_done_generating_core): New.
596 * target-delegates.c: Regenerate.
597 * gcore.c: (write_gcore_file): Rename to ...
598 (write_gcore_file_1): ...this.
599 (write_gcore_file): Call target_prepare_to_generate_core
600 and target_done_generating_core.
602 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
604 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
605 * gcore.c (write_gcore_file): Free memory returned from
607 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
608 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
610 2014-06-24 Yao Qi <yao@codesourcery.com>
612 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
613 (arm_linux_init_abi): Set skip_trampoline_code with
614 gdbarch_skip_trampoline_code instead of
615 find_solib_trampoline_target.
617 2014-06-24 Yao Qi <yao@codesourcery.com>
619 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
620 arm_skip_bx_reg returns non-zero.
622 2014-06-24 Yao Qi <yao@codesourcery.com>
624 * arm-tdep.c (arm_skip_bx_reg): New function.
625 (arm_skip_stub): Call arm_skip_bx_reg.
627 2014-06-23 Don Breazeal <donb@codesourcery.com>
629 * MAINTAINERS: Add myself as write-after-approval maintainer.
631 2014-06-23 Pedro Alves <palves@redhat.com>
633 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
634 DR_CONTROL before setting DR0..DR3.
635 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
636 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
637 bits of DR_CONTROL related to the debug register slot being
638 disabled. If all slots are vacant, clear local slowdown as well,
639 and assert DR_CONTROL is 0.
641 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
643 * python/lib/gdb/command/xmethods.py
644 (get_method_matchers_in_loci): Lookup xmethod matchers in the
645 current progspace only if the string "progspace" matches LOCUS_RE.
647 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
649 Fix --with-system-readline with readline-6.3 patch 5.
650 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
651 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
654 2014-06-20 Tom Tromey <tromey@redhat.com>
656 * dwarf2read.c (dw2_get_real_path): Use correct type in
658 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
660 2014-06-20 Gary Benson <gbenson@redhat.com>
662 * common/gdb_thread_db.h: Moved to nat. All includes updated.
663 * common/glibc_thread_db.h: Likewise.
664 * common/i386-cpuid.h: Likewise.
665 * common/i386-gcc-cpuid.h: Likewise.
666 * common/linux-btrace.h: Likewise.
667 * common/linux-osdata.h: Likewise.
668 * common/linux-procfs.h: Likewise.
669 * common/linux-ptrace.h: Likewise.
670 * common/mips-linux-watch.h: Likewise.
671 * common/linux-btrace.c: Moved to nat.
672 * common/linux-osdata.c: Likewise.
673 * common/linux-procfs.c: Likewise.
674 * common/linux-ptrace.c: Likewise.
675 * common/mips-linux-watch.c: Likewise.
676 * nat/gdb_thread_db.h: Moved from common.
677 * nat/glibc_thread_db.h: Likewise.
678 * nat/i386-cpuid.h: Likewise.
679 * nat/i386-gcc-cpuid.h: Likewise.
680 * nat/linux-btrace.c: Likewise.
681 * nat/linux-btrace.h: Likewise.
682 * nat/linux-osdata.c: Likewise.
683 * nat/linux-osdata.h: Likewise.
684 * nat/linux-procfs.c: Likewise.
685 * nat/linux-procfs.h: Likewise.
686 * nat/linux-ptrace.c: Likewise.
687 * nat/linux-ptrace.h: Likewise.
688 * nat/mips-linux-watch.c: Likewise.
689 * nat/mips-linux-watch.h: Likewise.
690 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
691 (object file files): Reordered.
692 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
693 of glibc_thread_db.h.
695 2014-06-20 Gary Benson <gbenson@redhat.com>
697 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
698 (i386_dr_low_type): Moved to nat/i386-dregs.h.
699 (i386_dr_low): Likewise.
700 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
701 (i386_dr_low_set_addr): Likewise.
702 (i386_dr_low_get_addr): Likewise.
703 (i386_dr_low_can_set_control): Likewise.
704 (i386_dr_low_set_control): Likewise.
705 (i386_dr_low_get_control): Likewise.
706 (i386_dr_low_get_status): Likewise.
707 (i386_get_debug_register_length): Likewise.
708 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
709 (i386_dr_low): Likewise.
710 * nat/i386-dregs.c (i386-low.h): Remove include.
711 (i386-nat.h): Likewise.
712 (nat/i386-dregs.h): New include.
713 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
714 (i386_dr_low_set_addr): Likewise.
715 (i386_dr_low_get_addr): Likewise.
716 (i386_dr_low_can_set_control): Likewise.
717 (i386_dr_low_set_control): Likewise.
718 (i386_dr_low_get_control): Likewise.
719 (i386_dr_low_get_status): Likewise.
720 (i386_get_debug_register_length): Likewise.
721 (debug_hw_points): Likewise.
723 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
725 * Makefile.in (SFILES): Add d-exp.y.
726 (YYFILES): Add d-exp.c.
727 (YYOBJ): Add d-exp.o.
728 (local-maintainer-clean): Delete d-exp.c.
730 * d-lang.h (d_parse): New declaration.
731 (d_error): New declaration.
732 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
733 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
734 PREC_ORDER operators.
735 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
737 2014-06-19 Yao Qi <yao@codesourcery.com>
739 * gdbthread.h (any_running): Remove the declaration.
740 * thread.c (any_running): Remove.
742 2014-06-19 Yao Qi <yao@codesourcery.com>
744 * gdbthread.h (struct thread_info) <state>: Change its type to
745 'enum thread_state'. Update comments.
747 2014-06-19 Pedro Alves <palves@redhat.com>
749 * gdbthread.h (ALL_THREADS): Delete.
750 (ALL_NON_EXITED_THREADS): New macro.
751 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
752 instead of ALL_THREADS.
753 * infrun.c (find_thread_needs_step_over)
754 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
755 instead of ALL_THREADS.
756 * record-btrace.c (record_btrace_open)
757 (record_btrace_stop_recording, record_btrace_close)
758 (record_btrace_is_replaying, record_btrace_resume)
759 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
760 * remote.c (append_pending_thread_resumptions): Likewise.
761 * thread.c (thread_apply_all_command): Likewise.
763 2014-06-19 Gary Benson <gbenson@redhat.com>
765 * i386-nat.c (i386_stopped_by_watchpoint):
766 Use i386_dr_stopped_by_watchpoint.
767 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
768 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
770 2014-06-19 Gary Benson <gbenson@redhat.com>
772 * nat/i386-dregs.c: New file.
773 * Makefile.in (i386-dregs.o): New rule.
774 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
775 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
776 * config/i386/darwin.mh (NATDEPFILES): Likewise.
777 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
778 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
779 * config/i386/go32.mh (NATDEPFILES): Likewise.
780 * config/i386/linux.mh (NATDEPFILES): Likewise.
781 * config/i386/linux64.mh (NATDEPFILES): Likewise.
782 * config/i386/mingw.mh (NATDEPFILES): Likewise.
783 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
784 * i386-nat.h (debug_hw_points): New declaration.
785 * i386-nat.c (breakpoint.h): Remove include.
786 (command.h): Likewise.
787 (target.h): Likewise.
788 (gdb_assert.h): Likewise.
789 (debug_hw_points): Made nonstatic.
790 (debug_printf): Now in i386-dregs.c.
791 (TARGET_HAS_DR_LEN_8): Likewise.
792 (DR_CONTROL_SHIFT): Likewise.
793 (DR_CONTROL_SIZE): Likewise.
794 (DR_RW_EXECUTE): Likewise.
795 (DR_RW_WRITE): Likewise.
796 (DR_RW_READ): Likewise.
797 (DR_RW_IORW): Likewise.
798 (DR_LEN_1): Likewise.
799 (DR_LEN_2): Likewise.
800 (DR_LEN_4): Likewise.
801 (DR_LEN_8): Likewise.
802 (DR_LOCAL_ENABLE_SHIFT): Likewise.
803 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
804 (DR_ENABLE_SIZE): Likewise.
805 (DR_LOCAL_SLOWDOWN): Likewise.
806 (DR_GLOBAL_SLOWDOWN): Likewise.
807 (DR_CONTROL_RESERVED): Likewise.
808 (I386_DR_CONTROL_MASK): Likewise.
809 (I386_DR_VACANT): Likewise.
810 (I386_DR_LOCAL_ENABLE): Likewise.
811 (I386_DR_GLOBAL_ENABLE): Likewise.
812 (I386_DR_DISABLE): Likewise.
813 (I386_DR_SET_RW_LEN): Likewise.
814 (I386_DR_GET_RW_LEN): Likewise.
815 (I386_DR_WATCH_HIT): Likewise.
816 (i386_wp_op_t): Likewise.
817 (i386_show_dr): Likewise.
818 (i386_length_and_rw_bits): Likewise.
819 (i386_insert_aligned_watchpoint): Likewise.
820 (i386_remove_aligned_watchpoint): Likewise.
821 (i386_handle_nonaligned_watchpoint): Likewise.
822 (i386_update_inferior_debug_regs): Likewise.
823 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
824 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
825 (i386_region_ok_for_watchpoint):
826 Use i386_dr_region_ok_for_watchpoint.
827 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
829 2014-06-19 Gary Benson <gbenson@redhat.com>
831 * i386-nat.c (i386_insert_hw_breakpoint): Use
832 i386_insert_watchpoint.
833 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
835 2014-06-19 Gary Benson <gbenson@redhat.com>
837 * i386-nat.c (i386_dr_show): Renamed to
838 i386_show_dr and made static. All uses updated.
839 (i386_dr_length_and_rw_bits): Renamed to
840 i386_length_and_rw_bits and made static.
842 (i386_dr_insert_aligned_watchpoint): Renamed to
843 i386_insert_aligned_watchpoint and made static.
845 (i386_dr_remove_aligned_watchpoint): Renamed to
846 i386_remove_aligned_watchpoint and made static.
848 (i386_dr_update_inferior_debug_regs): Renamed to
849 i386_update_inferior_debug_regs and made static.
851 * nat/i386-dregs.h (i386_dr_show): Removed.
852 (i386_dr_length_and_rw_bits): Likewise.
853 (i386_dr_insert_aligned_watchpoint): Likewise.
854 (i386_dr_remove_aligned_watchpoint): Likewise.
855 (i386_dr_update_inferior_debug_regs): Likewise.
857 2014-06-19 Gary Benson <gbenson@redhat.com>
859 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
860 * configure: Regenerate.
861 * config.in: Likewise.
862 * main.c (signal.h): New include.
863 (setup_alternate_signal_stack): New function.
864 (captured_main): Call the above.
865 * cp-support.c (signal.h): New include.
866 (catch_demangler_crashes): New flag.
867 (SIGJMP_BUF): New define.
868 (SIGSETJMP): Likewise.
869 (SIGLONGJMP): Likewise.
870 (gdb_demangle_jmp_buf): New static global.
871 (gdb_demangle_attempt_core_dump): Likewise.
872 (gdb_demangle_signal_handler): New function.
873 (gdb_demangle): If catch_demangler_crashes is set, install the
874 above signal handler before calling bfd_demangle, and restore
875 the original signal handler afterwards. Display the offending
876 symbol and call demangler_warning the first time a segmentation
878 (_initialize_cp_support): New maint set/show command.
880 2014-06-19 Gary Benson <gbenson@redhat.com>
882 * utils.h (resource_limit_kind): New enum.
883 (can_dump_core): New declaration.
884 (warn_cant_dump_core): Likewise.
885 (dump_core): Likewise.
886 * utils.c (dump_core): Made nonstatic. Added new
887 parameter "limit_kind".
888 (can_dump_core): Made nonstatic. Moved printing code to...
889 (warn_cant_dump_core): New function.
890 (can_dump_core_warn): Likewise.
891 (internal_vproblem): Replace calls to can_dump_core with
892 calls to can_dump_core_warn. Supply new argument to each.
894 2014-06-19 Gary Benson <gbenson@redhat.com>
896 * utils.h (demangler_vwarning): New declaration.
897 (demangler_warning): Likewise.
898 * utils.c (struct internal_problem)
899 <user_settable_should_quit>: New field.
900 <user_settable_should_dump_core>: Likewise
901 (internal_error_problem): Add values for above new fields.
902 (internal_warning_problem): Likewise.
903 (demangler_warning_problem): New static global.
904 (demangler_vwarning): New function.
905 (demangler_warning): Likewise.
906 (add_internal_problem_command): Selectively add commands.
907 (_initialize_utils): New internal problem command.
908 * maint.c (maintenance_demangler_warning): New function.
909 (_initialize_maint_cmds): New command.
911 2014-06-18 Tom Tromey <tromey@redhat.com>
913 * f-valprint.c (info_common_command_for_block): Update.
914 * symtab.h (struct general_symbol_info) <common_block>: Now
917 2014-06-18 Tom Tromey <tromey@redhat.com>
919 * symtab.h (struct symtab) <blockvector>: Now const.
920 * ada-lang.c (ada_add_global_exceptions): Update.
921 * buildsym.c (augment_type_symtab): Update.
922 * dwarf2read.c (dw2_lookup_symbol): Update.
923 * jit.c (finalize_symtab): Update.
924 * jv-lang.c (add_class_symtab_symbol): Update.
925 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
927 * objfiles.c (objfile_relocate1): Update.
928 * psymtab.c (lookup_symbol_aux_psymtabs)
929 (maintenance_check_psymtabs): Update.
930 * python/py-symtab.c (stpy_global_block, stpy_static_block):
932 * spu-tdep.c (spu_catch_start): Update.
933 * symmisc.c (dump_symtab_1): Update.
934 * symtab.c (lookup_global_symbol_from_objfile)
935 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
936 (basic_lookup_transparent_type_quick)
937 (basic_lookup_transparent_type, find_pc_sect_symtab)
938 (find_pc_sect_line, search_symbols): Update.
939 * block.c (find_block_in_blockvector): Make "bl" const.
940 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
942 (blockvector_contains_pc): Make "bv" const.
943 (block_for_pc_sect): Update.
944 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
945 (blockvector_contains_pc): Update.
946 * breakpoint.c (resolve_sal_pc): Update.
947 * inline-frame.c (block_starting_point_at): Update.
949 2014-06-18 Tom Tromey <tromey@redhat.com>
951 * completer.c (complete_line): Make "line_buffer" const.
952 * completer.h (complete_line): Update.
954 2014-06-18 Tom Tromey <tromey@redhat.com>
956 * symtab.c (add_macro_name): Remove unneeded cast.
958 2014-06-18 Tom Tromey <tromey@redhat.com>
960 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
961 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
963 2014-06-18 Tom Tromey <tromey@redhat.com>
965 * probe.c (info_probes_for_ops): Make "arg" const.
966 * probe.h (info_probes_for_ops): Update.
968 2014-06-18 Tom Tromey <tromey@redhat.com>
970 * varobj.c (varobj_create): Update.
971 * valops.c (value_of_this): Update.
972 * tracepoint.c (add_local_symbols, scope_info): Update.
973 * symtab.h (struct general_symbol_info) <block>: Now const.
974 * symtab.c (skip_prologue_sal)
975 (default_make_symbol_completion_list_break_on)
976 (skip_prologue_using_sal): Update.
977 * stack.h (iterate_over_block_locals)
978 (iterate_over_block_local_vars): Update.
979 * stack.c (print_frame_args): Update.
980 (iterate_over_block_locals, iterate_over_block_local_vars): Make
982 (get_selected_block): Make return type const.
983 * python/py-frame.c (frapy_block): Update.
984 * python/py-block.c (gdbpy_block_for_pc): Update.
985 * p-exp.y (%union) <bval>: Now const.
986 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
987 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
988 * m2-exp.y (%union) <bval>: Now const.
989 * linespec.c (get_current_search_block): Make return type const.
990 (create_sals_line_offset, find_label_symbols): Update.
991 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
993 (block_starting_point_at): Make "block" const.
994 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
995 (check_exception_resume): Update.
996 * guile/scm-frame.c (gdbscm_frame_block): Update.
997 * guile/scm-block.c (gdbscm_lookup_block): Update.
998 * frame.h (get_frame_block): Update.
999 (get_selected_block): Make return type const.
1000 * frame.c (frame_id_inner): Update.
1001 * f-valprint.c (info_common_command_for_block)
1002 (info_common_command): Update.
1003 * dwarf2loc.c (dwarf2_find_location_expression)
1004 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1005 (locexpr_describe_location_piece): Update.
1006 * c-exp.y (%union) <bval>: Now const.
1007 * breakpoint.c (resolve_sal_pc): Update.
1008 * blockframe.c (get_frame_block):Make return type const.
1009 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1010 (block_innermost_frame): Update.
1011 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1012 (block_for_pc, block_for_pc_sect): Update.
1013 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1015 (block_for_pc_sect, block_for_pc): Make return type const.
1016 * ax-gdb.c (gen_expr): Update.
1017 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1018 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1019 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1020 (ada_read_var_value): Update.
1021 * ada-exp.y (struct name_info) <block>: Now const.
1023 (block_lookup): Constify.
1025 2014-06-18 Gary Benson <gbenson@redhat.com>
1027 * nat/i386-dregs.h: New file.
1028 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1029 * i386-nat.h (i386-dregs.h): New include.
1030 (DR_FIRSTADDR): Now in i386-dregs.h.
1031 (DR_LASTADDR): Likewise.
1032 (DR_NADDR): Likewise.
1033 (DR_STATUS): Likewise.
1034 (DR_CONTROL): Likewise.
1035 (i386_debug_reg_state): Likewise.
1036 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1038 2014-06-18 Don Breazeal <donb@codesourcery.com>
1040 * breakpoint.c (set_longjmp_breakpoint): Call
1041 momentary_breakpoint_from_master with additional argument.
1042 (set_longjmp_breakpoint_for_call_dummy): Call
1043 momentary_breakpoint_from_master with additional argument.
1044 (set_std_terminate_breakpoint): Call
1045 momentary_breakpoint_from_master with additional argument.
1046 (momentary_breakpoint_from_master): Add argument to function
1047 definition and use it to initialize structure member flag.
1048 (clone_momentary_breakpoint): Call
1049 momentary_breakpoint_from_master with additional argument.
1050 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1051 member flags set in momentary_breakpoint_from_master.
1053 2014-06-18 Gary Benson <gbenson@redhat.com>
1055 * i386-nat.c (i386_show_dr): Renamed to
1056 i386_dr_show and made nonstatic. All uses updated.
1057 (i386_length_and_rw_bits): Renamed to
1058 i386_dr_length_and_rw_bits and made nonstatic.
1060 (i386_insert_aligned_watchpoint): Renamed to
1061 i386_dr_insert_aligned_watchpoint and made nonstatic.
1063 (i386_remove_aligned_watchpoint): Renamed to
1064 i386_dr_remove_aligned_watchpoint and made nonstatic.
1066 (i386_update_inferior_debug_regs): Renamed to
1067 i386_dr_update_inferior_debug_regs and made nonstatic.
1070 2014-06-18 Gary Benson <gbenson@redhat.com>
1072 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1073 (i386_dr_low_can_set_control): Likewise.
1074 (i386_dr_low_set_addr): Likewise.
1075 (i386_dr_low_set_control): Likewise.
1076 (i386_dr_low_get_addr): Likewise.
1077 (i386_dr_low_get_status): Likewise.
1078 (i386_dr_low_get_control): Likewise.
1079 (i386_insert_aligned_watchpoint): Use new macros.
1080 (i386_update_inferior_debug_regs): Likewise.
1081 (i386_stopped_data_address): Likewise.
1083 2014-06-18 Gary Benson <gbenson@redhat.com>
1085 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1086 New parameter. All uses updated.
1088 2014-06-18 Gary Benson <gbenson@redhat.com>
1090 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1093 2014-06-18 Gary Benson <gbenson@redhat.com>
1095 * i386-nat.c (debug_printf): New macro.
1096 (i386_get_debug_register_length): Likewise.
1097 (TARGET_HAS_DR_LEN_8): Use above macro.
1098 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1099 and printf_unfiltered. Use phex to format values.
1101 2014-06-18 Gary Benson <gbenson@redhat.com>
1103 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1106 2014-06-18 Gary Benson <gbenson@redhat.com>
1108 * i386-nat.c: Comment changes.
1110 2014-06-18 Gary Benson <gbenson@redhat.com>
1112 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1114 2014-06-18 Gary Benson <gbenson@redhat.com>
1116 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1117 (i386_insert_aligned_watchpoint): Likewise.
1118 (i386_remove_aligned_watchpoint): Likewise.
1119 (i386_handle_nonaligned_watchpoint): Likewise.
1121 2014-06-18 Gary Benson <gbenson@redhat.com>
1123 * i386-nat.c: Whitespace changes.
1125 2014-06-17 Samuel Bronson <naesten@gmail.com>
1127 * MAINTAINERS: Update Roland McGrath's email address.
1128 Thanks to Sergio Durigan Junior for pointing out that he left
1129 Red Hat a while ago, and giving me a current address.
1131 2014-06-17 Tom Tromey <tromey@redhat.com>
1133 * utils.h (savestring): Remove declaration.
1135 2014-06-17 Tom Tromey <tromey@redhat.com>
1137 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1139 2014-06-16 Keith Seitz <keiths@redhat.com>
1142 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1143 to update the varobj if inferior_ptid is null_ptid.
1145 2014-06-16 Tom Tromey <tromey@redhat.com>
1147 * target.h (struct target_ops) <to_info_proc>: Make parameter
1149 (target_info_proc): Update.
1150 * target.c (target_info_proc): Make "args" const.
1151 * procfs.c (procfs_info_proc): Update.
1152 * linux-tdep.c (linux_info_proc): Update.
1153 (linux_core_info_proc_mappings): Make "args" const.
1154 (linux_core_info_proc): Update.
1155 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1156 * gdbarch.c: Rebuild.
1157 * gdbarch.h: Rebuild.
1158 * corelow.c (core_info_proc): Update.
1160 2014-06-16 Tom Tromey <tromey@redhat.com>
1162 * target.h (struct target_ops) <to_disconnect>: Make parameter
1164 (target_disconnect): Update.
1165 * target.c (target_disconnect): Make "args" const.
1166 * target-delegates.c: Rebuild.
1167 * remote.c (remote_disconnect): Update.
1168 * record.h (record_disconnect): Update.
1169 * record.c (record_disconnect): Update.
1170 * inf-child.c (inf_child_disconnect): Update.
1172 2014-06-16 Tom Tromey <tromey@redhat.com>
1174 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1175 * target.c (debug_to_rcmd, default_rcmd): Update.
1176 * target-delegates.c: Rebuild.
1177 * remote.c (remote_rcmd): Update.
1178 * monitor.c (monitor_rcmd): Update.
1180 2014-06-16 Pedro Alves <palves@redhat.com>
1182 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1183 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1184 have OBJF_SHARED set.
1185 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1186 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1187 instead of OBJF_USERLOADED.
1188 * objfiles.h (OBJF_SHARED): Update comment.
1189 (userloaded_objfile_contains_address_p): Rename to ...
1190 (shared_objfile_contains_address_p): ... this, and update
1192 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1194 (remove_symbol_file_command): Skip objfiles that don't have
1197 2014-06-16 Tom Tromey <tromey@redhat.com>
1199 * minsyms.h (prim_record_minimal_symbol)
1200 (prim_record_minimal_symbol_and_info): Update comments.
1202 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1204 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1205 or --without-guile, according to how GDB was built.
1207 2014-06-13 Tom Tromey <tromey@redhat.com>
1209 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1211 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1213 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1215 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1216 help_list.Pass all_commands, not -1, to help_list.
1217 * cli/cli-dump.c (dump_command, append_command)
1218 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1219 (binary_dump_command, binary_append_command): Pass all_commands,
1220 not -1, to help_list.
1221 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1223 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1225 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1227 * top.c (set_history): Pass all_commands, not -1, to help_list.
1228 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1229 all_commands, not -1, to help_list.
1230 * symfile.c (overlay_command): Pass all_commands, not -1, to
1232 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1234 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1236 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1238 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1239 not -1, to help_list.
1240 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1241 not -1, to help_list.
1242 * maint.c (maintenance_command, maintenance_info_command)
1243 (maintenance_print_command, maintenance_set_cmd): Pass
1244 all_commands, not -1, to help_list.
1245 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1247 * language.c (set_check): Pass all_commands, not -1, to help_list.
1248 * infcmd.c (unset_command): Pass all_commands, not -1, to
1250 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1252 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1254 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1256 * breakpoint.c (save_command): Pass all_commands, not -1, to
1258 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1259 all_commands, not -1, to help_list.
1261 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1263 * regcache.c (struct register_to_invalidate): New structure.
1264 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1266 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1268 2014-06-12 Yao Qi <yao@codesourcery.com>
1270 * varobj.c (varobj_get_num_children): Call
1271 varobj_is_dynamic_p.
1272 (varobj_list_children): Likewise.
1273 (varobj_update): Likewise. Update comments.
1275 2014-06-12 Yao Qi <yao@codesourcery.com>
1277 * varobj.c (varobj_pretty_printed_p): Rename to ...
1278 (varobj_is_dynamic_p): ... this. New function.
1279 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1280 (varobj_is_dynamic_p): Declare.
1281 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1282 (mi_print_value_p, varobj_update_one): Likewise.
1284 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1285 Yao Qi <yao@codesourcery.com>
1287 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1288 (varobj_get_iterator): Wrap up code for pretty-printer by
1289 "#if HAVE_PYTHON" and "#endif".
1290 (update_dynamic_varobj_children): Likewise.
1292 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1293 Yao Qi <yao@codesourcery.com>
1295 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1296 gdb_python_initialized is false. Move some code from varobj.c.
1297 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1298 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1299 (struct varobj_item): Moved to varobj-iter.h".
1300 (varobj_clear_saved_item): New function.
1301 (update_dynamic_varobj_children): Move python-related code to
1303 (free_variable): Call varobj_clear_saved_item and
1306 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1307 Yao Qi <yao@codesourcery.com>
1309 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1310 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1311 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1312 (py-varobj.o): New rule.
1313 * python/py-varobj.c: New file.
1314 * python/python-internal.h (py_varobj_get_iterator): Declare.
1315 * varobj-iter.h: New file.
1316 * varobj.c: Include "varobj-iter.h"
1317 (struct varobj) <child_iter>: Change its type from "PyObject *"
1318 to "struct varobj_iter *".
1319 <saved_item>: Likewise.
1320 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1321 [HAVE_PYTHON] (varobj_get_iterator): New function.
1322 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1323 python-specific code to python/py-varobj.c.
1324 (install_visualizer): Call varobj_iter_delete instead of
1326 * varobj.h (varobj_ensure_python_env): Declare.
1328 2014-06-12 Yao Qi <yao@codesourcery.com>
1330 * varobj.c (struct varobj_item): New structure.
1331 (create_child_with_value): Update declaration.
1332 (varobj_add_child): Replace arguments 'name' and 'value' with
1333 'item'. All callers updated.
1334 (install_dynamic_child): Likewise.
1335 (update_dynamic_varobj_children): Likewise.
1336 (varobj_add_child): Likewise.
1337 (create_child_with_value): Likewise.
1339 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1341 * NEWS: Create a new section for the next release branch.
1342 Rename the section of the current branch, now that it has
1345 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1347 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1348 * version.in: Bump version to 7.8.50.DATE-cvs.
1350 2014-06-11 Pedro Alves <palves@redhat.com>
1353 * ser-mingw.c (net_windows_socket_check_pending): New function.
1354 (net_windows_select_thread): Ignore spurious wakeups. Use
1355 net_windows_socket_check_pending.
1356 (net_windows_wait_handle): Check for pending events with
1357 ioctlsocket, through net_windows_socket_check_pending, instead of
1358 checking the socket's event.
1360 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1362 * python/python-internal.h (gdb_PyObject_GetAttrString)
1363 (gdb_PyObject_HasAttrString): New inline function definitions.
1364 * py-value.c (get_field_flag): Remove the now unnecessary cast to
1365 char * of the second argument to PyObject_GetAttrString.
1367 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1369 * serial.c (serial_write): Fix index of character to be printed
1370 in call to serial_logchar when serial debug traces are enabled.
1372 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1374 * gdbtypes (resolve_dynamic_range): Add function description.
1376 2014-06-09 Pedro Alves <palves@redhat.com>
1378 * linux-nat.c (linux_child_follow_fork): Initialize status with
1379 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
1380 inner block. Only pass the signal to PTRACE_DETACH if in pass
1383 2014-06-09 Gary Benson <gbenson@redhat.com>
1385 * common/signals.c (gdb_signal_from_host): Reorder to separate
1386 the always-available ANSI-standard signals from the signals that
1388 (do_gdb_signal_to_host): Likewise.
1389 * proc-events.c (signal_table): Likewise.
1391 2014-06-08 Hui Zhu <hui@codesourcery.com>
1393 * common/linux-ptrace.c (linux_disable_event_reporting): New
1395 * common/linux-ptrace.h (linux_disable_event_reporting): New
1397 * linux-nat.c (linux_child_follow_fork): Do a single step before
1400 2014-06-07 Keith Seitz <keiths@redhat.com>
1404 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1405 from symbol_matches_domain in symtab.c. All local callers
1406 of symbol_matches_domain updated.
1407 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1408 search STRUCT_DOMAIN.
1409 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1410 independently. standard_lookup will do that automatically.
1411 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1412 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1413 (cp_lookup_symbol_in_namespace): Likewise.
1414 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1415 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1416 may return a STRUCT_DOMAIN match.
1417 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1418 * cp-support.c: Include language.h.
1419 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1421 * psymtab.c (match_partial_symbol): Compare the requested
1422 domain with the symbol's domain directly.
1423 (lookup_partial_symbol): Likewise.
1424 * symtab.c (lookup_symbol_in_language): Explain when/why
1425 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1426 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1427 appropriate languages.
1428 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1429 and moved to ada-lang.c
1430 (lookup_block_symbol): Explain that this function only returns
1431 symbol matching the requested DOMAIN.
1432 Compare the requested domain with the symbol's domain directly.
1433 (iterate_over_symbols): Compare the requested domain with the
1434 symbol's domain directly.
1435 * symtab.h (symbol_matches_domain): Remove.
1437 2014-06-06 Doug Evans <xdje42@gmail.com>
1439 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
1440 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
1441 (gdbscm_guile_version_is_at_least): Declare.
1442 (gdbscm_scm_string_to_int): Declare.
1443 * guile/guile.c (gdbscm_guile_major_version): New global.
1444 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
1445 (guile_datadir): New static global.
1446 (gdbscm_guile_data_directory): New function.
1447 (initialize_scheme_side): Update.
1448 (misc_guile_functions): Add guile-data-directory.
1449 (initialize_gdb_module): Fetch guile version number.
1450 * guile/lib/gdb.scm: Remove call to add-to-load-path.
1451 * guile/lib/gdb/init.scm (%initialize!): Ditto.
1452 * guile/lib/gdb/boot.scm: Use guile-data-directory.
1453 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
1455 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
1456 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
1457 * guile/scm-value.c (gdbscm_value_to_string): Only call
1458 scm_port_conversion_strategy if Guile version >= 2.0.6.
1460 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
1462 * main.c (print_gdb_help): Add -q and --silent.
1464 2014-06-06 Gary Benson <gbenson@redhat.com>
1466 * common/signals.c: Remove preprocessor conditionals for
1467 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
1468 SIGSEGV and SIGTERM.
1469 * proc-events.c: Likewise.
1471 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
1473 * symfile.c (symfile_free_objfile): Remove restriction to
1475 * symfile-mem.c (symbol_file_add_from_memory): Call
1476 add_target_sections_of_objfile.
1478 2014-06-05 Ludovic Courtès <ludo@gnu.org>
1480 * guile/scm-value.c (gdbscm_history_append_x): Use
1481 'vlscm_get_value_smob_arg_unsafe' instead of
1482 'vlscm_scm_to_value'.
1484 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
1487 * utils.c (printchar): Don't escape at all if quoter is NUL.
1488 Update function documentation to clarify effect of parameter
1490 * remote.c (escape_buffer): Pass '\\' as the quoter to
1491 fputstrn_unfiltered.
1492 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
1493 generate the output.
1494 (mi_solib_unloaded): Same.
1496 2014-06-05 Joel Brobecker <brobecker@adacore.com>
1498 * development.sh: Delete.
1499 * Makefile.in (config.status): Adjust dependency on development.sh.
1500 * configure.ac: Adjust development.sh source call.
1501 * configure: Regenerate.
1503 2014-06-04 Doug Evans <xdje42@gmail.com>
1505 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
1506 is_scheme_bkpt, spec.
1507 (bpscm_make_breakpoint_smob): Initialize new members.
1508 (gdbscm_create_breakpoint_x): Split into two ...
1509 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
1510 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
1511 (scheme_function breakpoint_functions): Update.
1512 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
1513 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
1514 register-breakpoint!.
1516 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
1519 * mem-break.c (z_type_supported): Return zero if
1520 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
1522 2014-06-04 Tom Tromey <tromey@redhat.com>
1524 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1525 value_from_contents_and_address_unresolved.
1526 (ada_template_to_fixed_record_type_1): Likewise.
1527 (ada_which_variant_applies): Likewise.
1528 * value.h (value_from_contents_and_address_unresolved): Declare.
1529 * value.c (value_from_contents_and_address_unresolved): New
1531 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
1532 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
1533 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
1535 2014-06-04 Tom Tromey <tromey@redhat.com>
1537 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
1539 2014-06-04 Tom Tromey <tromey@redhat.com>
1541 * procfs.c (procfs_attach): Make "args" const.
1542 * windows-nat.c (windows_attach): Make "args" const.
1543 * nto-procfs.c (procfs_attach): Make "args" const.
1544 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
1545 * go32-nat.c (go32_attach): Make "args" const.
1546 * gnu-nat.c (gnu_attach): Make "args" const.
1547 * darwin-nat.c (darwin_attach): Make "args" const.
1548 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
1549 * linux-nat.c (linux_nat_attach): Make "args" const.
1550 * remote.c (extended_remote_attach_1, extended_remote_attach):
1552 * target.h (struct target_ops) <to_attach>: Make "args" const.
1553 (find_default_attach): Likewise.
1554 * utils.c (parse_pid_to_attach): Make "args" const.
1555 * utils.h (parse_pid_to_attach): Update.
1557 2014-06-04 Tom Tromey <tromey@redhat.com>
1559 * target-delegates.c: Rebuild.
1560 * target.c (default_thread_address_space): New function.
1561 (target_thread_address_space): Simplify.
1562 * target.h (struct target_ops) <to_thread_address_space>: Add
1563 TARGET_DEFAULT_FUNC.
1565 2014-06-04 Doug Evans <xdje42@gmail.com>
1567 * guile/scm-type.c (type_smob): Remove duplicate typedef.
1569 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
1571 * record-btrace.c: Include event-loop.h and inf-loop.h.
1572 (record_btrace_resume_exec_dir)
1573 (record_btrace_async_inferior_event_handler)
1574 (record_btrace_handle_async_inferior_event): New.
1575 (record_btrace_open): Create async event handler.
1576 (record_btrace_close): Delete async event handler.
1577 (record_btrace_resume): Set record_btrace_resume_exec_dir,
1578 Mark async event handler.
1579 (record_btrace_execution_direction): New.
1580 (init_record_btrace_ops): Initialize to_execution_direction.
1582 2014-06-03 Doug Evans <xdje42@gmail.com>
1584 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
1585 (gdbscm_make_parameter): Ditto.
1587 2014-06-03 Doug Evans <dje@google.com>
1589 * exec.c (exec_close_1): Call clear_section_table instead of
1590 resize_section_table.
1591 (clear_section_table): New function.
1592 (resize_section_table): Make static. Rename arg num_added to
1594 * exec.h (clear_section_table): Declare.
1595 (resize_section_table): Delete.
1596 * progspace.c (release_program_space): Call clear_section_table
1597 instead of resize_section_table.
1599 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1601 * NEWS (Python Scripting): Add entry about the new xmethods
1604 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1606 * python/py-xmethods.c: New file.
1607 * python/py-objfile.c (objfile_object): New field 'xmethods'.
1608 (objfpy_dealloc): XDECREF on the new xmethods field.
1609 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
1611 (objfpy_get_xmethods): New function.
1612 (objfile_getset): New entry 'xmethods'.
1613 * python/py-progspace.c (pspace_object): New field 'xmethods'.
1614 (pspy_dealloc): XDECREF on the new xmethods field.
1615 (pspy_new, pspace_to_pspace_object): Initialize xmethods
1617 (pspy_get_xmethods): New function.
1618 (pspace_getset): New entry 'xmethods'.
1619 * python/python-internal.h: Add declarations for new functions.
1620 * python/python.c (_initialize_python): Invoke
1621 gdbpy_initialize_xmethods.
1622 * python/lib/gdb/__init__.py (xmethods): New
1624 * python/lib/gdb/xmethod.py: New file.
1625 * python/lib/gdb/command/xmethods.py: New file.
1627 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1629 * eval.c (evaluate_subexp_standard): Call the xmethod if the
1630 best match method returned by find_overload_match is an xmethod.
1631 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
1632 the best matching operator returned by find_overload_match is an
1634 * valops.c: #include "extension.h".
1635 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
1636 Return void. The list of matching source methods is returned in
1637 "fn_list" and a vector of matching debug method workers is
1638 returned in "xm_worker_vec". Update all callers.
1639 (value_find_oload_method_list): Likewise.
1640 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
1641 non-NULL, then the index of the best matching method in this
1642 vector is returned. Update all callers.
1643 (find_overload_match): Include xmethods while performing overload
1646 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1648 * defs.h (enum lval_type): New enumerator "lval_xcallable".
1649 * extension-priv.h (struct extension_language_ops): Add the
1651 * extension.c (new_xmethod_worker, clone_xmethod_worker,
1652 get_matching_xmethod_workers, get_xmethod_argtypes,
1653 invoke_xmethod, free_xmethod_worker,
1654 free_xmethod_worker_vec): New functions.
1655 * extension.h: #include "common/vec.h".
1656 New function declarations.
1657 (struct xmethod_worker): New struct.
1658 (VEC (xmethod_worker_ptr)): New vector type.
1659 (xmethod_worker_ptr): New typedef.
1660 (xmethod_worker_vec): Likewise.
1661 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
1663 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
1664 (struct builtin_type): New field "xmethod".
1665 * valarith.c (value_ptradd): Assert that the value argument is not
1667 * valops.c (value_must_coerce_to_target): Return 0 for
1668 lval_xcallable values.
1669 * value.c (struct value): New field XM_WORKER in the field
1671 (value_address, value_raw_address): Return 0 for lval_xcallable
1673 (set_value_address): Assert that the value is not an
1675 (value_free): Free the associated xmethod worker when freeing
1676 lval_xcallable values.
1677 (set_value_component_location): Assert that the WHOLE value is not
1679 (value_of_xmethod, call_xmethod): New functions.
1680 * value.h: Declare "struct xmethod_worker".
1681 Declare new functions value_of_xmethod, call_xmethod.
1683 2014-06-03 Joel Brobecker <brobecker@adacore.com>
1684 Pedro Alves <palves@redhat.com>
1686 PR breakpoints/17000
1687 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
1688 New function, extracted from software_breakpoint_inserted_here_p.
1689 (software_breakpoint_inserted_here_p): Replace factored out code
1690 by call to find_non_raw_software_breakpoint_inserted_here.
1691 (bp_target_info_copy_insertion_state): New function.
1692 (bkpt_insert_location): Handle the case of a single-step
1693 breakpoint already inserted at the same address.
1694 (bkpt_remove_location): Handle the case of a single-step
1695 breakpoint still inserted at the same address.
1696 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
1697 breakpoint already inserted at the same address.
1698 (deprecated_remove_raw_breakpoint): Handle the case of a
1699 non-raw breakpoint still inserted at the same address.
1700 (find_single_step_breakpoint): New function, extracted from
1701 single_step_breakpoint_inserted_here_p.
1702 (find_single_step_breakpoint): New function,
1703 factored out from single_step_breakpoint_inserted_here_p.
1704 (single_step_breakpoint_inserted_here_p): Reimplement.
1706 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
1708 Pushed by Joel Brobecker <brobecker@adacore.com>
1709 * source.c (show_substitute_path_command): Fix display of matching
1712 2014-06-03 Gary Benson <gbenson@redhat.com>
1714 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
1716 2014-06-02 Doug Evans <xdje42@gmail.com>
1718 Add parameter support for Guile.
1719 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
1720 (SUBDIR_GUILE_SRCS): Add scm-param.c.
1721 (scm-param.o): New rule.
1722 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
1723 (gdbscm_misc_error): Declare.
1724 (gdbscm_canonicalize_command_name): Declare.
1725 (gdbscm_scm_to_host_string): Declare.
1726 (gdbscm_scm_from_host_string): Declare.
1727 (gdbscm_initialize_parameters): Declare.
1728 * guile/guile.c (initialize_gdb_module): Call
1729 gdbscm_initialize_parameters.
1730 * guile/lib/gdb.scm: Export parameter symbols.
1731 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
1732 cmdscm_canonicalize_name and made public. All callers updated.
1733 * guile/scm-exception.c (gdbscm_misc_error): New function.
1734 * guile/scm-param.c: New file.
1735 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
1736 (gdbscm_scm_to_host_string): New function.
1737 (gdbscm_scm_from_host_string): New function.
1738 * scm-utils.c (gdbscm_gc_dup_argv): New function.
1740 2014-06-02 Doug Evans <xdje42@gmail.com>
1742 Add command support for Guile.
1743 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
1744 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
1745 (scm-cmd.o): New rule.
1746 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
1747 (gdbscm_user_error_p): Declare.
1748 (gdbscm_parse_command_name): Declare.
1749 (gdbscm_valid_command_class_p): Declare.
1750 (gdbscm_initialize_commands): Declare.
1751 * guile/guile.c (initialize_gdb_module): Call
1752 gdbscm_initialize_commands.
1753 * guile/lib/gdb.scm: Export command symbols.
1754 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
1755 (throw-user-error): New function.
1756 * guile/scm-cmd.c: New file.
1757 * guile/scm-exception.c (user_error_symbol): New static global.
1758 (gdbscm_user_error_p): New function.
1759 (gdbscm_initialize_exceptions): Set user_error_symbol.
1760 * scm-utils.c (gdbscm_gc_xstrdup): New function.
1762 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
1764 * top.c (command_loop): Handle comments here...
1765 (command_line_input): ... not here.
1767 2014-06-02 Doug Evans <xdje42@gmail.com>
1769 Add progspace support for Guile.
1770 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
1771 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
1772 (scm-progspace.o): New rule.
1773 * guile/guile-internal.h (pspace_smob): New typedef.
1774 (psscm_pspace_smob_pretty_printers): Declare.
1775 (psscm_pspace_smob_from_pspace): Declare.
1776 (psscm_scm_from_pspace): Declare.
1777 * guile/guile.c (initialize_gdb_module): Call
1778 gdbscm_initialize_pspaces.
1779 * guile/lib/gdb.scm: Export progspace symbols.
1780 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
1782 (append-pretty-printer!): Ditto.
1783 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
1785 * guile/scm-progspace.c: New file.
1787 2014-06-03 Alan Modra <amodra@gmail.com>
1789 * ppc64-tdep.c (ppc64_standard_linkage8): New.
1790 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
1792 2014-06-02 Doug Evans <dje@google.com>
1794 Add support for skeletonless type units.
1795 * dwarf2read.c (struct dwarf2_per_objfile): New member
1796 n_allocated_type_units.
1797 (struct dwarf2_per_objfile) <tu_stats>: New member
1798 nr_all_type_units_reallocs.
1799 (create_signatured_type_table_from_index): Initialize
1800 n_allocated_type_units
1801 (create_all_type_units): Ditto.
1802 (add_type_unit): Move up in file. New arg slot.
1803 All callers updated. Increase space for all_type_units more
1805 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
1806 (lookup_dwo_signatured_type): Handle skeletonless TUs.
1807 (lookup_dwp_signatured_type): Ditto.
1808 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
1809 All callers updated.
1810 (build_type_psymtabs_1): Leave type_unit_groups as
1811 NULL if no TUs present.
1812 (print_tu_stats): New function.
1813 (process_skeletonless_type_unit): New function.
1814 (process_dwo_file_for_skeletonless_type_units): New
1816 (process_skeletonless_type_units): New function.
1817 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
1818 Call print tu_stats if debugging enabled.
1820 2014-06-02 Pedro Alves <palves@redhat.com>
1822 * breakpoint.c (build_target_command_list): Don't build a command
1823 list if we have any duplicate location that isn't a dprintf.
1825 2014-06-02 Pedro Alves <palves@redhat.com>
1827 * breakpoint.c (dprintf_breakpoint_hit): New function.
1828 (initialize_breakpoint_ops): Install it as dprintf's
1829 breakpoint_hit method.
1831 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1833 * source.c (substitute_path_rule_matches): Simplify using
1834 filename_ncmp instead of FILENAME_CMP.
1836 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1838 * source.c (substitute_path_rule_matches): Remove trailing spaces.
1840 2014-06-01 Ludovic Courtès <ludo@gnu.org>
1842 * configure.ac: When Guile is available, check for the
1843 availability of 'scm_new_smob'.
1844 * configure, config.h.in: Regenerate.
1845 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
1848 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1850 * frame.c (struct frame_info): Add stop_string field.
1851 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
1852 (get_prev_frame_always): Old content moved into
1853 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
1854 TRY_CATCH, handle MEMORY_ERROR exceptions.
1855 (frame_stop_reason_string): New function definition.
1856 * frame.h (unwind_stop_reason_to_string): Extend comment to
1857 mention frame_stop_reason_string.
1858 (frame_stop_reason_string): New function declaration.
1859 * stack.c (frame_info): Switch to frame_stop_reason_string.
1860 (backtrace_command_1): Switch to frame_stop_reason_string.
1861 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
1862 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
1863 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
1865 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1867 * frame.c (frame_stop_reason_string): Rename to ...
1868 (unwind_stop_reason_to_string): this.
1869 * frame.h (frame_stop_reason_string): Rename to ...
1870 (unwind_stop_reason_to_string): this.
1871 * stack.c (frame_info): Update call to frame_stop_reason_string.
1872 (backtrace_command_1): Likewise.
1873 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
1874 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
1876 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1878 * frame.c (remove_prev_frame): New function.
1879 (get_prev_frame_if_no_cycle): Create / discard cleanup using
1882 2014-05-29 Pedro Alves <palves@redhat.com>
1884 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
1885 and make it const. When a single-step decays to a continue,
1886 clear 'step', not 'hw_step'. Pass whether the caller wanted
1887 to step to user_visible_resume_ptid, not what we ask the
1890 2014-05-29 Pedro Alves <palves@redhat.com>
1892 * infrun.c (process_event_stop_test, handle_step_into_function)
1893 (handle_step_into_function_backward): Adjust.
1894 Don't set the even thread's stop_step and call stop_waiting before
1895 calling end_stepping_range. Instead do that ...
1896 (end_stepping_range): ... here. Take an ecs pointer parameter.
1898 2014-05-29 Pedro Alves <palves@redhat.com>
1900 * infrun.c (stop_stepping): Rename to ...
1901 (stop_waiting): ... this.
1902 (proceed): Update comment.
1903 (process_event_stop_test, handle_inferior_event)
1904 (handle_signal_stop, handle_step_into_function)
1905 (handle_step_into_function_backward): Update.
1907 2014-05-29 Pedro Alves <palves@redhat.com>
1909 * infcall.c (run_inferior_call): Don't check whether the current
1910 thread is running after the proceed call.
1912 2014-05-29 Pedro Alves <palves@redhat.com>
1913 Tom Tromey <tromey@redhat.com>
1915 * NEWS: Mention "maint set target-async", "set mi-async", and that
1916 background execution commands are now always available.
1917 * target.h (target_async_permitted): Update comment.
1918 * target.c (target_async_permitted, target_async_permitted_1):
1920 (set_target_async_command): Rename to ...
1921 (maint_set_target_async_command): ... this.
1922 (show_target_async_command): Rename to ...
1923 (maint_show_target_async_command): ... this.
1924 (_initialize_target): Adjust.
1925 * infcmd.c (prepare_execution_command): Make extern.
1926 * inferior.h (prepare_execution_command): Declare.
1927 * infrun.c (set_observer_mode): Leave target async alone.
1928 * mi/mi-interp.c (mi_interpreter_init): Install
1929 mi_on_sync_execution_done as sync_execution_done observer.
1930 (mi_on_sync_execution_done): New function.
1931 (mi_execute_command_input_handler): Don't print the prompt if we
1932 just started a synchronous command with an async target.
1933 (mi_on_resume): Check sync_execution before printing prompt.
1934 * mi/mi-main.h (mi_async_p): Declare.
1935 * mi/mi-main.c: Include gdbcmd.h.
1936 (mi_async_p): New function.
1937 (mi_async, mi_async_1): New globals.
1938 (set_mi_async_command, show_mi_async_command, mi_async): New
1940 (exec_continue): Call prepare_execution_command.
1941 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
1942 (mi_execute_async_cli_command): Use mi_async_p.
1943 (_initialize_mi_main): Install "set mi-async". Make
1944 "target-async" a deprecated alias.
1946 2014-05-29 Pedro Alves <palves@redhat.com>
1948 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
1949 (_initialize_cli_interp): Adjust.
1950 * event-loop.c: Include "observer.h".
1951 (start_event_loop): Notify 'command_error' observers instead of
1952 calling display_gdb_prompt. Remove FIXME comment.
1953 * event-top.c (display_gdb_prompt): Remove call into the
1955 * inf-loop.c: Include "observer.h".
1956 (inferior_event_handler): Notify 'command_error' observers instead
1957 of calling display_gdb_prompt.
1958 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
1959 observers instead of calling display_gdb_prompt.
1960 * interps.c (interp_set): Don't call display_gdb_prompt.
1961 (current_interp_display_prompt_p): Delete.
1962 * interps.h (interp_prompt_p): Delete declaration.
1963 (interp_prompt_p_ftype): Delete.
1964 (struct interp_procs) <prompt_proc_p>: Delete field.
1965 (current_interp_display_prompt_p): Delete declaration.
1966 * mi-interp.c (mi_interpreter_prompt_p): Delete.
1967 (_initialize_mi_interp): Adjust.
1968 * tui-interp.c (tui_init): Install 'sync_execution_done' and
1969 'command_error' observers.
1970 (tui_on_sync_execution_done, tui_on_command_error): New
1972 (tui_display_prompt_p): Delete.
1973 (_initialize_tui_interp): Adjust.
1975 2014-05-29 Pedro Alves <palves@redhat.com>
1978 * cli/cli-interp.c: Include infrun.h and observer.h.
1979 (cli_uiout, cli_interp): New globals.
1980 (cli_on_signal_received, cli_on_end_stepping_range)
1981 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
1983 (cli_interpreter_init): Install them as 'end_stepping_range',
1984 'signal_received' 'signal_exited', 'exited' and 'no_history'
1986 (_initialize_cli_interp): Remove cli_interp local.
1987 * infrun.c (handle_inferior_event): Call the several stop reason
1988 observers instead of printing the stop reason directly.
1989 (end_stepping_range): New function.
1990 (print_end_stepping_range_reason, print_signal_exited_reason)
1991 (print_exited_reason, print_signal_received_reason)
1992 (print_no_history_reason): Make static, and add an uiout
1993 parameter. Print to that instead of to CURRENT_UIOUT.
1994 * infrun.h (print_end_stepping_range_reason)
1995 (print_signal_exited_reason, print_exited_reason)
1996 (print_signal_received_reason print_no_history_reason): New
1998 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2000 <cli_uiout>: New field.
2001 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2002 uiout for CLI output. Install 'signal_received',
2003 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2005 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2006 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2007 (mi_on_no_history): New functions.
2008 (ui_out_free_cleanup): Delete function.
2009 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2010 instead use the one already stored in the MI interpreter data.
2011 (mi_ui_out): Adjust.
2012 * tui/tui-interp.c: Include infrun.h and observer.h.
2013 (tui_interp): New global.
2014 (tui_on_signal_received, tui_on_end_stepping_range)
2015 (tui_on_signal_exited, tui_on_exited)
2016 (tui_on_no_history): New functions.
2017 (tui_init): Install them as 'end_stepping_range',
2018 'signal_received' 'signal_exited', 'exited' and 'no_history'
2020 (_initialize_tui_interp): Delete tui_interp local.
2022 2014-05-29 Pedro Alves <palves@redhat.com>
2025 * linux-nat.c (linux_nat_resume_callback): Rename the second
2026 parameter to 'except'. Skip LP if it points to EXCEPT.
2027 (linux_nat_resume): Don't mark the event lwp as not stopped
2028 before resuming sibling lwps. Instead ask
2029 linux_nat_resume_callback to skip the event lwp. Mark it as not
2030 stopped after actually resuming it.
2031 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2033 (wait_lwp): Mark the lwp as stopped here.
2034 (stop_wait_callback): Mark the lwp as not stopped right after
2035 resuming it. Don't mark lwps as stopped here.
2036 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2037 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2039 2014-05-29 Pedro Alves <palves@redhat.com>
2042 * infrun.c (resume): Determine how much to resume depending on
2043 whether the caller wanted a step, not whether we can hardware step
2044 the target. Mark all threads that we intend to run as running,
2045 unless we're calling an inferior function.
2046 (normal_stop): If the thread is running an infcall, don't finish
2048 * target.c (target_resume): Don't mark threads as running here.
2050 2014-05-28 Joel Brobecker <brobecker@adacore.com>
2052 * serial.c (_initialize_serial): Remove support for
2053 the "set remotebaud" and "show remotebaud" commands.
2054 * NEWS: Add entry documenting the removal of that command.
2056 2014-05-28 Yao Qi <yao@codesourcery.com>
2058 * charset.c: Fix typo in comments.
2060 2014-05-27 Gary Benson <gbenson@redhat.com>
2062 * utils.c (internal_vproblem): Prompt for a bug report.
2064 2014-05-26 Andy Wingo <wingo@igalia.com>
2066 * guile/scm-arch.c (arscm_mark_arch_smob):
2067 * guile/scm-block.c (bkscm_mark_block_smob)
2068 (bkscm_mark_block_syms_progress_smob):
2069 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2070 * guile/scm-exception.c (exscm_mark_exception_smob):
2071 * guile/scm-frame.c (frscm_mark_frame_smob):
2072 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2073 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2074 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2075 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2076 (ppscm_mark_pretty_printer_worker_smob):
2077 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2078 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2079 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2080 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2082 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2085 2014-05-26 Andy Wingo <wingo@igalia.com>
2086 Doug Evans <xdje42@gmail.com>
2088 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2089 empty_base_class. All uses updated.
2090 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2091 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2093 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2094 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2095 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2096 (gdbscm_gsmob_has_property_p, add_property_name)
2097 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2098 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2099 (gdb-object-has-property?, gdb-object-properties): Remove.
2100 (gdb-object-kind): Renamed from gsmob-kind.
2102 2014-05-26 Andy Wingo <wingo@igalia.com>
2104 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2105 * configure: Regenerate.
2107 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2109 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2111 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2113 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2114 (replay_memory_access_read_only, replay_memory_access_read_write)
2115 (replay_memory_access_types, replay_memory_access)
2116 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2117 (cmd_set_record_btrace, cmd_show_record_btrace)
2118 (cmd_show_replay_memory_access): New.
2119 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2120 (record_btrace_remove_breakpoint): Replace
2121 record_btrace_allow_memory_access with replay_memory_access.
2122 (_initialize_record_btrace): Add commands.
2123 * NEWS: Announce it.
2125 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2127 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2129 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2131 * MAINTAINERS (Write After Approval): Move self back from
2134 2014-05-22 Pedro Alves <palves@redhat.com>
2136 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2137 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2138 (disable_randomization, enum exec_direction_kind)
2139 (execution_direction, stop_registers, start_remote)
2140 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2141 (wait_for_inferior, normal_stop, get_last_target_status)
2142 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2143 (insert_step_resume_breakpoint_at_sal)
2144 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2145 (set_step_info, print_stop_event, signal_stop_state)
2146 (signal_print_state, signal_pass_state, signal_stop_update)
2147 (signal_print_update, signal_pass_update)
2148 (update_signals_program_target, clear_exit_convenience_vars)
2149 (displaced_step_dump_bytes, update_observer_mode)
2150 (signal_catch_update, gdb_signal_from_command): Move
2152 * infrun.h: ... to this new file.
2153 * amd64-tdep.c: Include infrun.h.
2154 * annotate.c: Include infrun.h.
2155 * arch-utils.c: Include infrun.h.
2156 * arm-linux-tdep.c: Include infrun.h.
2157 * arm-tdep.c: Include infrun.h.
2158 * break-catch-sig.c: Include infrun.h.
2159 * breakpoint.c: Include infrun.h.
2160 * common/agent.c: Include infrun.h instead of inferior.h.
2161 * corelow.c: Include infrun.h.
2162 * event-top.c: Include infrun.h.
2163 * go32-nat.c: Include infrun.h.
2164 * i386-tdep.c: Include infrun.h.
2165 * inf-loop.c: Include infrun.h.
2166 * infcall.c: Include infrun.h.
2167 * infcmd.c: Include infrun.h.
2168 * infrun.c: Include infrun.h.
2169 * linux-fork.c: Include infrun.h.
2170 * linux-nat.c: Include infrun.h.
2171 * linux-thread-db.c: Include infrun.h.
2172 * monitor.c: Include infrun.h.
2173 * nto-tdep.c: Include infrun.h.
2174 * procfs.c: Include infrun.h.
2175 * record-btrace.c: Include infrun.h.
2176 * record-full.c: Include infrun.h.
2177 * remote-m32r-sdi.c: Include infrun.h.
2178 * remote-mips.c: Include infrun.h.
2179 * remote-notif.c: Include infrun.h.
2180 * remote-sim.c: Include infrun.h.
2181 * remote.c: Include infrun.h.
2182 * reverse.c: Include infrun.h.
2183 * rs6000-tdep.c: Include infrun.h.
2184 * s390-linux-tdep.c: Include infrun.h.
2185 * solib-irix.c: Include infrun.h.
2186 * solib-osf.c: Include infrun.h.
2187 * solib-svr4.c: Include infrun.h.
2188 * target.c: Include infrun.h.
2189 * top.c: Include infrun.h.
2190 * windows-nat.c: Include infrun.h.
2191 * mi/mi-interp.c: Include infrun.h.
2192 * mi/mi-main.c: Include infrun.h.
2193 * python/py-threadevent.c: Include infrun.h.
2195 2014-05-22 Pedro Alves <palves@redhat.com>
2197 * infrun.c (handle_inferior_event): Store the exit code for
2198 --return-child-result here, instead of ...
2199 (print_exited_reason): ... here.
2201 2014-05-21 Pedro Alves <palves@redhat.com>
2204 * gdbthread.h (struct thread_control_state): New field
2206 * infrun.c (follow_fork): Copy the new thread control field to the
2208 (clear_proceed_status_thread): Clear the new thread control field.
2209 (proceed): Set the new thread control field.
2210 * interps.h (command_interp): Declare.
2211 * interps.c (command_interpreter): New global.
2212 (command_interp): New function.
2213 (interp_exec): Set `command_interpreter' while here.
2214 * cli-out.c (cli_uiout_dtor): New function.
2215 (cli_ui_out_impl): Install it.
2216 * mi/mi-interp.c: Include cli-out.h.
2217 (mi_cmd_interpreter_exec): Add comment.
2218 (restore_current_uiout_cleanup): New function.
2219 (ui_out_free_cleanup): New function.
2220 (mi_on_normal_stop): If finishing an execution command started by
2221 a CLI command, or any kind of breakpoint-like event triggered,
2222 print the stop event to the output (CLI) stream.
2223 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2225 2014-05-21 Pedro Alves <palves@redhat.com>
2227 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2228 current source line having changed.
2229 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2230 * infrun.c (normal_stop): Adjust call to
2231 set_current_sal_from_frame.
2232 * source.c (clear_lines_listed_range): New function.
2233 (set_current_source_symtab_and_line, identify_source_line): Clear
2234 the lines listed range.
2235 (line_info): Handle the first "info line" after the current source
2236 line having changed.
2237 * stack.c (print_stack_frame): Remove center handling.
2238 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2241 2014-05-21 Pedro Alves <palves@redhat.com>
2243 * inf-child.c (inf_child_mourn_inferior): New function.
2244 * inf-child.h (inf_child_mourn_inferior): New declaration.
2245 * darwin-nat.c (darwin_mourn_inferior): Use
2246 inf_child_mourn_inferior.
2247 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2248 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2249 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2250 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2251 * windows-nat.c (windows_mourn_inferior): Likewise.
2253 2014-05-21 Doug Evans <xdje42@gmail.com>
2255 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
2257 2014-05-21 Doug Evans <xdje42@gmail.com>
2259 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
2260 (gdbscm_out_of_range_error): Ditto.
2261 (gdbscm_memory_error): Ditto.
2262 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2263 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
2264 (gdbscm_out_of_range_error): Update.
2265 (gdbscm_memory_error): Update.
2266 (gdbscm_scm_to_target_string_unsafe): Delete.
2268 2014-05-21 Pedro Alves <palves@redhat.com>
2270 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2272 (inf_child_open_target): New function.
2273 (inf_child_open): Use inf_child_open_target to push the target
2274 instead of erroring out.
2275 (inf_child_disconnect, inf_child_close)
2276 (inf_child_maybe_unpush_target): New functions.
2277 (inf_child_target): Install inf_child_disconnect and
2278 inf_child_close. Store a pointer to the returned object.
2279 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2281 * target.c (auto_connect_native_target): New global.
2282 (show_default_run_target): New function.
2283 (find_default_run_target): Return NULL if automatically connecting
2284 to the native target is disabled.
2285 (_initialize_target): Install set/show auto-connect-native-target.
2286 * NEWS: Mention "set auto-connect-native-target", and "target
2288 * linux-nat.c (super_close): New global.
2289 (linux_nat_close): Call super_close.
2290 (linux_nat_add_target): Store a pointer to the base class's
2292 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2293 inf_child_maybe_unpush.
2294 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2296 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2297 the inferior. Use inf_child_maybe_unpush_target.
2298 (inf_ttrace_attach): Don't push the target if it is already
2300 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2301 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2302 after mourning the inferior. Use inf_child_maybe_unpush_target.
2303 (darwin_attach_pid): Don't push the target if it is already
2305 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2306 mourning the inferior. Use inf_child_maybe_unpush_target.
2307 (gnu_detach): Use inf_child_maybe_unpush_target.
2308 * go32-nat.c (go32_create_inferior): Don't push the target if it
2310 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2311 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2312 (procfs_open): Rename to ...
2313 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2314 comments. Can target_preopen before changing node. Call
2315 inf_child_open_target to push the target explicitly.
2316 (procfs_attach): Don't push the target if it is already pushed.
2317 (procfs_detach): Use inf_child_maybe_unpush_target.
2318 (procfs_create_inferior): Don't push the target if it is already
2320 (nto_native_ops): New global.
2321 (procfs_open): Reimplement.
2322 (procfs_native_open): New function.
2323 (init_procfs_targets): Install procfs_native_open as to_open of
2324 "target native". Store a pointer to the "native" target in
2326 * procfs.c (procfs_attach): Don't push the target if it is already
2328 (procfs_detach): Use inf_child_maybe_unpush_target.
2329 (procfs_mourn_inferior): Only unpush the target after mourning the
2330 inferior. Use inf_child_maybe_unpush_target.
2331 (procfs_init_inferior): Don't push the target if it is already
2333 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2334 if it is already pushed.
2336 2014-05-21 Pedro Alves <palves@redhat.com>
2338 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2339 and "procfs" targets are now called "native" instead.
2341 2014-05-21 Pedro Alves <palves@redhat.com>
2343 * go32-nat.c (go32_open): Delete.
2344 (go32_target): Don't override the to_open method.
2346 2014-05-21 Pedro Alves <palves@redhat.com>
2348 * nto-procfs.c (procfs_can_run): New function.
2349 (nto_procfs_ops): New global.
2350 (init_procfs_targets): New, based on procfs_target. Install
2351 "target native" in addition to "target procfs".
2352 (_initialize_procfs): Call init_procfs_targets instead of adding
2355 2014-05-21 Pedro Alves <palves@redhat.com>
2357 * windows-nat.c (windows_target): Don't override to_shortname,
2358 to_longname or to_doc.
2360 2014-05-21 Pedro Alves <palves@redhat.com>
2362 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2365 2014-05-21 Pedro Alves <palves@redhat.com>
2367 * darwin-nat.c (_initialize_darwin_inferior): Don't override
2368 to_shortname, to_longname or to_doc.
2370 2014-05-21 Pedro Alves <palves@redhat.com>
2372 * go32-nat.c (go32_target): Don't override to_shortname,
2373 to_longname or to_doc.
2375 2014-05-21 Pedro Alves <palves@redhat.com>
2377 * inf-child.c (inf_child_open): Remove mention of "child".
2378 (inf_child_target): Rename target to "native" instead of "child".
2380 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2382 * Makefile.in (SFILES): Delete "regset.c".
2383 (COMMON_OBS): Delete "regset.o".
2385 * regset.h (regset_alloc): Delete prototype.
2387 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2389 * sparc-linux-tdep.c (sparc32_linux_gregset)
2390 (sparc32_linux_fpregset): New static regset structures.
2391 (sparc32_linux_init_abi): Drop dynamic regset allocations.
2392 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
2394 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
2395 (sparc64_linux_fpregset): New static regset structures.
2396 (sparc64_linux_init_abi): Drop dynamic regset allocations.
2397 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
2398 New static regset structures.
2399 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
2400 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
2401 New static regset structures.
2402 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
2403 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
2404 New static regset structures.
2405 (sparc64obsd_init_abi): Drop dynamic regset allocations.
2406 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
2407 New static regset structures.
2408 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
2410 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2412 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
2413 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
2414 register maps ("regmaps") from "*regset" to "*regmap". Do this
2415 for all regmap types and variables.
2416 * sparc-linux-tdep.c (sparc32_linux_step_trap)
2417 (sparc32_linux_supply_core_gregset)
2418 (sparc32_linux_collect_core_gregset)
2419 (sparc32_linux_supply_core_fpregset)
2420 (sparc32_linux_collect_core_fpregset): Likewise.
2421 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
2422 (sparc_gregmap, sparc_fpregmap): ... these.
2423 (sparc_supply_gregset, sparc_collect_gregset)
2424 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2425 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
2426 (_initialize_sparc_nat): Rename regmaps.
2427 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
2428 (sparc_gregmap, sparc_fpregmap): ... these.
2429 (sparc_supply_gregset, sparc_collect_gregset)
2430 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2431 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
2433 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
2434 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
2436 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
2438 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
2439 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
2440 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
2442 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2443 (sparc32_bsd_fpregset): Rename to...
2444 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2445 (sparc32_bsd_fpregmap): ... these.
2446 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
2447 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2448 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
2449 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
2450 (struct sparc_gregmap, struct sparc_fpregmap)
2451 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2452 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
2453 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
2454 (sparc32_supply_regset, sparc32_collect_gregset)
2455 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
2457 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
2458 (sparc64_linux_ptrace_gregmap): ... this.
2459 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
2460 (_initialize_sparc64_linux_nat): Rename regmaps.
2461 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
2462 (sparc64_linux_core_gregmap): ... this.
2463 (sparc64_linux_supply_core_gregset)
2464 (sparc64_linux_collect_core_gregset)
2465 (sparc64_linux_supply_core_fpregset)
2466 (sparc64_linux_collect_core_fpregset): Rename regmaps.
2467 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
2468 (sparc64_sol2_fpregset): Rename to...
2469 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
2470 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2471 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
2473 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
2474 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
2475 (sparc64_bsd_fpregset): Rename to...
2476 (struct sparc_gregmap, sparc64_sol2_gregmap)
2477 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
2478 (sparc64_bsd_fpregmap): ... these.
2479 (sparc64_supply_gregset, sparc64_collect_gregset)
2480 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
2482 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
2483 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
2484 (sparc64fbsd_gregmap): ... this.
2485 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
2486 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
2488 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
2489 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2490 (sparc64nbsd_collect_fpregset): Likewise.
2491 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
2492 (sparc64nbsd_gregmap): ... this.
2493 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
2495 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
2496 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
2497 (sparc64obsd_gregmap): ... this.
2498 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
2500 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
2501 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
2502 (sparc32nbsd_gregmap): ... this.
2503 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
2506 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2508 * score-tdep.c (score7_linux_gregset): New static regset
2510 (score7_linux_regset_from_core_section): Remove dynamic regset
2512 (score_gdbarch_init): Drop allocation of tdep structure.
2513 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
2515 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2517 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
2519 (am33_regset_from_core_section): Remove dynamic regset
2522 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2524 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
2525 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
2527 (mips_linux_regset_from_core_section): Remove dynamic regset
2529 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2530 'gregset64', 'fpregset', and 'fpregset64'.
2531 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
2532 deleted tdep fields.
2534 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2536 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
2538 (amd64_regset_from_core_section): Remove dynamic regset
2540 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
2542 (amd64obsd_regset_from_core_section): Remove dynamic regset
2544 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2546 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
2547 x86-common regset supply function.
2548 * i386-tdep.c (i386_collect_gregset): Make static.
2549 (i386_gregset): New global regset structure.
2550 (i386_fpregset, i386_xstateregset): New static regset structures.
2551 (i386_regset_from_core_section): Remove dynamic regset
2553 (i386_gdbarch_init): Remove initialization of tdep fields
2554 'gregset', 'fpregset', and 'xstateregset'.
2555 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2556 'fpregset', and 'xstateregset'.
2557 (i386_collect_gregset): Remove prototype.
2558 (i386_gregset): New declaration.
2559 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
2561 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
2564 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2566 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
2567 (arm_linux_vfpregset): New static regset structures.
2568 (arm_linux_regset_from_core_section): Remove dynamic allocation of
2570 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
2571 and 'vfpregset' fields.
2573 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2575 * aarch64-linux-tdep.c (aarch64_linux_gregset)
2576 (aarch64_linux_fpregset): New static regset structures.
2577 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
2578 of regset structures.
2579 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
2582 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2584 * regset.h (struct regset): Remove gdbarch field.
2585 * regset.c (regset_alloc): Drop initialization of gdbarch field.
2586 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2587 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
2589 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
2590 (ppc32_linux_fpregset, ppc32_linux_vrregset)
2591 (ppc32_linux_vsxregset): Likewise.
2592 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
2593 via the regcache instead of the regset.
2594 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
2595 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
2596 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
2597 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
2600 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2602 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
2603 Constify structures.
2604 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
2605 (alphanbsd_aout_gregset): Likewise.
2606 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
2607 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
2609 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
2610 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
2612 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
2613 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
2614 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
2615 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
2616 * m88k-tdep.c (m88k_gregset): Likewise.
2617 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
2618 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
2619 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2620 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
2621 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2622 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2623 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2624 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2625 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
2627 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
2628 * sh-tdep.h (sh_corefile_gregset): Likewise.
2629 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
2630 * vax-tdep.c (vax_gregset): Likewise.
2632 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2634 Fix TLS access for -static -pthread.
2635 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
2636 (try_thread_db_load_1): Initialize it.
2637 (thread_db_get_thread_local_address): Call it if LM is zero.
2638 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
2639 * target.h (struct target_ops) (to_get_thread_local_address): Add
2640 load_module_addr comment.
2642 2014-05-21 Pedro Alves <palves@redhat.com>
2644 * dcache.c (dcache_read_memory_partial): If reading the cache line
2645 fails, fallback to reading just the memory the caller wanted.
2647 2014-05-20 Doug Evans <dje@google.com>
2649 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
2650 instead of get_current_arch.
2652 2014-05-20 Pedro Alves <palves@redhat.com>
2654 * NEWS: Mention that compare-sections now works with all targets.
2656 * remote.c (PACKET_qCRC): New enum value.
2657 (remote_verify_memory): Don't send qCRC if the target has no
2658 execution. Use packet_support/packet_ok. If the target doesn't
2659 support the qCRC packet, fallback to a deep memory copy.
2660 (compare_sections_command): Say "target image" instead of "remote
2662 (_initialize_remote): Add PACKET_qCRC to the list of config
2663 packets that have no associated command. Extend comment.
2664 * target.c (simple_verify_memory, default_verify_memory): New
2666 * target.h (struct target_ops) <to_verify_memory>: Default to
2667 default_verify_memory.
2668 (simple_verify_memory): New declaration.
2669 * target-delegates.c: Regenerate.
2671 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
2673 * record-btrace.c (record_btrace_step_thread): Check for empty history.
2675 2014-05-20 Hui Zhu <hui@codesourcery.com>
2676 Yao Qi <yao@codesourcery.com>
2679 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
2680 and change address of sp and pc.
2682 2014-05-19 Tom Tromey <tromey@redhat.com>
2684 * gdbtypes.c (rank_function): Use XNEWVEC.
2685 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
2687 2014-05-19 Doug Evans <dje@google.com>
2689 * dwarf2read.c (build_type_psymtabs_1): Renamed from
2690 build_type_unit_groups and moved closer to only caller. Remove
2691 arguments. All references updated. Remove outdated .gdb_index
2693 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
2694 build_type_psymtabs_1.
2696 2014-05-19 Doug Evans <dje@google.com>
2698 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
2699 n_type_unit_groups, all_type_unit_groups. All uses removed.
2700 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
2701 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
2702 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
2703 (add_type_unit_group_to_table): Delete.
2705 2014-05-19 Doug Evans <dje@google.com>
2707 * eval.c (evaluate_subexp_standard): Add some comments.
2709 2014-05-17 Doug Evans <xdje42@gmail.com>
2711 * progspace.c (remove_program_space): Delete, unused.
2712 * progspace.h (remove_program_space): Ditto.
2714 2014-05-17 Doug Evans <xdje42@gmail.com>
2716 * inferior.c (prune_inferiors): Fix comment.
2717 (remove_inferior_command): Call prune_program_spaces.
2719 2014-05-16 Doug Evans <dje@google.com>
2721 New command line option -D.
2723 * main.c (set_gdb_data_directory): New function.
2724 (captured_main): Recognize -D. Flag error for --data-directory "".
2725 Call set_gdb_data_directory.
2726 (print_gdb_help): Print --data-directory, -D.
2727 * main.h (set_gdb_data_directory): Declare.
2728 * top.c (staged_gdb_datadir): New static global.
2729 (set_gdb_datadir): Call set_gdb_data_directory
2730 (show_gdb_datadir): New function.
2731 (init_main): Update init of data-directory parameter.
2733 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
2735 Import the "dirfd" gnulib module.
2736 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
2737 * gnulib/aclocal.m4: Update.
2738 * gnulib/config.in: Update.
2739 * gnulib/configure: Update.
2740 * gnulib/import/Makefile.am: Update.
2741 * gnulib/import/Makefile.in: Update.
2742 * gnulib/import/dirfd.c: New.
2743 * gnulib/import/m4/dirfd.m4: New.
2744 * gnulib/import/m4/gnulib-cache.m4: Update.
2745 * gnulib/import/m4/gnulib-comp.m4: Update.
2747 2014-05-16 Pierre Muller <muller@sourceware.org>
2748 Yao Qi <yao@codesourcery.com>
2750 * valprint.c (print_wchar): Move the code on checking whether
2751 W is a printable wide char to the default branch of switch
2752 statement below. Call wchar_printable instead of gdb_iswprint.
2754 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
2756 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
2757 ldr.w and ldrd instructions.
2759 2014-05-15 Doug Evans <dje@google.com>
2761 * dwarf2read.c (read_structure_type): Delete outdated comments.
2763 2014-05-14 Tom Tromey <tromey@redhat.com>
2765 * macrocmd.c (print_macro_definition): Reindent.
2767 2014-05-13 Doug Evans <xdje42@gmail.com>
2769 * python/py-cmd.c (cmdpy_completer): Add comment.
2770 (completers): Make const.
2772 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
2774 * infrun.c (resume): Remove should_resume (unused). Move up
2775 declaration of resume_ptid.
2777 2014-05-13 Tom Tromey <tromey@redhat.com>
2779 * language.h (unop_type_check): Remove.
2780 (binop_type_check): Don't declare.
2782 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
2784 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
2785 call to regcache_raw_collect.
2787 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2789 * mi/mi-console.c (mi_console_raw_packet): Use the value from
2790 mi_console->quote as the quoting character.
2792 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2794 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
2796 2014-04-29 Tom Tromey <tromey@redhat.com>
2798 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
2799 "show debug varobj".
2801 2014-05-07 Kyle McMartin <kyle@redhat.com>
2803 Pushed by Joel Brobecker <brobecker@adacore.com>.
2804 * aarch64-tdep.c (aarch64_software_single_step): New function.
2805 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
2806 with aarch64_software_single_step.
2808 2014-05-05 Joel Brobecker <brobecker@adacore.com>
2812 2014-05-05 Keith Seitz <keiths@redhat.com>
2814 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
2815 variable or history value is successfully parsed.
2817 2014-05-05 Yao Qi <yao@codesourcery.com>
2818 Pedro Alves <palves@redhat.com>
2820 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
2821 address of blocks that intersects the requested range. Trim
2822 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
2824 * ctf.c (ctf_xfer_partial): Likewise.
2826 2014-05-05 Yao Qi <yao@codesourcery.com>
2828 * printcmd.c (display_command): Remove the check to
2829 target_has_execution.
2831 2014-05-03 Mark Kettenis <kettenis@gnu.org>
2833 * ppcobsd-nat.c: Include "obsd-nat.h".
2834 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
2836 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2838 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2840 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
2841 and 16-bit signed and unsigned arguments. Update comment.
2842 (stap_parse_probe_arguments): Extend code to handle such
2843 arguments. Use warning instead of complaint to notify about
2844 unrecognized bitness.
2846 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2848 PR breakpoints/16889
2849 * stap-probe.c (stap_parse_probe_arguments): Simplify
2850 check for non-prefixed probes (i.e., probes whose
2851 arguments do not start with "N@"). Always set the
2852 argument type to a sane value.
2854 2014-05-01 David Taylor <dtaylor@emc.com>
2856 * remote.c (compare_sections_command): Add -r option to compare
2857 all loadable read-only sections.
2859 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
2861 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
2862 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
2864 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
2865 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
2866 Remove unused CORE_ADDR argument. Update all callers.
2868 2014-04-29 Pedro Alves <palves@redhat.com>
2870 * remote.c (struct packet_config) <detect>: Extend comment.
2871 (add_packet_config_cmd): Don't set the config's detect or support
2873 (init_all_packet_configs): Also initialize the config's 'detect'
2875 (reset_all_packet_configs_support): New function.
2876 (remote_open_1): Call reset_all_packet_configs_support instead of
2877 init_all_packet_configs.
2878 (_initialize_remote): Initialize all packet configs. Assert that
2879 all packets have an associated command, except a few known
2882 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2884 * dwarf2read.c (read_subrange_type): Handle dynamic
2885 DW_AT_lower_bound attributes.
2887 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2889 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
2890 dynamic bounds before computing its upper bound.
2891 (ada_discrete_type_low_bound): Same as above with the lower bound.
2893 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2895 * dwarf2read.c (is_dynamic_type): Return true for dynamic
2896 range types. Adjust the array handling implementation to
2897 take advantage of this change.
2898 (resolve_dynamic_range): New function, mostly extracted from
2899 resolve_dynamic_bounds.
2900 (resolve_dynamic_array): New function, mostly extracted from
2901 resolve_dynamic_bounds.
2902 (resolve_dynamic_bounds): Delete.
2903 (resolve_dynamic_type): Reimplement. Add handling of
2904 TYPE_CODE_RANGE types.
2906 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2908 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
2909 handling of parallel ___XA types.
2911 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2913 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
2914 unnecessary second call to static_unwrap_type.
2916 2014-04-27 Hui Zhu <hui@codesourcery.com>
2918 * stack.c (print_frame_info): Call do_gdb_disassembly with
2919 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
2921 2014-04-26 Doug Evans <xdje42@gmail.com>
2923 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
2925 2014-04-25 Pedro Alves <palves@redhat.com>
2928 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
2929 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
2930 and newline from built string.
2931 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
2932 (linux_ptrace_attach_fail_reason): ... this.
2933 * linux-nat.c (linux_nat_attach): Adjust to use
2934 linux_ptrace_attach_fail_reason.
2936 2014-04-25 Pedro Alves <palves@redhat.com>
2938 * remote.c (struct remote_state): Remove multi_process_aware,
2939 non_stop_aware, cond_tracepoints, cond_breakpoints,
2940 breakpoint_commands, fast_tracepoints, static_tracepoints,
2941 install_in_trace, disconnected_tracing,
2942 enable_disable_tracepoints, string_tracing, and
2943 augmented_libraries_svr4_read fields.
2944 (remote_multi_process_p): Move further below in the file.
2945 (struct packet_config): Add comments.
2946 (update_packet_config): Delete function.
2947 (show_packet_config_cmd): Use packet_config_support.
2948 (add_packet_config_cmd): Use NULL as set callback.
2949 (packet_ok): "set remote foo-packet"-style commands no longer
2950 change config->supported -- adjust.
2951 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
2952 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
2953 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
2954 (PACKET_QNonStop, PACKET_multiprocess_feature)
2955 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
2956 (PACKET_DisconnectedTracing_feature)
2957 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
2958 (set_remote_protocol_packet_cmd): Delete function.
2959 (packet_config_support, packet_support): New functions.
2960 (set_remote_protocol_Z_packet_cmd): Don't call
2961 update_packet_config.
2962 (remote_query_attached, remote_pass_signals)
2963 (remote_program_signals, remote_threads_info)
2964 (remote_threads_extra_info, remote_start_remote): Use
2966 (remote_start_remote): Use packet_config_support and
2968 (init_all_packet_configs): Set all packets to unknown support,
2969 instead of calling update_packet_config.
2970 (remote_check_symbols): Use packet_support.
2971 (remote_supported_packet): Unconditionally set the packet config's
2973 (remote_multi_process_feature, remote_non_stop_feature)
2974 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
2975 (remote_breakpoint_commands_feature)
2976 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
2977 (remote_install_in_trace_feature)
2978 (remote_disconnected_tracing_feature)
2979 (remote_enable_disable_tracepoint_feature)
2980 (remote_string_tracing_feature)
2981 (remote_augmented_libraries_svr4_read_feature): Delete functions.
2982 (remote_protocol_features): Adjust to use remote_supported_packet
2983 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
2984 "ConditionalTracepoints", "ConditionalBreakpoints",
2985 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
2986 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
2987 "EnableDisableTracepoints", and "tracenz".
2988 (remote_query_supported): Use packet_support.
2989 (remote_open_1): Adjust.
2990 (extended_remote_attach_1): Use packet_support. Switch on the
2991 result of packet_ok instead of checking whether the packet ended
2993 (remote_vcont_resume): Use packet_support.
2994 (remote_resume, remote_stop_ns, fetch_register_using_p)
2995 (remote_prepare_to_store, store_register_using_P)
2996 (check_binary_download, remote_write_bytes): Use packet_support.
2997 (remote_vkill): Use packet_support. Switch on the result of
2998 packet_ok instead of checking whether the packet ended up
3000 (extended_remote_supports_disable_randomization): Use
3002 (extended_remote_run): Switch on the result of packet_ok instead
3003 of checking whether the packet ended up disabled.
3004 (remote_insert_breakpoint, remote_remove_breakpoint)
3005 (remote_insert_watchpoint, remote_remove_watchpoint)
3006 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3008 (remote_search_memory): Use packet_config_support.
3009 (remote_get_thread_local_address, remote_get_tib_address)
3010 (remote_hostio_send_command, remote_can_execute_reverse): Use
3012 (remote_supports_cond_tracepoints)
3013 (remote_supports_cond_breakpoints)
3014 (remote_supports_fast_tracepoints)
3015 (remote_supports_static_tracepoints)
3016 (remote_supports_install_in_trace)
3017 (remote_supports_enable_disable_tracepoint)
3018 (remote_supports_string_tracing)
3019 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3020 the packet config says the feature is enabled or disabled.
3021 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3022 (remote_get_trace_status): Use packet_support.
3023 (remote_set_disconnected_tracing): Adjust to check whether the
3024 feature is enabled with packet_support.
3025 (remote_set_trace_buffer_size, remote_use_agent)
3026 (remote_can_use_agent, remote_supports_btrace): Use
3028 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3029 Use packet_config_support.
3030 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3031 the packet config says the feature is enabled or disabled.
3032 (set_range_stepping): Use packet_support.
3034 2014-04-25 Tom Tromey <tromey@redhat.com>
3036 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3039 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3041 * NEWS: Mention support for C99 variable length arrays.
3043 2014-04-24 Joel Brobecker <brobecker@adacore.com>
3045 * ada-lang.c (standard_exc): Expand introductory comment.
3047 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
3048 Walfred Tedeschi <walfred.tedeschi@intel.com>
3050 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3052 (amd64_linux_read_description): Add code to handle AVX512 xstate
3053 mask and return respective tdesc.
3054 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3055 and features/i386/x32-avx512-linux.c.
3056 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3057 (amd64_linux_core_read_description): Add code to handle AVX512
3058 xstate mask and return respective tdesc.
3059 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3060 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3062 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3063 (tdesc_amd64_avx512_linux): New prototype.
3064 (tdesc_x32_avx512_linux): Likewise.
3065 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3066 features/i386/x32-avx512.c.
3067 (amd64_ymm_avx512_names): New register names for pseudo
3069 (amd64_ymmh_avx512_names): New register names for raw registers
3071 (amd64_k_names): New register names for K registers.
3072 (amd64_zmmh_names): New register names for ZMM raw registers.
3073 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3074 (amd64_xmm_avx512_names): New register names for XMM16-31
3076 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3078 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3079 if feature is present.
3080 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3081 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3082 (AMD64_NUM_REGS): Adjust to new number of registers.
3083 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3084 registers supplied via XSTATE by AVX512 registers.
3085 (i386_linux_read_description): Add case for AVX512.
3086 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3087 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3088 (i386_linux_core_read_description): Add case for AVX512.
3089 (i386_linux_init_abi): Install supported register note section
3091 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3093 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3094 registers to be number of zmm7h + 1.
3095 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3096 * i386-tdep.c: Include features/i386/i386-avx512.c.
3097 (i386_zmm_names): Add ZMM pseudo register names array.
3098 (i386_zmmh_names): Add ZMM raw register names array.
3099 (i386_k_names): Add K raw register names array.
3100 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3101 registers. AVX512 has 16 more ZMM registers than there are YMM
3103 (i386_zmmh_regnum_p): Add function to look up register number of
3105 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3106 (i386_k_regnum_p): Likewise for K raw registers.
3107 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3108 registers added by AVX512.
3109 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3110 registers added by AVX512.
3111 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3113 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3114 (i386_pseudo_register_name): Add ZMM pseudo registers.
3115 (i386_zmm_type): Construct and return vector registers type for ZMM
3117 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3118 ZMM0-31 pseudo registers and K registers.
3119 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3120 and YMM16-31 registers from register cache.
3121 (i386_pseudo_register_write): Add code to write K, ZMM and
3123 (i386_register_reggroup_p): Add code to include/exclude AVX512
3124 registers in/from respective register groups.
3125 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3126 registers if feature is present in xcr0.
3127 (i386_gdbarch_init): Add code to initialize AVX512 feature
3128 variables in tdep structure, wire in pseudo registers and call
3129 initialize_tdesc_i386_avx512.
3130 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3132 (i386_regnum): Add AVX512 registers.
3133 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3134 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3135 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3136 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3138 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3139 (i386_ymm_avx512_regnum_p): Likewise.
3140 (i386_k_regnum_p): Likewise.
3141 (i386_zmm_regnum_p): Likewise.
3142 (i386_zmmh_regnum_p): Likewise.
3143 * i387-tdep.c : Update year in copyright notice.
3144 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3146 (XSAVE_YMM_AVX512_ADDR): New macro.
3147 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3149 (XSAVE_XMM_AVX512_ADDR): New macro.
3150 (xsave_avx512_k_offset): New table for K register offsets in
3152 (XSAVE_AVX512_K_ADDR): New macro.
3153 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3155 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3156 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3158 (i387_collect_xsave): Add code to collect AVX512 registers from
3160 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3161 of XMM16-31 registers.
3162 (I387_NUM_K_REGS): New define for number of K registers.
3163 (I387_K0_REGNUM): New define for K0 register number.
3164 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3165 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3166 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3168 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3169 (I387_XMM16_REGNUM): New define for XMM16 register number.
3170 (I387_YMM0_REGNUM): New define for YMM0 register number.
3171 (I387_KEND_REGNUM): New define for last K register number.
3172 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3173 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3175 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3177 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3179 * features/Makefile: Add AVX512 related files.
3180 * features/i386/32bit-avx512.xml: New file.
3181 * features/i386/64bit-avx512.xml: Likewise.
3182 * features/i386/amd64-avx512-linux.c: Likewise.
3183 * features/i386/amd64-avx512-linux.xml: Likewise.
3184 * features/i386/amd64-avx512.c: Likewise.
3185 * features/i386/amd64-avx512.xml: Likewise.
3186 * features/i386/i386-avx512-linux.c: Likewise.
3187 * features/i386/i386-avx512-linux.xml: Likewise.
3188 * features/i386/i386-avx512.c: Likewise.
3189 * features/i386/i386-avx512.xml: Likewise.
3190 * features/i386/x32-avx512-linux.c: Likewise.
3191 * features/i386/x32-avx512-linux.xml: Likewise.
3192 * features/i386/x32-avx512.c: Likewise.
3193 * features/i386/x32-avx512.xml: Likewise.
3194 * regformats/i386/amd64-avx512-linux.dat: New file.
3195 * regformats/i386/amd64-avx512.dat: Likewise.
3196 * regformats/i386/i386-avx512-linux.dat: Likewise.
3197 * regformats/i386/i386-avx512.dat: Likewise.
3198 * regformats/i386/x32-avx512-linux.dat: Likewise.
3199 * regformats/i386/x32-avx512.dat: Likewise.
3200 * NEWS: Add note about new support for AVX512.
3203 2014-04-23 Pedro Alves <palves@redhat.com>
3205 * breakpoint.c (insert_bp_location): Tolerate errors if the
3206 breakpoint is set in a user-loaded objfile.
3207 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3208 location is marked shlib_disabled. If the breakpoint is set in a
3209 user-loaded objfile is a GDB-side memory breakpoint, validate it
3210 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3211 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3213 * mem-break.c (memory_validate_breakpoint): New function.
3214 * objfiles.c (userloaded_objfile_contains_address_p): New
3216 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3217 * target.h (memory_validate_breakpoint): New declaration.
3219 2014-04-23 Pedro Alves <palves@redhat.com>
3221 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3222 the breakpoint is set in a shared library, only suppress
3223 errors for software breakpoints, not hardware breakpoints.
3225 2014-04-22 Pedro Alves <palves@redhat.com>
3227 * infrun.c (schedlock_applies): New function, factored out from
3228 find_thread_needs_step_over.
3229 (find_thread_needs_step_over): Use it.
3230 (switch_back_to_stepped_thread): Always clear trap_expected if the
3231 step over is finished. Return early if scheduler locking applies.
3232 Look for the stepping thread and a potential step-over thread with
3234 (currently_stepping_or_nexting_callback): Delete.
3236 2014-04-22 Nick Clifton <nickc@redhat.com>
3238 * NEWS: Mention that ARM sim now supports tracing.
3240 2014-04-22 Yao Qi <yao@codesourcery.com>
3242 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3244 * tracefile.c (tracefile_fetch_registers): ... it. New
3246 * tracefile.h (tracefile_fetch_registers): Declare.
3247 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3248 tracefile_fetch_registers.
3250 2014-04-19 Eli Zaretskii <eliz@gnu.org>
3253 * windows-nat.c (thread_rec): Don't display a warning when
3254 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3255 fails for any reason, set th->suspended to -1, so that we don't
3256 try to resume such a thread. Also, don't return NULL in these
3257 cases, to avoid completely ruin the session due to "PC register is
3258 not available" error.
3259 (do_windows_fetch_inferior_registers): Check errors in
3260 GetThreadContext call.
3261 (windows_continue): Accept an additional argument KILLED; if not
3262 zero, ignore errors in the SetThreadContext call, since the
3263 inferior was killed and is shutting down.
3264 (windows_resume, get_windows_debug_event)
3265 (windows_create_inferior, windows_mourn_inferior)
3266 (windows_kill_inferior): All callers of windows_continue changed
3267 to adjust to its new calling sequence.
3269 2014-04-19 Yao Qi <yao@codesourcery.com>
3271 * ctf.c (ctf_open): Call post_create_inferior.
3273 2014-04-19 Yao Qi <yao@codesourcery.com>
3275 * ctf.c (handle_id): New static variable.
3276 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3277 value. Get the declaration of event "register" and get length
3278 of field "contents".
3280 2014-04-19 Yao Qi <yao@codesourcery.com>
3282 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3284 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3286 * valops.c (oload_method_static): Remove unnecessary argument
3287 METHOD. Update all callers.
3289 2014-04-18 Pedro alves <palves@redhat.com>
3290 Tom Tromey <tromey@redhat.com>
3293 * frame.c (get_prev_frame_1): Rename to ...
3294 (get_prev_frame_always): ... this, and make extern. Adjust.
3295 (skip_artificial_frames): Use get_prev_frame_always.
3296 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3297 (get_frame_unwind_stop_reason): Adjust to rename.
3298 * frame.h (get_prev_frame_always): Declare.
3299 * inline-frame.c: Include frame.h.
3300 (inline_frame_this_id): Use get_prev_frame_always.
3302 2014-04-18 Tristan Gingold <gingold@adacore.com>
3304 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3305 code by using bfd_mach_o_get_base_address.
3307 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3309 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3310 (spu_ax_pseudo_register_collect): New function.
3311 (spu_ax_pseudo_register_push_stack): Likewise.
3312 (spu_dwarf_reg_to_regnum): Likewise.
3313 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3315 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3317 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3318 Replace FRAME argument with FRAME_ID.
3319 * gdbarch.c, gdbarch.h: Regenerate.
3320 * findvar.c (default_value_from_register): Add GDBARCH argument;
3321 replace FRAME by FRAME_ID. No longer call get_frame_id.
3322 (value_from_register): Update call to gdbarch_value_from_register.
3323 * value.h (default_value_from_register): Update prototype.
3324 * s390-linux-tdep.c (s390_value_from_register): Update interface
3325 and call to default_value_from_register.
3326 * spu-tdep.c (spu_value_from_register): Likewise.
3328 * findvar.c (address_from_register): Remove TYPE argument.
3329 Do not call value_from_register; use gdbarch_value_from_register
3330 with null_frame_id instead.
3331 * value.h (address_from_register): Update prototype.
3332 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3333 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3334 address_from_register interface change.
3336 2014-04-17 Yao Qi <yao@codesourcery.com>
3338 * gdbtypes.h: Update comments to link to types and macros'
3341 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3343 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3345 2014-04-16 Keith Seitz <keiths@redhat.com>
3348 * dwarf2read.c (skip_one_die): Check that all relative-offset
3349 sibling DIEs fall within range of the current reader's buffer.
3350 (read_partial_die): Likewise.
3352 2014-04-16 Keith Seitz <keiths@redhat.com>
3355 * cp-namespace.c (lookup_symbol_file): If the type name of
3356 `this' is NULL, return immediately.
3358 2014-04-14 Keith Seitz <keiths@redhat.com>
3361 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3362 from symbol_matches_domain in symtab.c. All local callers
3363 of symbol_matches_domain updated.
3364 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3365 search STRUCT_DOMAIN.
3366 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3367 independently. standard_lookup will do that automatically.
3368 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3369 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3370 (cp_lookup_symbol_in_namespace): Likewise.
3371 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3372 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3373 may return a STRUCT_DOMAIN match.
3374 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3375 * cp-support.c: Include language.h.
3376 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3378 * psymtab.c (match_partial_symbol): Compare the requested
3379 domain with the symbol's domain directly.
3380 (lookup_partial_symbol): Likewise.
3381 * symtab.c (lookup_symbol_in_language): Explain when/why
3382 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3383 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3384 appropriate languages.
3385 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3386 and moved to ada-lang.c
3387 (lookup_block_symbol): Explain that this function only returns
3388 symbol matching the requested DOMAIN.
3389 Compare the requested domain with the symbol's domain directly.
3390 (iterate_over_symbols): Compare the requested domain with the
3391 symbol's domain directly.
3392 * symtab.h (symbol_matches_domain): Remove.
3394 2014-04-14 Tom Tromey <tromey@redhat.com>
3397 * c-exp.y (type_aggregate_p): New function.
3398 (qualified_name, classify_inner_name): Use it.
3399 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
3400 and TYPE_TARGET_TYPE of an enum type.
3401 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
3403 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
3404 handle TYPE_DECLARED_CLASS.
3405 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
3407 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
3408 * valops.c (enum_constant_from_type): New function.
3409 (value_aggregate_elt): Use it.
3410 * cp-namespace.c (cp_lookup_nested_symbol): Handle
3413 2014-04-14 Tom Tromey <tromey@redhat.com>
3415 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
3416 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
3418 * value.h (value_aggregate_elt): Update.
3420 2014-04-14 Tom Tromey <tromey@redhat.com>
3422 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
3424 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3426 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3427 (evaluate_subexp_standard): Pass noside argument.
3428 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3429 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3430 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3431 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3432 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3434 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3436 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3437 points to a constant blob.
3439 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3441 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3442 property and store it as the high bound and flag the range accordingly.
3443 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3444 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3445 * gdbtypes.h (enum range_flags): New enum.
3446 (struct range_bounds): Add flags member.
3448 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3450 * c-typeprint.c (c_type_print_varspec_suffix): Added
3451 check for not yet resolved high bound. If unresolved, print
3452 "variable length" string to the console instead of random
3455 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3457 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
3459 (ada_template_to_fixed_record_type_1): Likewise.
3460 (ada_to_fixed_type_1): Likewise.
3461 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3462 (cp_print_value): Likewise.
3463 * d-valprint.c (dynamic_array_type): Likewise.
3464 * findvar.c (address_of_variable): Likewise.
3465 * jv-valprint.c (java_value_print): Likewise.
3466 * valops.c (value_ind): Likewise.
3467 * value.c (coerce_ref): Likewise.
3469 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3471 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3472 value and retrieve the dynamic type size.
3474 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3476 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3477 passed to sizeof is dynamic evaluate the argument to compute the length.
3479 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3480 Joel Brobecker <brobecker@adacore.com>
3482 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3483 (dwarf2_evaluate_property): New function.
3484 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3485 * dwarf2read.c (attr_to_dynamic_prop): New function.
3486 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3488 * gdbtypes.c: Include dwarf2loc.h.
3489 (is_dynamic_type): New function.
3490 (resolve_dynamic_type): New function.
3491 (resolve_dynamic_bounds): New function.
3492 (get_type_length): New function.
3493 (check_typedef): Use get_type_length to compute type length.
3494 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3495 (TYPE_LOW_BOUND_KIND): New macro.
3496 (is_dynamic_type): New function prototype.
3497 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3498 to resolve dynamic properties of the type. Update comment.
3499 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3501 2014-04-14 Richard Henderson <rth@redhat.com>
3503 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
3505 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
3506 Doug Evans <xdje42@gmail.com>
3508 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
3509 dereference TYPE_CODE_REF values.
3511 2014-04-11 Joel Brobecker <brobecker@adacore.com>
3513 Revert the following changes due to regressions:
3515 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3516 (dwarf2_evaluate_property): New function.
3517 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3518 * dwarf2read.c (attr_to_dynamic_prop): New function.
3519 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3521 * gdbtypes.c: Include dwarf2loc.h.
3522 (is_dynamic_type): New function.
3523 (resolve_dynamic_type): New function.
3524 (resolve_dynamic_bounds): New function.
3525 (get_type_length): New function.
3526 (check_typedef): Use get_type_length to compute type length.
3527 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3528 (TYPE_LOW_BOUND_KIND): New macro.
3529 (is_dynamic_type): New function prototype.
3530 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3531 to resolve dynamic properties of the type. Update comment.
3532 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3534 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3535 passed to sizeof is dynamic evaluate the argument to compute the length.
3537 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3538 value and retrieve the dynamic type size.
3540 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3541 (ada_template_to_fixed_record_type_1): Likewise.
3542 (ada_to_fixed_type_1): Likewise.
3543 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3544 (cp_print_value): Likewise.
3545 * d-valprint.c (dynamic_array_type): Likewise.
3546 * eval.c (evaluate_subexp_with_coercion): Likewise.
3547 * findvar.c (address_of_variable): Likewise.
3548 * jv-valprint.c (java_value_print): Likewise.
3549 * valops.c (value_ind): Likewise.
3550 * value.c (coerce_ref): Likewise.
3552 * c-typeprint.c (c_type_print_varspec_suffix): Added
3553 check for not yet resolved high bound. If unresolved, print
3554 "variable length" string to the console instead of random
3557 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3558 property and store it as the high bound and flag the range accordingly.
3559 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3560 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3561 * gdbtypes.h (enum range_flags): New enum.
3562 (struct range_bounds): Add flags member.
3564 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3565 points to a constant blob.
3567 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3568 (evaluate_subexp_standard): Pass noside argument.
3569 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3570 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3571 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3572 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3573 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3575 2014-04-11 Keith Seitz <keiths@redhat.com>
3578 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
3579 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
3582 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3584 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3585 (evaluate_subexp_standard): Pass noside argument.
3586 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3587 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3588 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3589 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3590 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3592 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3594 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3595 points to a constant blob.
3597 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3599 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3600 property and store it as the high bound and flag the range accordingly.
3601 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3602 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3603 * gdbtypes.h (enum range_flags): New enum.
3604 (struct range_bounds): Add flags member.
3606 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3608 * c-typeprint.c (c_type_print_varspec_suffix): Added
3609 check for not yet resolved high bound. If unresolved, print
3610 "variable length" string to the console instead of random
3613 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3615 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3616 (ada_template_to_fixed_record_type_1): Likewise.
3617 (ada_to_fixed_type_1): Likewise.
3618 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3619 (cp_print_value): Likewise.
3620 * d-valprint.c (dynamic_array_type): Likewise.
3621 * eval.c (evaluate_subexp_with_coercion): Likewise.
3622 * findvar.c (address_of_variable): Likewise.
3623 * jv-valprint.c (java_value_print): Likewise.
3624 * valops.c (value_ind): Likewise.
3625 * value.c (coerce_ref): Likewise.
3627 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3629 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3630 value and retrieve the dynamic type size.
3632 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3634 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3635 passed to sizeof is dynamic evaluate the argument to compute the length.
3637 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3639 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3640 (dwarf2_evaluate_property): New function.
3641 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3642 * dwarf2read.c (attr_to_dynamic_prop): New function.
3643 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3645 * gdbtypes.c: Include dwarf2loc.h.
3646 (is_dynamic_type): New function.
3647 (resolve_dynamic_type): New function.
3648 (resolve_dynamic_bounds): New function.
3649 (get_type_length): New function.
3650 (check_typedef): Use get_type_length to compute type length.
3651 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3652 (TYPE_LOW_BOUND_KIND): New macro.
3653 (is_dynamic_type): New function prototype.
3654 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3655 to resolve dynamic properties of the type. Update comment.
3656 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3658 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3660 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
3661 declaring high/low bounds and change uses accordingly. Call
3662 create_range_type instead of create_static_range_type.
3663 * gdbtypes.c (create_range_type): New function.
3664 (create_range_type): Convert bounds into struct bound_prop and pass
3665 them to create_range_type.
3666 * gdbtypes.h (struct bound_prop): New struct.
3667 (create_range_type): New function prototype.
3668 (struct range_bounds): Use struct bound_prop instead of LONGEST for
3669 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
3670 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
3672 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
3674 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3676 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
3677 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
3678 * ada-lang.c: All uses of create_range_type updated.
3679 * coffread.c: All uses of create_range_type updated.
3680 * dwarf2read.c: All uses of create_range_type updated.
3681 * f-exp.y: All uses of create_range_type updated.
3682 * m2-valprint.c: All uses of create_range_type updated.
3683 * mdebugread.c: All uses of create_range_type updated.
3684 * stabsread.c: All uses of create_range_type updated.
3685 * valops.c: All uses of create_range_type updated.
3686 * valprint.c: All uses of create_range_type updated.
3688 2014-04-10 Pedro Alves <palves@redhat.com>
3690 * breakpoint.c (single_step_breakpoints)
3691 (single_step_gdbarch): Move up in the file.
3692 (one_breakpoint_xfer_memory): New function, factored out from ...
3693 (breakpoint_xfer_memory): ... here. Also process single-step
3696 2014-04-09 Tristan Gingold <gingold@adacore.com>
3698 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
3700 (darwin_decode_exception_message): Free port only after use.
3702 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
3704 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
3705 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
3706 when setting the size of call_length.
3708 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
3710 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
3711 dereference TYPE_CODE_REF values.
3713 2014-04-07 Joel Brobecker <brobecker@adacore.com>
3715 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
3716 end of warning message.
3718 2014-04-03 Doug Evans <dje@google.com>
3720 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
3721 of stub_comp_unit_die, stub_comp_dir is non-NULL.
3723 2014-04-02 Alan Modra <amodra@gmail.com>
3725 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
3726 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
3727 (struct symbol_file_add_from_memory_args): Add size field.
3728 (find_vdso_size): New function.
3729 (add_vsyscall_page): Attempt to find vdso size.
3731 2014-04-01 Doug Evans <dje@google.com>
3733 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
3735 2014-04-01 Tristan Gingold <gingold@adacore.com>
3737 * darwin-nat.c (darwin_encode_reply): Add prototype.
3738 (darwin_decode_exception_message): Reply to unknown inferiors.
3739 (darwin_decode_message): Handle message by id. Ignore message
3740 to unknown inferior.
3741 (darwin_wait): Discard unknown messages, add debug trace.
3743 2014-03-31 Doug Evans <dje@google.com>
3745 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
3748 2014-03-31 Doug Evans <dje@google.com>
3750 New option "set print symbol-loading".
3752 * solib.c (solib_read_symbols): Only print symbol loading messages
3754 (solib_add): If symbol loading is in "brief" mode, notify user
3755 symbols are being loaded.
3756 (reload_shared_libraries_1): Ditto.
3757 * symfile.c (print_symbol_loading_off): New static global.
3758 (print_symbol_loading_brief): New static global.
3759 (print_symbol_loading_full): New static global.
3760 (print_symbol_loading_enums): New static global.
3761 (print_symbol_loading): New static global.
3762 (print_symbol_loading_p): New function.
3763 (symbol_file_add_with_addrs): Only print symbol loading messages
3765 (_initialize_symfile): Register "print symbol-loading" set/show
3767 * symfile.h (print_symbol_loading_p): Declare.
3769 2014-03-30 Doug Evans <xdje42@gmail.com>
3771 * infrun.c (set_last_target_status): New function.
3772 (handle_inferior_event): Call it.
3774 2014-03-30 Doug Evans <xdje42@gmail.com>
3776 * inferior.h (enum stop_kind): Improve comment.
3778 2014-03-28 Joel Brobecker <brobecker@adacore.com>
3780 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
3781 a reference, strip the reference layer before calling
3782 the lang_ops value_has_mutated callback.
3784 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
3786 Remove some globals from our parser.
3787 * language.c (unk_lang_parser): Add "struct parser_state"
3789 * language.h (struct language_defn) <la_parser>: Likewise.
3790 * parse.c (expout, expout_size, expout_ptr): Remove variables.
3791 (initialize_expout): Add "struct parser_state" argument.
3792 Rewrite function to use the parser state.
3793 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
3794 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
3795 write_exp_elt_longcst, write_exp_elt_dblcst,
3796 write_exp_elt_decfloatcst, write_exp_elt_type,
3797 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3798 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
3799 write_dollar_variable): Likewise.
3800 (parse_exp_in_context_1): Use parser state.
3801 (insert_type_address_space): Add "struct parser_state" argument.
3803 (increase_expout_size): New function.
3804 * parser-defs.h: Forward declare "struct language_defn" and
3805 "struct parser_state".
3806 (expout, expout_size, expout_ptr): Remove extern declarations.
3807 (parse_gdbarch, parse_language): Rewrite macro declarations to
3808 accept the parser state.
3809 (struct parser_state): New struct.
3810 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
3811 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
3812 write_exp_elt_decfloatcst, write_exp_elt_type,
3813 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3814 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
3815 write_exp_msymbol, write_dollar_variable,
3816 mark_struct_expression, insert_type_address_space): Add "struct
3817 parser_state" argument.
3818 (increase_expout_size): New function.
3819 * utils.c (do_clear_parser_state): New function.
3820 (make_cleanup_clear_parser_state): Likewise.
3821 * utils.h (make_cleanup_clear_parser_state): New function
3823 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
3824 Update calls to write_exp* in order to pass the parser state.
3825 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
3826 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
3827 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3828 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
3829 * stap-probe.c (stap_parse_register_operand): Likewise.
3830 (stap_parse_single_operand): Likewise.
3831 (stap_parse_argument_1): Likewise.
3832 (stap_parse_argument): Use parser state.
3833 * stap-probe.h: Include "parser-defs.h".
3834 (struct stap_parse_info) <pstate>: New field.
3835 * c-exp.y (parse_type): Rewrite to use parser state.
3836 (yyparse): Redefine to c_parse_internal.
3837 (pstate): New global variable.
3838 (parse_number): Add "struct parser_state" argument.
3839 (write_destructor_name): Likewise.
3840 (type_exp): Update calls to write_exp* and similars in order to
3842 (exp1, exp, variable, qualified_name, space_identifier,
3843 typename, typebase): Likewise.
3844 (write_destructor_name, parse_number, lex_one_token,
3845 classify_name, classify_inner_name, c_parse): Add "struct
3846 parser_state" argument. Update function to use parser state.
3847 * c-lang.h: Forward declare "struct parser_state".
3848 (c_parse): Add "struct parser_state" argument.
3849 * ada-exp.y (parse_type): Rewrite macro to use parser state.
3850 (yyparse): Redefine macro to ada_parse_internal.
3851 (pstate): New variable.
3852 (write_int, write_object_renaming, write_var_or_type,
3853 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
3854 type_int, type_long, type_long_long, type_float, type_double,
3855 type_long_double, type_char, type_boolean, type_system_address):
3856 Add "struct parser_state" argument.
3857 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
3858 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
3859 var_or_type, aggregate, aggregate_component_list,
3860 positional_list, others, component_group,
3861 component_associations): Update calls to write_exp* and similar
3862 functions in order to use parser state.
3863 (ada_parse, write_var_from_sym, write_int,
3864 write_exp_op_with_string, write_object_renaming,
3865 find_primitive_type, write_selectors, write_ambiguous_var,
3866 write_var_or_type, write_name_assoc, type_int, type_long,
3867 type_long_long, type_float, type_double, type_long_double,
3868 type_char, type_boolean, type_system_address): Add "struct
3869 parser_state" argument. Adjust function to use parser state.
3870 * ada-lang.c (parse): Likewise.
3871 * ada-lang.h: Forward declare "struct parser_state".
3872 (ada_parse): Add "struct parser_state" argument.
3873 * ada-lex.l (processInt, processReal): Likewise. Adjust all
3874 calls to both functions.
3875 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
3877 (yyparse): Redefine macro to f_parse_internal.
3878 (pstate): New variable.
3879 (parse_number): Add "struct parser_state" argument.
3880 (type_exp, exp, subrange, typebase): Update calls to write_exp*
3881 and similars in order to use parser state.
3882 (parse_number): Adjust code to use parser state.
3884 (f_parse): New function.
3885 * f-lang.h: Forward declare "struct parser_state".
3886 (f_parse): Add "struct parser_state" argument.
3887 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
3889 (yyparse): Redefine macro for java_parse_internal.
3890 (pstate): New variable.
3891 (push_expression_name, push_expression_name, insert_exp): Add
3892 "struct parser_state" argument.
3893 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
3894 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
3895 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
3896 PostIncrementExpression, PostDecrementExpression,
3897 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
3898 UnaryExpressionNotPlusMinus, CastExpression,
3899 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
3900 RelationalExpression, EqualityExpression, AndExpression,
3901 ExclusiveOrExpression, InclusiveOrExpression,
3902 ConditionalAndExpression, ConditionalOrExpression,
3903 ConditionalExpression, Assignment, LeftHandSide): Update
3904 calls to write_exp* and similars in order to use parser state.
3905 (parse_number): Ajust code to use parser state.
3907 (java_parse): New function.
3908 (push_variable): Add "struct parser_state" argument. Adjust
3909 code to user parser state.
3910 (push_fieldnames, push_qualified_expression_name,
3911 push_expression_name, insert_exp): Likewise.
3912 * jv-lang.h: Forward declare "struct parser_state".
3913 (java_parse): Add "struct parser_state" argument.
3914 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
3916 (yyparse): Redefine macro to m2_parse_internal.
3917 (pstate): New variable.
3918 (type_exp, exp, fblock, variable, type): Update calls to
3919 write_exp* and similars to use parser state.
3921 (m2_parse): New function.
3922 * m2-lang.h: Forward declare "struct parser_state".
3923 (m2_parse): Add "struct parser_state" argument.
3924 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
3925 * objc-lang.h: Forward declare "struct parser_state".
3926 (end_msglist): Add "struct parser_state" argument.
3927 * p-exp.y (parse_type): Rewrite macro to use parser state.
3928 (yyparse): Redefine macro to pascal_parse_internal.
3929 (pstate): New variable.
3930 (parse_number): Add "struct parser_state" argument.
3931 (type_exp, exp1, exp, qualified_name, variable): Update calls to
3932 write_exp* and similars in order to use parser state.
3933 (parse_number, yylex): Adjust code to use parser state.
3934 (pascal_parse): New function.
3935 * p-lang.h: Forward declare "struct parser_state".
3936 (pascal_parse): Add "struct parser_state" argument.
3937 * go-exp.y (parse_type): Rewrite macro to use parser state.
3938 (yyparse): Redefine macro to go_parse_internal.
3939 (pstate): New variable.
3940 (parse_number): Add "struct parser_state" argument.
3941 (type_exp, exp1, exp, variable, type): Update calls to
3942 write_exp* and similars in order to use parser state.
3943 (parse_number, lex_one_token, classify_name, yylex): Adjust code
3944 to use parser state.
3945 (go_parse): Likewise.
3946 * go-lang.h: Forward declare "struct parser_state".
3947 (go_parse): Add "struct parser_state" argument.
3949 2014-03-27 Doug Evans <dje@google.com>
3951 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
3953 2014-03-27 Doug Evans <dje@google.com>
3955 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
3956 Remove argument abbrev_section. All callers updated.
3958 2014-03-27 Doug Evans <dje@google.com>
3960 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
3961 addr_base, ranges_base.
3963 2014-03-26 Keith Seitz <keiths@redhat.com>
3965 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
3966 types, not VAR_DOMAIN.
3968 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
3970 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
3972 * features/nios2-linux.c: Regenerated.
3973 * features/nios2.c: Regenerated.
3975 2014-03-25 Pedro Alves <palves@redhat.com>
3977 * cli/cli-script.c (script_from_file): Force the interpreter to
3980 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3982 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
3983 small stack allocation.
3985 2014-03-24 Tristan Gingold <gingold@adacore.com>
3987 * darwin-nat.c (exc_server): Remove unused prototype.
3988 (darwin_dump_message): Correctly display data on x86_64.
3989 (darwin_encode_reply): Fix style.
3990 Add comments and fix indentation.
3992 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3994 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
3996 2014-03-22 Doug Evans <xdje42@gmail.com>
3998 * infcmd.c: Whitespace fixes.
3999 (interrupt_command): Merge two function comments into one.
4001 2014-03-22 Doug Evans <xdje42@gmail.com>
4003 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4006 2014-03-22 Yao Qi <yao@codesourcery.com>
4008 * remote.c (target_read_live_memory): Remove.
4009 (memory_xfer_live_readonly_partial): Rename it to
4010 remote_xfer_live_readonly_partial. Remove argument 'object'.
4011 All callers updated. Call remote_read_bytes_1
4012 instead of target_read_live_memory.
4013 * tracepoint.c (set_traceframe_number): Remove.
4014 (make_cleanup_restore_traceframe_number): Likewise .
4015 * tracepoint.h (set_traceframe_number): Remove declaration.
4016 (make_cleanup_restore_traceframe_number): Likewise.
4018 2014-03-22 Yao Qi <yao@codesourcery.com>
4020 * remote.c (remote_read_bytes): Move code on reading from the
4022 (remote_read_bytes_1): ... here. New function.
4024 2014-03-22 Yao Qi <yao@codesourcery.com>
4026 * ctf.c (ctf_xfer_partial): Check the return value of
4027 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4028 return TARGET_XFER_UNAVAILABLE.
4029 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4030 * target.c (target_read_live_memory): Move it to remote.c.
4031 (memory_xfer_live_readonly_partial): Likewise.
4032 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4033 * remote.c (target_read_live_memory): Moved from target.c.
4034 (memory_xfer_live_readonly_partial): Likewise.
4035 (remote_read_bytes): Factored out from
4036 memory_xfer_partial_1.
4038 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4040 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4043 2014-03-21 Pedro Alves <palves@redhat.com>
4045 * infrun.c (normal_stop): Extend comment.
4047 2014-03-21 Hui Zhu <hui@codesourcery.com>
4048 Pedro Alves <palves@redhat.com>
4050 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4052 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4053 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4054 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4056 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4058 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4059 `z' formatted output modifier.
4061 2014-03-20 Tom Tromey <tromey@redhat.com>
4062 Sergio Durigan Junior <sergiodj@redhat.com>
4064 * probe.c (parse_probes): Turn assert into an ordinary error.
4065 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4066 exceptions when parsing probes. Rearrange the code for clarity.
4068 2014-03-20 Tom Tromey <tromey@redhat.com>
4071 * top.c (execute_command): Only dispatch events if the command
4074 2014-03-20 Tom Tromey <tromey@redhat.com>
4077 * infcall.c: Include event-top.h.
4078 (run_inferior_call): Call async_disable_stdin if needed.
4080 2014-03-20 Pedro Alves <palves@redhat.com>
4082 * infrun.c (prepare_to_proceed): Delete.
4083 (thread_still_needs_step_over): New function.
4084 (find_thread_needs_step_over): New function.
4085 (proceed): If the current thread needs a step-over, set its
4086 steping_over_breakpoint flag. Adjust to use
4087 find_thread_needs_step_over instead of prepare_to_proceed.
4088 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4089 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4091 (switch_back_to_stepped_thread): Step over breakpoints of all
4092 threads not the stepping thread, before switching back to the
4095 2014-03-20 Pedro Alves <palves@redhat.com>
4097 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4099 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4100 * infrun.c (saved_singlestep_ptid)
4101 (stepping_past_singlestep_breakpoint): Delete.
4102 (resume): Remove stepping_past_singlestep_breakpoint handling.
4103 (proceed): Store the prev_pc of the stepping thread too.
4104 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4106 (enum infwait_states): Delete infwait_thread_hop_state.
4107 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4109 (handle_inferior_event): Adjust.
4110 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4111 handling and the thread-hop code. Before removing single-step
4112 breakpoints, check whether the thread hit a single-step breakpoint
4113 of another thread. If it did, the trap is not a random signal.
4114 (switch_back_to_stepped_thread): If the event thread hit a
4115 single-step breakpoint, unblock it before switching to the
4116 stepping thread. Handle the case of the stepped thread having
4118 (keep_going): Handle the case of the current thread moving past a
4119 single-step breakpoint.
4121 2014-03-20 Pedro Alves <palves@redhat.com>
4124 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4125 are being stepped over.
4126 (breakpoint_address_match): Make extern.
4127 * breakpoint.h (breakpoint_address_match): New declaration.
4128 * inferior.h (stepping_past_instruction_at): New declaration.
4129 * infrun.c (struct step_over_info): New type.
4130 (step_over_info): New global.
4131 (set_step_over_info, clear_step_over_info)
4132 (stepping_past_instruction_at): New functions.
4133 (handle_inferior_event): Clear the step-over info when
4134 trap_expected is cleared.
4135 (resume): Remove now stale comment.
4136 (clear_proceed_status): Clear step-over info.
4137 (proceed): Adjust step-over handling to set or clear the step-over
4138 info instead of removing all breakpoints.
4139 (handle_signal_stop): When setting up a thread-hop, don't remove
4141 (stop_stepping): Clear step-over info.
4142 (keep_going): Adjust step-over handling to set or clear step-over
4143 info and then always inserting breakpoints, instead of removing
4144 all breakpoints when stepping over one.
4146 2014-03-20 Pedro Alves <palves@redhat.com>
4148 * infrun.c (previous_inferior_ptid): Adjust comment.
4149 (deferred_step_ptid): Delete.
4150 (infrun_thread_ptid_changed, prepare_to_proceed)
4151 (init_wait_for_inferior): Adjust.
4152 (handle_signal_stop): Delete deferred_step_ptid handling.
4154 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4157 * defs.h (sync_quit_force_run): New declaration.
4158 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4159 * event-top.c (async_sigterm_handler): New declaration.
4160 (async_sigterm_token): New variable.
4161 (async_init_signals): Create also async_sigterm_token.
4162 (async_sigterm_handler): New function.
4163 (sync_quit_force_run): New variable.
4164 (handle_sigterm): Replace quit_force call by other calls.
4165 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4167 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4169 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4170 offset into SPE pseudo registers.
4172 2014-03-18 Pedro Alves <palves@redhat.com>
4175 * inferior.h (print_stop_event): Declare.
4176 * infrun.c (print_stop_event): New, factored out from ...
4177 (normal_stop): ... this.
4178 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4179 of bpstat_print/print_stack_frame.
4181 2014-03-17 Tom Tromey <tromey@redhat.com>
4183 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4185 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4187 * ada-lang.c (decode_constrained_packed_array): Perform a
4188 minimal coercion for reference with coerce_ref instead of
4191 2014-03-17 Tristan Gingold <gingold@adacore.com>
4193 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4194 (darwin_solib_create_inferior_hook): Emit a warning if version
4197 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
4199 * python/py-value.c (get_field_flag): Cast flag_name argument to
4200 PyObject_GetAttrString to support Python 2.4.
4202 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4204 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4205 (Global Maintainers): Remove Jan Kratochvil.
4207 2014-03-14 Pedro Alves <palves@redhat.com>
4209 * inferior.h (terminal_ours_for_output): Rename to ...
4210 (child_terminal_ours_for_output): ... this.
4211 (terminal_save_ours): Rename to ...
4212 (child_terminal_save_ours): ... this.
4213 (terminal_ours): Rename to ...
4214 (child_terminal_ours): ... this.
4215 (terminal_inferior): Rename to ...
4216 (child_terminal_inferior): ... this.
4217 (terminal_init_inferior): Rename to ...
4218 (child_terminal_init_inferior): ... this.
4219 (terminal_init_inferior_with_pgrp): Rename to ...
4220 (child_terminal_init_inferior_with_pgrp): ... this.
4221 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4222 (child_terminal_init_with_pgrp): ... this.
4223 (terminal_save_ours): Rename to ...
4224 (child_terminal_save_ours): ... this.
4225 (terminal_init_inferior): Rename to ...
4226 (child_terminal_init): ... this. Adjust.
4227 (terminal_inferior): Rename to ...
4228 (child_terminal_inferior): ... this.
4229 (terminal_ours_for_output): Rename to ...
4230 (child_terminal_ours_for_output): ... this. Adjust.
4231 (terminal_ours): Rename to ...
4232 (child_terminal_ours): ... this.
4233 (terminal_ours_1): Rename to ...
4234 (child_terminal_ours_1): ... this. Adjust.
4235 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4236 * windows-nat.c (do_initial_windows_stuff): Adjust.
4237 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4238 (gnu_terminal_init): ... this. Adjust.
4239 (gnu_target): Adjust.
4240 * inf-child.c (inf_child_target): Adjust.
4242 2014-03-13 Doug Evans <xdje42@gmail.com>
4245 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4248 2014-03-13 Doug Evans <xdje42@gmail.com>
4250 * value.c (record_latest_value): Call release_value_or_incref
4251 instead of release_value.
4253 2014-03-13 Pedro Alves <palves@redhat.com>
4255 * procfs.c (procfs_target): Don't override to_shortname,
4256 to_longname or to_doc.
4258 2014-03-13 Pedro Alves <palves@redhat.com>
4260 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4261 Unix in user visible strings.
4263 2014-03-12 Stan Shebs <stan@codesourcery.com>
4265 * gdbtypes.h: Annotate comments for Doxygen, add a page
4266 block comment with some general info.
4268 2014-03-12 Pedro Alves <palves@redhat.com>
4270 * infcmd.c (prepare_execution_command): New function, factored out
4271 from several execution commands.
4272 (run_command_1, continue_command, step_1, jump_command)
4273 (signal_command, until_command, advance_command, finish_command)
4274 (attach_command): Use prepare_execution_command.
4276 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
4278 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4281 (struct arm_linux_thread_points): Removed.
4282 (struct arm_linux_process_info): New.
4283 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4284 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4285 (arm_linux_find_breakpoints_by_tid): Removed.
4286 (struct arch_lwp_info): New.
4287 (arm_linux_find_process_pid): New functions.
4288 (arm_linux_add_process): New functions.
4289 (arm_linux_process_info_get): New functions.
4290 (arm_linux_forget_process): New function.
4291 (arm_linux_get_debug_reg_state): New function.
4292 (struct update_registers_data): New.
4293 (update_registers_callback): New function.
4294 (arm_linux_insert_hw_breakpoint1): Updated.
4295 (arm_linux_remove_hw_breakpoint1): Updated.
4296 (arm_linux_insert_hw_breakpoint): Updated.
4297 (arm_linux_remove_hw_breakpoint): Updated.
4298 (arm_linux_insert_watchpoint): Updated.
4299 (arm_linux_remove_watchpoint): Updated.
4300 (arm_linux_new_thread): Updated.
4301 (arm_linux_prepare_to_resume): New function.
4302 (arm_linux_new_fork): New function.
4303 (_initialize_arm_linux_nat): Updated.
4305 2014-03-12 Pedro Alves <palves@redhat.com>
4307 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4309 2014-03-12 Tom Tromey <tromey@redhat.com>
4311 * inf-child.c (return_zero): New function.
4312 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4313 * aix-thread.c (aix_thread_inferior_created): New function.
4314 (aix_thread_attach): Remove.
4315 (init_aix_thread_ops): Don't set to_attach.
4316 (_initialize_aix_thread): Register inferior_created observer.
4317 * corelow.c (init_core_ops): Don't set to_attach or
4319 * exec.c (init_exec_ops): Don't set to_attach or
4321 * infcmd.c (run_command_1): Use find_run_target. Make direct
4323 (attach_command): Use find_attach_target. Make direct target
4325 * record-btrace.c (init_record_btrace_ops): Don't set
4327 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4329 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4330 set to_create_inferior.
4331 * target.c (complete_target_initialization): Add assertion.
4332 (target_create_inferior): Remove.
4333 (find_default_attach, find_default_create_inferior): Remove.
4334 (find_attach_target, find_run_target): New functions.
4335 (find_default_is_async_p, find_default_can_async_p)
4336 (target_supports_non_stop, target_attach): Remove.
4337 (init_dummy_target): Don't set to_create_inferior or
4338 to_supports_non_stop.
4339 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4340 TARGET_DEFAULT_FUNC.
4341 <to_create_inferior>: Add comment.
4342 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4343 TARGET_DEFAULT_RETURN.
4344 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4345 (find_attach_target, find_run_target): Declare.
4346 (target_create_inferior): Remove.
4347 (target_has_execution_1): Update comment.
4348 (target_supports_non_stop): Remove.
4349 * target-delegates.c: Rebuild.
4351 2014-03-12 Pedro Alves <palves@redhat.com>
4353 * inf-child.h: Update comment to not mention Unix.
4355 2014-03-12 Pedro Alves <palves@redhat.com>
4357 * inf-child.c: Update top comment to not mention Unix. Add
4358 generic comment describing how this target is meant to be used.
4359 (inf_child_post_attach, inf_child_post_startup_inferior)
4360 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4363 2014-03-12 Pedro Alves <palves@redhat.com>
4365 * nto-procfs.c: Include inf-child.h.
4366 (procfs_ops): Delete global.
4367 (procfs_can_run): Delete method.
4368 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
4369 target pointer instead of referencing procfs_ops.
4370 (procfs_prepare_to_store): Delete.
4371 (init_procfs_ops): Delete function.
4372 (procfs_target): New function, based on init_procfs_ops, but
4373 inherit inf_child_target.
4374 (_initialize_procfs): Use procfs_target.
4376 2014-03-12 Pedro Alves <palves@redhat.com>
4378 * windows-nat.c: Include inf-child.h.
4379 (windows_ops): Delete global.
4380 (windows_open, windows_prepare_to_store, windows_can_run): Delete
4382 (init_windows_ops): Delete function.
4383 (windows_target): New function, based on init_windows_ops, but
4384 inherit inf_child_target.
4385 (_initialize_windows_nat): Use windows_target. Install x86
4386 specific target methods here.
4388 2014-03-10 Doug Evans <xdje42@gmail.com>
4390 * guile/guile.c (call_initialize_gdb_module): New function.
4391 (initialize_guile): Replace call to scm_init_guile with call to
4394 2014-03-10 Joel Brobecker <brobecker@adacore.com>
4396 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
4397 in call to TYPE_CODE macro.
4399 2014-03-10 Jerome Guitton <guitton@adacore.com>
4401 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
4402 Resolve tagged types to full view.
4404 2014-03-10 Hui Zhu <hui@codesourcery.com>
4406 * target.h (target_insert_breakpoint): Remove "hardware" from its
4409 2014-03-07 Doug Evans <dje@google.com>
4411 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
4413 2014-03-07 Doug Evans <dje@google.com>
4415 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
4416 Remove unused local comp_dir_attr. Assert exactly one of
4417 stub_comp_unit_die, stub_comp_dir is non-NULL.
4419 2014-03-07 Joel Brobecker <brobecker@adacore.com>
4421 * target.h (complete_target_initialization, add_target):
4424 2014-03-07 Pedro Alves <palves@redhat.com>
4426 * go32-nat.c: Include inf-child.h.
4427 (go32_ops): Delete global.
4428 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
4430 (go32_create_inferior): Push the passed in target pointer instead
4431 of referencing go32_ops.
4432 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
4433 (go32_target): New function, based on init_go32_ops, but inherit
4435 (_initialize_go32_nat): Use go32_target. Move parts of
4438 2014-03-06 Joel Brobecker <brobecker@adacore.com>
4440 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
4441 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
4442 SYMBOL_VALUE_ADDRESS.
4443 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
4445 2014-03-06 Yao Qi <yao@codesourcery.com>
4447 * breakpoint.c (get_tracepoint_by_number): Remove argument
4448 optional_p. All callers updated. Adjust comments. Update
4450 * breakpoint.h (get_tracepoint_by_number): Update declaration.
4452 2014-03-06 Yao Qi <yao@codesourcery.com>
4454 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
4455 early if get_number returns zero. Use 'p' instead of 'args'.
4457 2014-03-06 Yao Qi <yao@codesourcery.com>
4459 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
4462 2014-03-06 Yao Qi <yao@codesourcery.com>
4464 PR breakpoints/16508
4465 * tracepoint.c (check_trace_running): New function.
4466 (trace_find_command): Move code to check_trace_running and
4467 call check_trace_running.
4468 (trace_find_pc_command): Likewise.
4469 (trace_find_tracepoint_command): Likewise.
4470 (trace_find_line_command): Likewise.
4471 (trace_find_range_command): Likewise.
4472 * tracepoint.h (check_trace_running): Likewise.
4473 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
4475 2014-03-06 Yao Qi <yao@codesourcery.com>
4477 * target.h (struct target_ops) <to_traceframe_info>: Use
4478 TARGET_DEFAULT_NORETURN (tcomplain ()).
4479 * target-delegates.c: Regenerated.
4481 2014-03-05 Pedro Alves <palves@redhat.com>
4484 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
4485 void. Update comment.
4486 (dcache_xfer_memory): Delete.
4487 (dcache_read_memory_partial): New, based on the read bits of
4489 (dcache_update): Add status parameter. Use ULONGEST for len, and
4490 adjust. Discard cache lines if the reason for the update was
4492 * dcache.h (dcache_xfer_memory): Delete declaration.
4493 (dcache_read_memory_partial): New declaration.
4494 (dcache_update): Update prototype.
4495 * target.c (raw_memory_xfer_partial): Update the dcache here.
4496 (memory_xfer_partial_1): Don't handle dcache writes here.
4498 2014-03-05 Mike Frysinger <vapier@gentoo.org>
4500 * remote-sim.c (gdbsim_load): Add const to prog.
4502 2014-03-03 Tom Tromey <tromey@redhat.com>
4504 * elfread.c (probe_key): Change to bfd_data.
4505 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
4506 now per-BFD, not per-objfile.
4507 * stap-probe.c (stap_probe_destroy): Update comment.
4508 (handle_stap_probe): Allocate on the per-BFD obstack.
4510 2014-03-03 Tom Tromey <tromey@redhat.com>
4512 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
4513 * breakpoint.c (create_longjmp_master_breakpoint): Use
4515 (add_location_to_breakpoint, bkpt_probe_insert_location)
4516 (bkpt_probe_remove_location): Update.
4517 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
4518 * elfread.c (elf_symfile_relocate_probe): Remove.
4519 (elf_probe_fns): Update.
4520 (insert_exception_resume_breakpoint): Change type of "probe"
4521 parameter to bound_probe.
4522 (check_exception_resume): Update.
4523 * objfiles.c (objfile_relocate1): Don't relocate probes.
4524 * probe.c (bound_probe_s): New typedef.
4525 (parse_probes): Use get_probe_address. Set sal's objfile.
4526 (find_probe_by_pc): Return a bound_probe.
4527 (collect_probes): Return a VEC(bound_probe_s).
4528 (compare_probes): Update.
4529 (gen_ui_out_table_header_info): Change type of "probes"
4531 (info_probes_for_ops): Update.
4532 (get_probe_address): New function.
4533 (probe_safe_evaluate_at_pc): Update.
4534 * probe.h (struct probe_ops) <get_probe_address>: New field.
4535 <set_semaphore, clear_semaphore>: Add objfile parameter.
4536 (struct probe) <objfile>: Remove field.
4538 <address>: Update comment.
4539 (struct bound_probe): New.
4540 (find_probe_by_pc): Return a bound_probe.
4541 (get_probe_address): Declare.
4542 * solib-svr4.c (struct probe_and_action) <address>: New field.
4543 (hash_probe_and_action, equal_probe_and_action): Update.
4544 (register_solib_event_probe): Add address parameter.
4545 (solib_event_probe_at): Update.
4546 (svr4_create_probe_breakpoints): Add objfile parameter. Use
4548 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
4549 (stap_get_probe_address): New function.
4550 (stap_can_evaluate_probe_arguments, compute_probe_arg)
4551 (compile_probe_arg): Update.
4552 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
4554 (handle_stap_probe): Don't relocate the probe.
4555 (stap_relocate): Remove.
4556 (stap_gen_info_probes_table_values): Update.
4557 (stap_probe_ops): Remove stap_relocate.
4558 * symfile-debug.c (debug_sym_relocate_probe): Remove.
4559 (debug_sym_probe_fns): Update.
4560 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
4561 * symtab.c (init_sal): Use memset.
4562 * symtab.h (struct symtab_and_line) <objfile>: New field.
4563 * tracepoint.c (start_tracing, stop_tracing): Update.
4565 2014-03-03 Tom Tromey <tromey@redhat.com>
4567 * probe.h (parse_probes, find_probe_by_pc)
4568 (find_probes_in_objfile): Fix comments.
4570 2014-03-02 Doug Evans <xdje42@gmail.com>
4572 * infrun.c (handle_signal_stop): Replace test for
4573 TARGET_WAITKIND_STOPPED with an assert.
4575 2014-03-02 Doug Evans <xdje42@gmail.com>
4577 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
4579 2014-03-02 Doug Evans <xdje42@gmail.com>
4581 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
4583 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4585 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
4587 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4589 * i386obsd-nat.c: Include "obsd-nat.h".
4590 (_initialize_i386obsd_nat): Call obsd_add_target instead of
4592 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4594 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4596 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
4598 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4600 * mips64obsd-nat.c: Include "obsd-nath".
4601 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
4603 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4605 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4607 * amd64obsd-nat.c: Include "obsd-nat,h.
4608 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
4610 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4612 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
4614 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
4615 (find_overload_match): Update call to find_oload_champ.
4616 (find_oload_champ_namespace_loop): Likewise
4618 2014-02-28 Mark Kettenis <kettenis@gnu.org>
4620 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
4622 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
4623 * config/sparc/obsd64.mh: New file.
4624 * sparc64obsd-nat.c: New file.
4626 * obsd-nat.h: New file.
4627 * obsd-nat.c: New file.
4628 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
4629 (ALLDEPFILES): Add obsd-nat.c.
4631 2014-02-28 Tom Tromey <tromey@redhat.com>
4633 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
4634 * cli-out.h (cli_ui_out_impl): Now const.
4635 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
4636 * ui-out.c (struct ui_out) <impl>: Now const.
4637 (default_ui_out_impl): Now const.
4638 (ui_out_new): Make 'impl' parameter const.
4639 * ui-out.h (ui_out_new): Update.
4641 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4643 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
4645 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4647 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
4649 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4651 Additional PR 8882 fix.
4652 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
4654 2014-02-27 Pedro Alves <palves@redhat.com>
4656 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
4659 2014-02-27 Pedro Alves <palves@redhat.com>
4662 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
4663 * nat/linux-waitpid.c: Include string.h.
4664 (status_to_str): Moved here and made extern.
4665 * nat/linux-waitpid.h (status_to_str): New declaration.
4667 2014-02-27 Hui Zhu <hui@codesourcery.com>
4670 * infrun.c (ptid_match): Move ...
4671 * common/ptid.c (ptid_match): ... here.
4672 * inferior.h (ptid_match): Move ...
4673 * common/ptid.h (ptid_match): ... here.
4675 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4677 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
4678 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
4681 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4683 * obsd-tdep.c (obsd_auxv_parse): New function.
4684 (obsd_init_abi): Set auxv_parse.
4686 * gdbarch.sh (auxv_parse): New.
4687 * gdbarch.h: Regenerated.
4688 * gdbarch.c: Regenerated.
4689 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
4691 2014-02-26 Ludovic Courtès <ludo@gnu.org>
4693 * guile/scm-value.c (gdbscm_history_append_x): New function.
4694 (value_functions): Add it.
4696 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4698 * dwarf2read.c (attr_value_as_address): New function.
4699 (dwarf2_find_base_address, read_call_site_scope): Use
4700 attr_value_as_address in place of DW_ADDR.
4701 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
4702 the low and high addresses. Slight rework of the handling
4703 of the high pc being a constant form, and limit it to
4704 DWARF verson 4 or higher.
4705 (dwarf2_record_block_ranges): Likewise.
4706 (read_partial_die): Likewise.
4707 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
4709 2014-02-26 Tom Tromey <tromey@redhat.com>
4711 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
4713 2014-02-26 Tom Tromey <tromey@redhat.com>
4715 * elfread.c (elf_read_minimal_symbols): Return early if
4716 minimal symbols have already been read. Add "ei" parameter.
4717 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
4718 * minsyms.c (prim_record_minimal_symbol_full): Update.
4719 * objfiles.h (struct objstats) <n_minsyms>: Move...
4720 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
4721 * symmisc.c (print_objfile_statistics): Update.
4723 2014-02-26 Tom Tromey <tromey@redhat.com>
4725 * elfread.c (elf_read_minimal_symbols): New function, from
4727 (elf_symfile_read): Call it.
4729 2014-02-26 Tom Tromey <tromey@redhat.com>
4731 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
4732 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
4733 (lookup_minimal_symbol_solib_trampoline)
4734 (lookup_minimal_symbol_by_pc_section_1)
4735 (lookup_minimal_symbol_and_objfile): Update.
4736 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
4737 Don't allocate a minimal symbol if minsyms have already been read.
4738 (build_minimal_symbol_hash_tables): Update.
4739 (install_minimal_symbols): Do nothing if minsyms already read.
4740 Use the per-BFD obstack.
4741 (terminate_minimal_symbol_table): Use the per-BFD obstack.
4742 * objfiles.c (allocate_objfile): Call
4743 terminate_minimal_symbol_table later.
4744 (have_minimal_symbols): Update.
4745 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
4746 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
4747 Move from struct objfile.
4748 <minsyms_read>: New field.
4749 (struct objfile) <msymbols, minimal_symbol_count,
4750 msymbol_hash, msymbol_demangled_hash>: Move.
4751 (ALL_OBJFILE_MSYMBOLS): Update.
4752 * symfile.c (read_symbols): Set minsyms_read.
4753 (reread_symbols): Update.
4754 * symmisc.c (dump_objfile, dump_msymbols): Update.
4756 2014-02-26 Tom Tromey <tromey@redhat.com>
4758 * minsyms.c (msymbols_sort): Remove.
4759 * minsyms.h (msymbols_sort): Remove.
4760 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
4761 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
4762 * elfread.c (elf_symtab_read): Don't add section offsets.
4763 * xcoffread.c (record_minimal_symbol): Don't add section offset
4764 to minimal symbol address.
4765 * somread.c (text_offset, data_offset): Remove.
4766 (som_symtab_read): Don't add section offsets to minimal symbol
4768 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
4769 Don't add section offsets to minimal symbols.
4770 * coffread.c (coff_symtab_read): Don't add section offsets
4771 to minimal symbol addresses.
4772 * machoread.c (macho_symtab_add_minsym): Don't add section offset
4773 to minimal symbol addresses.
4774 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
4775 section offset to minimal symbol addresses.
4776 * mdebugread.c (parse_partial_symbols): Don't add section
4777 offset to minimal symbol addresses.
4778 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
4779 offset to minimal symbol addresses.
4781 2014-02-26 Tom Tromey <tromey@redhat.com>
4783 * ada-lang.c (ada_main_name): Update.
4784 (ada_add_standard_exceptions): Update.
4785 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4786 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4787 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
4788 * auxv.c (ld_so_xfer_auxv): Update.
4789 * avr-tdep.c (avr_scan_prologue): Update.
4790 * ax-gdb.c (gen_var_ref): Update.
4791 * blockframe.c (get_pc_function_start)
4792 (find_pc_partial_function_gnu_ifunc): Update.
4793 * breakpoint.c (create_overlay_event_breakpoint)
4794 (create_longjmp_master_breakpoint)
4795 (create_std_terminate_master_breakpoint)
4796 (create_exception_master_breakpoint): Update.
4797 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4798 * c-valprint.c (c_val_print): Update.
4799 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4800 * common/agent.c (agent_look_up_symbols): Update.
4801 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4802 * dwarf2loc.c (call_site_to_target_addr): Update.
4803 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
4804 * elfread.c (elf_gnu_ifunc_record_cache)
4805 (elf_gnu_ifunc_resolve_by_got): Update.
4806 * findvar.c (default_read_var_value): Update.
4807 * frame.c (inside_main_func): Update.
4808 * frv-tdep.c (frv_frame_this_id): Update.
4809 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4810 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4812 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
4813 (hppa_hpux_find_dummy_bpaddr): Update.
4814 * hppa-tdep.c (hppa_symbol_address): Update.
4815 * infcmd.c (until_next_command): Update.
4816 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
4818 * linespec.c (minsym_found, add_minsym): Update.
4819 * linux-nat.c (get_signo): Update.
4820 * linux-thread-db.c (inferior_has_bug): Update.
4821 * m32c-tdep.c (m32c_return_value)
4822 (m32c_m16c_address_to_pointer): Update.
4823 * m32r-tdep.c (m32r_frame_this_id): Update.
4824 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4825 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4826 * maint.c (maintenance_translate_address): Update.
4827 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
4828 (frob_address): New function.
4829 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
4830 frob_address. Rename parameter to "pc_in".
4831 (compare_minimal_symbols, compact_minimal_symbols): Use raw
4833 (find_solib_trampoline_target, minimal_symbol_upper_bound):
4835 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4836 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
4837 * objc-lang.c (find_objc_msgsend): Update.
4838 * objfiles.c (objfile_relocate1): Update.
4839 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4840 * p-valprint.c (pascal_val_print): Update.
4841 * parse.c (write_exp_msymbol): Update.
4842 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
4843 (ppc_elfv2_skip_entrypoint): Update.
4844 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4845 * printcmd.c (build_address_symbolic, msym_info)
4846 (address_info): Update.
4847 * proc-service.c (ps_pglobal_lookup): Update.
4848 * psymtab.c (find_pc_sect_psymtab_closer)
4849 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
4850 Change msymbol parameter to bound_minimal_symbol.
4851 * ravenscar-thread.c (get_running_thread_id): Update.
4852 * remote.c (remote_check_symbols): Update.
4853 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
4855 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4856 * solib-dsbt.c (lm_base): Update.
4857 * solib-frv.c (lm_base, main_got): Update.
4858 * solib-irix.c (locate_base): Update.
4859 * solib-som.c (som_solib_create_inferior_hook)
4860 (link_map_start): Update.
4861 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
4862 * solib-svr4.c (elf_locate_base, enable_break): Update.
4863 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4864 (flush_ea_cache): Update.
4865 * stabsread.c (define_symbol, scan_file_globals): Update.
4866 * stack.c (find_frame_funname): Update.
4867 * symfile-debug.c (debug_qf_expand_symtabs_matching)
4868 (debug_qf_find_pc_sect_symtab): Update.
4869 * symfile.c (simple_read_overlay_table)
4870 (simple_overlay_update): Update.
4871 * symfile.h (struct quick_symbol_functions)
4872 <find_pc_sect_symtab>: Change type of msymbol to
4873 bound_minimal_symbol.
4874 * symmisc.c (dump_msymbols): Update.
4875 * symtab.c (find_pc_sect_symtab_via_partial)
4876 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
4877 (search_symbols, print_msymbol_info): Update.
4878 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
4879 (MSYMBOL_VALUE_ADDRESS): Redefine.
4880 (BMSYMBOL_VALUE_ADDRESS): New macro.
4881 * tracepoint.c (scope_info): Update.
4882 * tui/tui-disasm.c (tui_find_disassembly_address)
4883 (tui_get_begin_asm_address): Update.
4884 * valops.c (find_function_in_inferior): Update.
4885 * value.c (value_static_field, value_fn_field): Update.
4887 2014-02-26 Tom Tromey <tromey@redhat.com>
4889 * ada-lang.c (ada_update_initial_language): Update.
4890 (ada_main_name, ada_has_this_exception_support): Update.
4891 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4892 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4893 * arm-tdep.c (arm_skip_stub): Update.
4894 * auxv.c (ld_so_xfer_auxv): Update.
4895 * avr-tdep.c (avr_scan_prologue): Update.
4896 * ax-gdb.c (gen_var_ref): Update.
4897 * breakpoint.c (struct breakpoint_objfile_data)
4898 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
4899 type to bound_minimal_symbol.
4900 (create_overlay_event_breakpoint)
4901 (create_longjmp_master_breakpoint)
4902 (create_std_terminate_master_breakpoint)
4903 (create_exception_master_breakpoint): Update.
4904 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4905 * c-exp.y (classify_name): Update.
4906 * coffread.c (coff_symfile_read): Update.
4907 * common/agent.c (agent_look_up_symbols): Update.
4908 * d-lang.c (d_main_name): Update.
4909 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4910 * dec-thread.c (enable_dec_thread): Update.
4911 * dwarf2loc.c (call_site_to_target_addr): Update.
4912 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
4913 * eval.c (evaluate_subexp_standard): Update.
4914 * findvar.c (struct minsym_lookup_data) <result>: Change type
4915 to bound_minimal_symbol.
4917 (minsym_lookup_iterator_cb, default_read_var_value): Update.
4918 * frame.c (inside_main_func): Update.
4919 * frv-tdep.c (frv_frame_this_id): Update.
4920 * gcore.c (call_target_sbrk): Update.
4921 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4922 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4924 * go-lang.c (go_main_name): Update.
4925 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
4926 (hppa_hpux_find_import_stub_for_addr): Update.
4927 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
4928 Update. Change return type.
4929 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
4931 * jit.c (jit_breakpoint_re_set_internal): Update.
4932 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
4934 * linux-nat.c (get_signo): Update.
4935 * linux-thread-db.c (inferior_has_bug): Update
4936 * m32c-tdep.c (m32c_return_value)
4937 (m32c_m16c_address_to_pointer): Update.
4938 * m32r-tdep.c (m32r_frame_this_id): Update.
4939 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4940 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4941 * minsyms.c (lookup_minimal_symbol_internal): Rename to
4942 lookup_minimal_symbol. Change return type.
4943 (lookup_minimal_symbol): Remove.
4944 (lookup_bound_minimal_symbol): Update.
4945 (lookup_minimal_symbol_text): Change return type.
4946 (lookup_minimal_symbol_solib_trampoline): Change return type.
4947 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
4948 (lookup_minimal_symbol_solib_trampoline): Change return type.
4949 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4950 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4951 (value_nsstring, find_imps): Update.
4952 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4953 * p-lang.c (pascal_main_name): Update.
4954 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
4955 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4956 * proc-service.c (ps_pglobal_lookup): Update.
4957 * ravenscar-thread.c (get_running_thread_msymbol): Change
4959 (has_ravenscar_runtime, get_running_thread_id): Update.
4960 * remote.c (remote_check_symbols): Update.
4961 * sol-thread.c (ps_pglobal_lookup): Update.
4962 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4963 * solib-dsbt.c (lm_base): Update.
4964 * solib-frv.c (lm_base, frv_relocate_section_addresses):
4966 * solib-irix.c (locate_base): Update.
4967 * solib-som.c (som_solib_create_inferior_hook)
4968 (som_solib_desire_dynamic_linker_symbols, link_map_start):
4970 * solib-spu.c (spu_enable_break): Update.
4971 * solib-svr4.c (elf_locate_base, enable_break): Update.
4972 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4973 (flush_ea_cache): Update.
4974 * stabsread.c (define_symbol): Update.
4975 * symfile.c (simple_read_overlay_table): Update.
4976 * symtab.c (find_pc_sect_line): Update.
4977 * tracepoint.c (scope_info): Update.
4978 * tui-disasm.c (tui_get_begin_asm_address): Update.
4979 * value.c (value_static_field): Update.
4981 2014-02-26 Tom Tromey <tromey@redhat.com>
4983 * minsyms.c (prim_record_minimal_symbol_full): Use
4984 SET_MSYMBOL_VALUE_ADDRESS.
4985 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
4986 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
4987 SET_MSYMBOL_VALUE_ADDRESS.
4988 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
4989 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
4991 2014-02-26 Tom Tromey <tromey@redhat.com>
4993 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
4994 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4995 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4996 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4997 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
4998 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
4999 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5000 * ada-lang.c (ada_main_name): Update.
5001 (ada_lookup_simple_minsym): Update.
5002 (ada_make_symbol_completion_list): Update.
5003 (ada_add_standard_exceptions): Update.
5004 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5005 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5006 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5007 * arm-tdep.c (skip_prologue_function): Update.
5008 (arm_skip_stack_protector, arm_skip_stub): Update.
5009 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5010 (arm_wince_skip_main_prologue): Update.
5011 * auxv.c (ld_so_xfer_auxv): Update.
5012 * avr-tdep.c (avr_scan_prologue): Update.
5013 * ax-gdb.c (gen_var_ref): Update.
5014 * block.c (call_site_for_pc): Update.
5015 * blockframe.c (get_pc_function_start): Update.
5016 (find_pc_partial_function_gnu_ifunc): Update.
5017 * breakpoint.c (create_overlay_event_breakpoint): Update.
5018 (create_longjmp_master_breakpoint): Update.
5019 (create_std_terminate_master_breakpoint): Update.
5020 (create_exception_master_breakpoint): Update.
5021 (resolve_sal_pc): Update.
5022 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5023 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5025 * c-valprint.c (c_val_print): Update.
5026 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5027 * coffread.c (coff_symfile_read): Update.
5028 * common/agent.c (agent_look_up_symbols): Update.
5029 * dbxread.c (find_stab_function_addr): Update.
5030 (end_psymtab): Update.
5031 * dwarf2loc.c (call_site_to_target_addr): Update.
5032 (func_verify_no_selftailcall): Update.
5033 (tailcall_dump): Update.
5034 (call_site_find_chain_1): Update.
5035 (dwarf_expr_reg_to_entry_parameter): Update.
5036 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5037 (elf_gnu_ifunc_resolve_by_got): Update.
5038 * f-valprint.c (info_common_command): Update.
5039 * findvar.c (read_var_value): Update.
5040 * frame.c (get_prev_frame_1): Update.
5041 (inside_main_func): Update.
5042 * frv-tdep.c (frv_skip_main_prologue): Update.
5043 (frv_frame_this_id): Update.
5044 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5045 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5046 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5047 (gnuv3_skip_trampoline): Update.
5048 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5049 (hppa64_hpux_in_solib_call_trampoline): Update.
5050 (hppa_hpux_skip_trampoline_code): Update.
5051 (hppa64_hpux_search_dummy_call_sequence): Update.
5052 (hppa_hpux_find_import_stub_for_addr): Update.
5053 (hppa_hpux_find_dummy_bpaddr): Update.
5054 * hppa-tdep.c (hppa_symbol_address)
5055 (hppa_lookup_stub_minimal_symbol): Update.
5056 * i386-tdep.c (i386_skip_main_prologue): Update.
5057 (i386_pe_skip_trampoline_code): Update.
5058 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5059 * infcall.c (get_function_name): Update.
5060 * infcmd.c (until_next_command): Update.
5061 * jit.c (jit_breakpoint_re_set_internal): Update.
5062 (jit_inferior_init): Update.
5063 * linespec.c (minsym_found): Update.
5064 (add_minsym): Update.
5065 * linux-fork.c (info_checkpoints_command): Update.
5066 * linux-nat.c (get_signo): Update.
5067 * linux-thread-db.c (inferior_has_bug): Update.
5068 * m32c-tdep.c (m32c_return_value): Update.
5069 (m32c_m16c_address_to_pointer): Update.
5070 (m32c_m16c_pointer_to_address): Update.
5071 * m32r-tdep.c (m32r_frame_this_id): Update.
5072 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5073 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5074 * maint.c (maintenance_translate_address): Update.
5075 * minsyms.c (add_minsym_to_hash_table): Update.
5076 (add_minsym_to_demangled_hash_table): Update.
5077 (msymbol_objfile): Update.
5078 (lookup_minimal_symbol): Update.
5079 (iterate_over_minimal_symbols): Update.
5080 (lookup_minimal_symbol_text): Update.
5081 (lookup_minimal_symbol_by_pc_name): Update.
5082 (lookup_minimal_symbol_solib_trampoline): Update.
5083 (lookup_minimal_symbol_by_pc_section_1): Update.
5084 (lookup_minimal_symbol_and_objfile): Update.
5085 (prim_record_minimal_symbol_full): Update.
5086 (compare_minimal_symbols): Update.
5087 (compact_minimal_symbols): Update.
5088 (build_minimal_symbol_hash_tables): Update.
5089 (install_minimal_symbols): Update.
5090 (terminate_minimal_symbol_table): Update.
5091 (find_solib_trampoline_target): Update.
5092 (minimal_symbol_upper_bound): Update.
5093 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5094 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5095 (mips_skip_pic_trampoline_code): Update.
5096 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5097 * objc-lang.c (selectors_info): Update.
5098 (classes_info): Update.
5099 (find_methods): Update.
5100 (find_imps): Update.
5101 (find_objc_msgsend): Update.
5102 * objfiles.c (objfile_relocate1): Update.
5103 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5104 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5105 * p-valprint.c (pascal_val_print): Update.
5106 * parse.c (write_exp_msymbol): Update.
5107 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5108 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5109 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5110 * printcmd.c (build_address_symbolic): Update.
5112 (address_info): Update.
5113 * proc-service.c (ps_pglobal_lookup): Update.
5114 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5115 (find_pc_sect_psymtab): Update.
5116 * python/py-framefilter.c (py_print_frame): Update.
5117 * ravenscar-thread.c (get_running_thread_id): Update.
5118 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5120 * remote.c (remote_check_symbols): Update.
5121 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5122 (rs6000_skip_trampoline_code): Update.
5123 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5124 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5125 * solib-dsbt.c (lm_base): Update.
5126 * solib-frv.c (lm_base): Update.
5128 * solib-irix.c (locate_base): Update.
5129 * solib-som.c (som_solib_create_inferior_hook): Update.
5130 (som_solib_desire_dynamic_linker_symbols): Update.
5131 (link_map_start): Update.
5132 * solib-spu.c (spu_enable_break): Update.
5133 (ocl_enable_break): Update.
5134 * solib-svr4.c (elf_locate_base): Update.
5135 (enable_break): Update.
5136 * spu-tdep.c (spu_get_overlay_table): Update.
5137 (spu_catch_start): Update.
5138 (flush_ea_cache): Update.
5139 * stabsread.c (define_symbol): Update.
5140 (scan_file_globals): Update.
5141 * stack.c (find_frame_funname): Update.
5142 (frame_info): Update.
5143 * symfile.c (simple_read_overlay_table): Update.
5144 (simple_overlay_update): Update.
5145 * symmisc.c (dump_msymbols): Update.
5146 * symtab.c (fixup_section): Update.
5147 (find_pc_sect_line): Update.
5148 (skip_prologue_sal): Update.
5149 (search_symbols): Update.
5150 (print_msymbol_info): Update.
5151 (rbreak_command): Update.
5152 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5153 (completion_list_objc_symbol): Update.
5154 (default_make_symbol_completion_list_break_on): Update.
5155 * tracepoint.c (scope_info): Update.
5156 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5157 (tui_get_begin_asm_address): Update.
5158 * valops.c (find_function_in_inferior): Update.
5159 * value.c (value_static_field): Update.
5160 (value_fn_field): Update.
5162 2014-02-26 Tom Tromey <tromey@redhat.com>
5164 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5165 bound minimal symbols. Move code that knows about minsym
5167 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5169 * minsyms.h (minimal_symbol_upper_bound): Declare.
5170 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5171 minimal_symbol_upper_bound.
5173 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5175 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5176 Use the type's name if its basic type does not have a tag.
5178 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5180 * dwarf2read.c (read_subrange_type): Add comment.
5182 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5184 * dwarf2read.c (update_enumeration_type_from_children): New
5185 function, mostly extracted from process_structure_scope.
5186 (read_enumeration_type): Call update_enumeration_type_from_children.
5187 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5188 and flag_flag_enum fields.
5190 2014-02-26 Pedro Alves <palves@redhat.com>
5192 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5193 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5194 to_xfer_partial method.
5196 2014-02-26 Pedro Alves <palves@redhat.com>
5198 * target.c (complete_target_initialization): Don't install
5199 default_xfer_partial as to_xfer_partial hook.
5201 (update_current_target): Don't INHERIT nor de_fault
5202 deprecated_xfer_memory. Delete de_fault macro.
5203 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5204 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5205 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5208 2014-02-26 Pedro Alves <palves@redhat.com>
5210 * go32-nat.c (my_write_child): New function.
5211 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5212 (go32_xfer_partial): New function.
5213 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5214 Instead install a to_xfer_partial hook.
5216 2014-02-26 Pedro Alves <palves@redhat.com>
5218 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5219 to_xfer_partial helper. Rewrite.
5220 (procfs_xfer_partial): New function.
5221 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5222 Install a to_xfer_partial hook.
5224 2014-02-26 Pedro Alves <palves@redhat.com>
5226 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5227 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5228 (m32r_xfer_partial): New function.
5229 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5230 Install a to_xfer_partial hook.
5232 2014-02-26 Pedro Alves <palves@redhat.com>
5234 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5236 (mips_xfer_partial): New function.
5237 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5238 hook. Install a to_xfer_partial hook.
5240 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5242 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5243 * gdbtypes.c (create_array_type_with_stride): New function,
5244 renaming create_array_type, but with an added parameter
5245 called "bit_stride".
5246 (create_array_type): Re-implement using
5247 create_array_type_with_stride.
5248 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5249 and DW_AT_bit_stride attributes.
5251 2014-02-26 Pedro Alves <palves@redhat.com>
5253 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5254 task-specific breakpoints.
5256 2014-02-25 Pedro Alves <palves@redhat.com>
5258 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5259 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5261 2014-02-25 Stan Shebs <stan@codesourcery.com>
5263 * defs.h: Annotate comments for Doxygen.
5265 2014-02-25 Tom Tromey <tromey@redhat.com>
5267 * target.h (target_ignore): Don't declare.
5268 * target.c (target_ignore): Remove.
5270 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5273 * auto-load.c (auto_load_objfile_script_1): Change filename to
5276 2014-02-25 Joel Brobecker <brobecker@adacore.com>
5278 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5279 documentation. Adjust prototype to match the target_ops
5280 to_xfer_partial method. Adjust implementation accordingly.
5282 2014-02-25 Hui Zhu <hui@codesourcery.com>
5284 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5287 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5289 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5290 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5291 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5292 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5293 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5294 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5295 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5296 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5298 (rl78_register_type): Use a data pointer type for SP and
5299 new pseudo registers mentioned above. Use a 16 bit integer
5300 type for all other register pairs.
5301 (rl78_register_name, rl78_g10_register_name): Update for
5302 new pseudo registers.
5303 (rl78_pseudo_register_read): Likewise.
5304 (rl78_pseudo_register_write): Likewise.
5305 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5306 to the newly added pseudo registers.
5308 2014-02-24 Doug Evans <dje@google.com>
5310 * value.c (record_latest_value): Fix comment.
5311 * printcmd.c (print_command_1): Remove code to handle -1 return from
5312 record_latest_value.
5314 2014-02-24 Pedro Alves <palves@redhat.com>
5316 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5317 deprecated_xfer_memory hook.
5318 (procfs_xfer_partial): Call procfs_xfer_memory instead
5319 of the deprecated_xfer_memory target hook.
5320 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5323 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5325 * windows-nat.c (windows_xfer_shared_libraries): Return
5326 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5327 requested object is TARGET_OBJECT_LIBRARIES.
5329 2014-02-24 Yao Qi <yao@codesourcery.com>
5331 * target.h (enum target_xfer_status)
5332 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5333 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5335 * corefile.c (memory_error_message): User updated.
5336 * exec.c (section_table_read_available_memory): Likewise.
5337 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5338 * target.c (target_xfer_status_to_string): Likewise.
5339 (raw_memory_xfer_partial): Likewise.
5340 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5341 * valops.c (read_value_memory): Likewise.
5342 * exec.h: Update comments.
5344 2014-02-24 Yao Qi <yao@codesourcery.com>
5346 * target.c (target_xfer_status_to_string): Rename argument err
5348 * target.h (target_xfer_status_to_string): Update declaration.
5349 Replace target_xfer_error_to_string with
5350 target_xfer_status_to_string in comment.
5352 2014-02-24 Yao Qi <yao@codesourcery.com>
5354 * mips-linux-nat.c (super_close): Update its type.
5355 (mips_linux_close): Pass 'self' to super_close.
5357 2014-02-24 Yao Qi <yao@codesourcery.com>
5359 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5360 * corefile.c (read_memory): Adjusted.
5361 * target.c (target_write_with_progress): Adjusted.
5363 2014-02-23 Yao Qi <yao@codesourcery.com>
5367 2013-10-25 Yao Qi <yao@codesourcery.com>
5369 * remote.c (remote_traceframe_info): Return early if
5370 traceframe is not selected.
5372 2013-07-19 Yao Qi <yao@codesourcery.com>
5374 * target.c (update_current_target): Change the default action
5375 of 'to_traceframe_info' from tcomplain to return_zero.
5376 * target.h (struct target_ops) <to_traceframe_info>: Add more
5379 2014-02-23 Yao Qi <yao@codesourcery.com>
5381 * valops.c (read_value_memory): Rewrite it. Call
5382 target_xfer_partial in a loop.
5383 * exec.h (section_table_available_memory): Remove declaration.
5384 Move comments to ...
5385 * exec.c (section_table_available_memory): ... here. Make it
5388 2014-02-23 Yao Qi <yao@codesourcery.com>
5390 * exec.c (section_table_read_available_memory): New function.
5391 * exec.h (section_table_read_available_memory): Declare.
5392 * ctf.c (ctf_xfer_partial): Call
5393 section_table_read_available_memory.
5394 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5396 2014-02-23 Yao Qi <yao@codesourcery.com>
5398 * ctf.c (ctf_xfer_partial): Move code to ...
5399 * exec.c (exec_read_partial_read_only): ... it. New function.
5400 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5401 * tracefile.c: Include "exec.h".
5402 * exec.h (exec_read_partial_read_only): Declare.
5404 2014-02-23 Yao Qi <yao@codesourcery.com>
5406 * tracefile-tfile.c (tfile_has_all_memory): Remove.
5407 (tfile_has_memory): Remove.
5408 (init_tfile_ops): Don't set fields to_has_all_memory and
5409 to_has_memory of tfile_ops.
5410 * tracefile.c (tracefile_has_all_memory): New function.
5411 (tracefile_has_memory): New function.
5412 (init_tracefile_ops): Initialize fields to_has_all_memory and
5413 to_has_memory of 'ops'.
5415 2014-02-23 Yao Qi <yao@codesourcery.com>
5417 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
5418 (ctf_thread_alive, ctf_get_trace_status): Remove.
5419 (init_ctf_ops): Don't set some fields of ctf_ops. Call
5421 * tracefile-tfile.c (tfile_get_trace_status): Remove.
5422 (tfile_has_stack, tfile_has_registers): Remove.
5423 (tfile_thread_alive): Remove.
5424 (init_tfile_ops): Don't set some fields of tfile_ops. Call
5426 * tracefile.c (tracefile_has_stack): New function.
5427 (tracefile_has_registers): New function.
5428 (tracefile_thread_alive): New function.
5429 (tracefile_get_trace_status): New function.
5430 (init_tracefile_ops): New function.
5431 * tracefile.h (init_tracefile_ops): Declare.
5433 2014-02-23 Yao Qi <yao@codesourcery.com>
5435 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
5436 (O_LARGEFILE): Likewise.
5437 (tfile_ops): Likewise.
5438 (TRACE_HEADER_SIZE): Likewise.
5439 (trace_fd, trace_frames_offset, cur_offset): Likewise.
5440 (cur_data_size): Likewise.
5441 (tfile_read, tfile_open, tfile_interp_line): Likewise.
5442 (tfile_close, tfile_files_info): Likewise.
5443 (tfile_get_trace_status): Likewise.
5444 (tfile_get_tracepoint_status): Likewise.
5445 (tfile_get_traceframe_address): Likewise.
5446 (tfile_trace_find, match_blocktype): Likewise.
5447 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
5448 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
5449 (tfile_get_trace_state_variable_value): Likewise.
5450 (tfile_has_all_memory, tfile_has_memory): Likewise.
5451 (tfile_has_stack, tfile_has_registers): Likewise.
5452 (tfile_thread_alive, build_traceframe_info): Likewise.
5453 (tfile_traceframe_info, init_tfile_ops): Likewise.
5454 (_initialize_tracepoint): Don't call init_tfile_ops
5455 and add_target_with_completer.
5456 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
5457 exec.h, completer.h and filenames.h.
5458 (_initialize_tracefile_tfile): New function.
5460 2014-02-23 Yao Qi <yao@codesourcery.com>
5462 * Makefile.in (REMOTE_OBS): Append tracefile.o and
5464 (HFILES_NO_SRCDIR): Add tracefile.h.
5465 * ctf.c: Include "tracefile.h".
5466 * tracefile.h: New file.
5467 * tracefile.c: New file
5468 * tracefile-tfile.c: New file.
5469 * tracepoint.c: Include "tracefile.h".
5470 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
5471 (stop_reason_names): Add const.
5472 (trace_file_writer_xfree): Move it to tracefile.c.
5473 (trace_save, trace_save_command, trace_save_tfile): Likewise.
5474 (trace_save_ctf): Likewise.
5475 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
5476 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
5477 (tfile_write_header, tfile_write_regblock_type): Likewise.
5478 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
5479 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
5480 (tfile_write_raw_data, tfile_end): Likewise.
5481 (tfile_trace_file_writer_new): Likewise.
5482 (free_uploaded_tp): Make it extern.
5483 (free_uploaded_tsv): Make it extern.
5484 (_initialize_tracepoint): Move code to register command 'tsave'
5486 * tracepoint.h (stop_reason_names): Declare.
5487 (struct trace_frame_write_ops): Move it to tracefile.h.
5488 (struct trace_file_write_ops): Likewise.
5489 (struct trace_file_writer): Likewise.
5490 (free_uploaded_tsvs, free_uploaded_tps): Declare.
5492 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5495 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
5497 (get_cores_used_by_process): New parameter num_cores, use it.
5498 (linux_xfer_osdata_processes): Pass num_cores to it.
5499 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
5502 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
5504 * target.c (memory_xfer_partial): Fix length arg in call to
5505 breakpoint_xfer_memory.
5507 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5510 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
5511 number comes after the + or - signs. Adjust length of register
5512 name to be extracted.
5514 2014-02-20 Tom Tromey <tromey@redhat.com>
5516 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
5517 (ada_varobj_ops): Mark "extern".
5519 2014-02-20 Tom Tromey <tromey@redhat.com>
5521 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
5523 2014-02-20 Doug Evans <xdje42@gmail.com>
5525 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
5526 All callers updated.
5527 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
5528 All callers updated.
5529 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
5530 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
5532 2014-02-20 lin zuojian <manjian2006@gmail.com>
5533 Joel Brobecker <brobecker@adacore.com>
5534 Doug Evans <xdje42@gmail.com>
5537 * dwarf2read.c (struct die_info): New member in_process.
5538 (reset_die_in_process): New function.
5539 (process_die): Set it at the start, reset when returning.
5540 (inherit_abstract_dies): Only call process_die if origin_child_die
5541 not already being processed.
5543 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5545 * windows-nat.c (handle_unload_dll): Add function documentation.
5546 (do_initial_windows_stuff): Add comment explaining why we wait
5547 until after inferior initialization has finished before
5548 processing all DLLs.
5550 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5552 * windows-nat.c (get_module_name): Delete.
5553 (windows_get_exec_module_filename): New function, mostly
5554 inspired from get_module_name.
5555 (windows_pid_to_exec_file): Replace call to get_module_name
5556 by call to windows_get_exec_module_filename.
5558 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5560 * windows-nat.c (handle_load_dll): Rewrite this function's
5561 introductory comment. Remove code using get_module_name
5562 to get the DLL's name.
5564 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5566 * windows-nat.c (get_windows_debug_event): Ignore
5567 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
5568 if windows_initialization_done == 0.
5569 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
5570 Adjust implementation to always load all DLLs.
5571 (do_initial_windows_stuff): Replace call to
5572 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
5574 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5576 * windows-nat.c (_initialize_windows_nat): Deprecate the
5577 "dll-symbols" command. Turn the "add-shared-symbol-files"
5578 and "assf" aliases into commands, and deprecate them as well.
5579 * NEWS: Add entry explaining that "dll-symbols" and its two
5580 aliases are now deprecated.
5582 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5584 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
5585 new-line in debug string. Remove trailing spaces.
5587 2014-02-19 Stan Shebs <stan@codesourcery.com>
5589 * darwin-nat.c (darwin_xfer_partial): Fix return type.
5591 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
5593 * NEWS: Add entry for the new feature
5594 * python/py-value.c (valpy_binop): Call value_x_binop for struct
5597 2014-02-19 Stan Shebs <stan@codesourcery.com>
5599 * MAINTAINERS: List Yao Qi as nios2 maintainer.
5601 2014-02-19 Pedro Alves <palves@redhat.com>
5603 * common/ptid.h (struct ptid): Mention that process_stratum
5604 targets should prefer ptid.lwp.
5606 2014-02-19 Pedro Alves <palves@redhat.com>
5608 * remote.c (remote_thread_alive, write_ptid, read_ptid)
5609 (read_ptid, remote_newthread_step, remote_threads_extra_info)
5610 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
5611 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
5612 store remote thread ids rather than ptid.tid.
5613 (_initialize_remote): Adjust.
5615 2014-02-19 Tom Tromey <tromey@redhat.com>
5617 * target.c (target_get_unwinder): Rewrite.
5618 (target_get_tailcall_unwinder): Rewrite.
5619 * record-btrace.c (record_btrace_to_get_unwinder): New function.
5620 (record_btrace_to_get_tailcall_unwinder): New function.
5621 (init_record_btrace_ops): Update.
5622 * target.h (struct target_ops) <to_get_unwinder,
5623 to_get_tailcall_unwinder>: Now function pointers. Use
5624 TARGET_DEFAULT_RETURN.
5626 2014-02-19 Tom Tromey <tromey@redhat.com>
5628 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
5630 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
5632 2014-02-19 Tom Tromey <tromey@redhat.com>
5634 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
5636 * target-delegates.c: Rebuild.
5637 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
5638 TARGET_DEFAULT_FUNC.
5639 * target.c (default_target_decr_pc_after_break): Rename from
5640 forward_target_decr_pc_after_break. Simplify.
5641 (target_decr_pc_after_break): Rely on delegation.
5643 2014-02-19 Tom Tromey <tromey@redhat.com>
5645 * target.c (update_current_target): Do not INHERIT to_doc or
5646 to_magic. Do not de_fault to_open or to_close.
5648 2014-02-19 Tom Tromey <tromey@redhat.com>
5650 * gcore.h (objfile_find_memory_regions): Declare.
5651 * gcore.c (objfile_find_memory_regions): No longer static. Add
5653 (_initialize_gcore): Don't call exec_set_find_memory_regions.
5654 * exec.c: Include gcore.h.
5655 (exec_set_find_memory_regions): Remove.
5656 (exec_find_memory_regions): Remove.
5657 (exec_do_find_memory_regions): Remove.
5658 (init_exec_ops): Update.
5659 * defs.h (exec_set_find_memory_regions): Remove.
5661 2014-02-19 Tom Tromey <tromey@redhat.com>
5663 * target-delegates.c: Rebuild.
5664 * target.h (struct target_ops) <to_extra_thread_info,
5665 to_thread_name, to_pid_to_exec_file, to_get_section_table,
5666 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
5667 not 0, in TARGET_DEFAULT_RETURN.
5669 2014-02-19 Tom Tromey <tromey@redhat.com>
5671 * target.c (complete_target_initialization): Remove casts. Use
5672 return_zero_has_execution.
5673 (return_zero): Add "ignore" argument.
5674 (return_zero_has_execution): New function.
5675 (init_dummy_target): Remove casts. Use
5676 return_zero_has_execution.
5678 2014-02-19 Tom Tromey <tromey@redhat.com>
5680 * target.c (update_current_target): Update comments. Do not
5683 2014-02-19 Tom Tromey <tromey@redhat.com>
5685 * arm-linux-nat.c (arm_linux_read_description): Delegate when
5687 * corelow.c (core_read_description): Delegate when needed.
5688 * remote.c (remote_read_description): Delegate when needed.
5689 * target-delegates.c: Rebuild.
5690 * target.c (target_read_description): Rewrite.
5691 * target.h (struct target_ops) <to_read_description>: Update
5692 comment. Use TARGET_DEFAULT_RETURN.
5694 2014-02-19 Tom Tromey <tromey@redhat.com>
5696 * target-delegates.c: Rebuild.
5697 * target.c (update_current_target): Don't inherit or default
5699 (find_default_run_target): Check against delegate_can_run.
5700 * target.h (struct target_ops) <to_can_run>: Use
5701 TARGET_DEFAULT_RETURN.
5703 2014-02-19 Tom Tromey <tromey@redhat.com>
5705 * target-delegates.c: Rebuild.
5706 * target.c (target_disconnect): Unconditionally delegate.
5707 * target.h (struct target_ops) <to_disconnect>: Use
5708 TARGET_DEFAULT_NORETURN.
5710 2014-02-19 Tom Tromey <tromey@redhat.com>
5712 * record.c (record_stop): Unconditionally delegate.
5713 * target-delegates.c: Rebuild.
5714 * target.c (target_stop_recording): Unconditionally delegate.
5715 * target.h (struct target_ops) <to_stop_recording>: Use
5716 TARGET_DEFAULT_IGNORE.
5718 2014-02-19 Tom Tromey <tromey@redhat.com>
5720 * target-delegates.c: Rebuild.
5721 * target.c (target_enable_btrace): Unconditionally delegate.
5722 * target.h (struct target_ops) <to_enable_btrace>: Use
5723 TARGET_DEFAULT_NORETURN.
5725 2014-02-19 Tom Tromey <tromey@redhat.com>
5727 * target-delegates.c: Rebuild.
5728 * target.c (target_read_btrace): Unconditionally delegate.
5729 * target.h (struct target_ops) <to_read_btrace>: Use
5730 TARGET_DEFAULT_NORETURN.
5732 2014-02-19 Tom Tromey <tromey@redhat.com>
5734 * target-delegates.c: Rebuild.
5735 * target.c (target_teardown_btrace): Unconditionally delegate.
5736 * target.h (struct target_ops) <to_teardown_btrace>: Use
5737 TARGET_DEFAULT_NORETURN.
5739 2014-02-19 Tom Tromey <tromey@redhat.com>
5741 * target-delegates.c: Rebuild.
5742 * target.c (target_disable_btrace): Unconditionally delegate.
5743 * target.h (struct target_ops) <to_disable_btrace>: Use
5744 TARGET_DEFAULT_NORETURN.
5746 2014-02-19 Tom Tromey <tromey@redhat.com>
5748 * target-delegates.c: Rebuild.
5749 * target.c (default_search_memory): New function.
5750 (simple_search_memory): Update comment.
5751 (target_search_memory): Unconditionally delegate.
5752 * target.h (struct target_ops) <to_search_memory>: Use
5753 TARGET_DEFAULT_FUNC.
5755 2014-02-19 Tom Tromey <tromey@redhat.com>
5757 * auxv.c (default_auxv_parse): No longer static.
5758 (target_auxv_parse): Unconditionally delegate.
5759 * auxv.h (default_auxv_parse): Declare.
5760 * target-delegates.c: Rebuild.
5761 * target.c: Include auxv.h.
5762 * target.h (struct target_ops) <to_auxv_parse>: Use
5763 TARGET_DEFAULT_FUNC.
5765 2014-02-19 Tom Tromey <tromey@redhat.com>
5767 * target-delegates.c: Rebuild.
5768 * target.c (target_memory_map): Unconditionally delegate.
5769 * target.h (struct target_ops) <to_memory_map>: Use
5770 TARGET_DEFAULT_RETURN.
5772 2014-02-19 Tom Tromey <tromey@redhat.com>
5774 * target-delegates.c: Rebuild.
5775 * target.c (target_thread_alive): Unconditionally delegate.
5776 * target.h (struct target_ops) <to_thread_alive>: Use
5777 TARGET_DEFAULT_RETURN.
5779 2014-02-19 Tom Tromey <tromey@redhat.com>
5781 * target-delegates.c: Rebuild.
5782 * target.c (target_save_record): Unconditionally delegate.
5783 * target.h (struct target_ops) <to_save_record>: Use
5784 TARGET_DEFAULT_NORETURN.
5786 2014-02-19 Tom Tromey <tromey@redhat.com>
5788 * target-delegates.c: Rebuild.
5789 * target.c (target_delete_record): Unconditionally delegate.
5790 * target.h (struct target_ops) <to_delete_record>: Use
5791 TARGET_DEFAULT_NORETURN.
5793 2014-02-19 Tom Tromey <tromey@redhat.com>
5795 * target-delegates.c: Rebuild.
5796 * target.c (target_record_is_replaying): Unconditionally
5798 * target.h (struct target_ops) <to_record_is_replaying>: Use
5799 TARGET_DEFAULT_RETURN.
5801 2014-02-19 Tom Tromey <tromey@redhat.com>
5803 * target-delegates.c: Rebuild.
5804 * target.c (target_goto_record_begin): Unconditionally delegate.
5805 * target.h (struct target_ops) <to_goto_record_begin>: Use
5806 TARGET_DEFAULT_NORETURN.
5808 2014-02-19 Tom Tromey <tromey@redhat.com>
5810 * target-delegates.c: Rebuild.
5811 * target.c (target_goto_record_end): Unconditionally delegate.
5812 * target.h (struct target_ops) <to_goto_record_end>: Use
5813 TARGET_DEFAULT_NORETURN.
5815 2014-02-19 Tom Tromey <tromey@redhat.com>
5817 * target-delegates.c: Rebuild.
5818 * target.c (target_goto_record): Unconditionally delegate.
5819 * target.h (struct target_ops) <to_goto_record>: Use
5820 TARGET_DEFAULT_NORETURN.
5822 2014-02-19 Tom Tromey <tromey@redhat.com>
5824 * target-delegates.c: Rebuild.
5825 * target.c (target_insn_history): Unconditionally delegate.
5826 * target.h (struct target_ops) <to_insn_history>: Use
5827 TARGET_DEFAULT_NORETURN.
5829 2014-02-19 Tom Tromey <tromey@redhat.com>
5831 * target-delegates.c: Rebuild.
5832 * target.c (target_insn_history_from): Unconditionally delegate.
5833 * target.h (struct target_ops) <to_insn_history_from>: Use
5834 TARGET_DEFAULT_NORETURN.
5836 2014-02-19 Tom Tromey <tromey@redhat.com>
5838 * target-delegates.c: Rebuild.
5839 * target.c (target_insn_history_range): Unconditionally delegate.
5840 * target.h (struct target_ops) <to_insn_history_range>: Use
5841 TARGET_DEFAULT_NORETURN.
5843 2014-02-19 Tom Tromey <tromey@redhat.com>
5845 * target-delegates.c: Rebuild.
5846 * target.c (target_call_history): Unconditionally delegate.
5847 * target.h (struct target_ops) <to_call_history>: Use
5848 TARGET_DEFAULT_NORETURN.
5850 2014-02-19 Tom Tromey <tromey@redhat.com>
5852 * target-delegates.c: Rebuild.
5853 * target.c (target_call_history_from): Unconditionally delegate.
5854 * target.h (struct target_ops) <to_call_history_from>: Use
5855 TARGET_DEFAULT_NORETURN.
5857 2014-02-19 Tom Tromey <tromey@redhat.com>
5859 * target-delegates.c: Rebuild.
5860 * target.c (target_call_history_range): Unconditionally delegate.
5861 * target.h (struct target_ops) <to_call_history_range>: Use
5862 TARGET_DEFAULT_NORETURN.
5864 2014-02-19 Tom Tromey <tromey@redhat.com>
5866 * target-delegates.c: Rebuild.
5867 * target.c (target_verify_memory): Unconditionally delegate.
5868 * target.h (struct target_ops) <to_verify_memory>: Use
5869 TARGET_DEFAULT_NORETURN.
5871 2014-02-19 Tom Tromey <tromey@redhat.com>
5873 * target-delegates.c: Rebuild.
5874 * target.c (target_core_of_thread): Unconditionally delegate.
5875 * target.h (struct target_ops) <to_core_of_thread>: Use
5876 TARGET_DEFAULT_RETURN.
5878 2014-02-19 Tom Tromey <tromey@redhat.com>
5880 * target-delegates.c: Rebuild.
5881 * target.c (target_flash_done): Unconditionally delegate.
5882 * target.h (struct target_ops) <to_flash_done>: Use
5883 TARGET_DEFAULT_NORETURN.
5885 2014-02-19 Tom Tromey <tromey@redhat.com>
5887 * target-delegates.c: Rebuild.
5888 * target.c (target_flash_erase): Unconditionally delegate.
5889 * target.h (struct target_ops) <to_flash_erase>: Use
5890 TARGET_DEFAULT_NORETURN.
5892 2014-02-19 Tom Tromey <tromey@redhat.com>
5894 * target-delegates.c: Rebuild.
5895 * target.c (target_get_section_table): Unconditionally delegate.
5896 * target.h (struct target_ops) <to_get_section_table>: Use
5897 TARGET_DEFAULT_RETURN.
5899 2014-02-19 Tom Tromey <tromey@redhat.com>
5901 * target-delegates.c: Rebuild.
5902 * target.c (target_pid_to_str): Unconditionally delegate.
5903 (init_dummy_target): Don't initialize to_pid_to_str.
5904 (default_pid_to_str): Rename from dummy_pid_to_str.
5905 * target.h (struct target_ops) <to_pid_to_str>: Use
5906 TARGET_DEFAULT_FUNC.
5908 2014-02-19 Tom Tromey <tromey@redhat.com>
5910 * target-delegates.c: Rebuild.
5911 * target.c (target_find_new_threads): Unconditionally delegate.
5912 * target.h (struct target_ops) <to_find_new_threads>: Use
5913 TARGET_DEFAULT_RETURN.
5915 2014-02-19 Tom Tromey <tromey@redhat.com>
5917 * target-delegates.c: Rebuild.
5918 * target.c (target_program_signals): Unconditionally delegate.
5919 * target.h (struct target_ops) <to_program_signals>: Use
5920 TARGET_DEFAULT_IGNORE.
5922 2014-02-19 Tom Tromey <tromey@redhat.com>
5924 * target-delegates.c: Rebuild.
5925 * target.c (target_pass_signals): Unconditionally delegate.
5926 * target.h (struct target_ops) <to_pass_signals>: Use
5927 TARGET_DEFAULT_IGNORE.
5929 2014-02-19 Tom Tromey <tromey@redhat.com>
5931 * target-delegates.c: Rebuild.
5932 * target.c (default_mourn_inferior): New function.
5933 (target_mourn_inferior): Unconditionally delegate.
5934 * target.h (struct target_ops) <to_mourn_inferior>: Use
5935 TARGET_DEFAULT_FUNC.
5937 2014-02-19 Tom Tromey <tromey@redhat.com>
5939 * target-delegates.c: Rebuild.
5940 * target.c (default_follow_fork): New function.
5941 (target_follow_fork): Unconditionally delegate.
5942 * target.h (struct target_ops) <to_follow_fork>: Use
5943 TARGET_DEFAULT_FUNC.
5945 2014-02-19 Tom Tromey <tromey@redhat.com>
5947 * target-delegates.c: Rebuild.
5948 * target.c (target_kill): Unconditionally delegate.
5949 * target.h (struct target_ops) <to_kill>: Use
5950 TARGET_DEFAULT_NORETURN.
5952 2014-02-19 Tom Tromey <tromey@redhat.com>
5954 * target-delegates.c: Rebuild.
5955 * target.c (target_masked_watch_num_registers): Unconditionally
5957 * target.h (struct target_ops) <to_masked_watch_num_registers>:
5958 Use TARGET_DEFAULT_RETURN.
5960 2014-02-19 Tom Tromey <tromey@redhat.com>
5962 * target-delegates.c: Rebuild.
5963 * target.c (target_remove_mask_watchpoint): Unconditionally
5965 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
5966 TARGET_DEFAULT_RETURN.
5968 2014-02-19 Tom Tromey <tromey@redhat.com>
5970 * target-delegates.c: Rebuild.
5971 * target.c (target_insert_mask_watchpoint): Unconditionally
5973 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
5974 TARGET_DEFAULT_RETURN.
5976 2014-02-19 Tom Tromey <tromey@redhat.com>
5978 * target-delegates.c: Rebuild.
5979 * target.c (target_ranged_break_num_registers): Unconditionally
5981 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5982 Use TARGET_DEFAULT_RETURN.
5984 2014-02-19 Tom Tromey <tromey@redhat.com>
5986 * target-delegates.c: Rebuild.
5987 * target.c (target_fetch_registers): Unconditionally delegate.
5988 * target.h (struct target_ops) <to_fetch_registers>: Use
5989 TARGET_DEFAULT_NORETURN.
5991 2014-02-19 Tom Tromey <tromey@redhat.com>
5993 * target-delegates.c: Rebuild.
5994 * target.c (update_current_target): Don't inherit or default
5996 * target.h (struct target_ops) <to_stop>: Use
5997 TARGET_DEFAULT_IGNORE.
5999 2014-02-19 Tom Tromey <tromey@redhat.com>
6001 * target-delegates.c: Rebuild.
6002 * target.c (update_current_target): Don't inherit or default
6003 to_can_run_breakpoint_commands.
6004 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6005 Use TARGET_DEFAULT_RETURN.
6007 2014-02-19 Tom Tromey <tromey@redhat.com>
6009 * target-delegates.c: Rebuild.
6010 * target.c (update_current_target): Don't inherit or default
6011 to_supports_evaluation_of_breakpoint_conditions.
6012 * target.h (struct target_ops)
6013 <to_supports_evaluation_of_breakpoint_conditions>: Use
6014 TARGET_DEFAULT_RETURN.
6016 2014-02-19 Tom Tromey <tromey@redhat.com>
6018 * target-delegates.c: Rebuild.
6019 * target.c (update_current_target): Don't inherit or default
6020 to_augmented_libraries_svr4_read.
6021 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6022 Use TARGET_DEFAULT_RETURN.
6024 2014-02-19 Tom Tromey <tromey@redhat.com>
6026 * target-delegates.c: Rebuild.
6027 * target.c (update_current_target): Don't inherit or default
6029 * target.h (struct target_ops) <to_can_use_agent>: Use
6030 TARGET_DEFAULT_RETURN.
6032 2014-02-19 Tom Tromey <tromey@redhat.com>
6034 * target-delegates.c: Rebuild.
6035 * target.c (update_current_target): Don't inherit or default
6037 * target.h (struct target_ops) <to_use_agent>: Use
6038 TARGET_DEFAULT_NORETURN.
6040 2014-02-19 Tom Tromey <tromey@redhat.com>
6042 * target-delegates.c: Rebuild.
6043 * target.c (update_current_target): Don't inherit or default
6045 (return_null): Remove.
6046 * target.h (struct target_ops) <to_traceframe_info>: Use
6047 TARGET_DEFAULT_RETURN.
6049 2014-02-19 Tom Tromey <tromey@redhat.com>
6051 * target-delegates.c: Rebuild.
6052 * target.c (update_current_target): Don't inherit or default
6053 to_static_tracepoint_markers_by_strid.
6054 * target.h (struct target_ops)
6055 <to_static_tracepoint_markers_by_strid>: Use
6056 TARGET_DEFAULT_NORETURN.
6058 2014-02-19 Tom Tromey <tromey@redhat.com>
6060 * target-delegates.c: Rebuild.
6061 * target.c (update_current_target): Don't inherit or default
6062 to_static_tracepoint_marker_at.
6063 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6064 Use TARGET_DEFAULT_RETURN.
6066 2014-02-19 Tom Tromey <tromey@redhat.com>
6068 * target-delegates.c: Rebuild.
6069 * target.c (update_current_target): Don't inherit or default
6071 * target.h (struct target_ops) <to_set_permissions>: Use
6072 TARGET_DEFAULT_IGNORE.
6074 2014-02-19 Tom Tromey <tromey@redhat.com>
6076 * target-delegates.c: Rebuild.
6077 * target.c (update_current_target): Don't inherit or default
6079 * target.h (struct target_ops) <to_get_tib_address>: Use
6080 TARGET_DEFAULT_NORETURN.
6082 2014-02-19 Tom Tromey <tromey@redhat.com>
6084 * target-delegates.c: Rebuild.
6085 * target.c (update_current_target): Don't inherit or default
6087 * target.h (struct target_ops) <to_set_trace_notes>: Use
6088 TARGET_DEFAULT_RETURN.
6090 2014-02-19 Tom Tromey <tromey@redhat.com>
6092 * target-delegates.c: Rebuild.
6093 * target.c (update_current_target): Don't initialize
6094 to_set_trace_buffer_size.
6095 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6096 TARGET_DEFAULT_IGNORE.
6098 2014-02-19 Tom Tromey <tromey@redhat.com>
6100 * target-delegates.c: Rebuild.
6101 * target.c (update_current_target): Don't inherit or default
6102 to_set_circular_trace_buffer.
6103 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6104 TARGET_DEFAULT_IGNORE.
6106 2014-02-19 Tom Tromey <tromey@redhat.com>
6108 * target-delegates.c: Rebuild.
6109 * target.c (update_current_target): Don't inherit or default
6110 to_set_disconnected_tracing.
6111 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6112 TARGET_DEFAULT_IGNORE.
6114 2014-02-19 Tom Tromey <tromey@redhat.com>
6116 * target-delegates.c: Rebuild.
6117 * target.c (update_current_target): Don't inherit or default
6118 to_get_min_fast_tracepoint_insn_len.
6119 (return_minus_one): Remove.
6120 * target.h (struct target_ops)
6121 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6123 2014-02-19 Tom Tromey <tromey@redhat.com>
6125 * target-delegates.c: Rebuild.
6126 * target.c (update_current_target): Don't inherit or default
6127 to_get_raw_trace_data.
6128 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6129 TARGET_DEFAULT_NORETURN.
6131 2014-02-19 Tom Tromey <tromey@redhat.com>
6133 * target-delegates.c: Rebuild.
6134 * target.c (update_current_target): Don't inherit or default
6135 to_upload_trace_state_variables.
6136 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6137 Use TARGET_DEFAULT_RETURN.
6139 2014-02-19 Tom Tromey <tromey@redhat.com>
6141 * target-delegates.c: Rebuild.
6142 * target.c (update_current_target): Don't inherit or default
6143 to_upload_tracepoints.
6144 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6145 TARGET_DEFAULT_RETURN.
6147 2014-02-19 Tom Tromey <tromey@redhat.com>
6149 * target-delegates.c: Rebuild.
6150 * target.c (update_current_target): Don't inherit or default
6152 * target.h (struct target_ops) <to_save_trace_data>: 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
6159 to_get_trace_state_variable_value.
6160 * target.h (struct target_ops)
6161 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6163 2014-02-19 Tom Tromey <tromey@redhat.com>
6165 * target-delegates.c: Rebuild.
6166 * target.c (update_current_target): Don't inherit or default
6168 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6170 2014-02-19 Tom Tromey <tromey@redhat.com>
6172 * target-delegates.c: Rebuild.
6173 * target.c (update_current_target): Don't inherit or default
6175 * target.h (struct target_ops) <to_trace_stop>: Use
6176 TARGET_DEFAULT_NORETURN.
6178 2014-02-19 Tom Tromey <tromey@redhat.com>
6180 * target-delegates.c: Rebuild.
6181 * target.c (update_current_target): Don't inherit or default
6182 to_get_tracepoint_status.
6183 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6184 TARGET_DEFAULT_NORETURN.
6186 2014-02-19 Tom Tromey <tromey@redhat.com>
6188 * target-delegates.c: Rebuild.
6189 * target.c (update_current_target): Don't inherit or default
6190 to_get_trace_status.
6191 * target.h (struct target_ops) <to_get_trace_status>: Use
6192 TARGET_DEFAULT_RETURN.
6194 2014-02-19 Tom Tromey <tromey@redhat.com>
6196 * target-delegates.c: Rebuild.
6197 * target.c (update_current_target): Don't inherit or default
6199 * target.h (struct target_ops) <to_trace_start>: Use
6200 TARGET_DEFAULT_NORETURN.
6202 2014-02-19 Tom Tromey <tromey@redhat.com>
6204 * target-delegates.c: Rebuild.
6205 * target.c (update_current_target): Don't inherit or default
6206 to_trace_set_readonly_regions.
6207 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6208 Use TARGET_DEFAULT_NORETURN.
6210 2014-02-19 Tom Tromey <tromey@redhat.com>
6212 * target-delegates.c: Rebuild.
6213 * target.c (update_current_target): Don't inherit or default
6214 to_disable_tracepoint.
6215 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6216 TARGET_DEFAULT_NORETURN.
6218 2014-02-19 Tom Tromey <tromey@redhat.com>
6220 * target-delegates.c: Rebuild.
6221 * target.c (update_current_target): Don't inherit or default
6222 to_enable_tracepoint.
6223 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6224 TARGET_DEFAULT_NORETURN.
6226 2014-02-19 Tom Tromey <tromey@redhat.com>
6228 * target-delegates.c: Rebuild.
6229 * target.c (update_current_target): Don't inherit or default
6230 to_download_trace_state_variable.
6231 * target.h (struct target_ops) <to_download_trace_state_variable>:
6232 Use TARGET_DEFAULT_NORETURN.
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_can_download_tracepoint.
6239 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6240 TARGET_DEFAULT_RETURN.
6242 2014-02-19 Tom Tromey <tromey@redhat.com>
6244 * target-delegates.c: Rebuild.
6245 * target.c (update_current_target): Don't inherit or default
6246 to_download_tracepoint.
6247 * target.h (struct target_ops) <to_download_tracepoint>: Use
6248 TARGET_DEFAULT_NORETURN.
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
6255 * target.h (struct target_ops) <to_trace_init>: 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_supports_string_tracing.
6263 * target.h (struct target_ops) <to_supports_string_tracing>: 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_supports_enable_disable_tracepoint.
6271 * target.h (struct target_ops)
6272 <to_supports_enable_disable_tracepoint>: Use
6273 TARGET_DEFAULT_RETURN.
6275 2014-02-19 Tom Tromey <tromey@redhat.com>
6277 * target-delegates.c: Rebuild.
6278 * target.c (update_current_target): Don't inherit or default
6279 to_supports_multi_process.
6280 * target.h (struct target_ops) <to_supports_multi_process>: Use
6281 TARGET_DEFAULT_RETURN.
6283 2014-02-19 Tom Tromey <tromey@redhat.com>
6285 * target-delegates.c: Rebuild.
6286 * target.c (update_current_target): Don't inherit or default
6287 to_get_ada_task_ptid.
6288 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6289 TARGET_DEFAULT_FUNC.
6291 2014-02-19 Tom Tromey <tromey@redhat.com>
6293 * target-delegates.c: Rebuild.
6294 * target.c (update_current_target): Don't inherit or default
6295 to_thread_architecture.
6296 * target.h (struct target_ops) <to_thread_architecture>: Use
6297 TARGET_DEFAULT_FUNC.
6299 2014-02-19 Tom Tromey <tromey@redhat.com>
6301 * target-delegates.c: Rebuild.
6302 * target.c (update_current_target): Don't inherit or default
6303 to_execution_direction.
6304 * target.h (struct target_ops) <to_execution_direction>: Use
6305 TARGET_DEFAULT_FUNC.
6307 2014-02-19 Tom Tromey <tromey@redhat.com>
6309 * target-delegates.c: Rebuild.
6310 * target.c (update_current_target): Don't inherit or default
6311 to_can_execute_reverse.
6312 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6313 TARGET_DEFAULT_RETURN.
6314 (target_can_execute_reverse): Unconditionally delegate.
6316 2014-02-19 Tom Tromey <tromey@redhat.com>
6318 * target-delegates.c: Rebuild.
6319 * target.c (update_current_target): Don't inherit or default
6321 (dummy_goto_bookmark): Remove.
6322 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6323 * target.h (struct target_ops) <to_goto_bookmark>: Use
6324 TARGET_DEFAULT_NORETURN.
6326 2014-02-19 Tom Tromey <tromey@redhat.com>
6328 * target-delegates.c: Rebuild.
6329 * target.c (update_current_target): Don't inherit or default
6331 (dummy_get_bookmark): Remove.
6332 (init_dummy_target): Don't inherit or default to_get_bookmark.
6333 * target.h (struct target_ops) <to_get_bookmark>: Use
6334 TARGET_DEFAULT_NORETURN
6336 2014-02-19 Tom Tromey <tromey@redhat.com>
6338 * target-delegates.c: Rebuild.
6339 * target.c (update_current_target): Don't inherit or default
6340 to_make_corefile_notes.
6341 (init_dummy_target): Don't initialize to_make_corefile_notes.
6342 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6343 TARGET_DEFAULT_FUNC.
6345 2014-02-19 Tom Tromey <tromey@redhat.com>
6347 * target-delegates.c: Rebuild.
6348 * target.c (update_current_target): Don't inherit or default
6349 to_find_memory_regions.
6350 (init_dummy_target): Don't initialize to_find_memory_regions.
6351 * target.h (struct target_ops) <to_find_memory_regions>: Use
6352 TARGET_DEFAULT_FUNC.
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
6359 * target.h (struct target_ops) <to_log_command>: Use
6360 TARGET_DEFAULT_IGNORE.
6361 (target_log_command): Unconditionally delegate.
6363 2014-02-19 Tom Tromey <tromey@redhat.com>
6365 * target-delegates.c: Rebuild.
6366 * target.c (update_current_target): Don't inherit or default
6367 to_pid_to_exec_file.
6368 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
6369 TARGET_DEFAULT_RETURN.
6371 2014-02-19 Tom Tromey <tromey@redhat.com>
6373 * target-delegates.c: Rebuild.
6374 * target.c (update_current_target): Don't inherit or default
6376 (target_thread_name): Unconditionally delegate.
6377 * target.h (struct target_ops) <to_thread_name>: Use
6378 TARGET_DEFAULT_RETURN.
6380 2014-02-19 Tom Tromey <tromey@redhat.com>
6382 * target-delegates.c: Rebuild.
6383 * target.c (update_current_target): Don't inherit or default
6384 to_extra_thread_info.
6385 * target.h (struct target_ops) <to_extra_thread_info>: Use
6386 TARGET_DEFAULT_RETURN.
6388 2014-02-19 Tom Tromey <tromey@redhat.com>
6390 * target-delegates.c: Rebuild.
6391 * target.c (update_current_target): Don't inherit or default
6393 * target.h (struct target_ops) <to_has_exited>: Use
6394 TARGET_DEFAULT_RETURN..
6396 2014-02-19 Tom Tromey <tromey@redhat.com>
6398 * target-delegates.c: Rebuild.
6399 * target.c (update_current_target): Don't inherit or default
6400 to_set_syscall_catchpoint.
6401 (return_one): Remove.
6402 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
6403 TARGET_DEFAULT_RETURN.
6405 2014-02-19 Tom Tromey <tromey@redhat.com>
6407 * target-delegates.c: Rebuild.
6408 * target.c (update_current_target): Don't inherit or default
6409 to_insert_exec_catchpoint.
6410 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6411 TARGET_DEFAULT_RETURN.
6413 2014-01-08 Tom Tromey <tromey@redhat.com>
6415 * target-delegates.c: Rebuild.
6416 * target.c (update_current_target): Don't inherit or default
6417 to_insert_exec_catchpoint.
6418 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6419 TARGET_DEFAULT_RETURN.
6421 2014-02-19 Tom Tromey <tromey@redhat.com>
6423 * target-delegates.c: Rebuild.
6424 * target.c (update_current_target): Don't inherit or default
6425 to_remove_vfork_catchpoint.
6426 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
6427 TARGET_DEFAULT_RETURN.
6429 2014-02-19 Tom Tromey <tromey@redhat.com>
6431 * target-delegates.c: Rebuild.
6432 * target.c (update_current_target): Don't inherit or default
6433 to_insert_vfork_catchpoint.
6434 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
6435 TARGET_DEFAULT_RETURN.
6437 2014-02-19 Tom Tromey <tromey@redhat.com>
6439 * target-delegates.c: Rebuild.
6440 * target.c (update_current_target): Don't inherit or default
6441 to_remove_fork_catchpoint.
6442 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
6443 TARGET_DEFAULT_RETURN.
6445 2014-02-19 Tom Tromey <tromey@redhat.com>
6447 * target-delegates.c: Rebuild.
6448 * target.c (update_current_target): Don't inherit or default
6449 to_insert_fork_catchpoint.
6450 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
6451 TARGET_DEFAULT_RETURN.
6453 2014-02-19 Tom Tromey <tromey@redhat.com>
6455 * target-delegates.c: Rebuild.
6456 * target.c (update_current_target): Don't inherit or default
6457 to_post_startup_inferior.
6458 * target.h (struct target_ops) <to_post_startup_inferior>: Use
6459 TARGET_DEFAULT_IGNORE.
6461 2014-02-19 Tom Tromey <tromey@redhat.com>
6463 * target-delegates.c: Rebuild.
6464 * target.c (update_current_target): Don't inherit or default
6466 * target.h (struct target_ops) <to_load>: Use
6467 TARGET_DEFAULT_NORETURN.
6469 2014-02-19 Tom Tromey <tromey@redhat.com>
6471 * target-delegates.c: Rebuild.
6472 * target.c (update_current_target): Don't inherit or default
6474 * target.h (struct target_ops) <to_terminal_info>: Use
6475 TARGET_DEFAULT_FUNC.
6477 2014-02-19 Tom Tromey <tromey@redhat.com>
6479 * target-delegates.c: Rebuild.
6480 * target.c (update_current_target): Don't inherit or default
6481 to_terminal_save_ours.
6482 * target.h (struct target_ops) <to_terminal_save_ours>: Use
6483 TARGET_DEFAULT_IGNORE.
6485 2014-02-19 Tom Tromey <tromey@redhat.com>
6487 * target-delegates.c: Rebuild.
6488 * target.c (update_current_target): Don't inherit or default
6490 * target.h (struct target_ops) <to_terminal_ours>: Use
6491 TARGET_DEFAULT_IGNORE.
6493 2014-02-19 Tom Tromey <tromey@redhat.com>
6495 * target-delegates.c: Rebuild.
6496 * target.c (update_current_target): Don't inherit or default
6497 to_terminal_ours_for_output.
6498 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
6499 TARGET_DEFAULT_IGNORE.
6501 2014-02-19 Tom Tromey <tromey@redhat.com>
6503 * target-delegates.c: Rebuild.
6504 * target.c (update_current_target): Don't inherit or default
6505 to_terminal_inferior.
6506 * target.h (struct target_ops) <to_terminal_inferior>: Use
6507 TARGET_DEFAULT_IGNORE.
6509 2014-02-19 Tom Tromey <tromey@redhat.com>
6511 * target-delegates.c: Rebuild.
6512 * target.c (update_current_target): Don't inherit or default
6514 * target.h (struct target_ops) <to_terminal_init>: Use
6515 TARGET_DEFAULT_IGNORE.
6517 2014-02-19 Tom Tromey <tromey@redhat.com>
6519 * target-delegates.c: Rebuild.
6520 * target.c (update_current_target): Don't inherit or default
6521 to_can_accel_watchpoint_condition.
6522 * target.h (struct target_ops)
6523 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
6525 2014-02-19 Tom Tromey <tromey@redhat.com>
6527 * target-delegates.c: Rebuild.
6528 * target.c (update_current_target): Don't inherit or default
6529 to_region_ok_for_hw_watchpoint.
6530 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6531 Use TARGET_DEFAULT_FUNC.
6533 2014-02-19 Tom Tromey <tromey@redhat.com>
6535 * target-delegates.c: Rebuild.
6536 * target.c (update_current_target): Don't inherit or default
6537 to_watchpoint_addr_within_range.
6538 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
6539 Use TARGET_DEFAULT_FUNC.
6541 2014-02-19 Tom Tromey <tromey@redhat.com>
6543 * target-delegates.c: Rebuild.
6544 * target.c (update_current_target): Don't inherit or default
6545 to_remove_watchpoint.
6546 * target.h (struct target_ops) <to_remove_watchpoint>: Use
6547 TARGET_DEFAULT_NORETURN.
6549 2014-02-19 Tom Tromey <tromey@redhat.com>
6551 * target-delegates.c: Rebuild.
6552 * target.c (update_current_target): Don't inherit or default
6553 to_insert_watchpoint.
6554 * target.h (struct target_ops) <to_insert_watchpoint>: Use
6555 TARGET_DEFAULT_RETURN.
6557 2014-02-19 Tom Tromey <tromey@redhat.com>
6559 * target-delegates.c: Rebuild.
6560 * target.c (update_current_target): Don't inherit or default
6561 to_remove_hw_breakpoint.
6562 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
6563 TARGET_DEFAULT_RETURN.
6565 2014-02-19 Tom Tromey <tromey@redhat.com>
6567 * target-delegates.c: Rebuild.
6568 * target.c (update_current_target): Don't inherit or default
6569 to_insert_hw_breakpoint.
6570 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
6571 TARGET_DEFAULT_RETURN.
6573 2014-02-19 Tom Tromey <tromey@redhat.com>
6575 * target-delegates.c: Rebuild.
6576 * target.c (update_current_target): Don't inherit or default
6577 to_can_use_hw_breakpoint.
6578 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
6579 TARGET_DEFAULT_RETURN.
6581 2014-02-19 Tom Tromey <tromey@redhat.com>
6583 * target-delegates.c: Rebuild.
6584 * target.c (update_current_target): Don't inherit or default
6586 * target.h (struct target_ops) <to_files_info>: Use
6587 TARGET_DEFAULT_IGNORE.
6589 2014-02-19 Tom Tromey <tromey@redhat.com>
6591 * target-delegates.c: Rebuild.
6592 * target.c (update_current_target): Don't inherit or default
6594 * target.h (struct target_ops) <to_store>: Use
6595 TARGET_DEFAULT_NORETURN.
6597 2014-02-19 Tom Tromey <tromey@redhat.com>
6599 * target-delegates.c: Rebuild.
6600 * target.c (update_current_target): Don't inherit or default
6602 * target.h (struct target_ops) <to_post_attach>: Use
6603 TARGET_DEFAULT_IGNORE.
6605 2014-02-19 Tom Tromey <tromey@redhat.com>
6607 * target-delegates.c: Rebuild.
6608 * target.c (update_current_target): Don't inherit or default
6610 (default_rcmd): New function.
6611 (do_monitor_command): Unconditionally delegate.
6612 * target.h (struct target_ops) <to_rmcd>: Use
6613 TARGET_DEFAULT_FUNC.
6615 2014-02-19 Tom Tromey <tromey@redhat.com>
6617 * target-delegates.c: Rebuild.
6618 * target.c (init_dummy_target): Don't initialize to_attach.
6619 (target_attach): Unconditionally delegate.
6620 * target.h (struct target_ops) <to_attach>: Use
6621 TARGET_DEFAULT_FUNC.
6623 2014-02-19 Tom Tromey <tromey@redhat.com>
6625 * target-delegates.c: Rebuild.
6626 * target.c (target_detach): Unconditionally delegate.
6627 (init_dummy_target): Don't initialize to_detach.
6628 * target.h (struct target_ops) <to_detach>: Use
6629 TARGET_DEFAULT_IGNORE.
6631 2014-02-19 Tom Tromey <tromey@redhat.com>
6633 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6635 (target_augmented_libraries_svr4_read): Add argument.
6636 * target.c (update_current_target): Update.
6637 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
6640 2014-02-19 Tom Tromey <tromey@redhat.com>
6642 * target.h (struct target_ops) <to_call_history_range>: Add
6644 * target.c (target_call_history_range): Add argument.
6645 * record-btrace.c (record_btrace_call_history_range): Add 'self'
6647 (record_btrace_call_history_from): Update.
6649 2014-02-19 Tom Tromey <tromey@redhat.com>
6651 * target.h (struct target_ops) <to_call_history_from>: Add
6653 * target.c (target_call_history_from): Add argument.
6654 * record-btrace.c (record_btrace_call_history_from): Add 'self'
6657 2014-02-19 Tom Tromey <tromey@redhat.com>
6659 * target.h (struct target_ops) <to_call_history>: Add argument.
6660 * target.c (target_call_history): Add argument.
6661 * record-btrace.c (record_btrace_call_history): Add 'self'
6664 2014-02-19 Tom Tromey <tromey@redhat.com>
6666 * target.h (struct target_ops) <to_insn_history_range>: Add
6668 * target.c (target_insn_history_range): Add argument.
6669 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
6671 (record_btrace_insn_history_from): Update.
6673 2014-02-19 Tom Tromey <tromey@redhat.com>
6675 * target.h (struct target_ops) <to_insn_history_from>: Add
6677 * target.c (target_insn_history_from): Add argument.
6678 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
6681 2014-02-19 Tom Tromey <tromey@redhat.com>
6683 * target.h (struct target_ops) <to_insn_history>: Add argument.
6684 * target.c (target_insn_history): Add argument.
6685 * record-btrace.c (record_btrace_insn_history): Add 'self'
6688 2014-02-19 Tom Tromey <tromey@redhat.com>
6690 * target.h (struct target_ops) <to_goto_record>: Add argument.
6691 * target.c (target_goto_record): Add argument.
6692 * record-full.c (record_full_goto): Add 'self' argument.
6693 * record-btrace.c (record_btrace_goto): Add 'self' argument.
6695 2014-02-19 Tom Tromey <tromey@redhat.com>
6697 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
6698 * target.c (target_goto_record_end): Add argument.
6699 * record-full.c (record_full_goto_end): Add 'self' argument.
6700 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
6702 2014-02-19 Tom Tromey <tromey@redhat.com>
6704 * target.h (struct target_ops) <to_goto_record_begin>: Add
6706 * target.c (target_goto_record_begin): Add argument.
6707 * record-full.c (record_full_goto_begin): Add 'self' argument.
6708 * record-btrace.c (record_btrace_goto_begin): Add 'self'
6711 2014-02-19 Tom Tromey <tromey@redhat.com>
6713 * target.h (struct target_ops) <to_record_is_replaying>: Add
6715 * target.c (target_record_is_replaying): Add argument.
6716 * record-full.c (record_full_is_replaying): Add 'self' argument.
6717 * record-btrace.c (record_btrace_is_replaying): Add 'self'
6719 (record_btrace_xfer_partial, record_btrace_store_registers)
6720 (record_btrace_prepare_to_store, record_btrace_resume)
6721 (record_btrace_wait, record_btrace_decr_pc_after_break)
6722 (record_btrace_find_new_threads, record_btrace_thread_alive):
6725 2014-02-19 Tom Tromey <tromey@redhat.com>
6727 * target.h (struct target_ops) <to_delete_record>: Add argument.
6728 * target.c (target_delete_record): Add argument.
6729 * record-full.c (record_full_delete): Add 'self' argument.
6731 2014-02-19 Tom Tromey <tromey@redhat.com>
6733 * target.h (struct target_ops) <to_save_record>: Add argument.
6734 * target.c (target_save_record): Add argument.
6735 * record-full.c (record_full_save): Add 'self' argument.
6736 (record_full_save): Add 'self' argument.
6738 2014-02-19 Tom Tromey <tromey@redhat.com>
6740 * target.h (struct target_ops) <to_info_record>: Add argument.
6741 * target.c (target_info_record): Add argument.
6742 * record.c (info_record_command): Add argument.
6743 * record-full.c (record_full_info): Add 'self' argument.
6744 * record-btrace.c (record_btrace_info): Add 'self' argument.
6746 2014-02-19 Tom Tromey <tromey@redhat.com>
6748 * target.h (struct target_ops) <to_stop_recording>: Add argument.
6749 * target.c (target_stop_recording): Add argument.
6750 * record.c (record_stop): Add argument.
6751 * record-btrace.c (record_btrace_stop_recording): Add 'self'
6754 2014-02-19 Tom Tromey <tromey@redhat.com>
6756 * target.h (struct target_ops) <to_read_btrace>: Add argument.
6757 * target.c (struct target_ops) <to_read_btrace>: Add argument.
6758 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
6760 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
6761 (_initialize_amd64_linux_nat): Use it.
6762 * i386-linux-nat.c (i386_linux_read_btrace): New function.
6763 (_initialize_i386_linux_nat): Use it.
6765 2014-02-19 Tom Tromey <tromey@redhat.com>
6767 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
6768 * target.c (target_teardown_btrace): Add argument.
6769 * remote.c (remote_teardown_btrace): Add 'self' argument.
6770 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
6772 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
6775 2014-02-19 Tom Tromey <tromey@redhat.com>
6777 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
6778 * target.c (target_disable_btrace): Add argument.
6779 * remote.c (remote_disable_btrace): Add 'self' argument.
6780 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
6782 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
6785 2014-02-19 Tom Tromey <tromey@redhat.com>
6787 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
6788 * target.c (target_enable_btrace): Add argument.
6789 * remote.c (remote_enable_btrace): Add 'self' argument.
6790 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
6792 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
6795 2014-02-19 Tom Tromey <tromey@redhat.com>
6797 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
6798 (target_can_use_agent): Add argument.
6799 * target.c (update_current_target): Update.
6800 * remote.c (remote_can_use_agent): Add 'self' argument.
6801 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
6803 2014-02-19 Tom Tromey <tromey@redhat.com>
6805 * target.h (struct target_ops) <to_use_agent>: Add argument.
6806 (target_use_agent): Add argument.
6807 * target.c (update_current_target): Update.
6808 * remote.c (remote_use_agent): Add 'self' argument.
6809 * inf-child.c (inf_child_use_agent): Add 'self' argument.
6811 2014-02-19 Tom Tromey <tromey@redhat.com>
6813 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
6814 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
6815 (target_traceframe_info): Add argument.
6816 * target.c (update_current_target): Update.
6817 * remote.c (remote_traceframe_info): Add 'self' argument.
6818 * ctf.c (ctf_traceframe_info): Add 'self' argument.
6820 2014-02-19 Tom Tromey <tromey@redhat.com>
6822 * target.h (target_static_tracepoint_markers_by_strid): Add
6824 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
6826 * target.c (update_current_target): Update.
6827 * remote.c (struct target_ops)
6828 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6829 * linux-nat.c (struct target_ops)
6830 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6832 2014-02-19 Tom Tromey <tromey@redhat.com>
6834 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6836 (target_static_tracepoint_marker_at): Add argument.
6837 * target.c (update_current_target): Update.
6838 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
6841 2014-02-19 Tom Tromey <tromey@redhat.com>
6843 * target.h (struct target_ops) <to_set_permissions>: Add argument.
6844 (target_set_permissions): Add argument.
6845 * target.c (update_current_target): Update.
6846 * remote.c (remote_set_permissions): Add 'self' argument.
6847 (remote_start_remote): Update.
6849 2014-02-19 Tom Tromey <tromey@redhat.com>
6851 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
6852 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
6853 (target_get_tib_address): Add argument.
6854 * target.c (update_current_target): Update.
6855 * remote.c (remote_get_tib_address): Add 'self' argument.
6857 2014-02-19 Tom Tromey <tromey@redhat.com>
6859 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
6860 (target_set_trace_notes): Add argument.
6861 * target.c (update_current_target): Update.
6862 * remote.c (remote_set_trace_notes): Add 'self' argument.
6864 2014-02-19 Tom Tromey <tromey@redhat.com>
6866 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
6868 (target_set_trace_buffer_size): Add argument.
6869 * target.c (update_current_target): Update.
6870 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
6872 2014-02-19 Tom Tromey <tromey@redhat.com>
6874 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
6876 (target_set_circular_trace_buffer): Add argument.
6877 * target.c (update_current_target): Update.
6878 * remote.c (remote_set_circular_trace_buffer): Add 'self'
6881 2014-02-19 Tom Tromey <tromey@redhat.com>
6883 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
6885 (target_set_disconnected_tracing): Add argument.
6886 * target.c (update_current_target): Update.
6887 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
6889 2014-02-19 Tom Tromey <tromey@redhat.com>
6891 * target.h (struct target_ops)
6892 <to_get_min_fast_tracepoint_insn_len>: Add argument.
6893 (target_get_min_fast_tracepoint_insn_len): Add argument.
6894 * target.c (update_current_target): Update.
6895 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
6898 2014-02-19 Tom Tromey <tromey@redhat.com>
6900 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
6902 (target_get_raw_trace_data): Add argument.
6903 * target.c (update_current_target): Update.
6904 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
6906 2014-02-19 Tom Tromey <tromey@redhat.com>
6908 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6910 (target_upload_trace_state_variables): Add argument.
6911 * target.c (update_current_target): Update.
6912 * remote.c (remote_upload_trace_state_variables): Add 'self'
6914 (remote_start_remote): Update.
6916 2014-02-19 Tom Tromey <tromey@redhat.com>
6918 * target.h (struct target_ops) <to_upload_tracepoints>: Add
6920 (target_upload_tracepoints): Add argument.
6921 * target.c (update_current_target): Update.
6922 * remote.c (remote_upload_tracepoints): Add 'self' argument.
6923 (remote_start_remote): Update.
6925 2014-02-19 Tom Tromey <tromey@redhat.com>
6927 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
6928 (target_save_trace_data): Add argument.
6929 * target.c (update_current_target): Update.
6930 * remote.c (remote_save_trace_data): Add 'self' argument.
6932 2014-02-19 Tom Tromey <tromey@redhat.com>
6934 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
6936 * target.h (struct target_ops)
6937 <to_get_trace_state_variable_value>: Add argument.
6938 (target_get_trace_state_variable_value): Add argument.
6939 * target.c (update_current_target): Update.
6940 * remote.c (remote_get_trace_state_variable_value): Add 'self'
6942 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
6944 2014-02-19 Tom Tromey <tromey@redhat.com>
6946 * tracepoint.c (tfile_trace_find): Add 'self' argument.
6947 * target.h (struct target_ops) <to_trace_find>: Add argument.
6948 (target_trace_find): Add argument.
6949 * target.c (update_current_target): Update.
6950 * remote.c (remote_trace_find): Add 'self' argument.
6951 * ctf.c (ctf_trace_find): Add 'self' argument.
6953 2014-02-19 Tom Tromey <tromey@redhat.com>
6955 * target.h (struct target_ops) <to_trace_stop>: Add argument.
6956 (target_trace_stop): Add argument.
6957 * target.c (update_current_target): Update.
6958 * remote.c (remote_trace_stop): Add 'self' argument.
6960 2014-02-19 Tom Tromey <tromey@redhat.com>
6962 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
6963 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
6965 (target_get_tracepoint_status): Add argument.
6966 * target.c (update_current_target): Update.
6967 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
6969 2014-02-19 Tom Tromey <tromey@redhat.com>
6971 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
6972 * target.h (struct target_ops) <to_get_trace_status>: Add
6974 (target_get_trace_status): Add argument.
6975 * target.c (update_current_target): Update.
6976 * remote.c (remote_get_trace_status): Add 'self' argument.
6977 (remote_start_remote, remote_can_download_tracepoint): Update.
6978 * ctf.c (ctf_get_trace_status): Add 'self' argument.
6980 2014-02-19 Tom Tromey <tromey@redhat.com>
6982 * target.h (struct target_ops) <to_trace_start>: Add argument.
6983 (target_trace_start): Add argument.
6984 * target.c (update_current_target): Update.
6985 * remote.c (remote_trace_start): Add 'self' argument.
6987 2014-02-19 Tom Tromey <tromey@redhat.com>
6989 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6991 (target_trace_set_readonly_regions): Add argument.
6992 * target.c (update_current_target): Update.
6993 * remote.c (remote_trace_set_readonly_regions): Add 'self'
6996 2014-02-19 Tom Tromey <tromey@redhat.com>
6998 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7000 (target_disable_tracepoint): Add argument.
7001 * target.c (update_current_target): Update.
7002 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7004 2014-02-19 Tom Tromey <tromey@redhat.com>
7006 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7008 (target_enable_tracepoint): Add argument.
7009 * target.c (update_current_target): Update.
7010 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7012 2014-02-19 Tom Tromey <tromey@redhat.com>
7014 * target.h (struct target_ops) <to_download_trace_state_variable>:
7016 (target_download_trace_state_variable): Add argument.
7017 * target.c (update_current_target): Update.
7018 * remote.c (remote_download_trace_state_variable): Add 'self'
7021 2014-02-19 Tom Tromey <tromey@redhat.com>
7023 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7025 (target_can_download_tracepoint): Add argument.
7026 * target.c (update_current_target): Update.
7027 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7029 2014-02-19 Tom Tromey <tromey@redhat.com>
7031 * target.h (struct target_ops) <to_download_tracepoint>: Add
7033 (target_download_tracepoint): Add argument.
7034 * target.c (update_current_target): Update.
7035 * remote.c (remote_download_tracepoint): Add 'self' argument.
7037 2014-02-19 Tom Tromey <tromey@redhat.com>
7039 * target.h (struct target_ops) <to_trace_init>: Add argument.
7040 (target_trace_init): Add argument.
7041 * target.c (update_current_target): Update.
7042 * remote.c (remote_trace_init): Add 'self' argument.
7044 2014-02-19 Tom Tromey <tromey@redhat.com>
7046 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7047 * target.c (target_fileio_readlink): Add argument.
7048 * remote.c (remote_hostio_readlink): Add 'self' argument.
7049 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7051 2014-02-19 Tom Tromey <tromey@redhat.com>
7053 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7054 * target.c (target_fileio_unlink): Add argument.
7055 * remote.c (remote_hostio_unlink): Add 'self' argument.
7056 (remote_file_delete): Update.
7057 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7059 2014-02-19 Tom Tromey <tromey@redhat.com>
7061 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7062 * target.c (target_fileio_close): Add argument.
7063 * remote.c (remote_hostio_close): Add 'self' argument.
7064 (remote_hostio_close_cleanup): Update.
7065 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7067 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7069 2014-02-19 Tom Tromey <tromey@redhat.com>
7071 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7072 * target.c (target_fileio_pread): Add argument.
7073 * remote.c (remote_hostio_pread): Add 'self' argument.
7074 (remote_bfd_iovec_pread, remote_file_get): Update.
7075 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7077 2014-02-19 Tom Tromey <tromey@redhat.com>
7079 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7080 * target.c (target_fileio_pwrite): Add argument.
7081 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7082 (remote_file_put): Update.
7083 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7085 2014-02-19 Tom Tromey <tromey@redhat.com>
7087 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7088 * target.c (target_fileio_open): Add argument.
7089 * remote.c (remote_hostio_open): Add 'self' argument.
7090 (remote_bfd_iovec_open): Add 'self' argument.
7091 (remote_file_put): Add 'self' argument.
7092 (remote_file_get): Add 'self' argument.
7093 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7095 2014-02-19 Tom Tromey <tromey@redhat.com>
7097 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7099 (target_can_run_breakpoint_commands): Add argument.
7100 * target.c (update_current_target): Update.
7101 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7103 (remote_insert_breakpoint): Add 'self' argument.
7104 (remote_insert_hw_breakpoint): Add 'self' argument.
7105 (remote_can_run_breakpoint_commands): Add 'self' argument.
7107 2014-02-19 Tom Tromey <tromey@redhat.com>
7109 * target.h (struct target_ops)
7110 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7111 (target_supports_evaluation_of_breakpoint_conditions): Add
7113 * target.c (update_current_target): Update.
7114 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7116 (remote_insert_breakpoint): Add 'self' argument.
7117 (remote_insert_hw_breakpoint): Add 'self' argument.
7118 (remote_supports_cond_breakpoints): Add 'self' argument.
7120 2014-02-19 Tom Tromey <tromey@redhat.com>
7122 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7124 (target_supports_string_tracing): Add argument.
7125 * target.c (update_current_target): Update.
7126 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7128 2014-02-19 Tom Tromey <tromey@redhat.com>
7130 * target.h (struct target_ops)
7131 <to_supports_disable_randomization>: Add argument.
7132 * target.c (find_default_supports_disable_randomization): Add
7134 (target_supports_disable_randomization): Add argument.
7135 (find_default_supports_disable_randomization): Add 'self'
7137 * remote.c (extended_remote_supports_disable_randomization): Add
7139 (remote_supports_disable_randomization): Add 'self' argument.
7140 (extended_remote_create_inferior): Update.
7141 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7144 2014-02-19 Tom Tromey <tromey@redhat.com>
7146 * target.h (struct target_ops)
7147 <to_supports_enable_disable_tracepoint>: Add argument.
7148 (target_supports_enable_disable_tracepoint): Add argument.
7149 * target.c (update_current_target): Update.
7150 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7153 2014-02-19 Tom Tromey <tromey@redhat.com>
7155 * target.h (struct target_ops) <to_supports_multi_process>: Add
7157 (target_supports_multi_process): Add argument.
7158 * target.c (update_current_target): Update.
7159 * remote.c (remote_supports_multi_process): Add 'self' argument.
7160 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7162 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7165 2014-02-19 Tom Tromey <tromey@redhat.com>
7167 * target.h (struct target_ops) <to_execution_direction>: Add
7169 (target_execution_direction): Add argument.
7170 * target.c (default_execution_direction): Add 'self' argument.
7171 * record-full.c (record_full_execution_direction): Add 'self'
7174 2014-02-19 Tom Tromey <tromey@redhat.com>
7176 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7178 (target_can_execute_reverse): Add argument.
7179 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7180 * record-full.c (record_full_can_execute_reverse): Add 'self'
7182 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7185 2014-02-19 Tom Tromey <tromey@redhat.com>
7187 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7188 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7190 (target_get_ada_task_ptid): Add argument.
7191 * target.c (update_current_target): Update.
7192 (default_get_ada_task_ptid): Add 'self' argument.
7193 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7194 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7195 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7197 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7199 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7201 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7203 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7204 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7207 2014-02-19 Tom Tromey <tromey@redhat.com>
7209 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7210 (target_goto_bookmark): Add argument.
7211 * target.c (dummy_goto_bookmark): Add 'self' argument.
7212 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7214 2014-02-19 Tom Tromey <tromey@redhat.com>
7216 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7217 (target_get_bookmark): Add argument.
7218 * target.c (dummy_get_bookmark): Add 'self' argument.
7219 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7221 2014-02-19 Tom Tromey <tromey@redhat.com>
7223 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7225 (target_make_corefile_notes): Add argument.
7226 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7227 * procfs.c (procfs_make_note_section): Add 'self' argument.
7228 (procfs_make_note_section): Add 'self' argument.
7229 (procfs_make_note_section): Add 'self' argument.
7230 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7232 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7233 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7234 * exec.c (exec_make_note_section): Add 'self' argument.
7235 (exec_make_note_section): Add 'self' argument.
7237 2014-02-19 Tom Tromey <tromey@redhat.com>
7239 * target.h (struct target_ops) <to_find_memory_regions>: Add
7241 (target_find_memory_regions): Add argument.
7242 * target.c (dummy_find_memory_regions): Add 'self' argument.
7243 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7244 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7245 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7246 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7247 * exec. (exec_do_find_memory_regions): New global.
7248 (exec_set_find_memory_regions): Rewrite.
7249 (exec_find_memory_regions): New function.
7250 (init_exec_ops): Use exec_find_memory_regions.
7252 2014-02-19 Tom Tromey <tromey@redhat.com>
7254 * target.h (struct target_ops) <to_supports_non_stop>: Add
7256 * target.c (find_default_supports_non_stop): Add argument.
7257 (target_supports_non_stop): Add argument.
7258 (find_default_supports_non_stop): Add 'self' argument.
7259 * remote.c (remote_supports_non_stop): Add 'self' argument.
7260 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7262 2014-02-19 Tom Tromey <tromey@redhat.com>
7264 * target.h (struct target_ops) <to_log_command>: Add argument.
7265 (target_log_command): Add argument.
7266 * serial.h (serial_log_command): Add 'self' argument.
7267 * serial.c (serial_log_command): Add 'self' argument.
7269 2014-02-19 Tom Tromey <tromey@redhat.com>
7271 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7272 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7274 (target_pid_to_exec_file): Add argument.
7275 * target.c (debug_to_pid_to_exec_file): Add argument.
7276 (update_current_target): Update.
7277 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7278 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7279 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7280 (linux_handle_extended_wait): Update.
7281 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7282 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7283 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7284 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7286 2014-02-19 Tom Tromey <tromey@redhat.com>
7288 * target.h (struct target_ops) <to_rcmd>: Add argument.
7289 (target_rcmd): Add argument.
7290 * target.c (debug_to_rcmd): Add argument.
7291 (update_current_target, do_monitor_command): Update.
7292 * remote.c (remote_rcmd): Add 'self' argument.
7293 * monitor.c (monitor_rcmd): Add 'self' argument.
7295 2014-02-19 Tom Tromey <tromey@redhat.com>
7297 * windows-nat.c (windows_stop): Add 'self' argument.
7298 * target.h (struct target_ops) <to_stop>: Add argument.
7299 * target.c (target_stop): Add argument.
7300 (debug_to_stop): Add argument.
7301 (update_current_target): Update.
7302 * remote.c (remote_stop): Add 'self' argument.
7303 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7304 (gdbsim_cntrl_c): Update.
7305 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7306 * procfs.c (procfs_stop): Add 'self' argument.
7307 * nto-procfs.c (procfs_stop): Add 'self' argument.
7308 * monitor.c (monitor_stop): Add 'self' argument.
7309 (monitor_open): Update.
7310 * linux-nat.c (linux_nat_stop): Add argument.
7311 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7312 * gnu-nat.c (gnu_stop): Add 'self' argument.
7313 * darwin-nat.c (darwin_stop): Add 'self' argument.
7315 2014-02-19 Tom Tromey <tromey@redhat.com>
7317 * target.h (struct target_ops) <to_thread_name>: Add argument.
7318 * target.c (target_thread_name): Add argument.
7319 (update_current_target): Update.
7320 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7322 2014-02-19 Tom Tromey <tromey@redhat.com>
7324 * target.h (struct target_ops) <to_extra_thread_info>: Add
7326 (target_extra_thread_info): Add argument.
7327 * target.c (update_current_target): Update.
7328 * remote.c (remote_threads_extra_info): Add 'self' argument.
7329 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7331 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7332 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7333 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7335 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7337 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7339 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7342 2014-02-19 Tom Tromey <tromey@redhat.com>
7344 * target.h (struct target_ops) <to_program_signals>: Add argument.
7345 * target.c (target_program_signals): Add argument.
7346 * remote.c (remote_program_signals): Add 'self' argument.
7348 2014-02-19 Tom Tromey <tromey@redhat.com>
7350 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7351 * target.c (target_pass_signals): Add argument.
7352 * remote.c (remote_pass_signals): Add 'self' argument.
7353 (remote_start_remote): Update.
7354 * procfs.c (procfs_pass_signals): Add 'self' argument.
7355 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7356 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7357 (linux_nat_create_inferior, linux_nat_attach): Update.
7359 2014-02-19 Tom Tromey <tromey@redhat.com>
7361 * windows-nat.c (windows_can_run): Add 'self' argument.
7362 * target.h (struct target_ops) <to_can_run>: Add argument.
7363 (target_can_run): Add argument.
7364 * target.c (debug_to_can_run): Add argument.
7365 (update_current_target): Update.
7366 * nto-procfs.c (procfs_can_run): Add 'self' argument.
7367 * inf-child.c (inf_child_can_run): Add 'self' argument.
7368 * go32-nat.c (go32_can_run): Add 'self' argument.
7370 2014-02-19 Tom Tromey <tromey@redhat.com>
7372 * target.h (struct target_ops) <to_has_exited>: Add argument.
7373 (target_has_exited): Add argument.
7374 * target.c (debug_to_has_exited): Add argument.
7375 (update_current_target): Update.
7377 2014-02-19 Tom Tromey <tromey@redhat.com>
7379 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
7381 (target_set_syscall_catchpoint): Add argument.
7382 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
7384 * target.c (update_current_target): Update.
7386 2014-02-19 Tom Tromey <tromey@redhat.com>
7388 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
7390 (target_remove_exec_catchpoint): Add argument.
7391 * target.c (debug_to_remove_exec_catchpoint): Add argument.
7392 (update_current_target): Update.
7393 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
7396 2014-02-19 Tom Tromey <tromey@redhat.com>
7398 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
7400 (target_insert_exec_catchpoint): Add argument.
7401 * target.c (debug_to_insert_exec_catchpoint): Add argument.
7402 (update_current_target): Update.
7403 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
7406 2014-02-19 Tom Tromey <tromey@redhat.com>
7408 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
7410 (target_remove_vfork_catchpoint): Add argument.
7411 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
7412 (update_current_target): Update.
7413 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
7416 2014-02-19 Tom Tromey <tromey@redhat.com>
7418 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
7420 (target_insert_vfork_catchpoint): Add argument.
7421 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
7422 (update_current_target): Update.
7423 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
7426 2014-02-19 Tom Tromey <tromey@redhat.com>
7428 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
7430 (target_remove_fork_catchpoint): Add argument.
7431 * target.c (debug_to_remove_fork_catchpoint): Add argument.
7432 (update_current_target): Update.
7433 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
7436 2014-02-19 Tom Tromey <tromey@redhat.com>
7438 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
7440 (target_insert_fork_catchpoint): Add argument.
7441 * target.c (debug_to_insert_fork_catchpoint): Add argument.
7442 (update_current_target): Update.
7443 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
7446 2014-02-19 Tom Tromey <tromey@redhat.com>
7448 * target.h (struct target_ops) <to_post_startup_inferior>: Add
7450 (target_post_startup_inferior): Add argument.
7451 * target.c (debug_to_post_startup_inferior): Add argument.
7452 (update_current_target): Update.
7453 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
7455 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
7457 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
7459 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
7461 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
7463 (super_post_startup_inferior): Likewise.
7464 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
7466 (super_post_startup_inferior): Likewise.
7467 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
7468 Add 'self' argument.
7469 (super_post_startup_inferior): Likewise.
7471 2014-02-19 Tom Tromey <tromey@redhat.com>
7473 * target.h (struct target_ops) <to_load>: Add argument.
7474 * target.c (target_load): Add argument.
7475 (debug_to_load): Add argument.
7476 (update_current_target): Update.
7477 * remote.c (remote_load): Add 'self' argument.
7478 * remote-sim.c (gdbsim_load): Add 'self' argument.
7479 * remote-mips.c (mips_load): Add 'self' argument.
7480 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
7481 * monitor.c (monitor_load): Add 'self' argument.
7482 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
7484 2014-02-19 Tom Tromey <tromey@redhat.com>
7486 * target.h (struct target_ops) <to_terminal_info>: Add argument.
7487 (target_terminal_info): Add argument.
7488 * target.c (debug_to_terminal_info): Add argument.
7489 (default_terminal_info): Likewise.
7490 * inflow.c (child_terminal_info): Add 'self' argument.
7491 * inferior.h (child_terminal_info): Add 'self' argument.
7492 * go32-nat.c (go32_terminal_info): Add 'self' argument.
7494 2014-02-19 Tom Tromey <tromey@redhat.com>
7496 * target.h (struct target_ops) <to_terminal_save_ours>: Add
7498 (target_terminal_save_ours): Add argument.
7499 * target.c (debug_to_terminal_save_ours): Add argument.
7500 (update_current_target): Update.
7501 * inflow.c (terminal_save_ours): Add 'self' argument.
7502 * inferior.h (terminal_save_ours): Add 'self' argument.
7504 2014-02-19 Tom Tromey <tromey@redhat.com>
7506 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
7507 (target_terminal_ours): Add argument.
7508 * target.c (debug_to_terminal_ours): Add argument.
7509 (update_current_target): Update.
7510 * remote.c (remote_terminal_ours): Add 'self' argument.
7511 (remote_close): Update.
7512 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
7513 * inflow.c (terminal_ours): Add 'self' argument.
7514 * inferior.h (terminal_ours): Add 'self' argument.
7515 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7517 2014-02-19 Pedro Alves <palves@redhat.com>
7518 Tom Tromey <tromey@redhat.com>
7520 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
7522 (target_terminal_ours_for_output): Add argument.
7523 * target.c (debug_to_terminal_ours_for_output): Add argument.
7524 (update_current_target): Update.
7525 * inflow.c (terminal_ours_for_output): Add 'self' argument.
7526 * inferior.h (terminal_ours_for_output): Add 'self' argument.
7527 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7529 2014-02-19 Tom Tromey <tromey@redhat.com>
7531 * target.h (struct target_ops) <to_terminal_inferior>: Add
7533 * target.c (target_terminal_inferior): Add argument.
7534 (update_current_target): Update.
7535 * remote.c (remote_terminal_inferior): Add 'self' argument.
7536 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
7537 * inflow.c (terminal_inferior): Add 'self' argument.
7538 * inferior.h (terminal_inferior): Add 'self' argument.
7539 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
7540 (go32_terminal_inferior): Add 'self' argument.
7542 2014-02-19 Tom Tromey <tromey@redhat.com>
7544 * target.h (struct target_ops) <to_terminal_init>: Add argument.
7545 (target_terminal_init): Add argument.
7546 * target.c (debug_to_terminal_init): Add argument.
7547 (update_current_target): Update.
7548 * inflow.c (terminal_init_inferior): Add 'self' argument.
7549 * inferior.h (terminal_init_inferior): Add 'self' argument.
7550 * go32-nat.c (go32_terminal_init): Add 'self' argument.
7551 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
7553 2014-02-19 Tom Tromey <tromey@redhat.com>
7555 * target.h (struct target_ops)
7556 <to_can_accel_watchpoint_condition>: Add argument.
7557 (target_can_accel_watchpoint_condition): Add argument.
7558 * target.c (debug_to_can_accel_watchpoint_condition): Add
7560 (update_current_target): Update.
7561 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
7564 2014-02-19 Tom Tromey <tromey@redhat.com>
7566 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7568 (target_region_ok_for_hw_watchpoint): Add argument.
7569 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
7570 (default_region_ok_for_hw_watchpoint): Add argument.
7571 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
7572 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
7574 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
7576 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
7578 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
7580 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
7582 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
7584 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
7585 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
7587 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
7588 Add 'self' argument.
7590 2014-02-19 Tom Tromey <tromey@redhat.com>
7592 * target.h (struct target_ops) <to_insert_watchpoint>: Add
7594 (target_insert_watchpoint): Add argument.
7595 * target.c (debug_to_insert_watchpoint): Add argument.
7596 (update_current_target): Update.
7597 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
7598 * remote.c (remote_insert_watchpoint): Add 'self' argument.
7599 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
7600 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
7601 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
7602 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
7604 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
7605 (procfs_insert_hw_watchpoint): Add 'self' argument.
7606 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
7608 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
7610 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
7612 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
7613 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
7615 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
7618 2014-02-19 Tom Tromey <tromey@redhat.com>
7620 * target.h (struct target_ops) <to_remove_watchpoint>: Add
7622 (target_remove_watchpoint): Add argument.
7623 * target.c (debug_to_remove_watchpoint): Add argument.
7624 (update_current_target): Update.
7625 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
7626 * remote.c (remote_remove_watchpoint): Add 'self' argument.
7627 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
7628 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
7629 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
7630 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
7632 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
7633 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
7635 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
7637 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
7639 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
7640 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
7642 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
7645 2014-02-19 Tom Tromey <tromey@redhat.com>
7647 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
7649 (target_remove_hw_breakpoint): Add argument.
7650 * target.c (debug_to_remove_hw_breakpoint): Add argument.
7651 (update_current_target): Update.
7652 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
7653 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
7655 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
7656 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
7658 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
7661 2014-02-19 Tom Tromey <tromey@redhat.com>
7663 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
7665 (target_insert_hw_breakpoint): Add argument.
7666 * target.c (debug_to_insert_hw_breakpoint): Add argument.
7667 (update_current_target): Update.
7668 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
7669 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
7671 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
7672 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
7673 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
7675 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
7678 2014-02-19 Tom Tromey <tromey@redhat.com>
7680 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
7682 (target_can_use_hardware_watchpoint): Add argument.
7683 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
7684 (update_current_target): Update.
7685 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
7687 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
7689 * remote.c (remote_check_watch_resources): Add 'self' argument.
7690 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
7691 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
7693 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
7694 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
7696 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
7698 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
7700 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
7702 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
7704 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
7706 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
7707 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
7709 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
7712 2014-02-19 Tom Tromey <tromey@redhat.com>
7714 * target.h (struct target_ops) <to_post_attach>: Add argument.
7715 (target_post_attach): Add argument.
7716 * target.c (debug_to_post_attach): Add argument.
7717 (update_current_target): Update.
7718 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
7719 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
7720 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
7721 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
7722 * inf-child.c (inf_child_post_attach): Add 'self' argument.
7724 2014-02-19 Tom Tromey <tromey@redhat.com>
7726 * windows-nat.c (windows_close): Add 'self' argument.
7727 * tracepoint.c (tfile_close): Add 'self' argument.
7728 * target.h (struct target_ops) <to_close>: Add argument.
7729 * target.c (target_close): Add argument.
7730 (update_current_target): Update.
7731 * remote.c (remote_close): Add 'self' argument.
7732 * remote-sim.c (gdbsim_close): Add 'self' argument.
7733 * remote-mips.c (mips_close): Add 'self' argument.
7734 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
7735 * record-full.c (record_full_close): Add 'self' argument.
7736 * record-btrace.c (record_btrace_close): Add 'self' argument.
7737 * monitor.h (monitor_close): Add 'self' argument.
7738 * monitor.c (monitor_close): Add 'self' argument.
7739 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
7740 * linux-nat.c (linux_nat_close): Add argument.
7741 * go32-nat.c (go32_close): Add 'self' argument.
7742 * exec.c (exec_close_1): Add 'self' argument.
7743 * ctf.c (ctf_close): Add 'self' argument.
7744 * corelow.c (core_close): Add 'self' argument.
7745 (core_close_cleanup): Update.
7746 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
7747 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
7749 2014-02-19 Tom Tromey <tromey@redhat.com>
7751 * remote.c (remote_load): New function.
7752 (init_remote_ops): Use it.
7754 2014-02-19 Tom Tromey <tromey@redhat.com>
7756 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
7758 * common/linux-btrace.h (linux_supports_btrace): Update.
7759 * remote.c (remote_supports_btrace): Add "self" argument.
7760 * target-delegates.c: Rebuild.
7761 * target.c (target_supports_btrace): Remove.
7762 * target.h (struct target_ops) <to_supports_btrace>: Add
7763 target_ops argument.
7764 (target_supports_btrace): New define.
7766 2014-02-19 Tom Tromey <tromey@redhat.com>
7768 * record-full.c (record_full_beneath_to_resume_ops)
7769 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
7770 (record_full_beneath_to_wait)
7771 (record_full_beneath_to_store_registers_ops)
7772 (record_full_beneath_to_store_registers)
7773 (record_full_beneath_to_xfer_partial_ops)
7774 (record_full_beneath_to_xfer_partial)
7775 (record_full_beneath_to_insert_breakpoint_ops)
7776 (record_full_beneath_to_insert_breakpoint)
7777 (record_full_beneath_to_remove_breakpoint_ops)
7778 (record_full_beneath_to_remove_breakpoint)
7779 (record_full_beneath_to_stopped_by_watchpoint)
7780 (record_full_beneath_to_stopped_data_address)
7781 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
7782 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
7783 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
7784 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
7785 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
7786 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
7787 (tmp_to_stopped_data_address, tmp_to_async): Remove.
7788 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
7789 (record_full_resume, record_full_wait_1)
7790 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
7791 (record_full_store_registers, record_full_xfer_partial)
7792 (record_full_insert_breakpoint, record_full_remove_breakpoint)
7793 (record_full_async, record_full_core_xfer_partial): Use target
7795 * target-delegates.c: Rebuild.
7796 * target.c (current_xfer_partial): Remove.
7797 (update_current_target): Do not INHERIT or de_fault
7798 to_insert_breakpoint, to_remove_breakpoint,
7799 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
7800 to_is_async_p, to_async. Do not set to_xfer_partial field.
7801 (default_xfer_partial): Simplify.
7802 (current_xfer_partial): Remove.
7803 (target_wait, target_resume): Simplify.
7804 (find_default_can_async_p, find_default_is_async_p): Update.
7805 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
7806 to_xfer_partial, to_stopped_by_watchpoint,
7807 to_stopped_data_address.
7808 (target_store_registers): Simplify.
7809 (forward_target_remove_breakpoint)
7810 (forward_target_insert_breakpoint): Remove.
7811 (target_remove_breakpoint, target_insert_breakpoint)
7812 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
7813 * target.h (struct target_ops) <to_resume, to_wait,
7814 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
7815 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
7816 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
7818 (forward_target_remove_breakpoint)
7819 (forward_target_insert_breakpoint): Remove.
7820 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
7822 (record_btrace_insert_breakpoint): Delegate directly.
7824 2014-02-19 Tom Tromey <tromey@redhat.com>
7827 * target-delegates.c: New file.
7828 * target.c: Include target-delegates.c.
7829 (init_dummy_target): Call install_dummy_methods.
7830 (complete_target_initialization): Call install_delegators.
7831 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
7832 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
7833 * make-target-delegates: New file.
7835 2014-02-19 Tom Tromey <tromey@redhat.com>
7837 * record.c (find_record_target): Use find_target_at.
7838 * target.c (find_target_at): New function.
7839 * target.h (find_target_at): Declare.
7841 2014-02-19 Tom Tromey <tromey@redhat.com>
7843 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
7845 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
7847 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
7848 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
7850 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
7852 * linux-nat.c (save_sigtrap): Update.
7853 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
7854 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
7855 (linux_nat_close): Update.
7856 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
7858 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
7860 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
7861 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
7862 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
7863 (tmp_to_async): Add 'ops' argument.
7864 (record_full_stopped_by_watchpoint, record_full_async)
7865 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
7867 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
7868 (m32r_stopped_by_watchpoint): Add 'ops' argument.
7869 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
7870 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
7871 (remote_is_async_p, remote_async): Add 'ops' argument.
7872 (remote_stopped_data_address): Update.
7873 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
7874 * target.c (update_current_target)
7875 (find_default_can_async_p, find_default_is_async_p): Update.
7876 (init_dummy_target): Update.
7877 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
7878 * target.h (struct target_ops) <to_stopped_by_watchpoint,
7879 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
7880 (target_can_async_p, target_is_async_p, target_async)
7881 (target_stopped_by_watchpoint): Update.
7883 2014-02-19 Yao Qi <yao@codesourcery.com>
7886 * gdbarch.sh: Remove startup_gdbarch.
7887 * gdbarch.c: Regenerated.
7888 * gdbarch.h: Likewise.
7890 2014-02-17 Kevin Buettner <kevinb@redhat.com>
7892 * rl78-tdep.c (rl78_g10_register_name): New function.
7893 (rl78_return_value): Add g10 support.
7894 (rl78_gdbarch_init): Register rl78_g10_register_name for the
7897 2014-02-17 Doug Evans <xdje42@gmail.com>
7899 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
7900 (SUBDIR_GUILE_SRCS): Ditto.
7901 (scm-gsmob.o): Ditto.
7903 2014-02-17 Yao Qi <yao@codesourcery.com>
7905 * gnu-nat.c (ILL_RPC): Declare defined function.
7907 2014-02-17 Yao Qi <yao@codesourcery.com>
7909 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
7910 mach_msg_type_number_t.
7911 (gnu_write_inferior): Likewise.
7913 2014-02-17 Yao Qi <yao@codesourcery.com>
7915 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
7917 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
7918 (inf_validate_procs, inf_signal): Likewise.
7919 (S_exception_raise_request): Likewise.
7920 (do_mach_notify_dead_name): Likewise.
7921 (steal_exc_port): Likewise.
7922 (gnu_read_inferior): Change 'copy_count''s type to
7923 mach_msg_type_number_t.
7924 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
7927 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
7929 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
7930 flag. Adjust all users; in particular...
7931 (gnu_wait): ..., don't decrement its value in here...
7932 (gnu_create_inferior): ..., and instead set the flag in here,
7933 around the startup_inferior call, and call that one with
7934 START_INFERIOR_TRAPS_EXPECTED.
7936 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
7937 (ILL_RPC): ... new macro.
7938 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
7939 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
7940 (do_mach_notify_send_once, S_proc_setmsgport_reply)
7941 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
7942 functions with ILL_RPC macro.
7943 (S_proc_pid2task_reply, S_proc_task2pid_reply)
7944 (S_proc_task2proc_reply, S_proc_proc2task_reply)
7945 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
7946 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
7947 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
7948 (S_proc_getlogin_reply, S_proc_getsid_reply)
7949 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
7950 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
7951 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
7952 (S_proc_getnports_reply, S_proc_is_important_reply)
7953 (S_proc_get_code_reply): New stub functions, generated with
7956 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
7957 collected the type check structures.
7959 * reply_mig_hack.awk: Don't expect to see the auto keyword.
7961 2014-02-14 Doug Evans <dje@google.com>
7963 * target.c (target_write_partial): Fix result type.
7965 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
7967 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
7968 the proper offsets to access fpregset_t.
7970 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
7972 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
7973 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
7974 * h8300-tdep.c (setmachinelist): Remove global.
7975 * hppa-tdep.c (hppa_sigtramp): Remove global.
7976 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
7977 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
7978 * ravenscar-thread.c (update_target_observer): Remove global.
7979 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
7981 2014-02-12 Tom Tromey <tromey@redhat.com>
7983 * common/rsp-low.c: Update comments.
7984 * common/rsp-low.h: Update comments.
7986 2014-02-12 Tom Tromey <tromey@redhat.com>
7988 * common/rsp-low.c (convert_ascii_to_int): Remove.
7989 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
7991 2014-02-12 Tom Tromey <tromey@redhat.com>
7993 * common/rsp-low.h (unhexify): Don't declare.
7994 * common/rsp-low.c (unhexify): Remove.
7996 2014-02-12 Tom Tromey <tromey@redhat.com>
7998 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
7999 * common/rsp-low.c (convert_int_to_ascii): Remove.
8001 2014-02-12 Tom Tromey <tromey@redhat.com>
8003 * common/rsp-low.h (hexify): Don't declare.
8004 * common/rsp-low.c (hexify): Remove.
8006 2014-02-12 Tom Tromey <tromey@redhat.com>
8008 * common/rsp-low.c (hexify): Never take strlen of argument.
8010 2014-02-12 Tom Tromey <tromey@redhat.com>
8012 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8013 * remote.c (extended_remote_run, remote_rcmd)
8014 (remote_download_trace_state_variable, remote_save_trace_data)
8015 (remote_set_trace_notes): Update.
8016 * tracepoint.c (encode_source_string, tfile_write_status)
8017 (tfile_write_uploaded_tsv): Update.
8019 2014-02-12 Tom Tromey <tromey@redhat.com>
8021 * tracepoint.c: Include rsp-low.h.
8022 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8023 * remote.c: Include rsp-low.h.
8024 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8025 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8026 (remote_unescape_input): Move to common/rsp-low.c.
8027 * common/rsp-low.h: New file.
8028 * common/rsp-low.c: New file.
8029 * Makefile.in (SFILES): Add common/rsp-low.c.
8030 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8031 (COMMON_OBS): Add rsp-low.o.
8032 (rsp-low.o): New target.
8034 2014-02-12 Tom Tromey <tromey@redhat.com>
8036 * utils.h: Include print-utils.h.
8037 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8038 (int_string, core_addr_to_string, core_addr_to_string_nz)
8039 (hex_string, hex_string_custom): Don't declare.
8040 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8041 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8042 (hex_string_custom, int_string, core_addr_to_string)
8043 (core_addr_to_string_nz, host_address_to_string): Move to
8044 common/print-utils.c.
8045 * common/print-utils.h: New file.
8046 * common/print-utils.c: New file
8047 * Makefile.in (SFILES): Add common/print-utils.c.
8048 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8049 (COMMON_OBS): Add print-utils.o.
8050 (print-utils.o): New target.
8052 2014-02-12 Tom Tromey <tromey@redhat.com>
8054 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8056 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8058 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8060 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8062 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8063 if a PT_IO ptrace request returns sucessfully but indicates that 0
8064 bytes were transferred.
8066 2014-02-12 Pedro Alves <palves@redhat.com>
8067 Kevin Buettner <kevinb@redhat.com>
8069 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8070 TYPE_INSTANCE_FLAG_CODE_SPACE.
8072 2014-02-12 Pedro Alves <palves@redhat.com>
8074 * h8300-tdep.c (pseudo_from_raw_register)
8075 (raw_from_pseudo_register): New functions.
8076 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8079 2014-02-12 Pedro Alves <palves@redhat.com>
8081 * h8300-tdep.c (h8300_register_sim_regno): New function.
8082 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8083 gdbarch_register_sim_regno hook.
8085 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8087 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8089 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8091 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8093 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8095 * obsd-tdep.h (obsd_init_abi): New prototype.
8096 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8097 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8098 (obsd_init_abi): New functions.
8099 * i386obsd-tdep.c: Include "obsd-tdep.h".
8100 (i386obsd_init_abi): Call obsd_init_abi.
8101 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8102 (amd64obsd_init_abi): Call obsd_init_abi.
8103 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8104 obsd-tdep.c to gdb_target_obs.
8106 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8108 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8109 double float arguments to 16-byte in the argument slots.
8111 2014-02-11 Doug Evans <xdje42@gmail.com>
8113 * configure.ac: Don't crash if pkg-config is not found and guile
8114 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8116 * configure: Regenerate.
8118 2014-02-11 Yao Qi <yao@codesourcery.com>
8120 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8121 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8122 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8123 * gnu-nat.c (gnu_xfer_memory): Likewise.
8124 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8125 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8126 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8127 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8129 2014-02-11 Yao Qi <yao@codesourcery.com>
8131 * target.h (enum target_xfer_error): Rename to ...
8132 (enum target_xfer_status): ... it. New. All users updated.
8133 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8135 (TARGET_XFER_STATUS_ERROR_P): New macro.
8136 (target_xfer_error_to_string): Remove declaration.
8137 (target_xfer_status_to_string): Declare.
8138 (target_xfer_partial_ftype): Adjust it.
8139 (struct target_ops) <to_xfer_partial>: Return
8140 target_xfer_status. Add argument xfered_len. Update
8142 * target.c (target_xfer_error_to_string): Rename to ...
8143 (target_xfer_status_to_string): ... it. New. All callers
8145 (target_read_live_memory): Likewise. Call target_xfer_partial
8146 instead of target_read.
8147 (memory_xfer_live_readonly_partial): Return
8148 target_xfer_status. Add argument xfered_len.
8149 (raw_memory_xfer_partial): Likewise.
8150 (memory_xfer_partial_1): Likewise.
8151 (memory_xfer_partial): Likewise.
8152 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8153 properly. Update debug message.
8154 (default_xfer_partial, current_xfer_partial): Likewise.
8155 (target_write_partial): Likewise.
8156 (target_read_partial): Likewise. All callers updated.
8157 (read_whatever_is_readable): Likewise.
8158 (target_write_with_progress): Likewise.
8159 (target_read_alloc_1): Likewise.
8161 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8162 * auxv.c (procfs_xfer_auxv): Likewise.
8163 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8164 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8165 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8166 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8167 * corefile.c (read_memory): Adjust.
8168 * corelow.c (core_xfer_partial): Likewise.
8169 * ctf.c (ctf_xfer_partial): Likewise.
8170 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8172 (darwin_xfer_partial): Likewise.
8173 * exec.c (section_table_xfer_memory_partial): Likewise. All
8175 (exec_xfer_partial): Likewise.
8176 * exec.h (section_table_xfer_memory_partial): Update
8178 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8180 (gnu_xfer_partial): Likewise.
8181 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8182 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8183 (ia64_hpux_xfer_solib_got): Likewise.
8184 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8185 type of 'partial_len' to ULONGEST.
8186 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8187 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8188 (linux_nat_xfer_partial): Likewise.
8189 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8190 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8191 * monitor.c (monitor_xfer_memory): Likewise.
8192 (monitor_xfer_partial): Likewise.
8193 * procfs.c (procfs_xfer_partial): Likewise.
8194 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8195 * record-full.c (record_full_xfer_partial): Likewise.
8196 (record_full_core_xfer_partial): Likewise.
8197 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8198 (gdbsim_xfer_partial): Likewise.
8199 * remote.c (remote_write_bytes_aux): Likewise. All callers
8201 (remote_write_bytes, remote_read_bytes): Likewise. All
8203 (remote_flash_erase): Likewise. All callers updated.
8204 (remote_write_qxfer): Likewise. All callers updated.
8205 (remote_read_qxfer): Likewise. All callers updated.
8206 (remote_xfer_partial): Likewise.
8207 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8208 (rs6000_xfer_shared_libraries): Likewise.
8209 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8210 (sol_thread_xfer_partial): Likewise.
8211 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8212 (sparc_xfer_partial): Likewise.
8213 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8215 (spu_xfer_partial): Likewise.
8216 * spu-multiarch.c (spu_xfer_partial): Likewise.
8217 * tracepoint.c (tfile_xfer_partial): Likewise.
8218 * windows-nat.c (windows_xfer_memory): Likewise.
8219 (windows_xfer_shared_libraries): Likewise.
8220 (windows_xfer_partial): Likewise.
8221 * valprint.c: Replace 'target_xfer_error' with
8222 'target_xfer_status' in comments.
8224 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8226 Checked in by Joel Brobecker <brobecker@adacore.com>.
8227 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8229 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8231 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8232 function parameters.
8234 2014-02-10 Will Newton <will.newton@linaro.org>
8236 * elfread.c (elf_rel_plt_read): Look for a .got section if
8237 looking up .got.plt fails.
8238 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8239 on address passed to elf_gnu_ifunc_record_cache.
8240 (elf_gnu_ifunc_resolve_addr): Likewise.
8241 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8243 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8245 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8246 (X_RETTURN): New macro.
8247 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8249 * sparc64-tdep.c (sparc64_init_abi): Hook
8250 sparc_in_function_epilogue_p.
8252 2014-02-10 Gary Benson <gbenson@redhat.com>
8254 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8255 Rename name_matcher to symbol_matcher.
8257 2014-02-10 Gary Benson <gbenson@redhat.com>
8259 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8260 Use expand_symtabs_file_matcher_ftype and
8261 expand_symtabs_symbol_matcher_ftype.
8263 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8265 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8266 (struct ada_symbol_cache): New.
8267 (ada_free_symbol_cache): Forward declare.
8268 (struct ada_pspace_data): New.
8269 (ada_pspace_data_handle): New static global.
8270 (get_ada_pspace_data, ada_pspace_data_cleanup)
8271 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8272 (cache_space, cache): Delete, now folded inside struct
8274 (ada_get_symbol_cache): New function.
8275 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8277 (_initialize_ada_language): Remove initialization of cache_space.
8278 Move call to observer_attach_inferior_exit up, grouping it
8279 with the other observer registrations inside this function.
8280 Rename command to be more general. Add call to
8281 register_program_space_data_with_cleanup.
8283 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8285 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8286 ada_new_objfile_observer.
8287 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8288 (_initialize_tasks): Update uses of ada_new_objfile_observer
8289 and ada_tasks_normal_stop_observer.
8291 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8293 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8294 returned by the 'Length attribute to integer.
8296 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8298 * ada-lang.c (_initialize_ada_language): Initialize
8299 cache_space obstack.
8301 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8303 * ada-lang.c (HASH_SIZE): New macro.
8304 (struct cache_entry): New type.
8305 (cache_space, cache): New static globals.
8306 (ada_clear_symbol_cache, find_entry): New functions.
8307 (lookup_cached_symbol, cache_symbol): Implement.
8308 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8309 (_initialize_ada_language): Attach ada_new_objfile_observer
8310 and ada_free_objfile_observer.
8312 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8314 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8315 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8316 struct block * parameter.
8317 (ada_lookup_symbol_list_worker): Constify local variable "block".
8318 Remove cast which is no longer necessary.
8320 2014-02-10 Doug Evans <xdje42@gmail.com>
8322 Add Guile as an extension language.
8323 * NEWS: Mention Guile scripting.
8324 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8325 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8326 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8327 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8328 (CLIBS): Add GUILE_LIBS.
8329 (install-guile): New rule.
8330 (guile.o): New rule.
8331 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8332 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8333 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8334 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8335 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8336 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8337 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8338 * configure.ac: New option --with-guile.
8339 * configure: Regenerate.
8340 * config.in: Regenerate.
8341 * auto-load.c: Remove #include "python/python.h". Add #include
8342 "gdb/section-scripts.h".
8343 (source_section_scripts): Handle Guile scripts.
8344 (_initialize_auto_load): Add name of Guile objfile script to
8345 scripts-directory help text.
8346 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8347 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8348 (struct breakpoint): New member scm_bp_object.
8349 * defs.h (enum command_control_type): New value guile_control.
8350 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8352 (show_user): Update comment.
8353 (_initialize_cli_cmds): Update help text for "show user". Update help
8354 text for max-user-call-depth.
8355 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8357 (multi_line_command_p): Add guile_control.
8358 (print_command_lines): Handle guile_control.
8359 (execute_control_command, recurse_read_control_structure): Ditto.
8360 (process_next_line): Recognize "guile" commands.
8361 * disasm.c (gdb_disassemble_info): Make non-static.
8362 * disasm.h: #include "dis-asm.h".
8363 (struct gdbarch): Add forward decl.
8364 (gdb_disassemble_info): Declare.
8365 * extension.c: #include "guile/guile.h".
8366 (extension_languages): Add guile.
8367 (get_ext_lang_defn): Handle EXT_LANG_GDB.
8368 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
8369 * gdbtypes.c (get_unsigned_type_max): New function.
8370 (get_signed_type_minmax): New function.
8371 * gdbtypes.h (get_unsigned_type_max): Declare.
8372 (get_signed_type_minmax): Declare.
8373 * guile/README: New file.
8374 * guile/guile-internal.h: New file.
8375 * guile/guile.c: New file.
8376 * guile/guile.h: New file.
8377 * guile/scm-arch.c: New file.
8378 * guile/scm-auto-load.c: New file.
8379 * guile/scm-block.c: New file.
8380 * guile/scm-breakpoint.c: New file.
8381 * guile/scm-disasm.c: New file.
8382 * guile/scm-exception.c: New file.
8383 * guile/scm-frame.c: New file.
8384 * guile/scm-gsmob.c: New file.
8385 * guile/scm-iterator.c: New file.
8386 * guile/scm-lazy-string.c: New file.
8387 * guile/scm-math.c: New file.
8388 * guile/scm-objfile.c: New file.
8389 * guile/scm-ports.c: New file.
8390 * guile/scm-pretty-print.c: New file.
8391 * guile/scm-safe-call.c: New file.
8392 * guile/scm-string.c: New file.
8393 * guile/scm-symbol.c: New file.
8394 * guile/scm-symtab.c: New file.
8395 * guile/scm-type.c: New file.
8396 * guile/scm-utils.c: New file.
8397 * guile/scm-value.c: New file.
8398 * guile/lib/gdb.scm: New file.
8399 * guile/lib/gdb/boot.scm: New file.
8400 * guile/lib/gdb/experimental.scm: New file.
8401 * guile/lib/gdb/init.scm: New file.
8402 * guile/lib/gdb/iterator.scm: New file.
8403 * guile/lib/gdb/printing.scm: New file.
8404 * guile/lib/gdb/types.scm: New file.
8405 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
8406 (VPATH): Add $(GUILE_SRCDIR).
8407 (GUILE_DIR): New variable.
8408 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
8409 (all): Add stamp-guile dependency.
8410 (stamp-guile): New rule.
8411 (clean-guile, install-guile, uninstall-guile): New rules.
8412 (install-only): Add install-guile dependency.
8413 (uninstall): Add uninstall-guile dependency.
8414 (clean): Add clean-guile dependency.
8416 2014-02-09 Doug Evans <xdje42@gmail.com>
8418 Revert this patch (which I approved, mea culpa).
8420 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8422 * Makefile.in (all-lib): Remove.
8423 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8425 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8427 Fix Python stack corruption.
8428 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
8431 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8433 * Makefile.in (all-lib): Remove.
8434 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8436 2014-02-07 Doug Evans <dje@google.com>
8438 * extension-priv.h (extension_language_script_ops): Add comment.
8439 (extension_language_ops): Add comment.
8440 (active_ext_lang_state): Fix typo in comment.
8442 2014-02-07 Pedro Alves <palves@redhat.com>
8444 PR breakpoints/16292
8445 * infrun.c (handle_signal_stop) <signal arrives while stepping
8446 over a breakpoint>: Switch back to the stepping thread.
8448 2014-02-07 Yao Qi <yao@codesourcery.com>
8450 * target.c (target_xfer_partial): Return zero if LEN is zero.
8452 2014-02-07 Yao Qi <yao@codesourcery.com>
8454 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
8455 (ld_so_xfer_auxv): Likewise.
8456 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8457 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8458 * corelow.c (core_xfer_partial): Likewise.
8459 * ctf.c (ctf_xfer_partial): Likewise.
8460 * darwin-nat.c (darwin_read_dyld_info): Likewise.
8461 (darwin_xfer_partial): Likewise.
8462 * exec.c (exec_xfer_partial): Likewise.
8463 * gnu-nat.c (gnu_xfer_partial): Likewise.
8464 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
8465 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8466 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8467 * linux-nat.c (linux_xfer_siginfo): Likewise.
8468 (linux_proc_xfer_spu): Likewise.
8469 * procfs.c (procfs_xfer_partial): Likewise.
8470 * record-full.c (record_full_xfer_partial): Likewise.
8471 (record_full_core_xfer_partial): Likewise.
8472 * remote-sim.c (gdbsim_xfer_partial): Likewise.
8473 * remote.c (remote_write_qxfer): Likewise.
8474 (remote_write_qxfer, remote_read_qxfer): Likewise.
8475 (remote_xfer_partial): Likewise.
8476 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8477 (rs6000_xfer_shared_libraries): Likewise.
8478 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8479 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8480 (spu_xfer_partial): Likewise.
8481 * target.c (memory_xfer_partial_1): Likewise.
8482 * tracepoint.c (tfile_xfer_partial): Likewise.
8483 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
8484 (windows_xfer_partial): Likewise.
8486 2014-02-07 Yao Qi <yao@codesourcery.com>
8488 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
8490 (core_xfer_shared_libraries_aix): Likewise.
8491 * gdbarch.c, gdbarch.h: Regenerated.
8492 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
8493 ULONGEST. Change 'len_avail' type to ULONGEST.
8494 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8495 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8497 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
8499 2014-02-07 Yao Qi <yao@codesourcery.com>
8501 * corefile.c (memory_error): Get 'exception' from ERR and pass
8502 'exception' to throw_error.
8504 2014-02-06 Doug Evans <xdje42@gmail.com>
8506 * configure.ac (libpython checking): Remove all but python.o from
8507 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
8508 * configure: Regenerate.
8510 * Makefile.in (SFILES): Add extension.c.
8511 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
8512 (COMMON_OBS): Add extension.o.
8513 * extension.h: New file.
8514 * extension-priv.h: New file.
8515 * extension.c: New file.
8517 * python/python-internal.h: #include "extension.h".
8518 (gdbpy_auto_load_enabled): Declare.
8519 (gdbpy_apply_val_pretty_printer): Declare.
8520 (gdbpy_apply_frame_filter): Declare.
8521 (gdbpy_preserve_values): Declare.
8522 (gdbpy_breakpoint_cond_says_stop): Declare.
8523 (gdbpy_breakpoint_has_cond): Declare.
8524 (void source_python_script_for_objfile): Delete.
8525 * python/python.c: #include "extension-priv.h".
8526 Delete inclusion of "observer.h".
8527 (extension_language_python): Moved here and renamed from
8528 script_language_python in py-auto-load.c.
8529 Redefined to be of type extension_language_defn.
8530 (python_extension_script_ops): New global.
8531 (python_extension_ops): New global.
8532 (struct python_env): New member previous_active.
8533 (restore_python_env): Call restore_active_ext_lang.
8534 (ensure_python_env): Call set_active_ext_lang.
8535 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
8537 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
8539 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
8541 (gdbpy_eval_from_control_command): Renamed from
8542 eval_python_from_control_command, made static. New arg extlang.
8543 (gdbpy_source_script) Renamed from source_python_script, made static.
8545 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
8546 result to int. New arg extlang.
8547 (gdbpy_source_objfile_script): Renamed from
8548 source_python_script_for_objfile, made static. New arg extlang.
8549 (gdbpy_start_type_printers): Renamed from start_type_printers, made
8550 static. New args extlang, extlang_printers. Change result type to
8552 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
8553 static. New arg extlang. Rename arg printers to extlang_printers
8554 and change type to ext_lang_type_printers *.
8555 (gdbpy_free_type_printers): Renamed from free_type_printers, made
8556 static. Replace argument arg with extlang, extlang_printers.
8557 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
8558 (!HAVE_PYTHON, source_python_script): Delete.
8559 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
8560 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
8561 (!HAVE_PYTHON, start_type_printers): Delete.
8562 (!HAVE_PYTHON, apply_type_printers): Delete.
8563 (!HAVE_PYTHON, free_type_printers): Delete.
8564 (_initialize_python): Delete call to observer_attach_before_prompt.
8565 (finalize_python): Set/restore active extension language.
8566 (gdbpy_finish_initialization) Renamed from
8567 finish_python_initialization, made static. New arg extlang.
8568 (gdbpy_initialized): New function.
8569 * python/python.h: #include "extension.h". Delete #include
8570 "value.h", "mi/mi-cmds.h".
8571 (extension_language_python): Declare.
8572 (GDBPY_AUTO_FILE_NAME): Delete.
8573 (enum py_bt_status): Moved to extension.h and renamed to
8575 (enum frame_filter_flags): Moved to extension.h.
8576 (enum py_frame_args): Moved to extension.h and renamed to
8577 ext_lang_frame_args.
8578 (finish_python_initialization): Delete.
8579 (eval_python_from_control_command): Delete.
8580 (source_python_script): Delete.
8581 (apply_val_pretty_printer): Delete.
8582 (apply_frame_filter): Delete.
8583 (preserve_python_values): Delete.
8584 (gdbpy_script_language_defn): Delete.
8585 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
8586 (start_type_printers, apply_type_printers, free_type_printers): Delete.
8588 * auto-load.c: #include "extension.h".
8589 (GDB_AUTO_FILE_NAME): Delete.
8590 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
8591 (script_language_gdb): Delete, moved to extension.c and renamed to
8592 extension_language_gdb.
8593 (source_gdb_script_for_objfile): Delete.
8594 (auto_load_pspace_info): New member unsupported_script_warning_printed.
8595 (loaded_script): Change type of language member to
8596 struct extension_language_defn *.
8597 (init_loaded_scripts_info): Initialize
8598 unsupported_script_warning_printed.
8599 (maybe_add_script): Make static. Change type of language arg to
8600 struct extension_language_defn *.
8601 (clear_section_scripts): Reset unsupported_script_warning_printed.
8602 (auto_load_objfile_script_1): Rewrite to use extension language API.
8603 (auto_load_objfile_script): Make public. Remove support-compiled-in
8604 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
8605 (source_section_scripts): Rewrite to use extension language API.
8606 (load_auto_scripts_for_objfile): Rewrite to use
8607 auto_load_scripts_for_objfile.
8608 (collect_matching_scripts_data): Change type of language member to
8609 struct extension_language_defn *.
8610 (auto_load_info_scripts): Change type of language arg to
8611 struct extension_language_defn *.
8612 (unsupported_script_warning_print): New function.
8613 (script_not_found_warning_print): Make static.
8614 (_initialize_auto_load): Rewrite construction of scripts-directory
8616 * auto-load.h (struct objfile): Add forward decl.
8617 (struct script_language): Delete.
8618 (struct auto_load_pspace_info): Add forward decl.
8619 (struct extension_language_defn): Add forward decl.
8620 (maybe_add_script): Delete.
8621 (auto_load_objfile_script): Declare.
8622 (script_not_found_warning_print): Delete.
8623 (auto_load_info_scripts): Update prototype.
8624 (auto_load_gdb_scripts_enabled): Declare.
8625 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
8626 auto_load_python_scripts_enabled and made public.
8627 (script_language_python): Delete, moved to python.c.
8628 (gdbpy_script_language_defn): Delete.
8629 (info_auto_load_python_scripts): Update to use
8630 extension_language_python.
8632 * breakpoint.c (condition_command): Replace call to
8633 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
8634 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
8635 with call to breakpoint_ext_lang_cond_says_stop.
8636 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
8637 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
8638 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
8639 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
8641 (local_setattro): Print name of extension language with existing
8644 * valprint.c (val_print, value_print): Update to call
8645 apply_ext_lang_val_pretty_printer.
8646 * cp-valprint.c (cp_print_value): Update call to
8647 apply_ext_lang_val_pretty_printer.
8648 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
8649 (gdbpy_apply_val_pretty_printer): Renamed from
8650 apply_val_pretty_printer. New arg extlang.
8651 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
8653 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
8654 extension language API.
8655 * cli/cli-script.c (execute_control_command): Update to call
8656 eval_ext_lang_from_control_command.
8658 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
8659 enum ext_lang_bt_status values. Update call to
8660 apply_ext_lang_frame_filter.
8661 (mi_cmd_stack_list_locals): Ditto.
8662 (mi_cmd_stack_list_args): Ditto.
8663 (mi_cmd_stack_list_variables): Ditto.
8664 * mi/mi-main.c: Delete #include "python/python-internal.h".
8665 Add #include "extension.h".
8666 (mi_cmd_list_features): Replace reference to python internal variable
8667 gdb_python_initialized with call to ext_lang_initialized_p.
8669 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
8670 Update to use enum ext_lang_frame_args. Update to call
8671 apply_ext_lang_frame_filter.
8672 * python/py-framefilter.c (extract_sym): Update to use enum
8674 (extract_value, py_print_type, py_print_value): Ditto.
8675 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
8676 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
8677 (py_print_frame): Ditto.
8678 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
8679 New arg extlang. Update to use enum ext_lang_bt_status.
8681 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
8682 finish_python_initialization. Replace with call to
8683 finish_ext_lang_initialization.
8685 * typeprint.c (do_free_global_table): Update to call
8686 free_ext_lang_type_printers.
8687 (create_global_typedef_table): Update to call
8688 start_ext_lang_type_printers.
8689 (find_global_typedef): Update to call apply_ext_lang_type_printers.
8690 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
8691 (type_print_options): Change type of global_printers from "void *"
8692 to "struct ext_lang_type_printers *".
8694 * value.c (preserve_values): Update to call preserve_ext_lang_values.
8695 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
8696 (gdbpy_preserve_values): Renamed from preserve_python_values.
8698 (!HAVE_PYTHON, preserve_python_values): Delete.
8700 * utils.c (quit_flag): Delete, moved to extension.c.
8701 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
8704 * eval.c: Delete #include "python/python.h".
8705 * main.c: Delete #include "python/python.h".
8707 * defs.h: Update comment.
8709 2014-02-06 Joel Brobecker <brobecker@adacore.com>
8713 2014-02-05 Mark Kettenis <kettenis@gnu.org>
8715 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
8718 2014-02-05 Yao Qi <yao@codesourcery.com>
8720 * remote.c (remote_pass_signals): Remove local 'buf' and use
8722 (remote_program_signals): Likewise.
8724 2014-02-05 Yao Qi <yao@codesourcery.com>
8726 * ctf.c: Include "inferior.h" and "gdbthread.h".
8727 (CTF_PID): A new macro.
8728 (ctf_open): Call inferior_appeared and add_thread_silent.
8729 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
8730 (ctf_thread_alive): New function.
8731 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
8733 2014-02-05 Yao Qi <yao@codesourcery.com>
8737 2013-05-24 Yao Qi <yao@codesourcery.com>
8739 * tracepoint.c (TFILE_PID): Remove.
8740 (tfile_open): Don't add thread and inferior.
8741 (tfile_close): Don't set 'inferior_ptid'. Don't call
8742 exit_inferior_silent.
8743 (tfile_thread_alive): Remove.
8744 (init_tfile_ops): Don't set field 'to_thread_alive' of
8747 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
8749 * remote.c (remote_start_remote): Call remote_check_symbols even
8750 if only symbol-file (not file) has been given.
8752 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8754 * gdbarch.sh (skip_entrypoint): New callback.
8755 * gdbarch.c, gdbarch.h: Regenerate.
8756 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
8757 * infrun.c (fill_in_stop_func): Likewise.
8758 * ppc-linux-tdep.c: Include "elf/ppc64.h".
8759 (ppc_elfv2_elf_make_msymbol_special): New function.
8760 (ppc_elfv2_skip_entrypoint): Likewise.
8761 (ppc_linux_init_abi): Install them for ELFv2.
8763 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8765 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
8766 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
8767 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
8768 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
8769 structures returned in GPRs.
8771 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8773 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
8774 offset to the stack parameter list for the ELFv2 ABI.
8776 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8778 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
8779 set_gdbarch_convert_from_func_ptr_addr and
8780 set_gdbarch_elf_make_msymbol_special for ELFv1.
8781 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
8782 function descriptors on ELFv1.
8783 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
8784 set up r12 at function entry.
8786 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8788 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
8789 (struct gdbarch_tdep): New member elf_abi.
8791 * rs6000-tdep.c: Include "elf/ppc64.h".
8792 (rs6000_gdbarch_init): Detect ELF ABI version.
8794 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8796 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
8797 within a register pair holding a DFP 128-bit value on little-endian.
8798 (ppc64_sysv_abi_return_value_base): Likewise.
8799 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
8800 (dfp_pseudo_register_write): Likewise.
8802 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8804 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
8805 offset on little-endian when passing _Decimal32.
8806 (ppc64_sysv_abi_return_value_base): Likewise for return values.
8808 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8810 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
8811 of the overlapped FP register within the VSX register on little-
8813 (efpr_pseudo_register_write): Likewise.
8815 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8817 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
8818 offset on little-endian when passing small structures.
8820 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8822 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
8823 (struct ppc64_sysv_argpos): New data structure.
8824 (ppc64_sysv_abi_push_float): Remove.
8825 (ppc64_sysv_abi_push_val): New function.
8826 (ppc64_sysv_abi_push_integer): Likewise.
8827 (ppc64_sysv_abi_push_freg): Likewise.
8828 (ppc64_sysv_abi_push_vreg): Likewise.
8829 (ppc64_sysv_abi_push_param): Likewise.
8830 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
8831 (ppc64_sysv_abi_return_value_base): New function.
8832 (ppc64_sysv_abi_return_value): Refactor to use it.
8834 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8836 * NEWS: Document new target powerpc64le-*-linux*.
8838 2014-02-04 Mark Kettenis <kettenis@gnu.org>
8840 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
8841 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
8843 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
8844 register set used in ELF core dumps. Add floating-point register set.
8846 2014-02-03 Kevin Buettner <kevinb@redhat.com>
8848 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
8849 dwarf2_to_gdb[] table using symbolic constants. Adjust
8850 penultimate entry from number representing the PC register
8851 to symbolic constant representing the MDR register. Add
8852 constant for the PC register to the end of the table.
8854 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8856 * bsd-kvm.c: Include <sys/param.h>
8858 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8860 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
8862 2014-01-31 Joel Brobecker <brobecker@adacore.com>
8864 * ada-lang.h (clear_ada_sym_cache): Delete.
8866 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
8868 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
8870 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
8872 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
8873 the sigreturn register save area only if the syscall is
8876 2014-01-29 Joel Brobecker <brobecker@adacore.com>
8878 * valops.c (value_slice): Minor reformatting.
8880 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
8882 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
8884 2014-01-28 Joel Brobecker <brobecker@adacore.com>
8886 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
8888 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
8889 (ada_ignore_descriptive_types_p): New static global.
8890 (find_parallel_type_by_descriptive_type): Return immediately
8891 if ada_ignore_descriptive_types_p is set.
8892 (_initialize_ada_language): Register new commands "maintenance
8893 set ada", "maintenance show ada", "maintenance set ada
8894 ignore-descriptive-types" and "maintenance show ada
8895 ignore-descriptive-types".
8896 * NEWS: Add entry for new "maint ada set/show
8897 ignore-descriptive-types" commands.
8899 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
8901 * record-btrace.c (record_btrace_close): Call btrace_teardown
8904 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8906 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
8909 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8911 * ada-typeprint (type_is_full_subrange_of_target_type):
8913 (print_range): Add parameter bounds_prefered_p. If not set,
8914 try printing range types using the name of their base type.
8915 (print_range_type): Add parameter bounds_prefered_p.
8916 Use it in call to print_range.
8917 (print_array_type, ada_print_type): Update calls to print_range
8918 and print_range_type.
8920 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8922 * ada-typeprint.c (print_array_type, print_choices, print_range)
8923 (print_range_bound, print_dynamic_range_bound, print_range_type):
8926 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8928 * ada-typeprint.c (print_range): Add missing empty line
8929 after local declaration.
8931 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8933 * ada-valprint.c (print_optional_low_bound): Get index_type's
8934 target type for as long as it is a TYPE_CODE_RANGE.
8936 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8938 * procfs.c (procfs_make_note_section): Remove assertion and
8941 2014-01-24 Yao Qi <yao@codesourcery.com>
8943 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
8944 * corelow.c (get_core_siginfo): Likewise.
8946 2014-01-24 Yao Qi <yao@codesourcery.com>
8948 * remote.c (remote_write_bytes_aux): Change type of 'len' to
8949 ULONGEST. Don't check 'len' is negative.
8950 (remote_write_bytes): Change type of 'len' to ULONGEST.
8952 2014-01-23 Tom Tromey <tromey@redhat.com>
8955 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
8956 Handle exception from frame.block.
8957 (FrameVars.fetch_frame_locals): Likewise.
8959 2014-01-23 Tom Tromey <tromey@redhat.com>
8962 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
8963 on a NULL pointer. Move "goto error" to correct place.
8965 2014-01-23 Tom Tromey <tromey@redhat.com>
8968 * python/py-framefilter.c (apply_frame_filter): Call
8969 ensure_python_env after computing gdbarch.
8971 2014-01-23 Yao Qi <yao@codesourcery.com>
8973 * target.c (raw_memory_xfer_partial): Change argument type
8974 from void * to gdb_byte *.
8975 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
8977 2014-01-22 Doug Evans <dje@google.com>
8979 New gdbserver option --debug-format=timestamp.
8982 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
8984 * syscalls/s390x-linux.xml: New file.
8985 * syscalls/s390-linux.xml: New file.
8986 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
8987 (XML_SYSCALL_FILENAME_S390X): Likewise.
8988 (op_svc): New enum value for SVC opcode.
8989 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
8990 (s390_linux_get_syscall_number): New function.
8991 (s390_gdbarch_init): Register '*get_syscall_number' and the
8992 syscall xml file name.
8993 * data-directory/Makefile.in (SYSCALLS_FILES): Add
8994 "s390-linux.xml" and "s390x-linux.xml".
8995 * NEWS: Announce new feature.
8997 2014-01-22 Baruch Siach <baruch@tkos.co.il>
8999 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9001 2014-01-22 Pedro Alves <palves@redhat.com>
9003 * xtensa-config.c: Include defs.h.
9005 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9007 * common/common-utils.h: Add "ARI:" comment beside __func__
9010 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9012 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9013 documentation a bit.
9015 2014-01-21 Roland McGrath <mcgrathr@google.com>
9017 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9018 * configure: Regenerate.
9019 * aclocal.m4: Regenerate.
9020 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9021 New substituted variables.
9022 (install-strip): New target.
9023 (INSTALL_SCRIPT): New substituted variable.
9024 (FLAGS_TO_PASS): Add it.
9025 (install-only): Use $(INSTALL_SCRIPT) rather than
9026 $(INSTALL_PROGRAM) for gcore.
9028 2014-01-20 Tom Tromey <tromey@redhat.com>
9030 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9033 2014-01-20 Tom Tromey <tromey@redhat.com>
9035 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9036 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9037 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9038 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9039 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9040 (struct cmd_list_element) <flags>: Remove.
9041 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9042 doc_allocated>: New fields.
9043 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9045 * maint.c (maintenance_do_deprecate): Update.
9046 * top.c (execute_command): Update.
9048 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9050 * xtensa-linux-nat.c: Include asm/ptrace.h.
9052 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9054 * Makefile.in (SFILES): Add d-support.c.
9055 (COMMON_OBS): Add d-support.o.
9056 * d-lang.h (d_parse_symbol): Add comment, now defined in
9058 * d-lang.c (parse_call_convention)
9059 (parse_attributes, parse_function_types)
9060 (parse_function_args, parse_type, parse_identifier)
9061 (call_convention_p, d_parse_symbol): Move functions to ...
9062 * d-support.c: ... New file.
9064 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9066 * d-lang.h (d_parse_symbol): Add declaration.
9067 * d-lang.c (extract_identifiers)
9068 (extract_type_info): Remove functions.
9069 (parse_call_convention, parse_attributes)
9070 (parse_function_types, parse_function_args)
9071 (parse_type, parse_identifier, call_convention_p)
9072 (d_parse_symbol): New functions.
9073 (d_demangle): Use d_parse_symbol to demangle D symbols.
9075 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9077 * d-lang.h (struct builtin_d_type): New data type.
9078 (builtin_d_type): Add declaration.
9079 * d-lang.c (d_language_arch_info, build_d_types)
9080 (builtin_d_type): New functions.
9081 (enum d_primitive_types): New data type.
9082 (d_language_defn): Change c_language_arch_info to
9083 d_language_arch_info.
9084 (d_type_data): New static variable.
9085 (_initialize_d_language): Initialize d_type_data.
9087 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9089 * d-lang.h (d_main_name): Add declaration.
9090 * d-lang.c (d_main_name): New function.
9091 * symtab.c (find_main_name): Add call to d_main_name.
9093 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9095 * d-lang.c (d_language_defn): Change macro_expansion_c to
9098 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9100 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9102 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9104 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9105 gdb_exception" declaration.
9106 * remote.c (getpkt_or_notif_sane): Likewise.
9108 2014-01-17 Doug Evans <dje@google.com>
9110 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9111 function, contents of dirnames_to_char_ptr_vec_append moved here.
9112 (delim_string_to_char_ptr_vec): New function.
9113 (dirnames_to_char_ptr_vec_append): Rewrite.
9114 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9116 2014-01-17 Doug Evans <dje@google.com>
9118 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9120 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9121 #include "common-utils.h".
9122 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9123 * common/vec.h (VEC_ASSERT_PASS): Update.
9124 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9125 (MACH_CHECK_ERROR): Update.
9127 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9129 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9131 * gdbarch.h: Regenerate.
9133 2014-01-16 Tom Tromey <tromey@redhat.com>
9135 * value.c (struct value) <regnum>: Move earlier.
9137 2014-01-16 Tom Tromey <tromey@redhat.com>
9139 * remote.c (extended_remote_create_inferior): Rename from
9140 extended_remote_create_inferior_1. Add "ops" argument. Remove
9143 2014-01-16 Pedro Alves <palves@redhat.com>
9145 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9146 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9149 2014-01-16 Doug Evans <dje@google.com>
9151 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9153 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9155 * btrace.h (btrace_thread_flag): New.
9156 (struct btrace_thread_info) <flags>: New.
9157 * record-btrace.c (record_btrace_resume_thread)
9158 (record_btrace_find_thread_to_move, btrace_step_no_history)
9159 (btrace_step_stopped, record_btrace_start_replaying)
9160 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9161 (record_btrace_find_resume_thread): New.
9162 (record_btrace_resume, record_btrace_wait): Extend.
9163 (record_btrace_can_execute_reverse): New.
9164 (record_btrace_open): Fail in non-stop mode.
9165 (record_btrace_set_replay): Split into this, ...
9166 (record_btrace_stop_replaying): ... this, ...
9167 (record_btrace_clear_histories): ... and this.
9168 (init_record_btrace_ops): Init to_can_execute_reverse.
9169 * NEWS: Announce it.
9171 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9173 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9174 (forward_target_decr_pc_after_break)
9175 (target_decr_pc_after_break): New.
9176 * target.c (forward_target_decr_pc_after_break)
9177 (target_decr_pc_after_break): New.
9178 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9179 instead of gdbarch_decr_pc_after_break.
9180 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9181 instead of gdbarch_decr_pc_after_break.
9182 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9183 instead of gdbarch_decr_pc_after_break.
9184 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9185 instead of gdbarch_decr_pc_after_break.
9186 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9187 instead of gdbarch_decr_pc_after_break.
9188 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9189 instead of gdbarch_decr_pc_after_break.
9191 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9193 * btrace.c: Include regcache.h.
9194 (btrace_add_pc): New.
9195 (btrace_enable): Call btrace_add_pc.
9196 (btrace_is_empty): New.
9197 * btrace.h (btrace_is_empty): New.
9198 * record-btrace.c (require_btrace, record_btrace_info): Call
9201 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9203 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9204 Support delta reads.
9205 (linux_disable_btrace): Change return type.
9206 * common/linux-btrace.h (linux_read_btrace): Change parameters
9207 and return type to allow error reporting. Update users.
9208 (linux_disable_btrace): Change return type. Update users.
9209 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9211 (btrace_error): New.
9212 (btrace_block) <begin>: Comment on BEGIN == 0.
9213 * btrace.c (btrace_compute_ftrace): Start from the end of
9215 (btrace_stitch_trace, btrace_clear_history): New.
9216 (btrace_fetch): Read delta trace, return if replaying.
9217 (btrace_clear): Move clear history code to btrace_clear_history.
9218 (parse_xml_btrace): Throw an error if parsing failed.
9219 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9220 and return type to allow error reporting.
9221 (target_read_btrace): Change parameters and return type to allow
9223 * target.c (target_read_btrace): Update.
9224 * remote.c (remote_read_btrace): Support delta reads. Pass
9226 * NEWS: Announce it.
9228 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9230 * record.h (record_btrace_frame_unwind)
9231 (record_btrace_tailcall_frame_unwind): New declarations.
9232 * dwarf2-frame: Include record.h
9233 (dwarf2_frame_cfa): Throw an error for btrace frames.
9234 * record-btrace.c: Include hashtab.h.
9235 (btrace_get_bfun_name): New.
9236 (btrace_call_history): Call btrace_get_bfun_name.
9237 (struct btrace_frame_cache): New.
9239 (bfcache_hash, bfcache_eq, bfcache_new): New.
9240 (btrace_get_frame_function): New.
9241 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9242 (record_btrace_frame_this_id): Compute own id.
9243 (record_btrace_frame_prev_register): Provide PC, throw_error
9244 for all other registers.
9245 (record_btrace_frame_sniffer): Detect btrace frames.
9246 (record_btrace_tailcall_frame_sniffer): New.
9247 (record_btrace_frame_dealloc_cache): New.
9248 (record_btrace_frame_unwind): Add new functions.
9249 (record_btrace_tailcall_frame_unwind): New.
9250 (_initialize_record_btrace): Allocate cache.
9251 * btrace.c (btrace_clear): Call reinit_frame_cache.
9252 * NEWS: Announce it.
9254 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9256 * record-btrace.c (record_btrace_set_replay)
9257 (record_btrace_goto_begin, record_btrace_goto_end)
9258 (record_btrace_goto): New.
9259 (init_record_btrace_ops): Initialize them.
9260 * NEWS: Announce it.
9262 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9264 * record-btrace.c (record_btrace_find_new_threads)
9265 (record_btrace_thread_alive): New.
9266 (init_record_btrace_ops): Initialize to_find_new_threads and
9269 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9271 * record-btrace.c (record_btrace_resume): New.
9272 (record_btrace_wait): New.
9273 (init_record_btrace_ops): Initialize to_wait and to_resume.
9275 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9277 * record-btrace.c (record_btrace_xfer_partial)
9278 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9279 (record_btrace_allow_memory_access): New.
9280 (init_record_btrace_ops): Initialize new methods.
9281 * target.c (raw_memory_xfer_partial): Bail out if target reports
9282 that this memory is not available.
9284 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9286 * target.h (target_ops) <to_insert_breakpoint>
9287 <to_remove_breakpoint>: Add target_ops parameter.
9288 (forward_target_insert_breakpoint): New.
9289 (forward_target_remove_breakpoint): New.
9290 (memory_remove_breakpoint, memory_insert_breakpoint):
9291 Add target_ops parameter.
9292 * target.c (target_insert_breakpoint): Split into this and ...
9293 (forward_target_insert_breakpoint): ... this.
9294 (target_remove_breakpoint): Split into this and ...
9295 (forward_target_remove_breakpoint): ... this.
9296 (debug_to_insert_breakpoint): Add target_ops parameter.
9297 Call forward_target_insert_breakpoint.
9298 (debug_to_remove_breakpoint): Add target_ops parameter.
9299 Call forward_target_remove_breakpoint.
9300 (update_current_target): Do not inherit or default to_insert_breakpoint
9301 and to_remove_breakpoint.
9302 * corelow.c (ignore): Add target_ops parameter.
9303 * exec.c (ignore): Add target_ops parameter.
9304 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9305 Add target_ops parameter.
9306 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9307 Add target_ops parameter.
9308 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9309 Add target_ops parameter.
9310 * record-full.c (record_full_beneath_to_insert_breakpoint)
9311 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9312 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9313 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9314 (record_full_core_remove_breakpoint): Add target_ops parameter.
9316 (record_full_beneath_to_insert_breakpoint_ops)
9317 (record_full_beneath_to_remove_breakpoint_ops)
9318 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9319 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9320 tmp_to_remove_breakpoint_ops,
9321 record_full_beneath_to_insert_breakpoint_ops, and
9322 record_full_beneath_to_remove_breakpoint_ops.
9323 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9324 (m32r_remove_breakpoint): Add target_ops parameter.
9325 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9326 Add target_ops parameter.
9327 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9328 Add target_ops parameter.
9330 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9331 Markus Metzger <markus.t.metzger@intel.com>
9333 * record-btrace.c: Include frame-unwind.h.
9334 (record_btrace_frame_unwind_stop_reason)
9335 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9336 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9338 (init_record_btrace_ops): Install it.
9340 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9342 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9345 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9347 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9350 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9352 * frame-unwind.c: Include target.h.
9353 (frame_unwind_try_unwinder): New function with code from ...
9354 (frame_unwind_find_by_frame): ... here. New variable
9355 unwinder_from_target, call also target_get_unwinder)
9356 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9357 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9358 * target.h (struct target_ops): New fields to_get_unwinder and
9359 to_get_tailcall_unwinder.
9360 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9362 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9364 * record-btrace.c (record_btrace_fetch_registers)
9365 (record_btrace_store_registers)
9366 (record_btrace_to_prepare_to_store): New.
9367 (init_record_btrace_ops): Add the above.
9369 2014-01-16 Tom Tromey <tromey@redhat.com>
9371 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
9372 * target.h (struct target_ops) <to_prepare_to_store>: Add
9374 (target_prepare_to_store): Add argument.
9375 * target.c (debug_to_prepare_to_store): Add argument.
9376 (update_current_target): Update.
9377 * remote.c (remote_prepare_to_store): Add 'self' argument.
9378 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
9379 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
9380 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
9381 * record-full.c (record_full_core_prepare_to_store): Add 'self'
9383 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
9384 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
9385 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
9386 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
9387 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
9389 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9391 * btrace.h (replay) <replay>: New.
9392 (btrace_is_replaying): New.
9393 * btrace.c (btrace_clear): Free replay iterator.
9394 (btrace_is_replaying): New.
9395 * record-btrace.c (record_btrace_is_replaying): New.
9396 (record_btrace_info): Print insn number if replaying.
9397 (record_btrace_insn_history): Start at replay position.
9398 (record_btrace_call_history): Start at replay position.
9399 (init_record_btrace_ops): Init to_record_is_replaying.
9401 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9403 * record-btrace.c (record_btrace_insn_history_range): Include
9405 (record_btrace_insn_history_from): Adjust range.
9406 (record_btrace_call_history_range): Include
9408 (record_btrace_call_history_from): Adjust range.
9409 * NEWS: Announce changes.
9411 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9413 * record.h (enum record_print_flag)
9414 <record_print_indent_calls>: New.
9415 * record.c (get_call_history_modifiers): Recognize /c modifier.
9416 (_initialize_record): Document /c modifier.
9417 * record-btrace.c (btrace_call_history): Add btinfo parameter.
9418 Reorder fields. Optionally indent the function name. Update
9420 * NEWS: Announce changes.
9422 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9424 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
9426 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9428 * btrace.c (ftrace_new_function): Start counting at one.
9429 * record-btrace.c (record_btrace_info): Adjust number of calls
9431 * NEWS: Announce it.
9433 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9435 * record-btrace.c (btrace_call_history_insn_range): Print
9436 insn range as [begin, end].
9438 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9440 * btrace.h (struct btrace_func_link): New.
9441 (enum btrace_function_flag): New.
9442 (struct btrace_inst): Rename to ...
9443 (struct btrace_insn): ...this. Update all users.
9444 (struct btrace_func) <ibegin, iend>: Remove.
9445 (struct btrace_func_link): New.
9446 (struct btrace_func): Rename to ...
9447 (struct btrace_function): ...this. Update all users.
9448 (struct btrace_function) <segment, flow, up, insn, insn_offset)
9449 (number, level, flags>: New.
9450 (struct btrace_insn_iterator): Rename to ...
9451 (struct btrace_insn_history): ...this.
9453 (struct btrace_insn_iterator, btrace_call_iterator): New.
9454 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
9455 (struct btrace_target_info) <begin, end, level>
9456 <insn_history, call_history>: New.
9457 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9458 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9459 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9460 (btrace_call_number, btrace_call_begin, btrace_call_end)
9461 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9462 (btrace_find_function_by_number, btrace_set_insn_history)
9463 (btrace_set_call_history): New.
9464 * btrace.c (btrace_init_insn_iterator)
9465 (btrace_init_func_iterator, compute_itrace): Remove.
9466 (ftrace_print_function_name, ftrace_print_filename)
9467 (ftrace_skip_file): Change
9469 (ftrace_init_func): Remove.
9470 (ftrace_debug): Use new btrace_function fields.
9471 (ftrace_function_switched): Also consider gaining and
9472 losing symbol information).
9473 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
9474 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
9475 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
9477 (ftrace_new_function): Move. Remove debug print.
9478 (ftrace_update_lines, ftrace_update_insns): New.
9479 (ftrace_update_function): Check for call, ret, and jump.
9480 (compute_ftrace): Renamed to ...
9481 (btrace_compute_ftrace): ...this. Rewritten to compute call
9483 (btrace_fetch, btrace_clear): Updated.
9484 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9485 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9486 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9487 (btrace_call_number, btrace_call_begin, btrace_call_end)
9488 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9489 (btrace_find_function_by_number, btrace_set_insn_history)
9490 (btrace_set_call_history): New.
9491 * record-btrace.c (require_btrace): Use new btrace thread
9493 (record_btrace_info, btrace_insn_history)
9494 (record_btrace_insn_history, record_btrace_insn_history_range):
9495 Use new btrace thread info fields and new iterator.
9496 (btrace_func_history_src_line): Rename to ...
9497 (btrace_call_history_src_line): ...this. Use new btrace
9499 (btrace_func_history): Rename to ...
9500 (btrace_call_history): ...this. Use new btrace thread info
9501 fields and new iterator.
9502 (record_btrace_call_history, record_btrace_call_history_range):
9503 Use new btrace thread info fields and new iterator.
9505 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9507 * frame.h (frame_id_build_unavailable_stack_special): New.
9508 * frame.c (frame_id_build_unavailable_stack_special): New.
9510 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9512 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
9513 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
9514 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
9516 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
9517 (i386_insn_is_jump, i386_jmp_p): New.
9518 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
9519 insn_is_jump to gdbarch.
9520 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
9521 * gdbarch.h: Regenerated.
9522 * gdbarch.c: Regenerated.
9523 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
9524 (default_insn_is_jump): New.
9525 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
9526 (default_insn_is_jump): New.
9528 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9530 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
9532 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
9533 (btrace_read_type) <btrace_read_new>: Change to ...
9534 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
9536 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9538 * common/linux-btrace.c (linux_read_btrace): Free trace from
9541 2014-01-15 Doug Evans <dje@google.com>
9543 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
9546 2014-01-15 Tom Tromey <tromey@redhat.com>
9548 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
9549 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
9550 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
9551 (set_objfile_main_name): New function.
9552 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
9553 language_of_main>: New fields.
9554 (set_objfile_main_name): Declare.
9555 * symtab.c (find_main_name): Loop over objfiles to find the main
9557 (set_main_name): Now static.
9558 (get_main_info): Add comment.
9559 * symtab.h (set_main_name): Don't declare.
9561 2014-01-15 Tom Tromey <tromey@redhat.com>
9563 * symtab.c (main_progspace_key): New global.
9564 (struct main_info): New.
9565 (name_of_main, language_of_main): Remove.
9566 (get_main_info, main_info_cleanup): New function.
9567 (set_main_name, main_name, main_language): Use get_main_info.
9568 (_initialize_symtab): Initialize main_progspace_key.
9570 2014-01-15 Tom Tromey <tromey@redhat.com>
9572 * dbxread.c (process_one_symbol): Update.
9573 * dwarf2read.c (read_partial_die): Update.
9574 * symfile.c (set_initial_language): Call main_language.
9575 * symtab.c (language_of_main): Now static.
9576 (set_main_name): Add 'lang' parameter.
9577 (find_main_name): Update.
9578 (main_language): New function.
9579 (symtab_observer_executable_changed): Update.
9580 * symtab.h (set_main_name): Update.
9581 (language_of_main): Remove.
9582 (main_language): Declare.
9584 2014-01-15 Tom Tromey <tromey@redhat.com>
9586 * symfile.c (init_entry_point_info): Use new "initialized" field.
9588 * objfiles.h (struct entry_point) <initialized>: New field.
9589 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
9590 (struct objfile) <ei>: ...here. Remove.
9591 * objfiles.c (entry_point_address_query): Update.
9593 2014-01-15 Tom Tromey <tromey@redhat.com>
9595 * objfiles.c (entry_point_address_query): Relocate entry point
9597 (objfile_relocate1): Do not relocate entry point address.
9598 * objfiles.h (struct entry_info) <entry_point>: Update comment.
9599 <the_bfd_section_index>: New field.
9600 * symfile.c (init_entry_point_info): Find the entry point's
9603 2014-01-15 Tom Tromey <tromey@redhat.com>
9605 * solib-frv.c (enable_break): Use entry_point_address_query.
9607 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9609 * NEWS: Add note on improved process record-replay on
9610 arm*-linux* targets.
9612 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9614 * arm-tdep.c (enum arm_record_result): New enum.
9615 (arm_record_unsupported_insn): New function.
9616 (arm_record_coproc_data_proc): Removed.
9617 (thumb2_record_ld_st_multiple): New function.
9618 (thumb2_record_ld_st_dual_ex_tbb): New function.
9619 (thumb2_record_data_proc_sreg_mimm): New function.
9620 (thumb2_record_ps_dest_generic): New function.
9621 (thumb2_record_branch_misc_cntrl): New function.
9622 (thumb2_record_str_single_data): New function.
9623 (thumb2_record_ld_mem_hints): New function.
9624 (thumb2_record_ld_word): New function.
9625 (thumb2_record_lmul_lmla_div): New function.
9626 (thumb2_record_decode_insn_handler): New function.
9627 (decode_insn): Add thumb32 instruction handlers.
9629 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9631 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
9632 (struct arm_linux_record_tdep): Declare.
9633 (arm_canonicalize_syscall): New function.
9634 (arm_all_but_pc_registers_record): New function.
9635 (arm_linux_syscall_record): New function.
9636 (arm_linux_init_abi): Add syscall recording constructs.
9637 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
9638 decoding. (arm_record_coproc_data_proc): Update arm syscall
9640 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
9641 <arm_syscall_record>: New field.
9642 * configure.tgt (arm*-*-linux*): Add linux-record.o to
9645 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9647 * arm-tdep.c (thumb_record_misc): Update to use sp as base
9648 register for push instruction recording.
9650 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9652 * arm-tdep.c (thumb_record_misc): Update to correct logical
9653 error while recording ldm, ldmia and pop instructions.
9655 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9657 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
9659 2014-01-15 Pedro Alves <palves@redhat.com>
9661 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
9662 (go32_resume, go32_fetch_registers, store_register)
9663 (go32_store_registers, go32_prepare_to_store)
9664 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
9665 (go32_create_inferior, go32_can_run, go32_terminal_init)
9666 (go32_terminal_inferior, go32_terminal_ours): Delete forward
9669 2014-01-15 Tom Tromey <tromey@redhat.com>
9671 * target.h (async_callback_ftype): New typedef.
9672 (struct target_ops) <to_async>: Use it.
9674 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9676 * python/py-value.c (get_field_type): Remove unnecessary curly
9677 braces for single-statement if block.
9679 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9681 * python/py-type.c (convert_field): Add missing empty line
9684 2014-01-14 Doug Evans <dje@google.com>
9686 * symfile.h (expand_symtabs_matching): Renamed from
9687 expand_partial_symbol_names. Update prototype.
9688 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9689 * symfile.c (expand_symtabs_matching): Renamed from
9690 expand_partial_symbol_names. New args file_matcher, kind.
9691 Rename arg fun to symbol_matcher.
9692 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9693 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
9694 ada_expand_partial_symbol_name.
9695 (ada_make_symbol_completion_list): Update to call
9696 expand_symtabs_matching.
9697 (ada_add_global_exceptions): Call expand_symtabs_matching.
9698 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
9699 call map_symbol_filenames.
9700 * symtab.c (sources_info): Update to call map_symbol_filenames.
9701 (search_symbols): Call expand_symtabs_matching.
9702 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
9703 (default_make_symbol_completion_list_break_on): Update to call
9704 expand_symtabs_matching.
9705 (make_source_files_completion_list): Update to call
9706 map_symbol_filenames.
9708 2014-01-14 Doug Evans <dje@google.com>
9710 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
9711 (expand_symtabs_symbol_matcher_ftype): New typedef.
9712 (quick_symbol_functions.expand_symtabs_matching): Update to use.
9713 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9714 * symfile.c (expand_partial_symbol_names): Update to use
9715 expand_symtabs_symbol_matcher_ftype.
9716 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
9717 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9718 Arg name_matcher renamed to symbol_matcher.
9719 * psymtab.c (recursively_search_psymtabs): Update to use
9720 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
9722 (expand_symtabs_matching_via_partial): Update to use
9723 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9724 Arg name_matcher renamed to symbol_matcher.
9726 2014-01-14 Doug Evans <dje@google.com>
9728 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
9729 (map_partial_symbol_filenames): Ditto.
9730 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
9731 (map_partial_symbol_filenames): Ditto.
9732 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
9733 (map_partial_symbol_filenames): Ditto.
9734 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
9735 (map_partial_symbol_filenames): Ditto.
9736 * symtab.c: Delete #include "psymtab.h".
9738 2014-01-14 Pedro Alves <palves@redhat.com>
9739 Tom Tromey <tromey@redhat.com>
9741 * infrun.c (use_displaced_stepping): Use find_record_target
9742 instead of RECORD_IS_USED.
9743 (adjust_pc_after_break): Use record_full_is_used instead of
9745 * record-btrace.c (record_btrace_open): Call record_preopen
9746 instead of checking RECORD_IS_USED.
9747 * record-full.c (record_full_shortname)
9748 (record_full_core_shortname): New globals.
9749 (record_full_is_used): New function.
9750 (find_full_open): Call record_preopen instead of checking
9752 (init_record_full_ops): Set the target's shortname to
9753 record_full_shortname.
9754 (init_record_full_core_ops): Set the target's shortname to
9755 record_full_core_shortname.
9756 * record-full.h (record_full_is_used): Declare.
9757 * record.c (find_record_target): Make extern.
9758 (record_preopen): New function.
9759 * record.h (RECORD_IS_USED): Delete macro.
9760 (find_record_target, record_preopen): Declare functions.
9762 2014-01-14 Yao Qi <yao@codesourcery.com>
9764 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
9765 'len''s type to ULONGEST.
9766 (core_xfer_shared_libraries_aix): Likewise.
9767 * gdbarch.c, gdbarch.h: Regenerated.
9768 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
9769 Change type of 'len' to ULONGEST.
9770 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9771 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
9773 2014-01-14 Yao Qi <yao@codesourcery.com>
9775 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
9776 type of 'len' to ULONGEST.
9777 (linux_xfer_osdata_processgroups): Likewise.
9778 (linux_xfer_osdata_threads): Likewise.
9779 (linux_xfer_osdata_fds): Likewise.
9780 (linux_xfer_osdata_isockets): Likewise.
9781 (linux_xfer_osdata_shm): Likewise.
9782 (linux_xfer_osdata_sem): Likewise.
9783 (linux_xfer_osdata_msg): Likewise.
9784 (linux_common_xfer_osdata): Likewise.
9785 (struct osdata_type) <getter>: Likewise.
9786 * common/linux-osdata.h (linux_common_xfer_osdata): Update
9789 2014-01-14 Yao Qi <yao@codesourcery.com>
9791 * target.h (target_xfer_partial_ftype): Update.
9792 (struct target_ops) <to_xfer_partial>: Change 'len' type to
9794 * aix-thread.c (aix_thread_xfer_partial): Change type of
9795 argument 'len' to ULONGEST.
9796 * auxv.c (procfs_xfer_auxv): Likewise.
9797 (ld_so_xfer_auxv): Likewise.
9798 (memory_xfer_auxv): Likewise.
9799 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9800 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9801 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9802 * corelow.c (core_xfer_partial): Likewise.
9803 * ctf.c (ctf_xfer_partial): Likewise.
9804 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
9806 (darwin_read_dyld_info): Likewise.
9807 (darwin_xfer_partial): Likewise.
9808 * exec.c (section_table_xfer_memory_partial): Likewise.
9809 (exec_xfer_partial): Likewise.
9810 * exec.h (section_table_xfer_memory_partial): Update
9812 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
9813 instead of plongest.
9814 (gnu_xfer_partial): Likewise.
9815 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
9816 (ia64_hpux_xfer_solib_got): Likewise.
9817 (ia64_hpux_xfer_partial): Likewise.
9818 * ia64-linux-nat.c (ia64_linux_xfer_partial):
9819 * inf-ptrace.c (inf_ptrace_xfer_partial):
9820 * inf-ttrace.c (inf_ttrace_xfer_partial):
9821 * linux-nat.c (linux_xfer_siginfo): Likewise.
9822 (linux_nat_xfer_partial): Likewise.
9823 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
9824 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
9825 * monitor.c (monitor_xfer_memory): Likewise.
9826 (monitor_xfer_partial): Likewise.
9827 * procfs.c (procfs_xfer_partial): Likewise.
9828 * record-full.c (record_full_xfer_partial): Likewise.
9829 (record_full_core_xfer_partial): Likewise.
9830 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
9831 instead of plongest.
9832 (gdbsim_xfer_partial): Likewise.
9833 * remote.c (remote_xfer_partial): Likewise.
9834 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9835 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9837 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9838 (rs6000_xfer_shared_libraries): Likewise.
9839 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9840 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9841 (sparc_xfer_partial): Likewise.
9842 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9843 (spu_xfer_partial): Likewise.
9844 * spu-multiarch.c (spu_xfer_partial): Likewise.
9845 * target.c (target_read_live_memory): Likewise.
9846 (memory_xfer_live_readonly_partial): Likewise.
9847 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
9848 (target_xfer_partial, default_xfer_partial): Likewise.
9849 (current_xfer_partial): Likewise.
9850 * tracepoint.c (tfile_xfer_partial): Likewise.
9851 * windows-nat.c (windows_xfer_memory): Likewise. Call
9852 pulongest instead of plongest.
9853 (windows_xfer_partial): Likewise.
9854 (windows_xfer_shared_libraries): Likewise.
9856 2014-01-14 Yao Qi <yao@codesourcery.com>
9858 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
9859 target_xfer_partial_ftype.
9861 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
9865 * valops.c (value_struct_elt_bitpos): New function
9866 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
9867 object to 'None' if the field name is an empty string ("").
9868 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
9869 attribute to look for a field when 'name' is 'None'.
9870 (get_field_type): New function
9872 2014-01-13 Doug Evans <dje@google.com>
9875 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
9876 (try_open_dwop_file): Ditto.
9877 * gdb_bfd.c: #include "vec.h".
9878 (bfdp): New typedef.
9879 (struct gdb_bfd_data): New member included_bfds.
9880 (gdb_bfd_unref): Unref all included bfds.
9881 (gdb_bfd_record_inclusion): New function.
9882 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
9884 2014-01-13 Tom Tromey <tromey@redhat.com>
9886 * gdbcore.h (deprecated_core_resize_section_table): Remove.
9888 2014-01-13 Tom Tromey <tromey@redhat.com>
9890 * defs.h (use_windows): Remove.
9891 * gdb.c (main): Update.
9892 * main.c (captured_main, gdb_main): Update.
9893 * main.h (struct captured_main_args) <use_windows>: Remove.
9894 * top.c (use_windows): Remove.
9896 2014-01-13 Tom Tromey <tromey@redhat.com>
9898 * defs.h (deprecated_flush_hook): Remove.
9900 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9903 * linux-thread-db.c (try_thread_db_load): Add parameter
9904 check_auto_load_safe. Move here the file_is_auto_load_safe call.
9905 (try_thread_db_load_from_pdir_1): Move it there from here.
9906 (try_thread_db_load_from_sdir): Update caller.
9907 (try_thread_db_load_from_dir): Move it there from here.
9909 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
9911 * regformats/regdat.sh: Always rewrite the register file.
9913 2014-01-13 Pedro Alves <palves@redhat.com>
9915 * Makefile.in (CHECK_HEADERS): New variable.
9916 (check-headers:): New rule.
9918 2014-01-13 Tom Tromey <tromey@redhat.com>
9920 * cli/cli-setshow.c (do_set_command): Update.
9921 * defs.h (deprecated_set_hook): Remove.
9922 * top.c (deprecated_set_hook): Remove.
9924 2014-01-13 Pedro Alves <palves@redhat.com>
9926 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
9927 the tracepoint if the PC is a pseudo-register.
9929 2014-01-13 Tom Tromey <tromey@redhat.com>
9931 * defs.h (XCALLOC): Remove.
9932 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
9933 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
9934 * dwarf2loc.c (allocate_piece_closure): Likewise.
9935 * elfread.c (elf_symfile_segments): Likewise.
9936 (elf_symfile_segments): Likewise.
9937 * gdbtypes.c (copy_type_recursive): Likewise.
9938 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
9939 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
9940 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
9942 * mt-tdep.c (mt_gdbarch_init): Likewise.
9943 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
9945 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
9946 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
9947 * registry.c (registry_alloc_data): Likewise.
9948 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
9949 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9950 * serial.c (serial_fdopen_ops): Likewise.
9951 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
9953 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
9954 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
9957 2014-01-13 Tom Tromey <tromey@redhat.com>
9959 * defs.h (XMALLOC): Remove.
9960 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
9961 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9962 * cli-out.c (struct ui_out *): Likewise.
9963 * cli/cli-dump.c (add_dump_command): Likewise.
9964 (add_dump_command): Likewise.
9965 * complaints.c (get_complaints): Likewise.
9966 (find_complaint): Likewise.
9967 * dwarf2-frame.c (execute_cfa_program): Likewise.
9968 * dwarf2read.c (abbrev_table_read_table): Likewise.
9969 * gdbarch.sh: Likewise.
9970 * gdbarch.c: Rebuild.
9971 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
9972 * interps.c (interp_new): Likewise.
9973 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9974 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9975 * mi/mi-console.c (mi_console_file_new): Likewise.
9976 * mi/mi-interp.c (mi_interpreter_init): Likewise.
9977 * mi/mi-out.c (mi_out_new): Likewise.
9978 * mi/mi-parse.c (mi_parse): Likewise.
9979 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9980 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9981 * observer.c (xalloc_observer_list_node): Likewise.
9982 * regcache.c (regcache_xmalloc_1): Likewise.
9983 * reggroups.c (reggroup_new): Likewise.
9984 (_initialize_reggroup): Likewise.
9985 * registry.c (register_data_with_cleanup): Likewise.
9986 * remote.c (remote_notif_stop_alloc_reply): Likewise.
9987 * ser-base.c (serial_ttystate): Likewise.
9988 * ser-mingw.c (make_pipe_state): Likewise.
9989 * ser-pipe.c (pipe_open): Likewise.
9990 * serial.c (serial_open): Likewise.
9991 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9992 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
9993 (tui_alloc_win_info): Likewise.
9994 (tui_add_content_elements): Likewise.
9995 * tui/tui-file.c (tui_file_new): Likewise.
9996 * tui/tui-out.c (tui_out_new): Likewise.
9997 * ui-file.c (mem_file_new): Likewise.
9998 * ui-out.c (push_level): Likewise.
9999 (make_cleanup_ui_out_end): Likewise.
10000 (append_header_to_list): Likewise.
10001 (ui_out_new): Likewise.
10002 * user-regs.c (user_reg_add_builtin): Likewise.
10004 2014-01-13 Tom Tromey <tromey@redhat.com>
10006 * defs.h (XZALLOC): Remove.
10007 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10008 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10009 (get_ada_tasks_inferior_data): Likewise.
10010 * auto-load.c (get_auto_load_pspace_data): Likewise.
10011 * auxv.c (get_auxv_inferior_data): Likewise.
10012 * bfd-target.c (target_bfd_reopen): Likewise.
10013 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10014 (deprecated_insert_raw_breakpoint): Likewise.
10015 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10016 * corelow.c (core_open): Likewise.
10017 * darwin-nat.c (darwin_check_new_threads): Likewise.
10018 (darwin_attach_pid): Likewise.
10019 * dummy-frame.c (dummy_frame_push): Likewise.
10020 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10021 * dwarf2loc.c (allocate_piece_closure): Likewise.
10022 * elfread.c (elf_symfile_segments): Likewise.
10023 * eval.c (ptrmath_type_p): Likewise.
10024 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10025 * gdbtypes.c (alloc_type_arch): Likewise.
10026 (alloc_type_instance): Likewise.
10027 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10028 * inf-child.c (inf_child_can_use_agent): Likewise.
10029 * inflow.c (get_inflow_inferior_data): Likewise.
10030 * infrun.c (save_infcall_suspend_state): Likewise.
10031 * jit.c (jit_reader_load): Likewise.
10032 (get_jit_objfile_data): Likewise.
10033 (get_jit_program_space_data): Likewise.
10034 (jit_object_open_impl): Likewise.
10035 (jit_symtab_open_impl): Likewise.
10036 (jit_block_open_impl): Likewise.
10037 (jit_frame_sniffer): Likewise.
10038 * linux-fork.c (add_fork): Likewise.
10039 * maint.c (make_command_stats_cleanup): Likewise.
10040 * objfiles.c (get_objfile_pspace_data): Likewise.
10041 * opencl-lang.c (struct lval_closure): Likewise.
10042 * osdata.c (osdata_start_osdata): Likewise.
10043 * progspace.c (new_address_space): Likewise.
10044 (add_program_space): Likewise.
10045 * remote-sim.c (get_sim_inferior_data): Likewise.
10046 * sh-tdep.c (sh_gdbarch_init): Likewise.
10047 * skip.c (Ignore): Likewise.
10048 (skip_delete_command): Likewise.
10049 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10050 (library_list_start_library): Likewise.
10051 (solib_aix_current_sos): Likewise.
10052 * solib-darwin.c (get_darwin_info): Likewise.
10053 (darwin_current_sos): Likewise.
10054 * solib-dsbt.c (get_dsbt_info): Likewise.
10055 * solib-ia64-hpux.c (new_so_list): Likewise.
10056 (ia64_hpux_get_solib_linkage_addr): Likewise.
10057 * solib-spu.c (append_ocl_sos): Likewise.
10058 (spu_current_sos): Likewise.
10059 * solib-svr4.c (get_svr4_info): Likewise.
10060 (svr4_keep_data_in_core): Likewise.
10061 (library_list_start_library): Likewise.
10062 (svr4_default_sos): Likewise.
10063 (svr4_read_so_list): Likewise.
10064 * solib-target.c (library_list_start_library): Likewise.
10065 (solib_target_current_sos): Likewise.
10066 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10067 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10068 * symfile.c (default_symfile_segments): Likewise.
10069 * target-descriptions.c (tdesc_data_init): Likewise.
10070 (tdesc_create_reg): Likewise.
10071 (struct tdesc_type *): Likewise.
10072 (tdesc_create_vector): Likewise.
10073 (tdesc_set_struct_size): Likewise.
10074 (struct tdesc_type *): Likewise.
10075 (tdesc_free_feature): Likewise.
10076 (tdesc_create_feature): Likewise.
10077 * windows-nat.c (windows_add_thread): Likewise.
10078 (windows_make_so): Likewise.
10079 * xml-support.c (gdb_xml_body_text): Likewise.
10080 (gdb_xml_create_parser_and_cleanup): Likewise.
10081 (xml_process_xincludes): Likewise.
10082 * xml-syscall.c (allocate_syscalls_info): Likewise.
10083 (syscall_create_syscall_desc): Likewise.
10085 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10087 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10088 function, with code from i386_stap_parse_special_token.
10089 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10090 (i386_stap_parse_special_token): Move code to the two functions
10091 above; simplify it.
10093 2014-01-09 Pedro Alves <palves@redhat.com>
10094 Hui Zhu <hui@codesourcery.com>
10097 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10098 bp_err_string. Don't mark the location shlib_disabled if the
10099 error thrown wasn't a generic or memory error. Catch errors
10100 thrown while inserting breakpoints in overlayed code. Output
10101 error message of software breakpoints.
10102 * remote.c (remote_insert_breakpoint): If this breakpoint has
10103 target-side commands but this stub doesn't support Z0 packets,
10104 throw NOT_SUPPORTED_ERROR error.
10105 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10106 * target.h (target_insert_breakpoint): Extend comment.
10107 (target_insert_hw_breakpoint): Add comment.
10109 2014-01-08 Pedro Alves <palves@redhat.com>
10111 * remote.c (remote_add_thread): Add threads silently if starting
10113 (remote_notice_new_inferior): If in all-stop, and starting up,
10114 don't call notice_new_inferior.
10115 (get_current_thread): New function, factored out from ...
10116 (add_current_inferior_and_thread): ... this. Adjust.
10117 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10118 found any thread, then select the remote's current thread as GDB's
10119 current thread too.
10121 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10123 * NEWS: Create a new section for the next release branch.
10124 Rename the section of the current branch, now that it has
10127 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10129 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10130 * version.in: Bump version to 7.7.50.DATE-cvs.
10132 2014-01-08 Yao Qi <yao@codesourcery.com>
10134 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10135 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10136 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10138 2014-01-08 Yao Qi <yao@codesourcery.com>
10140 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10141 return value of bfd_get_filename to symbol_file_add_from_bfd.
10143 2014-01-08 Pierre Muller <muller@sourceware.org>
10146 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10147 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10148 to prim_record_mininal_symbol_and_info.
10149 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10150 in call to prim_record_minimal_symbol_and_info.
10151 (read_pe_exported_syms): Set index field of section_data.
10153 2014-01-07 Andrew Pinski <apinski@cavium.com>
10155 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10156 * features/aarch64.c: Regenerate.
10158 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10160 * target.c (return_null): Define.
10161 (update_current_target): Use it instead of return_zero for
10162 functions that return a pointer.
10164 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10166 * source.c (add_path): Fix check for duplicated paths in the previously
10169 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10171 * ada-lang.c: Remove duplicated include statements.
10172 * alphabsd-nat.c: Ditto.
10173 * amd64-darwin-tdep.c: Ditto.
10174 * amd64fbsd-nat.c: Ditto.
10175 * auto-load.c: Ditto.
10177 * breakpoint.c: Ditto.
10178 * dbxread.c: Ditto.
10179 * fork-child.c: Ditto.
10180 * gdb_usleep.c: Ditto.
10181 * i386-darwin-tdep.c: Ditto.
10182 * i386fbsd-nat.c: Ditto.
10184 * inferior.c: Ditto.
10185 * jv-lang.c: Ditto.
10186 * linux-nat.c: Ditto.
10187 * linux-tdep.c: Ditto.
10188 * m68kbsd-nat.c: Ditto.
10189 * m68klinux-nat.c: Ditto.
10190 * microblaze-tdep.c: Ditto.
10191 * mips-linux-tdep.c: Ditto.
10192 * mn10300-tdep.c: Ditto.
10193 * nto-tdep.c: Ditto.
10194 * opencl-lang.c: Ditto.
10196 * printcmd.c: Ditto.
10197 * regcache.c: Ditto.
10198 * remote-m32r-sdi.c: Ditto.
10200 * symfile.c: Ditto.
10202 * tilegx-linux-nat.c: Ditto.
10203 * tilegx-tdep.c: Ditto.
10204 * tracepoint.c: Ditto.
10206 * vaxbsd-nat.c: Ditto.
10207 * windows-nat.c: Ditto.
10208 * xtensa-tdep.c: Ditto.
10210 2014-01-07 Yao Qi <yao@codesourcery.com>
10212 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10214 2014-01-07 Yao Qi <yao@codesourcery.com>
10215 Joel Brobecker <brobecker@adacore.com>
10217 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10218 (pdc_write_regs): Likewise.
10219 (fetch_regs_kernel_thread): Likewise.
10220 (store_regs_kernel_thread): Likewise.
10222 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10224 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10225 tagged type objects to their actual type.
10227 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10229 * ada-valprint.c (print_field_values): Add "language" parameter.
10230 Update calls to print_field_values and print_variant_part.
10231 Pass new parameter "language" in call to val_print instead
10232 of "current_language". Replace call to ada_val_print by call
10234 (print_variant_part): Add "language" parameter.
10235 (ada_val_print_struct_union): Update call to print_field_values.
10237 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10239 * ada-valprint.c (ui_memcpy): Delete.
10240 (ada_print_floating): Update documentation. Add empty line
10241 between between function documentation and implementation.
10242 Delete variable "buffer". Use ui_file_xstrdup in place of
10243 ui_file_put. Minor adjustments following this change.
10245 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10247 * ada-valprint.c (ada_val_print_string): New function,
10248 extracted from ada_val_print_array.
10249 (ada_val_print_array): Replace extracted code by call
10250 to ada_val_print_string followed by a return. Move
10251 "else" branch to the function's top block.
10253 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10255 * ada-valprint.c (ada_val_print_array): Move implementation
10256 down. Rename parameter "offset" and "val" into "offset_aligned"
10257 and "original_value" respectively. Add parameter "offset".
10259 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10261 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10262 re-organizing the code. Change the "???" message printed
10263 when target type is a TYPE_CODE_UNDEF into
10264 "<ref to undefined type>".
10266 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10268 * ada-valprint.c (print_record): Delete, implementation inlined...
10269 (ada_val_print_struct_union): ... here. Remove call to
10270 ada_check_typedef in inlined implementation.
10272 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10274 * ada-valprint.c (ada_val_print_gnat_array): New function,
10275 extracted from ada_val_print_1;
10276 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10277 (ada_val_print_flt, ada_val_print_struct_union)
10278 (ada_val_print_ref): Likewise.
10279 (ada_val_print_1): Delete variables i and elttype.
10280 Replace extracted-out code by call to corresponding
10283 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10285 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10287 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10289 * ada-valprint.c (ada_val_print_1): Replace calls to
10290 ada_val_print_1 by calls to val_print.
10292 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10294 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10295 Update calls to self accordingly. Replace calls to c_val_print
10296 by calls to val_print.
10298 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10300 * ada-valprint.c (print_record): Delete declaration.
10301 (adjust_type_signedness, ada_val_print_1): Likewise.
10302 (ada_val_print): Move function implementation down.
10303 (print_variant_part, print_field_values, print_record):
10304 Move function implementation up.
10306 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10308 * python/py-type.c (typy_get_name): New function.
10309 (type_object_getset): Add entry for attribute "name".
10310 * NEWS: Add entry mentioning this new attribute.
10312 2014-01-07 Yao Qi <yao@codesourcery.com>
10314 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10317 2014-01-07 Yao Qi <yao@codesourcery.com>
10319 * gnu-nat.c (info_port_rights): Add qualifier const to
10322 2014-01-07 Yao Qi <yao@codesourcery.com>
10324 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10326 2014-01-07 Yao Qi <yao@codesourcery.com>
10328 * gnu-nat.c (make_inf) Update declaration.
10329 (make_inf): Make it static.
10330 (inf_set_traced): Likewise.
10331 (inf_port_to_thread, inf_task_died_status): Likewise.
10333 2014-01-07 Yao Qi <yao@codesourcery.com>
10335 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10337 2014-01-07 Yao Qi <yao@codesourcery.com>
10339 * gnu-nat.c (_initialize_gnu_nat): Declare.
10341 2014-01-07 Yao Qi <yao@codesourcery.com>
10343 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10345 (struct gdbarch_info) <byte_order>: Change type to
10347 <byte_order_for_code>: Likewise.
10348 * gdbarch.c, gdbarch.h: Regenerated.
10350 2014-01-06 Sasha Smundak <asmundak@google.com>
10352 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10354 2014-01-06 Tom Tromey <tromey@redhat.com>
10356 * doublest.c (convert_doublest_to_floatformat): Use const, not
10358 * somread.c (som_symtab_read): Likewise.
10360 2014-01-07 Hui Zhu <hui@codesourcery.com>
10362 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10363 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10364 (gdb_bfd_fopen): Ditto.
10365 (gdb_bfd_openr): Ditto.
10366 (gdb_bfd_openw): Ditto.
10367 (gdb_bfd_openr_iovec): Ditto.
10368 (gdb_bfd_fdopenr): Ditto.
10369 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
10370 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
10372 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
10374 * symfile-mem.c (symbol_file_add_from_memory): Removed
10375 gdb_bfd_stash_filename.
10377 2014-01-03 Doug Evans <dje@google.com>
10379 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
10382 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10384 Update year range in copyright notice of all files.
10386 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10388 * top.c (print_gdb_version): Set copyright year to 2014.
10390 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10392 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
10394 For older changes see ChangeLog-2013.
10400 version-control: never