1 2014-07-24 Tom Tromey <tromey@redhat.com>
3 * maint.c (match_bfd_flags): Make "string" const.
4 (print_bfd_section_info): Remove casts.
5 (print_objfile_section_info): Make "string" const.
7 2014-07-24 Tom Tromey <tromey@redhat.com>
9 * inf-child.c (inf_child_open_target): Make "arg" const.
10 * inf-child.h (inf_child_open_target): Update.
12 2014-07-24 Tom Tromey <tromey@redhat.com>
14 * environ.c (unset_in_environ): Make "var" const.
15 * environ.h (unset_in_environ): Update.
17 2014-07-24 Tom Tromey <tromey@redhat.com>
19 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
21 (scan_filename_with_cleanup): Likewise.
22 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
24 (restore_command): Update.
26 2014-07-24 Pedro Alves <palves@redhat.com>
28 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
30 2014-07-24 Tom Tromey <tromey@redhat.com>
31 Gary Benson <gbenson@redhat.com>
33 * nat/linux-ptrace.c (additional_flags): New global.
34 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
35 additional_flags; don't check GDBSERVER.
36 (linux_ptrace_set_additional_flags): New function.
37 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
39 * linux-nat.c (_initialize_linux_nat): Call
40 linux_ptrace_set_additional_flags.
42 2014-07-24 Tom Tromey <tromey@redhat.com>
44 * make-target-delegates (munge_type, write_debugmethod): New
46 (debug_names): New global.
47 ($TARGET_DEBUG_PRINTER): New global.
48 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
50 Write debug methods. Generate init_debug_target.
51 * target-debug.h: New file.
52 * target-delegates.c: Rebuild.
53 * target.c: Include target-debug.h.
54 (debug_target): Hoist definition.
55 (target_kill, target_get_section_table, target_memory_map)
56 (target_flash_erase, target_flash_done, target_detach)
57 (target_disconnect, target_wait, target_resume)
58 (target_pass_signals, target_program_signals, target_follow_fork)
59 (target_mourn_inferior, target_search_memory)
60 (target_thread_address_space, target_close)
61 (target_find_new_threads, target_core_of_thread)
62 (target_verify_memory, target_insert_mask_watchpoint)
63 (target_remove_mask_watchpoint): Remove targetdebug code.
64 (debug_to_post_attach, debug_to_prepare_to_store)
65 (debug_to_files_info, debug_to_insert_breakpoint)
66 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
67 (debug_to_region_ok_for_hw_watchpoint)
68 (debug_to_can_accel_watchpoint_condition)
69 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
70 (debug_to_watchpoint_addr_within_range)
71 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
72 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
73 (debug_to_terminal_init, debug_to_terminal_inferior)
74 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
75 (debug_to_terminal_save_ours, debug_to_terminal_info)
76 (debug_to_load, debug_to_post_startup_inferior)
77 (debug_to_insert_fork_catchpoint)
78 (debug_to_remove_fork_catchpoint)
79 (debug_to_insert_vfork_catchpoint)
80 (debug_to_remove_vfork_catchpoint)
81 (debug_to_insert_exec_catchpoint)
82 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
83 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
84 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
85 (setup_target_debug): Call init_debug_target.
86 * target.h (TARGET_DEBUG_PRINTER): New macro.
87 (struct target_ops) <to_resume, to_wait, to_pass_signals,
88 to_program_signals>: Use TARGET_DEBUG_PRINTER.
90 2014-07-24 Gary Benson <gbenson@redhat.com>
92 * exceptions.h (throw_vfatal): Renamed to...
93 (throw_vquit): New declaration.
94 (throw_quit): Likewise.
95 * exceptions.c (throw_vfatal): Renamed to...
96 (throw_vquit): New function.
97 (throw_quit): Likewise.
98 (throw_error): Call throw_verror rather than throw_it.
99 * utils.h (vfatal): Removed.
101 * utils.c (vfatal): Removed.
103 (internal_verror): Replaced call to fatal with call to throw_quit.
104 (quit): Replaced calls to fatal with calls to throw_quit.
106 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
108 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
111 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
113 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
114 less than zero in conditional expression.
116 2014-07-23 Tom Tromey <tromey@redhat.com>
118 * make-target-delegates ($ARGS_PART): Match trailing close paren.
119 ($INTRO_PART): Don't match whitespace.
120 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
122 ($METHOD): Add $METHOD_TRAILER.
124 (scan_target_h): New sub.
125 Change main loop not to collect state.
126 * target-delegates.c: Rebuild.
128 2014-07-23 Gary Benson <gbenson@redhat.com>
130 * cp-support.c (gdb_demangle): Fix build on systems without
133 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
135 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
136 for reference entry value target data value.
138 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
140 * stack.c (read_frame_arg): Verify value_optimized_out before calling
141 value_available_contents_eq.
143 2014-07-22 Pedro Alves <palves@redhat.com>
145 * value.c (allocate_optimized_out_value): Don't mark value as
148 2014-07-22 Jiong Wang <jiong.wang@arm.com>
150 * MAINTAINERS (Write After Approval): Update my email address.
152 2014-07-20 Doug Evans <dje@google.com>
155 * remote.c (putpkt_binary): Add text to error message.
157 2014-07-20 Yao Qi <yao@codesourcery.com>
159 * eval.c: Remove "Chill" from comments.
160 * gdbtypes.h: Likewise.
161 * symtab.h: Likewise.
163 2014-07-20 Yao Qi <yao@codesourcery.com>
165 * std-operator.def: Update comments to TERNOP_SLICE.
167 2014-07-20 Yao Qi <yao@codesourcery.com>
169 * std-operator.def: Remove BINOP_RANGE.
170 * breakpoint.c (watchpoint_exp_is_const): Update.
171 * expprint.c (dump_subexp_body_standard): Likewise.
172 * eval.c (init_array_element): Remove dead code.
173 (evaluate_subexp_standard): Likewise.
175 2014-07-20 Yao Qi <yao@codesourcery.com>
177 * std-operator.def: Remove BINOP_IN.
178 * breakpoint.c (watchpoint_exp_is_const): Update.
179 * eval.c (evaluate_subexp_standard): Likewise.
180 * expprint.c (dump_subexp_body_standard): Likewise.
182 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
184 * microblaze-tdep.c (microblaze_register_names): Add
185 the rshr and rslr register names.
186 (microblaze_gdbarch_init): Use of tdesc_has_registers.
187 Use of tdesc_find_feature. Use of tdesc_data_alloc.
188 Use of tdesc_numbered_register. Use of
189 microblaze_register_g_packet_guesses. Use of
190 tdesc_use_registers. Use of set_gdbarch_register_type.
191 (microblaze_register_g_packet_guesses): New.
192 * microblaze-tdep.h (microblaze_reg_num): Add
193 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
194 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
195 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
196 * features/microblaze-core.xml: New file.
197 * features/microblaze-stack-protect.xml: New file.
198 * features/microblaze-with-stack-protect.c: New file.
199 * features/microblaze-with-stack-protect.xml: New file.
200 * features/microblaze.xml: New file.
201 * features/microblaze.c: New file.
202 * features/Makefile (microblaze-with-stack-protect): Add
203 microblaze-with-stack-protect microblaze and microblaze-expedite.
204 * regformats/microblaze-with-stack-protect.dat: New file.
205 * regformats/microblaze.dat: New file.
206 * doc/gdb.texinfo (MicroBlaze Features): Added.
208 2014-07-18 Tom Tromey <tromey@redhat.com>
210 * exec.c (exec_ops): Now static.
211 * exec.h (exec_ops): Don't declare.
213 2014-07-18 Tom Tromey <tromey@redhat.com>
215 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
216 to find_target_beneath.
217 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
219 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
221 2014-07-18 Tom Tromey <tromey@redhat.com>
224 * utils.c (quit): Use target_supports_terminal_ours.
225 * target.h (target_supports_terminal_ours): Declare.
226 * target.c (target_supports_delete_record): Don't check
227 to_delete_record against NULL.
228 (target_supports_terminal_ours): New function.
230 2014-07-18 Tom Tromey <tromey@redhat.com>
233 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
234 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
235 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
236 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
237 * windows-nat.c (windows_xfer_partial): Always delegate.
238 * record-btrace.c (record_btrace_xfer_partial): Simplify
240 (record_btrace_fetch_registers, record_btrace_store_registers)
241 (record_btrace_prepare_to_store, record_btrace_resume)
242 (record_btrace_wait, record_btrace_find_new_threads)
243 (record_btrace_thread_alive): Likewise.
244 * procfs.c (procfs_xfer_partial): Always delegate.
245 * corelow.c (core_xfer_partial): Always delegate.
246 * sol-thread.c (sol_find_new_threads): Simplify delegation.
248 2014-07-18 Tom Tromey <tromey@redhat.com>
250 * exec.c (exec_make_note_section): Move earlier.
252 2014-07-17 Doug Evans <dje@google.com>
255 * maint.c (count_symtabs_and_blocks): Handle NULL
256 current_program_space.
257 (report_command_stats): Check global enabled flag in addition to
258 recorded enabled flag.
259 (make_command_stats_cleanup): Handle msg_type == 0, startup.
261 2014-07-16 Pedro Alves <palves@redhat.com>
263 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
265 2014-07-16 Tom Tromey <tromey@redhat.com>
267 * target.h (struct target_ops) <to_delete_record>: Reformat
270 2014-07-16 Tom Tromey <tromey@redhat.com>
272 * target-delegates.c: Rebuild.
274 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
276 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
277 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
278 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
279 (avr_pointer_to_address): Likewise.
280 (avr_address_class_type_flags): New function.
281 (avr_address_class_type_flags_to_name): Likewise.
282 (avr_address_class_name_to_type_flags): Likewise.
283 (avr_gdbarch_init): Set address_class_type_flags,
284 address_class_type_flags_to_name and
285 address_class_name_to_type_flags.
287 2014-07-15 Pedro Alves <palves@redhat.com>
289 * linux-nat.c (kill_callback): Save errno and work with saved
292 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
294 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
296 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
298 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
299 breakpoint support correctly.
301 2014-07-14 Pedro Alves <palves@redhat.com>
303 * utils.c (prompt_for_continue): Call target_terminal_ours.
305 2014-07-14 Pedro Alves <palves@redhat.com>
307 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
308 catch_errors. Don't re-enable stdin or notify observers where,
310 (fetch_inferior_event_wrapper): Delete.
312 2014-07-14 Pedro Alves <palves@redhat.com>
315 * top.c: Include "inf-loop.h".
316 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
318 (gdb_readline_wrapper_cleanup): Make the target async again, if it
320 (gdb_readline_wrapper): Store whether the target is async, and
323 2014-07-14 Pedro Alves <palves@redhat.com>
326 * top.c (gdb_readline_wrapper_line): Tweak comment.
327 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
328 the input handler callback.
330 2014-07-14 Pedro Alves <palves@redhat.com>
333 * main.c: Include event-top.h.
334 (handle_command_errors): New function.
335 (catch_command_errors, catch_command_errors_const): Use it.
337 2014-07-14 Pedro Alves <palves@redhat.com>
339 * exceptions.c (catch_command_errors, catch_command_errors_const):
341 * exceptions.h (catch_command_errors_ftype)
342 (catch_command_errors_const_ftype): Moved to main.c.
343 (catch_command_errors, catch_command_errors_const): Delete
345 * main.c (catch_command_errors_ftype)
346 (catch_command_errors_const_ftype): Moved here from exceptions.h.
347 (catch_command_errors, catch_command_errors_const)): Moved here
348 from exceptions.c and make static.
350 2014-07-14 Pedro Alves <palves@redhat.com>
352 * exceptions.c (print_any_exception): Delete.
353 (catch_exceptions_with_msg): Use exception_print instead of
355 (catch_errors): Use exception_fprintf instead of
357 (catch_command_errors, catch_command_errors_const): Use
358 exception_print instead of print_any_exception.
360 2014-07-14 Pedro Alves <palves@redhat.com>
362 * infcall.c (run_inferior_call): Set 'sync_execution' while
363 running the inferior call.
365 2014-07-14 Pedro Alves <palves@redhat.com>
367 * value.c (value_contents_equal): Delete function.
368 * value.h (value_contents_equal): Delete declaration.
370 2014-07-14 Tom Tromey <tromey@redhat.com>
373 * gdbtypes.c (is_dynamic_type_internal): New function, from
375 (is_dynamic_type): Rewrite.
376 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
377 (resolve_dynamic_struct): Likewise.
378 (resolve_dynamic_type_internal): New function, from
379 resolve_dynamic_type.
380 (resolve_dynamic_type): Rewrite.
382 2014-07-14 Tom Tromey <tromey@redhat.com>
384 * target.c (target_require_runnable): Also check record_stratum.
387 2014-07-11 Yao Qi <yao@codesourcery.com>
389 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
390 thumb_instruction_restores_sp return true.
392 2014-07-11 Yao Qi <yao@codesourcery.com>
394 * arm-tdep.c (thumb_instruction_restores_sp): New function.
395 (thumb_in_function_epilogue_p): Call
396 thumb_instruction_restores_sp.
398 2014-07-11 Yao Qi <yao@codesourcery.com>
400 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
402 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
404 2014-07-11 Gary Benson <gbenson@redhat.com>
406 * amd64-linux-nat.c (gdbcore.h): Remove include.
407 (regset.h): Likewise.
408 (nat/linux-btrace.h): Likewise.
409 (btrace.h): Likewise.
410 (gdb_assert.h): Likewise.
411 (string.h): Likewise.
412 (sys/uio.h): Likewise.
413 (sys/debugreg.h): Likewise.
414 (sys/syscall.h): Likewise.
415 (sys/procfs.h): Likewise.
416 (sys/user.h): Likewise.
417 (asm/ptrace.h): Likewise.
418 (i386-nat.h): Likewise.
419 * i386-linux-nat.c (i386-nat.h): Likewise.
420 (regset.h): Likewise.
421 (target.h): Likewise.
422 (linux-nat.h): Likewise.
423 (nat/linux-btrace.h): Likewise.
424 (btrace.h): Likewise.
425 (gdb_assert.h): Likewise.
426 (string.h): Likewise.
427 (sys/uio.h): Likewise.
428 (sys/user.h): Likewise.
429 (sys/procfs.h): Likewise.
430 (sys/reg.h): Likewise.
431 (sys/debugreg.h): Likewise.
432 (ORIG_EAX): Remove definition.
434 2014-07-11 Gary Benson <gbenson@redhat.com>
436 * i386-linux-nat.h: New file.
437 * x86-linux-nat.h: Likewise.
438 * x86-linux-nat.c: Likewise.
439 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
440 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
441 * config/i386/linux64.mh (NATDEPFILES): Likewise.
442 * amd64-linux-nat.c (x86-linux-nat.h): New include.
443 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
444 (PTRACE_SETREGSET): Likewise.
445 (arch_lwp_info): Now in x86-linux-nat.c.
446 (have_ptrace_getregset): Now in x86-linux-nat.h.
447 (x86_linux_dr_get): Now in x86-linux-nat.c.
448 (x86_linux_dr_set): Likewise.
449 (x86_linux_dr_get_addr): Likewise.
450 (x86_linux_dr_get_control): Likewise.
451 (x86_linux_dr_get_status): Likewise.
452 (update_debug_registers_callback): Likewise.
453 (x86_linux_dr_set_control): Likewise.
454 (x86_linux_dr_set_addr): Likewise.
455 (x86_linux_prepare_to_resume): Likewise.
456 (x86_linux_new_thread): Likewise.
457 (x86_linux_new_fork): Likewise.
458 (x86_linux_get_thread_area): Likewise.
459 (super_post_startup_inferior): Likewise.
460 (x86_linux_child_post_startup_inferior): Likewise.
461 (AMD64_LINUX_USER64_CS): Likewise.
462 (AMD64_LINUX_X32_DS): Likewise.
463 (x86_linux_read_description): Likewise.
464 (x86_linux_enable_btrace): Likewise.
465 (x86_linux_disable_btrace): Likewise.
466 (x86_linux_teardown_btrace): Likewise.
467 (x86_linux_read_btrace): Likewise.
468 (x86_linux_create_target): Likewise.
469 (x86_linux_add_target): Likewise.
470 * i386-linux-nat.c (x86-linux-nat.h): New include.
471 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
472 (PTRACE_SETREGSET): Likewise.
473 (arch_lwp_info): Now in x86-linux-nat.c.
474 (have_ptrace_getregset): Now in x86-linux-nat.h.
475 (x86_linux_dr_get): Now in x86-linux-nat.c.
476 (x86_linux_dr_set): Likewise.
477 (x86_linux_dr_get_addr): Likewise.
478 (x86_linux_dr_get_control): Likewise.
479 (x86_linux_dr_get_status): Likewise.
480 (update_debug_registers_callback): Likewise.
481 (x86_linux_dr_set_control): Likewise.
482 (x86_linux_dr_set_addr): Likewise.
483 (x86_linux_prepare_to_resume): Likewise.
484 (x86_linux_new_thread): Likewise.
485 (x86_linux_new_fork): Likewise.
486 (x86_linux_get_thread_area): Likewise.
487 (super_post_startup_inferior): Likewise.
488 (x86_linux_child_post_startup_inferior): Likewise.
489 (AMD64_LINUX_USER64_CS): Likewise.
490 (AMD64_LINUX_X32_DS): Likewise.
491 (x86_linux_read_description): Likewise.
492 (x86_linux_enable_btrace): Likewise.
493 (x86_linux_disable_btrace): Likewise.
494 (x86_linux_teardown_btrace): Likewise.
495 (x86_linux_read_btrace): Likewise.
496 (x86_linux_create_target): Likewise.
497 (x86_linux_add_target): Likewise.
499 2014-07-11 Gary Benson <gbenson@redhat.com>
501 * amd64-linux-nat.c: Comment and whitespace changes.
502 * i386-linux-nat.c: Comment and whitespace changes.
504 2014-07-11 Gary Benson <gbenson@redhat.com>
506 * amd64-linux-nat.c (x86_linux_create_target): New function.
507 (x86_linux_add_target): Likewise.
508 (_initialize_amd64_linux_nat): Delegate to the above new functions.
509 * i386-linux-nat.c (x86_linux_create_target): New function.
510 (x86_linux_add_target): Likewise.
511 (_initialize_i386_linux_nat): Delegate to the above new functions.
513 2014-07-11 Gary Benson <gbenson@redhat.com>
515 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
516 (ps_get_thread_area): Delegate to the above in 32-bit mode.
517 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
518 (ps_get_thread_area): Delegate to the above.
520 2014-07-11 Gary Benson <gbenson@redhat.com>
522 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
523 x86_linux_read_description. All uses updated. amd64-specific
524 code conditionalized. Conditionalized i386-specific code added.
525 Redundant cast removed.
526 * i386-linux-nat.c (i386_linux_read_description): Renamed to
527 x86_linux_read_description. All uses updated. i386-specific
528 code conditionalized. Conditionalized amd64-specific code added.
529 One sizeof replaced with the actual type it is describing.
531 2014-07-11 Gary Benson <gbenson@redhat.com>
533 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
534 x86_linux_dr_get. All uses updated.
535 (amd64_linux_dr_set): Renamed to
536 x86_linux_dr_set. All uses updated.
537 (amd64_linux_dr_get_addr): Renamed to
538 x86_linux_dr_get_addr. All uses updated.
539 (amd64_linux_dr_get_control): Renamed to
540 x86_linux_dr_get_control. All uses updated.
541 (amd64_linux_dr_get_status): Renamed to
542 x86_linux_dr_get_status. All uses updated.
543 (amd64_linux_dr_set_control): Renamed to
544 x86_linux_dr_set_control. All uses updated.
545 (amd64_linux_dr_set_addr): Renamed to
546 x86_linux_dr_set_addr. All uses updated.
547 (amd64_linux_prepare_to_resume): Renamed to
548 x86_linux_prepare_to_resume. All uses updated.
549 (amd64_linux_new_thread): Renamed to
550 x86_linux_new_thread. All uses updated.
551 (amd64_linux_new_fork): Renamed to
552 x86_linux_new_fork. All uses updated.
553 (amd64_linux_child_post_startup_inferior): Renamed to
554 x86_linux_child_post_startup_inferior. All uses updated.
555 (amd64_linux_enable_btrace): Renamed to
556 x86_linux_enable_btrace. All uses updated.
557 (amd64_linux_disable_btrace): Renamed to
558 x86_linux_disable_btrace. All uses updated.
559 (amd64_linux_teardown_btrace): Renamed to
560 x86_linux_teardown_btrace. All uses updated.
561 (amd64_linux_read_btrace): Renamed to
562 x86_linux_read_btrace. All uses updated.
563 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
564 x86_linux_dr_get. All uses updated.
565 (i386_linux_dr_set): Renamed to
566 x86_linux_dr_set. All uses updated.
567 (i386_linux_dr_get_addr): Renamed to
568 x86_linux_dr_get_addr. All uses updated.
569 (i386_linux_dr_get_control): Renamed to
570 x86_linux_dr_get_control. All uses updated.
571 (i386_linux_dr_get_status): Renamed to
572 x86_linux_dr_get_status. All uses updated.
573 (i386_linux_dr_set_control): Renamed to
574 x86_linux_dr_set_control. All uses updated.
575 (i386_linux_dr_set_addr): Renamed to
576 x86_linux_dr_set_addr. All uses updated.
577 (i386_linux_prepare_to_resume): Renamed to
578 x86_linux_prepare_to_resume. All uses updated.
579 (i386_linux_new_thread): Renamed to
580 x86_linux_new_thread. All uses updated.
581 (i386_linux_new_fork): Renamed to
582 x86_linux_new_fork. All uses updated.
583 (i386_linux_child_post_startup_inferior): Renamed to
584 x86_linux_child_post_startup_inferior. All uses updated.
585 (i386_linux_enable_btrace): Renamed to
586 x86_linux_enable_btrace. All uses updated.
587 (i386_linux_disable_btrace): Renamed to
588 x86_linux_disable_btrace. All uses updated.
589 (i386_linux_teardown_btrace): Renamed to
590 x86_linux_teardown_btrace. All uses updated.
591 (i386_linux_read_btrace): Renamed to
592 x86_linux_read_btrace. All uses updated.
594 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
596 * remote.c (extended_remote_post_attach): New function.
597 (init_extended_remote_ops): Install it as to_post_attach method.
599 2014-07-09 Pedro Alves <palves@redhat.com>
601 * infcmd.c (attach_command_post_wait): Don't call
602 target_terminal_inferior here.
603 (attach_command): Call it here instead.
605 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
607 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
609 * c-varobj.c (c_is_path_expr_parent): New function, moved core
610 from varobj.c, with additional checks.
611 (c_varobj_ops): Fill in is_path_expr_parent field.
612 (cplus_varobj_ops): Fill in is_path_expr_parent field.
613 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
615 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
617 (varobj_default_is_path_expr_parent): New function.
618 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
619 (varobj_default_is_path_expr_parent): Declare new function.
621 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
623 * infcmd.c (finish_backward): Turn internal error into normal error.
625 2014-07-07 Pedro Alves <palves@redhat.com>
628 * remote.c (async_handle_remote_sigint)
629 (async_handle_remote_sigint_twice): Call
630 gdb_call_async_signal_handler instead of
631 mark_async_signal_handler.
633 2014-07-07 Tom Tromey <tromey@redhat.com>
635 * target-delegates.c: Rebuild.
636 * target.c (target_info_record): Remove.
637 * record.c (info_record_command): Unconditionally call
639 * target.h (struct target_ops) <to_info_record>: Use
640 TARGET_DEFAULT_IGNORE.
641 (target_info_record): Remove.
643 2014-07-07 Tom Tromey <tromey@redhat.com>
645 * target.h (struct target_ops) <to_get_thread_local_address>: Use
646 TARGET_DEFAULT_NORETURN.
647 * target.c (generic_tls_error): New function.
648 (target_translate_tls_address): Don't search target stack.
649 * target-delegates.c: Rebuild.
650 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
652 * linux-thread-db.c (thread_db_get_thread_local_address):
653 Unconditionally call beneath target.
655 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
657 * cli/cli-logging.c (pop_output_files): Assign targerr to
660 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
662 * MAINTAINERS (Write After Approval): Update my email address.
664 2014-07-02 Gary Benson <gbenson@redhat.com>
666 * proc-service.c (ps_xfer_memory): Update comment.
667 (ps_pstop): Remove unused function.
668 (ps_pcontinue): Likewise.
669 (ps_lstop): Likewise.
670 (ps_lcontinue): Likewise.
671 (ps_lgetxregsize): Likewise.
672 (ps_lgetxregs): Likewise.
673 (ps_lsetxregs): Likewise.
675 (ps_ptread): Likewise.
676 (ps_ptwrite): Likewise.
678 2014-07-01 Mark Wielaard <mjw@redhat.com>
680 * dwarf2read.c (add_array_cv_type): New function.
681 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
682 (read_tag_volatile_type): Likewise.
684 2014-07-01 Tom Tromey <tromey@redhat.com>
686 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
687 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
688 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
689 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
690 * command.h (cmd_cfunc_ftype): Move earlier.
691 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
692 (add_com, add_info): Use cmd_cfunc_ftype.
694 2014-06-30 Tom Tromey <tromey@redhat.com>
696 * symtab.c (operator_chars): Make parameters and return type
698 (file_matches): Make "files" const.
699 (struct search_symbols_data) <files>: Now const.
700 (search_symbols): Make "regexp" and "files" parameters const.
702 (symtab_symbol_info): Remove cast.
703 (rbreak_command): Update.
704 * symtab.h (search_symbols): Update.
706 2014-06-27 Yao Qi <yao@codesourcery.com>
708 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
709 Change parameter type to 'struct thread_info *'. Caller
711 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
713 * dummy-frame.c (struct dummy_frame_id): New.
714 (dummy_frame_id_eq): New function.
715 (struct dummy_frame) <id>: Change its type to 'struct
717 (dummy_frame_push): Add parameter ptid and save it in
719 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
721 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
723 (lookup_dummy_frame): Change parameter type to 'struct
724 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
725 instead of frame_id_eq.
726 (dummy_frame_pop): Add parameter ptid. Callers updated.
727 Update comments. Compose dummy_frame_id and pass it to
729 (dummy_frame_discard): Add parameter ptid.
730 (dummy_frame_sniffer): Compose dummy_frame_id and call
731 dummy_frame_id_eq instead of frame_id_eq.
732 (fprint_dummy_frames): Print ptid.
733 * dummy-frame.h: Remove comments.
734 (dummy_frame_push): Add ptid in declaration.
735 (dummy_frame_pop, dummy_frame_discard): Likewise.
737 2014-06-26 Tom Tromey <tromey@redhat.com>
739 * cli/cli-cmds.c (error_no_arg): Make "why" const.
740 * command.h (error_no_arg): Update.
742 2014-06-26 Tom Tromey <tromey@redhat.com>
744 * cli/cli-setshow.c (do_set_command): Make "arg" const.
745 (do_show_command): Make "arg" const.
746 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
748 2014-06-26 Tom Tromey <tromey@redhat.com>
750 * record-full.c (record_full_get_bookmark): Make "args" const.
751 (record_full_goto_bookmark): Make "raw_bookmark" const.
752 * record.c (record_goto): New function.
753 (cmd_record_goto): Use it. Now static.
754 * record.h (record_goto): Declare.
755 (cmd_record_goto): Remove declaration.
756 * target-delegates.c: Rebuild.
757 * target.h (struct target_ops) <to_get_bookmark,
758 to_goto_bookmark>: Make parameter const.
760 2014-06-26 Tom Tromey <tromey@redhat.com>
762 * defs.h (generic_load): Update.
763 * m32r-rom.c (m32r_load_gen): Make "filename" const.
764 * monitor.c (monitor_load): Make "args" const.
765 * remote-m32r-sdi.c (m32r_load): Make "args" const.
766 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
768 (mips_load): Make "file" const.
769 * remote-sim.c (gdbsim_load): Make "args" const.
770 * remote.c (remote_load): Make "name" const.
771 * symfile.c (generic_load): Make "args" const.
772 * target-delegates.c: Rebuild.
773 * target.c (target_load): Make "arg" const.
774 (debug_to_load): Make "args" const.
775 * target.h (struct target_ops) <to_load>: Make parameter const.
776 (target_load): Update.
778 2014-06-26 Tom Tromey <tromey@redhat.com>
781 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
782 (dwarf2_physname, read_partial_die)
783 (guess_partial_die_structure_name, fixup_partial_die)
784 (guess_full_die_structure_name, anonymous_struct_prefix)
785 (dwarf2_name): Use per-BFD obstack.
787 2014-06-26 Yao Qi <yao@codesourcery.com>
789 * dummy-frame.c (dummy_frame_sniffer): Move local variables
790 dummyframe and this_id into inner block below.
792 2014-06-26 Yao Qi <yao@codesourcery.com>
794 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
795 with "signal_pass[0]" in the initialization of signal_pass.
797 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
799 * record-btrace.c (record_btrace_generating_corefile)
800 (record_btrace_prepare_to_generate_core)
801 (record_btrace_done_generating_core): New.
802 (record_btrace_xfer_partial, record_btrace_fetch_registers)
803 (record_btrace_store_registers, record_btrace_prepare_to_store):
804 Forward request when generating a core file.
805 (record_btrace_open): Set record_btrace_generating_corefile to zero.
806 (init_record_btrace_ops): Set to_prepare_to_generate_core and
807 to_done_generating_core.
809 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
811 * target.h (target_ops) <to_prepare_to_generate_core>
812 <to_done_generating_core>: New.
813 (target_prepare_to_generate_core, target_done_generating_core): New.
814 * target.c (target_prepare_to_generate_core)
815 (target_done_generating_core): New.
816 * target-delegates.c: Regenerate.
817 * gcore.c: (write_gcore_file): Rename to ...
818 (write_gcore_file_1): ...this.
819 (write_gcore_file): Call target_prepare_to_generate_core
820 and target_done_generating_core.
822 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
824 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
825 * gcore.c (write_gcore_file): Free memory returned from
827 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
828 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
830 2014-06-24 Yao Qi <yao@codesourcery.com>
832 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
833 (arm_linux_init_abi): Set skip_trampoline_code with
834 gdbarch_skip_trampoline_code instead of
835 find_solib_trampoline_target.
837 2014-06-24 Yao Qi <yao@codesourcery.com>
839 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
840 arm_skip_bx_reg returns non-zero.
842 2014-06-24 Yao Qi <yao@codesourcery.com>
844 * arm-tdep.c (arm_skip_bx_reg): New function.
845 (arm_skip_stub): Call arm_skip_bx_reg.
847 2014-06-23 Don Breazeal <donb@codesourcery.com>
849 * MAINTAINERS: Add myself as write-after-approval maintainer.
851 2014-06-23 Pedro Alves <palves@redhat.com>
853 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
854 DR_CONTROL before setting DR0..DR3.
855 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
856 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
857 bits of DR_CONTROL related to the debug register slot being
858 disabled. If all slots are vacant, clear local slowdown as well,
859 and assert DR_CONTROL is 0.
861 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
863 * python/lib/gdb/command/xmethods.py
864 (get_method_matchers_in_loci): Lookup xmethod matchers in the
865 current progspace only if the string "progspace" matches LOCUS_RE.
867 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
869 Fix --with-system-readline with readline-6.3 patch 5.
870 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
871 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
874 2014-06-20 Tom Tromey <tromey@redhat.com>
876 * dwarf2read.c (dw2_get_real_path): Use correct type in
878 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
880 2014-06-20 Gary Benson <gbenson@redhat.com>
882 * common/gdb_thread_db.h: Moved to nat. All includes updated.
883 * common/glibc_thread_db.h: Likewise.
884 * common/i386-cpuid.h: Likewise.
885 * common/i386-gcc-cpuid.h: Likewise.
886 * common/linux-btrace.h: Likewise.
887 * common/linux-osdata.h: Likewise.
888 * common/linux-procfs.h: Likewise.
889 * common/linux-ptrace.h: Likewise.
890 * common/mips-linux-watch.h: Likewise.
891 * common/linux-btrace.c: Moved to nat.
892 * common/linux-osdata.c: Likewise.
893 * common/linux-procfs.c: Likewise.
894 * common/linux-ptrace.c: Likewise.
895 * common/mips-linux-watch.c: Likewise.
896 * nat/gdb_thread_db.h: Moved from common.
897 * nat/glibc_thread_db.h: Likewise.
898 * nat/i386-cpuid.h: Likewise.
899 * nat/i386-gcc-cpuid.h: Likewise.
900 * nat/linux-btrace.c: Likewise.
901 * nat/linux-btrace.h: Likewise.
902 * nat/linux-osdata.c: Likewise.
903 * nat/linux-osdata.h: Likewise.
904 * nat/linux-procfs.c: Likewise.
905 * nat/linux-procfs.h: Likewise.
906 * nat/linux-ptrace.c: Likewise.
907 * nat/linux-ptrace.h: Likewise.
908 * nat/mips-linux-watch.c: Likewise.
909 * nat/mips-linux-watch.h: Likewise.
910 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
911 (object file files): Reordered.
912 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
913 of glibc_thread_db.h.
915 2014-06-20 Gary Benson <gbenson@redhat.com>
917 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
918 (i386_dr_low_type): Moved to nat/i386-dregs.h.
919 (i386_dr_low): Likewise.
920 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
921 (i386_dr_low_set_addr): Likewise.
922 (i386_dr_low_get_addr): Likewise.
923 (i386_dr_low_can_set_control): Likewise.
924 (i386_dr_low_set_control): Likewise.
925 (i386_dr_low_get_control): Likewise.
926 (i386_dr_low_get_status): Likewise.
927 (i386_get_debug_register_length): Likewise.
928 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
929 (i386_dr_low): Likewise.
930 * nat/i386-dregs.c (i386-low.h): Remove include.
931 (i386-nat.h): Likewise.
932 (nat/i386-dregs.h): New include.
933 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
934 (i386_dr_low_set_addr): Likewise.
935 (i386_dr_low_get_addr): Likewise.
936 (i386_dr_low_can_set_control): Likewise.
937 (i386_dr_low_set_control): Likewise.
938 (i386_dr_low_get_control): Likewise.
939 (i386_dr_low_get_status): Likewise.
940 (i386_get_debug_register_length): Likewise.
941 (debug_hw_points): Likewise.
943 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
945 * Makefile.in (SFILES): Add d-exp.y.
946 (YYFILES): Add d-exp.c.
947 (YYOBJ): Add d-exp.o.
948 (local-maintainer-clean): Delete d-exp.c.
950 * d-lang.h (d_parse): New declaration.
951 (d_error): New declaration.
952 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
953 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
954 PREC_ORDER operators.
955 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
957 2014-06-19 Yao Qi <yao@codesourcery.com>
959 * gdbthread.h (any_running): Remove the declaration.
960 * thread.c (any_running): Remove.
962 2014-06-19 Yao Qi <yao@codesourcery.com>
964 * gdbthread.h (struct thread_info) <state>: Change its type to
965 'enum thread_state'. Update comments.
967 2014-06-19 Pedro Alves <palves@redhat.com>
969 * gdbthread.h (ALL_THREADS): Delete.
970 (ALL_NON_EXITED_THREADS): New macro.
971 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
972 instead of ALL_THREADS.
973 * infrun.c (find_thread_needs_step_over)
974 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
975 instead of ALL_THREADS.
976 * record-btrace.c (record_btrace_open)
977 (record_btrace_stop_recording, record_btrace_close)
978 (record_btrace_is_replaying, record_btrace_resume)
979 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
980 * remote.c (append_pending_thread_resumptions): Likewise.
981 * thread.c (thread_apply_all_command): Likewise.
983 2014-06-19 Gary Benson <gbenson@redhat.com>
985 * i386-nat.c (i386_stopped_by_watchpoint):
986 Use i386_dr_stopped_by_watchpoint.
987 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
988 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
990 2014-06-19 Gary Benson <gbenson@redhat.com>
992 * nat/i386-dregs.c: New file.
993 * Makefile.in (i386-dregs.o): New rule.
994 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
995 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
996 * config/i386/darwin.mh (NATDEPFILES): Likewise.
997 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
998 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
999 * config/i386/go32.mh (NATDEPFILES): Likewise.
1000 * config/i386/linux.mh (NATDEPFILES): Likewise.
1001 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1002 * config/i386/mingw.mh (NATDEPFILES): Likewise.
1003 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
1004 * i386-nat.h (debug_hw_points): New declaration.
1005 * i386-nat.c (breakpoint.h): Remove include.
1006 (command.h): Likewise.
1007 (target.h): Likewise.
1008 (gdb_assert.h): Likewise.
1009 (debug_hw_points): Made nonstatic.
1010 (debug_printf): Now in i386-dregs.c.
1011 (TARGET_HAS_DR_LEN_8): Likewise.
1012 (DR_CONTROL_SHIFT): Likewise.
1013 (DR_CONTROL_SIZE): Likewise.
1014 (DR_RW_EXECUTE): Likewise.
1015 (DR_RW_WRITE): Likewise.
1016 (DR_RW_READ): Likewise.
1017 (DR_RW_IORW): Likewise.
1018 (DR_LEN_1): Likewise.
1019 (DR_LEN_2): Likewise.
1020 (DR_LEN_4): Likewise.
1021 (DR_LEN_8): Likewise.
1022 (DR_LOCAL_ENABLE_SHIFT): Likewise.
1023 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
1024 (DR_ENABLE_SIZE): Likewise.
1025 (DR_LOCAL_SLOWDOWN): Likewise.
1026 (DR_GLOBAL_SLOWDOWN): Likewise.
1027 (DR_CONTROL_RESERVED): Likewise.
1028 (I386_DR_CONTROL_MASK): Likewise.
1029 (I386_DR_VACANT): Likewise.
1030 (I386_DR_LOCAL_ENABLE): Likewise.
1031 (I386_DR_GLOBAL_ENABLE): Likewise.
1032 (I386_DR_DISABLE): Likewise.
1033 (I386_DR_SET_RW_LEN): Likewise.
1034 (I386_DR_GET_RW_LEN): Likewise.
1035 (I386_DR_WATCH_HIT): Likewise.
1036 (i386_wp_op_t): Likewise.
1037 (i386_show_dr): Likewise.
1038 (i386_length_and_rw_bits): Likewise.
1039 (i386_insert_aligned_watchpoint): Likewise.
1040 (i386_remove_aligned_watchpoint): Likewise.
1041 (i386_handle_nonaligned_watchpoint): Likewise.
1042 (i386_update_inferior_debug_regs): Likewise.
1043 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
1044 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
1045 (i386_region_ok_for_watchpoint):
1046 Use i386_dr_region_ok_for_watchpoint.
1047 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
1049 2014-06-19 Gary Benson <gbenson@redhat.com>
1051 * i386-nat.c (i386_insert_hw_breakpoint): Use
1052 i386_insert_watchpoint.
1053 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
1055 2014-06-19 Gary Benson <gbenson@redhat.com>
1057 * i386-nat.c (i386_dr_show): Renamed to
1058 i386_show_dr and made static. All uses updated.
1059 (i386_dr_length_and_rw_bits): Renamed to
1060 i386_length_and_rw_bits and made static.
1062 (i386_dr_insert_aligned_watchpoint): Renamed to
1063 i386_insert_aligned_watchpoint and made static.
1065 (i386_dr_remove_aligned_watchpoint): Renamed to
1066 i386_remove_aligned_watchpoint and made static.
1068 (i386_dr_update_inferior_debug_regs): Renamed to
1069 i386_update_inferior_debug_regs and made static.
1071 * nat/i386-dregs.h (i386_dr_show): Removed.
1072 (i386_dr_length_and_rw_bits): Likewise.
1073 (i386_dr_insert_aligned_watchpoint): Likewise.
1074 (i386_dr_remove_aligned_watchpoint): Likewise.
1075 (i386_dr_update_inferior_debug_regs): Likewise.
1077 2014-06-19 Gary Benson <gbenson@redhat.com>
1079 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
1080 * configure: Regenerate.
1081 * config.in: Likewise.
1082 * main.c (signal.h): New include.
1083 (setup_alternate_signal_stack): New function.
1084 (captured_main): Call the above.
1085 * cp-support.c (signal.h): New include.
1086 (catch_demangler_crashes): New flag.
1087 (SIGJMP_BUF): New define.
1088 (SIGSETJMP): Likewise.
1089 (SIGLONGJMP): Likewise.
1090 (gdb_demangle_jmp_buf): New static global.
1091 (gdb_demangle_attempt_core_dump): Likewise.
1092 (gdb_demangle_signal_handler): New function.
1093 (gdb_demangle): If catch_demangler_crashes is set, install the
1094 above signal handler before calling bfd_demangle, and restore
1095 the original signal handler afterwards. Display the offending
1096 symbol and call demangler_warning the first time a segmentation
1098 (_initialize_cp_support): New maint set/show command.
1100 2014-06-19 Gary Benson <gbenson@redhat.com>
1102 * utils.h (resource_limit_kind): New enum.
1103 (can_dump_core): New declaration.
1104 (warn_cant_dump_core): Likewise.
1105 (dump_core): Likewise.
1106 * utils.c (dump_core): Made nonstatic. Added new
1107 parameter "limit_kind".
1108 (can_dump_core): Made nonstatic. Moved printing code to...
1109 (warn_cant_dump_core): New function.
1110 (can_dump_core_warn): Likewise.
1111 (internal_vproblem): Replace calls to can_dump_core with
1112 calls to can_dump_core_warn. Supply new argument to each.
1114 2014-06-19 Gary Benson <gbenson@redhat.com>
1116 * utils.h (demangler_vwarning): New declaration.
1117 (demangler_warning): Likewise.
1118 * utils.c (struct internal_problem)
1119 <user_settable_should_quit>: New field.
1120 <user_settable_should_dump_core>: Likewise
1121 (internal_error_problem): Add values for above new fields.
1122 (internal_warning_problem): Likewise.
1123 (demangler_warning_problem): New static global.
1124 (demangler_vwarning): New function.
1125 (demangler_warning): Likewise.
1126 (add_internal_problem_command): Selectively add commands.
1127 (_initialize_utils): New internal problem command.
1128 * maint.c (maintenance_demangler_warning): New function.
1129 (_initialize_maint_cmds): New command.
1131 2014-06-18 Tom Tromey <tromey@redhat.com>
1133 * f-valprint.c (info_common_command_for_block): Update.
1134 * symtab.h (struct general_symbol_info) <common_block>: Now
1137 2014-06-18 Tom Tromey <tromey@redhat.com>
1139 * symtab.h (struct symtab) <blockvector>: Now const.
1140 * ada-lang.c (ada_add_global_exceptions): Update.
1141 * buildsym.c (augment_type_symtab): Update.
1142 * dwarf2read.c (dw2_lookup_symbol): Update.
1143 * jit.c (finalize_symtab): Update.
1144 * jv-lang.c (add_class_symtab_symbol): Update.
1145 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
1147 * objfiles.c (objfile_relocate1): Update.
1148 * psymtab.c (lookup_symbol_aux_psymtabs)
1149 (maintenance_check_psymtabs): Update.
1150 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1152 * spu-tdep.c (spu_catch_start): Update.
1153 * symmisc.c (dump_symtab_1): Update.
1154 * symtab.c (lookup_global_symbol_from_objfile)
1155 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1156 (basic_lookup_transparent_type_quick)
1157 (basic_lookup_transparent_type, find_pc_sect_symtab)
1158 (find_pc_sect_line, search_symbols): Update.
1159 * block.c (find_block_in_blockvector): Make "bl" const.
1160 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1162 (blockvector_contains_pc): Make "bv" const.
1163 (block_for_pc_sect): Update.
1164 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1165 (blockvector_contains_pc): Update.
1166 * breakpoint.c (resolve_sal_pc): Update.
1167 * inline-frame.c (block_starting_point_at): Update.
1169 2014-06-18 Tom Tromey <tromey@redhat.com>
1171 * completer.c (complete_line): Make "line_buffer" const.
1172 * completer.h (complete_line): Update.
1174 2014-06-18 Tom Tromey <tromey@redhat.com>
1176 * symtab.c (add_macro_name): Remove unneeded cast.
1178 2014-06-18 Tom Tromey <tromey@redhat.com>
1180 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1181 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1183 2014-06-18 Tom Tromey <tromey@redhat.com>
1185 * probe.c (info_probes_for_ops): Make "arg" const.
1186 * probe.h (info_probes_for_ops): Update.
1188 2014-06-18 Tom Tromey <tromey@redhat.com>
1190 * varobj.c (varobj_create): Update.
1191 * valops.c (value_of_this): Update.
1192 * tracepoint.c (add_local_symbols, scope_info): Update.
1193 * symtab.h (struct general_symbol_info) <block>: Now const.
1194 * symtab.c (skip_prologue_sal)
1195 (default_make_symbol_completion_list_break_on)
1196 (skip_prologue_using_sal): Update.
1197 * stack.h (iterate_over_block_locals)
1198 (iterate_over_block_local_vars): Update.
1199 * stack.c (print_frame_args): Update.
1200 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1202 (get_selected_block): Make return type const.
1203 * python/py-frame.c (frapy_block): Update.
1204 * python/py-block.c (gdbpy_block_for_pc): Update.
1205 * p-exp.y (%union) <bval>: Now const.
1206 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1207 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1208 * m2-exp.y (%union) <bval>: Now const.
1209 * linespec.c (get_current_search_block): Make return type const.
1210 (create_sals_line_offset, find_label_symbols): Update.
1211 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1213 (block_starting_point_at): Make "block" const.
1214 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1215 (check_exception_resume): Update.
1216 * guile/scm-frame.c (gdbscm_frame_block): Update.
1217 * guile/scm-block.c (gdbscm_lookup_block): Update.
1218 * frame.h (get_frame_block): Update.
1219 (get_selected_block): Make return type const.
1220 * frame.c (frame_id_inner): Update.
1221 * f-valprint.c (info_common_command_for_block)
1222 (info_common_command): Update.
1223 * dwarf2loc.c (dwarf2_find_location_expression)
1224 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1225 (locexpr_describe_location_piece): Update.
1226 * c-exp.y (%union) <bval>: Now const.
1227 * breakpoint.c (resolve_sal_pc): Update.
1228 * blockframe.c (get_frame_block):Make return type const.
1229 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1230 (block_innermost_frame): Update.
1231 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1232 (block_for_pc, block_for_pc_sect): Update.
1233 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1235 (block_for_pc_sect, block_for_pc): Make return type const.
1236 * ax-gdb.c (gen_expr): Update.
1237 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1238 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1239 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1240 (ada_read_var_value): Update.
1241 * ada-exp.y (struct name_info) <block>: Now const.
1243 (block_lookup): Constify.
1245 2014-06-18 Gary Benson <gbenson@redhat.com>
1247 * nat/i386-dregs.h: New file.
1248 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1249 * i386-nat.h (i386-dregs.h): New include.
1250 (DR_FIRSTADDR): Now in i386-dregs.h.
1251 (DR_LASTADDR): Likewise.
1252 (DR_NADDR): Likewise.
1253 (DR_STATUS): Likewise.
1254 (DR_CONTROL): Likewise.
1255 (i386_debug_reg_state): Likewise.
1256 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1258 2014-06-18 Don Breazeal <donb@codesourcery.com>
1260 * breakpoint.c (set_longjmp_breakpoint): Call
1261 momentary_breakpoint_from_master with additional argument.
1262 (set_longjmp_breakpoint_for_call_dummy): Call
1263 momentary_breakpoint_from_master with additional argument.
1264 (set_std_terminate_breakpoint): Call
1265 momentary_breakpoint_from_master with additional argument.
1266 (momentary_breakpoint_from_master): Add argument to function
1267 definition and use it to initialize structure member flag.
1268 (clone_momentary_breakpoint): Call
1269 momentary_breakpoint_from_master with additional argument.
1270 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1271 member flags set in momentary_breakpoint_from_master.
1273 2014-06-18 Gary Benson <gbenson@redhat.com>
1275 * i386-nat.c (i386_show_dr): Renamed to
1276 i386_dr_show and made nonstatic. All uses updated.
1277 (i386_length_and_rw_bits): Renamed to
1278 i386_dr_length_and_rw_bits and made nonstatic.
1280 (i386_insert_aligned_watchpoint): Renamed to
1281 i386_dr_insert_aligned_watchpoint and made nonstatic.
1283 (i386_remove_aligned_watchpoint): Renamed to
1284 i386_dr_remove_aligned_watchpoint and made nonstatic.
1286 (i386_update_inferior_debug_regs): Renamed to
1287 i386_dr_update_inferior_debug_regs and made nonstatic.
1290 2014-06-18 Gary Benson <gbenson@redhat.com>
1292 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1293 (i386_dr_low_can_set_control): Likewise.
1294 (i386_dr_low_set_addr): Likewise.
1295 (i386_dr_low_set_control): Likewise.
1296 (i386_dr_low_get_addr): Likewise.
1297 (i386_dr_low_get_status): Likewise.
1298 (i386_dr_low_get_control): Likewise.
1299 (i386_insert_aligned_watchpoint): Use new macros.
1300 (i386_update_inferior_debug_regs): Likewise.
1301 (i386_stopped_data_address): Likewise.
1303 2014-06-18 Gary Benson <gbenson@redhat.com>
1305 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1306 New parameter. All uses updated.
1308 2014-06-18 Gary Benson <gbenson@redhat.com>
1310 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1313 2014-06-18 Gary Benson <gbenson@redhat.com>
1315 * i386-nat.c (debug_printf): New macro.
1316 (i386_get_debug_register_length): Likewise.
1317 (TARGET_HAS_DR_LEN_8): Use above macro.
1318 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1319 and printf_unfiltered. Use phex to format values.
1321 2014-06-18 Gary Benson <gbenson@redhat.com>
1323 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1326 2014-06-18 Gary Benson <gbenson@redhat.com>
1328 * i386-nat.c: Comment changes.
1330 2014-06-18 Gary Benson <gbenson@redhat.com>
1332 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1334 2014-06-18 Gary Benson <gbenson@redhat.com>
1336 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1337 (i386_insert_aligned_watchpoint): Likewise.
1338 (i386_remove_aligned_watchpoint): Likewise.
1339 (i386_handle_nonaligned_watchpoint): Likewise.
1341 2014-06-18 Gary Benson <gbenson@redhat.com>
1343 * i386-nat.c: Whitespace changes.
1345 2014-06-17 Samuel Bronson <naesten@gmail.com>
1347 * MAINTAINERS: Update Roland McGrath's email address.
1348 Thanks to Sergio Durigan Junior for pointing out that he left
1349 Red Hat a while ago, and giving me a current address.
1351 2014-06-17 Tom Tromey <tromey@redhat.com>
1353 * utils.h (savestring): Remove declaration.
1355 2014-06-17 Tom Tromey <tromey@redhat.com>
1357 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1359 2014-06-16 Keith Seitz <keiths@redhat.com>
1362 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1363 to update the varobj if inferior_ptid is null_ptid.
1365 2014-06-16 Tom Tromey <tromey@redhat.com>
1367 * target.h (struct target_ops) <to_info_proc>: Make parameter
1369 (target_info_proc): Update.
1370 * target.c (target_info_proc): Make "args" const.
1371 * procfs.c (procfs_info_proc): Update.
1372 * linux-tdep.c (linux_info_proc): Update.
1373 (linux_core_info_proc_mappings): Make "args" const.
1374 (linux_core_info_proc): Update.
1375 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1376 * gdbarch.c: Rebuild.
1377 * gdbarch.h: Rebuild.
1378 * corelow.c (core_info_proc): Update.
1380 2014-06-16 Tom Tromey <tromey@redhat.com>
1382 * target.h (struct target_ops) <to_disconnect>: Make parameter
1384 (target_disconnect): Update.
1385 * target.c (target_disconnect): Make "args" const.
1386 * target-delegates.c: Rebuild.
1387 * remote.c (remote_disconnect): Update.
1388 * record.h (record_disconnect): Update.
1389 * record.c (record_disconnect): Update.
1390 * inf-child.c (inf_child_disconnect): Update.
1392 2014-06-16 Tom Tromey <tromey@redhat.com>
1394 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1395 * target.c (debug_to_rcmd, default_rcmd): Update.
1396 * target-delegates.c: Rebuild.
1397 * remote.c (remote_rcmd): Update.
1398 * monitor.c (monitor_rcmd): Update.
1400 2014-06-16 Pedro Alves <palves@redhat.com>
1402 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1403 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1404 have OBJF_SHARED set.
1405 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1406 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1407 instead of OBJF_USERLOADED.
1408 * objfiles.h (OBJF_SHARED): Update comment.
1409 (userloaded_objfile_contains_address_p): Rename to ...
1410 (shared_objfile_contains_address_p): ... this, and update
1412 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1414 (remove_symbol_file_command): Skip objfiles that don't have
1417 2014-06-16 Tom Tromey <tromey@redhat.com>
1419 * minsyms.h (prim_record_minimal_symbol)
1420 (prim_record_minimal_symbol_and_info): Update comments.
1422 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1424 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1425 or --without-guile, according to how GDB was built.
1427 2014-06-13 Tom Tromey <tromey@redhat.com>
1429 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1431 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1433 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1435 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1436 help_list.Pass all_commands, not -1, to help_list.
1437 * cli/cli-dump.c (dump_command, append_command)
1438 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1439 (binary_dump_command, binary_append_command): Pass all_commands,
1440 not -1, to help_list.
1441 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1443 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1445 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1447 * top.c (set_history): Pass all_commands, not -1, to help_list.
1448 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1449 all_commands, not -1, to help_list.
1450 * symfile.c (overlay_command): Pass all_commands, not -1, to
1452 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1454 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1456 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1458 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1459 not -1, to help_list.
1460 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1461 not -1, to help_list.
1462 * maint.c (maintenance_command, maintenance_info_command)
1463 (maintenance_print_command, maintenance_set_cmd): Pass
1464 all_commands, not -1, to help_list.
1465 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1467 * language.c (set_check): Pass all_commands, not -1, to help_list.
1468 * infcmd.c (unset_command): Pass all_commands, not -1, to
1470 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1472 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1474 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1476 * breakpoint.c (save_command): Pass all_commands, not -1, to
1478 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1479 all_commands, not -1, to help_list.
1481 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1483 * regcache.c (struct register_to_invalidate): New structure.
1484 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1486 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1488 2014-06-12 Yao Qi <yao@codesourcery.com>
1490 * varobj.c (varobj_get_num_children): Call
1491 varobj_is_dynamic_p.
1492 (varobj_list_children): Likewise.
1493 (varobj_update): Likewise. Update comments.
1495 2014-06-12 Yao Qi <yao@codesourcery.com>
1497 * varobj.c (varobj_pretty_printed_p): Rename to ...
1498 (varobj_is_dynamic_p): ... this. New function.
1499 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1500 (varobj_is_dynamic_p): Declare.
1501 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1502 (mi_print_value_p, varobj_update_one): Likewise.
1504 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1505 Yao Qi <yao@codesourcery.com>
1507 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1508 (varobj_get_iterator): Wrap up code for pretty-printer by
1509 "#if HAVE_PYTHON" and "#endif".
1510 (update_dynamic_varobj_children): Likewise.
1512 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1513 Yao Qi <yao@codesourcery.com>
1515 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1516 gdb_python_initialized is false. Move some code from varobj.c.
1517 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1518 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1519 (struct varobj_item): Moved to varobj-iter.h".
1520 (varobj_clear_saved_item): New function.
1521 (update_dynamic_varobj_children): Move python-related code to
1523 (free_variable): Call varobj_clear_saved_item and
1526 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1527 Yao Qi <yao@codesourcery.com>
1529 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1530 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1531 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1532 (py-varobj.o): New rule.
1533 * python/py-varobj.c: New file.
1534 * python/python-internal.h (py_varobj_get_iterator): Declare.
1535 * varobj-iter.h: New file.
1536 * varobj.c: Include "varobj-iter.h"
1537 (struct varobj) <child_iter>: Change its type from "PyObject *"
1538 to "struct varobj_iter *".
1539 <saved_item>: Likewise.
1540 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1541 [HAVE_PYTHON] (varobj_get_iterator): New function.
1542 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1543 python-specific code to python/py-varobj.c.
1544 (install_visualizer): Call varobj_iter_delete instead of
1546 * varobj.h (varobj_ensure_python_env): Declare.
1548 2014-06-12 Yao Qi <yao@codesourcery.com>
1550 * varobj.c (struct varobj_item): New structure.
1551 (create_child_with_value): Update declaration.
1552 (varobj_add_child): Replace arguments 'name' and 'value' with
1553 'item'. All callers updated.
1554 (install_dynamic_child): Likewise.
1555 (update_dynamic_varobj_children): Likewise.
1556 (varobj_add_child): Likewise.
1557 (create_child_with_value): Likewise.
1559 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1561 * NEWS: Create a new section for the next release branch.
1562 Rename the section of the current branch, now that it has
1565 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1567 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1568 * version.in: Bump version to 7.8.50.DATE-cvs.
1570 2014-06-11 Pedro Alves <palves@redhat.com>
1573 * ser-mingw.c (net_windows_socket_check_pending): New function.
1574 (net_windows_select_thread): Ignore spurious wakeups. Use
1575 net_windows_socket_check_pending.
1576 (net_windows_wait_handle): Check for pending events with
1577 ioctlsocket, through net_windows_socket_check_pending, instead of
1578 checking the socket's event.
1580 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1582 * python/python-internal.h (gdb_PyObject_GetAttrString)
1583 (gdb_PyObject_HasAttrString): New inline function definitions.
1584 * py-value.c (get_field_flag): Remove the now unnecessary cast to
1585 char * of the second argument to PyObject_GetAttrString.
1587 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1589 * serial.c (serial_write): Fix index of character to be printed
1590 in call to serial_logchar when serial debug traces are enabled.
1592 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1594 * gdbtypes (resolve_dynamic_range): Add function description.
1596 2014-06-09 Pedro Alves <palves@redhat.com>
1598 * linux-nat.c (linux_child_follow_fork): Initialize status with
1599 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
1600 inner block. Only pass the signal to PTRACE_DETACH if in pass
1603 2014-06-09 Gary Benson <gbenson@redhat.com>
1605 * common/signals.c (gdb_signal_from_host): Reorder to separate
1606 the always-available ANSI-standard signals from the signals that
1608 (do_gdb_signal_to_host): Likewise.
1609 * proc-events.c (signal_table): Likewise.
1611 2014-06-08 Hui Zhu <hui@codesourcery.com>
1613 * common/linux-ptrace.c (linux_disable_event_reporting): New
1615 * common/linux-ptrace.h (linux_disable_event_reporting): New
1617 * linux-nat.c (linux_child_follow_fork): Do a single step before
1620 2014-06-07 Keith Seitz <keiths@redhat.com>
1624 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1625 from symbol_matches_domain in symtab.c. All local callers
1626 of symbol_matches_domain updated.
1627 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1628 search STRUCT_DOMAIN.
1629 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1630 independently. standard_lookup will do that automatically.
1631 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1632 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1633 (cp_lookup_symbol_in_namespace): Likewise.
1634 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1635 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1636 may return a STRUCT_DOMAIN match.
1637 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1638 * cp-support.c: Include language.h.
1639 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1641 * psymtab.c (match_partial_symbol): Compare the requested
1642 domain with the symbol's domain directly.
1643 (lookup_partial_symbol): Likewise.
1644 * symtab.c (lookup_symbol_in_language): Explain when/why
1645 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1646 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1647 appropriate languages.
1648 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1649 and moved to ada-lang.c
1650 (lookup_block_symbol): Explain that this function only returns
1651 symbol matching the requested DOMAIN.
1652 Compare the requested domain with the symbol's domain directly.
1653 (iterate_over_symbols): Compare the requested domain with the
1654 symbol's domain directly.
1655 * symtab.h (symbol_matches_domain): Remove.
1657 2014-06-06 Doug Evans <xdje42@gmail.com>
1659 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
1660 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
1661 (gdbscm_guile_version_is_at_least): Declare.
1662 (gdbscm_scm_string_to_int): Declare.
1663 * guile/guile.c (gdbscm_guile_major_version): New global.
1664 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
1665 (guile_datadir): New static global.
1666 (gdbscm_guile_data_directory): New function.
1667 (initialize_scheme_side): Update.
1668 (misc_guile_functions): Add guile-data-directory.
1669 (initialize_gdb_module): Fetch guile version number.
1670 * guile/lib/gdb.scm: Remove call to add-to-load-path.
1671 * guile/lib/gdb/init.scm (%initialize!): Ditto.
1672 * guile/lib/gdb/boot.scm: Use guile-data-directory.
1673 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
1675 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
1676 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
1677 * guile/scm-value.c (gdbscm_value_to_string): Only call
1678 scm_port_conversion_strategy if Guile version >= 2.0.6.
1680 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
1682 * main.c (print_gdb_help): Add -q and --silent.
1684 2014-06-06 Gary Benson <gbenson@redhat.com>
1686 * common/signals.c: Remove preprocessor conditionals for
1687 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
1688 SIGSEGV and SIGTERM.
1689 * proc-events.c: Likewise.
1691 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
1693 * symfile.c (symfile_free_objfile): Remove restriction to
1695 * symfile-mem.c (symbol_file_add_from_memory): Call
1696 add_target_sections_of_objfile.
1698 2014-06-05 Ludovic Courtès <ludo@gnu.org>
1700 * guile/scm-value.c (gdbscm_history_append_x): Use
1701 'vlscm_get_value_smob_arg_unsafe' instead of
1702 'vlscm_scm_to_value'.
1704 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
1707 * utils.c (printchar): Don't escape at all if quoter is NUL.
1708 Update function documentation to clarify effect of parameter
1710 * remote.c (escape_buffer): Pass '\\' as the quoter to
1711 fputstrn_unfiltered.
1712 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
1713 generate the output.
1714 (mi_solib_unloaded): Same.
1716 2014-06-05 Joel Brobecker <brobecker@adacore.com>
1718 * development.sh: Delete.
1719 * Makefile.in (config.status): Adjust dependency on development.sh.
1720 * configure.ac: Adjust development.sh source call.
1721 * configure: Regenerate.
1723 2014-06-04 Doug Evans <xdje42@gmail.com>
1725 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
1726 is_scheme_bkpt, spec.
1727 (bpscm_make_breakpoint_smob): Initialize new members.
1728 (gdbscm_create_breakpoint_x): Split into two ...
1729 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
1730 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
1731 (scheme_function breakpoint_functions): Update.
1732 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
1733 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
1734 register-breakpoint!.
1736 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
1739 * mem-break.c (z_type_supported): Return zero if
1740 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
1742 2014-06-04 Tom Tromey <tromey@redhat.com>
1744 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1745 value_from_contents_and_address_unresolved.
1746 (ada_template_to_fixed_record_type_1): Likewise.
1747 (ada_which_variant_applies): Likewise.
1748 * value.h (value_from_contents_and_address_unresolved): Declare.
1749 * value.c (value_from_contents_and_address_unresolved): New
1751 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
1752 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
1753 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
1755 2014-06-04 Tom Tromey <tromey@redhat.com>
1757 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
1759 2014-06-04 Tom Tromey <tromey@redhat.com>
1761 * procfs.c (procfs_attach): Make "args" const.
1762 * windows-nat.c (windows_attach): Make "args" const.
1763 * nto-procfs.c (procfs_attach): Make "args" const.
1764 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
1765 * go32-nat.c (go32_attach): Make "args" const.
1766 * gnu-nat.c (gnu_attach): Make "args" const.
1767 * darwin-nat.c (darwin_attach): Make "args" const.
1768 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
1769 * linux-nat.c (linux_nat_attach): Make "args" const.
1770 * remote.c (extended_remote_attach_1, extended_remote_attach):
1772 * target.h (struct target_ops) <to_attach>: Make "args" const.
1773 (find_default_attach): Likewise.
1774 * utils.c (parse_pid_to_attach): Make "args" const.
1775 * utils.h (parse_pid_to_attach): Update.
1777 2014-06-04 Tom Tromey <tromey@redhat.com>
1779 * target-delegates.c: Rebuild.
1780 * target.c (default_thread_address_space): New function.
1781 (target_thread_address_space): Simplify.
1782 * target.h (struct target_ops) <to_thread_address_space>: Add
1783 TARGET_DEFAULT_FUNC.
1785 2014-06-04 Doug Evans <xdje42@gmail.com>
1787 * guile/scm-type.c (type_smob): Remove duplicate typedef.
1789 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
1791 * record-btrace.c: Include event-loop.h and inf-loop.h.
1792 (record_btrace_resume_exec_dir)
1793 (record_btrace_async_inferior_event_handler)
1794 (record_btrace_handle_async_inferior_event): New.
1795 (record_btrace_open): Create async event handler.
1796 (record_btrace_close): Delete async event handler.
1797 (record_btrace_resume): Set record_btrace_resume_exec_dir,
1798 Mark async event handler.
1799 (record_btrace_execution_direction): New.
1800 (init_record_btrace_ops): Initialize to_execution_direction.
1802 2014-06-03 Doug Evans <xdje42@gmail.com>
1804 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
1805 (gdbscm_make_parameter): Ditto.
1807 2014-06-03 Doug Evans <dje@google.com>
1809 * exec.c (exec_close_1): Call clear_section_table instead of
1810 resize_section_table.
1811 (clear_section_table): New function.
1812 (resize_section_table): Make static. Rename arg num_added to
1814 * exec.h (clear_section_table): Declare.
1815 (resize_section_table): Delete.
1816 * progspace.c (release_program_space): Call clear_section_table
1817 instead of resize_section_table.
1819 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1821 * NEWS (Python Scripting): Add entry about the new xmethods
1824 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1826 * python/py-xmethods.c: New file.
1827 * python/py-objfile.c (objfile_object): New field 'xmethods'.
1828 (objfpy_dealloc): XDECREF on the new xmethods field.
1829 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
1831 (objfpy_get_xmethods): New function.
1832 (objfile_getset): New entry 'xmethods'.
1833 * python/py-progspace.c (pspace_object): New field 'xmethods'.
1834 (pspy_dealloc): XDECREF on the new xmethods field.
1835 (pspy_new, pspace_to_pspace_object): Initialize xmethods
1837 (pspy_get_xmethods): New function.
1838 (pspace_getset): New entry 'xmethods'.
1839 * python/python-internal.h: Add declarations for new functions.
1840 * python/python.c (_initialize_python): Invoke
1841 gdbpy_initialize_xmethods.
1842 * python/lib/gdb/__init__.py (xmethods): New
1844 * python/lib/gdb/xmethod.py: New file.
1845 * python/lib/gdb/command/xmethods.py: New file.
1847 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1849 * eval.c (evaluate_subexp_standard): Call the xmethod if the
1850 best match method returned by find_overload_match is an xmethod.
1851 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
1852 the best matching operator returned by find_overload_match is an
1854 * valops.c: #include "extension.h".
1855 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
1856 Return void. The list of matching source methods is returned in
1857 "fn_list" and a vector of matching debug method workers is
1858 returned in "xm_worker_vec". Update all callers.
1859 (value_find_oload_method_list): Likewise.
1860 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
1861 non-NULL, then the index of the best matching method in this
1862 vector is returned. Update all callers.
1863 (find_overload_match): Include xmethods while performing overload
1866 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1868 * defs.h (enum lval_type): New enumerator "lval_xcallable".
1869 * extension-priv.h (struct extension_language_ops): Add the
1871 * extension.c (new_xmethod_worker, clone_xmethod_worker,
1872 get_matching_xmethod_workers, get_xmethod_argtypes,
1873 invoke_xmethod, free_xmethod_worker,
1874 free_xmethod_worker_vec): New functions.
1875 * extension.h: #include "common/vec.h".
1876 New function declarations.
1877 (struct xmethod_worker): New struct.
1878 (VEC (xmethod_worker_ptr)): New vector type.
1879 (xmethod_worker_ptr): New typedef.
1880 (xmethod_worker_vec): Likewise.
1881 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
1883 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
1884 (struct builtin_type): New field "xmethod".
1885 * valarith.c (value_ptradd): Assert that the value argument is not
1887 * valops.c (value_must_coerce_to_target): Return 0 for
1888 lval_xcallable values.
1889 * value.c (struct value): New field XM_WORKER in the field
1891 (value_address, value_raw_address): Return 0 for lval_xcallable
1893 (set_value_address): Assert that the value is not an
1895 (value_free): Free the associated xmethod worker when freeing
1896 lval_xcallable values.
1897 (set_value_component_location): Assert that the WHOLE value is not
1899 (value_of_xmethod, call_xmethod): New functions.
1900 * value.h: Declare "struct xmethod_worker".
1901 Declare new functions value_of_xmethod, call_xmethod.
1903 2014-06-03 Joel Brobecker <brobecker@adacore.com>
1904 Pedro Alves <palves@redhat.com>
1906 PR breakpoints/17000
1907 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
1908 New function, extracted from software_breakpoint_inserted_here_p.
1909 (software_breakpoint_inserted_here_p): Replace factored out code
1910 by call to find_non_raw_software_breakpoint_inserted_here.
1911 (bp_target_info_copy_insertion_state): New function.
1912 (bkpt_insert_location): Handle the case of a single-step
1913 breakpoint already inserted at the same address.
1914 (bkpt_remove_location): Handle the case of a single-step
1915 breakpoint still inserted at the same address.
1916 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
1917 breakpoint already inserted at the same address.
1918 (deprecated_remove_raw_breakpoint): Handle the case of a
1919 non-raw breakpoint still inserted at the same address.
1920 (find_single_step_breakpoint): New function, extracted from
1921 single_step_breakpoint_inserted_here_p.
1922 (find_single_step_breakpoint): New function,
1923 factored out from single_step_breakpoint_inserted_here_p.
1924 (single_step_breakpoint_inserted_here_p): Reimplement.
1926 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
1928 Pushed by Joel Brobecker <brobecker@adacore.com>
1929 * source.c (show_substitute_path_command): Fix display of matching
1932 2014-06-03 Gary Benson <gbenson@redhat.com>
1934 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
1936 2014-06-02 Doug Evans <xdje42@gmail.com>
1938 Add parameter support for Guile.
1939 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
1940 (SUBDIR_GUILE_SRCS): Add scm-param.c.
1941 (scm-param.o): New rule.
1942 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
1943 (gdbscm_misc_error): Declare.
1944 (gdbscm_canonicalize_command_name): Declare.
1945 (gdbscm_scm_to_host_string): Declare.
1946 (gdbscm_scm_from_host_string): Declare.
1947 (gdbscm_initialize_parameters): Declare.
1948 * guile/guile.c (initialize_gdb_module): Call
1949 gdbscm_initialize_parameters.
1950 * guile/lib/gdb.scm: Export parameter symbols.
1951 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
1952 cmdscm_canonicalize_name and made public. All callers updated.
1953 * guile/scm-exception.c (gdbscm_misc_error): New function.
1954 * guile/scm-param.c: New file.
1955 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
1956 (gdbscm_scm_to_host_string): New function.
1957 (gdbscm_scm_from_host_string): New function.
1958 * scm-utils.c (gdbscm_gc_dup_argv): New function.
1960 2014-06-02 Doug Evans <xdje42@gmail.com>
1962 Add command support for Guile.
1963 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
1964 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
1965 (scm-cmd.o): New rule.
1966 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
1967 (gdbscm_user_error_p): Declare.
1968 (gdbscm_parse_command_name): Declare.
1969 (gdbscm_valid_command_class_p): Declare.
1970 (gdbscm_initialize_commands): Declare.
1971 * guile/guile.c (initialize_gdb_module): Call
1972 gdbscm_initialize_commands.
1973 * guile/lib/gdb.scm: Export command symbols.
1974 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
1975 (throw-user-error): New function.
1976 * guile/scm-cmd.c: New file.
1977 * guile/scm-exception.c (user_error_symbol): New static global.
1978 (gdbscm_user_error_p): New function.
1979 (gdbscm_initialize_exceptions): Set user_error_symbol.
1980 * scm-utils.c (gdbscm_gc_xstrdup): New function.
1982 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
1984 * top.c (command_loop): Handle comments here...
1985 (command_line_input): ... not here.
1987 2014-06-02 Doug Evans <xdje42@gmail.com>
1989 Add progspace support for Guile.
1990 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
1991 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
1992 (scm-progspace.o): New rule.
1993 * guile/guile-internal.h (pspace_smob): New typedef.
1994 (psscm_pspace_smob_pretty_printers): Declare.
1995 (psscm_pspace_smob_from_pspace): Declare.
1996 (psscm_scm_from_pspace): Declare.
1997 * guile/guile.c (initialize_gdb_module): Call
1998 gdbscm_initialize_pspaces.
1999 * guile/lib/gdb.scm: Export progspace symbols.
2000 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
2002 (append-pretty-printer!): Ditto.
2003 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
2005 * guile/scm-progspace.c: New file.
2007 2014-06-03 Alan Modra <amodra@gmail.com>
2009 * ppc64-tdep.c (ppc64_standard_linkage8): New.
2010 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
2012 2014-06-02 Doug Evans <dje@google.com>
2014 Add support for skeletonless type units.
2015 * dwarf2read.c (struct dwarf2_per_objfile): New member
2016 n_allocated_type_units.
2017 (struct dwarf2_per_objfile) <tu_stats>: New member
2018 nr_all_type_units_reallocs.
2019 (create_signatured_type_table_from_index): Initialize
2020 n_allocated_type_units
2021 (create_all_type_units): Ditto.
2022 (add_type_unit): Move up in file. New arg slot.
2023 All callers updated. Increase space for all_type_units more
2025 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
2026 (lookup_dwo_signatured_type): Handle skeletonless TUs.
2027 (lookup_dwp_signatured_type): Ditto.
2028 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
2029 All callers updated.
2030 (build_type_psymtabs_1): Leave type_unit_groups as
2031 NULL if no TUs present.
2032 (print_tu_stats): New function.
2033 (process_skeletonless_type_unit): New function.
2034 (process_dwo_file_for_skeletonless_type_units): New
2036 (process_skeletonless_type_units): New function.
2037 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
2038 Call print tu_stats if debugging enabled.
2040 2014-06-02 Pedro Alves <palves@redhat.com>
2042 * breakpoint.c (build_target_command_list): Don't build a command
2043 list if we have any duplicate location that isn't a dprintf.
2045 2014-06-02 Pedro Alves <palves@redhat.com>
2047 * breakpoint.c (dprintf_breakpoint_hit): New function.
2048 (initialize_breakpoint_ops): Install it as dprintf's
2049 breakpoint_hit method.
2051 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2053 * source.c (substitute_path_rule_matches): Simplify using
2054 filename_ncmp instead of FILENAME_CMP.
2056 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2058 * source.c (substitute_path_rule_matches): Remove trailing spaces.
2060 2014-06-01 Ludovic Courtès <ludo@gnu.org>
2062 * configure.ac: When Guile is available, check for the
2063 availability of 'scm_new_smob'.
2064 * configure, config.h.in: Regenerate.
2065 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
2068 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2070 * frame.c (struct frame_info): Add stop_string field.
2071 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
2072 (get_prev_frame_always): Old content moved into
2073 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
2074 TRY_CATCH, handle MEMORY_ERROR exceptions.
2075 (frame_stop_reason_string): New function definition.
2076 * frame.h (unwind_stop_reason_to_string): Extend comment to
2077 mention frame_stop_reason_string.
2078 (frame_stop_reason_string): New function declaration.
2079 * stack.c (frame_info): Switch to frame_stop_reason_string.
2080 (backtrace_command_1): Switch to frame_stop_reason_string.
2081 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
2082 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
2083 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
2085 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2087 * frame.c (frame_stop_reason_string): Rename to ...
2088 (unwind_stop_reason_to_string): this.
2089 * frame.h (frame_stop_reason_string): Rename to ...
2090 (unwind_stop_reason_to_string): this.
2091 * stack.c (frame_info): Update call to frame_stop_reason_string.
2092 (backtrace_command_1): Likewise.
2093 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
2094 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2096 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2098 * frame.c (remove_prev_frame): New function.
2099 (get_prev_frame_if_no_cycle): Create / discard cleanup using
2102 2014-05-29 Pedro Alves <palves@redhat.com>
2104 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
2105 and make it const. When a single-step decays to a continue,
2106 clear 'step', not 'hw_step'. Pass whether the caller wanted
2107 to step to user_visible_resume_ptid, not what we ask the
2110 2014-05-29 Pedro Alves <palves@redhat.com>
2112 * infrun.c (process_event_stop_test, handle_step_into_function)
2113 (handle_step_into_function_backward): Adjust.
2114 Don't set the even thread's stop_step and call stop_waiting before
2115 calling end_stepping_range. Instead do that ...
2116 (end_stepping_range): ... here. Take an ecs pointer parameter.
2118 2014-05-29 Pedro Alves <palves@redhat.com>
2120 * infrun.c (stop_stepping): Rename to ...
2121 (stop_waiting): ... this.
2122 (proceed): Update comment.
2123 (process_event_stop_test, handle_inferior_event)
2124 (handle_signal_stop, handle_step_into_function)
2125 (handle_step_into_function_backward): Update.
2127 2014-05-29 Pedro Alves <palves@redhat.com>
2129 * infcall.c (run_inferior_call): Don't check whether the current
2130 thread is running after the proceed call.
2132 2014-05-29 Pedro Alves <palves@redhat.com>
2133 Tom Tromey <tromey@redhat.com>
2135 * NEWS: Mention "maint set target-async", "set mi-async", and that
2136 background execution commands are now always available.
2137 * target.h (target_async_permitted): Update comment.
2138 * target.c (target_async_permitted, target_async_permitted_1):
2140 (set_target_async_command): Rename to ...
2141 (maint_set_target_async_command): ... this.
2142 (show_target_async_command): Rename to ...
2143 (maint_show_target_async_command): ... this.
2144 (_initialize_target): Adjust.
2145 * infcmd.c (prepare_execution_command): Make extern.
2146 * inferior.h (prepare_execution_command): Declare.
2147 * infrun.c (set_observer_mode): Leave target async alone.
2148 * mi/mi-interp.c (mi_interpreter_init): Install
2149 mi_on_sync_execution_done as sync_execution_done observer.
2150 (mi_on_sync_execution_done): New function.
2151 (mi_execute_command_input_handler): Don't print the prompt if we
2152 just started a synchronous command with an async target.
2153 (mi_on_resume): Check sync_execution before printing prompt.
2154 * mi/mi-main.h (mi_async_p): Declare.
2155 * mi/mi-main.c: Include gdbcmd.h.
2156 (mi_async_p): New function.
2157 (mi_async, mi_async_1): New globals.
2158 (set_mi_async_command, show_mi_async_command, mi_async): New
2160 (exec_continue): Call prepare_execution_command.
2161 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2162 (mi_execute_async_cli_command): Use mi_async_p.
2163 (_initialize_mi_main): Install "set mi-async". Make
2164 "target-async" a deprecated alias.
2166 2014-05-29 Pedro Alves <palves@redhat.com>
2168 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2169 (_initialize_cli_interp): Adjust.
2170 * event-loop.c: Include "observer.h".
2171 (start_event_loop): Notify 'command_error' observers instead of
2172 calling display_gdb_prompt. Remove FIXME comment.
2173 * event-top.c (display_gdb_prompt): Remove call into the
2175 * inf-loop.c: Include "observer.h".
2176 (inferior_event_handler): Notify 'command_error' observers instead
2177 of calling display_gdb_prompt.
2178 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2179 observers instead of calling display_gdb_prompt.
2180 * interps.c (interp_set): Don't call display_gdb_prompt.
2181 (current_interp_display_prompt_p): Delete.
2182 * interps.h (interp_prompt_p): Delete declaration.
2183 (interp_prompt_p_ftype): Delete.
2184 (struct interp_procs) <prompt_proc_p>: Delete field.
2185 (current_interp_display_prompt_p): Delete declaration.
2186 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2187 (_initialize_mi_interp): Adjust.
2188 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2189 'command_error' observers.
2190 (tui_on_sync_execution_done, tui_on_command_error): New
2192 (tui_display_prompt_p): Delete.
2193 (_initialize_tui_interp): Adjust.
2195 2014-05-29 Pedro Alves <palves@redhat.com>
2198 * cli/cli-interp.c: Include infrun.h and observer.h.
2199 (cli_uiout, cli_interp): New globals.
2200 (cli_on_signal_received, cli_on_end_stepping_range)
2201 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2203 (cli_interpreter_init): Install them as 'end_stepping_range',
2204 'signal_received' 'signal_exited', 'exited' and 'no_history'
2206 (_initialize_cli_interp): Remove cli_interp local.
2207 * infrun.c (handle_inferior_event): Call the several stop reason
2208 observers instead of printing the stop reason directly.
2209 (end_stepping_range): New function.
2210 (print_end_stepping_range_reason, print_signal_exited_reason)
2211 (print_exited_reason, print_signal_received_reason)
2212 (print_no_history_reason): Make static, and add an uiout
2213 parameter. Print to that instead of to CURRENT_UIOUT.
2214 * infrun.h (print_end_stepping_range_reason)
2215 (print_signal_exited_reason, print_exited_reason)
2216 (print_signal_received_reason print_no_history_reason): New
2218 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2220 <cli_uiout>: New field.
2221 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2222 uiout for CLI output. Install 'signal_received',
2223 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2225 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2226 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2227 (mi_on_no_history): New functions.
2228 (ui_out_free_cleanup): Delete function.
2229 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2230 instead use the one already stored in the MI interpreter data.
2231 (mi_ui_out): Adjust.
2232 * tui/tui-interp.c: Include infrun.h and observer.h.
2233 (tui_interp): New global.
2234 (tui_on_signal_received, tui_on_end_stepping_range)
2235 (tui_on_signal_exited, tui_on_exited)
2236 (tui_on_no_history): New functions.
2237 (tui_init): Install them as 'end_stepping_range',
2238 'signal_received' 'signal_exited', 'exited' and 'no_history'
2240 (_initialize_tui_interp): Delete tui_interp local.
2242 2014-05-29 Pedro Alves <palves@redhat.com>
2245 * linux-nat.c (linux_nat_resume_callback): Rename the second
2246 parameter to 'except'. Skip LP if it points to EXCEPT.
2247 (linux_nat_resume): Don't mark the event lwp as not stopped
2248 before resuming sibling lwps. Instead ask
2249 linux_nat_resume_callback to skip the event lwp. Mark it as not
2250 stopped after actually resuming it.
2251 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2253 (wait_lwp): Mark the lwp as stopped here.
2254 (stop_wait_callback): Mark the lwp as not stopped right after
2255 resuming it. Don't mark lwps as stopped here.
2256 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2257 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2259 2014-05-29 Pedro Alves <palves@redhat.com>
2262 * infrun.c (resume): Determine how much to resume depending on
2263 whether the caller wanted a step, not whether we can hardware step
2264 the target. Mark all threads that we intend to run as running,
2265 unless we're calling an inferior function.
2266 (normal_stop): If the thread is running an infcall, don't finish
2268 * target.c (target_resume): Don't mark threads as running here.
2270 2014-05-28 Joel Brobecker <brobecker@adacore.com>
2272 * serial.c (_initialize_serial): Remove support for
2273 the "set remotebaud" and "show remotebaud" commands.
2274 * NEWS: Add entry documenting the removal of that command.
2276 2014-05-28 Yao Qi <yao@codesourcery.com>
2278 * charset.c: Fix typo in comments.
2280 2014-05-27 Gary Benson <gbenson@redhat.com>
2282 * utils.c (internal_vproblem): Prompt for a bug report.
2284 2014-05-26 Andy Wingo <wingo@igalia.com>
2286 * guile/scm-arch.c (arscm_mark_arch_smob):
2287 * guile/scm-block.c (bkscm_mark_block_smob)
2288 (bkscm_mark_block_syms_progress_smob):
2289 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2290 * guile/scm-exception.c (exscm_mark_exception_smob):
2291 * guile/scm-frame.c (frscm_mark_frame_smob):
2292 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2293 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2294 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2295 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2296 (ppscm_mark_pretty_printer_worker_smob):
2297 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2298 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2299 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2300 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2302 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2305 2014-05-26 Andy Wingo <wingo@igalia.com>
2306 Doug Evans <xdje42@gmail.com>
2308 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2309 empty_base_class. All uses updated.
2310 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2311 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2313 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2314 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2315 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2316 (gdbscm_gsmob_has_property_p, add_property_name)
2317 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2318 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2319 (gdb-object-has-property?, gdb-object-properties): Remove.
2320 (gdb-object-kind): Renamed from gsmob-kind.
2322 2014-05-26 Andy Wingo <wingo@igalia.com>
2324 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2325 * configure: Regenerate.
2327 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2329 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2331 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2333 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2334 (replay_memory_access_read_only, replay_memory_access_read_write)
2335 (replay_memory_access_types, replay_memory_access)
2336 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2337 (cmd_set_record_btrace, cmd_show_record_btrace)
2338 (cmd_show_replay_memory_access): New.
2339 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2340 (record_btrace_remove_breakpoint): Replace
2341 record_btrace_allow_memory_access with replay_memory_access.
2342 (_initialize_record_btrace): Add commands.
2343 * NEWS: Announce it.
2345 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2347 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2349 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2351 * MAINTAINERS (Write After Approval): Move self back from
2354 2014-05-22 Pedro Alves <palves@redhat.com>
2356 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2357 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2358 (disable_randomization, enum exec_direction_kind)
2359 (execution_direction, stop_registers, start_remote)
2360 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2361 (wait_for_inferior, normal_stop, get_last_target_status)
2362 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2363 (insert_step_resume_breakpoint_at_sal)
2364 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2365 (set_step_info, print_stop_event, signal_stop_state)
2366 (signal_print_state, signal_pass_state, signal_stop_update)
2367 (signal_print_update, signal_pass_update)
2368 (update_signals_program_target, clear_exit_convenience_vars)
2369 (displaced_step_dump_bytes, update_observer_mode)
2370 (signal_catch_update, gdb_signal_from_command): Move
2372 * infrun.h: ... to this new file.
2373 * amd64-tdep.c: Include infrun.h.
2374 * annotate.c: Include infrun.h.
2375 * arch-utils.c: Include infrun.h.
2376 * arm-linux-tdep.c: Include infrun.h.
2377 * arm-tdep.c: Include infrun.h.
2378 * break-catch-sig.c: Include infrun.h.
2379 * breakpoint.c: Include infrun.h.
2380 * common/agent.c: Include infrun.h instead of inferior.h.
2381 * corelow.c: Include infrun.h.
2382 * event-top.c: Include infrun.h.
2383 * go32-nat.c: Include infrun.h.
2384 * i386-tdep.c: Include infrun.h.
2385 * inf-loop.c: Include infrun.h.
2386 * infcall.c: Include infrun.h.
2387 * infcmd.c: Include infrun.h.
2388 * infrun.c: Include infrun.h.
2389 * linux-fork.c: Include infrun.h.
2390 * linux-nat.c: Include infrun.h.
2391 * linux-thread-db.c: Include infrun.h.
2392 * monitor.c: Include infrun.h.
2393 * nto-tdep.c: Include infrun.h.
2394 * procfs.c: Include infrun.h.
2395 * record-btrace.c: Include infrun.h.
2396 * record-full.c: Include infrun.h.
2397 * remote-m32r-sdi.c: Include infrun.h.
2398 * remote-mips.c: Include infrun.h.
2399 * remote-notif.c: Include infrun.h.
2400 * remote-sim.c: Include infrun.h.
2401 * remote.c: Include infrun.h.
2402 * reverse.c: Include infrun.h.
2403 * rs6000-tdep.c: Include infrun.h.
2404 * s390-linux-tdep.c: Include infrun.h.
2405 * solib-irix.c: Include infrun.h.
2406 * solib-osf.c: Include infrun.h.
2407 * solib-svr4.c: Include infrun.h.
2408 * target.c: Include infrun.h.
2409 * top.c: Include infrun.h.
2410 * windows-nat.c: Include infrun.h.
2411 * mi/mi-interp.c: Include infrun.h.
2412 * mi/mi-main.c: Include infrun.h.
2413 * python/py-threadevent.c: Include infrun.h.
2415 2014-05-22 Pedro Alves <palves@redhat.com>
2417 * infrun.c (handle_inferior_event): Store the exit code for
2418 --return-child-result here, instead of ...
2419 (print_exited_reason): ... here.
2421 2014-05-21 Pedro Alves <palves@redhat.com>
2424 * gdbthread.h (struct thread_control_state): New field
2426 * infrun.c (follow_fork): Copy the new thread control field to the
2428 (clear_proceed_status_thread): Clear the new thread control field.
2429 (proceed): Set the new thread control field.
2430 * interps.h (command_interp): Declare.
2431 * interps.c (command_interpreter): New global.
2432 (command_interp): New function.
2433 (interp_exec): Set `command_interpreter' while here.
2434 * cli-out.c (cli_uiout_dtor): New function.
2435 (cli_ui_out_impl): Install it.
2436 * mi/mi-interp.c: Include cli-out.h.
2437 (mi_cmd_interpreter_exec): Add comment.
2438 (restore_current_uiout_cleanup): New function.
2439 (ui_out_free_cleanup): New function.
2440 (mi_on_normal_stop): If finishing an execution command started by
2441 a CLI command, or any kind of breakpoint-like event triggered,
2442 print the stop event to the output (CLI) stream.
2443 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2445 2014-05-21 Pedro Alves <palves@redhat.com>
2447 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2448 current source line having changed.
2449 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2450 * infrun.c (normal_stop): Adjust call to
2451 set_current_sal_from_frame.
2452 * source.c (clear_lines_listed_range): New function.
2453 (set_current_source_symtab_and_line, identify_source_line): Clear
2454 the lines listed range.
2455 (line_info): Handle the first "info line" after the current source
2456 line having changed.
2457 * stack.c (print_stack_frame): Remove center handling.
2458 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2461 2014-05-21 Pedro Alves <palves@redhat.com>
2463 * inf-child.c (inf_child_mourn_inferior): New function.
2464 * inf-child.h (inf_child_mourn_inferior): New declaration.
2465 * darwin-nat.c (darwin_mourn_inferior): Use
2466 inf_child_mourn_inferior.
2467 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2468 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2469 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2470 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2471 * windows-nat.c (windows_mourn_inferior): Likewise.
2473 2014-05-21 Doug Evans <xdje42@gmail.com>
2475 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
2477 2014-05-21 Doug Evans <xdje42@gmail.com>
2479 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
2480 (gdbscm_out_of_range_error): Ditto.
2481 (gdbscm_memory_error): Ditto.
2482 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2483 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
2484 (gdbscm_out_of_range_error): Update.
2485 (gdbscm_memory_error): Update.
2486 (gdbscm_scm_to_target_string_unsafe): Delete.
2488 2014-05-21 Pedro Alves <palves@redhat.com>
2490 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2492 (inf_child_open_target): New function.
2493 (inf_child_open): Use inf_child_open_target to push the target
2494 instead of erroring out.
2495 (inf_child_disconnect, inf_child_close)
2496 (inf_child_maybe_unpush_target): New functions.
2497 (inf_child_target): Install inf_child_disconnect and
2498 inf_child_close. Store a pointer to the returned object.
2499 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2501 * target.c (auto_connect_native_target): New global.
2502 (show_default_run_target): New function.
2503 (find_default_run_target): Return NULL if automatically connecting
2504 to the native target is disabled.
2505 (_initialize_target): Install set/show auto-connect-native-target.
2506 * NEWS: Mention "set auto-connect-native-target", and "target
2508 * linux-nat.c (super_close): New global.
2509 (linux_nat_close): Call super_close.
2510 (linux_nat_add_target): Store a pointer to the base class's
2512 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2513 inf_child_maybe_unpush.
2514 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2516 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2517 the inferior. Use inf_child_maybe_unpush_target.
2518 (inf_ttrace_attach): Don't push the target if it is already
2520 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2521 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2522 after mourning the inferior. Use inf_child_maybe_unpush_target.
2523 (darwin_attach_pid): Don't push the target if it is already
2525 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2526 mourning the inferior. Use inf_child_maybe_unpush_target.
2527 (gnu_detach): Use inf_child_maybe_unpush_target.
2528 * go32-nat.c (go32_create_inferior): Don't push the target if it
2530 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2531 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2532 (procfs_open): Rename to ...
2533 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2534 comments. Can target_preopen before changing node. Call
2535 inf_child_open_target to push the target explicitly.
2536 (procfs_attach): Don't push the target if it is already pushed.
2537 (procfs_detach): Use inf_child_maybe_unpush_target.
2538 (procfs_create_inferior): Don't push the target if it is already
2540 (nto_native_ops): New global.
2541 (procfs_open): Reimplement.
2542 (procfs_native_open): New function.
2543 (init_procfs_targets): Install procfs_native_open as to_open of
2544 "target native". Store a pointer to the "native" target in
2546 * procfs.c (procfs_attach): Don't push the target if it is already
2548 (procfs_detach): Use inf_child_maybe_unpush_target.
2549 (procfs_mourn_inferior): Only unpush the target after mourning the
2550 inferior. Use inf_child_maybe_unpush_target.
2551 (procfs_init_inferior): Don't push the target if it is already
2553 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2554 if it is already pushed.
2556 2014-05-21 Pedro Alves <palves@redhat.com>
2558 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2559 and "procfs" targets are now called "native" instead.
2561 2014-05-21 Pedro Alves <palves@redhat.com>
2563 * go32-nat.c (go32_open): Delete.
2564 (go32_target): Don't override the to_open method.
2566 2014-05-21 Pedro Alves <palves@redhat.com>
2568 * nto-procfs.c (procfs_can_run): New function.
2569 (nto_procfs_ops): New global.
2570 (init_procfs_targets): New, based on procfs_target. Install
2571 "target native" in addition to "target procfs".
2572 (_initialize_procfs): Call init_procfs_targets instead of adding
2575 2014-05-21 Pedro Alves <palves@redhat.com>
2577 * windows-nat.c (windows_target): Don't override to_shortname,
2578 to_longname or to_doc.
2580 2014-05-21 Pedro Alves <palves@redhat.com>
2582 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2585 2014-05-21 Pedro Alves <palves@redhat.com>
2587 * darwin-nat.c (_initialize_darwin_inferior): Don't override
2588 to_shortname, to_longname or to_doc.
2590 2014-05-21 Pedro Alves <palves@redhat.com>
2592 * go32-nat.c (go32_target): Don't override to_shortname,
2593 to_longname or to_doc.
2595 2014-05-21 Pedro Alves <palves@redhat.com>
2597 * inf-child.c (inf_child_open): Remove mention of "child".
2598 (inf_child_target): Rename target to "native" instead of "child".
2600 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2602 * Makefile.in (SFILES): Delete "regset.c".
2603 (COMMON_OBS): Delete "regset.o".
2605 * regset.h (regset_alloc): Delete prototype.
2607 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2609 * sparc-linux-tdep.c (sparc32_linux_gregset)
2610 (sparc32_linux_fpregset): New static regset structures.
2611 (sparc32_linux_init_abi): Drop dynamic regset allocations.
2612 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
2614 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
2615 (sparc64_linux_fpregset): New static regset structures.
2616 (sparc64_linux_init_abi): Drop dynamic regset allocations.
2617 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
2618 New static regset structures.
2619 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
2620 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
2621 New static regset structures.
2622 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
2623 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
2624 New static regset structures.
2625 (sparc64obsd_init_abi): Drop dynamic regset allocations.
2626 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
2627 New static regset structures.
2628 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
2630 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2632 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
2633 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
2634 register maps ("regmaps") from "*regset" to "*regmap". Do this
2635 for all regmap types and variables.
2636 * sparc-linux-tdep.c (sparc32_linux_step_trap)
2637 (sparc32_linux_supply_core_gregset)
2638 (sparc32_linux_collect_core_gregset)
2639 (sparc32_linux_supply_core_fpregset)
2640 (sparc32_linux_collect_core_fpregset): Likewise.
2641 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
2642 (sparc_gregmap, sparc_fpregmap): ... these.
2643 (sparc_supply_gregset, sparc_collect_gregset)
2644 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2645 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
2646 (_initialize_sparc_nat): Rename regmaps.
2647 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
2648 (sparc_gregmap, sparc_fpregmap): ... these.
2649 (sparc_supply_gregset, sparc_collect_gregset)
2650 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2651 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
2653 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
2654 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
2656 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
2658 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
2659 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
2660 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
2662 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2663 (sparc32_bsd_fpregset): Rename to...
2664 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2665 (sparc32_bsd_fpregmap): ... these.
2666 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
2667 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2668 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
2669 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
2670 (struct sparc_gregmap, struct sparc_fpregmap)
2671 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2672 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
2673 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
2674 (sparc32_supply_regset, sparc32_collect_gregset)
2675 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
2677 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
2678 (sparc64_linux_ptrace_gregmap): ... this.
2679 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
2680 (_initialize_sparc64_linux_nat): Rename regmaps.
2681 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
2682 (sparc64_linux_core_gregmap): ... this.
2683 (sparc64_linux_supply_core_gregset)
2684 (sparc64_linux_collect_core_gregset)
2685 (sparc64_linux_supply_core_fpregset)
2686 (sparc64_linux_collect_core_fpregset): Rename regmaps.
2687 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
2688 (sparc64_sol2_fpregset): Rename to...
2689 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
2690 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2691 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
2693 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
2694 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
2695 (sparc64_bsd_fpregset): Rename to...
2696 (struct sparc_gregmap, sparc64_sol2_gregmap)
2697 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
2698 (sparc64_bsd_fpregmap): ... these.
2699 (sparc64_supply_gregset, sparc64_collect_gregset)
2700 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
2702 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
2703 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
2704 (sparc64fbsd_gregmap): ... this.
2705 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
2706 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
2708 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
2709 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2710 (sparc64nbsd_collect_fpregset): Likewise.
2711 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
2712 (sparc64nbsd_gregmap): ... this.
2713 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
2715 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
2716 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
2717 (sparc64obsd_gregmap): ... this.
2718 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
2720 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
2721 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
2722 (sparc32nbsd_gregmap): ... this.
2723 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
2726 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2728 * score-tdep.c (score7_linux_gregset): New static regset
2730 (score7_linux_regset_from_core_section): Remove dynamic regset
2732 (score_gdbarch_init): Drop allocation of tdep structure.
2733 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
2735 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2737 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
2739 (am33_regset_from_core_section): Remove dynamic regset
2742 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2744 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
2745 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
2747 (mips_linux_regset_from_core_section): Remove dynamic regset
2749 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2750 'gregset64', 'fpregset', and 'fpregset64'.
2751 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
2752 deleted tdep fields.
2754 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2756 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
2758 (amd64_regset_from_core_section): Remove dynamic regset
2760 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
2762 (amd64obsd_regset_from_core_section): Remove dynamic regset
2764 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2766 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
2767 x86-common regset supply function.
2768 * i386-tdep.c (i386_collect_gregset): Make static.
2769 (i386_gregset): New global regset structure.
2770 (i386_fpregset, i386_xstateregset): New static regset structures.
2771 (i386_regset_from_core_section): Remove dynamic regset
2773 (i386_gdbarch_init): Remove initialization of tdep fields
2774 'gregset', 'fpregset', and 'xstateregset'.
2775 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2776 'fpregset', and 'xstateregset'.
2777 (i386_collect_gregset): Remove prototype.
2778 (i386_gregset): New declaration.
2779 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
2781 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
2784 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2786 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
2787 (arm_linux_vfpregset): New static regset structures.
2788 (arm_linux_regset_from_core_section): Remove dynamic allocation of
2790 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
2791 and 'vfpregset' fields.
2793 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2795 * aarch64-linux-tdep.c (aarch64_linux_gregset)
2796 (aarch64_linux_fpregset): New static regset structures.
2797 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
2798 of regset structures.
2799 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
2802 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2804 * regset.h (struct regset): Remove gdbarch field.
2805 * regset.c (regset_alloc): Drop initialization of gdbarch field.
2806 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2807 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
2809 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
2810 (ppc32_linux_fpregset, ppc32_linux_vrregset)
2811 (ppc32_linux_vsxregset): Likewise.
2812 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
2813 via the regcache instead of the regset.
2814 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
2815 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
2816 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
2817 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
2820 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2822 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
2823 Constify structures.
2824 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
2825 (alphanbsd_aout_gregset): Likewise.
2826 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
2827 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
2829 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
2830 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
2832 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
2833 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
2834 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
2835 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
2836 * m88k-tdep.c (m88k_gregset): Likewise.
2837 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
2838 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
2839 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2840 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
2841 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2842 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2843 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2844 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2845 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
2847 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
2848 * sh-tdep.h (sh_corefile_gregset): Likewise.
2849 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
2850 * vax-tdep.c (vax_gregset): Likewise.
2852 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2854 Fix TLS access for -static -pthread.
2855 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
2856 (try_thread_db_load_1): Initialize it.
2857 (thread_db_get_thread_local_address): Call it if LM is zero.
2858 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
2859 * target.h (struct target_ops) (to_get_thread_local_address): Add
2860 load_module_addr comment.
2862 2014-05-21 Pedro Alves <palves@redhat.com>
2864 * dcache.c (dcache_read_memory_partial): If reading the cache line
2865 fails, fallback to reading just the memory the caller wanted.
2867 2014-05-20 Doug Evans <dje@google.com>
2869 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
2870 instead of get_current_arch.
2872 2014-05-20 Pedro Alves <palves@redhat.com>
2874 * NEWS: Mention that compare-sections now works with all targets.
2876 * remote.c (PACKET_qCRC): New enum value.
2877 (remote_verify_memory): Don't send qCRC if the target has no
2878 execution. Use packet_support/packet_ok. If the target doesn't
2879 support the qCRC packet, fallback to a deep memory copy.
2880 (compare_sections_command): Say "target image" instead of "remote
2882 (_initialize_remote): Add PACKET_qCRC to the list of config
2883 packets that have no associated command. Extend comment.
2884 * target.c (simple_verify_memory, default_verify_memory): New
2886 * target.h (struct target_ops) <to_verify_memory>: Default to
2887 default_verify_memory.
2888 (simple_verify_memory): New declaration.
2889 * target-delegates.c: Regenerate.
2891 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
2893 * record-btrace.c (record_btrace_step_thread): Check for empty history.
2895 2014-05-20 Hui Zhu <hui@codesourcery.com>
2896 Yao Qi <yao@codesourcery.com>
2899 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
2900 and change address of sp and pc.
2902 2014-05-19 Tom Tromey <tromey@redhat.com>
2904 * gdbtypes.c (rank_function): Use XNEWVEC.
2905 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
2907 2014-05-19 Doug Evans <dje@google.com>
2909 * dwarf2read.c (build_type_psymtabs_1): Renamed from
2910 build_type_unit_groups and moved closer to only caller. Remove
2911 arguments. All references updated. Remove outdated .gdb_index
2913 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
2914 build_type_psymtabs_1.
2916 2014-05-19 Doug Evans <dje@google.com>
2918 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
2919 n_type_unit_groups, all_type_unit_groups. All uses removed.
2920 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
2921 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
2922 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
2923 (add_type_unit_group_to_table): Delete.
2925 2014-05-19 Doug Evans <dje@google.com>
2927 * eval.c (evaluate_subexp_standard): Add some comments.
2929 2014-05-17 Doug Evans <xdje42@gmail.com>
2931 * progspace.c (remove_program_space): Delete, unused.
2932 * progspace.h (remove_program_space): Ditto.
2934 2014-05-17 Doug Evans <xdje42@gmail.com>
2936 * inferior.c (prune_inferiors): Fix comment.
2937 (remove_inferior_command): Call prune_program_spaces.
2939 2014-05-16 Doug Evans <dje@google.com>
2941 New command line option -D.
2943 * main.c (set_gdb_data_directory): New function.
2944 (captured_main): Recognize -D. Flag error for --data-directory "".
2945 Call set_gdb_data_directory.
2946 (print_gdb_help): Print --data-directory, -D.
2947 * main.h (set_gdb_data_directory): Declare.
2948 * top.c (staged_gdb_datadir): New static global.
2949 (set_gdb_datadir): Call set_gdb_data_directory
2950 (show_gdb_datadir): New function.
2951 (init_main): Update init of data-directory parameter.
2953 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
2955 Import the "dirfd" gnulib module.
2956 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
2957 * gnulib/aclocal.m4: Update.
2958 * gnulib/config.in: Update.
2959 * gnulib/configure: Update.
2960 * gnulib/import/Makefile.am: Update.
2961 * gnulib/import/Makefile.in: Update.
2962 * gnulib/import/dirfd.c: New.
2963 * gnulib/import/m4/dirfd.m4: New.
2964 * gnulib/import/m4/gnulib-cache.m4: Update.
2965 * gnulib/import/m4/gnulib-comp.m4: Update.
2967 2014-05-16 Pierre Muller <muller@sourceware.org>
2968 Yao Qi <yao@codesourcery.com>
2970 * valprint.c (print_wchar): Move the code on checking whether
2971 W is a printable wide char to the default branch of switch
2972 statement below. Call wchar_printable instead of gdb_iswprint.
2974 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
2976 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
2977 ldr.w and ldrd instructions.
2979 2014-05-15 Doug Evans <dje@google.com>
2981 * dwarf2read.c (read_structure_type): Delete outdated comments.
2983 2014-05-14 Tom Tromey <tromey@redhat.com>
2985 * macrocmd.c (print_macro_definition): Reindent.
2987 2014-05-13 Doug Evans <xdje42@gmail.com>
2989 * python/py-cmd.c (cmdpy_completer): Add comment.
2990 (completers): Make const.
2992 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
2994 * infrun.c (resume): Remove should_resume (unused). Move up
2995 declaration of resume_ptid.
2997 2014-05-13 Tom Tromey <tromey@redhat.com>
2999 * language.h (unop_type_check): Remove.
3000 (binop_type_check): Don't declare.
3002 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
3004 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
3005 call to regcache_raw_collect.
3007 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3009 * mi/mi-console.c (mi_console_raw_packet): Use the value from
3010 mi_console->quote as the quoting character.
3012 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3014 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
3016 2014-04-29 Tom Tromey <tromey@redhat.com>
3018 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
3019 "show debug varobj".
3021 2014-05-07 Kyle McMartin <kyle@redhat.com>
3023 Pushed by Joel Brobecker <brobecker@adacore.com>.
3024 * aarch64-tdep.c (aarch64_software_single_step): New function.
3025 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
3026 with aarch64_software_single_step.
3028 2014-05-05 Joel Brobecker <brobecker@adacore.com>
3032 2014-05-05 Keith Seitz <keiths@redhat.com>
3034 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
3035 variable or history value is successfully parsed.
3037 2014-05-05 Yao Qi <yao@codesourcery.com>
3038 Pedro Alves <palves@redhat.com>
3040 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
3041 address of blocks that intersects the requested range. Trim
3042 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
3044 * ctf.c (ctf_xfer_partial): Likewise.
3046 2014-05-05 Yao Qi <yao@codesourcery.com>
3048 * printcmd.c (display_command): Remove the check to
3049 target_has_execution.
3051 2014-05-03 Mark Kettenis <kettenis@gnu.org>
3053 * ppcobsd-nat.c: Include "obsd-nat.h".
3054 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
3056 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3058 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3060 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
3061 and 16-bit signed and unsigned arguments. Update comment.
3062 (stap_parse_probe_arguments): Extend code to handle such
3063 arguments. Use warning instead of complaint to notify about
3064 unrecognized bitness.
3066 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3068 PR breakpoints/16889
3069 * stap-probe.c (stap_parse_probe_arguments): Simplify
3070 check for non-prefixed probes (i.e., probes whose
3071 arguments do not start with "N@"). Always set the
3072 argument type to a sane value.
3074 2014-05-01 David Taylor <dtaylor@emc.com>
3076 * remote.c (compare_sections_command): Add -r option to compare
3077 all loadable read-only sections.
3079 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
3081 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
3082 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
3084 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
3085 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
3086 Remove unused CORE_ADDR argument. Update all callers.
3088 2014-04-29 Pedro Alves <palves@redhat.com>
3090 * remote.c (struct packet_config) <detect>: Extend comment.
3091 (add_packet_config_cmd): Don't set the config's detect or support
3093 (init_all_packet_configs): Also initialize the config's 'detect'
3095 (reset_all_packet_configs_support): New function.
3096 (remote_open_1): Call reset_all_packet_configs_support instead of
3097 init_all_packet_configs.
3098 (_initialize_remote): Initialize all packet configs. Assert that
3099 all packets have an associated command, except a few known
3102 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3104 * dwarf2read.c (read_subrange_type): Handle dynamic
3105 DW_AT_lower_bound attributes.
3107 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3109 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
3110 dynamic bounds before computing its upper bound.
3111 (ada_discrete_type_low_bound): Same as above with the lower bound.
3113 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3115 * dwarf2read.c (is_dynamic_type): Return true for dynamic
3116 range types. Adjust the array handling implementation to
3117 take advantage of this change.
3118 (resolve_dynamic_range): New function, mostly extracted from
3119 resolve_dynamic_bounds.
3120 (resolve_dynamic_array): New function, mostly extracted from
3121 resolve_dynamic_bounds.
3122 (resolve_dynamic_bounds): Delete.
3123 (resolve_dynamic_type): Reimplement. Add handling of
3124 TYPE_CODE_RANGE types.
3126 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3128 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
3129 handling of parallel ___XA types.
3131 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3133 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
3134 unnecessary second call to static_unwrap_type.
3136 2014-04-27 Hui Zhu <hui@codesourcery.com>
3138 * stack.c (print_frame_info): Call do_gdb_disassembly with
3139 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
3141 2014-04-26 Doug Evans <xdje42@gmail.com>
3143 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
3145 2014-04-25 Pedro Alves <palves@redhat.com>
3148 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
3149 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
3150 and newline from built string.
3151 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3152 (linux_ptrace_attach_fail_reason): ... this.
3153 * linux-nat.c (linux_nat_attach): Adjust to use
3154 linux_ptrace_attach_fail_reason.
3156 2014-04-25 Pedro Alves <palves@redhat.com>
3158 * remote.c (struct remote_state): Remove multi_process_aware,
3159 non_stop_aware, cond_tracepoints, cond_breakpoints,
3160 breakpoint_commands, fast_tracepoints, static_tracepoints,
3161 install_in_trace, disconnected_tracing,
3162 enable_disable_tracepoints, string_tracing, and
3163 augmented_libraries_svr4_read fields.
3164 (remote_multi_process_p): Move further below in the file.
3165 (struct packet_config): Add comments.
3166 (update_packet_config): Delete function.
3167 (show_packet_config_cmd): Use packet_config_support.
3168 (add_packet_config_cmd): Use NULL as set callback.
3169 (packet_ok): "set remote foo-packet"-style commands no longer
3170 change config->supported -- adjust.
3171 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3172 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3173 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3174 (PACKET_QNonStop, PACKET_multiprocess_feature)
3175 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3176 (PACKET_DisconnectedTracing_feature)
3177 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3178 (set_remote_protocol_packet_cmd): Delete function.
3179 (packet_config_support, packet_support): New functions.
3180 (set_remote_protocol_Z_packet_cmd): Don't call
3181 update_packet_config.
3182 (remote_query_attached, remote_pass_signals)
3183 (remote_program_signals, remote_threads_info)
3184 (remote_threads_extra_info, remote_start_remote): Use
3186 (remote_start_remote): Use packet_config_support and
3188 (init_all_packet_configs): Set all packets to unknown support,
3189 instead of calling update_packet_config.
3190 (remote_check_symbols): Use packet_support.
3191 (remote_supported_packet): Unconditionally set the packet config's
3193 (remote_multi_process_feature, remote_non_stop_feature)
3194 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3195 (remote_breakpoint_commands_feature)
3196 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3197 (remote_install_in_trace_feature)
3198 (remote_disconnected_tracing_feature)
3199 (remote_enable_disable_tracepoint_feature)
3200 (remote_string_tracing_feature)
3201 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3202 (remote_protocol_features): Adjust to use remote_supported_packet
3203 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3204 "ConditionalTracepoints", "ConditionalBreakpoints",
3205 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3206 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3207 "EnableDisableTracepoints", and "tracenz".
3208 (remote_query_supported): Use packet_support.
3209 (remote_open_1): Adjust.
3210 (extended_remote_attach_1): Use packet_support. Switch on the
3211 result of packet_ok instead of checking whether the packet ended
3213 (remote_vcont_resume): Use packet_support.
3214 (remote_resume, remote_stop_ns, fetch_register_using_p)
3215 (remote_prepare_to_store, store_register_using_P)
3216 (check_binary_download, remote_write_bytes): Use packet_support.
3217 (remote_vkill): Use packet_support. Switch on the result of
3218 packet_ok instead of checking whether the packet ended up
3220 (extended_remote_supports_disable_randomization): Use
3222 (extended_remote_run): Switch on the result of packet_ok instead
3223 of checking whether the packet ended up disabled.
3224 (remote_insert_breakpoint, remote_remove_breakpoint)
3225 (remote_insert_watchpoint, remote_remove_watchpoint)
3226 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3228 (remote_search_memory): Use packet_config_support.
3229 (remote_get_thread_local_address, remote_get_tib_address)
3230 (remote_hostio_send_command, remote_can_execute_reverse): Use
3232 (remote_supports_cond_tracepoints)
3233 (remote_supports_cond_breakpoints)
3234 (remote_supports_fast_tracepoints)
3235 (remote_supports_static_tracepoints)
3236 (remote_supports_install_in_trace)
3237 (remote_supports_enable_disable_tracepoint)
3238 (remote_supports_string_tracing)
3239 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3240 the packet config says the feature is enabled or disabled.
3241 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3242 (remote_get_trace_status): Use packet_support.
3243 (remote_set_disconnected_tracing): Adjust to check whether the
3244 feature is enabled with packet_support.
3245 (remote_set_trace_buffer_size, remote_use_agent)
3246 (remote_can_use_agent, remote_supports_btrace): Use
3248 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3249 Use packet_config_support.
3250 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3251 the packet config says the feature is enabled or disabled.
3252 (set_range_stepping): Use packet_support.
3254 2014-04-25 Tom Tromey <tromey@redhat.com>
3256 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3259 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3261 * NEWS: Mention support for C99 variable length arrays.
3263 2014-04-24 Joel Brobecker <brobecker@adacore.com>
3265 * ada-lang.c (standard_exc): Expand introductory comment.
3267 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
3268 Walfred Tedeschi <walfred.tedeschi@intel.com>
3270 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3272 (amd64_linux_read_description): Add code to handle AVX512 xstate
3273 mask and return respective tdesc.
3274 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3275 and features/i386/x32-avx512-linux.c.
3276 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3277 (amd64_linux_core_read_description): Add code to handle AVX512
3278 xstate mask and return respective tdesc.
3279 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3280 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3282 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3283 (tdesc_amd64_avx512_linux): New prototype.
3284 (tdesc_x32_avx512_linux): Likewise.
3285 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3286 features/i386/x32-avx512.c.
3287 (amd64_ymm_avx512_names): New register names for pseudo
3289 (amd64_ymmh_avx512_names): New register names for raw registers
3291 (amd64_k_names): New register names for K registers.
3292 (amd64_zmmh_names): New register names for ZMM raw registers.
3293 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3294 (amd64_xmm_avx512_names): New register names for XMM16-31
3296 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3298 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3299 if feature is present.
3300 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3301 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3302 (AMD64_NUM_REGS): Adjust to new number of registers.
3303 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3304 registers supplied via XSTATE by AVX512 registers.
3305 (i386_linux_read_description): Add case for AVX512.
3306 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3307 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3308 (i386_linux_core_read_description): Add case for AVX512.
3309 (i386_linux_init_abi): Install supported register note section
3311 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3313 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3314 registers to be number of zmm7h + 1.
3315 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3316 * i386-tdep.c: Include features/i386/i386-avx512.c.
3317 (i386_zmm_names): Add ZMM pseudo register names array.
3318 (i386_zmmh_names): Add ZMM raw register names array.
3319 (i386_k_names): Add K raw register names array.
3320 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3321 registers. AVX512 has 16 more ZMM registers than there are YMM
3323 (i386_zmmh_regnum_p): Add function to look up register number of
3325 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3326 (i386_k_regnum_p): Likewise for K raw registers.
3327 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3328 registers added by AVX512.
3329 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3330 registers added by AVX512.
3331 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3333 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3334 (i386_pseudo_register_name): Add ZMM pseudo registers.
3335 (i386_zmm_type): Construct and return vector registers type for ZMM
3337 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3338 ZMM0-31 pseudo registers and K registers.
3339 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3340 and YMM16-31 registers from register cache.
3341 (i386_pseudo_register_write): Add code to write K, ZMM and
3343 (i386_register_reggroup_p): Add code to include/exclude AVX512
3344 registers in/from respective register groups.
3345 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3346 registers if feature is present in xcr0.
3347 (i386_gdbarch_init): Add code to initialize AVX512 feature
3348 variables in tdep structure, wire in pseudo registers and call
3349 initialize_tdesc_i386_avx512.
3350 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3352 (i386_regnum): Add AVX512 registers.
3353 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3354 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3355 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3356 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3358 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3359 (i386_ymm_avx512_regnum_p): Likewise.
3360 (i386_k_regnum_p): Likewise.
3361 (i386_zmm_regnum_p): Likewise.
3362 (i386_zmmh_regnum_p): Likewise.
3363 * i387-tdep.c : Update year in copyright notice.
3364 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3366 (XSAVE_YMM_AVX512_ADDR): New macro.
3367 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3369 (XSAVE_XMM_AVX512_ADDR): New macro.
3370 (xsave_avx512_k_offset): New table for K register offsets in
3372 (XSAVE_AVX512_K_ADDR): New macro.
3373 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3375 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3376 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3378 (i387_collect_xsave): Add code to collect AVX512 registers from
3380 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3381 of XMM16-31 registers.
3382 (I387_NUM_K_REGS): New define for number of K registers.
3383 (I387_K0_REGNUM): New define for K0 register number.
3384 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3385 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3386 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3388 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3389 (I387_XMM16_REGNUM): New define for XMM16 register number.
3390 (I387_YMM0_REGNUM): New define for YMM0 register number.
3391 (I387_KEND_REGNUM): New define for last K register number.
3392 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3393 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3395 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3397 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3399 * features/Makefile: Add AVX512 related files.
3400 * features/i386/32bit-avx512.xml: New file.
3401 * features/i386/64bit-avx512.xml: Likewise.
3402 * features/i386/amd64-avx512-linux.c: Likewise.
3403 * features/i386/amd64-avx512-linux.xml: Likewise.
3404 * features/i386/amd64-avx512.c: Likewise.
3405 * features/i386/amd64-avx512.xml: Likewise.
3406 * features/i386/i386-avx512-linux.c: Likewise.
3407 * features/i386/i386-avx512-linux.xml: Likewise.
3408 * features/i386/i386-avx512.c: Likewise.
3409 * features/i386/i386-avx512.xml: Likewise.
3410 * features/i386/x32-avx512-linux.c: Likewise.
3411 * features/i386/x32-avx512-linux.xml: Likewise.
3412 * features/i386/x32-avx512.c: Likewise.
3413 * features/i386/x32-avx512.xml: Likewise.
3414 * regformats/i386/amd64-avx512-linux.dat: New file.
3415 * regformats/i386/amd64-avx512.dat: Likewise.
3416 * regformats/i386/i386-avx512-linux.dat: Likewise.
3417 * regformats/i386/i386-avx512.dat: Likewise.
3418 * regformats/i386/x32-avx512-linux.dat: Likewise.
3419 * regformats/i386/x32-avx512.dat: Likewise.
3420 * NEWS: Add note about new support for AVX512.
3423 2014-04-23 Pedro Alves <palves@redhat.com>
3425 * breakpoint.c (insert_bp_location): Tolerate errors if the
3426 breakpoint is set in a user-loaded objfile.
3427 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3428 location is marked shlib_disabled. If the breakpoint is set in a
3429 user-loaded objfile is a GDB-side memory breakpoint, validate it
3430 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3431 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3433 * mem-break.c (memory_validate_breakpoint): New function.
3434 * objfiles.c (userloaded_objfile_contains_address_p): New
3436 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3437 * target.h (memory_validate_breakpoint): New declaration.
3439 2014-04-23 Pedro Alves <palves@redhat.com>
3441 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3442 the breakpoint is set in a shared library, only suppress
3443 errors for software breakpoints, not hardware breakpoints.
3445 2014-04-22 Pedro Alves <palves@redhat.com>
3447 * infrun.c (schedlock_applies): New function, factored out from
3448 find_thread_needs_step_over.
3449 (find_thread_needs_step_over): Use it.
3450 (switch_back_to_stepped_thread): Always clear trap_expected if the
3451 step over is finished. Return early if scheduler locking applies.
3452 Look for the stepping thread and a potential step-over thread with
3454 (currently_stepping_or_nexting_callback): Delete.
3456 2014-04-22 Nick Clifton <nickc@redhat.com>
3458 * NEWS: Mention that ARM sim now supports tracing.
3460 2014-04-22 Yao Qi <yao@codesourcery.com>
3462 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3464 * tracefile.c (tracefile_fetch_registers): ... it. New
3466 * tracefile.h (tracefile_fetch_registers): Declare.
3467 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3468 tracefile_fetch_registers.
3470 2014-04-19 Eli Zaretskii <eliz@gnu.org>
3473 * windows-nat.c (thread_rec): Don't display a warning when
3474 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3475 fails for any reason, set th->suspended to -1, so that we don't
3476 try to resume such a thread. Also, don't return NULL in these
3477 cases, to avoid completely ruin the session due to "PC register is
3478 not available" error.
3479 (do_windows_fetch_inferior_registers): Check errors in
3480 GetThreadContext call.
3481 (windows_continue): Accept an additional argument KILLED; if not
3482 zero, ignore errors in the SetThreadContext call, since the
3483 inferior was killed and is shutting down.
3484 (windows_resume, get_windows_debug_event)
3485 (windows_create_inferior, windows_mourn_inferior)
3486 (windows_kill_inferior): All callers of windows_continue changed
3487 to adjust to its new calling sequence.
3489 2014-04-19 Yao Qi <yao@codesourcery.com>
3491 * ctf.c (ctf_open): Call post_create_inferior.
3493 2014-04-19 Yao Qi <yao@codesourcery.com>
3495 * ctf.c (handle_id): New static variable.
3496 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3497 value. Get the declaration of event "register" and get length
3498 of field "contents".
3500 2014-04-19 Yao Qi <yao@codesourcery.com>
3502 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3504 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3506 * valops.c (oload_method_static): Remove unnecessary argument
3507 METHOD. Update all callers.
3509 2014-04-18 Pedro alves <palves@redhat.com>
3510 Tom Tromey <tromey@redhat.com>
3513 * frame.c (get_prev_frame_1): Rename to ...
3514 (get_prev_frame_always): ... this, and make extern. Adjust.
3515 (skip_artificial_frames): Use get_prev_frame_always.
3516 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3517 (get_frame_unwind_stop_reason): Adjust to rename.
3518 * frame.h (get_prev_frame_always): Declare.
3519 * inline-frame.c: Include frame.h.
3520 (inline_frame_this_id): Use get_prev_frame_always.
3522 2014-04-18 Tristan Gingold <gingold@adacore.com>
3524 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3525 code by using bfd_mach_o_get_base_address.
3527 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3529 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3530 (spu_ax_pseudo_register_collect): New function.
3531 (spu_ax_pseudo_register_push_stack): Likewise.
3532 (spu_dwarf_reg_to_regnum): Likewise.
3533 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3535 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3537 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3538 Replace FRAME argument with FRAME_ID.
3539 * gdbarch.c, gdbarch.h: Regenerate.
3540 * findvar.c (default_value_from_register): Add GDBARCH argument;
3541 replace FRAME by FRAME_ID. No longer call get_frame_id.
3542 (value_from_register): Update call to gdbarch_value_from_register.
3543 * value.h (default_value_from_register): Update prototype.
3544 * s390-linux-tdep.c (s390_value_from_register): Update interface
3545 and call to default_value_from_register.
3546 * spu-tdep.c (spu_value_from_register): Likewise.
3548 * findvar.c (address_from_register): Remove TYPE argument.
3549 Do not call value_from_register; use gdbarch_value_from_register
3550 with null_frame_id instead.
3551 * value.h (address_from_register): Update prototype.
3552 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3553 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3554 address_from_register interface change.
3556 2014-04-17 Yao Qi <yao@codesourcery.com>
3558 * gdbtypes.h: Update comments to link to types and macros'
3561 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3563 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3565 2014-04-16 Keith Seitz <keiths@redhat.com>
3568 * dwarf2read.c (skip_one_die): Check that all relative-offset
3569 sibling DIEs fall within range of the current reader's buffer.
3570 (read_partial_die): Likewise.
3572 2014-04-16 Keith Seitz <keiths@redhat.com>
3575 * cp-namespace.c (lookup_symbol_file): If the type name of
3576 `this' is NULL, return immediately.
3578 2014-04-14 Keith Seitz <keiths@redhat.com>
3581 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3582 from symbol_matches_domain in symtab.c. All local callers
3583 of symbol_matches_domain updated.
3584 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3585 search STRUCT_DOMAIN.
3586 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3587 independently. standard_lookup will do that automatically.
3588 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3589 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3590 (cp_lookup_symbol_in_namespace): Likewise.
3591 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3592 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3593 may return a STRUCT_DOMAIN match.
3594 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3595 * cp-support.c: Include language.h.
3596 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3598 * psymtab.c (match_partial_symbol): Compare the requested
3599 domain with the symbol's domain directly.
3600 (lookup_partial_symbol): Likewise.
3601 * symtab.c (lookup_symbol_in_language): Explain when/why
3602 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3603 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3604 appropriate languages.
3605 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3606 and moved to ada-lang.c
3607 (lookup_block_symbol): Explain that this function only returns
3608 symbol matching the requested DOMAIN.
3609 Compare the requested domain with the symbol's domain directly.
3610 (iterate_over_symbols): Compare the requested domain with the
3611 symbol's domain directly.
3612 * symtab.h (symbol_matches_domain): Remove.
3614 2014-04-14 Tom Tromey <tromey@redhat.com>
3617 * c-exp.y (type_aggregate_p): New function.
3618 (qualified_name, classify_inner_name): Use it.
3619 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
3620 and TYPE_TARGET_TYPE of an enum type.
3621 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
3623 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
3624 handle TYPE_DECLARED_CLASS.
3625 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
3627 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
3628 * valops.c (enum_constant_from_type): New function.
3629 (value_aggregate_elt): Use it.
3630 * cp-namespace.c (cp_lookup_nested_symbol): Handle
3633 2014-04-14 Tom Tromey <tromey@redhat.com>
3635 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
3636 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
3638 * value.h (value_aggregate_elt): Update.
3640 2014-04-14 Tom Tromey <tromey@redhat.com>
3642 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
3644 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3646 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3647 (evaluate_subexp_standard): Pass noside argument.
3648 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3649 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3650 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3651 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3652 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3654 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3656 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3657 points to a constant blob.
3659 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3661 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3662 property and store it as the high bound and flag the range accordingly.
3663 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3664 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3665 * gdbtypes.h (enum range_flags): New enum.
3666 (struct range_bounds): Add flags member.
3668 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3670 * c-typeprint.c (c_type_print_varspec_suffix): Added
3671 check for not yet resolved high bound. If unresolved, print
3672 "variable length" string to the console instead of random
3675 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3677 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
3679 (ada_template_to_fixed_record_type_1): Likewise.
3680 (ada_to_fixed_type_1): Likewise.
3681 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3682 (cp_print_value): Likewise.
3683 * d-valprint.c (dynamic_array_type): Likewise.
3684 * findvar.c (address_of_variable): Likewise.
3685 * jv-valprint.c (java_value_print): Likewise.
3686 * valops.c (value_ind): Likewise.
3687 * value.c (coerce_ref): Likewise.
3689 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3691 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3692 value and retrieve the dynamic type size.
3694 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3696 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3697 passed to sizeof is dynamic evaluate the argument to compute the length.
3699 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3700 Joel Brobecker <brobecker@adacore.com>
3702 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3703 (dwarf2_evaluate_property): New function.
3704 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3705 * dwarf2read.c (attr_to_dynamic_prop): New function.
3706 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3708 * gdbtypes.c: Include dwarf2loc.h.
3709 (is_dynamic_type): New function.
3710 (resolve_dynamic_type): New function.
3711 (resolve_dynamic_bounds): New function.
3712 (get_type_length): New function.
3713 (check_typedef): Use get_type_length to compute type length.
3714 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3715 (TYPE_LOW_BOUND_KIND): New macro.
3716 (is_dynamic_type): New function prototype.
3717 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3718 to resolve dynamic properties of the type. Update comment.
3719 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3721 2014-04-14 Richard Henderson <rth@redhat.com>
3723 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
3725 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
3726 Doug Evans <xdje42@gmail.com>
3728 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
3729 dereference TYPE_CODE_REF values.
3731 2014-04-11 Joel Brobecker <brobecker@adacore.com>
3733 Revert the following changes due to regressions:
3735 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3736 (dwarf2_evaluate_property): New function.
3737 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3738 * dwarf2read.c (attr_to_dynamic_prop): New function.
3739 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3741 * gdbtypes.c: Include dwarf2loc.h.
3742 (is_dynamic_type): New function.
3743 (resolve_dynamic_type): New function.
3744 (resolve_dynamic_bounds): New function.
3745 (get_type_length): New function.
3746 (check_typedef): Use get_type_length to compute type length.
3747 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3748 (TYPE_LOW_BOUND_KIND): New macro.
3749 (is_dynamic_type): New function prototype.
3750 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3751 to resolve dynamic properties of the type. Update comment.
3752 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3754 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3755 passed to sizeof is dynamic evaluate the argument to compute the length.
3757 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3758 value and retrieve the dynamic type size.
3760 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3761 (ada_template_to_fixed_record_type_1): Likewise.
3762 (ada_to_fixed_type_1): Likewise.
3763 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3764 (cp_print_value): Likewise.
3765 * d-valprint.c (dynamic_array_type): Likewise.
3766 * eval.c (evaluate_subexp_with_coercion): Likewise.
3767 * findvar.c (address_of_variable): Likewise.
3768 * jv-valprint.c (java_value_print): Likewise.
3769 * valops.c (value_ind): Likewise.
3770 * value.c (coerce_ref): Likewise.
3772 * c-typeprint.c (c_type_print_varspec_suffix): Added
3773 check for not yet resolved high bound. If unresolved, print
3774 "variable length" string to the console instead of random
3777 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3778 property and store it as the high bound and flag the range accordingly.
3779 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3780 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3781 * gdbtypes.h (enum range_flags): New enum.
3782 (struct range_bounds): Add flags member.
3784 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3785 points to a constant blob.
3787 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3788 (evaluate_subexp_standard): Pass noside argument.
3789 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3790 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3791 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3792 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3793 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3795 2014-04-11 Keith Seitz <keiths@redhat.com>
3798 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
3799 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
3802 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3804 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3805 (evaluate_subexp_standard): Pass noside argument.
3806 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3807 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3808 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3809 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3810 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3812 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3814 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3815 points to a constant blob.
3817 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3819 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3820 property and store it as the high bound and flag the range accordingly.
3821 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3822 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3823 * gdbtypes.h (enum range_flags): New enum.
3824 (struct range_bounds): Add flags member.
3826 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3828 * c-typeprint.c (c_type_print_varspec_suffix): Added
3829 check for not yet resolved high bound. If unresolved, print
3830 "variable length" string to the console instead of random
3833 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3835 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3836 (ada_template_to_fixed_record_type_1): Likewise.
3837 (ada_to_fixed_type_1): Likewise.
3838 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3839 (cp_print_value): Likewise.
3840 * d-valprint.c (dynamic_array_type): Likewise.
3841 * eval.c (evaluate_subexp_with_coercion): Likewise.
3842 * findvar.c (address_of_variable): Likewise.
3843 * jv-valprint.c (java_value_print): Likewise.
3844 * valops.c (value_ind): Likewise.
3845 * value.c (coerce_ref): Likewise.
3847 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3849 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3850 value and retrieve the dynamic type size.
3852 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3854 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3855 passed to sizeof is dynamic evaluate the argument to compute the length.
3857 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3859 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3860 (dwarf2_evaluate_property): New function.
3861 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3862 * dwarf2read.c (attr_to_dynamic_prop): New function.
3863 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3865 * gdbtypes.c: Include dwarf2loc.h.
3866 (is_dynamic_type): New function.
3867 (resolve_dynamic_type): New function.
3868 (resolve_dynamic_bounds): New function.
3869 (get_type_length): New function.
3870 (check_typedef): Use get_type_length to compute type length.
3871 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3872 (TYPE_LOW_BOUND_KIND): New macro.
3873 (is_dynamic_type): New function prototype.
3874 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3875 to resolve dynamic properties of the type. Update comment.
3876 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3878 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3880 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
3881 declaring high/low bounds and change uses accordingly. Call
3882 create_range_type instead of create_static_range_type.
3883 * gdbtypes.c (create_range_type): New function.
3884 (create_range_type): Convert bounds into struct bound_prop and pass
3885 them to create_range_type.
3886 * gdbtypes.h (struct bound_prop): New struct.
3887 (create_range_type): New function prototype.
3888 (struct range_bounds): Use struct bound_prop instead of LONGEST for
3889 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
3890 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
3892 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
3894 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3896 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
3897 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
3898 * ada-lang.c: All uses of create_range_type updated.
3899 * coffread.c: All uses of create_range_type updated.
3900 * dwarf2read.c: All uses of create_range_type updated.
3901 * f-exp.y: All uses of create_range_type updated.
3902 * m2-valprint.c: All uses of create_range_type updated.
3903 * mdebugread.c: All uses of create_range_type updated.
3904 * stabsread.c: All uses of create_range_type updated.
3905 * valops.c: All uses of create_range_type updated.
3906 * valprint.c: All uses of create_range_type updated.
3908 2014-04-10 Pedro Alves <palves@redhat.com>
3910 * breakpoint.c (single_step_breakpoints)
3911 (single_step_gdbarch): Move up in the file.
3912 (one_breakpoint_xfer_memory): New function, factored out from ...
3913 (breakpoint_xfer_memory): ... here. Also process single-step
3916 2014-04-09 Tristan Gingold <gingold@adacore.com>
3918 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
3920 (darwin_decode_exception_message): Free port only after use.
3922 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
3924 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
3925 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
3926 when setting the size of call_length.
3928 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
3930 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
3931 dereference TYPE_CODE_REF values.
3933 2014-04-07 Joel Brobecker <brobecker@adacore.com>
3935 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
3936 end of warning message.
3938 2014-04-03 Doug Evans <dje@google.com>
3940 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
3941 of stub_comp_unit_die, stub_comp_dir is non-NULL.
3943 2014-04-02 Alan Modra <amodra@gmail.com>
3945 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
3946 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
3947 (struct symbol_file_add_from_memory_args): Add size field.
3948 (find_vdso_size): New function.
3949 (add_vsyscall_page): Attempt to find vdso size.
3951 2014-04-01 Doug Evans <dje@google.com>
3953 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
3955 2014-04-01 Tristan Gingold <gingold@adacore.com>
3957 * darwin-nat.c (darwin_encode_reply): Add prototype.
3958 (darwin_decode_exception_message): Reply to unknown inferiors.
3959 (darwin_decode_message): Handle message by id. Ignore message
3960 to unknown inferior.
3961 (darwin_wait): Discard unknown messages, add debug trace.
3963 2014-03-31 Doug Evans <dje@google.com>
3965 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
3968 2014-03-31 Doug Evans <dje@google.com>
3970 New option "set print symbol-loading".
3972 * solib.c (solib_read_symbols): Only print symbol loading messages
3974 (solib_add): If symbol loading is in "brief" mode, notify user
3975 symbols are being loaded.
3976 (reload_shared_libraries_1): Ditto.
3977 * symfile.c (print_symbol_loading_off): New static global.
3978 (print_symbol_loading_brief): New static global.
3979 (print_symbol_loading_full): New static global.
3980 (print_symbol_loading_enums): New static global.
3981 (print_symbol_loading): New static global.
3982 (print_symbol_loading_p): New function.
3983 (symbol_file_add_with_addrs): Only print symbol loading messages
3985 (_initialize_symfile): Register "print symbol-loading" set/show
3987 * symfile.h (print_symbol_loading_p): Declare.
3989 2014-03-30 Doug Evans <xdje42@gmail.com>
3991 * infrun.c (set_last_target_status): New function.
3992 (handle_inferior_event): Call it.
3994 2014-03-30 Doug Evans <xdje42@gmail.com>
3996 * inferior.h (enum stop_kind): Improve comment.
3998 2014-03-28 Joel Brobecker <brobecker@adacore.com>
4000 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
4001 a reference, strip the reference layer before calling
4002 the lang_ops value_has_mutated callback.
4004 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
4006 Remove some globals from our parser.
4007 * language.c (unk_lang_parser): Add "struct parser_state"
4009 * language.h (struct language_defn) <la_parser>: Likewise.
4010 * parse.c (expout, expout_size, expout_ptr): Remove variables.
4011 (initialize_expout): Add "struct parser_state" argument.
4012 Rewrite function to use the parser state.
4013 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
4014 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
4015 write_exp_elt_longcst, write_exp_elt_dblcst,
4016 write_exp_elt_decfloatcst, write_exp_elt_type,
4017 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4018 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
4019 write_dollar_variable): Likewise.
4020 (parse_exp_in_context_1): Use parser state.
4021 (insert_type_address_space): Add "struct parser_state" argument.
4023 (increase_expout_size): New function.
4024 * parser-defs.h: Forward declare "struct language_defn" and
4025 "struct parser_state".
4026 (expout, expout_size, expout_ptr): Remove extern declarations.
4027 (parse_gdbarch, parse_language): Rewrite macro declarations to
4028 accept the parser state.
4029 (struct parser_state): New struct.
4030 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
4031 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
4032 write_exp_elt_decfloatcst, write_exp_elt_type,
4033 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4034 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
4035 write_exp_msymbol, write_dollar_variable,
4036 mark_struct_expression, insert_type_address_space): Add "struct
4037 parser_state" argument.
4038 (increase_expout_size): New function.
4039 * utils.c (do_clear_parser_state): New function.
4040 (make_cleanup_clear_parser_state): Likewise.
4041 * utils.h (make_cleanup_clear_parser_state): New function
4043 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
4044 Update calls to write_exp* in order to pass the parser state.
4045 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
4046 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
4047 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4048 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
4049 * stap-probe.c (stap_parse_register_operand): Likewise.
4050 (stap_parse_single_operand): Likewise.
4051 (stap_parse_argument_1): Likewise.
4052 (stap_parse_argument): Use parser state.
4053 * stap-probe.h: Include "parser-defs.h".
4054 (struct stap_parse_info) <pstate>: New field.
4055 * c-exp.y (parse_type): Rewrite to use parser state.
4056 (yyparse): Redefine to c_parse_internal.
4057 (pstate): New global variable.
4058 (parse_number): Add "struct parser_state" argument.
4059 (write_destructor_name): Likewise.
4060 (type_exp): Update calls to write_exp* and similars in order to
4062 (exp1, exp, variable, qualified_name, space_identifier,
4063 typename, typebase): Likewise.
4064 (write_destructor_name, parse_number, lex_one_token,
4065 classify_name, classify_inner_name, c_parse): Add "struct
4066 parser_state" argument. Update function to use parser state.
4067 * c-lang.h: Forward declare "struct parser_state".
4068 (c_parse): Add "struct parser_state" argument.
4069 * ada-exp.y (parse_type): Rewrite macro to use parser state.
4070 (yyparse): Redefine macro to ada_parse_internal.
4071 (pstate): New variable.
4072 (write_int, write_object_renaming, write_var_or_type,
4073 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
4074 type_int, type_long, type_long_long, type_float, type_double,
4075 type_long_double, type_char, type_boolean, type_system_address):
4076 Add "struct parser_state" argument.
4077 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
4078 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
4079 var_or_type, aggregate, aggregate_component_list,
4080 positional_list, others, component_group,
4081 component_associations): Update calls to write_exp* and similar
4082 functions in order to use parser state.
4083 (ada_parse, write_var_from_sym, write_int,
4084 write_exp_op_with_string, write_object_renaming,
4085 find_primitive_type, write_selectors, write_ambiguous_var,
4086 write_var_or_type, write_name_assoc, type_int, type_long,
4087 type_long_long, type_float, type_double, type_long_double,
4088 type_char, type_boolean, type_system_address): Add "struct
4089 parser_state" argument. Adjust function to use parser state.
4090 * ada-lang.c (parse): Likewise.
4091 * ada-lang.h: Forward declare "struct parser_state".
4092 (ada_parse): Add "struct parser_state" argument.
4093 * ada-lex.l (processInt, processReal): Likewise. Adjust all
4094 calls to both functions.
4095 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
4097 (yyparse): Redefine macro to f_parse_internal.
4098 (pstate): New variable.
4099 (parse_number): Add "struct parser_state" argument.
4100 (type_exp, exp, subrange, typebase): Update calls to write_exp*
4101 and similars in order to use parser state.
4102 (parse_number): Adjust code to use parser state.
4104 (f_parse): New function.
4105 * f-lang.h: Forward declare "struct parser_state".
4106 (f_parse): Add "struct parser_state" argument.
4107 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
4109 (yyparse): Redefine macro for java_parse_internal.
4110 (pstate): New variable.
4111 (push_expression_name, push_expression_name, insert_exp): Add
4112 "struct parser_state" argument.
4113 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
4114 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
4115 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
4116 PostIncrementExpression, PostDecrementExpression,
4117 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
4118 UnaryExpressionNotPlusMinus, CastExpression,
4119 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
4120 RelationalExpression, EqualityExpression, AndExpression,
4121 ExclusiveOrExpression, InclusiveOrExpression,
4122 ConditionalAndExpression, ConditionalOrExpression,
4123 ConditionalExpression, Assignment, LeftHandSide): Update
4124 calls to write_exp* and similars in order to use parser state.
4125 (parse_number): Ajust code to use parser state.
4127 (java_parse): New function.
4128 (push_variable): Add "struct parser_state" argument. Adjust
4129 code to user parser state.
4130 (push_fieldnames, push_qualified_expression_name,
4131 push_expression_name, insert_exp): Likewise.
4132 * jv-lang.h: Forward declare "struct parser_state".
4133 (java_parse): Add "struct parser_state" argument.
4134 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
4136 (yyparse): Redefine macro to m2_parse_internal.
4137 (pstate): New variable.
4138 (type_exp, exp, fblock, variable, type): Update calls to
4139 write_exp* and similars to use parser state.
4141 (m2_parse): New function.
4142 * m2-lang.h: Forward declare "struct parser_state".
4143 (m2_parse): Add "struct parser_state" argument.
4144 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
4145 * objc-lang.h: Forward declare "struct parser_state".
4146 (end_msglist): Add "struct parser_state" argument.
4147 * p-exp.y (parse_type): Rewrite macro to use parser state.
4148 (yyparse): Redefine macro to pascal_parse_internal.
4149 (pstate): New variable.
4150 (parse_number): Add "struct parser_state" argument.
4151 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4152 write_exp* and similars in order to use parser state.
4153 (parse_number, yylex): Adjust code to use parser state.
4154 (pascal_parse): New function.
4155 * p-lang.h: Forward declare "struct parser_state".
4156 (pascal_parse): Add "struct parser_state" argument.
4157 * go-exp.y (parse_type): Rewrite macro to use parser state.
4158 (yyparse): Redefine macro to go_parse_internal.
4159 (pstate): New variable.
4160 (parse_number): Add "struct parser_state" argument.
4161 (type_exp, exp1, exp, variable, type): Update calls to
4162 write_exp* and similars in order to use parser state.
4163 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4164 to use parser state.
4165 (go_parse): Likewise.
4166 * go-lang.h: Forward declare "struct parser_state".
4167 (go_parse): Add "struct parser_state" argument.
4169 2014-03-27 Doug Evans <dje@google.com>
4171 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4173 2014-03-27 Doug Evans <dje@google.com>
4175 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4176 Remove argument abbrev_section. All callers updated.
4178 2014-03-27 Doug Evans <dje@google.com>
4180 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4181 addr_base, ranges_base.
4183 2014-03-26 Keith Seitz <keiths@redhat.com>
4185 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4186 types, not VAR_DOMAIN.
4188 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4190 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4192 * features/nios2-linux.c: Regenerated.
4193 * features/nios2.c: Regenerated.
4195 2014-03-25 Pedro Alves <palves@redhat.com>
4197 * cli/cli-script.c (script_from_file): Force the interpreter to
4200 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4202 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4203 small stack allocation.
4205 2014-03-24 Tristan Gingold <gingold@adacore.com>
4207 * darwin-nat.c (exc_server): Remove unused prototype.
4208 (darwin_dump_message): Correctly display data on x86_64.
4209 (darwin_encode_reply): Fix style.
4210 Add comments and fix indentation.
4212 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4214 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4216 2014-03-22 Doug Evans <xdje42@gmail.com>
4218 * infcmd.c: Whitespace fixes.
4219 (interrupt_command): Merge two function comments into one.
4221 2014-03-22 Doug Evans <xdje42@gmail.com>
4223 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4226 2014-03-22 Yao Qi <yao@codesourcery.com>
4228 * remote.c (target_read_live_memory): Remove.
4229 (memory_xfer_live_readonly_partial): Rename it to
4230 remote_xfer_live_readonly_partial. Remove argument 'object'.
4231 All callers updated. Call remote_read_bytes_1
4232 instead of target_read_live_memory.
4233 * tracepoint.c (set_traceframe_number): Remove.
4234 (make_cleanup_restore_traceframe_number): Likewise .
4235 * tracepoint.h (set_traceframe_number): Remove declaration.
4236 (make_cleanup_restore_traceframe_number): Likewise.
4238 2014-03-22 Yao Qi <yao@codesourcery.com>
4240 * remote.c (remote_read_bytes): Move code on reading from the
4242 (remote_read_bytes_1): ... here. New function.
4244 2014-03-22 Yao Qi <yao@codesourcery.com>
4246 * ctf.c (ctf_xfer_partial): Check the return value of
4247 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4248 return TARGET_XFER_UNAVAILABLE.
4249 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4250 * target.c (target_read_live_memory): Move it to remote.c.
4251 (memory_xfer_live_readonly_partial): Likewise.
4252 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4253 * remote.c (target_read_live_memory): Moved from target.c.
4254 (memory_xfer_live_readonly_partial): Likewise.
4255 (remote_read_bytes): Factored out from
4256 memory_xfer_partial_1.
4258 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4260 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4263 2014-03-21 Pedro Alves <palves@redhat.com>
4265 * infrun.c (normal_stop): Extend comment.
4267 2014-03-21 Hui Zhu <hui@codesourcery.com>
4268 Pedro Alves <palves@redhat.com>
4270 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4272 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4273 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4274 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4276 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4278 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4279 `z' formatted output modifier.
4281 2014-03-20 Tom Tromey <tromey@redhat.com>
4282 Sergio Durigan Junior <sergiodj@redhat.com>
4284 * probe.c (parse_probes): Turn assert into an ordinary error.
4285 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4286 exceptions when parsing probes. Rearrange the code for clarity.
4288 2014-03-20 Tom Tromey <tromey@redhat.com>
4291 * top.c (execute_command): Only dispatch events if the command
4294 2014-03-20 Tom Tromey <tromey@redhat.com>
4297 * infcall.c: Include event-top.h.
4298 (run_inferior_call): Call async_disable_stdin if needed.
4300 2014-03-20 Pedro Alves <palves@redhat.com>
4302 * infrun.c (prepare_to_proceed): Delete.
4303 (thread_still_needs_step_over): New function.
4304 (find_thread_needs_step_over): New function.
4305 (proceed): If the current thread needs a step-over, set its
4306 steping_over_breakpoint flag. Adjust to use
4307 find_thread_needs_step_over instead of prepare_to_proceed.
4308 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4309 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4311 (switch_back_to_stepped_thread): Step over breakpoints of all
4312 threads not the stepping thread, before switching back to the
4315 2014-03-20 Pedro Alves <palves@redhat.com>
4317 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4319 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4320 * infrun.c (saved_singlestep_ptid)
4321 (stepping_past_singlestep_breakpoint): Delete.
4322 (resume): Remove stepping_past_singlestep_breakpoint handling.
4323 (proceed): Store the prev_pc of the stepping thread too.
4324 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4326 (enum infwait_states): Delete infwait_thread_hop_state.
4327 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4329 (handle_inferior_event): Adjust.
4330 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4331 handling and the thread-hop code. Before removing single-step
4332 breakpoints, check whether the thread hit a single-step breakpoint
4333 of another thread. If it did, the trap is not a random signal.
4334 (switch_back_to_stepped_thread): If the event thread hit a
4335 single-step breakpoint, unblock it before switching to the
4336 stepping thread. Handle the case of the stepped thread having
4338 (keep_going): Handle the case of the current thread moving past a
4339 single-step breakpoint.
4341 2014-03-20 Pedro Alves <palves@redhat.com>
4344 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4345 are being stepped over.
4346 (breakpoint_address_match): Make extern.
4347 * breakpoint.h (breakpoint_address_match): New declaration.
4348 * inferior.h (stepping_past_instruction_at): New declaration.
4349 * infrun.c (struct step_over_info): New type.
4350 (step_over_info): New global.
4351 (set_step_over_info, clear_step_over_info)
4352 (stepping_past_instruction_at): New functions.
4353 (handle_inferior_event): Clear the step-over info when
4354 trap_expected is cleared.
4355 (resume): Remove now stale comment.
4356 (clear_proceed_status): Clear step-over info.
4357 (proceed): Adjust step-over handling to set or clear the step-over
4358 info instead of removing all breakpoints.
4359 (handle_signal_stop): When setting up a thread-hop, don't remove
4361 (stop_stepping): Clear step-over info.
4362 (keep_going): Adjust step-over handling to set or clear step-over
4363 info and then always inserting breakpoints, instead of removing
4364 all breakpoints when stepping over one.
4366 2014-03-20 Pedro Alves <palves@redhat.com>
4368 * infrun.c (previous_inferior_ptid): Adjust comment.
4369 (deferred_step_ptid): Delete.
4370 (infrun_thread_ptid_changed, prepare_to_proceed)
4371 (init_wait_for_inferior): Adjust.
4372 (handle_signal_stop): Delete deferred_step_ptid handling.
4374 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4377 * defs.h (sync_quit_force_run): New declaration.
4378 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4379 * event-top.c (async_sigterm_handler): New declaration.
4380 (async_sigterm_token): New variable.
4381 (async_init_signals): Create also async_sigterm_token.
4382 (async_sigterm_handler): New function.
4383 (sync_quit_force_run): New variable.
4384 (handle_sigterm): Replace quit_force call by other calls.
4385 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4387 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4389 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4390 offset into SPE pseudo registers.
4392 2014-03-18 Pedro Alves <palves@redhat.com>
4395 * inferior.h (print_stop_event): Declare.
4396 * infrun.c (print_stop_event): New, factored out from ...
4397 (normal_stop): ... this.
4398 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4399 of bpstat_print/print_stack_frame.
4401 2014-03-17 Tom Tromey <tromey@redhat.com>
4403 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4405 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4407 * ada-lang.c (decode_constrained_packed_array): Perform a
4408 minimal coercion for reference with coerce_ref instead of
4411 2014-03-17 Tristan Gingold <gingold@adacore.com>
4413 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4414 (darwin_solib_create_inferior_hook): Emit a warning if version
4417 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
4419 * python/py-value.c (get_field_flag): Cast flag_name argument to
4420 PyObject_GetAttrString to support Python 2.4.
4422 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4424 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4425 (Global Maintainers): Remove Jan Kratochvil.
4427 2014-03-14 Pedro Alves <palves@redhat.com>
4429 * inferior.h (terminal_ours_for_output): Rename to ...
4430 (child_terminal_ours_for_output): ... this.
4431 (terminal_save_ours): Rename to ...
4432 (child_terminal_save_ours): ... this.
4433 (terminal_ours): Rename to ...
4434 (child_terminal_ours): ... this.
4435 (terminal_inferior): Rename to ...
4436 (child_terminal_inferior): ... this.
4437 (terminal_init_inferior): Rename to ...
4438 (child_terminal_init_inferior): ... this.
4439 (terminal_init_inferior_with_pgrp): Rename to ...
4440 (child_terminal_init_inferior_with_pgrp): ... this.
4441 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4442 (child_terminal_init_with_pgrp): ... this.
4443 (terminal_save_ours): Rename to ...
4444 (child_terminal_save_ours): ... this.
4445 (terminal_init_inferior): Rename to ...
4446 (child_terminal_init): ... this. Adjust.
4447 (terminal_inferior): Rename to ...
4448 (child_terminal_inferior): ... this.
4449 (terminal_ours_for_output): Rename to ...
4450 (child_terminal_ours_for_output): ... this. Adjust.
4451 (terminal_ours): Rename to ...
4452 (child_terminal_ours): ... this.
4453 (terminal_ours_1): Rename to ...
4454 (child_terminal_ours_1): ... this. Adjust.
4455 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4456 * windows-nat.c (do_initial_windows_stuff): Adjust.
4457 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4458 (gnu_terminal_init): ... this. Adjust.
4459 (gnu_target): Adjust.
4460 * inf-child.c (inf_child_target): Adjust.
4462 2014-03-13 Doug Evans <xdje42@gmail.com>
4465 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4468 2014-03-13 Doug Evans <xdje42@gmail.com>
4470 * value.c (record_latest_value): Call release_value_or_incref
4471 instead of release_value.
4473 2014-03-13 Pedro Alves <palves@redhat.com>
4475 * procfs.c (procfs_target): Don't override to_shortname,
4476 to_longname or to_doc.
4478 2014-03-13 Pedro Alves <palves@redhat.com>
4480 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4481 Unix in user visible strings.
4483 2014-03-12 Stan Shebs <stan@codesourcery.com>
4485 * gdbtypes.h: Annotate comments for Doxygen, add a page
4486 block comment with some general info.
4488 2014-03-12 Pedro Alves <palves@redhat.com>
4490 * infcmd.c (prepare_execution_command): New function, factored out
4491 from several execution commands.
4492 (run_command_1, continue_command, step_1, jump_command)
4493 (signal_command, until_command, advance_command, finish_command)
4494 (attach_command): Use prepare_execution_command.
4496 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
4498 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4501 (struct arm_linux_thread_points): Removed.
4502 (struct arm_linux_process_info): New.
4503 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4504 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4505 (arm_linux_find_breakpoints_by_tid): Removed.
4506 (struct arch_lwp_info): New.
4507 (arm_linux_find_process_pid): New functions.
4508 (arm_linux_add_process): New functions.
4509 (arm_linux_process_info_get): New functions.
4510 (arm_linux_forget_process): New function.
4511 (arm_linux_get_debug_reg_state): New function.
4512 (struct update_registers_data): New.
4513 (update_registers_callback): New function.
4514 (arm_linux_insert_hw_breakpoint1): Updated.
4515 (arm_linux_remove_hw_breakpoint1): Updated.
4516 (arm_linux_insert_hw_breakpoint): Updated.
4517 (arm_linux_remove_hw_breakpoint): Updated.
4518 (arm_linux_insert_watchpoint): Updated.
4519 (arm_linux_remove_watchpoint): Updated.
4520 (arm_linux_new_thread): Updated.
4521 (arm_linux_prepare_to_resume): New function.
4522 (arm_linux_new_fork): New function.
4523 (_initialize_arm_linux_nat): Updated.
4525 2014-03-12 Pedro Alves <palves@redhat.com>
4527 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4529 2014-03-12 Tom Tromey <tromey@redhat.com>
4531 * inf-child.c (return_zero): New function.
4532 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4533 * aix-thread.c (aix_thread_inferior_created): New function.
4534 (aix_thread_attach): Remove.
4535 (init_aix_thread_ops): Don't set to_attach.
4536 (_initialize_aix_thread): Register inferior_created observer.
4537 * corelow.c (init_core_ops): Don't set to_attach or
4539 * exec.c (init_exec_ops): Don't set to_attach or
4541 * infcmd.c (run_command_1): Use find_run_target. Make direct
4543 (attach_command): Use find_attach_target. Make direct target
4545 * record-btrace.c (init_record_btrace_ops): Don't set
4547 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4549 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4550 set to_create_inferior.
4551 * target.c (complete_target_initialization): Add assertion.
4552 (target_create_inferior): Remove.
4553 (find_default_attach, find_default_create_inferior): Remove.
4554 (find_attach_target, find_run_target): New functions.
4555 (find_default_is_async_p, find_default_can_async_p)
4556 (target_supports_non_stop, target_attach): Remove.
4557 (init_dummy_target): Don't set to_create_inferior or
4558 to_supports_non_stop.
4559 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4560 TARGET_DEFAULT_FUNC.
4561 <to_create_inferior>: Add comment.
4562 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4563 TARGET_DEFAULT_RETURN.
4564 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4565 (find_attach_target, find_run_target): Declare.
4566 (target_create_inferior): Remove.
4567 (target_has_execution_1): Update comment.
4568 (target_supports_non_stop): Remove.
4569 * target-delegates.c: Rebuild.
4571 2014-03-12 Pedro Alves <palves@redhat.com>
4573 * inf-child.h: Update comment to not mention Unix.
4575 2014-03-12 Pedro Alves <palves@redhat.com>
4577 * inf-child.c: Update top comment to not mention Unix. Add
4578 generic comment describing how this target is meant to be used.
4579 (inf_child_post_attach, inf_child_post_startup_inferior)
4580 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4583 2014-03-12 Pedro Alves <palves@redhat.com>
4585 * nto-procfs.c: Include inf-child.h.
4586 (procfs_ops): Delete global.
4587 (procfs_can_run): Delete method.
4588 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
4589 target pointer instead of referencing procfs_ops.
4590 (procfs_prepare_to_store): Delete.
4591 (init_procfs_ops): Delete function.
4592 (procfs_target): New function, based on init_procfs_ops, but
4593 inherit inf_child_target.
4594 (_initialize_procfs): Use procfs_target.
4596 2014-03-12 Pedro Alves <palves@redhat.com>
4598 * windows-nat.c: Include inf-child.h.
4599 (windows_ops): Delete global.
4600 (windows_open, windows_prepare_to_store, windows_can_run): Delete
4602 (init_windows_ops): Delete function.
4603 (windows_target): New function, based on init_windows_ops, but
4604 inherit inf_child_target.
4605 (_initialize_windows_nat): Use windows_target. Install x86
4606 specific target methods here.
4608 2014-03-10 Doug Evans <xdje42@gmail.com>
4610 * guile/guile.c (call_initialize_gdb_module): New function.
4611 (initialize_guile): Replace call to scm_init_guile with call to
4614 2014-03-10 Joel Brobecker <brobecker@adacore.com>
4616 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
4617 in call to TYPE_CODE macro.
4619 2014-03-10 Jerome Guitton <guitton@adacore.com>
4621 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
4622 Resolve tagged types to full view.
4624 2014-03-10 Hui Zhu <hui@codesourcery.com>
4626 * target.h (target_insert_breakpoint): Remove "hardware" from its
4629 2014-03-07 Doug Evans <dje@google.com>
4631 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
4633 2014-03-07 Doug Evans <dje@google.com>
4635 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
4636 Remove unused local comp_dir_attr. Assert exactly one of
4637 stub_comp_unit_die, stub_comp_dir is non-NULL.
4639 2014-03-07 Joel Brobecker <brobecker@adacore.com>
4641 * target.h (complete_target_initialization, add_target):
4644 2014-03-07 Pedro Alves <palves@redhat.com>
4646 * go32-nat.c: Include inf-child.h.
4647 (go32_ops): Delete global.
4648 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
4650 (go32_create_inferior): Push the passed in target pointer instead
4651 of referencing go32_ops.
4652 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
4653 (go32_target): New function, based on init_go32_ops, but inherit
4655 (_initialize_go32_nat): Use go32_target. Move parts of
4658 2014-03-06 Joel Brobecker <brobecker@adacore.com>
4660 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
4661 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
4662 SYMBOL_VALUE_ADDRESS.
4663 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
4665 2014-03-06 Yao Qi <yao@codesourcery.com>
4667 * breakpoint.c (get_tracepoint_by_number): Remove argument
4668 optional_p. All callers updated. Adjust comments. Update
4670 * breakpoint.h (get_tracepoint_by_number): Update declaration.
4672 2014-03-06 Yao Qi <yao@codesourcery.com>
4674 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
4675 early if get_number returns zero. Use 'p' instead of 'args'.
4677 2014-03-06 Yao Qi <yao@codesourcery.com>
4679 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
4682 2014-03-06 Yao Qi <yao@codesourcery.com>
4684 PR breakpoints/16508
4685 * tracepoint.c (check_trace_running): New function.
4686 (trace_find_command): Move code to check_trace_running and
4687 call check_trace_running.
4688 (trace_find_pc_command): Likewise.
4689 (trace_find_tracepoint_command): Likewise.
4690 (trace_find_line_command): Likewise.
4691 (trace_find_range_command): Likewise.
4692 * tracepoint.h (check_trace_running): Likewise.
4693 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
4695 2014-03-06 Yao Qi <yao@codesourcery.com>
4697 * target.h (struct target_ops) <to_traceframe_info>: Use
4698 TARGET_DEFAULT_NORETURN (tcomplain ()).
4699 * target-delegates.c: Regenerated.
4701 2014-03-05 Pedro Alves <palves@redhat.com>
4704 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
4705 void. Update comment.
4706 (dcache_xfer_memory): Delete.
4707 (dcache_read_memory_partial): New, based on the read bits of
4709 (dcache_update): Add status parameter. Use ULONGEST for len, and
4710 adjust. Discard cache lines if the reason for the update was
4712 * dcache.h (dcache_xfer_memory): Delete declaration.
4713 (dcache_read_memory_partial): New declaration.
4714 (dcache_update): Update prototype.
4715 * target.c (raw_memory_xfer_partial): Update the dcache here.
4716 (memory_xfer_partial_1): Don't handle dcache writes here.
4718 2014-03-05 Mike Frysinger <vapier@gentoo.org>
4720 * remote-sim.c (gdbsim_load): Add const to prog.
4722 2014-03-03 Tom Tromey <tromey@redhat.com>
4724 * elfread.c (probe_key): Change to bfd_data.
4725 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
4726 now per-BFD, not per-objfile.
4727 * stap-probe.c (stap_probe_destroy): Update comment.
4728 (handle_stap_probe): Allocate on the per-BFD obstack.
4730 2014-03-03 Tom Tromey <tromey@redhat.com>
4732 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
4733 * breakpoint.c (create_longjmp_master_breakpoint): Use
4735 (add_location_to_breakpoint, bkpt_probe_insert_location)
4736 (bkpt_probe_remove_location): Update.
4737 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
4738 * elfread.c (elf_symfile_relocate_probe): Remove.
4739 (elf_probe_fns): Update.
4740 (insert_exception_resume_breakpoint): Change type of "probe"
4741 parameter to bound_probe.
4742 (check_exception_resume): Update.
4743 * objfiles.c (objfile_relocate1): Don't relocate probes.
4744 * probe.c (bound_probe_s): New typedef.
4745 (parse_probes): Use get_probe_address. Set sal's objfile.
4746 (find_probe_by_pc): Return a bound_probe.
4747 (collect_probes): Return a VEC(bound_probe_s).
4748 (compare_probes): Update.
4749 (gen_ui_out_table_header_info): Change type of "probes"
4751 (info_probes_for_ops): Update.
4752 (get_probe_address): New function.
4753 (probe_safe_evaluate_at_pc): Update.
4754 * probe.h (struct probe_ops) <get_probe_address>: New field.
4755 <set_semaphore, clear_semaphore>: Add objfile parameter.
4756 (struct probe) <objfile>: Remove field.
4758 <address>: Update comment.
4759 (struct bound_probe): New.
4760 (find_probe_by_pc): Return a bound_probe.
4761 (get_probe_address): Declare.
4762 * solib-svr4.c (struct probe_and_action) <address>: New field.
4763 (hash_probe_and_action, equal_probe_and_action): Update.
4764 (register_solib_event_probe): Add address parameter.
4765 (solib_event_probe_at): Update.
4766 (svr4_create_probe_breakpoints): Add objfile parameter. Use
4768 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
4769 (stap_get_probe_address): New function.
4770 (stap_can_evaluate_probe_arguments, compute_probe_arg)
4771 (compile_probe_arg): Update.
4772 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
4774 (handle_stap_probe): Don't relocate the probe.
4775 (stap_relocate): Remove.
4776 (stap_gen_info_probes_table_values): Update.
4777 (stap_probe_ops): Remove stap_relocate.
4778 * symfile-debug.c (debug_sym_relocate_probe): Remove.
4779 (debug_sym_probe_fns): Update.
4780 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
4781 * symtab.c (init_sal): Use memset.
4782 * symtab.h (struct symtab_and_line) <objfile>: New field.
4783 * tracepoint.c (start_tracing, stop_tracing): Update.
4785 2014-03-03 Tom Tromey <tromey@redhat.com>
4787 * probe.h (parse_probes, find_probe_by_pc)
4788 (find_probes_in_objfile): Fix comments.
4790 2014-03-02 Doug Evans <xdje42@gmail.com>
4792 * infrun.c (handle_signal_stop): Replace test for
4793 TARGET_WAITKIND_STOPPED with an assert.
4795 2014-03-02 Doug Evans <xdje42@gmail.com>
4797 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
4799 2014-03-02 Doug Evans <xdje42@gmail.com>
4801 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
4803 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4805 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
4807 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4809 * i386obsd-nat.c: Include "obsd-nat.h".
4810 (_initialize_i386obsd_nat): Call obsd_add_target instead of
4812 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4814 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4816 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
4818 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4820 * mips64obsd-nat.c: Include "obsd-nath".
4821 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
4823 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4825 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4827 * amd64obsd-nat.c: Include "obsd-nat,h.
4828 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
4830 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4832 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
4834 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
4835 (find_overload_match): Update call to find_oload_champ.
4836 (find_oload_champ_namespace_loop): Likewise
4838 2014-02-28 Mark Kettenis <kettenis@gnu.org>
4840 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
4842 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
4843 * config/sparc/obsd64.mh: New file.
4844 * sparc64obsd-nat.c: New file.
4846 * obsd-nat.h: New file.
4847 * obsd-nat.c: New file.
4848 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
4849 (ALLDEPFILES): Add obsd-nat.c.
4851 2014-02-28 Tom Tromey <tromey@redhat.com>
4853 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
4854 * cli-out.h (cli_ui_out_impl): Now const.
4855 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
4856 * ui-out.c (struct ui_out) <impl>: Now const.
4857 (default_ui_out_impl): Now const.
4858 (ui_out_new): Make 'impl' parameter const.
4859 * ui-out.h (ui_out_new): Update.
4861 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4863 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
4865 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4867 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
4869 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4871 Additional PR 8882 fix.
4872 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
4874 2014-02-27 Pedro Alves <palves@redhat.com>
4876 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
4879 2014-02-27 Pedro Alves <palves@redhat.com>
4882 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
4883 * nat/linux-waitpid.c: Include string.h.
4884 (status_to_str): Moved here and made extern.
4885 * nat/linux-waitpid.h (status_to_str): New declaration.
4887 2014-02-27 Hui Zhu <hui@codesourcery.com>
4890 * infrun.c (ptid_match): Move ...
4891 * common/ptid.c (ptid_match): ... here.
4892 * inferior.h (ptid_match): Move ...
4893 * common/ptid.h (ptid_match): ... here.
4895 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4897 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
4898 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
4901 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4903 * obsd-tdep.c (obsd_auxv_parse): New function.
4904 (obsd_init_abi): Set auxv_parse.
4906 * gdbarch.sh (auxv_parse): New.
4907 * gdbarch.h: Regenerated.
4908 * gdbarch.c: Regenerated.
4909 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
4911 2014-02-26 Ludovic Courtès <ludo@gnu.org>
4913 * guile/scm-value.c (gdbscm_history_append_x): New function.
4914 (value_functions): Add it.
4916 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4918 * dwarf2read.c (attr_value_as_address): New function.
4919 (dwarf2_find_base_address, read_call_site_scope): Use
4920 attr_value_as_address in place of DW_ADDR.
4921 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
4922 the low and high addresses. Slight rework of the handling
4923 of the high pc being a constant form, and limit it to
4924 DWARF verson 4 or higher.
4925 (dwarf2_record_block_ranges): Likewise.
4926 (read_partial_die): Likewise.
4927 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
4929 2014-02-26 Tom Tromey <tromey@redhat.com>
4931 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
4933 2014-02-26 Tom Tromey <tromey@redhat.com>
4935 * elfread.c (elf_read_minimal_symbols): Return early if
4936 minimal symbols have already been read. Add "ei" parameter.
4937 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
4938 * minsyms.c (prim_record_minimal_symbol_full): Update.
4939 * objfiles.h (struct objstats) <n_minsyms>: Move...
4940 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
4941 * symmisc.c (print_objfile_statistics): Update.
4943 2014-02-26 Tom Tromey <tromey@redhat.com>
4945 * elfread.c (elf_read_minimal_symbols): New function, from
4947 (elf_symfile_read): Call it.
4949 2014-02-26 Tom Tromey <tromey@redhat.com>
4951 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
4952 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
4953 (lookup_minimal_symbol_solib_trampoline)
4954 (lookup_minimal_symbol_by_pc_section_1)
4955 (lookup_minimal_symbol_and_objfile): Update.
4956 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
4957 Don't allocate a minimal symbol if minsyms have already been read.
4958 (build_minimal_symbol_hash_tables): Update.
4959 (install_minimal_symbols): Do nothing if minsyms already read.
4960 Use the per-BFD obstack.
4961 (terminate_minimal_symbol_table): Use the per-BFD obstack.
4962 * objfiles.c (allocate_objfile): Call
4963 terminate_minimal_symbol_table later.
4964 (have_minimal_symbols): Update.
4965 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
4966 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
4967 Move from struct objfile.
4968 <minsyms_read>: New field.
4969 (struct objfile) <msymbols, minimal_symbol_count,
4970 msymbol_hash, msymbol_demangled_hash>: Move.
4971 (ALL_OBJFILE_MSYMBOLS): Update.
4972 * symfile.c (read_symbols): Set minsyms_read.
4973 (reread_symbols): Update.
4974 * symmisc.c (dump_objfile, dump_msymbols): Update.
4976 2014-02-26 Tom Tromey <tromey@redhat.com>
4978 * minsyms.c (msymbols_sort): Remove.
4979 * minsyms.h (msymbols_sort): Remove.
4980 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
4981 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
4982 * elfread.c (elf_symtab_read): Don't add section offsets.
4983 * xcoffread.c (record_minimal_symbol): Don't add section offset
4984 to minimal symbol address.
4985 * somread.c (text_offset, data_offset): Remove.
4986 (som_symtab_read): Don't add section offsets to minimal symbol
4988 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
4989 Don't add section offsets to minimal symbols.
4990 * coffread.c (coff_symtab_read): Don't add section offsets
4991 to minimal symbol addresses.
4992 * machoread.c (macho_symtab_add_minsym): Don't add section offset
4993 to minimal symbol addresses.
4994 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
4995 section offset to minimal symbol addresses.
4996 * mdebugread.c (parse_partial_symbols): Don't add section
4997 offset to minimal symbol addresses.
4998 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
4999 offset to minimal symbol addresses.
5001 2014-02-26 Tom Tromey <tromey@redhat.com>
5003 * ada-lang.c (ada_main_name): Update.
5004 (ada_add_standard_exceptions): Update.
5005 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5006 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5007 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
5008 * auxv.c (ld_so_xfer_auxv): Update.
5009 * avr-tdep.c (avr_scan_prologue): Update.
5010 * ax-gdb.c (gen_var_ref): Update.
5011 * blockframe.c (get_pc_function_start)
5012 (find_pc_partial_function_gnu_ifunc): Update.
5013 * breakpoint.c (create_overlay_event_breakpoint)
5014 (create_longjmp_master_breakpoint)
5015 (create_std_terminate_master_breakpoint)
5016 (create_exception_master_breakpoint): Update.
5017 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5018 * c-valprint.c (c_val_print): Update.
5019 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5020 * common/agent.c (agent_look_up_symbols): Update.
5021 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5022 * dwarf2loc.c (call_site_to_target_addr): Update.
5023 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
5024 * elfread.c (elf_gnu_ifunc_record_cache)
5025 (elf_gnu_ifunc_resolve_by_got): Update.
5026 * findvar.c (default_read_var_value): Update.
5027 * frame.c (inside_main_func): Update.
5028 * frv-tdep.c (frv_frame_this_id): Update.
5029 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5030 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5032 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
5033 (hppa_hpux_find_dummy_bpaddr): Update.
5034 * hppa-tdep.c (hppa_symbol_address): Update.
5035 * infcmd.c (until_next_command): Update.
5036 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
5038 * linespec.c (minsym_found, add_minsym): Update.
5039 * linux-nat.c (get_signo): Update.
5040 * linux-thread-db.c (inferior_has_bug): Update.
5041 * m32c-tdep.c (m32c_return_value)
5042 (m32c_m16c_address_to_pointer): Update.
5043 * m32r-tdep.c (m32r_frame_this_id): Update.
5044 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5045 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5046 * maint.c (maintenance_translate_address): Update.
5047 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
5048 (frob_address): New function.
5049 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
5050 frob_address. Rename parameter to "pc_in".
5051 (compare_minimal_symbols, compact_minimal_symbols): Use raw
5053 (find_solib_trampoline_target, minimal_symbol_upper_bound):
5055 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5056 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
5057 * objc-lang.c (find_objc_msgsend): Update.
5058 * objfiles.c (objfile_relocate1): Update.
5059 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5060 * p-valprint.c (pascal_val_print): Update.
5061 * parse.c (write_exp_msymbol): Update.
5062 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
5063 (ppc_elfv2_skip_entrypoint): Update.
5064 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5065 * printcmd.c (build_address_symbolic, msym_info)
5066 (address_info): Update.
5067 * proc-service.c (ps_pglobal_lookup): Update.
5068 * psymtab.c (find_pc_sect_psymtab_closer)
5069 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
5070 Change msymbol parameter to bound_minimal_symbol.
5071 * ravenscar-thread.c (get_running_thread_id): Update.
5072 * remote.c (remote_check_symbols): Update.
5073 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
5075 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5076 * solib-dsbt.c (lm_base): Update.
5077 * solib-frv.c (lm_base, main_got): Update.
5078 * solib-irix.c (locate_base): Update.
5079 * solib-som.c (som_solib_create_inferior_hook)
5080 (link_map_start): Update.
5081 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
5082 * solib-svr4.c (elf_locate_base, enable_break): Update.
5083 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5084 (flush_ea_cache): Update.
5085 * stabsread.c (define_symbol, scan_file_globals): Update.
5086 * stack.c (find_frame_funname): Update.
5087 * symfile-debug.c (debug_qf_expand_symtabs_matching)
5088 (debug_qf_find_pc_sect_symtab): Update.
5089 * symfile.c (simple_read_overlay_table)
5090 (simple_overlay_update): Update.
5091 * symfile.h (struct quick_symbol_functions)
5092 <find_pc_sect_symtab>: Change type of msymbol to
5093 bound_minimal_symbol.
5094 * symmisc.c (dump_msymbols): Update.
5095 * symtab.c (find_pc_sect_symtab_via_partial)
5096 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
5097 (search_symbols, print_msymbol_info): Update.
5098 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
5099 (MSYMBOL_VALUE_ADDRESS): Redefine.
5100 (BMSYMBOL_VALUE_ADDRESS): New macro.
5101 * tracepoint.c (scope_info): Update.
5102 * tui/tui-disasm.c (tui_find_disassembly_address)
5103 (tui_get_begin_asm_address): Update.
5104 * valops.c (find_function_in_inferior): Update.
5105 * value.c (value_static_field, value_fn_field): Update.
5107 2014-02-26 Tom Tromey <tromey@redhat.com>
5109 * ada-lang.c (ada_update_initial_language): Update.
5110 (ada_main_name, ada_has_this_exception_support): Update.
5111 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5112 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5113 * arm-tdep.c (arm_skip_stub): Update.
5114 * auxv.c (ld_so_xfer_auxv): Update.
5115 * avr-tdep.c (avr_scan_prologue): Update.
5116 * ax-gdb.c (gen_var_ref): Update.
5117 * breakpoint.c (struct breakpoint_objfile_data)
5118 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
5119 type to bound_minimal_symbol.
5120 (create_overlay_event_breakpoint)
5121 (create_longjmp_master_breakpoint)
5122 (create_std_terminate_master_breakpoint)
5123 (create_exception_master_breakpoint): Update.
5124 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5125 * c-exp.y (classify_name): Update.
5126 * coffread.c (coff_symfile_read): Update.
5127 * common/agent.c (agent_look_up_symbols): Update.
5128 * d-lang.c (d_main_name): Update.
5129 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5130 * dec-thread.c (enable_dec_thread): Update.
5131 * dwarf2loc.c (call_site_to_target_addr): Update.
5132 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
5133 * eval.c (evaluate_subexp_standard): Update.
5134 * findvar.c (struct minsym_lookup_data) <result>: Change type
5135 to bound_minimal_symbol.
5137 (minsym_lookup_iterator_cb, default_read_var_value): Update.
5138 * frame.c (inside_main_func): Update.
5139 * frv-tdep.c (frv_frame_this_id): Update.
5140 * gcore.c (call_target_sbrk): Update.
5141 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5142 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5144 * go-lang.c (go_main_name): Update.
5145 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5146 (hppa_hpux_find_import_stub_for_addr): Update.
5147 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
5148 Update. Change return type.
5149 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5151 * jit.c (jit_breakpoint_re_set_internal): Update.
5152 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5154 * linux-nat.c (get_signo): Update.
5155 * linux-thread-db.c (inferior_has_bug): Update
5156 * m32c-tdep.c (m32c_return_value)
5157 (m32c_m16c_address_to_pointer): Update.
5158 * m32r-tdep.c (m32r_frame_this_id): Update.
5159 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5160 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5161 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5162 lookup_minimal_symbol. Change return type.
5163 (lookup_minimal_symbol): Remove.
5164 (lookup_bound_minimal_symbol): Update.
5165 (lookup_minimal_symbol_text): Change return type.
5166 (lookup_minimal_symbol_solib_trampoline): Change return type.
5167 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5168 (lookup_minimal_symbol_solib_trampoline): Change return type.
5169 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5170 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5171 (value_nsstring, find_imps): Update.
5172 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5173 * p-lang.c (pascal_main_name): Update.
5174 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5175 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5176 * proc-service.c (ps_pglobal_lookup): Update.
5177 * ravenscar-thread.c (get_running_thread_msymbol): Change
5179 (has_ravenscar_runtime, get_running_thread_id): Update.
5180 * remote.c (remote_check_symbols): Update.
5181 * sol-thread.c (ps_pglobal_lookup): Update.
5182 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5183 * solib-dsbt.c (lm_base): Update.
5184 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5186 * solib-irix.c (locate_base): Update.
5187 * solib-som.c (som_solib_create_inferior_hook)
5188 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5190 * solib-spu.c (spu_enable_break): Update.
5191 * solib-svr4.c (elf_locate_base, enable_break): Update.
5192 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5193 (flush_ea_cache): Update.
5194 * stabsread.c (define_symbol): Update.
5195 * symfile.c (simple_read_overlay_table): Update.
5196 * symtab.c (find_pc_sect_line): Update.
5197 * tracepoint.c (scope_info): Update.
5198 * tui-disasm.c (tui_get_begin_asm_address): Update.
5199 * value.c (value_static_field): Update.
5201 2014-02-26 Tom Tromey <tromey@redhat.com>
5203 * minsyms.c (prim_record_minimal_symbol_full): Use
5204 SET_MSYMBOL_VALUE_ADDRESS.
5205 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5206 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5207 SET_MSYMBOL_VALUE_ADDRESS.
5208 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5209 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5211 2014-02-26 Tom Tromey <tromey@redhat.com>
5213 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5214 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5215 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5216 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5217 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5218 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5219 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5220 * ada-lang.c (ada_main_name): Update.
5221 (ada_lookup_simple_minsym): Update.
5222 (ada_make_symbol_completion_list): Update.
5223 (ada_add_standard_exceptions): Update.
5224 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5225 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5226 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5227 * arm-tdep.c (skip_prologue_function): Update.
5228 (arm_skip_stack_protector, arm_skip_stub): Update.
5229 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5230 (arm_wince_skip_main_prologue): Update.
5231 * auxv.c (ld_so_xfer_auxv): Update.
5232 * avr-tdep.c (avr_scan_prologue): Update.
5233 * ax-gdb.c (gen_var_ref): Update.
5234 * block.c (call_site_for_pc): Update.
5235 * blockframe.c (get_pc_function_start): Update.
5236 (find_pc_partial_function_gnu_ifunc): Update.
5237 * breakpoint.c (create_overlay_event_breakpoint): Update.
5238 (create_longjmp_master_breakpoint): Update.
5239 (create_std_terminate_master_breakpoint): Update.
5240 (create_exception_master_breakpoint): Update.
5241 (resolve_sal_pc): Update.
5242 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5243 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5245 * c-valprint.c (c_val_print): Update.
5246 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5247 * coffread.c (coff_symfile_read): Update.
5248 * common/agent.c (agent_look_up_symbols): Update.
5249 * dbxread.c (find_stab_function_addr): Update.
5250 (end_psymtab): Update.
5251 * dwarf2loc.c (call_site_to_target_addr): Update.
5252 (func_verify_no_selftailcall): Update.
5253 (tailcall_dump): Update.
5254 (call_site_find_chain_1): Update.
5255 (dwarf_expr_reg_to_entry_parameter): Update.
5256 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5257 (elf_gnu_ifunc_resolve_by_got): Update.
5258 * f-valprint.c (info_common_command): Update.
5259 * findvar.c (read_var_value): Update.
5260 * frame.c (get_prev_frame_1): Update.
5261 (inside_main_func): Update.
5262 * frv-tdep.c (frv_skip_main_prologue): Update.
5263 (frv_frame_this_id): Update.
5264 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5265 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5266 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5267 (gnuv3_skip_trampoline): Update.
5268 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5269 (hppa64_hpux_in_solib_call_trampoline): Update.
5270 (hppa_hpux_skip_trampoline_code): Update.
5271 (hppa64_hpux_search_dummy_call_sequence): Update.
5272 (hppa_hpux_find_import_stub_for_addr): Update.
5273 (hppa_hpux_find_dummy_bpaddr): Update.
5274 * hppa-tdep.c (hppa_symbol_address)
5275 (hppa_lookup_stub_minimal_symbol): Update.
5276 * i386-tdep.c (i386_skip_main_prologue): Update.
5277 (i386_pe_skip_trampoline_code): Update.
5278 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5279 * infcall.c (get_function_name): Update.
5280 * infcmd.c (until_next_command): Update.
5281 * jit.c (jit_breakpoint_re_set_internal): Update.
5282 (jit_inferior_init): Update.
5283 * linespec.c (minsym_found): Update.
5284 (add_minsym): Update.
5285 * linux-fork.c (info_checkpoints_command): Update.
5286 * linux-nat.c (get_signo): Update.
5287 * linux-thread-db.c (inferior_has_bug): Update.
5288 * m32c-tdep.c (m32c_return_value): Update.
5289 (m32c_m16c_address_to_pointer): Update.
5290 (m32c_m16c_pointer_to_address): Update.
5291 * m32r-tdep.c (m32r_frame_this_id): Update.
5292 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5293 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5294 * maint.c (maintenance_translate_address): Update.
5295 * minsyms.c (add_minsym_to_hash_table): Update.
5296 (add_minsym_to_demangled_hash_table): Update.
5297 (msymbol_objfile): Update.
5298 (lookup_minimal_symbol): Update.
5299 (iterate_over_minimal_symbols): Update.
5300 (lookup_minimal_symbol_text): Update.
5301 (lookup_minimal_symbol_by_pc_name): Update.
5302 (lookup_minimal_symbol_solib_trampoline): Update.
5303 (lookup_minimal_symbol_by_pc_section_1): Update.
5304 (lookup_minimal_symbol_and_objfile): Update.
5305 (prim_record_minimal_symbol_full): Update.
5306 (compare_minimal_symbols): Update.
5307 (compact_minimal_symbols): Update.
5308 (build_minimal_symbol_hash_tables): Update.
5309 (install_minimal_symbols): Update.
5310 (terminate_minimal_symbol_table): Update.
5311 (find_solib_trampoline_target): Update.
5312 (minimal_symbol_upper_bound): Update.
5313 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5314 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5315 (mips_skip_pic_trampoline_code): Update.
5316 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5317 * objc-lang.c (selectors_info): Update.
5318 (classes_info): Update.
5319 (find_methods): Update.
5320 (find_imps): Update.
5321 (find_objc_msgsend): Update.
5322 * objfiles.c (objfile_relocate1): Update.
5323 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5324 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5325 * p-valprint.c (pascal_val_print): Update.
5326 * parse.c (write_exp_msymbol): Update.
5327 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5328 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5329 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5330 * printcmd.c (build_address_symbolic): Update.
5332 (address_info): Update.
5333 * proc-service.c (ps_pglobal_lookup): Update.
5334 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5335 (find_pc_sect_psymtab): Update.
5336 * python/py-framefilter.c (py_print_frame): Update.
5337 * ravenscar-thread.c (get_running_thread_id): Update.
5338 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5340 * remote.c (remote_check_symbols): Update.
5341 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5342 (rs6000_skip_trampoline_code): Update.
5343 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5344 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5345 * solib-dsbt.c (lm_base): Update.
5346 * solib-frv.c (lm_base): Update.
5348 * solib-irix.c (locate_base): Update.
5349 * solib-som.c (som_solib_create_inferior_hook): Update.
5350 (som_solib_desire_dynamic_linker_symbols): Update.
5351 (link_map_start): Update.
5352 * solib-spu.c (spu_enable_break): Update.
5353 (ocl_enable_break): Update.
5354 * solib-svr4.c (elf_locate_base): Update.
5355 (enable_break): Update.
5356 * spu-tdep.c (spu_get_overlay_table): Update.
5357 (spu_catch_start): Update.
5358 (flush_ea_cache): Update.
5359 * stabsread.c (define_symbol): Update.
5360 (scan_file_globals): Update.
5361 * stack.c (find_frame_funname): Update.
5362 (frame_info): Update.
5363 * symfile.c (simple_read_overlay_table): Update.
5364 (simple_overlay_update): Update.
5365 * symmisc.c (dump_msymbols): Update.
5366 * symtab.c (fixup_section): Update.
5367 (find_pc_sect_line): Update.
5368 (skip_prologue_sal): Update.
5369 (search_symbols): Update.
5370 (print_msymbol_info): Update.
5371 (rbreak_command): Update.
5372 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5373 (completion_list_objc_symbol): Update.
5374 (default_make_symbol_completion_list_break_on): Update.
5375 * tracepoint.c (scope_info): Update.
5376 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5377 (tui_get_begin_asm_address): Update.
5378 * valops.c (find_function_in_inferior): Update.
5379 * value.c (value_static_field): Update.
5380 (value_fn_field): Update.
5382 2014-02-26 Tom Tromey <tromey@redhat.com>
5384 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5385 bound minimal symbols. Move code that knows about minsym
5387 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5389 * minsyms.h (minimal_symbol_upper_bound): Declare.
5390 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5391 minimal_symbol_upper_bound.
5393 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5395 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5396 Use the type's name if its basic type does not have a tag.
5398 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5400 * dwarf2read.c (read_subrange_type): Add comment.
5402 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5404 * dwarf2read.c (update_enumeration_type_from_children): New
5405 function, mostly extracted from process_structure_scope.
5406 (read_enumeration_type): Call update_enumeration_type_from_children.
5407 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5408 and flag_flag_enum fields.
5410 2014-02-26 Pedro Alves <palves@redhat.com>
5412 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5413 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5414 to_xfer_partial method.
5416 2014-02-26 Pedro Alves <palves@redhat.com>
5418 * target.c (complete_target_initialization): Don't install
5419 default_xfer_partial as to_xfer_partial hook.
5421 (update_current_target): Don't INHERIT nor de_fault
5422 deprecated_xfer_memory. Delete de_fault macro.
5423 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5424 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5425 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5428 2014-02-26 Pedro Alves <palves@redhat.com>
5430 * go32-nat.c (my_write_child): New function.
5431 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5432 (go32_xfer_partial): New function.
5433 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5434 Instead install a to_xfer_partial hook.
5436 2014-02-26 Pedro Alves <palves@redhat.com>
5438 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5439 to_xfer_partial helper. Rewrite.
5440 (procfs_xfer_partial): New function.
5441 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5442 Install a to_xfer_partial hook.
5444 2014-02-26 Pedro Alves <palves@redhat.com>
5446 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5447 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5448 (m32r_xfer_partial): New function.
5449 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5450 Install a to_xfer_partial hook.
5452 2014-02-26 Pedro Alves <palves@redhat.com>
5454 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5456 (mips_xfer_partial): New function.
5457 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5458 hook. Install a to_xfer_partial hook.
5460 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5462 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5463 * gdbtypes.c (create_array_type_with_stride): New function,
5464 renaming create_array_type, but with an added parameter
5465 called "bit_stride".
5466 (create_array_type): Re-implement using
5467 create_array_type_with_stride.
5468 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5469 and DW_AT_bit_stride attributes.
5471 2014-02-26 Pedro Alves <palves@redhat.com>
5473 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5474 task-specific breakpoints.
5476 2014-02-25 Pedro Alves <palves@redhat.com>
5478 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5479 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5481 2014-02-25 Stan Shebs <stan@codesourcery.com>
5483 * defs.h: Annotate comments for Doxygen.
5485 2014-02-25 Tom Tromey <tromey@redhat.com>
5487 * target.h (target_ignore): Don't declare.
5488 * target.c (target_ignore): Remove.
5490 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5493 * auto-load.c (auto_load_objfile_script_1): Change filename to
5496 2014-02-25 Joel Brobecker <brobecker@adacore.com>
5498 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5499 documentation. Adjust prototype to match the target_ops
5500 to_xfer_partial method. Adjust implementation accordingly.
5502 2014-02-25 Hui Zhu <hui@codesourcery.com>
5504 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5507 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5509 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5510 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5511 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5512 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5513 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5514 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5515 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5516 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5518 (rl78_register_type): Use a data pointer type for SP and
5519 new pseudo registers mentioned above. Use a 16 bit integer
5520 type for all other register pairs.
5521 (rl78_register_name, rl78_g10_register_name): Update for
5522 new pseudo registers.
5523 (rl78_pseudo_register_read): Likewise.
5524 (rl78_pseudo_register_write): Likewise.
5525 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5526 to the newly added pseudo registers.
5528 2014-02-24 Doug Evans <dje@google.com>
5530 * value.c (record_latest_value): Fix comment.
5531 * printcmd.c (print_command_1): Remove code to handle -1 return from
5532 record_latest_value.
5534 2014-02-24 Pedro Alves <palves@redhat.com>
5536 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5537 deprecated_xfer_memory hook.
5538 (procfs_xfer_partial): Call procfs_xfer_memory instead
5539 of the deprecated_xfer_memory target hook.
5540 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5543 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5545 * windows-nat.c (windows_xfer_shared_libraries): Return
5546 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5547 requested object is TARGET_OBJECT_LIBRARIES.
5549 2014-02-24 Yao Qi <yao@codesourcery.com>
5551 * target.h (enum target_xfer_status)
5552 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5553 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5555 * corefile.c (memory_error_message): User updated.
5556 * exec.c (section_table_read_available_memory): Likewise.
5557 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5558 * target.c (target_xfer_status_to_string): Likewise.
5559 (raw_memory_xfer_partial): Likewise.
5560 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5561 * valops.c (read_value_memory): Likewise.
5562 * exec.h: Update comments.
5564 2014-02-24 Yao Qi <yao@codesourcery.com>
5566 * target.c (target_xfer_status_to_string): Rename argument err
5568 * target.h (target_xfer_status_to_string): Update declaration.
5569 Replace target_xfer_error_to_string with
5570 target_xfer_status_to_string in comment.
5572 2014-02-24 Yao Qi <yao@codesourcery.com>
5574 * mips-linux-nat.c (super_close): Update its type.
5575 (mips_linux_close): Pass 'self' to super_close.
5577 2014-02-24 Yao Qi <yao@codesourcery.com>
5579 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5580 * corefile.c (read_memory): Adjusted.
5581 * target.c (target_write_with_progress): Adjusted.
5583 2014-02-23 Yao Qi <yao@codesourcery.com>
5587 2013-10-25 Yao Qi <yao@codesourcery.com>
5589 * remote.c (remote_traceframe_info): Return early if
5590 traceframe is not selected.
5592 2013-07-19 Yao Qi <yao@codesourcery.com>
5594 * target.c (update_current_target): Change the default action
5595 of 'to_traceframe_info' from tcomplain to return_zero.
5596 * target.h (struct target_ops) <to_traceframe_info>: Add more
5599 2014-02-23 Yao Qi <yao@codesourcery.com>
5601 * valops.c (read_value_memory): Rewrite it. Call
5602 target_xfer_partial in a loop.
5603 * exec.h (section_table_available_memory): Remove declaration.
5604 Move comments to ...
5605 * exec.c (section_table_available_memory): ... here. Make it
5608 2014-02-23 Yao Qi <yao@codesourcery.com>
5610 * exec.c (section_table_read_available_memory): New function.
5611 * exec.h (section_table_read_available_memory): Declare.
5612 * ctf.c (ctf_xfer_partial): Call
5613 section_table_read_available_memory.
5614 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5616 2014-02-23 Yao Qi <yao@codesourcery.com>
5618 * ctf.c (ctf_xfer_partial): Move code to ...
5619 * exec.c (exec_read_partial_read_only): ... it. New function.
5620 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5621 * tracefile.c: Include "exec.h".
5622 * exec.h (exec_read_partial_read_only): Declare.
5624 2014-02-23 Yao Qi <yao@codesourcery.com>
5626 * tracefile-tfile.c (tfile_has_all_memory): Remove.
5627 (tfile_has_memory): Remove.
5628 (init_tfile_ops): Don't set fields to_has_all_memory and
5629 to_has_memory of tfile_ops.
5630 * tracefile.c (tracefile_has_all_memory): New function.
5631 (tracefile_has_memory): New function.
5632 (init_tracefile_ops): Initialize fields to_has_all_memory and
5633 to_has_memory of 'ops'.
5635 2014-02-23 Yao Qi <yao@codesourcery.com>
5637 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
5638 (ctf_thread_alive, ctf_get_trace_status): Remove.
5639 (init_ctf_ops): Don't set some fields of ctf_ops. Call
5641 * tracefile-tfile.c (tfile_get_trace_status): Remove.
5642 (tfile_has_stack, tfile_has_registers): Remove.
5643 (tfile_thread_alive): Remove.
5644 (init_tfile_ops): Don't set some fields of tfile_ops. Call
5646 * tracefile.c (tracefile_has_stack): New function.
5647 (tracefile_has_registers): New function.
5648 (tracefile_thread_alive): New function.
5649 (tracefile_get_trace_status): New function.
5650 (init_tracefile_ops): New function.
5651 * tracefile.h (init_tracefile_ops): Declare.
5653 2014-02-23 Yao Qi <yao@codesourcery.com>
5655 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
5656 (O_LARGEFILE): Likewise.
5657 (tfile_ops): Likewise.
5658 (TRACE_HEADER_SIZE): Likewise.
5659 (trace_fd, trace_frames_offset, cur_offset): Likewise.
5660 (cur_data_size): Likewise.
5661 (tfile_read, tfile_open, tfile_interp_line): Likewise.
5662 (tfile_close, tfile_files_info): Likewise.
5663 (tfile_get_trace_status): Likewise.
5664 (tfile_get_tracepoint_status): Likewise.
5665 (tfile_get_traceframe_address): Likewise.
5666 (tfile_trace_find, match_blocktype): Likewise.
5667 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
5668 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
5669 (tfile_get_trace_state_variable_value): Likewise.
5670 (tfile_has_all_memory, tfile_has_memory): Likewise.
5671 (tfile_has_stack, tfile_has_registers): Likewise.
5672 (tfile_thread_alive, build_traceframe_info): Likewise.
5673 (tfile_traceframe_info, init_tfile_ops): Likewise.
5674 (_initialize_tracepoint): Don't call init_tfile_ops
5675 and add_target_with_completer.
5676 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
5677 exec.h, completer.h and filenames.h.
5678 (_initialize_tracefile_tfile): New function.
5680 2014-02-23 Yao Qi <yao@codesourcery.com>
5682 * Makefile.in (REMOTE_OBS): Append tracefile.o and
5684 (HFILES_NO_SRCDIR): Add tracefile.h.
5685 * ctf.c: Include "tracefile.h".
5686 * tracefile.h: New file.
5687 * tracefile.c: New file
5688 * tracefile-tfile.c: New file.
5689 * tracepoint.c: Include "tracefile.h".
5690 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
5691 (stop_reason_names): Add const.
5692 (trace_file_writer_xfree): Move it to tracefile.c.
5693 (trace_save, trace_save_command, trace_save_tfile): Likewise.
5694 (trace_save_ctf): Likewise.
5695 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
5696 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
5697 (tfile_write_header, tfile_write_regblock_type): Likewise.
5698 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
5699 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
5700 (tfile_write_raw_data, tfile_end): Likewise.
5701 (tfile_trace_file_writer_new): Likewise.
5702 (free_uploaded_tp): Make it extern.
5703 (free_uploaded_tsv): Make it extern.
5704 (_initialize_tracepoint): Move code to register command 'tsave'
5706 * tracepoint.h (stop_reason_names): Declare.
5707 (struct trace_frame_write_ops): Move it to tracefile.h.
5708 (struct trace_file_write_ops): Likewise.
5709 (struct trace_file_writer): Likewise.
5710 (free_uploaded_tsvs, free_uploaded_tps): Declare.
5712 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5715 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
5717 (get_cores_used_by_process): New parameter num_cores, use it.
5718 (linux_xfer_osdata_processes): Pass num_cores to it.
5719 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
5722 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
5724 * target.c (memory_xfer_partial): Fix length arg in call to
5725 breakpoint_xfer_memory.
5727 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5730 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
5731 number comes after the + or - signs. Adjust length of register
5732 name to be extracted.
5734 2014-02-20 Tom Tromey <tromey@redhat.com>
5736 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
5737 (ada_varobj_ops): Mark "extern".
5739 2014-02-20 Tom Tromey <tromey@redhat.com>
5741 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
5743 2014-02-20 Doug Evans <xdje42@gmail.com>
5745 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
5746 All callers updated.
5747 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
5748 All callers updated.
5749 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
5750 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
5752 2014-02-20 lin zuojian <manjian2006@gmail.com>
5753 Joel Brobecker <brobecker@adacore.com>
5754 Doug Evans <xdje42@gmail.com>
5757 * dwarf2read.c (struct die_info): New member in_process.
5758 (reset_die_in_process): New function.
5759 (process_die): Set it at the start, reset when returning.
5760 (inherit_abstract_dies): Only call process_die if origin_child_die
5761 not already being processed.
5763 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5765 * windows-nat.c (handle_unload_dll): Add function documentation.
5766 (do_initial_windows_stuff): Add comment explaining why we wait
5767 until after inferior initialization has finished before
5768 processing all DLLs.
5770 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5772 * windows-nat.c (get_module_name): Delete.
5773 (windows_get_exec_module_filename): New function, mostly
5774 inspired from get_module_name.
5775 (windows_pid_to_exec_file): Replace call to get_module_name
5776 by call to windows_get_exec_module_filename.
5778 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5780 * windows-nat.c (handle_load_dll): Rewrite this function's
5781 introductory comment. Remove code using get_module_name
5782 to get the DLL's name.
5784 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5786 * windows-nat.c (get_windows_debug_event): Ignore
5787 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
5788 if windows_initialization_done == 0.
5789 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
5790 Adjust implementation to always load all DLLs.
5791 (do_initial_windows_stuff): Replace call to
5792 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
5794 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5796 * windows-nat.c (_initialize_windows_nat): Deprecate the
5797 "dll-symbols" command. Turn the "add-shared-symbol-files"
5798 and "assf" aliases into commands, and deprecate them as well.
5799 * NEWS: Add entry explaining that "dll-symbols" and its two
5800 aliases are now deprecated.
5802 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5804 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
5805 new-line in debug string. Remove trailing spaces.
5807 2014-02-19 Stan Shebs <stan@codesourcery.com>
5809 * darwin-nat.c (darwin_xfer_partial): Fix return type.
5811 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
5813 * NEWS: Add entry for the new feature
5814 * python/py-value.c (valpy_binop): Call value_x_binop for struct
5817 2014-02-19 Stan Shebs <stan@codesourcery.com>
5819 * MAINTAINERS: List Yao Qi as nios2 maintainer.
5821 2014-02-19 Pedro Alves <palves@redhat.com>
5823 * common/ptid.h (struct ptid): Mention that process_stratum
5824 targets should prefer ptid.lwp.
5826 2014-02-19 Pedro Alves <palves@redhat.com>
5828 * remote.c (remote_thread_alive, write_ptid, read_ptid)
5829 (read_ptid, remote_newthread_step, remote_threads_extra_info)
5830 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
5831 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
5832 store remote thread ids rather than ptid.tid.
5833 (_initialize_remote): Adjust.
5835 2014-02-19 Tom Tromey <tromey@redhat.com>
5837 * target.c (target_get_unwinder): Rewrite.
5838 (target_get_tailcall_unwinder): Rewrite.
5839 * record-btrace.c (record_btrace_to_get_unwinder): New function.
5840 (record_btrace_to_get_tailcall_unwinder): New function.
5841 (init_record_btrace_ops): Update.
5842 * target.h (struct target_ops) <to_get_unwinder,
5843 to_get_tailcall_unwinder>: Now function pointers. Use
5844 TARGET_DEFAULT_RETURN.
5846 2014-02-19 Tom Tromey <tromey@redhat.com>
5848 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
5850 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
5852 2014-02-19 Tom Tromey <tromey@redhat.com>
5854 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
5856 * target-delegates.c: Rebuild.
5857 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
5858 TARGET_DEFAULT_FUNC.
5859 * target.c (default_target_decr_pc_after_break): Rename from
5860 forward_target_decr_pc_after_break. Simplify.
5861 (target_decr_pc_after_break): Rely on delegation.
5863 2014-02-19 Tom Tromey <tromey@redhat.com>
5865 * target.c (update_current_target): Do not INHERIT to_doc or
5866 to_magic. Do not de_fault to_open or to_close.
5868 2014-02-19 Tom Tromey <tromey@redhat.com>
5870 * gcore.h (objfile_find_memory_regions): Declare.
5871 * gcore.c (objfile_find_memory_regions): No longer static. Add
5873 (_initialize_gcore): Don't call exec_set_find_memory_regions.
5874 * exec.c: Include gcore.h.
5875 (exec_set_find_memory_regions): Remove.
5876 (exec_find_memory_regions): Remove.
5877 (exec_do_find_memory_regions): Remove.
5878 (init_exec_ops): Update.
5879 * defs.h (exec_set_find_memory_regions): Remove.
5881 2014-02-19 Tom Tromey <tromey@redhat.com>
5883 * target-delegates.c: Rebuild.
5884 * target.h (struct target_ops) <to_extra_thread_info,
5885 to_thread_name, to_pid_to_exec_file, to_get_section_table,
5886 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
5887 not 0, in TARGET_DEFAULT_RETURN.
5889 2014-02-19 Tom Tromey <tromey@redhat.com>
5891 * target.c (complete_target_initialization): Remove casts. Use
5892 return_zero_has_execution.
5893 (return_zero): Add "ignore" argument.
5894 (return_zero_has_execution): New function.
5895 (init_dummy_target): Remove casts. Use
5896 return_zero_has_execution.
5898 2014-02-19 Tom Tromey <tromey@redhat.com>
5900 * target.c (update_current_target): Update comments. Do not
5903 2014-02-19 Tom Tromey <tromey@redhat.com>
5905 * arm-linux-nat.c (arm_linux_read_description): Delegate when
5907 * corelow.c (core_read_description): Delegate when needed.
5908 * remote.c (remote_read_description): Delegate when needed.
5909 * target-delegates.c: Rebuild.
5910 * target.c (target_read_description): Rewrite.
5911 * target.h (struct target_ops) <to_read_description>: Update
5912 comment. Use TARGET_DEFAULT_RETURN.
5914 2014-02-19 Tom Tromey <tromey@redhat.com>
5916 * target-delegates.c: Rebuild.
5917 * target.c (update_current_target): Don't inherit or default
5919 (find_default_run_target): Check against delegate_can_run.
5920 * target.h (struct target_ops) <to_can_run>: Use
5921 TARGET_DEFAULT_RETURN.
5923 2014-02-19 Tom Tromey <tromey@redhat.com>
5925 * target-delegates.c: Rebuild.
5926 * target.c (target_disconnect): Unconditionally delegate.
5927 * target.h (struct target_ops) <to_disconnect>: Use
5928 TARGET_DEFAULT_NORETURN.
5930 2014-02-19 Tom Tromey <tromey@redhat.com>
5932 * record.c (record_stop): Unconditionally delegate.
5933 * target-delegates.c: Rebuild.
5934 * target.c (target_stop_recording): Unconditionally delegate.
5935 * target.h (struct target_ops) <to_stop_recording>: Use
5936 TARGET_DEFAULT_IGNORE.
5938 2014-02-19 Tom Tromey <tromey@redhat.com>
5940 * target-delegates.c: Rebuild.
5941 * target.c (target_enable_btrace): Unconditionally delegate.
5942 * target.h (struct target_ops) <to_enable_btrace>: Use
5943 TARGET_DEFAULT_NORETURN.
5945 2014-02-19 Tom Tromey <tromey@redhat.com>
5947 * target-delegates.c: Rebuild.
5948 * target.c (target_read_btrace): Unconditionally delegate.
5949 * target.h (struct target_ops) <to_read_btrace>: Use
5950 TARGET_DEFAULT_NORETURN.
5952 2014-02-19 Tom Tromey <tromey@redhat.com>
5954 * target-delegates.c: Rebuild.
5955 * target.c (target_teardown_btrace): Unconditionally delegate.
5956 * target.h (struct target_ops) <to_teardown_btrace>: Use
5957 TARGET_DEFAULT_NORETURN.
5959 2014-02-19 Tom Tromey <tromey@redhat.com>
5961 * target-delegates.c: Rebuild.
5962 * target.c (target_disable_btrace): Unconditionally delegate.
5963 * target.h (struct target_ops) <to_disable_btrace>: Use
5964 TARGET_DEFAULT_NORETURN.
5966 2014-02-19 Tom Tromey <tromey@redhat.com>
5968 * target-delegates.c: Rebuild.
5969 * target.c (default_search_memory): New function.
5970 (simple_search_memory): Update comment.
5971 (target_search_memory): Unconditionally delegate.
5972 * target.h (struct target_ops) <to_search_memory>: Use
5973 TARGET_DEFAULT_FUNC.
5975 2014-02-19 Tom Tromey <tromey@redhat.com>
5977 * auxv.c (default_auxv_parse): No longer static.
5978 (target_auxv_parse): Unconditionally delegate.
5979 * auxv.h (default_auxv_parse): Declare.
5980 * target-delegates.c: Rebuild.
5981 * target.c: Include auxv.h.
5982 * target.h (struct target_ops) <to_auxv_parse>: Use
5983 TARGET_DEFAULT_FUNC.
5985 2014-02-19 Tom Tromey <tromey@redhat.com>
5987 * target-delegates.c: Rebuild.
5988 * target.c (target_memory_map): Unconditionally delegate.
5989 * target.h (struct target_ops) <to_memory_map>: Use
5990 TARGET_DEFAULT_RETURN.
5992 2014-02-19 Tom Tromey <tromey@redhat.com>
5994 * target-delegates.c: Rebuild.
5995 * target.c (target_thread_alive): Unconditionally delegate.
5996 * target.h (struct target_ops) <to_thread_alive>: Use
5997 TARGET_DEFAULT_RETURN.
5999 2014-02-19 Tom Tromey <tromey@redhat.com>
6001 * target-delegates.c: Rebuild.
6002 * target.c (target_save_record): Unconditionally delegate.
6003 * target.h (struct target_ops) <to_save_record>: Use
6004 TARGET_DEFAULT_NORETURN.
6006 2014-02-19 Tom Tromey <tromey@redhat.com>
6008 * target-delegates.c: Rebuild.
6009 * target.c (target_delete_record): Unconditionally delegate.
6010 * target.h (struct target_ops) <to_delete_record>: Use
6011 TARGET_DEFAULT_NORETURN.
6013 2014-02-19 Tom Tromey <tromey@redhat.com>
6015 * target-delegates.c: Rebuild.
6016 * target.c (target_record_is_replaying): Unconditionally
6018 * target.h (struct target_ops) <to_record_is_replaying>: Use
6019 TARGET_DEFAULT_RETURN.
6021 2014-02-19 Tom Tromey <tromey@redhat.com>
6023 * target-delegates.c: Rebuild.
6024 * target.c (target_goto_record_begin): Unconditionally delegate.
6025 * target.h (struct target_ops) <to_goto_record_begin>: Use
6026 TARGET_DEFAULT_NORETURN.
6028 2014-02-19 Tom Tromey <tromey@redhat.com>
6030 * target-delegates.c: Rebuild.
6031 * target.c (target_goto_record_end): Unconditionally delegate.
6032 * target.h (struct target_ops) <to_goto_record_end>: Use
6033 TARGET_DEFAULT_NORETURN.
6035 2014-02-19 Tom Tromey <tromey@redhat.com>
6037 * target-delegates.c: Rebuild.
6038 * target.c (target_goto_record): Unconditionally delegate.
6039 * target.h (struct target_ops) <to_goto_record>: Use
6040 TARGET_DEFAULT_NORETURN.
6042 2014-02-19 Tom Tromey <tromey@redhat.com>
6044 * target-delegates.c: Rebuild.
6045 * target.c (target_insn_history): Unconditionally delegate.
6046 * target.h (struct target_ops) <to_insn_history>: Use
6047 TARGET_DEFAULT_NORETURN.
6049 2014-02-19 Tom Tromey <tromey@redhat.com>
6051 * target-delegates.c: Rebuild.
6052 * target.c (target_insn_history_from): Unconditionally delegate.
6053 * target.h (struct target_ops) <to_insn_history_from>: Use
6054 TARGET_DEFAULT_NORETURN.
6056 2014-02-19 Tom Tromey <tromey@redhat.com>
6058 * target-delegates.c: Rebuild.
6059 * target.c (target_insn_history_range): Unconditionally delegate.
6060 * target.h (struct target_ops) <to_insn_history_range>: Use
6061 TARGET_DEFAULT_NORETURN.
6063 2014-02-19 Tom Tromey <tromey@redhat.com>
6065 * target-delegates.c: Rebuild.
6066 * target.c (target_call_history): Unconditionally delegate.
6067 * target.h (struct target_ops) <to_call_history>: Use
6068 TARGET_DEFAULT_NORETURN.
6070 2014-02-19 Tom Tromey <tromey@redhat.com>
6072 * target-delegates.c: Rebuild.
6073 * target.c (target_call_history_from): Unconditionally delegate.
6074 * target.h (struct target_ops) <to_call_history_from>: Use
6075 TARGET_DEFAULT_NORETURN.
6077 2014-02-19 Tom Tromey <tromey@redhat.com>
6079 * target-delegates.c: Rebuild.
6080 * target.c (target_call_history_range): Unconditionally delegate.
6081 * target.h (struct target_ops) <to_call_history_range>: Use
6082 TARGET_DEFAULT_NORETURN.
6084 2014-02-19 Tom Tromey <tromey@redhat.com>
6086 * target-delegates.c: Rebuild.
6087 * target.c (target_verify_memory): Unconditionally delegate.
6088 * target.h (struct target_ops) <to_verify_memory>: Use
6089 TARGET_DEFAULT_NORETURN.
6091 2014-02-19 Tom Tromey <tromey@redhat.com>
6093 * target-delegates.c: Rebuild.
6094 * target.c (target_core_of_thread): Unconditionally delegate.
6095 * target.h (struct target_ops) <to_core_of_thread>: Use
6096 TARGET_DEFAULT_RETURN.
6098 2014-02-19 Tom Tromey <tromey@redhat.com>
6100 * target-delegates.c: Rebuild.
6101 * target.c (target_flash_done): Unconditionally delegate.
6102 * target.h (struct target_ops) <to_flash_done>: Use
6103 TARGET_DEFAULT_NORETURN.
6105 2014-02-19 Tom Tromey <tromey@redhat.com>
6107 * target-delegates.c: Rebuild.
6108 * target.c (target_flash_erase): Unconditionally delegate.
6109 * target.h (struct target_ops) <to_flash_erase>: Use
6110 TARGET_DEFAULT_NORETURN.
6112 2014-02-19 Tom Tromey <tromey@redhat.com>
6114 * target-delegates.c: Rebuild.
6115 * target.c (target_get_section_table): Unconditionally delegate.
6116 * target.h (struct target_ops) <to_get_section_table>: Use
6117 TARGET_DEFAULT_RETURN.
6119 2014-02-19 Tom Tromey <tromey@redhat.com>
6121 * target-delegates.c: Rebuild.
6122 * target.c (target_pid_to_str): Unconditionally delegate.
6123 (init_dummy_target): Don't initialize to_pid_to_str.
6124 (default_pid_to_str): Rename from dummy_pid_to_str.
6125 * target.h (struct target_ops) <to_pid_to_str>: Use
6126 TARGET_DEFAULT_FUNC.
6128 2014-02-19 Tom Tromey <tromey@redhat.com>
6130 * target-delegates.c: Rebuild.
6131 * target.c (target_find_new_threads): Unconditionally delegate.
6132 * target.h (struct target_ops) <to_find_new_threads>: Use
6133 TARGET_DEFAULT_RETURN.
6135 2014-02-19 Tom Tromey <tromey@redhat.com>
6137 * target-delegates.c: Rebuild.
6138 * target.c (target_program_signals): Unconditionally delegate.
6139 * target.h (struct target_ops) <to_program_signals>: Use
6140 TARGET_DEFAULT_IGNORE.
6142 2014-02-19 Tom Tromey <tromey@redhat.com>
6144 * target-delegates.c: Rebuild.
6145 * target.c (target_pass_signals): Unconditionally delegate.
6146 * target.h (struct target_ops) <to_pass_signals>: Use
6147 TARGET_DEFAULT_IGNORE.
6149 2014-02-19 Tom Tromey <tromey@redhat.com>
6151 * target-delegates.c: Rebuild.
6152 * target.c (default_mourn_inferior): New function.
6153 (target_mourn_inferior): Unconditionally delegate.
6154 * target.h (struct target_ops) <to_mourn_inferior>: Use
6155 TARGET_DEFAULT_FUNC.
6157 2014-02-19 Tom Tromey <tromey@redhat.com>
6159 * target-delegates.c: Rebuild.
6160 * target.c (default_follow_fork): New function.
6161 (target_follow_fork): Unconditionally delegate.
6162 * target.h (struct target_ops) <to_follow_fork>: Use
6163 TARGET_DEFAULT_FUNC.
6165 2014-02-19 Tom Tromey <tromey@redhat.com>
6167 * target-delegates.c: Rebuild.
6168 * target.c (target_kill): Unconditionally delegate.
6169 * target.h (struct target_ops) <to_kill>: Use
6170 TARGET_DEFAULT_NORETURN.
6172 2014-02-19 Tom Tromey <tromey@redhat.com>
6174 * target-delegates.c: Rebuild.
6175 * target.c (target_masked_watch_num_registers): Unconditionally
6177 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6178 Use TARGET_DEFAULT_RETURN.
6180 2014-02-19 Tom Tromey <tromey@redhat.com>
6182 * target-delegates.c: Rebuild.
6183 * target.c (target_remove_mask_watchpoint): Unconditionally
6185 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6186 TARGET_DEFAULT_RETURN.
6188 2014-02-19 Tom Tromey <tromey@redhat.com>
6190 * target-delegates.c: Rebuild.
6191 * target.c (target_insert_mask_watchpoint): Unconditionally
6193 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6194 TARGET_DEFAULT_RETURN.
6196 2014-02-19 Tom Tromey <tromey@redhat.com>
6198 * target-delegates.c: Rebuild.
6199 * target.c (target_ranged_break_num_registers): Unconditionally
6201 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6202 Use TARGET_DEFAULT_RETURN.
6204 2014-02-19 Tom Tromey <tromey@redhat.com>
6206 * target-delegates.c: Rebuild.
6207 * target.c (target_fetch_registers): Unconditionally delegate.
6208 * target.h (struct target_ops) <to_fetch_registers>: Use
6209 TARGET_DEFAULT_NORETURN.
6211 2014-02-19 Tom Tromey <tromey@redhat.com>
6213 * target-delegates.c: Rebuild.
6214 * target.c (update_current_target): Don't inherit or default
6216 * target.h (struct target_ops) <to_stop>: Use
6217 TARGET_DEFAULT_IGNORE.
6219 2014-02-19 Tom Tromey <tromey@redhat.com>
6221 * target-delegates.c: Rebuild.
6222 * target.c (update_current_target): Don't inherit or default
6223 to_can_run_breakpoint_commands.
6224 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6225 Use TARGET_DEFAULT_RETURN.
6227 2014-02-19 Tom Tromey <tromey@redhat.com>
6229 * target-delegates.c: Rebuild.
6230 * target.c (update_current_target): Don't inherit or default
6231 to_supports_evaluation_of_breakpoint_conditions.
6232 * target.h (struct target_ops)
6233 <to_supports_evaluation_of_breakpoint_conditions>: Use
6234 TARGET_DEFAULT_RETURN.
6236 2014-02-19 Tom Tromey <tromey@redhat.com>
6238 * target-delegates.c: Rebuild.
6239 * target.c (update_current_target): Don't inherit or default
6240 to_augmented_libraries_svr4_read.
6241 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6242 Use TARGET_DEFAULT_RETURN.
6244 2014-02-19 Tom Tromey <tromey@redhat.com>
6246 * target-delegates.c: Rebuild.
6247 * target.c (update_current_target): Don't inherit or default
6249 * target.h (struct target_ops) <to_can_use_agent>: Use
6250 TARGET_DEFAULT_RETURN.
6252 2014-02-19 Tom Tromey <tromey@redhat.com>
6254 * target-delegates.c: Rebuild.
6255 * target.c (update_current_target): Don't inherit or default
6257 * target.h (struct target_ops) <to_use_agent>: Use
6258 TARGET_DEFAULT_NORETURN.
6260 2014-02-19 Tom Tromey <tromey@redhat.com>
6262 * target-delegates.c: Rebuild.
6263 * target.c (update_current_target): Don't inherit or default
6265 (return_null): Remove.
6266 * target.h (struct target_ops) <to_traceframe_info>: Use
6267 TARGET_DEFAULT_RETURN.
6269 2014-02-19 Tom Tromey <tromey@redhat.com>
6271 * target-delegates.c: Rebuild.
6272 * target.c (update_current_target): Don't inherit or default
6273 to_static_tracepoint_markers_by_strid.
6274 * target.h (struct target_ops)
6275 <to_static_tracepoint_markers_by_strid>: Use
6276 TARGET_DEFAULT_NORETURN.
6278 2014-02-19 Tom Tromey <tromey@redhat.com>
6280 * target-delegates.c: Rebuild.
6281 * target.c (update_current_target): Don't inherit or default
6282 to_static_tracepoint_marker_at.
6283 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6284 Use TARGET_DEFAULT_RETURN.
6286 2014-02-19 Tom Tromey <tromey@redhat.com>
6288 * target-delegates.c: Rebuild.
6289 * target.c (update_current_target): Don't inherit or default
6291 * target.h (struct target_ops) <to_set_permissions>: Use
6292 TARGET_DEFAULT_IGNORE.
6294 2014-02-19 Tom Tromey <tromey@redhat.com>
6296 * target-delegates.c: Rebuild.
6297 * target.c (update_current_target): Don't inherit or default
6299 * target.h (struct target_ops) <to_get_tib_address>: Use
6300 TARGET_DEFAULT_NORETURN.
6302 2014-02-19 Tom Tromey <tromey@redhat.com>
6304 * target-delegates.c: Rebuild.
6305 * target.c (update_current_target): Don't inherit or default
6307 * target.h (struct target_ops) <to_set_trace_notes>: Use
6308 TARGET_DEFAULT_RETURN.
6310 2014-02-19 Tom Tromey <tromey@redhat.com>
6312 * target-delegates.c: Rebuild.
6313 * target.c (update_current_target): Don't initialize
6314 to_set_trace_buffer_size.
6315 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6316 TARGET_DEFAULT_IGNORE.
6318 2014-02-19 Tom Tromey <tromey@redhat.com>
6320 * target-delegates.c: Rebuild.
6321 * target.c (update_current_target): Don't inherit or default
6322 to_set_circular_trace_buffer.
6323 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6324 TARGET_DEFAULT_IGNORE.
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
6330 to_set_disconnected_tracing.
6331 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6332 TARGET_DEFAULT_IGNORE.
6334 2014-02-19 Tom Tromey <tromey@redhat.com>
6336 * target-delegates.c: Rebuild.
6337 * target.c (update_current_target): Don't inherit or default
6338 to_get_min_fast_tracepoint_insn_len.
6339 (return_minus_one): Remove.
6340 * target.h (struct target_ops)
6341 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6343 2014-02-19 Tom Tromey <tromey@redhat.com>
6345 * target-delegates.c: Rebuild.
6346 * target.c (update_current_target): Don't inherit or default
6347 to_get_raw_trace_data.
6348 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6349 TARGET_DEFAULT_NORETURN.
6351 2014-02-19 Tom Tromey <tromey@redhat.com>
6353 * target-delegates.c: Rebuild.
6354 * target.c (update_current_target): Don't inherit or default
6355 to_upload_trace_state_variables.
6356 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6357 Use TARGET_DEFAULT_RETURN.
6359 2014-02-19 Tom Tromey <tromey@redhat.com>
6361 * target-delegates.c: Rebuild.
6362 * target.c (update_current_target): Don't inherit or default
6363 to_upload_tracepoints.
6364 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6365 TARGET_DEFAULT_RETURN.
6367 2014-02-19 Tom Tromey <tromey@redhat.com>
6369 * target-delegates.c: Rebuild.
6370 * target.c (update_current_target): Don't inherit or default
6372 * target.h (struct target_ops) <to_save_trace_data>: Use
6373 TARGET_DEFAULT_NORETURN.
6375 2014-02-19 Tom Tromey <tromey@redhat.com>
6377 * target-delegates.c: Rebuild.
6378 * target.c (update_current_target): Don't inherit or default
6379 to_get_trace_state_variable_value.
6380 * target.h (struct target_ops)
6381 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6383 2014-02-19 Tom Tromey <tromey@redhat.com>
6385 * target-delegates.c: Rebuild.
6386 * target.c (update_current_target): Don't inherit or default
6388 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6390 2014-02-19 Tom Tromey <tromey@redhat.com>
6392 * target-delegates.c: Rebuild.
6393 * target.c (update_current_target): Don't inherit or default
6395 * target.h (struct target_ops) <to_trace_stop>: Use
6396 TARGET_DEFAULT_NORETURN.
6398 2014-02-19 Tom Tromey <tromey@redhat.com>
6400 * target-delegates.c: Rebuild.
6401 * target.c (update_current_target): Don't inherit or default
6402 to_get_tracepoint_status.
6403 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6404 TARGET_DEFAULT_NORETURN.
6406 2014-02-19 Tom Tromey <tromey@redhat.com>
6408 * target-delegates.c: Rebuild.
6409 * target.c (update_current_target): Don't inherit or default
6410 to_get_trace_status.
6411 * target.h (struct target_ops) <to_get_trace_status>: Use
6412 TARGET_DEFAULT_RETURN.
6414 2014-02-19 Tom Tromey <tromey@redhat.com>
6416 * target-delegates.c: Rebuild.
6417 * target.c (update_current_target): Don't inherit or default
6419 * target.h (struct target_ops) <to_trace_start>: Use
6420 TARGET_DEFAULT_NORETURN.
6422 2014-02-19 Tom Tromey <tromey@redhat.com>
6424 * target-delegates.c: Rebuild.
6425 * target.c (update_current_target): Don't inherit or default
6426 to_trace_set_readonly_regions.
6427 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6428 Use TARGET_DEFAULT_NORETURN.
6430 2014-02-19 Tom Tromey <tromey@redhat.com>
6432 * target-delegates.c: Rebuild.
6433 * target.c (update_current_target): Don't inherit or default
6434 to_disable_tracepoint.
6435 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6436 TARGET_DEFAULT_NORETURN.
6438 2014-02-19 Tom Tromey <tromey@redhat.com>
6440 * target-delegates.c: Rebuild.
6441 * target.c (update_current_target): Don't inherit or default
6442 to_enable_tracepoint.
6443 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6444 TARGET_DEFAULT_NORETURN.
6446 2014-02-19 Tom Tromey <tromey@redhat.com>
6448 * target-delegates.c: Rebuild.
6449 * target.c (update_current_target): Don't inherit or default
6450 to_download_trace_state_variable.
6451 * target.h (struct target_ops) <to_download_trace_state_variable>:
6452 Use TARGET_DEFAULT_NORETURN.
6454 2014-02-19 Tom Tromey <tromey@redhat.com>
6456 * target-delegates.c: Rebuild.
6457 * target.c (update_current_target): Don't inherit or default
6458 to_can_download_tracepoint.
6459 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6460 TARGET_DEFAULT_RETURN.
6462 2014-02-19 Tom Tromey <tromey@redhat.com>
6464 * target-delegates.c: Rebuild.
6465 * target.c (update_current_target): Don't inherit or default
6466 to_download_tracepoint.
6467 * target.h (struct target_ops) <to_download_tracepoint>: Use
6468 TARGET_DEFAULT_NORETURN.
6470 2014-02-19 Tom Tromey <tromey@redhat.com>
6472 * target-delegates.c: Rebuild.
6473 * target.c (update_current_target): Don't inherit or default
6475 * target.h (struct target_ops) <to_trace_init>: Use
6476 TARGET_DEFAULT_RETURN.
6478 2014-02-19 Tom Tromey <tromey@redhat.com>
6480 * target-delegates.c: Rebuild.
6481 * target.c (update_current_target): Don't inherit or default
6482 to_supports_string_tracing.
6483 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6484 TARGET_DEFAULT_RETURN.
6486 2014-02-19 Tom Tromey <tromey@redhat.com>
6488 * target-delegates.c: Rebuild.
6489 * target.c (update_current_target): Don't inherit or default
6490 to_supports_enable_disable_tracepoint.
6491 * target.h (struct target_ops)
6492 <to_supports_enable_disable_tracepoint>: Use
6493 TARGET_DEFAULT_RETURN.
6495 2014-02-19 Tom Tromey <tromey@redhat.com>
6497 * target-delegates.c: Rebuild.
6498 * target.c (update_current_target): Don't inherit or default
6499 to_supports_multi_process.
6500 * target.h (struct target_ops) <to_supports_multi_process>: Use
6501 TARGET_DEFAULT_RETURN.
6503 2014-02-19 Tom Tromey <tromey@redhat.com>
6505 * target-delegates.c: Rebuild.
6506 * target.c (update_current_target): Don't inherit or default
6507 to_get_ada_task_ptid.
6508 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6509 TARGET_DEFAULT_FUNC.
6511 2014-02-19 Tom Tromey <tromey@redhat.com>
6513 * target-delegates.c: Rebuild.
6514 * target.c (update_current_target): Don't inherit or default
6515 to_thread_architecture.
6516 * target.h (struct target_ops) <to_thread_architecture>: Use
6517 TARGET_DEFAULT_FUNC.
6519 2014-02-19 Tom Tromey <tromey@redhat.com>
6521 * target-delegates.c: Rebuild.
6522 * target.c (update_current_target): Don't inherit or default
6523 to_execution_direction.
6524 * target.h (struct target_ops) <to_execution_direction>: Use
6525 TARGET_DEFAULT_FUNC.
6527 2014-02-19 Tom Tromey <tromey@redhat.com>
6529 * target-delegates.c: Rebuild.
6530 * target.c (update_current_target): Don't inherit or default
6531 to_can_execute_reverse.
6532 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6533 TARGET_DEFAULT_RETURN.
6534 (target_can_execute_reverse): Unconditionally delegate.
6536 2014-02-19 Tom Tromey <tromey@redhat.com>
6538 * target-delegates.c: Rebuild.
6539 * target.c (update_current_target): Don't inherit or default
6541 (dummy_goto_bookmark): Remove.
6542 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6543 * target.h (struct target_ops) <to_goto_bookmark>: Use
6544 TARGET_DEFAULT_NORETURN.
6546 2014-02-19 Tom Tromey <tromey@redhat.com>
6548 * target-delegates.c: Rebuild.
6549 * target.c (update_current_target): Don't inherit or default
6551 (dummy_get_bookmark): Remove.
6552 (init_dummy_target): Don't inherit or default to_get_bookmark.
6553 * target.h (struct target_ops) <to_get_bookmark>: Use
6554 TARGET_DEFAULT_NORETURN
6556 2014-02-19 Tom Tromey <tromey@redhat.com>
6558 * target-delegates.c: Rebuild.
6559 * target.c (update_current_target): Don't inherit or default
6560 to_make_corefile_notes.
6561 (init_dummy_target): Don't initialize to_make_corefile_notes.
6562 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6563 TARGET_DEFAULT_FUNC.
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_find_memory_regions.
6570 (init_dummy_target): Don't initialize to_find_memory_regions.
6571 * target.h (struct target_ops) <to_find_memory_regions>: Use
6572 TARGET_DEFAULT_FUNC.
6574 2014-02-19 Tom Tromey <tromey@redhat.com>
6576 * target-delegates.c: Rebuild.
6577 * target.c (update_current_target): Don't inherit or default
6579 * target.h (struct target_ops) <to_log_command>: Use
6580 TARGET_DEFAULT_IGNORE.
6581 (target_log_command): Unconditionally delegate.
6583 2014-02-19 Tom Tromey <tromey@redhat.com>
6585 * target-delegates.c: Rebuild.
6586 * target.c (update_current_target): Don't inherit or default
6587 to_pid_to_exec_file.
6588 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
6589 TARGET_DEFAULT_RETURN.
6591 2014-02-19 Tom Tromey <tromey@redhat.com>
6593 * target-delegates.c: Rebuild.
6594 * target.c (update_current_target): Don't inherit or default
6596 (target_thread_name): Unconditionally delegate.
6597 * target.h (struct target_ops) <to_thread_name>: Use
6598 TARGET_DEFAULT_RETURN.
6600 2014-02-19 Tom Tromey <tromey@redhat.com>
6602 * target-delegates.c: Rebuild.
6603 * target.c (update_current_target): Don't inherit or default
6604 to_extra_thread_info.
6605 * target.h (struct target_ops) <to_extra_thread_info>: Use
6606 TARGET_DEFAULT_RETURN.
6608 2014-02-19 Tom Tromey <tromey@redhat.com>
6610 * target-delegates.c: Rebuild.
6611 * target.c (update_current_target): Don't inherit or default
6613 * target.h (struct target_ops) <to_has_exited>: Use
6614 TARGET_DEFAULT_RETURN..
6616 2014-02-19 Tom Tromey <tromey@redhat.com>
6618 * target-delegates.c: Rebuild.
6619 * target.c (update_current_target): Don't inherit or default
6620 to_set_syscall_catchpoint.
6621 (return_one): Remove.
6622 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
6623 TARGET_DEFAULT_RETURN.
6625 2014-02-19 Tom Tromey <tromey@redhat.com>
6627 * target-delegates.c: Rebuild.
6628 * target.c (update_current_target): Don't inherit or default
6629 to_insert_exec_catchpoint.
6630 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6631 TARGET_DEFAULT_RETURN.
6633 2014-01-08 Tom Tromey <tromey@redhat.com>
6635 * target-delegates.c: Rebuild.
6636 * target.c (update_current_target): Don't inherit or default
6637 to_insert_exec_catchpoint.
6638 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6639 TARGET_DEFAULT_RETURN.
6641 2014-02-19 Tom Tromey <tromey@redhat.com>
6643 * target-delegates.c: Rebuild.
6644 * target.c (update_current_target): Don't inherit or default
6645 to_remove_vfork_catchpoint.
6646 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
6647 TARGET_DEFAULT_RETURN.
6649 2014-02-19 Tom Tromey <tromey@redhat.com>
6651 * target-delegates.c: Rebuild.
6652 * target.c (update_current_target): Don't inherit or default
6653 to_insert_vfork_catchpoint.
6654 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
6655 TARGET_DEFAULT_RETURN.
6657 2014-02-19 Tom Tromey <tromey@redhat.com>
6659 * target-delegates.c: Rebuild.
6660 * target.c (update_current_target): Don't inherit or default
6661 to_remove_fork_catchpoint.
6662 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
6663 TARGET_DEFAULT_RETURN.
6665 2014-02-19 Tom Tromey <tromey@redhat.com>
6667 * target-delegates.c: Rebuild.
6668 * target.c (update_current_target): Don't inherit or default
6669 to_insert_fork_catchpoint.
6670 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
6671 TARGET_DEFAULT_RETURN.
6673 2014-02-19 Tom Tromey <tromey@redhat.com>
6675 * target-delegates.c: Rebuild.
6676 * target.c (update_current_target): Don't inherit or default
6677 to_post_startup_inferior.
6678 * target.h (struct target_ops) <to_post_startup_inferior>: Use
6679 TARGET_DEFAULT_IGNORE.
6681 2014-02-19 Tom Tromey <tromey@redhat.com>
6683 * target-delegates.c: Rebuild.
6684 * target.c (update_current_target): Don't inherit or default
6686 * target.h (struct target_ops) <to_load>: Use
6687 TARGET_DEFAULT_NORETURN.
6689 2014-02-19 Tom Tromey <tromey@redhat.com>
6691 * target-delegates.c: Rebuild.
6692 * target.c (update_current_target): Don't inherit or default
6694 * target.h (struct target_ops) <to_terminal_info>: Use
6695 TARGET_DEFAULT_FUNC.
6697 2014-02-19 Tom Tromey <tromey@redhat.com>
6699 * target-delegates.c: Rebuild.
6700 * target.c (update_current_target): Don't inherit or default
6701 to_terminal_save_ours.
6702 * target.h (struct target_ops) <to_terminal_save_ours>: Use
6703 TARGET_DEFAULT_IGNORE.
6705 2014-02-19 Tom Tromey <tromey@redhat.com>
6707 * target-delegates.c: Rebuild.
6708 * target.c (update_current_target): Don't inherit or default
6710 * target.h (struct target_ops) <to_terminal_ours>: Use
6711 TARGET_DEFAULT_IGNORE.
6713 2014-02-19 Tom Tromey <tromey@redhat.com>
6715 * target-delegates.c: Rebuild.
6716 * target.c (update_current_target): Don't inherit or default
6717 to_terminal_ours_for_output.
6718 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
6719 TARGET_DEFAULT_IGNORE.
6721 2014-02-19 Tom Tromey <tromey@redhat.com>
6723 * target-delegates.c: Rebuild.
6724 * target.c (update_current_target): Don't inherit or default
6725 to_terminal_inferior.
6726 * target.h (struct target_ops) <to_terminal_inferior>: Use
6727 TARGET_DEFAULT_IGNORE.
6729 2014-02-19 Tom Tromey <tromey@redhat.com>
6731 * target-delegates.c: Rebuild.
6732 * target.c (update_current_target): Don't inherit or default
6734 * target.h (struct target_ops) <to_terminal_init>: Use
6735 TARGET_DEFAULT_IGNORE.
6737 2014-02-19 Tom Tromey <tromey@redhat.com>
6739 * target-delegates.c: Rebuild.
6740 * target.c (update_current_target): Don't inherit or default
6741 to_can_accel_watchpoint_condition.
6742 * target.h (struct target_ops)
6743 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
6745 2014-02-19 Tom Tromey <tromey@redhat.com>
6747 * target-delegates.c: Rebuild.
6748 * target.c (update_current_target): Don't inherit or default
6749 to_region_ok_for_hw_watchpoint.
6750 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6751 Use TARGET_DEFAULT_FUNC.
6753 2014-02-19 Tom Tromey <tromey@redhat.com>
6755 * target-delegates.c: Rebuild.
6756 * target.c (update_current_target): Don't inherit or default
6757 to_watchpoint_addr_within_range.
6758 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
6759 Use TARGET_DEFAULT_FUNC.
6761 2014-02-19 Tom Tromey <tromey@redhat.com>
6763 * target-delegates.c: Rebuild.
6764 * target.c (update_current_target): Don't inherit or default
6765 to_remove_watchpoint.
6766 * target.h (struct target_ops) <to_remove_watchpoint>: Use
6767 TARGET_DEFAULT_NORETURN.
6769 2014-02-19 Tom Tromey <tromey@redhat.com>
6771 * target-delegates.c: Rebuild.
6772 * target.c (update_current_target): Don't inherit or default
6773 to_insert_watchpoint.
6774 * target.h (struct target_ops) <to_insert_watchpoint>: Use
6775 TARGET_DEFAULT_RETURN.
6777 2014-02-19 Tom Tromey <tromey@redhat.com>
6779 * target-delegates.c: Rebuild.
6780 * target.c (update_current_target): Don't inherit or default
6781 to_remove_hw_breakpoint.
6782 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
6783 TARGET_DEFAULT_RETURN.
6785 2014-02-19 Tom Tromey <tromey@redhat.com>
6787 * target-delegates.c: Rebuild.
6788 * target.c (update_current_target): Don't inherit or default
6789 to_insert_hw_breakpoint.
6790 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
6791 TARGET_DEFAULT_RETURN.
6793 2014-02-19 Tom Tromey <tromey@redhat.com>
6795 * target-delegates.c: Rebuild.
6796 * target.c (update_current_target): Don't inherit or default
6797 to_can_use_hw_breakpoint.
6798 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
6799 TARGET_DEFAULT_RETURN.
6801 2014-02-19 Tom Tromey <tromey@redhat.com>
6803 * target-delegates.c: Rebuild.
6804 * target.c (update_current_target): Don't inherit or default
6806 * target.h (struct target_ops) <to_files_info>: Use
6807 TARGET_DEFAULT_IGNORE.
6809 2014-02-19 Tom Tromey <tromey@redhat.com>
6811 * target-delegates.c: Rebuild.
6812 * target.c (update_current_target): Don't inherit or default
6814 * target.h (struct target_ops) <to_store>: Use
6815 TARGET_DEFAULT_NORETURN.
6817 2014-02-19 Tom Tromey <tromey@redhat.com>
6819 * target-delegates.c: Rebuild.
6820 * target.c (update_current_target): Don't inherit or default
6822 * target.h (struct target_ops) <to_post_attach>: Use
6823 TARGET_DEFAULT_IGNORE.
6825 2014-02-19 Tom Tromey <tromey@redhat.com>
6827 * target-delegates.c: Rebuild.
6828 * target.c (update_current_target): Don't inherit or default
6830 (default_rcmd): New function.
6831 (do_monitor_command): Unconditionally delegate.
6832 * target.h (struct target_ops) <to_rmcd>: Use
6833 TARGET_DEFAULT_FUNC.
6835 2014-02-19 Tom Tromey <tromey@redhat.com>
6837 * target-delegates.c: Rebuild.
6838 * target.c (init_dummy_target): Don't initialize to_attach.
6839 (target_attach): Unconditionally delegate.
6840 * target.h (struct target_ops) <to_attach>: Use
6841 TARGET_DEFAULT_FUNC.
6843 2014-02-19 Tom Tromey <tromey@redhat.com>
6845 * target-delegates.c: Rebuild.
6846 * target.c (target_detach): Unconditionally delegate.
6847 (init_dummy_target): Don't initialize to_detach.
6848 * target.h (struct target_ops) <to_detach>: Use
6849 TARGET_DEFAULT_IGNORE.
6851 2014-02-19 Tom Tromey <tromey@redhat.com>
6853 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6855 (target_augmented_libraries_svr4_read): Add argument.
6856 * target.c (update_current_target): Update.
6857 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
6860 2014-02-19 Tom Tromey <tromey@redhat.com>
6862 * target.h (struct target_ops) <to_call_history_range>: Add
6864 * target.c (target_call_history_range): Add argument.
6865 * record-btrace.c (record_btrace_call_history_range): Add 'self'
6867 (record_btrace_call_history_from): Update.
6869 2014-02-19 Tom Tromey <tromey@redhat.com>
6871 * target.h (struct target_ops) <to_call_history_from>: Add
6873 * target.c (target_call_history_from): Add argument.
6874 * record-btrace.c (record_btrace_call_history_from): Add 'self'
6877 2014-02-19 Tom Tromey <tromey@redhat.com>
6879 * target.h (struct target_ops) <to_call_history>: Add argument.
6880 * target.c (target_call_history): Add argument.
6881 * record-btrace.c (record_btrace_call_history): Add 'self'
6884 2014-02-19 Tom Tromey <tromey@redhat.com>
6886 * target.h (struct target_ops) <to_insn_history_range>: Add
6888 * target.c (target_insn_history_range): Add argument.
6889 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
6891 (record_btrace_insn_history_from): Update.
6893 2014-02-19 Tom Tromey <tromey@redhat.com>
6895 * target.h (struct target_ops) <to_insn_history_from>: Add
6897 * target.c (target_insn_history_from): Add argument.
6898 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
6901 2014-02-19 Tom Tromey <tromey@redhat.com>
6903 * target.h (struct target_ops) <to_insn_history>: Add argument.
6904 * target.c (target_insn_history): Add argument.
6905 * record-btrace.c (record_btrace_insn_history): Add 'self'
6908 2014-02-19 Tom Tromey <tromey@redhat.com>
6910 * target.h (struct target_ops) <to_goto_record>: Add argument.
6911 * target.c (target_goto_record): Add argument.
6912 * record-full.c (record_full_goto): Add 'self' argument.
6913 * record-btrace.c (record_btrace_goto): Add 'self' argument.
6915 2014-02-19 Tom Tromey <tromey@redhat.com>
6917 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
6918 * target.c (target_goto_record_end): Add argument.
6919 * record-full.c (record_full_goto_end): Add 'self' argument.
6920 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
6922 2014-02-19 Tom Tromey <tromey@redhat.com>
6924 * target.h (struct target_ops) <to_goto_record_begin>: Add
6926 * target.c (target_goto_record_begin): Add argument.
6927 * record-full.c (record_full_goto_begin): Add 'self' argument.
6928 * record-btrace.c (record_btrace_goto_begin): Add 'self'
6931 2014-02-19 Tom Tromey <tromey@redhat.com>
6933 * target.h (struct target_ops) <to_record_is_replaying>: Add
6935 * target.c (target_record_is_replaying): Add argument.
6936 * record-full.c (record_full_is_replaying): Add 'self' argument.
6937 * record-btrace.c (record_btrace_is_replaying): Add 'self'
6939 (record_btrace_xfer_partial, record_btrace_store_registers)
6940 (record_btrace_prepare_to_store, record_btrace_resume)
6941 (record_btrace_wait, record_btrace_decr_pc_after_break)
6942 (record_btrace_find_new_threads, record_btrace_thread_alive):
6945 2014-02-19 Tom Tromey <tromey@redhat.com>
6947 * target.h (struct target_ops) <to_delete_record>: Add argument.
6948 * target.c (target_delete_record): Add argument.
6949 * record-full.c (record_full_delete): Add 'self' argument.
6951 2014-02-19 Tom Tromey <tromey@redhat.com>
6953 * target.h (struct target_ops) <to_save_record>: Add argument.
6954 * target.c (target_save_record): Add argument.
6955 * record-full.c (record_full_save): Add 'self' argument.
6956 (record_full_save): Add 'self' argument.
6958 2014-02-19 Tom Tromey <tromey@redhat.com>
6960 * target.h (struct target_ops) <to_info_record>: Add argument.
6961 * target.c (target_info_record): Add argument.
6962 * record.c (info_record_command): Add argument.
6963 * record-full.c (record_full_info): Add 'self' argument.
6964 * record-btrace.c (record_btrace_info): Add 'self' argument.
6966 2014-02-19 Tom Tromey <tromey@redhat.com>
6968 * target.h (struct target_ops) <to_stop_recording>: Add argument.
6969 * target.c (target_stop_recording): Add argument.
6970 * record.c (record_stop): Add argument.
6971 * record-btrace.c (record_btrace_stop_recording): Add 'self'
6974 2014-02-19 Tom Tromey <tromey@redhat.com>
6976 * target.h (struct target_ops) <to_read_btrace>: Add argument.
6977 * target.c (struct target_ops) <to_read_btrace>: Add argument.
6978 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
6980 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
6981 (_initialize_amd64_linux_nat): Use it.
6982 * i386-linux-nat.c (i386_linux_read_btrace): New function.
6983 (_initialize_i386_linux_nat): Use it.
6985 2014-02-19 Tom Tromey <tromey@redhat.com>
6987 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
6988 * target.c (target_teardown_btrace): Add argument.
6989 * remote.c (remote_teardown_btrace): Add 'self' argument.
6990 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
6992 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
6995 2014-02-19 Tom Tromey <tromey@redhat.com>
6997 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
6998 * target.c (target_disable_btrace): Add argument.
6999 * remote.c (remote_disable_btrace): Add 'self' argument.
7000 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
7002 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
7005 2014-02-19 Tom Tromey <tromey@redhat.com>
7007 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
7008 * target.c (target_enable_btrace): Add argument.
7009 * remote.c (remote_enable_btrace): Add 'self' argument.
7010 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
7012 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
7015 2014-02-19 Tom Tromey <tromey@redhat.com>
7017 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
7018 (target_can_use_agent): Add argument.
7019 * target.c (update_current_target): Update.
7020 * remote.c (remote_can_use_agent): Add 'self' argument.
7021 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
7023 2014-02-19 Tom Tromey <tromey@redhat.com>
7025 * target.h (struct target_ops) <to_use_agent>: Add argument.
7026 (target_use_agent): Add argument.
7027 * target.c (update_current_target): Update.
7028 * remote.c (remote_use_agent): Add 'self' argument.
7029 * inf-child.c (inf_child_use_agent): Add 'self' argument.
7031 2014-02-19 Tom Tromey <tromey@redhat.com>
7033 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
7034 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
7035 (target_traceframe_info): Add argument.
7036 * target.c (update_current_target): Update.
7037 * remote.c (remote_traceframe_info): Add 'self' argument.
7038 * ctf.c (ctf_traceframe_info): Add 'self' argument.
7040 2014-02-19 Tom Tromey <tromey@redhat.com>
7042 * target.h (target_static_tracepoint_markers_by_strid): Add
7044 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
7046 * target.c (update_current_target): Update.
7047 * remote.c (struct target_ops)
7048 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7049 * linux-nat.c (struct target_ops)
7050 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7052 2014-02-19 Tom Tromey <tromey@redhat.com>
7054 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7056 (target_static_tracepoint_marker_at): Add argument.
7057 * target.c (update_current_target): Update.
7058 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
7061 2014-02-19 Tom Tromey <tromey@redhat.com>
7063 * target.h (struct target_ops) <to_set_permissions>: Add argument.
7064 (target_set_permissions): Add argument.
7065 * target.c (update_current_target): Update.
7066 * remote.c (remote_set_permissions): Add 'self' argument.
7067 (remote_start_remote): Update.
7069 2014-02-19 Tom Tromey <tromey@redhat.com>
7071 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
7072 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
7073 (target_get_tib_address): Add argument.
7074 * target.c (update_current_target): Update.
7075 * remote.c (remote_get_tib_address): Add 'self' argument.
7077 2014-02-19 Tom Tromey <tromey@redhat.com>
7079 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
7080 (target_set_trace_notes): Add argument.
7081 * target.c (update_current_target): Update.
7082 * remote.c (remote_set_trace_notes): Add 'self' argument.
7084 2014-02-19 Tom Tromey <tromey@redhat.com>
7086 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
7088 (target_set_trace_buffer_size): Add argument.
7089 * target.c (update_current_target): Update.
7090 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
7092 2014-02-19 Tom Tromey <tromey@redhat.com>
7094 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
7096 (target_set_circular_trace_buffer): Add argument.
7097 * target.c (update_current_target): Update.
7098 * remote.c (remote_set_circular_trace_buffer): Add 'self'
7101 2014-02-19 Tom Tromey <tromey@redhat.com>
7103 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
7105 (target_set_disconnected_tracing): Add argument.
7106 * target.c (update_current_target): Update.
7107 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
7109 2014-02-19 Tom Tromey <tromey@redhat.com>
7111 * target.h (struct target_ops)
7112 <to_get_min_fast_tracepoint_insn_len>: Add argument.
7113 (target_get_min_fast_tracepoint_insn_len): Add argument.
7114 * target.c (update_current_target): Update.
7115 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
7118 2014-02-19 Tom Tromey <tromey@redhat.com>
7120 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
7122 (target_get_raw_trace_data): Add argument.
7123 * target.c (update_current_target): Update.
7124 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
7126 2014-02-19 Tom Tromey <tromey@redhat.com>
7128 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7130 (target_upload_trace_state_variables): Add argument.
7131 * target.c (update_current_target): Update.
7132 * remote.c (remote_upload_trace_state_variables): Add 'self'
7134 (remote_start_remote): Update.
7136 2014-02-19 Tom Tromey <tromey@redhat.com>
7138 * target.h (struct target_ops) <to_upload_tracepoints>: Add
7140 (target_upload_tracepoints): Add argument.
7141 * target.c (update_current_target): Update.
7142 * remote.c (remote_upload_tracepoints): Add 'self' argument.
7143 (remote_start_remote): Update.
7145 2014-02-19 Tom Tromey <tromey@redhat.com>
7147 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
7148 (target_save_trace_data): Add argument.
7149 * target.c (update_current_target): Update.
7150 * remote.c (remote_save_trace_data): Add 'self' argument.
7152 2014-02-19 Tom Tromey <tromey@redhat.com>
7154 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7156 * target.h (struct target_ops)
7157 <to_get_trace_state_variable_value>: Add argument.
7158 (target_get_trace_state_variable_value): Add argument.
7159 * target.c (update_current_target): Update.
7160 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7162 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7164 2014-02-19 Tom Tromey <tromey@redhat.com>
7166 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7167 * target.h (struct target_ops) <to_trace_find>: Add argument.
7168 (target_trace_find): Add argument.
7169 * target.c (update_current_target): Update.
7170 * remote.c (remote_trace_find): Add 'self' argument.
7171 * ctf.c (ctf_trace_find): Add 'self' argument.
7173 2014-02-19 Tom Tromey <tromey@redhat.com>
7175 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7176 (target_trace_stop): Add argument.
7177 * target.c (update_current_target): Update.
7178 * remote.c (remote_trace_stop): Add 'self' argument.
7180 2014-02-19 Tom Tromey <tromey@redhat.com>
7182 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7183 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7185 (target_get_tracepoint_status): Add argument.
7186 * target.c (update_current_target): Update.
7187 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7189 2014-02-19 Tom Tromey <tromey@redhat.com>
7191 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7192 * target.h (struct target_ops) <to_get_trace_status>: Add
7194 (target_get_trace_status): Add argument.
7195 * target.c (update_current_target): Update.
7196 * remote.c (remote_get_trace_status): Add 'self' argument.
7197 (remote_start_remote, remote_can_download_tracepoint): Update.
7198 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7200 2014-02-19 Tom Tromey <tromey@redhat.com>
7202 * target.h (struct target_ops) <to_trace_start>: Add argument.
7203 (target_trace_start): Add argument.
7204 * target.c (update_current_target): Update.
7205 * remote.c (remote_trace_start): Add 'self' argument.
7207 2014-02-19 Tom Tromey <tromey@redhat.com>
7209 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7211 (target_trace_set_readonly_regions): Add argument.
7212 * target.c (update_current_target): Update.
7213 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7216 2014-02-19 Tom Tromey <tromey@redhat.com>
7218 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7220 (target_disable_tracepoint): Add argument.
7221 * target.c (update_current_target): Update.
7222 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7224 2014-02-19 Tom Tromey <tromey@redhat.com>
7226 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7228 (target_enable_tracepoint): Add argument.
7229 * target.c (update_current_target): Update.
7230 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7232 2014-02-19 Tom Tromey <tromey@redhat.com>
7234 * target.h (struct target_ops) <to_download_trace_state_variable>:
7236 (target_download_trace_state_variable): Add argument.
7237 * target.c (update_current_target): Update.
7238 * remote.c (remote_download_trace_state_variable): Add 'self'
7241 2014-02-19 Tom Tromey <tromey@redhat.com>
7243 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7245 (target_can_download_tracepoint): Add argument.
7246 * target.c (update_current_target): Update.
7247 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7249 2014-02-19 Tom Tromey <tromey@redhat.com>
7251 * target.h (struct target_ops) <to_download_tracepoint>: Add
7253 (target_download_tracepoint): Add argument.
7254 * target.c (update_current_target): Update.
7255 * remote.c (remote_download_tracepoint): Add 'self' argument.
7257 2014-02-19 Tom Tromey <tromey@redhat.com>
7259 * target.h (struct target_ops) <to_trace_init>: Add argument.
7260 (target_trace_init): Add argument.
7261 * target.c (update_current_target): Update.
7262 * remote.c (remote_trace_init): Add 'self' argument.
7264 2014-02-19 Tom Tromey <tromey@redhat.com>
7266 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7267 * target.c (target_fileio_readlink): Add argument.
7268 * remote.c (remote_hostio_readlink): Add 'self' argument.
7269 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7271 2014-02-19 Tom Tromey <tromey@redhat.com>
7273 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7274 * target.c (target_fileio_unlink): Add argument.
7275 * remote.c (remote_hostio_unlink): Add 'self' argument.
7276 (remote_file_delete): Update.
7277 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7279 2014-02-19 Tom Tromey <tromey@redhat.com>
7281 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7282 * target.c (target_fileio_close): Add argument.
7283 * remote.c (remote_hostio_close): Add 'self' argument.
7284 (remote_hostio_close_cleanup): Update.
7285 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7287 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7289 2014-02-19 Tom Tromey <tromey@redhat.com>
7291 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7292 * target.c (target_fileio_pread): Add argument.
7293 * remote.c (remote_hostio_pread): Add 'self' argument.
7294 (remote_bfd_iovec_pread, remote_file_get): Update.
7295 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7297 2014-02-19 Tom Tromey <tromey@redhat.com>
7299 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7300 * target.c (target_fileio_pwrite): Add argument.
7301 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7302 (remote_file_put): Update.
7303 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7305 2014-02-19 Tom Tromey <tromey@redhat.com>
7307 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7308 * target.c (target_fileio_open): Add argument.
7309 * remote.c (remote_hostio_open): Add 'self' argument.
7310 (remote_bfd_iovec_open): Add 'self' argument.
7311 (remote_file_put): Add 'self' argument.
7312 (remote_file_get): Add 'self' argument.
7313 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7315 2014-02-19 Tom Tromey <tromey@redhat.com>
7317 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7319 (target_can_run_breakpoint_commands): Add argument.
7320 * target.c (update_current_target): Update.
7321 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7323 (remote_insert_breakpoint): Add 'self' argument.
7324 (remote_insert_hw_breakpoint): Add 'self' argument.
7325 (remote_can_run_breakpoint_commands): Add 'self' argument.
7327 2014-02-19 Tom Tromey <tromey@redhat.com>
7329 * target.h (struct target_ops)
7330 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7331 (target_supports_evaluation_of_breakpoint_conditions): Add
7333 * target.c (update_current_target): Update.
7334 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7336 (remote_insert_breakpoint): Add 'self' argument.
7337 (remote_insert_hw_breakpoint): Add 'self' argument.
7338 (remote_supports_cond_breakpoints): Add 'self' argument.
7340 2014-02-19 Tom Tromey <tromey@redhat.com>
7342 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7344 (target_supports_string_tracing): Add argument.
7345 * target.c (update_current_target): Update.
7346 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7348 2014-02-19 Tom Tromey <tromey@redhat.com>
7350 * target.h (struct target_ops)
7351 <to_supports_disable_randomization>: Add argument.
7352 * target.c (find_default_supports_disable_randomization): Add
7354 (target_supports_disable_randomization): Add argument.
7355 (find_default_supports_disable_randomization): Add 'self'
7357 * remote.c (extended_remote_supports_disable_randomization): Add
7359 (remote_supports_disable_randomization): Add 'self' argument.
7360 (extended_remote_create_inferior): Update.
7361 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7364 2014-02-19 Tom Tromey <tromey@redhat.com>
7366 * target.h (struct target_ops)
7367 <to_supports_enable_disable_tracepoint>: Add argument.
7368 (target_supports_enable_disable_tracepoint): Add argument.
7369 * target.c (update_current_target): Update.
7370 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7373 2014-02-19 Tom Tromey <tromey@redhat.com>
7375 * target.h (struct target_ops) <to_supports_multi_process>: Add
7377 (target_supports_multi_process): Add argument.
7378 * target.c (update_current_target): Update.
7379 * remote.c (remote_supports_multi_process): Add 'self' argument.
7380 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7382 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7385 2014-02-19 Tom Tromey <tromey@redhat.com>
7387 * target.h (struct target_ops) <to_execution_direction>: Add
7389 (target_execution_direction): Add argument.
7390 * target.c (default_execution_direction): Add 'self' argument.
7391 * record-full.c (record_full_execution_direction): Add 'self'
7394 2014-02-19 Tom Tromey <tromey@redhat.com>
7396 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7398 (target_can_execute_reverse): Add argument.
7399 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7400 * record-full.c (record_full_can_execute_reverse): Add 'self'
7402 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7405 2014-02-19 Tom Tromey <tromey@redhat.com>
7407 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7408 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7410 (target_get_ada_task_ptid): Add argument.
7411 * target.c (update_current_target): Update.
7412 (default_get_ada_task_ptid): Add 'self' argument.
7413 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7414 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7415 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7417 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7419 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7421 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7423 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7424 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7427 2014-02-19 Tom Tromey <tromey@redhat.com>
7429 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7430 (target_goto_bookmark): Add argument.
7431 * target.c (dummy_goto_bookmark): Add 'self' argument.
7432 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7434 2014-02-19 Tom Tromey <tromey@redhat.com>
7436 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7437 (target_get_bookmark): Add argument.
7438 * target.c (dummy_get_bookmark): Add 'self' argument.
7439 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7441 2014-02-19 Tom Tromey <tromey@redhat.com>
7443 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7445 (target_make_corefile_notes): Add argument.
7446 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7447 * procfs.c (procfs_make_note_section): Add 'self' argument.
7448 (procfs_make_note_section): Add 'self' argument.
7449 (procfs_make_note_section): Add 'self' argument.
7450 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7452 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7453 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7454 * exec.c (exec_make_note_section): Add 'self' argument.
7455 (exec_make_note_section): Add 'self' argument.
7457 2014-02-19 Tom Tromey <tromey@redhat.com>
7459 * target.h (struct target_ops) <to_find_memory_regions>: Add
7461 (target_find_memory_regions): Add argument.
7462 * target.c (dummy_find_memory_regions): Add 'self' argument.
7463 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7464 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7465 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7466 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7467 * exec. (exec_do_find_memory_regions): New global.
7468 (exec_set_find_memory_regions): Rewrite.
7469 (exec_find_memory_regions): New function.
7470 (init_exec_ops): Use exec_find_memory_regions.
7472 2014-02-19 Tom Tromey <tromey@redhat.com>
7474 * target.h (struct target_ops) <to_supports_non_stop>: Add
7476 * target.c (find_default_supports_non_stop): Add argument.
7477 (target_supports_non_stop): Add argument.
7478 (find_default_supports_non_stop): Add 'self' argument.
7479 * remote.c (remote_supports_non_stop): Add 'self' argument.
7480 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7482 2014-02-19 Tom Tromey <tromey@redhat.com>
7484 * target.h (struct target_ops) <to_log_command>: Add argument.
7485 (target_log_command): Add argument.
7486 * serial.h (serial_log_command): Add 'self' argument.
7487 * serial.c (serial_log_command): Add 'self' argument.
7489 2014-02-19 Tom Tromey <tromey@redhat.com>
7491 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7492 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7494 (target_pid_to_exec_file): Add argument.
7495 * target.c (debug_to_pid_to_exec_file): Add argument.
7496 (update_current_target): Update.
7497 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7498 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7499 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7500 (linux_handle_extended_wait): Update.
7501 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7502 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7503 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7504 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7506 2014-02-19 Tom Tromey <tromey@redhat.com>
7508 * target.h (struct target_ops) <to_rcmd>: Add argument.
7509 (target_rcmd): Add argument.
7510 * target.c (debug_to_rcmd): Add argument.
7511 (update_current_target, do_monitor_command): Update.
7512 * remote.c (remote_rcmd): Add 'self' argument.
7513 * monitor.c (monitor_rcmd): Add 'self' argument.
7515 2014-02-19 Tom Tromey <tromey@redhat.com>
7517 * windows-nat.c (windows_stop): Add 'self' argument.
7518 * target.h (struct target_ops) <to_stop>: Add argument.
7519 * target.c (target_stop): Add argument.
7520 (debug_to_stop): Add argument.
7521 (update_current_target): Update.
7522 * remote.c (remote_stop): Add 'self' argument.
7523 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7524 (gdbsim_cntrl_c): Update.
7525 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7526 * procfs.c (procfs_stop): Add 'self' argument.
7527 * nto-procfs.c (procfs_stop): Add 'self' argument.
7528 * monitor.c (monitor_stop): Add 'self' argument.
7529 (monitor_open): Update.
7530 * linux-nat.c (linux_nat_stop): Add argument.
7531 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7532 * gnu-nat.c (gnu_stop): Add 'self' argument.
7533 * darwin-nat.c (darwin_stop): Add 'self' argument.
7535 2014-02-19 Tom Tromey <tromey@redhat.com>
7537 * target.h (struct target_ops) <to_thread_name>: Add argument.
7538 * target.c (target_thread_name): Add argument.
7539 (update_current_target): Update.
7540 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7542 2014-02-19 Tom Tromey <tromey@redhat.com>
7544 * target.h (struct target_ops) <to_extra_thread_info>: Add
7546 (target_extra_thread_info): Add argument.
7547 * target.c (update_current_target): Update.
7548 * remote.c (remote_threads_extra_info): Add 'self' argument.
7549 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7551 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7552 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7553 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7555 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7557 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7559 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7562 2014-02-19 Tom Tromey <tromey@redhat.com>
7564 * target.h (struct target_ops) <to_program_signals>: Add argument.
7565 * target.c (target_program_signals): Add argument.
7566 * remote.c (remote_program_signals): Add 'self' argument.
7568 2014-02-19 Tom Tromey <tromey@redhat.com>
7570 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7571 * target.c (target_pass_signals): Add argument.
7572 * remote.c (remote_pass_signals): Add 'self' argument.
7573 (remote_start_remote): Update.
7574 * procfs.c (procfs_pass_signals): Add 'self' argument.
7575 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7576 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7577 (linux_nat_create_inferior, linux_nat_attach): Update.
7579 2014-02-19 Tom Tromey <tromey@redhat.com>
7581 * windows-nat.c (windows_can_run): Add 'self' argument.
7582 * target.h (struct target_ops) <to_can_run>: Add argument.
7583 (target_can_run): Add argument.
7584 * target.c (debug_to_can_run): Add argument.
7585 (update_current_target): Update.
7586 * nto-procfs.c (procfs_can_run): Add 'self' argument.
7587 * inf-child.c (inf_child_can_run): Add 'self' argument.
7588 * go32-nat.c (go32_can_run): Add 'self' argument.
7590 2014-02-19 Tom Tromey <tromey@redhat.com>
7592 * target.h (struct target_ops) <to_has_exited>: Add argument.
7593 (target_has_exited): Add argument.
7594 * target.c (debug_to_has_exited): Add argument.
7595 (update_current_target): Update.
7597 2014-02-19 Tom Tromey <tromey@redhat.com>
7599 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
7601 (target_set_syscall_catchpoint): Add argument.
7602 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
7604 * target.c (update_current_target): Update.
7606 2014-02-19 Tom Tromey <tromey@redhat.com>
7608 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
7610 (target_remove_exec_catchpoint): Add argument.
7611 * target.c (debug_to_remove_exec_catchpoint): Add argument.
7612 (update_current_target): Update.
7613 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
7616 2014-02-19 Tom Tromey <tromey@redhat.com>
7618 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
7620 (target_insert_exec_catchpoint): Add argument.
7621 * target.c (debug_to_insert_exec_catchpoint): Add argument.
7622 (update_current_target): Update.
7623 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
7626 2014-02-19 Tom Tromey <tromey@redhat.com>
7628 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
7630 (target_remove_vfork_catchpoint): Add argument.
7631 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
7632 (update_current_target): Update.
7633 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
7636 2014-02-19 Tom Tromey <tromey@redhat.com>
7638 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
7640 (target_insert_vfork_catchpoint): Add argument.
7641 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
7642 (update_current_target): Update.
7643 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
7646 2014-02-19 Tom Tromey <tromey@redhat.com>
7648 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
7650 (target_remove_fork_catchpoint): Add argument.
7651 * target.c (debug_to_remove_fork_catchpoint): Add argument.
7652 (update_current_target): Update.
7653 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
7656 2014-02-19 Tom Tromey <tromey@redhat.com>
7658 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
7660 (target_insert_fork_catchpoint): Add argument.
7661 * target.c (debug_to_insert_fork_catchpoint): Add argument.
7662 (update_current_target): Update.
7663 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
7666 2014-02-19 Tom Tromey <tromey@redhat.com>
7668 * target.h (struct target_ops) <to_post_startup_inferior>: Add
7670 (target_post_startup_inferior): Add argument.
7671 * target.c (debug_to_post_startup_inferior): Add argument.
7672 (update_current_target): Update.
7673 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
7675 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
7677 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
7679 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
7681 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
7683 (super_post_startup_inferior): Likewise.
7684 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
7686 (super_post_startup_inferior): Likewise.
7687 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
7688 Add 'self' argument.
7689 (super_post_startup_inferior): Likewise.
7691 2014-02-19 Tom Tromey <tromey@redhat.com>
7693 * target.h (struct target_ops) <to_load>: Add argument.
7694 * target.c (target_load): Add argument.
7695 (debug_to_load): Add argument.
7696 (update_current_target): Update.
7697 * remote.c (remote_load): Add 'self' argument.
7698 * remote-sim.c (gdbsim_load): Add 'self' argument.
7699 * remote-mips.c (mips_load): Add 'self' argument.
7700 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
7701 * monitor.c (monitor_load): Add 'self' argument.
7702 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
7704 2014-02-19 Tom Tromey <tromey@redhat.com>
7706 * target.h (struct target_ops) <to_terminal_info>: Add argument.
7707 (target_terminal_info): Add argument.
7708 * target.c (debug_to_terminal_info): Add argument.
7709 (default_terminal_info): Likewise.
7710 * inflow.c (child_terminal_info): Add 'self' argument.
7711 * inferior.h (child_terminal_info): Add 'self' argument.
7712 * go32-nat.c (go32_terminal_info): Add 'self' argument.
7714 2014-02-19 Tom Tromey <tromey@redhat.com>
7716 * target.h (struct target_ops) <to_terminal_save_ours>: Add
7718 (target_terminal_save_ours): Add argument.
7719 * target.c (debug_to_terminal_save_ours): Add argument.
7720 (update_current_target): Update.
7721 * inflow.c (terminal_save_ours): Add 'self' argument.
7722 * inferior.h (terminal_save_ours): Add 'self' argument.
7724 2014-02-19 Tom Tromey <tromey@redhat.com>
7726 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
7727 (target_terminal_ours): Add argument.
7728 * target.c (debug_to_terminal_ours): Add argument.
7729 (update_current_target): Update.
7730 * remote.c (remote_terminal_ours): Add 'self' argument.
7731 (remote_close): Update.
7732 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
7733 * inflow.c (terminal_ours): Add 'self' argument.
7734 * inferior.h (terminal_ours): Add 'self' argument.
7735 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7737 2014-02-19 Pedro Alves <palves@redhat.com>
7738 Tom Tromey <tromey@redhat.com>
7740 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
7742 (target_terminal_ours_for_output): Add argument.
7743 * target.c (debug_to_terminal_ours_for_output): Add argument.
7744 (update_current_target): Update.
7745 * inflow.c (terminal_ours_for_output): Add 'self' argument.
7746 * inferior.h (terminal_ours_for_output): Add 'self' argument.
7747 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7749 2014-02-19 Tom Tromey <tromey@redhat.com>
7751 * target.h (struct target_ops) <to_terminal_inferior>: Add
7753 * target.c (target_terminal_inferior): Add argument.
7754 (update_current_target): Update.
7755 * remote.c (remote_terminal_inferior): Add 'self' argument.
7756 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
7757 * inflow.c (terminal_inferior): Add 'self' argument.
7758 * inferior.h (terminal_inferior): Add 'self' argument.
7759 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
7760 (go32_terminal_inferior): Add 'self' argument.
7762 2014-02-19 Tom Tromey <tromey@redhat.com>
7764 * target.h (struct target_ops) <to_terminal_init>: Add argument.
7765 (target_terminal_init): Add argument.
7766 * target.c (debug_to_terminal_init): Add argument.
7767 (update_current_target): Update.
7768 * inflow.c (terminal_init_inferior): Add 'self' argument.
7769 * inferior.h (terminal_init_inferior): Add 'self' argument.
7770 * go32-nat.c (go32_terminal_init): Add 'self' argument.
7771 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
7773 2014-02-19 Tom Tromey <tromey@redhat.com>
7775 * target.h (struct target_ops)
7776 <to_can_accel_watchpoint_condition>: Add argument.
7777 (target_can_accel_watchpoint_condition): Add argument.
7778 * target.c (debug_to_can_accel_watchpoint_condition): Add
7780 (update_current_target): Update.
7781 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
7784 2014-02-19 Tom Tromey <tromey@redhat.com>
7786 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7788 (target_region_ok_for_hw_watchpoint): Add argument.
7789 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
7790 (default_region_ok_for_hw_watchpoint): Add argument.
7791 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
7792 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
7794 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
7796 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
7798 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
7800 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
7802 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
7804 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
7805 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
7807 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
7808 Add 'self' argument.
7810 2014-02-19 Tom Tromey <tromey@redhat.com>
7812 * target.h (struct target_ops) <to_insert_watchpoint>: Add
7814 (target_insert_watchpoint): Add argument.
7815 * target.c (debug_to_insert_watchpoint): Add argument.
7816 (update_current_target): Update.
7817 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
7818 * remote.c (remote_insert_watchpoint): Add 'self' argument.
7819 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
7820 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
7821 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
7822 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
7824 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
7825 (procfs_insert_hw_watchpoint): Add 'self' argument.
7826 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
7828 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
7830 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
7832 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
7833 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
7835 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
7838 2014-02-19 Tom Tromey <tromey@redhat.com>
7840 * target.h (struct target_ops) <to_remove_watchpoint>: Add
7842 (target_remove_watchpoint): Add argument.
7843 * target.c (debug_to_remove_watchpoint): Add argument.
7844 (update_current_target): Update.
7845 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
7846 * remote.c (remote_remove_watchpoint): Add 'self' argument.
7847 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
7848 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
7849 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
7850 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
7852 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
7853 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
7855 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
7857 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
7859 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
7860 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
7862 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
7865 2014-02-19 Tom Tromey <tromey@redhat.com>
7867 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
7869 (target_remove_hw_breakpoint): Add argument.
7870 * target.c (debug_to_remove_hw_breakpoint): Add argument.
7871 (update_current_target): Update.
7872 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
7873 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
7875 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
7876 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
7878 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
7881 2014-02-19 Tom Tromey <tromey@redhat.com>
7883 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
7885 (target_insert_hw_breakpoint): Add argument.
7886 * target.c (debug_to_insert_hw_breakpoint): Add argument.
7887 (update_current_target): Update.
7888 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
7889 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
7891 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
7892 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
7893 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
7895 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
7898 2014-02-19 Tom Tromey <tromey@redhat.com>
7900 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
7902 (target_can_use_hardware_watchpoint): Add argument.
7903 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
7904 (update_current_target): Update.
7905 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
7907 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
7909 * remote.c (remote_check_watch_resources): Add 'self' argument.
7910 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
7911 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
7913 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
7914 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
7916 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
7918 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
7920 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
7922 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
7924 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
7926 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
7927 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
7929 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
7932 2014-02-19 Tom Tromey <tromey@redhat.com>
7934 * target.h (struct target_ops) <to_post_attach>: Add argument.
7935 (target_post_attach): Add argument.
7936 * target.c (debug_to_post_attach): Add argument.
7937 (update_current_target): Update.
7938 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
7939 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
7940 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
7941 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
7942 * inf-child.c (inf_child_post_attach): Add 'self' argument.
7944 2014-02-19 Tom Tromey <tromey@redhat.com>
7946 * windows-nat.c (windows_close): Add 'self' argument.
7947 * tracepoint.c (tfile_close): Add 'self' argument.
7948 * target.h (struct target_ops) <to_close>: Add argument.
7949 * target.c (target_close): Add argument.
7950 (update_current_target): Update.
7951 * remote.c (remote_close): Add 'self' argument.
7952 * remote-sim.c (gdbsim_close): Add 'self' argument.
7953 * remote-mips.c (mips_close): Add 'self' argument.
7954 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
7955 * record-full.c (record_full_close): Add 'self' argument.
7956 * record-btrace.c (record_btrace_close): Add 'self' argument.
7957 * monitor.h (monitor_close): Add 'self' argument.
7958 * monitor.c (monitor_close): Add 'self' argument.
7959 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
7960 * linux-nat.c (linux_nat_close): Add argument.
7961 * go32-nat.c (go32_close): Add 'self' argument.
7962 * exec.c (exec_close_1): Add 'self' argument.
7963 * ctf.c (ctf_close): Add 'self' argument.
7964 * corelow.c (core_close): Add 'self' argument.
7965 (core_close_cleanup): Update.
7966 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
7967 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
7969 2014-02-19 Tom Tromey <tromey@redhat.com>
7971 * remote.c (remote_load): New function.
7972 (init_remote_ops): Use it.
7974 2014-02-19 Tom Tromey <tromey@redhat.com>
7976 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
7978 * common/linux-btrace.h (linux_supports_btrace): Update.
7979 * remote.c (remote_supports_btrace): Add "self" argument.
7980 * target-delegates.c: Rebuild.
7981 * target.c (target_supports_btrace): Remove.
7982 * target.h (struct target_ops) <to_supports_btrace>: Add
7983 target_ops argument.
7984 (target_supports_btrace): New define.
7986 2014-02-19 Tom Tromey <tromey@redhat.com>
7988 * record-full.c (record_full_beneath_to_resume_ops)
7989 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
7990 (record_full_beneath_to_wait)
7991 (record_full_beneath_to_store_registers_ops)
7992 (record_full_beneath_to_store_registers)
7993 (record_full_beneath_to_xfer_partial_ops)
7994 (record_full_beneath_to_xfer_partial)
7995 (record_full_beneath_to_insert_breakpoint_ops)
7996 (record_full_beneath_to_insert_breakpoint)
7997 (record_full_beneath_to_remove_breakpoint_ops)
7998 (record_full_beneath_to_remove_breakpoint)
7999 (record_full_beneath_to_stopped_by_watchpoint)
8000 (record_full_beneath_to_stopped_data_address)
8001 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
8002 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
8003 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
8004 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
8005 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
8006 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
8007 (tmp_to_stopped_data_address, tmp_to_async): Remove.
8008 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
8009 (record_full_resume, record_full_wait_1)
8010 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
8011 (record_full_store_registers, record_full_xfer_partial)
8012 (record_full_insert_breakpoint, record_full_remove_breakpoint)
8013 (record_full_async, record_full_core_xfer_partial): Use target
8015 * target-delegates.c: Rebuild.
8016 * target.c (current_xfer_partial): Remove.
8017 (update_current_target): Do not INHERIT or de_fault
8018 to_insert_breakpoint, to_remove_breakpoint,
8019 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
8020 to_is_async_p, to_async. Do not set to_xfer_partial field.
8021 (default_xfer_partial): Simplify.
8022 (current_xfer_partial): Remove.
8023 (target_wait, target_resume): Simplify.
8024 (find_default_can_async_p, find_default_is_async_p): Update.
8025 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
8026 to_xfer_partial, to_stopped_by_watchpoint,
8027 to_stopped_data_address.
8028 (target_store_registers): Simplify.
8029 (forward_target_remove_breakpoint)
8030 (forward_target_insert_breakpoint): Remove.
8031 (target_remove_breakpoint, target_insert_breakpoint)
8032 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
8033 * target.h (struct target_ops) <to_resume, to_wait,
8034 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
8035 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
8036 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
8038 (forward_target_remove_breakpoint)
8039 (forward_target_insert_breakpoint): Remove.
8040 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
8042 (record_btrace_insert_breakpoint): Delegate directly.
8044 2014-02-19 Tom Tromey <tromey@redhat.com>
8047 * target-delegates.c: New file.
8048 * target.c: Include target-delegates.c.
8049 (init_dummy_target): Call install_dummy_methods.
8050 (complete_target_initialization): Call install_delegators.
8051 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
8052 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
8053 * make-target-delegates: New file.
8055 2014-02-19 Tom Tromey <tromey@redhat.com>
8057 * record.c (find_record_target): Use find_target_at.
8058 * target.c (find_target_at): New function.
8059 * target.h (find_target_at): Declare.
8061 2014-02-19 Tom Tromey <tromey@redhat.com>
8063 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
8065 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
8067 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
8068 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
8070 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
8072 * linux-nat.c (save_sigtrap): Update.
8073 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
8074 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
8075 (linux_nat_close): Update.
8076 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
8078 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
8080 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
8081 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
8082 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
8083 (tmp_to_async): Add 'ops' argument.
8084 (record_full_stopped_by_watchpoint, record_full_async)
8085 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
8087 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
8088 (m32r_stopped_by_watchpoint): Add 'ops' argument.
8089 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
8090 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
8091 (remote_is_async_p, remote_async): Add 'ops' argument.
8092 (remote_stopped_data_address): Update.
8093 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
8094 * target.c (update_current_target)
8095 (find_default_can_async_p, find_default_is_async_p): Update.
8096 (init_dummy_target): Update.
8097 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
8098 * target.h (struct target_ops) <to_stopped_by_watchpoint,
8099 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
8100 (target_can_async_p, target_is_async_p, target_async)
8101 (target_stopped_by_watchpoint): Update.
8103 2014-02-19 Yao Qi <yao@codesourcery.com>
8106 * gdbarch.sh: Remove startup_gdbarch.
8107 * gdbarch.c: Regenerated.
8108 * gdbarch.h: Likewise.
8110 2014-02-17 Kevin Buettner <kevinb@redhat.com>
8112 * rl78-tdep.c (rl78_g10_register_name): New function.
8113 (rl78_return_value): Add g10 support.
8114 (rl78_gdbarch_init): Register rl78_g10_register_name for the
8117 2014-02-17 Doug Evans <xdje42@gmail.com>
8119 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
8120 (SUBDIR_GUILE_SRCS): Ditto.
8121 (scm-gsmob.o): Ditto.
8123 2014-02-17 Yao Qi <yao@codesourcery.com>
8125 * gnu-nat.c (ILL_RPC): Declare defined function.
8127 2014-02-17 Yao Qi <yao@codesourcery.com>
8129 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
8130 mach_msg_type_number_t.
8131 (gnu_write_inferior): Likewise.
8133 2014-02-17 Yao Qi <yao@codesourcery.com>
8135 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
8137 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
8138 (inf_validate_procs, inf_signal): Likewise.
8139 (S_exception_raise_request): Likewise.
8140 (do_mach_notify_dead_name): Likewise.
8141 (steal_exc_port): Likewise.
8142 (gnu_read_inferior): Change 'copy_count''s type to
8143 mach_msg_type_number_t.
8144 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
8147 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
8149 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
8150 flag. Adjust all users; in particular...
8151 (gnu_wait): ..., don't decrement its value in here...
8152 (gnu_create_inferior): ..., and instead set the flag in here,
8153 around the startup_inferior call, and call that one with
8154 START_INFERIOR_TRAPS_EXPECTED.
8156 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8157 (ILL_RPC): ... new macro.
8158 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8159 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8160 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8161 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8162 functions with ILL_RPC macro.
8163 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8164 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8165 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8166 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8167 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8168 (S_proc_getlogin_reply, S_proc_getsid_reply)
8169 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8170 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8171 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8172 (S_proc_getnports_reply, S_proc_is_important_reply)
8173 (S_proc_get_code_reply): New stub functions, generated with
8176 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8177 collected the type check structures.
8179 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8181 2014-02-14 Doug Evans <dje@google.com>
8183 * target.c (target_write_partial): Fix result type.
8185 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8187 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8188 the proper offsets to access fpregset_t.
8190 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8192 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8193 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8194 * h8300-tdep.c (setmachinelist): Remove global.
8195 * hppa-tdep.c (hppa_sigtramp): Remove global.
8196 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8197 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8198 * ravenscar-thread.c (update_target_observer): Remove global.
8199 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8201 2014-02-12 Tom Tromey <tromey@redhat.com>
8203 * common/rsp-low.c: Update comments.
8204 * common/rsp-low.h: Update comments.
8206 2014-02-12 Tom Tromey <tromey@redhat.com>
8208 * common/rsp-low.c (convert_ascii_to_int): Remove.
8209 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8211 2014-02-12 Tom Tromey <tromey@redhat.com>
8213 * common/rsp-low.h (unhexify): Don't declare.
8214 * common/rsp-low.c (unhexify): Remove.
8216 2014-02-12 Tom Tromey <tromey@redhat.com>
8218 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8219 * common/rsp-low.c (convert_int_to_ascii): Remove.
8221 2014-02-12 Tom Tromey <tromey@redhat.com>
8223 * common/rsp-low.h (hexify): Don't declare.
8224 * common/rsp-low.c (hexify): Remove.
8226 2014-02-12 Tom Tromey <tromey@redhat.com>
8228 * common/rsp-low.c (hexify): Never take strlen of argument.
8230 2014-02-12 Tom Tromey <tromey@redhat.com>
8232 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8233 * remote.c (extended_remote_run, remote_rcmd)
8234 (remote_download_trace_state_variable, remote_save_trace_data)
8235 (remote_set_trace_notes): Update.
8236 * tracepoint.c (encode_source_string, tfile_write_status)
8237 (tfile_write_uploaded_tsv): Update.
8239 2014-02-12 Tom Tromey <tromey@redhat.com>
8241 * tracepoint.c: Include rsp-low.h.
8242 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8243 * remote.c: Include rsp-low.h.
8244 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8245 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8246 (remote_unescape_input): Move to common/rsp-low.c.
8247 * common/rsp-low.h: New file.
8248 * common/rsp-low.c: New file.
8249 * Makefile.in (SFILES): Add common/rsp-low.c.
8250 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8251 (COMMON_OBS): Add rsp-low.o.
8252 (rsp-low.o): New target.
8254 2014-02-12 Tom Tromey <tromey@redhat.com>
8256 * utils.h: Include print-utils.h.
8257 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8258 (int_string, core_addr_to_string, core_addr_to_string_nz)
8259 (hex_string, hex_string_custom): Don't declare.
8260 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8261 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8262 (hex_string_custom, int_string, core_addr_to_string)
8263 (core_addr_to_string_nz, host_address_to_string): Move to
8264 common/print-utils.c.
8265 * common/print-utils.h: New file.
8266 * common/print-utils.c: New file
8267 * Makefile.in (SFILES): Add common/print-utils.c.
8268 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8269 (COMMON_OBS): Add print-utils.o.
8270 (print-utils.o): New target.
8272 2014-02-12 Tom Tromey <tromey@redhat.com>
8274 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8276 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8278 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8280 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8282 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8283 if a PT_IO ptrace request returns sucessfully but indicates that 0
8284 bytes were transferred.
8286 2014-02-12 Pedro Alves <palves@redhat.com>
8287 Kevin Buettner <kevinb@redhat.com>
8289 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8290 TYPE_INSTANCE_FLAG_CODE_SPACE.
8292 2014-02-12 Pedro Alves <palves@redhat.com>
8294 * h8300-tdep.c (pseudo_from_raw_register)
8295 (raw_from_pseudo_register): New functions.
8296 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8299 2014-02-12 Pedro Alves <palves@redhat.com>
8301 * h8300-tdep.c (h8300_register_sim_regno): New function.
8302 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8303 gdbarch_register_sim_regno hook.
8305 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8307 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8309 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8311 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8313 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8315 * obsd-tdep.h (obsd_init_abi): New prototype.
8316 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8317 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8318 (obsd_init_abi): New functions.
8319 * i386obsd-tdep.c: Include "obsd-tdep.h".
8320 (i386obsd_init_abi): Call obsd_init_abi.
8321 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8322 (amd64obsd_init_abi): Call obsd_init_abi.
8323 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8324 obsd-tdep.c to gdb_target_obs.
8326 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8328 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8329 double float arguments to 16-byte in the argument slots.
8331 2014-02-11 Doug Evans <xdje42@gmail.com>
8333 * configure.ac: Don't crash if pkg-config is not found and guile
8334 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8336 * configure: Regenerate.
8338 2014-02-11 Yao Qi <yao@codesourcery.com>
8340 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8341 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8342 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8343 * gnu-nat.c (gnu_xfer_memory): Likewise.
8344 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8345 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8346 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8347 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8349 2014-02-11 Yao Qi <yao@codesourcery.com>
8351 * target.h (enum target_xfer_error): Rename to ...
8352 (enum target_xfer_status): ... it. New. All users updated.
8353 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8355 (TARGET_XFER_STATUS_ERROR_P): New macro.
8356 (target_xfer_error_to_string): Remove declaration.
8357 (target_xfer_status_to_string): Declare.
8358 (target_xfer_partial_ftype): Adjust it.
8359 (struct target_ops) <to_xfer_partial>: Return
8360 target_xfer_status. Add argument xfered_len. Update
8362 * target.c (target_xfer_error_to_string): Rename to ...
8363 (target_xfer_status_to_string): ... it. New. All callers
8365 (target_read_live_memory): Likewise. Call target_xfer_partial
8366 instead of target_read.
8367 (memory_xfer_live_readonly_partial): Return
8368 target_xfer_status. Add argument xfered_len.
8369 (raw_memory_xfer_partial): Likewise.
8370 (memory_xfer_partial_1): Likewise.
8371 (memory_xfer_partial): Likewise.
8372 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8373 properly. Update debug message.
8374 (default_xfer_partial, current_xfer_partial): Likewise.
8375 (target_write_partial): Likewise.
8376 (target_read_partial): Likewise. All callers updated.
8377 (read_whatever_is_readable): Likewise.
8378 (target_write_with_progress): Likewise.
8379 (target_read_alloc_1): Likewise.
8381 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8382 * auxv.c (procfs_xfer_auxv): Likewise.
8383 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8384 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8385 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8386 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8387 * corefile.c (read_memory): Adjust.
8388 * corelow.c (core_xfer_partial): Likewise.
8389 * ctf.c (ctf_xfer_partial): Likewise.
8390 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8392 (darwin_xfer_partial): Likewise.
8393 * exec.c (section_table_xfer_memory_partial): Likewise. All
8395 (exec_xfer_partial): Likewise.
8396 * exec.h (section_table_xfer_memory_partial): Update
8398 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8400 (gnu_xfer_partial): Likewise.
8401 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8402 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8403 (ia64_hpux_xfer_solib_got): Likewise.
8404 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8405 type of 'partial_len' to ULONGEST.
8406 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8407 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8408 (linux_nat_xfer_partial): Likewise.
8409 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8410 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8411 * monitor.c (monitor_xfer_memory): Likewise.
8412 (monitor_xfer_partial): Likewise.
8413 * procfs.c (procfs_xfer_partial): Likewise.
8414 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8415 * record-full.c (record_full_xfer_partial): Likewise.
8416 (record_full_core_xfer_partial): Likewise.
8417 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8418 (gdbsim_xfer_partial): Likewise.
8419 * remote.c (remote_write_bytes_aux): Likewise. All callers
8421 (remote_write_bytes, remote_read_bytes): Likewise. All
8423 (remote_flash_erase): Likewise. All callers updated.
8424 (remote_write_qxfer): Likewise. All callers updated.
8425 (remote_read_qxfer): Likewise. All callers updated.
8426 (remote_xfer_partial): Likewise.
8427 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8428 (rs6000_xfer_shared_libraries): Likewise.
8429 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8430 (sol_thread_xfer_partial): Likewise.
8431 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8432 (sparc_xfer_partial): Likewise.
8433 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8435 (spu_xfer_partial): Likewise.
8436 * spu-multiarch.c (spu_xfer_partial): Likewise.
8437 * tracepoint.c (tfile_xfer_partial): Likewise.
8438 * windows-nat.c (windows_xfer_memory): Likewise.
8439 (windows_xfer_shared_libraries): Likewise.
8440 (windows_xfer_partial): Likewise.
8441 * valprint.c: Replace 'target_xfer_error' with
8442 'target_xfer_status' in comments.
8444 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8446 Checked in by Joel Brobecker <brobecker@adacore.com>.
8447 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8449 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8451 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8452 function parameters.
8454 2014-02-10 Will Newton <will.newton@linaro.org>
8456 * elfread.c (elf_rel_plt_read): Look for a .got section if
8457 looking up .got.plt fails.
8458 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8459 on address passed to elf_gnu_ifunc_record_cache.
8460 (elf_gnu_ifunc_resolve_addr): Likewise.
8461 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8463 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8465 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8466 (X_RETTURN): New macro.
8467 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8469 * sparc64-tdep.c (sparc64_init_abi): Hook
8470 sparc_in_function_epilogue_p.
8472 2014-02-10 Gary Benson <gbenson@redhat.com>
8474 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8475 Rename name_matcher to symbol_matcher.
8477 2014-02-10 Gary Benson <gbenson@redhat.com>
8479 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8480 Use expand_symtabs_file_matcher_ftype and
8481 expand_symtabs_symbol_matcher_ftype.
8483 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8485 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8486 (struct ada_symbol_cache): New.
8487 (ada_free_symbol_cache): Forward declare.
8488 (struct ada_pspace_data): New.
8489 (ada_pspace_data_handle): New static global.
8490 (get_ada_pspace_data, ada_pspace_data_cleanup)
8491 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8492 (cache_space, cache): Delete, now folded inside struct
8494 (ada_get_symbol_cache): New function.
8495 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8497 (_initialize_ada_language): Remove initialization of cache_space.
8498 Move call to observer_attach_inferior_exit up, grouping it
8499 with the other observer registrations inside this function.
8500 Rename command to be more general. Add call to
8501 register_program_space_data_with_cleanup.
8503 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8505 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8506 ada_new_objfile_observer.
8507 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8508 (_initialize_tasks): Update uses of ada_new_objfile_observer
8509 and ada_tasks_normal_stop_observer.
8511 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8513 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8514 returned by the 'Length attribute to integer.
8516 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8518 * ada-lang.c (_initialize_ada_language): Initialize
8519 cache_space obstack.
8521 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8523 * ada-lang.c (HASH_SIZE): New macro.
8524 (struct cache_entry): New type.
8525 (cache_space, cache): New static globals.
8526 (ada_clear_symbol_cache, find_entry): New functions.
8527 (lookup_cached_symbol, cache_symbol): Implement.
8528 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8529 (_initialize_ada_language): Attach ada_new_objfile_observer
8530 and ada_free_objfile_observer.
8532 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8534 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8535 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8536 struct block * parameter.
8537 (ada_lookup_symbol_list_worker): Constify local variable "block".
8538 Remove cast which is no longer necessary.
8540 2014-02-10 Doug Evans <xdje42@gmail.com>
8542 Add Guile as an extension language.
8543 * NEWS: Mention Guile scripting.
8544 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8545 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8546 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8547 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8548 (CLIBS): Add GUILE_LIBS.
8549 (install-guile): New rule.
8550 (guile.o): New rule.
8551 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8552 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8553 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8554 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8555 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8556 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8557 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8558 * configure.ac: New option --with-guile.
8559 * configure: Regenerate.
8560 * config.in: Regenerate.
8561 * auto-load.c: Remove #include "python/python.h". Add #include
8562 "gdb/section-scripts.h".
8563 (source_section_scripts): Handle Guile scripts.
8564 (_initialize_auto_load): Add name of Guile objfile script to
8565 scripts-directory help text.
8566 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8567 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8568 (struct breakpoint): New member scm_bp_object.
8569 * defs.h (enum command_control_type): New value guile_control.
8570 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8572 (show_user): Update comment.
8573 (_initialize_cli_cmds): Update help text for "show user". Update help
8574 text for max-user-call-depth.
8575 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8577 (multi_line_command_p): Add guile_control.
8578 (print_command_lines): Handle guile_control.
8579 (execute_control_command, recurse_read_control_structure): Ditto.
8580 (process_next_line): Recognize "guile" commands.
8581 * disasm.c (gdb_disassemble_info): Make non-static.
8582 * disasm.h: #include "dis-asm.h".
8583 (struct gdbarch): Add forward decl.
8584 (gdb_disassemble_info): Declare.
8585 * extension.c: #include "guile/guile.h".
8586 (extension_languages): Add guile.
8587 (get_ext_lang_defn): Handle EXT_LANG_GDB.
8588 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
8589 * gdbtypes.c (get_unsigned_type_max): New function.
8590 (get_signed_type_minmax): New function.
8591 * gdbtypes.h (get_unsigned_type_max): Declare.
8592 (get_signed_type_minmax): Declare.
8593 * guile/README: New file.
8594 * guile/guile-internal.h: New file.
8595 * guile/guile.c: New file.
8596 * guile/guile.h: New file.
8597 * guile/scm-arch.c: New file.
8598 * guile/scm-auto-load.c: New file.
8599 * guile/scm-block.c: New file.
8600 * guile/scm-breakpoint.c: New file.
8601 * guile/scm-disasm.c: New file.
8602 * guile/scm-exception.c: New file.
8603 * guile/scm-frame.c: New file.
8604 * guile/scm-gsmob.c: New file.
8605 * guile/scm-iterator.c: New file.
8606 * guile/scm-lazy-string.c: New file.
8607 * guile/scm-math.c: New file.
8608 * guile/scm-objfile.c: New file.
8609 * guile/scm-ports.c: New file.
8610 * guile/scm-pretty-print.c: New file.
8611 * guile/scm-safe-call.c: New file.
8612 * guile/scm-string.c: New file.
8613 * guile/scm-symbol.c: New file.
8614 * guile/scm-symtab.c: New file.
8615 * guile/scm-type.c: New file.
8616 * guile/scm-utils.c: New file.
8617 * guile/scm-value.c: New file.
8618 * guile/lib/gdb.scm: New file.
8619 * guile/lib/gdb/boot.scm: New file.
8620 * guile/lib/gdb/experimental.scm: New file.
8621 * guile/lib/gdb/init.scm: New file.
8622 * guile/lib/gdb/iterator.scm: New file.
8623 * guile/lib/gdb/printing.scm: New file.
8624 * guile/lib/gdb/types.scm: New file.
8625 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
8626 (VPATH): Add $(GUILE_SRCDIR).
8627 (GUILE_DIR): New variable.
8628 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
8629 (all): Add stamp-guile dependency.
8630 (stamp-guile): New rule.
8631 (clean-guile, install-guile, uninstall-guile): New rules.
8632 (install-only): Add install-guile dependency.
8633 (uninstall): Add uninstall-guile dependency.
8634 (clean): Add clean-guile dependency.
8636 2014-02-09 Doug Evans <xdje42@gmail.com>
8638 Revert this patch (which I approved, mea culpa).
8640 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8642 * Makefile.in (all-lib): Remove.
8643 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8645 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8647 Fix Python stack corruption.
8648 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
8651 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8653 * Makefile.in (all-lib): Remove.
8654 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8656 2014-02-07 Doug Evans <dje@google.com>
8658 * extension-priv.h (extension_language_script_ops): Add comment.
8659 (extension_language_ops): Add comment.
8660 (active_ext_lang_state): Fix typo in comment.
8662 2014-02-07 Pedro Alves <palves@redhat.com>
8664 PR breakpoints/16292
8665 * infrun.c (handle_signal_stop) <signal arrives while stepping
8666 over a breakpoint>: Switch back to the stepping thread.
8668 2014-02-07 Yao Qi <yao@codesourcery.com>
8670 * target.c (target_xfer_partial): Return zero if LEN is zero.
8672 2014-02-07 Yao Qi <yao@codesourcery.com>
8674 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
8675 (ld_so_xfer_auxv): Likewise.
8676 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8677 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8678 * corelow.c (core_xfer_partial): Likewise.
8679 * ctf.c (ctf_xfer_partial): Likewise.
8680 * darwin-nat.c (darwin_read_dyld_info): Likewise.
8681 (darwin_xfer_partial): Likewise.
8682 * exec.c (exec_xfer_partial): Likewise.
8683 * gnu-nat.c (gnu_xfer_partial): Likewise.
8684 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
8685 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8686 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8687 * linux-nat.c (linux_xfer_siginfo): Likewise.
8688 (linux_proc_xfer_spu): Likewise.
8689 * procfs.c (procfs_xfer_partial): Likewise.
8690 * record-full.c (record_full_xfer_partial): Likewise.
8691 (record_full_core_xfer_partial): Likewise.
8692 * remote-sim.c (gdbsim_xfer_partial): Likewise.
8693 * remote.c (remote_write_qxfer): Likewise.
8694 (remote_write_qxfer, remote_read_qxfer): Likewise.
8695 (remote_xfer_partial): Likewise.
8696 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8697 (rs6000_xfer_shared_libraries): Likewise.
8698 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8699 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8700 (spu_xfer_partial): Likewise.
8701 * target.c (memory_xfer_partial_1): Likewise.
8702 * tracepoint.c (tfile_xfer_partial): Likewise.
8703 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
8704 (windows_xfer_partial): Likewise.
8706 2014-02-07 Yao Qi <yao@codesourcery.com>
8708 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
8710 (core_xfer_shared_libraries_aix): Likewise.
8711 * gdbarch.c, gdbarch.h: Regenerated.
8712 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
8713 ULONGEST. Change 'len_avail' type to ULONGEST.
8714 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8715 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8717 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
8719 2014-02-07 Yao Qi <yao@codesourcery.com>
8721 * corefile.c (memory_error): Get 'exception' from ERR and pass
8722 'exception' to throw_error.
8724 2014-02-06 Doug Evans <xdje42@gmail.com>
8726 * configure.ac (libpython checking): Remove all but python.o from
8727 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
8728 * configure: Regenerate.
8730 * Makefile.in (SFILES): Add extension.c.
8731 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
8732 (COMMON_OBS): Add extension.o.
8733 * extension.h: New file.
8734 * extension-priv.h: New file.
8735 * extension.c: New file.
8737 * python/python-internal.h: #include "extension.h".
8738 (gdbpy_auto_load_enabled): Declare.
8739 (gdbpy_apply_val_pretty_printer): Declare.
8740 (gdbpy_apply_frame_filter): Declare.
8741 (gdbpy_preserve_values): Declare.
8742 (gdbpy_breakpoint_cond_says_stop): Declare.
8743 (gdbpy_breakpoint_has_cond): Declare.
8744 (void source_python_script_for_objfile): Delete.
8745 * python/python.c: #include "extension-priv.h".
8746 Delete inclusion of "observer.h".
8747 (extension_language_python): Moved here and renamed from
8748 script_language_python in py-auto-load.c.
8749 Redefined to be of type extension_language_defn.
8750 (python_extension_script_ops): New global.
8751 (python_extension_ops): New global.
8752 (struct python_env): New member previous_active.
8753 (restore_python_env): Call restore_active_ext_lang.
8754 (ensure_python_env): Call set_active_ext_lang.
8755 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
8757 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
8759 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
8761 (gdbpy_eval_from_control_command): Renamed from
8762 eval_python_from_control_command, made static. New arg extlang.
8763 (gdbpy_source_script) Renamed from source_python_script, made static.
8765 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
8766 result to int. New arg extlang.
8767 (gdbpy_source_objfile_script): Renamed from
8768 source_python_script_for_objfile, made static. New arg extlang.
8769 (gdbpy_start_type_printers): Renamed from start_type_printers, made
8770 static. New args extlang, extlang_printers. Change result type to
8772 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
8773 static. New arg extlang. Rename arg printers to extlang_printers
8774 and change type to ext_lang_type_printers *.
8775 (gdbpy_free_type_printers): Renamed from free_type_printers, made
8776 static. Replace argument arg with extlang, extlang_printers.
8777 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
8778 (!HAVE_PYTHON, source_python_script): Delete.
8779 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
8780 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
8781 (!HAVE_PYTHON, start_type_printers): Delete.
8782 (!HAVE_PYTHON, apply_type_printers): Delete.
8783 (!HAVE_PYTHON, free_type_printers): Delete.
8784 (_initialize_python): Delete call to observer_attach_before_prompt.
8785 (finalize_python): Set/restore active extension language.
8786 (gdbpy_finish_initialization) Renamed from
8787 finish_python_initialization, made static. New arg extlang.
8788 (gdbpy_initialized): New function.
8789 * python/python.h: #include "extension.h". Delete #include
8790 "value.h", "mi/mi-cmds.h".
8791 (extension_language_python): Declare.
8792 (GDBPY_AUTO_FILE_NAME): Delete.
8793 (enum py_bt_status): Moved to extension.h and renamed to
8795 (enum frame_filter_flags): Moved to extension.h.
8796 (enum py_frame_args): Moved to extension.h and renamed to
8797 ext_lang_frame_args.
8798 (finish_python_initialization): Delete.
8799 (eval_python_from_control_command): Delete.
8800 (source_python_script): Delete.
8801 (apply_val_pretty_printer): Delete.
8802 (apply_frame_filter): Delete.
8803 (preserve_python_values): Delete.
8804 (gdbpy_script_language_defn): Delete.
8805 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
8806 (start_type_printers, apply_type_printers, free_type_printers): Delete.
8808 * auto-load.c: #include "extension.h".
8809 (GDB_AUTO_FILE_NAME): Delete.
8810 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
8811 (script_language_gdb): Delete, moved to extension.c and renamed to
8812 extension_language_gdb.
8813 (source_gdb_script_for_objfile): Delete.
8814 (auto_load_pspace_info): New member unsupported_script_warning_printed.
8815 (loaded_script): Change type of language member to
8816 struct extension_language_defn *.
8817 (init_loaded_scripts_info): Initialize
8818 unsupported_script_warning_printed.
8819 (maybe_add_script): Make static. Change type of language arg to
8820 struct extension_language_defn *.
8821 (clear_section_scripts): Reset unsupported_script_warning_printed.
8822 (auto_load_objfile_script_1): Rewrite to use extension language API.
8823 (auto_load_objfile_script): Make public. Remove support-compiled-in
8824 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
8825 (source_section_scripts): Rewrite to use extension language API.
8826 (load_auto_scripts_for_objfile): Rewrite to use
8827 auto_load_scripts_for_objfile.
8828 (collect_matching_scripts_data): Change type of language member to
8829 struct extension_language_defn *.
8830 (auto_load_info_scripts): Change type of language arg to
8831 struct extension_language_defn *.
8832 (unsupported_script_warning_print): New function.
8833 (script_not_found_warning_print): Make static.
8834 (_initialize_auto_load): Rewrite construction of scripts-directory
8836 * auto-load.h (struct objfile): Add forward decl.
8837 (struct script_language): Delete.
8838 (struct auto_load_pspace_info): Add forward decl.
8839 (struct extension_language_defn): Add forward decl.
8840 (maybe_add_script): Delete.
8841 (auto_load_objfile_script): Declare.
8842 (script_not_found_warning_print): Delete.
8843 (auto_load_info_scripts): Update prototype.
8844 (auto_load_gdb_scripts_enabled): Declare.
8845 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
8846 auto_load_python_scripts_enabled and made public.
8847 (script_language_python): Delete, moved to python.c.
8848 (gdbpy_script_language_defn): Delete.
8849 (info_auto_load_python_scripts): Update to use
8850 extension_language_python.
8852 * breakpoint.c (condition_command): Replace call to
8853 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
8854 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
8855 with call to breakpoint_ext_lang_cond_says_stop.
8856 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
8857 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
8858 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
8859 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
8861 (local_setattro): Print name of extension language with existing
8864 * valprint.c (val_print, value_print): Update to call
8865 apply_ext_lang_val_pretty_printer.
8866 * cp-valprint.c (cp_print_value): Update call to
8867 apply_ext_lang_val_pretty_printer.
8868 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
8869 (gdbpy_apply_val_pretty_printer): Renamed from
8870 apply_val_pretty_printer. New arg extlang.
8871 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
8873 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
8874 extension language API.
8875 * cli/cli-script.c (execute_control_command): Update to call
8876 eval_ext_lang_from_control_command.
8878 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
8879 enum ext_lang_bt_status values. Update call to
8880 apply_ext_lang_frame_filter.
8881 (mi_cmd_stack_list_locals): Ditto.
8882 (mi_cmd_stack_list_args): Ditto.
8883 (mi_cmd_stack_list_variables): Ditto.
8884 * mi/mi-main.c: Delete #include "python/python-internal.h".
8885 Add #include "extension.h".
8886 (mi_cmd_list_features): Replace reference to python internal variable
8887 gdb_python_initialized with call to ext_lang_initialized_p.
8889 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
8890 Update to use enum ext_lang_frame_args. Update to call
8891 apply_ext_lang_frame_filter.
8892 * python/py-framefilter.c (extract_sym): Update to use enum
8894 (extract_value, py_print_type, py_print_value): Ditto.
8895 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
8896 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
8897 (py_print_frame): Ditto.
8898 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
8899 New arg extlang. Update to use enum ext_lang_bt_status.
8901 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
8902 finish_python_initialization. Replace with call to
8903 finish_ext_lang_initialization.
8905 * typeprint.c (do_free_global_table): Update to call
8906 free_ext_lang_type_printers.
8907 (create_global_typedef_table): Update to call
8908 start_ext_lang_type_printers.
8909 (find_global_typedef): Update to call apply_ext_lang_type_printers.
8910 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
8911 (type_print_options): Change type of global_printers from "void *"
8912 to "struct ext_lang_type_printers *".
8914 * value.c (preserve_values): Update to call preserve_ext_lang_values.
8915 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
8916 (gdbpy_preserve_values): Renamed from preserve_python_values.
8918 (!HAVE_PYTHON, preserve_python_values): Delete.
8920 * utils.c (quit_flag): Delete, moved to extension.c.
8921 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
8924 * eval.c: Delete #include "python/python.h".
8925 * main.c: Delete #include "python/python.h".
8927 * defs.h: Update comment.
8929 2014-02-06 Joel Brobecker <brobecker@adacore.com>
8933 2014-02-05 Mark Kettenis <kettenis@gnu.org>
8935 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
8938 2014-02-05 Yao Qi <yao@codesourcery.com>
8940 * remote.c (remote_pass_signals): Remove local 'buf' and use
8942 (remote_program_signals): Likewise.
8944 2014-02-05 Yao Qi <yao@codesourcery.com>
8946 * ctf.c: Include "inferior.h" and "gdbthread.h".
8947 (CTF_PID): A new macro.
8948 (ctf_open): Call inferior_appeared and add_thread_silent.
8949 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
8950 (ctf_thread_alive): New function.
8951 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
8953 2014-02-05 Yao Qi <yao@codesourcery.com>
8957 2013-05-24 Yao Qi <yao@codesourcery.com>
8959 * tracepoint.c (TFILE_PID): Remove.
8960 (tfile_open): Don't add thread and inferior.
8961 (tfile_close): Don't set 'inferior_ptid'. Don't call
8962 exit_inferior_silent.
8963 (tfile_thread_alive): Remove.
8964 (init_tfile_ops): Don't set field 'to_thread_alive' of
8967 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
8969 * remote.c (remote_start_remote): Call remote_check_symbols even
8970 if only symbol-file (not file) has been given.
8972 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8974 * gdbarch.sh (skip_entrypoint): New callback.
8975 * gdbarch.c, gdbarch.h: Regenerate.
8976 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
8977 * infrun.c (fill_in_stop_func): Likewise.
8978 * ppc-linux-tdep.c: Include "elf/ppc64.h".
8979 (ppc_elfv2_elf_make_msymbol_special): New function.
8980 (ppc_elfv2_skip_entrypoint): Likewise.
8981 (ppc_linux_init_abi): Install them for ELFv2.
8983 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8985 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
8986 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
8987 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
8988 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
8989 structures returned in GPRs.
8991 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8993 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
8994 offset to the stack parameter list for the ELFv2 ABI.
8996 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8998 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
8999 set_gdbarch_convert_from_func_ptr_addr and
9000 set_gdbarch_elf_make_msymbol_special for ELFv1.
9001 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
9002 function descriptors on ELFv1.
9003 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
9004 set up r12 at function entry.
9006 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9008 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
9009 (struct gdbarch_tdep): New member elf_abi.
9011 * rs6000-tdep.c: Include "elf/ppc64.h".
9012 (rs6000_gdbarch_init): Detect ELF ABI version.
9014 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9016 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
9017 within a register pair holding a DFP 128-bit value on little-endian.
9018 (ppc64_sysv_abi_return_value_base): Likewise.
9019 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
9020 (dfp_pseudo_register_write): Likewise.
9022 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9024 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
9025 offset on little-endian when passing _Decimal32.
9026 (ppc64_sysv_abi_return_value_base): Likewise for return values.
9028 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9030 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
9031 of the overlapped FP register within the VSX register on little-
9033 (efpr_pseudo_register_write): Likewise.
9035 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9037 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
9038 offset on little-endian when passing small structures.
9040 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9042 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
9043 (struct ppc64_sysv_argpos): New data structure.
9044 (ppc64_sysv_abi_push_float): Remove.
9045 (ppc64_sysv_abi_push_val): New function.
9046 (ppc64_sysv_abi_push_integer): Likewise.
9047 (ppc64_sysv_abi_push_freg): Likewise.
9048 (ppc64_sysv_abi_push_vreg): Likewise.
9049 (ppc64_sysv_abi_push_param): Likewise.
9050 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
9051 (ppc64_sysv_abi_return_value_base): New function.
9052 (ppc64_sysv_abi_return_value): Refactor to use it.
9054 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9056 * NEWS: Document new target powerpc64le-*-linux*.
9058 2014-02-04 Mark Kettenis <kettenis@gnu.org>
9060 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
9061 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
9063 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
9064 register set used in ELF core dumps. Add floating-point register set.
9066 2014-02-03 Kevin Buettner <kevinb@redhat.com>
9068 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
9069 dwarf2_to_gdb[] table using symbolic constants. Adjust
9070 penultimate entry from number representing the PC register
9071 to symbolic constant representing the MDR register. Add
9072 constant for the PC register to the end of the table.
9074 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9076 * bsd-kvm.c: Include <sys/param.h>
9078 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9080 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
9082 2014-01-31 Joel Brobecker <brobecker@adacore.com>
9084 * ada-lang.h (clear_ada_sym_cache): Delete.
9086 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
9088 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
9090 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
9092 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
9093 the sigreturn register save area only if the syscall is
9096 2014-01-29 Joel Brobecker <brobecker@adacore.com>
9098 * valops.c (value_slice): Minor reformatting.
9100 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
9102 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
9104 2014-01-28 Joel Brobecker <brobecker@adacore.com>
9106 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
9108 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
9109 (ada_ignore_descriptive_types_p): New static global.
9110 (find_parallel_type_by_descriptive_type): Return immediately
9111 if ada_ignore_descriptive_types_p is set.
9112 (_initialize_ada_language): Register new commands "maintenance
9113 set ada", "maintenance show ada", "maintenance set ada
9114 ignore-descriptive-types" and "maintenance show ada
9115 ignore-descriptive-types".
9116 * NEWS: Add entry for new "maint ada set/show
9117 ignore-descriptive-types" commands.
9119 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
9121 * record-btrace.c (record_btrace_close): Call btrace_teardown
9124 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9126 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
9129 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9131 * ada-typeprint (type_is_full_subrange_of_target_type):
9133 (print_range): Add parameter bounds_prefered_p. If not set,
9134 try printing range types using the name of their base type.
9135 (print_range_type): Add parameter bounds_prefered_p.
9136 Use it in call to print_range.
9137 (print_array_type, ada_print_type): Update calls to print_range
9138 and print_range_type.
9140 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9142 * ada-typeprint.c (print_array_type, print_choices, print_range)
9143 (print_range_bound, print_dynamic_range_bound, print_range_type):
9146 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9148 * ada-typeprint.c (print_range): Add missing empty line
9149 after local declaration.
9151 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9153 * ada-valprint.c (print_optional_low_bound): Get index_type's
9154 target type for as long as it is a TYPE_CODE_RANGE.
9156 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9158 * procfs.c (procfs_make_note_section): Remove assertion and
9161 2014-01-24 Yao Qi <yao@codesourcery.com>
9163 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9164 * corelow.c (get_core_siginfo): Likewise.
9166 2014-01-24 Yao Qi <yao@codesourcery.com>
9168 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9169 ULONGEST. Don't check 'len' is negative.
9170 (remote_write_bytes): Change type of 'len' to ULONGEST.
9172 2014-01-23 Tom Tromey <tromey@redhat.com>
9175 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9176 Handle exception from frame.block.
9177 (FrameVars.fetch_frame_locals): Likewise.
9179 2014-01-23 Tom Tromey <tromey@redhat.com>
9182 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9183 on a NULL pointer. Move "goto error" to correct place.
9185 2014-01-23 Tom Tromey <tromey@redhat.com>
9188 * python/py-framefilter.c (apply_frame_filter): Call
9189 ensure_python_env after computing gdbarch.
9191 2014-01-23 Yao Qi <yao@codesourcery.com>
9193 * target.c (raw_memory_xfer_partial): Change argument type
9194 from void * to gdb_byte *.
9195 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9197 2014-01-22 Doug Evans <dje@google.com>
9199 New gdbserver option --debug-format=timestamp.
9202 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9204 * syscalls/s390x-linux.xml: New file.
9205 * syscalls/s390-linux.xml: New file.
9206 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9207 (XML_SYSCALL_FILENAME_S390X): Likewise.
9208 (op_svc): New enum value for SVC opcode.
9209 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9210 (s390_linux_get_syscall_number): New function.
9211 (s390_gdbarch_init): Register '*get_syscall_number' and the
9212 syscall xml file name.
9213 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9214 "s390-linux.xml" and "s390x-linux.xml".
9215 * NEWS: Announce new feature.
9217 2014-01-22 Baruch Siach <baruch@tkos.co.il>
9219 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9221 2014-01-22 Pedro Alves <palves@redhat.com>
9223 * xtensa-config.c: Include defs.h.
9225 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9227 * common/common-utils.h: Add "ARI:" comment beside __func__
9230 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9232 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9233 documentation a bit.
9235 2014-01-21 Roland McGrath <mcgrathr@google.com>
9237 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9238 * configure: Regenerate.
9239 * aclocal.m4: Regenerate.
9240 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9241 New substituted variables.
9242 (install-strip): New target.
9243 (INSTALL_SCRIPT): New substituted variable.
9244 (FLAGS_TO_PASS): Add it.
9245 (install-only): Use $(INSTALL_SCRIPT) rather than
9246 $(INSTALL_PROGRAM) for gcore.
9248 2014-01-20 Tom Tromey <tromey@redhat.com>
9250 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9253 2014-01-20 Tom Tromey <tromey@redhat.com>
9255 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9256 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9257 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9258 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9259 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9260 (struct cmd_list_element) <flags>: Remove.
9261 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9262 doc_allocated>: New fields.
9263 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9265 * maint.c (maintenance_do_deprecate): Update.
9266 * top.c (execute_command): Update.
9268 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9270 * xtensa-linux-nat.c: Include asm/ptrace.h.
9272 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9274 * Makefile.in (SFILES): Add d-support.c.
9275 (COMMON_OBS): Add d-support.o.
9276 * d-lang.h (d_parse_symbol): Add comment, now defined in
9278 * d-lang.c (parse_call_convention)
9279 (parse_attributes, parse_function_types)
9280 (parse_function_args, parse_type, parse_identifier)
9281 (call_convention_p, d_parse_symbol): Move functions to ...
9282 * d-support.c: ... New file.
9284 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9286 * d-lang.h (d_parse_symbol): Add declaration.
9287 * d-lang.c (extract_identifiers)
9288 (extract_type_info): Remove functions.
9289 (parse_call_convention, parse_attributes)
9290 (parse_function_types, parse_function_args)
9291 (parse_type, parse_identifier, call_convention_p)
9292 (d_parse_symbol): New functions.
9293 (d_demangle): Use d_parse_symbol to demangle D symbols.
9295 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9297 * d-lang.h (struct builtin_d_type): New data type.
9298 (builtin_d_type): Add declaration.
9299 * d-lang.c (d_language_arch_info, build_d_types)
9300 (builtin_d_type): New functions.
9301 (enum d_primitive_types): New data type.
9302 (d_language_defn): Change c_language_arch_info to
9303 d_language_arch_info.
9304 (d_type_data): New static variable.
9305 (_initialize_d_language): Initialize d_type_data.
9307 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9309 * d-lang.h (d_main_name): Add declaration.
9310 * d-lang.c (d_main_name): New function.
9311 * symtab.c (find_main_name): Add call to d_main_name.
9313 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9315 * d-lang.c (d_language_defn): Change macro_expansion_c to
9318 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9320 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9322 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9324 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9325 gdb_exception" declaration.
9326 * remote.c (getpkt_or_notif_sane): Likewise.
9328 2014-01-17 Doug Evans <dje@google.com>
9330 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9331 function, contents of dirnames_to_char_ptr_vec_append moved here.
9332 (delim_string_to_char_ptr_vec): New function.
9333 (dirnames_to_char_ptr_vec_append): Rewrite.
9334 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9336 2014-01-17 Doug Evans <dje@google.com>
9338 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9340 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9341 #include "common-utils.h".
9342 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9343 * common/vec.h (VEC_ASSERT_PASS): Update.
9344 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9345 (MACH_CHECK_ERROR): Update.
9347 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9349 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9351 * gdbarch.h: Regenerate.
9353 2014-01-16 Tom Tromey <tromey@redhat.com>
9355 * value.c (struct value) <regnum>: Move earlier.
9357 2014-01-16 Tom Tromey <tromey@redhat.com>
9359 * remote.c (extended_remote_create_inferior): Rename from
9360 extended_remote_create_inferior_1. Add "ops" argument. Remove
9363 2014-01-16 Pedro Alves <palves@redhat.com>
9365 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9366 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9369 2014-01-16 Doug Evans <dje@google.com>
9371 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9373 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9375 * btrace.h (btrace_thread_flag): New.
9376 (struct btrace_thread_info) <flags>: New.
9377 * record-btrace.c (record_btrace_resume_thread)
9378 (record_btrace_find_thread_to_move, btrace_step_no_history)
9379 (btrace_step_stopped, record_btrace_start_replaying)
9380 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9381 (record_btrace_find_resume_thread): New.
9382 (record_btrace_resume, record_btrace_wait): Extend.
9383 (record_btrace_can_execute_reverse): New.
9384 (record_btrace_open): Fail in non-stop mode.
9385 (record_btrace_set_replay): Split into this, ...
9386 (record_btrace_stop_replaying): ... this, ...
9387 (record_btrace_clear_histories): ... and this.
9388 (init_record_btrace_ops): Init to_can_execute_reverse.
9389 * NEWS: Announce it.
9391 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9393 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9394 (forward_target_decr_pc_after_break)
9395 (target_decr_pc_after_break): New.
9396 * target.c (forward_target_decr_pc_after_break)
9397 (target_decr_pc_after_break): New.
9398 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9399 instead of gdbarch_decr_pc_after_break.
9400 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9401 instead of gdbarch_decr_pc_after_break.
9402 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9403 instead of gdbarch_decr_pc_after_break.
9404 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9405 instead of gdbarch_decr_pc_after_break.
9406 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9407 instead of gdbarch_decr_pc_after_break.
9408 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9409 instead of gdbarch_decr_pc_after_break.
9411 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9413 * btrace.c: Include regcache.h.
9414 (btrace_add_pc): New.
9415 (btrace_enable): Call btrace_add_pc.
9416 (btrace_is_empty): New.
9417 * btrace.h (btrace_is_empty): New.
9418 * record-btrace.c (require_btrace, record_btrace_info): Call
9421 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9423 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9424 Support delta reads.
9425 (linux_disable_btrace): Change return type.
9426 * common/linux-btrace.h (linux_read_btrace): Change parameters
9427 and return type to allow error reporting. Update users.
9428 (linux_disable_btrace): Change return type. Update users.
9429 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9431 (btrace_error): New.
9432 (btrace_block) <begin>: Comment on BEGIN == 0.
9433 * btrace.c (btrace_compute_ftrace): Start from the end of
9435 (btrace_stitch_trace, btrace_clear_history): New.
9436 (btrace_fetch): Read delta trace, return if replaying.
9437 (btrace_clear): Move clear history code to btrace_clear_history.
9438 (parse_xml_btrace): Throw an error if parsing failed.
9439 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9440 and return type to allow error reporting.
9441 (target_read_btrace): Change parameters and return type to allow
9443 * target.c (target_read_btrace): Update.
9444 * remote.c (remote_read_btrace): Support delta reads. Pass
9446 * NEWS: Announce it.
9448 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9450 * record.h (record_btrace_frame_unwind)
9451 (record_btrace_tailcall_frame_unwind): New declarations.
9452 * dwarf2-frame: Include record.h
9453 (dwarf2_frame_cfa): Throw an error for btrace frames.
9454 * record-btrace.c: Include hashtab.h.
9455 (btrace_get_bfun_name): New.
9456 (btrace_call_history): Call btrace_get_bfun_name.
9457 (struct btrace_frame_cache): New.
9459 (bfcache_hash, bfcache_eq, bfcache_new): New.
9460 (btrace_get_frame_function): New.
9461 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9462 (record_btrace_frame_this_id): Compute own id.
9463 (record_btrace_frame_prev_register): Provide PC, throw_error
9464 for all other registers.
9465 (record_btrace_frame_sniffer): Detect btrace frames.
9466 (record_btrace_tailcall_frame_sniffer): New.
9467 (record_btrace_frame_dealloc_cache): New.
9468 (record_btrace_frame_unwind): Add new functions.
9469 (record_btrace_tailcall_frame_unwind): New.
9470 (_initialize_record_btrace): Allocate cache.
9471 * btrace.c (btrace_clear): Call reinit_frame_cache.
9472 * NEWS: Announce it.
9474 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9476 * record-btrace.c (record_btrace_set_replay)
9477 (record_btrace_goto_begin, record_btrace_goto_end)
9478 (record_btrace_goto): New.
9479 (init_record_btrace_ops): Initialize them.
9480 * NEWS: Announce it.
9482 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9484 * record-btrace.c (record_btrace_find_new_threads)
9485 (record_btrace_thread_alive): New.
9486 (init_record_btrace_ops): Initialize to_find_new_threads and
9489 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9491 * record-btrace.c (record_btrace_resume): New.
9492 (record_btrace_wait): New.
9493 (init_record_btrace_ops): Initialize to_wait and to_resume.
9495 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9497 * record-btrace.c (record_btrace_xfer_partial)
9498 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9499 (record_btrace_allow_memory_access): New.
9500 (init_record_btrace_ops): Initialize new methods.
9501 * target.c (raw_memory_xfer_partial): Bail out if target reports
9502 that this memory is not available.
9504 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9506 * target.h (target_ops) <to_insert_breakpoint>
9507 <to_remove_breakpoint>: Add target_ops parameter.
9508 (forward_target_insert_breakpoint): New.
9509 (forward_target_remove_breakpoint): New.
9510 (memory_remove_breakpoint, memory_insert_breakpoint):
9511 Add target_ops parameter.
9512 * target.c (target_insert_breakpoint): Split into this and ...
9513 (forward_target_insert_breakpoint): ... this.
9514 (target_remove_breakpoint): Split into this and ...
9515 (forward_target_remove_breakpoint): ... this.
9516 (debug_to_insert_breakpoint): Add target_ops parameter.
9517 Call forward_target_insert_breakpoint.
9518 (debug_to_remove_breakpoint): Add target_ops parameter.
9519 Call forward_target_remove_breakpoint.
9520 (update_current_target): Do not inherit or default to_insert_breakpoint
9521 and to_remove_breakpoint.
9522 * corelow.c (ignore): Add target_ops parameter.
9523 * exec.c (ignore): Add target_ops parameter.
9524 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9525 Add target_ops parameter.
9526 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9527 Add target_ops parameter.
9528 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9529 Add target_ops parameter.
9530 * record-full.c (record_full_beneath_to_insert_breakpoint)
9531 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9532 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9533 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9534 (record_full_core_remove_breakpoint): Add target_ops parameter.
9536 (record_full_beneath_to_insert_breakpoint_ops)
9537 (record_full_beneath_to_remove_breakpoint_ops)
9538 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9539 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9540 tmp_to_remove_breakpoint_ops,
9541 record_full_beneath_to_insert_breakpoint_ops, and
9542 record_full_beneath_to_remove_breakpoint_ops.
9543 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9544 (m32r_remove_breakpoint): Add target_ops parameter.
9545 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9546 Add target_ops parameter.
9547 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9548 Add target_ops parameter.
9550 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9551 Markus Metzger <markus.t.metzger@intel.com>
9553 * record-btrace.c: Include frame-unwind.h.
9554 (record_btrace_frame_unwind_stop_reason)
9555 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9556 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9558 (init_record_btrace_ops): Install it.
9560 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9562 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9565 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9567 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9570 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9572 * frame-unwind.c: Include target.h.
9573 (frame_unwind_try_unwinder): New function with code from ...
9574 (frame_unwind_find_by_frame): ... here. New variable
9575 unwinder_from_target, call also target_get_unwinder)
9576 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9577 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9578 * target.h (struct target_ops): New fields to_get_unwinder and
9579 to_get_tailcall_unwinder.
9580 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9582 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9584 * record-btrace.c (record_btrace_fetch_registers)
9585 (record_btrace_store_registers)
9586 (record_btrace_to_prepare_to_store): New.
9587 (init_record_btrace_ops): Add the above.
9589 2014-01-16 Tom Tromey <tromey@redhat.com>
9591 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
9592 * target.h (struct target_ops) <to_prepare_to_store>: Add
9594 (target_prepare_to_store): Add argument.
9595 * target.c (debug_to_prepare_to_store): Add argument.
9596 (update_current_target): Update.
9597 * remote.c (remote_prepare_to_store): Add 'self' argument.
9598 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
9599 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
9600 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
9601 * record-full.c (record_full_core_prepare_to_store): Add 'self'
9603 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
9604 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
9605 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
9606 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
9607 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
9609 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9611 * btrace.h (replay) <replay>: New.
9612 (btrace_is_replaying): New.
9613 * btrace.c (btrace_clear): Free replay iterator.
9614 (btrace_is_replaying): New.
9615 * record-btrace.c (record_btrace_is_replaying): New.
9616 (record_btrace_info): Print insn number if replaying.
9617 (record_btrace_insn_history): Start at replay position.
9618 (record_btrace_call_history): Start at replay position.
9619 (init_record_btrace_ops): Init to_record_is_replaying.
9621 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9623 * record-btrace.c (record_btrace_insn_history_range): Include
9625 (record_btrace_insn_history_from): Adjust range.
9626 (record_btrace_call_history_range): Include
9628 (record_btrace_call_history_from): Adjust range.
9629 * NEWS: Announce changes.
9631 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9633 * record.h (enum record_print_flag)
9634 <record_print_indent_calls>: New.
9635 * record.c (get_call_history_modifiers): Recognize /c modifier.
9636 (_initialize_record): Document /c modifier.
9637 * record-btrace.c (btrace_call_history): Add btinfo parameter.
9638 Reorder fields. Optionally indent the function name. Update
9640 * NEWS: Announce changes.
9642 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9644 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
9646 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9648 * btrace.c (ftrace_new_function): Start counting at one.
9649 * record-btrace.c (record_btrace_info): Adjust number of calls
9651 * NEWS: Announce it.
9653 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9655 * record-btrace.c (btrace_call_history_insn_range): Print
9656 insn range as [begin, end].
9658 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9660 * btrace.h (struct btrace_func_link): New.
9661 (enum btrace_function_flag): New.
9662 (struct btrace_inst): Rename to ...
9663 (struct btrace_insn): ...this. Update all users.
9664 (struct btrace_func) <ibegin, iend>: Remove.
9665 (struct btrace_func_link): New.
9666 (struct btrace_func): Rename to ...
9667 (struct btrace_function): ...this. Update all users.
9668 (struct btrace_function) <segment, flow, up, insn, insn_offset)
9669 (number, level, flags>: New.
9670 (struct btrace_insn_iterator): Rename to ...
9671 (struct btrace_insn_history): ...this.
9673 (struct btrace_insn_iterator, btrace_call_iterator): New.
9674 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
9675 (struct btrace_target_info) <begin, end, level>
9676 <insn_history, call_history>: New.
9677 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9678 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9679 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9680 (btrace_call_number, btrace_call_begin, btrace_call_end)
9681 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9682 (btrace_find_function_by_number, btrace_set_insn_history)
9683 (btrace_set_call_history): New.
9684 * btrace.c (btrace_init_insn_iterator)
9685 (btrace_init_func_iterator, compute_itrace): Remove.
9686 (ftrace_print_function_name, ftrace_print_filename)
9687 (ftrace_skip_file): Change
9689 (ftrace_init_func): Remove.
9690 (ftrace_debug): Use new btrace_function fields.
9691 (ftrace_function_switched): Also consider gaining and
9692 losing symbol information).
9693 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
9694 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
9695 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
9697 (ftrace_new_function): Move. Remove debug print.
9698 (ftrace_update_lines, ftrace_update_insns): New.
9699 (ftrace_update_function): Check for call, ret, and jump.
9700 (compute_ftrace): Renamed to ...
9701 (btrace_compute_ftrace): ...this. Rewritten to compute call
9703 (btrace_fetch, btrace_clear): Updated.
9704 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9705 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9706 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9707 (btrace_call_number, btrace_call_begin, btrace_call_end)
9708 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9709 (btrace_find_function_by_number, btrace_set_insn_history)
9710 (btrace_set_call_history): New.
9711 * record-btrace.c (require_btrace): Use new btrace thread
9713 (record_btrace_info, btrace_insn_history)
9714 (record_btrace_insn_history, record_btrace_insn_history_range):
9715 Use new btrace thread info fields and new iterator.
9716 (btrace_func_history_src_line): Rename to ...
9717 (btrace_call_history_src_line): ...this. Use new btrace
9719 (btrace_func_history): Rename to ...
9720 (btrace_call_history): ...this. Use new btrace thread info
9721 fields and new iterator.
9722 (record_btrace_call_history, record_btrace_call_history_range):
9723 Use new btrace thread info fields and new iterator.
9725 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9727 * frame.h (frame_id_build_unavailable_stack_special): New.
9728 * frame.c (frame_id_build_unavailable_stack_special): New.
9730 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9732 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
9733 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
9734 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
9736 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
9737 (i386_insn_is_jump, i386_jmp_p): New.
9738 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
9739 insn_is_jump to gdbarch.
9740 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
9741 * gdbarch.h: Regenerated.
9742 * gdbarch.c: Regenerated.
9743 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
9744 (default_insn_is_jump): New.
9745 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
9746 (default_insn_is_jump): New.
9748 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9750 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
9752 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
9753 (btrace_read_type) <btrace_read_new>: Change to ...
9754 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
9756 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9758 * common/linux-btrace.c (linux_read_btrace): Free trace from
9761 2014-01-15 Doug Evans <dje@google.com>
9763 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
9766 2014-01-15 Tom Tromey <tromey@redhat.com>
9768 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
9769 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
9770 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
9771 (set_objfile_main_name): New function.
9772 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
9773 language_of_main>: New fields.
9774 (set_objfile_main_name): Declare.
9775 * symtab.c (find_main_name): Loop over objfiles to find the main
9777 (set_main_name): Now static.
9778 (get_main_info): Add comment.
9779 * symtab.h (set_main_name): Don't declare.
9781 2014-01-15 Tom Tromey <tromey@redhat.com>
9783 * symtab.c (main_progspace_key): New global.
9784 (struct main_info): New.
9785 (name_of_main, language_of_main): Remove.
9786 (get_main_info, main_info_cleanup): New function.
9787 (set_main_name, main_name, main_language): Use get_main_info.
9788 (_initialize_symtab): Initialize main_progspace_key.
9790 2014-01-15 Tom Tromey <tromey@redhat.com>
9792 * dbxread.c (process_one_symbol): Update.
9793 * dwarf2read.c (read_partial_die): Update.
9794 * symfile.c (set_initial_language): Call main_language.
9795 * symtab.c (language_of_main): Now static.
9796 (set_main_name): Add 'lang' parameter.
9797 (find_main_name): Update.
9798 (main_language): New function.
9799 (symtab_observer_executable_changed): Update.
9800 * symtab.h (set_main_name): Update.
9801 (language_of_main): Remove.
9802 (main_language): Declare.
9804 2014-01-15 Tom Tromey <tromey@redhat.com>
9806 * symfile.c (init_entry_point_info): Use new "initialized" field.
9808 * objfiles.h (struct entry_point) <initialized>: New field.
9809 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
9810 (struct objfile) <ei>: ...here. Remove.
9811 * objfiles.c (entry_point_address_query): Update.
9813 2014-01-15 Tom Tromey <tromey@redhat.com>
9815 * objfiles.c (entry_point_address_query): Relocate entry point
9817 (objfile_relocate1): Do not relocate entry point address.
9818 * objfiles.h (struct entry_info) <entry_point>: Update comment.
9819 <the_bfd_section_index>: New field.
9820 * symfile.c (init_entry_point_info): Find the entry point's
9823 2014-01-15 Tom Tromey <tromey@redhat.com>
9825 * solib-frv.c (enable_break): Use entry_point_address_query.
9827 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9829 * NEWS: Add note on improved process record-replay on
9830 arm*-linux* targets.
9832 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9834 * arm-tdep.c (enum arm_record_result): New enum.
9835 (arm_record_unsupported_insn): New function.
9836 (arm_record_coproc_data_proc): Removed.
9837 (thumb2_record_ld_st_multiple): New function.
9838 (thumb2_record_ld_st_dual_ex_tbb): New function.
9839 (thumb2_record_data_proc_sreg_mimm): New function.
9840 (thumb2_record_ps_dest_generic): New function.
9841 (thumb2_record_branch_misc_cntrl): New function.
9842 (thumb2_record_str_single_data): New function.
9843 (thumb2_record_ld_mem_hints): New function.
9844 (thumb2_record_ld_word): New function.
9845 (thumb2_record_lmul_lmla_div): New function.
9846 (thumb2_record_decode_insn_handler): New function.
9847 (decode_insn): Add thumb32 instruction handlers.
9849 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9851 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
9852 (struct arm_linux_record_tdep): Declare.
9853 (arm_canonicalize_syscall): New function.
9854 (arm_all_but_pc_registers_record): New function.
9855 (arm_linux_syscall_record): New function.
9856 (arm_linux_init_abi): Add syscall recording constructs.
9857 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
9858 decoding. (arm_record_coproc_data_proc): Update arm syscall
9860 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
9861 <arm_syscall_record>: New field.
9862 * configure.tgt (arm*-*-linux*): Add linux-record.o to
9865 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9867 * arm-tdep.c (thumb_record_misc): Update to use sp as base
9868 register for push instruction recording.
9870 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9872 * arm-tdep.c (thumb_record_misc): Update to correct logical
9873 error while recording ldm, ldmia and pop instructions.
9875 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9877 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
9879 2014-01-15 Pedro Alves <palves@redhat.com>
9881 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
9882 (go32_resume, go32_fetch_registers, store_register)
9883 (go32_store_registers, go32_prepare_to_store)
9884 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
9885 (go32_create_inferior, go32_can_run, go32_terminal_init)
9886 (go32_terminal_inferior, go32_terminal_ours): Delete forward
9889 2014-01-15 Tom Tromey <tromey@redhat.com>
9891 * target.h (async_callback_ftype): New typedef.
9892 (struct target_ops) <to_async>: Use it.
9894 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9896 * python/py-value.c (get_field_type): Remove unnecessary curly
9897 braces for single-statement if block.
9899 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9901 * python/py-type.c (convert_field): Add missing empty line
9904 2014-01-14 Doug Evans <dje@google.com>
9906 * symfile.h (expand_symtabs_matching): Renamed from
9907 expand_partial_symbol_names. Update prototype.
9908 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9909 * symfile.c (expand_symtabs_matching): Renamed from
9910 expand_partial_symbol_names. New args file_matcher, kind.
9911 Rename arg fun to symbol_matcher.
9912 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9913 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
9914 ada_expand_partial_symbol_name.
9915 (ada_make_symbol_completion_list): Update to call
9916 expand_symtabs_matching.
9917 (ada_add_global_exceptions): Call expand_symtabs_matching.
9918 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
9919 call map_symbol_filenames.
9920 * symtab.c (sources_info): Update to call map_symbol_filenames.
9921 (search_symbols): Call expand_symtabs_matching.
9922 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
9923 (default_make_symbol_completion_list_break_on): Update to call
9924 expand_symtabs_matching.
9925 (make_source_files_completion_list): Update to call
9926 map_symbol_filenames.
9928 2014-01-14 Doug Evans <dje@google.com>
9930 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
9931 (expand_symtabs_symbol_matcher_ftype): New typedef.
9932 (quick_symbol_functions.expand_symtabs_matching): Update to use.
9933 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9934 * symfile.c (expand_partial_symbol_names): Update to use
9935 expand_symtabs_symbol_matcher_ftype.
9936 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
9937 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9938 Arg name_matcher renamed to symbol_matcher.
9939 * psymtab.c (recursively_search_psymtabs): Update to use
9940 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
9942 (expand_symtabs_matching_via_partial): Update to use
9943 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9944 Arg name_matcher renamed to symbol_matcher.
9946 2014-01-14 Doug Evans <dje@google.com>
9948 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
9949 (map_partial_symbol_filenames): Ditto.
9950 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
9951 (map_partial_symbol_filenames): Ditto.
9952 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
9953 (map_partial_symbol_filenames): Ditto.
9954 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
9955 (map_partial_symbol_filenames): Ditto.
9956 * symtab.c: Delete #include "psymtab.h".
9958 2014-01-14 Pedro Alves <palves@redhat.com>
9959 Tom Tromey <tromey@redhat.com>
9961 * infrun.c (use_displaced_stepping): Use find_record_target
9962 instead of RECORD_IS_USED.
9963 (adjust_pc_after_break): Use record_full_is_used instead of
9965 * record-btrace.c (record_btrace_open): Call record_preopen
9966 instead of checking RECORD_IS_USED.
9967 * record-full.c (record_full_shortname)
9968 (record_full_core_shortname): New globals.
9969 (record_full_is_used): New function.
9970 (find_full_open): Call record_preopen instead of checking
9972 (init_record_full_ops): Set the target's shortname to
9973 record_full_shortname.
9974 (init_record_full_core_ops): Set the target's shortname to
9975 record_full_core_shortname.
9976 * record-full.h (record_full_is_used): Declare.
9977 * record.c (find_record_target): Make extern.
9978 (record_preopen): New function.
9979 * record.h (RECORD_IS_USED): Delete macro.
9980 (find_record_target, record_preopen): Declare functions.
9982 2014-01-14 Yao Qi <yao@codesourcery.com>
9984 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
9985 'len''s type to ULONGEST.
9986 (core_xfer_shared_libraries_aix): Likewise.
9987 * gdbarch.c, gdbarch.h: Regenerated.
9988 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
9989 Change type of 'len' to ULONGEST.
9990 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9991 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
9993 2014-01-14 Yao Qi <yao@codesourcery.com>
9995 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
9996 type of 'len' to ULONGEST.
9997 (linux_xfer_osdata_processgroups): Likewise.
9998 (linux_xfer_osdata_threads): Likewise.
9999 (linux_xfer_osdata_fds): Likewise.
10000 (linux_xfer_osdata_isockets): Likewise.
10001 (linux_xfer_osdata_shm): Likewise.
10002 (linux_xfer_osdata_sem): Likewise.
10003 (linux_xfer_osdata_msg): Likewise.
10004 (linux_common_xfer_osdata): Likewise.
10005 (struct osdata_type) <getter>: Likewise.
10006 * common/linux-osdata.h (linux_common_xfer_osdata): Update
10009 2014-01-14 Yao Qi <yao@codesourcery.com>
10011 * target.h (target_xfer_partial_ftype): Update.
10012 (struct target_ops) <to_xfer_partial>: Change 'len' type to
10014 * aix-thread.c (aix_thread_xfer_partial): Change type of
10015 argument 'len' to ULONGEST.
10016 * auxv.c (procfs_xfer_auxv): Likewise.
10017 (ld_so_xfer_auxv): Likewise.
10018 (memory_xfer_auxv): Likewise.
10019 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10020 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10021 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10022 * corelow.c (core_xfer_partial): Likewise.
10023 * ctf.c (ctf_xfer_partial): Likewise.
10024 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
10026 (darwin_read_dyld_info): Likewise.
10027 (darwin_xfer_partial): Likewise.
10028 * exec.c (section_table_xfer_memory_partial): Likewise.
10029 (exec_xfer_partial): Likewise.
10030 * exec.h (section_table_xfer_memory_partial): Update
10032 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
10033 instead of plongest.
10034 (gnu_xfer_partial): Likewise.
10035 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
10036 (ia64_hpux_xfer_solib_got): Likewise.
10037 (ia64_hpux_xfer_partial): Likewise.
10038 * ia64-linux-nat.c (ia64_linux_xfer_partial):
10039 * inf-ptrace.c (inf_ptrace_xfer_partial):
10040 * inf-ttrace.c (inf_ttrace_xfer_partial):
10041 * linux-nat.c (linux_xfer_siginfo): Likewise.
10042 (linux_nat_xfer_partial): Likewise.
10043 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
10044 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
10045 * monitor.c (monitor_xfer_memory): Likewise.
10046 (monitor_xfer_partial): Likewise.
10047 * procfs.c (procfs_xfer_partial): Likewise.
10048 * record-full.c (record_full_xfer_partial): Likewise.
10049 (record_full_core_xfer_partial): Likewise.
10050 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
10051 instead of plongest.
10052 (gdbsim_xfer_partial): Likewise.
10053 * remote.c (remote_xfer_partial): Likewise.
10054 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10055 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10057 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10058 (rs6000_xfer_shared_libraries): Likewise.
10059 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10060 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10061 (sparc_xfer_partial): Likewise.
10062 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10063 (spu_xfer_partial): Likewise.
10064 * spu-multiarch.c (spu_xfer_partial): Likewise.
10065 * target.c (target_read_live_memory): Likewise.
10066 (memory_xfer_live_readonly_partial): Likewise.
10067 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
10068 (target_xfer_partial, default_xfer_partial): Likewise.
10069 (current_xfer_partial): Likewise.
10070 * tracepoint.c (tfile_xfer_partial): Likewise.
10071 * windows-nat.c (windows_xfer_memory): Likewise. Call
10072 pulongest instead of plongest.
10073 (windows_xfer_partial): Likewise.
10074 (windows_xfer_shared_libraries): Likewise.
10076 2014-01-14 Yao Qi <yao@codesourcery.com>
10078 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
10079 target_xfer_partial_ftype.
10081 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
10085 * valops.c (value_struct_elt_bitpos): New function
10086 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
10087 object to 'None' if the field name is an empty string ("").
10088 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
10089 attribute to look for a field when 'name' is 'None'.
10090 (get_field_type): New function
10092 2014-01-13 Doug Evans <dje@google.com>
10095 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
10096 (try_open_dwop_file): Ditto.
10097 * gdb_bfd.c: #include "vec.h".
10098 (bfdp): New typedef.
10099 (struct gdb_bfd_data): New member included_bfds.
10100 (gdb_bfd_unref): Unref all included bfds.
10101 (gdb_bfd_record_inclusion): New function.
10102 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
10104 2014-01-13 Tom Tromey <tromey@redhat.com>
10106 * gdbcore.h (deprecated_core_resize_section_table): Remove.
10108 2014-01-13 Tom Tromey <tromey@redhat.com>
10110 * defs.h (use_windows): Remove.
10111 * gdb.c (main): Update.
10112 * main.c (captured_main, gdb_main): Update.
10113 * main.h (struct captured_main_args) <use_windows>: Remove.
10114 * top.c (use_windows): Remove.
10116 2014-01-13 Tom Tromey <tromey@redhat.com>
10118 * defs.h (deprecated_flush_hook): Remove.
10120 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10123 * linux-thread-db.c (try_thread_db_load): Add parameter
10124 check_auto_load_safe. Move here the file_is_auto_load_safe call.
10125 (try_thread_db_load_from_pdir_1): Move it there from here.
10126 (try_thread_db_load_from_sdir): Update caller.
10127 (try_thread_db_load_from_dir): Move it there from here.
10129 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
10131 * regformats/regdat.sh: Always rewrite the register file.
10133 2014-01-13 Pedro Alves <palves@redhat.com>
10135 * Makefile.in (CHECK_HEADERS): New variable.
10136 (check-headers:): New rule.
10138 2014-01-13 Tom Tromey <tromey@redhat.com>
10140 * cli/cli-setshow.c (do_set_command): Update.
10141 * defs.h (deprecated_set_hook): Remove.
10142 * top.c (deprecated_set_hook): Remove.
10144 2014-01-13 Pedro Alves <palves@redhat.com>
10146 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10147 the tracepoint if the PC is a pseudo-register.
10149 2014-01-13 Tom Tromey <tromey@redhat.com>
10151 * defs.h (XCALLOC): Remove.
10152 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10153 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10154 * dwarf2loc.c (allocate_piece_closure): Likewise.
10155 * elfread.c (elf_symfile_segments): Likewise.
10156 (elf_symfile_segments): Likewise.
10157 * gdbtypes.c (copy_type_recursive): Likewise.
10158 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10159 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10160 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10162 * mt-tdep.c (mt_gdbarch_init): Likewise.
10163 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10165 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10166 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10167 * registry.c (registry_alloc_data): Likewise.
10168 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10169 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10170 * serial.c (serial_fdopen_ops): Likewise.
10171 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10173 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10174 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10177 2014-01-13 Tom Tromey <tromey@redhat.com>
10179 * defs.h (XMALLOC): Remove.
10180 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10181 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10182 * cli-out.c (struct ui_out *): Likewise.
10183 * cli/cli-dump.c (add_dump_command): Likewise.
10184 (add_dump_command): Likewise.
10185 * complaints.c (get_complaints): Likewise.
10186 (find_complaint): Likewise.
10187 * dwarf2-frame.c (execute_cfa_program): Likewise.
10188 * dwarf2read.c (abbrev_table_read_table): Likewise.
10189 * gdbarch.sh: Likewise.
10190 * gdbarch.c: Rebuild.
10191 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10192 * interps.c (interp_new): Likewise.
10193 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10194 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10195 * mi/mi-console.c (mi_console_file_new): Likewise.
10196 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10197 * mi/mi-out.c (mi_out_new): Likewise.
10198 * mi/mi-parse.c (mi_parse): Likewise.
10199 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10200 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10201 * observer.c (xalloc_observer_list_node): Likewise.
10202 * regcache.c (regcache_xmalloc_1): Likewise.
10203 * reggroups.c (reggroup_new): Likewise.
10204 (_initialize_reggroup): Likewise.
10205 * registry.c (register_data_with_cleanup): Likewise.
10206 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10207 * ser-base.c (serial_ttystate): Likewise.
10208 * ser-mingw.c (make_pipe_state): Likewise.
10209 * ser-pipe.c (pipe_open): Likewise.
10210 * serial.c (serial_open): Likewise.
10211 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10212 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10213 (tui_alloc_win_info): Likewise.
10214 (tui_add_content_elements): Likewise.
10215 * tui/tui-file.c (tui_file_new): Likewise.
10216 * tui/tui-out.c (tui_out_new): Likewise.
10217 * ui-file.c (mem_file_new): Likewise.
10218 * ui-out.c (push_level): Likewise.
10219 (make_cleanup_ui_out_end): Likewise.
10220 (append_header_to_list): Likewise.
10221 (ui_out_new): Likewise.
10222 * user-regs.c (user_reg_add_builtin): Likewise.
10224 2014-01-13 Tom Tromey <tromey@redhat.com>
10226 * defs.h (XZALLOC): Remove.
10227 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10228 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10229 (get_ada_tasks_inferior_data): Likewise.
10230 * auto-load.c (get_auto_load_pspace_data): Likewise.
10231 * auxv.c (get_auxv_inferior_data): Likewise.
10232 * bfd-target.c (target_bfd_reopen): Likewise.
10233 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10234 (deprecated_insert_raw_breakpoint): Likewise.
10235 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10236 * corelow.c (core_open): Likewise.
10237 * darwin-nat.c (darwin_check_new_threads): Likewise.
10238 (darwin_attach_pid): Likewise.
10239 * dummy-frame.c (dummy_frame_push): Likewise.
10240 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10241 * dwarf2loc.c (allocate_piece_closure): Likewise.
10242 * elfread.c (elf_symfile_segments): Likewise.
10243 * eval.c (ptrmath_type_p): Likewise.
10244 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10245 * gdbtypes.c (alloc_type_arch): Likewise.
10246 (alloc_type_instance): Likewise.
10247 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10248 * inf-child.c (inf_child_can_use_agent): Likewise.
10249 * inflow.c (get_inflow_inferior_data): Likewise.
10250 * infrun.c (save_infcall_suspend_state): Likewise.
10251 * jit.c (jit_reader_load): Likewise.
10252 (get_jit_objfile_data): Likewise.
10253 (get_jit_program_space_data): Likewise.
10254 (jit_object_open_impl): Likewise.
10255 (jit_symtab_open_impl): Likewise.
10256 (jit_block_open_impl): Likewise.
10257 (jit_frame_sniffer): Likewise.
10258 * linux-fork.c (add_fork): Likewise.
10259 * maint.c (make_command_stats_cleanup): Likewise.
10260 * objfiles.c (get_objfile_pspace_data): Likewise.
10261 * opencl-lang.c (struct lval_closure): Likewise.
10262 * osdata.c (osdata_start_osdata): Likewise.
10263 * progspace.c (new_address_space): Likewise.
10264 (add_program_space): Likewise.
10265 * remote-sim.c (get_sim_inferior_data): Likewise.
10266 * sh-tdep.c (sh_gdbarch_init): Likewise.
10267 * skip.c (Ignore): Likewise.
10268 (skip_delete_command): Likewise.
10269 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10270 (library_list_start_library): Likewise.
10271 (solib_aix_current_sos): Likewise.
10272 * solib-darwin.c (get_darwin_info): Likewise.
10273 (darwin_current_sos): Likewise.
10274 * solib-dsbt.c (get_dsbt_info): Likewise.
10275 * solib-ia64-hpux.c (new_so_list): Likewise.
10276 (ia64_hpux_get_solib_linkage_addr): Likewise.
10277 * solib-spu.c (append_ocl_sos): Likewise.
10278 (spu_current_sos): Likewise.
10279 * solib-svr4.c (get_svr4_info): Likewise.
10280 (svr4_keep_data_in_core): Likewise.
10281 (library_list_start_library): Likewise.
10282 (svr4_default_sos): Likewise.
10283 (svr4_read_so_list): Likewise.
10284 * solib-target.c (library_list_start_library): Likewise.
10285 (solib_target_current_sos): Likewise.
10286 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10287 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10288 * symfile.c (default_symfile_segments): Likewise.
10289 * target-descriptions.c (tdesc_data_init): Likewise.
10290 (tdesc_create_reg): Likewise.
10291 (struct tdesc_type *): Likewise.
10292 (tdesc_create_vector): Likewise.
10293 (tdesc_set_struct_size): Likewise.
10294 (struct tdesc_type *): Likewise.
10295 (tdesc_free_feature): Likewise.
10296 (tdesc_create_feature): Likewise.
10297 * windows-nat.c (windows_add_thread): Likewise.
10298 (windows_make_so): Likewise.
10299 * xml-support.c (gdb_xml_body_text): Likewise.
10300 (gdb_xml_create_parser_and_cleanup): Likewise.
10301 (xml_process_xincludes): Likewise.
10302 * xml-syscall.c (allocate_syscalls_info): Likewise.
10303 (syscall_create_syscall_desc): Likewise.
10305 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10307 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10308 function, with code from i386_stap_parse_special_token.
10309 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10310 (i386_stap_parse_special_token): Move code to the two functions
10311 above; simplify it.
10313 2014-01-09 Pedro Alves <palves@redhat.com>
10314 Hui Zhu <hui@codesourcery.com>
10317 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10318 bp_err_string. Don't mark the location shlib_disabled if the
10319 error thrown wasn't a generic or memory error. Catch errors
10320 thrown while inserting breakpoints in overlayed code. Output
10321 error message of software breakpoints.
10322 * remote.c (remote_insert_breakpoint): If this breakpoint has
10323 target-side commands but this stub doesn't support Z0 packets,
10324 throw NOT_SUPPORTED_ERROR error.
10325 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10326 * target.h (target_insert_breakpoint): Extend comment.
10327 (target_insert_hw_breakpoint): Add comment.
10329 2014-01-08 Pedro Alves <palves@redhat.com>
10331 * remote.c (remote_add_thread): Add threads silently if starting
10333 (remote_notice_new_inferior): If in all-stop, and starting up,
10334 don't call notice_new_inferior.
10335 (get_current_thread): New function, factored out from ...
10336 (add_current_inferior_and_thread): ... this. Adjust.
10337 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10338 found any thread, then select the remote's current thread as GDB's
10339 current thread too.
10341 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10343 * NEWS: Create a new section for the next release branch.
10344 Rename the section of the current branch, now that it has
10347 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10349 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10350 * version.in: Bump version to 7.7.50.DATE-cvs.
10352 2014-01-08 Yao Qi <yao@codesourcery.com>
10354 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10355 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10356 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10358 2014-01-08 Yao Qi <yao@codesourcery.com>
10360 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10361 return value of bfd_get_filename to symbol_file_add_from_bfd.
10363 2014-01-08 Pierre Muller <muller@sourceware.org>
10366 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10367 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10368 to prim_record_mininal_symbol_and_info.
10369 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10370 in call to prim_record_minimal_symbol_and_info.
10371 (read_pe_exported_syms): Set index field of section_data.
10373 2014-01-07 Andrew Pinski <apinski@cavium.com>
10375 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10376 * features/aarch64.c: Regenerate.
10378 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10380 * target.c (return_null): Define.
10381 (update_current_target): Use it instead of return_zero for
10382 functions that return a pointer.
10384 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10386 * source.c (add_path): Fix check for duplicated paths in the previously
10389 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10391 * ada-lang.c: Remove duplicated include statements.
10392 * alphabsd-nat.c: Ditto.
10393 * amd64-darwin-tdep.c: Ditto.
10394 * amd64fbsd-nat.c: Ditto.
10395 * auto-load.c: Ditto.
10397 * breakpoint.c: Ditto.
10398 * dbxread.c: Ditto.
10399 * fork-child.c: Ditto.
10400 * gdb_usleep.c: Ditto.
10401 * i386-darwin-tdep.c: Ditto.
10402 * i386fbsd-nat.c: Ditto.
10404 * inferior.c: Ditto.
10405 * jv-lang.c: Ditto.
10406 * linux-nat.c: Ditto.
10407 * linux-tdep.c: Ditto.
10408 * m68kbsd-nat.c: Ditto.
10409 * m68klinux-nat.c: Ditto.
10410 * microblaze-tdep.c: Ditto.
10411 * mips-linux-tdep.c: Ditto.
10412 * mn10300-tdep.c: Ditto.
10413 * nto-tdep.c: Ditto.
10414 * opencl-lang.c: Ditto.
10416 * printcmd.c: Ditto.
10417 * regcache.c: Ditto.
10418 * remote-m32r-sdi.c: Ditto.
10420 * symfile.c: Ditto.
10422 * tilegx-linux-nat.c: Ditto.
10423 * tilegx-tdep.c: Ditto.
10424 * tracepoint.c: Ditto.
10426 * vaxbsd-nat.c: Ditto.
10427 * windows-nat.c: Ditto.
10428 * xtensa-tdep.c: Ditto.
10430 2014-01-07 Yao Qi <yao@codesourcery.com>
10432 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10434 2014-01-07 Yao Qi <yao@codesourcery.com>
10435 Joel Brobecker <brobecker@adacore.com>
10437 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10438 (pdc_write_regs): Likewise.
10439 (fetch_regs_kernel_thread): Likewise.
10440 (store_regs_kernel_thread): Likewise.
10442 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10444 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10445 tagged type objects to their actual type.
10447 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10449 * ada-valprint.c (print_field_values): Add "language" parameter.
10450 Update calls to print_field_values and print_variant_part.
10451 Pass new parameter "language" in call to val_print instead
10452 of "current_language". Replace call to ada_val_print by call
10454 (print_variant_part): Add "language" parameter.
10455 (ada_val_print_struct_union): Update call to print_field_values.
10457 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10459 * ada-valprint.c (ui_memcpy): Delete.
10460 (ada_print_floating): Update documentation. Add empty line
10461 between between function documentation and implementation.
10462 Delete variable "buffer". Use ui_file_xstrdup in place of
10463 ui_file_put. Minor adjustments following this change.
10465 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10467 * ada-valprint.c (ada_val_print_string): New function,
10468 extracted from ada_val_print_array.
10469 (ada_val_print_array): Replace extracted code by call
10470 to ada_val_print_string followed by a return. Move
10471 "else" branch to the function's top block.
10473 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10475 * ada-valprint.c (ada_val_print_array): Move implementation
10476 down. Rename parameter "offset" and "val" into "offset_aligned"
10477 and "original_value" respectively. Add parameter "offset".
10479 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10481 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10482 re-organizing the code. Change the "???" message printed
10483 when target type is a TYPE_CODE_UNDEF into
10484 "<ref to undefined type>".
10486 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10488 * ada-valprint.c (print_record): Delete, implementation inlined...
10489 (ada_val_print_struct_union): ... here. Remove call to
10490 ada_check_typedef in inlined implementation.
10492 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10494 * ada-valprint.c (ada_val_print_gnat_array): New function,
10495 extracted from ada_val_print_1;
10496 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10497 (ada_val_print_flt, ada_val_print_struct_union)
10498 (ada_val_print_ref): Likewise.
10499 (ada_val_print_1): Delete variables i and elttype.
10500 Replace extracted-out code by call to corresponding
10503 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10505 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10507 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10509 * ada-valprint.c (ada_val_print_1): Replace calls to
10510 ada_val_print_1 by calls to val_print.
10512 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10514 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10515 Update calls to self accordingly. Replace calls to c_val_print
10516 by calls to val_print.
10518 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10520 * ada-valprint.c (print_record): Delete declaration.
10521 (adjust_type_signedness, ada_val_print_1): Likewise.
10522 (ada_val_print): Move function implementation down.
10523 (print_variant_part, print_field_values, print_record):
10524 Move function implementation up.
10526 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10528 * python/py-type.c (typy_get_name): New function.
10529 (type_object_getset): Add entry for attribute "name".
10530 * NEWS: Add entry mentioning this new attribute.
10532 2014-01-07 Yao Qi <yao@codesourcery.com>
10534 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10537 2014-01-07 Yao Qi <yao@codesourcery.com>
10539 * gnu-nat.c (info_port_rights): Add qualifier const to
10542 2014-01-07 Yao Qi <yao@codesourcery.com>
10544 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10546 2014-01-07 Yao Qi <yao@codesourcery.com>
10548 * gnu-nat.c (make_inf) Update declaration.
10549 (make_inf): Make it static.
10550 (inf_set_traced): Likewise.
10551 (inf_port_to_thread, inf_task_died_status): Likewise.
10553 2014-01-07 Yao Qi <yao@codesourcery.com>
10555 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10557 2014-01-07 Yao Qi <yao@codesourcery.com>
10559 * gnu-nat.c (_initialize_gnu_nat): Declare.
10561 2014-01-07 Yao Qi <yao@codesourcery.com>
10563 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10565 (struct gdbarch_info) <byte_order>: Change type to
10567 <byte_order_for_code>: Likewise.
10568 * gdbarch.c, gdbarch.h: Regenerated.
10570 2014-01-06 Sasha Smundak <asmundak@google.com>
10572 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10574 2014-01-06 Tom Tromey <tromey@redhat.com>
10576 * doublest.c (convert_doublest_to_floatformat): Use const, not
10578 * somread.c (som_symtab_read): Likewise.
10580 2014-01-07 Hui Zhu <hui@codesourcery.com>
10582 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10583 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10584 (gdb_bfd_fopen): Ditto.
10585 (gdb_bfd_openr): Ditto.
10586 (gdb_bfd_openw): Ditto.
10587 (gdb_bfd_openr_iovec): Ditto.
10588 (gdb_bfd_fdopenr): Ditto.
10589 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
10590 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
10592 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
10594 * symfile-mem.c (symbol_file_add_from_memory): Removed
10595 gdb_bfd_stash_filename.
10597 2014-01-03 Doug Evans <dje@google.com>
10599 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
10602 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10604 Update year range in copyright notice of all files.
10606 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10608 * top.c (print_gdb_version): Set copyright year to 2014.
10610 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10612 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
10614 For older changes see ChangeLog-2013.
10620 version-control: never