1 2014-07-25 Pedro Alves <palves@redhat.com>
3 * NEWS: Mention signal passing and "signal" command changes.
4 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
6 * breakpoint.c (until_break_command): Adjust clear_proceed_status
8 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
9 * infcmd.c (proceed_thread_callback, continue_1, step_once)
10 (jump_command): Adjust clear_proceed_status call.
11 (signal_command): Warn if other thread that are resumed have
12 signals that will be delivered. Adjust clear_proceed_status call.
13 (until_next_command, finish_command)
14 (proceed_after_attach_callback, attach_command_post_wait)
15 (attach_command): Adjust clear_proceed_status call.
16 * infrun.c (proceed_after_vfork_done): Likewise.
17 (proceed_after_attach_callback): Adjust comment.
18 (clear_proceed_status_thread): Clear stop_signal if not in pass
20 (clear_proceed_status_callback): Delete.
21 (clear_proceed_status): New 'step' parameter. Only clear the
22 proceed status of threads the command being prepared is about to
24 (proceed): If passed in an explicit signal, override stop_signal
25 with it. Don't pass the last stop signal to the thread we're
27 (init_wait_for_inferior): Adjust clear_proceed_status call.
28 (switch_back_to_stepped_thread): Clear the signal if it should not
30 * infrun.h (clear_proceed_status): New 'step' parameter.
31 (user_visible_resume_ptid): Add comment.
32 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
33 signal is in pass state.
34 * remote.c (append_pending_thread_resumptions): Likewise.
35 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
37 2014-07-25 Tom Tromey <tromey@redhat.com>
39 * target.h (target_stopped_data_address)
40 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
43 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
45 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
47 (avr_pointer_to_address): Likewise.
49 2014-07-24 Tom Tromey <tromey@redhat.com>
51 * monitor.c (compile_pattern): Update.
52 * target.h (struct target_ops) <to_shortname, to_longname,
55 2014-07-24 Tom Tromey <tromey@redhat.com>
57 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
58 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
59 (add_info_alias, add_com): Make "doc" const.
60 (print_doc_line): Make "str" const.
62 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
63 (print_doc_line): Update.
64 * cli/cli-script.c (document_command): Update.
65 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
66 (add_com, add_info, add_info_alias): Update.
67 * guile/scm-cmd.c (cmdscm_destroyer): Update.
68 * python/py-cmd.c (cmdpy_destroyer): Update.
70 2014-07-24 Tom Tromey <tromey@redhat.com>
72 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
73 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
74 (help_cmd_list): Constify.
76 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
78 (help_cmd_list, apropos_cmd): Update.
79 * cli/cli-script.c (show_user): Update.
80 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
81 * cli/cli-setshow.h (cmd_show_list): Update.
82 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
83 (cmd_show_list): Update.
84 * guile/scm-cmd.c (cmdscm_destroyer): Update.
85 * python/py-cmd.c (cmdpy_destroyer): Update.
87 2014-07-24 Tom Tromey <tromey@redhat.com>
89 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
90 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
92 * command.h (deprecate_cmd): Update.
93 * maint.c (maintenance_do_deprecate): Add casts.
95 2014-07-24 Tom Tromey <tromey@redhat.com>
97 * cli/cli-decode.c (help_cmd): Make parameter "const".
98 * cli/cli-decode.h (help_cmd): Update.
100 2014-07-24 Tom Tromey <tromey@redhat.com>
102 * stack.c (up_silently_base, down_silently_base): Make argument
105 2014-07-24 Tom Tromey <tromey@redhat.com>
107 * solib.c (solib_add): Make "pattern" const.
108 * solib.h (solib_add): Update.
110 2014-07-24 Tom Tromey <tromey@redhat.com>
112 * remote.c (remote_serial_open, print_packet, putpkt)
113 (putpkt_binary): Constify.
114 * remote.h (putpkt): Update.
116 2014-07-24 Tom Tromey <tromey@redhat.com>
118 * monitor.c (monitor_open): Make "args" const.
119 * monitor.h (monitor_open): Update.
121 2014-07-24 Tom Tromey <tromey@redhat.com>
123 * maint.c (match_bfd_flags): Make "string" const.
124 (print_bfd_section_info): Remove casts.
125 (print_objfile_section_info): Make "string" const.
127 2014-07-24 Tom Tromey <tromey@redhat.com>
129 * inf-child.c (inf_child_open_target): Make "arg" const.
130 * inf-child.h (inf_child_open_target): Update.
132 2014-07-24 Tom Tromey <tromey@redhat.com>
134 * environ.c (unset_in_environ): Make "var" const.
135 * environ.h (unset_in_environ): Update.
137 2014-07-24 Tom Tromey <tromey@redhat.com>
139 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
141 (scan_filename_with_cleanup): Likewise.
142 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
143 Make arguments const.
144 (restore_command): Update.
146 2014-07-24 Pedro Alves <palves@redhat.com>
148 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
150 2014-07-24 Tom Tromey <tromey@redhat.com>
151 Gary Benson <gbenson@redhat.com>
153 * nat/linux-ptrace.c (additional_flags): New global.
154 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
155 additional_flags; don't check GDBSERVER.
156 (linux_ptrace_set_additional_flags): New function.
157 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
159 * linux-nat.c (_initialize_linux_nat): Call
160 linux_ptrace_set_additional_flags.
162 2014-07-24 Tom Tromey <tromey@redhat.com>
164 * make-target-delegates (munge_type, write_debugmethod): New
166 (debug_names): New global.
167 ($TARGET_DEBUG_PRINTER): New global.
168 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
170 Write debug methods. Generate init_debug_target.
171 * target-debug.h: New file.
172 * target-delegates.c: Rebuild.
173 * target.c: Include target-debug.h.
174 (debug_target): Hoist definition.
175 (target_kill, target_get_section_table, target_memory_map)
176 (target_flash_erase, target_flash_done, target_detach)
177 (target_disconnect, target_wait, target_resume)
178 (target_pass_signals, target_program_signals, target_follow_fork)
179 (target_mourn_inferior, target_search_memory)
180 (target_thread_address_space, target_close)
181 (target_find_new_threads, target_core_of_thread)
182 (target_verify_memory, target_insert_mask_watchpoint)
183 (target_remove_mask_watchpoint): Remove targetdebug code.
184 (debug_to_post_attach, debug_to_prepare_to_store)
185 (debug_to_files_info, debug_to_insert_breakpoint)
186 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
187 (debug_to_region_ok_for_hw_watchpoint)
188 (debug_to_can_accel_watchpoint_condition)
189 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
190 (debug_to_watchpoint_addr_within_range)
191 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
192 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
193 (debug_to_terminal_init, debug_to_terminal_inferior)
194 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
195 (debug_to_terminal_save_ours, debug_to_terminal_info)
196 (debug_to_load, debug_to_post_startup_inferior)
197 (debug_to_insert_fork_catchpoint)
198 (debug_to_remove_fork_catchpoint)
199 (debug_to_insert_vfork_catchpoint)
200 (debug_to_remove_vfork_catchpoint)
201 (debug_to_insert_exec_catchpoint)
202 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
203 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
204 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
205 (setup_target_debug): Call init_debug_target.
206 * target.h (TARGET_DEBUG_PRINTER): New macro.
207 (struct target_ops) <to_resume, to_wait, to_pass_signals,
208 to_program_signals>: Use TARGET_DEBUG_PRINTER.
210 2014-07-24 Gary Benson <gbenson@redhat.com>
212 * exceptions.h (throw_vfatal): Renamed to...
213 (throw_vquit): New declaration.
214 (throw_quit): Likewise.
215 * exceptions.c (throw_vfatal): Renamed to...
216 (throw_vquit): New function.
217 (throw_quit): Likewise.
218 (throw_error): Call throw_verror rather than throw_it.
219 * utils.h (vfatal): Removed.
221 * utils.c (vfatal): Removed.
223 (internal_verror): Replaced call to fatal with call to throw_quit.
224 (quit): Replaced calls to fatal with calls to throw_quit.
226 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
228 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
231 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
233 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
234 less than zero in conditional expression.
236 2014-07-23 Tom Tromey <tromey@redhat.com>
238 * make-target-delegates ($ARGS_PART): Match trailing close paren.
239 ($INTRO_PART): Don't match whitespace.
240 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
242 ($METHOD): Add $METHOD_TRAILER.
244 (scan_target_h): New sub.
245 Change main loop not to collect state.
246 * target-delegates.c: Rebuild.
248 2014-07-23 Gary Benson <gbenson@redhat.com>
250 * cp-support.c (gdb_demangle): Fix build on systems without
253 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
255 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
256 for reference entry value target data value.
258 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
260 * stack.c (read_frame_arg): Verify value_optimized_out before calling
261 value_available_contents_eq.
263 2014-07-22 Pedro Alves <palves@redhat.com>
265 * value.c (allocate_optimized_out_value): Don't mark value as
268 2014-07-22 Jiong Wang <jiong.wang@arm.com>
270 * MAINTAINERS (Write After Approval): Update my email address.
272 2014-07-20 Doug Evans <dje@google.com>
275 * remote.c (putpkt_binary): Add text to error message.
277 2014-07-20 Yao Qi <yao@codesourcery.com>
279 * eval.c: Remove "Chill" from comments.
280 * gdbtypes.h: Likewise.
281 * symtab.h: Likewise.
283 2014-07-20 Yao Qi <yao@codesourcery.com>
285 * std-operator.def: Update comments to TERNOP_SLICE.
287 2014-07-20 Yao Qi <yao@codesourcery.com>
289 * std-operator.def: Remove BINOP_RANGE.
290 * breakpoint.c (watchpoint_exp_is_const): Update.
291 * expprint.c (dump_subexp_body_standard): Likewise.
292 * eval.c (init_array_element): Remove dead code.
293 (evaluate_subexp_standard): Likewise.
295 2014-07-20 Yao Qi <yao@codesourcery.com>
297 * std-operator.def: Remove BINOP_IN.
298 * breakpoint.c (watchpoint_exp_is_const): Update.
299 * eval.c (evaluate_subexp_standard): Likewise.
300 * expprint.c (dump_subexp_body_standard): Likewise.
302 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
304 * microblaze-tdep.c (microblaze_register_names): Add
305 the rshr and rslr register names.
306 (microblaze_gdbarch_init): Use of tdesc_has_registers.
307 Use of tdesc_find_feature. Use of tdesc_data_alloc.
308 Use of tdesc_numbered_register. Use of
309 microblaze_register_g_packet_guesses. Use of
310 tdesc_use_registers. Use of set_gdbarch_register_type.
311 (microblaze_register_g_packet_guesses): New.
312 * microblaze-tdep.h (microblaze_reg_num): Add
313 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
314 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
315 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
316 * features/microblaze-core.xml: New file.
317 * features/microblaze-stack-protect.xml: New file.
318 * features/microblaze-with-stack-protect.c: New file.
319 * features/microblaze-with-stack-protect.xml: New file.
320 * features/microblaze.xml: New file.
321 * features/microblaze.c: New file.
322 * features/Makefile (microblaze-with-stack-protect): Add
323 microblaze-with-stack-protect microblaze and microblaze-expedite.
324 * regformats/microblaze-with-stack-protect.dat: New file.
325 * regformats/microblaze.dat: New file.
326 * doc/gdb.texinfo (MicroBlaze Features): Added.
328 2014-07-18 Tom Tromey <tromey@redhat.com>
330 * exec.c (exec_ops): Now static.
331 * exec.h (exec_ops): Don't declare.
333 2014-07-18 Tom Tromey <tromey@redhat.com>
335 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
336 to find_target_beneath.
337 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
339 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
341 2014-07-18 Tom Tromey <tromey@redhat.com>
344 * utils.c (quit): Use target_supports_terminal_ours.
345 * target.h (target_supports_terminal_ours): Declare.
346 * target.c (target_supports_delete_record): Don't check
347 to_delete_record against NULL.
348 (target_supports_terminal_ours): New function.
350 2014-07-18 Tom Tromey <tromey@redhat.com>
353 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
354 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
355 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
356 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
357 * windows-nat.c (windows_xfer_partial): Always delegate.
358 * record-btrace.c (record_btrace_xfer_partial): Simplify
360 (record_btrace_fetch_registers, record_btrace_store_registers)
361 (record_btrace_prepare_to_store, record_btrace_resume)
362 (record_btrace_wait, record_btrace_find_new_threads)
363 (record_btrace_thread_alive): Likewise.
364 * procfs.c (procfs_xfer_partial): Always delegate.
365 * corelow.c (core_xfer_partial): Always delegate.
366 * sol-thread.c (sol_find_new_threads): Simplify delegation.
368 2014-07-18 Tom Tromey <tromey@redhat.com>
370 * exec.c (exec_make_note_section): Move earlier.
372 2014-07-17 Doug Evans <dje@google.com>
375 * maint.c (count_symtabs_and_blocks): Handle NULL
376 current_program_space.
377 (report_command_stats): Check global enabled flag in addition to
378 recorded enabled flag.
379 (make_command_stats_cleanup): Handle msg_type == 0, startup.
381 2014-07-16 Pedro Alves <palves@redhat.com>
383 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
385 2014-07-16 Tom Tromey <tromey@redhat.com>
387 * target.h (struct target_ops) <to_delete_record>: Reformat
390 2014-07-16 Tom Tromey <tromey@redhat.com>
392 * target-delegates.c: Rebuild.
394 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
396 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
397 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
398 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
399 (avr_pointer_to_address): Likewise.
400 (avr_address_class_type_flags): New function.
401 (avr_address_class_type_flags_to_name): Likewise.
402 (avr_address_class_name_to_type_flags): Likewise.
403 (avr_gdbarch_init): Set address_class_type_flags,
404 address_class_type_flags_to_name and
405 address_class_name_to_type_flags.
407 2014-07-15 Pedro Alves <palves@redhat.com>
409 * linux-nat.c (kill_callback): Save errno and work with saved
412 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
414 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
416 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
418 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
419 breakpoint support correctly.
421 2014-07-14 Pedro Alves <palves@redhat.com>
423 * utils.c (prompt_for_continue): Call target_terminal_ours.
425 2014-07-14 Pedro Alves <palves@redhat.com>
427 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
428 catch_errors. Don't re-enable stdin or notify observers where,
430 (fetch_inferior_event_wrapper): Delete.
432 2014-07-14 Pedro Alves <palves@redhat.com>
435 * top.c: Include "inf-loop.h".
436 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
438 (gdb_readline_wrapper_cleanup): Make the target async again, if it
440 (gdb_readline_wrapper): Store whether the target is async, and
443 2014-07-14 Pedro Alves <palves@redhat.com>
446 * top.c (gdb_readline_wrapper_line): Tweak comment.
447 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
448 the input handler callback.
450 2014-07-14 Pedro Alves <palves@redhat.com>
453 * main.c: Include event-top.h.
454 (handle_command_errors): New function.
455 (catch_command_errors, catch_command_errors_const): Use it.
457 2014-07-14 Pedro Alves <palves@redhat.com>
459 * exceptions.c (catch_command_errors, catch_command_errors_const):
461 * exceptions.h (catch_command_errors_ftype)
462 (catch_command_errors_const_ftype): Moved to main.c.
463 (catch_command_errors, catch_command_errors_const): Delete
465 * main.c (catch_command_errors_ftype)
466 (catch_command_errors_const_ftype): Moved here from exceptions.h.
467 (catch_command_errors, catch_command_errors_const)): Moved here
468 from exceptions.c and make static.
470 2014-07-14 Pedro Alves <palves@redhat.com>
472 * exceptions.c (print_any_exception): Delete.
473 (catch_exceptions_with_msg): Use exception_print instead of
475 (catch_errors): Use exception_fprintf instead of
477 (catch_command_errors, catch_command_errors_const): Use
478 exception_print instead of print_any_exception.
480 2014-07-14 Pedro Alves <palves@redhat.com>
482 * infcall.c (run_inferior_call): Set 'sync_execution' while
483 running the inferior call.
485 2014-07-14 Pedro Alves <palves@redhat.com>
487 * value.c (value_contents_equal): Delete function.
488 * value.h (value_contents_equal): Delete declaration.
490 2014-07-14 Tom Tromey <tromey@redhat.com>
493 * gdbtypes.c (is_dynamic_type_internal): New function, from
495 (is_dynamic_type): Rewrite.
496 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
497 (resolve_dynamic_struct): Likewise.
498 (resolve_dynamic_type_internal): New function, from
499 resolve_dynamic_type.
500 (resolve_dynamic_type): Rewrite.
502 2014-07-14 Tom Tromey <tromey@redhat.com>
504 * target.c (target_require_runnable): Also check record_stratum.
507 2014-07-11 Yao Qi <yao@codesourcery.com>
509 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
510 thumb_instruction_restores_sp return true.
512 2014-07-11 Yao Qi <yao@codesourcery.com>
514 * arm-tdep.c (thumb_instruction_restores_sp): New function.
515 (thumb_in_function_epilogue_p): Call
516 thumb_instruction_restores_sp.
518 2014-07-11 Yao Qi <yao@codesourcery.com>
520 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
522 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
524 2014-07-11 Gary Benson <gbenson@redhat.com>
526 * amd64-linux-nat.c (gdbcore.h): Remove include.
527 (regset.h): Likewise.
528 (nat/linux-btrace.h): Likewise.
529 (btrace.h): Likewise.
530 (gdb_assert.h): Likewise.
531 (string.h): Likewise.
532 (sys/uio.h): Likewise.
533 (sys/debugreg.h): Likewise.
534 (sys/syscall.h): Likewise.
535 (sys/procfs.h): Likewise.
536 (sys/user.h): Likewise.
537 (asm/ptrace.h): Likewise.
538 (i386-nat.h): Likewise.
539 * i386-linux-nat.c (i386-nat.h): Likewise.
540 (regset.h): Likewise.
541 (target.h): Likewise.
542 (linux-nat.h): Likewise.
543 (nat/linux-btrace.h): Likewise.
544 (btrace.h): Likewise.
545 (gdb_assert.h): Likewise.
546 (string.h): Likewise.
547 (sys/uio.h): Likewise.
548 (sys/user.h): Likewise.
549 (sys/procfs.h): Likewise.
550 (sys/reg.h): Likewise.
551 (sys/debugreg.h): Likewise.
552 (ORIG_EAX): Remove definition.
554 2014-07-11 Gary Benson <gbenson@redhat.com>
556 * i386-linux-nat.h: New file.
557 * x86-linux-nat.h: Likewise.
558 * x86-linux-nat.c: Likewise.
559 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
560 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
561 * config/i386/linux64.mh (NATDEPFILES): Likewise.
562 * amd64-linux-nat.c (x86-linux-nat.h): New include.
563 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
564 (PTRACE_SETREGSET): Likewise.
565 (arch_lwp_info): Now in x86-linux-nat.c.
566 (have_ptrace_getregset): Now in x86-linux-nat.h.
567 (x86_linux_dr_get): Now in x86-linux-nat.c.
568 (x86_linux_dr_set): Likewise.
569 (x86_linux_dr_get_addr): Likewise.
570 (x86_linux_dr_get_control): Likewise.
571 (x86_linux_dr_get_status): Likewise.
572 (update_debug_registers_callback): Likewise.
573 (x86_linux_dr_set_control): Likewise.
574 (x86_linux_dr_set_addr): Likewise.
575 (x86_linux_prepare_to_resume): Likewise.
576 (x86_linux_new_thread): Likewise.
577 (x86_linux_new_fork): Likewise.
578 (x86_linux_get_thread_area): Likewise.
579 (super_post_startup_inferior): Likewise.
580 (x86_linux_child_post_startup_inferior): Likewise.
581 (AMD64_LINUX_USER64_CS): Likewise.
582 (AMD64_LINUX_X32_DS): Likewise.
583 (x86_linux_read_description): Likewise.
584 (x86_linux_enable_btrace): Likewise.
585 (x86_linux_disable_btrace): Likewise.
586 (x86_linux_teardown_btrace): Likewise.
587 (x86_linux_read_btrace): Likewise.
588 (x86_linux_create_target): Likewise.
589 (x86_linux_add_target): Likewise.
590 * i386-linux-nat.c (x86-linux-nat.h): New include.
591 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
592 (PTRACE_SETREGSET): Likewise.
593 (arch_lwp_info): Now in x86-linux-nat.c.
594 (have_ptrace_getregset): Now in x86-linux-nat.h.
595 (x86_linux_dr_get): Now in x86-linux-nat.c.
596 (x86_linux_dr_set): Likewise.
597 (x86_linux_dr_get_addr): Likewise.
598 (x86_linux_dr_get_control): Likewise.
599 (x86_linux_dr_get_status): Likewise.
600 (update_debug_registers_callback): Likewise.
601 (x86_linux_dr_set_control): Likewise.
602 (x86_linux_dr_set_addr): Likewise.
603 (x86_linux_prepare_to_resume): Likewise.
604 (x86_linux_new_thread): Likewise.
605 (x86_linux_new_fork): Likewise.
606 (x86_linux_get_thread_area): Likewise.
607 (super_post_startup_inferior): Likewise.
608 (x86_linux_child_post_startup_inferior): Likewise.
609 (AMD64_LINUX_USER64_CS): Likewise.
610 (AMD64_LINUX_X32_DS): Likewise.
611 (x86_linux_read_description): Likewise.
612 (x86_linux_enable_btrace): Likewise.
613 (x86_linux_disable_btrace): Likewise.
614 (x86_linux_teardown_btrace): Likewise.
615 (x86_linux_read_btrace): Likewise.
616 (x86_linux_create_target): Likewise.
617 (x86_linux_add_target): Likewise.
619 2014-07-11 Gary Benson <gbenson@redhat.com>
621 * amd64-linux-nat.c: Comment and whitespace changes.
622 * i386-linux-nat.c: Comment and whitespace changes.
624 2014-07-11 Gary Benson <gbenson@redhat.com>
626 * amd64-linux-nat.c (x86_linux_create_target): New function.
627 (x86_linux_add_target): Likewise.
628 (_initialize_amd64_linux_nat): Delegate to the above new functions.
629 * i386-linux-nat.c (x86_linux_create_target): New function.
630 (x86_linux_add_target): Likewise.
631 (_initialize_i386_linux_nat): Delegate to the above new functions.
633 2014-07-11 Gary Benson <gbenson@redhat.com>
635 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
636 (ps_get_thread_area): Delegate to the above in 32-bit mode.
637 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
638 (ps_get_thread_area): Delegate to the above.
640 2014-07-11 Gary Benson <gbenson@redhat.com>
642 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
643 x86_linux_read_description. All uses updated. amd64-specific
644 code conditionalized. Conditionalized i386-specific code added.
645 Redundant cast removed.
646 * i386-linux-nat.c (i386_linux_read_description): Renamed to
647 x86_linux_read_description. All uses updated. i386-specific
648 code conditionalized. Conditionalized amd64-specific code added.
649 One sizeof replaced with the actual type it is describing.
651 2014-07-11 Gary Benson <gbenson@redhat.com>
653 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
654 x86_linux_dr_get. All uses updated.
655 (amd64_linux_dr_set): Renamed to
656 x86_linux_dr_set. All uses updated.
657 (amd64_linux_dr_get_addr): Renamed to
658 x86_linux_dr_get_addr. All uses updated.
659 (amd64_linux_dr_get_control): Renamed to
660 x86_linux_dr_get_control. All uses updated.
661 (amd64_linux_dr_get_status): Renamed to
662 x86_linux_dr_get_status. All uses updated.
663 (amd64_linux_dr_set_control): Renamed to
664 x86_linux_dr_set_control. All uses updated.
665 (amd64_linux_dr_set_addr): Renamed to
666 x86_linux_dr_set_addr. All uses updated.
667 (amd64_linux_prepare_to_resume): Renamed to
668 x86_linux_prepare_to_resume. All uses updated.
669 (amd64_linux_new_thread): Renamed to
670 x86_linux_new_thread. All uses updated.
671 (amd64_linux_new_fork): Renamed to
672 x86_linux_new_fork. All uses updated.
673 (amd64_linux_child_post_startup_inferior): Renamed to
674 x86_linux_child_post_startup_inferior. All uses updated.
675 (amd64_linux_enable_btrace): Renamed to
676 x86_linux_enable_btrace. All uses updated.
677 (amd64_linux_disable_btrace): Renamed to
678 x86_linux_disable_btrace. All uses updated.
679 (amd64_linux_teardown_btrace): Renamed to
680 x86_linux_teardown_btrace. All uses updated.
681 (amd64_linux_read_btrace): Renamed to
682 x86_linux_read_btrace. All uses updated.
683 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
684 x86_linux_dr_get. All uses updated.
685 (i386_linux_dr_set): Renamed to
686 x86_linux_dr_set. All uses updated.
687 (i386_linux_dr_get_addr): Renamed to
688 x86_linux_dr_get_addr. All uses updated.
689 (i386_linux_dr_get_control): Renamed to
690 x86_linux_dr_get_control. All uses updated.
691 (i386_linux_dr_get_status): Renamed to
692 x86_linux_dr_get_status. All uses updated.
693 (i386_linux_dr_set_control): Renamed to
694 x86_linux_dr_set_control. All uses updated.
695 (i386_linux_dr_set_addr): Renamed to
696 x86_linux_dr_set_addr. All uses updated.
697 (i386_linux_prepare_to_resume): Renamed to
698 x86_linux_prepare_to_resume. All uses updated.
699 (i386_linux_new_thread): Renamed to
700 x86_linux_new_thread. All uses updated.
701 (i386_linux_new_fork): Renamed to
702 x86_linux_new_fork. All uses updated.
703 (i386_linux_child_post_startup_inferior): Renamed to
704 x86_linux_child_post_startup_inferior. All uses updated.
705 (i386_linux_enable_btrace): Renamed to
706 x86_linux_enable_btrace. All uses updated.
707 (i386_linux_disable_btrace): Renamed to
708 x86_linux_disable_btrace. All uses updated.
709 (i386_linux_teardown_btrace): Renamed to
710 x86_linux_teardown_btrace. All uses updated.
711 (i386_linux_read_btrace): Renamed to
712 x86_linux_read_btrace. All uses updated.
714 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
716 * remote.c (extended_remote_post_attach): New function.
717 (init_extended_remote_ops): Install it as to_post_attach method.
719 2014-07-09 Pedro Alves <palves@redhat.com>
721 * infcmd.c (attach_command_post_wait): Don't call
722 target_terminal_inferior here.
723 (attach_command): Call it here instead.
725 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
727 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
729 * c-varobj.c (c_is_path_expr_parent): New function, moved core
730 from varobj.c, with additional checks.
731 (c_varobj_ops): Fill in is_path_expr_parent field.
732 (cplus_varobj_ops): Fill in is_path_expr_parent field.
733 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
735 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
737 (varobj_default_is_path_expr_parent): New function.
738 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
739 (varobj_default_is_path_expr_parent): Declare new function.
741 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
743 * infcmd.c (finish_backward): Turn internal error into normal error.
745 2014-07-07 Pedro Alves <palves@redhat.com>
748 * remote.c (async_handle_remote_sigint)
749 (async_handle_remote_sigint_twice): Call
750 gdb_call_async_signal_handler instead of
751 mark_async_signal_handler.
753 2014-07-07 Tom Tromey <tromey@redhat.com>
755 * target-delegates.c: Rebuild.
756 * target.c (target_info_record): Remove.
757 * record.c (info_record_command): Unconditionally call
759 * target.h (struct target_ops) <to_info_record>: Use
760 TARGET_DEFAULT_IGNORE.
761 (target_info_record): Remove.
763 2014-07-07 Tom Tromey <tromey@redhat.com>
765 * target.h (struct target_ops) <to_get_thread_local_address>: Use
766 TARGET_DEFAULT_NORETURN.
767 * target.c (generic_tls_error): New function.
768 (target_translate_tls_address): Don't search target stack.
769 * target-delegates.c: Rebuild.
770 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
772 * linux-thread-db.c (thread_db_get_thread_local_address):
773 Unconditionally call beneath target.
775 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
777 * cli/cli-logging.c (pop_output_files): Assign targerr to
780 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
782 * MAINTAINERS (Write After Approval): Update my email address.
784 2014-07-02 Gary Benson <gbenson@redhat.com>
786 * proc-service.c (ps_xfer_memory): Update comment.
787 (ps_pstop): Remove unused function.
788 (ps_pcontinue): Likewise.
789 (ps_lstop): Likewise.
790 (ps_lcontinue): Likewise.
791 (ps_lgetxregsize): Likewise.
792 (ps_lgetxregs): Likewise.
793 (ps_lsetxregs): Likewise.
795 (ps_ptread): Likewise.
796 (ps_ptwrite): Likewise.
798 2014-07-01 Mark Wielaard <mjw@redhat.com>
800 * dwarf2read.c (add_array_cv_type): New function.
801 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
802 (read_tag_volatile_type): Likewise.
804 2014-07-01 Tom Tromey <tromey@redhat.com>
806 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
807 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
808 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
809 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
810 * command.h (cmd_cfunc_ftype): Move earlier.
811 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
812 (add_com, add_info): Use cmd_cfunc_ftype.
814 2014-06-30 Tom Tromey <tromey@redhat.com>
816 * symtab.c (operator_chars): Make parameters and return type
818 (file_matches): Make "files" const.
819 (struct search_symbols_data) <files>: Now const.
820 (search_symbols): Make "regexp" and "files" parameters const.
822 (symtab_symbol_info): Remove cast.
823 (rbreak_command): Update.
824 * symtab.h (search_symbols): Update.
826 2014-06-27 Yao Qi <yao@codesourcery.com>
828 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
829 Change parameter type to 'struct thread_info *'. Caller
831 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
833 * dummy-frame.c (struct dummy_frame_id): New.
834 (dummy_frame_id_eq): New function.
835 (struct dummy_frame) <id>: Change its type to 'struct
837 (dummy_frame_push): Add parameter ptid and save it in
839 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
841 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
843 (lookup_dummy_frame): Change parameter type to 'struct
844 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
845 instead of frame_id_eq.
846 (dummy_frame_pop): Add parameter ptid. Callers updated.
847 Update comments. Compose dummy_frame_id and pass it to
849 (dummy_frame_discard): Add parameter ptid.
850 (dummy_frame_sniffer): Compose dummy_frame_id and call
851 dummy_frame_id_eq instead of frame_id_eq.
852 (fprint_dummy_frames): Print ptid.
853 * dummy-frame.h: Remove comments.
854 (dummy_frame_push): Add ptid in declaration.
855 (dummy_frame_pop, dummy_frame_discard): Likewise.
857 2014-06-26 Tom Tromey <tromey@redhat.com>
859 * cli/cli-cmds.c (error_no_arg): Make "why" const.
860 * command.h (error_no_arg): Update.
862 2014-06-26 Tom Tromey <tromey@redhat.com>
864 * cli/cli-setshow.c (do_set_command): Make "arg" const.
865 (do_show_command): Make "arg" const.
866 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
868 2014-06-26 Tom Tromey <tromey@redhat.com>
870 * record-full.c (record_full_get_bookmark): Make "args" const.
871 (record_full_goto_bookmark): Make "raw_bookmark" const.
872 * record.c (record_goto): New function.
873 (cmd_record_goto): Use it. Now static.
874 * record.h (record_goto): Declare.
875 (cmd_record_goto): Remove declaration.
876 * target-delegates.c: Rebuild.
877 * target.h (struct target_ops) <to_get_bookmark,
878 to_goto_bookmark>: Make parameter const.
880 2014-06-26 Tom Tromey <tromey@redhat.com>
882 * defs.h (generic_load): Update.
883 * m32r-rom.c (m32r_load_gen): Make "filename" const.
884 * monitor.c (monitor_load): Make "args" const.
885 * remote-m32r-sdi.c (m32r_load): Make "args" const.
886 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
888 (mips_load): Make "file" const.
889 * remote-sim.c (gdbsim_load): Make "args" const.
890 * remote.c (remote_load): Make "name" const.
891 * symfile.c (generic_load): Make "args" const.
892 * target-delegates.c: Rebuild.
893 * target.c (target_load): Make "arg" const.
894 (debug_to_load): Make "args" const.
895 * target.h (struct target_ops) <to_load>: Make parameter const.
896 (target_load): Update.
898 2014-06-26 Tom Tromey <tromey@redhat.com>
901 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
902 (dwarf2_physname, read_partial_die)
903 (guess_partial_die_structure_name, fixup_partial_die)
904 (guess_full_die_structure_name, anonymous_struct_prefix)
905 (dwarf2_name): Use per-BFD obstack.
907 2014-06-26 Yao Qi <yao@codesourcery.com>
909 * dummy-frame.c (dummy_frame_sniffer): Move local variables
910 dummyframe and this_id into inner block below.
912 2014-06-26 Yao Qi <yao@codesourcery.com>
914 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
915 with "signal_pass[0]" in the initialization of signal_pass.
917 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
919 * record-btrace.c (record_btrace_generating_corefile)
920 (record_btrace_prepare_to_generate_core)
921 (record_btrace_done_generating_core): New.
922 (record_btrace_xfer_partial, record_btrace_fetch_registers)
923 (record_btrace_store_registers, record_btrace_prepare_to_store):
924 Forward request when generating a core file.
925 (record_btrace_open): Set record_btrace_generating_corefile to zero.
926 (init_record_btrace_ops): Set to_prepare_to_generate_core and
927 to_done_generating_core.
929 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
931 * target.h (target_ops) <to_prepare_to_generate_core>
932 <to_done_generating_core>: New.
933 (target_prepare_to_generate_core, target_done_generating_core): New.
934 * target.c (target_prepare_to_generate_core)
935 (target_done_generating_core): New.
936 * target-delegates.c: Regenerate.
937 * gcore.c: (write_gcore_file): Rename to ...
938 (write_gcore_file_1): ...this.
939 (write_gcore_file): Call target_prepare_to_generate_core
940 and target_done_generating_core.
942 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
944 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
945 * gcore.c (write_gcore_file): Free memory returned from
947 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
948 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
950 2014-06-24 Yao Qi <yao@codesourcery.com>
952 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
953 (arm_linux_init_abi): Set skip_trampoline_code with
954 gdbarch_skip_trampoline_code instead of
955 find_solib_trampoline_target.
957 2014-06-24 Yao Qi <yao@codesourcery.com>
959 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
960 arm_skip_bx_reg returns non-zero.
962 2014-06-24 Yao Qi <yao@codesourcery.com>
964 * arm-tdep.c (arm_skip_bx_reg): New function.
965 (arm_skip_stub): Call arm_skip_bx_reg.
967 2014-06-23 Don Breazeal <donb@codesourcery.com>
969 * MAINTAINERS: Add myself as write-after-approval maintainer.
971 2014-06-23 Pedro Alves <palves@redhat.com>
973 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
974 DR_CONTROL before setting DR0..DR3.
975 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
976 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
977 bits of DR_CONTROL related to the debug register slot being
978 disabled. If all slots are vacant, clear local slowdown as well,
979 and assert DR_CONTROL is 0.
981 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
983 * python/lib/gdb/command/xmethods.py
984 (get_method_matchers_in_loci): Lookup xmethod matchers in the
985 current progspace only if the string "progspace" matches LOCUS_RE.
987 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
989 Fix --with-system-readline with readline-6.3 patch 5.
990 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
991 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
994 2014-06-20 Tom Tromey <tromey@redhat.com>
996 * dwarf2read.c (dw2_get_real_path): Use correct type in
998 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
1000 2014-06-20 Gary Benson <gbenson@redhat.com>
1002 * common/gdb_thread_db.h: Moved to nat. All includes updated.
1003 * common/glibc_thread_db.h: Likewise.
1004 * common/i386-cpuid.h: Likewise.
1005 * common/i386-gcc-cpuid.h: Likewise.
1006 * common/linux-btrace.h: Likewise.
1007 * common/linux-osdata.h: Likewise.
1008 * common/linux-procfs.h: Likewise.
1009 * common/linux-ptrace.h: Likewise.
1010 * common/mips-linux-watch.h: Likewise.
1011 * common/linux-btrace.c: Moved to nat.
1012 * common/linux-osdata.c: Likewise.
1013 * common/linux-procfs.c: Likewise.
1014 * common/linux-ptrace.c: Likewise.
1015 * common/mips-linux-watch.c: Likewise.
1016 * nat/gdb_thread_db.h: Moved from common.
1017 * nat/glibc_thread_db.h: Likewise.
1018 * nat/i386-cpuid.h: Likewise.
1019 * nat/i386-gcc-cpuid.h: Likewise.
1020 * nat/linux-btrace.c: Likewise.
1021 * nat/linux-btrace.h: Likewise.
1022 * nat/linux-osdata.c: Likewise.
1023 * nat/linux-osdata.h: Likewise.
1024 * nat/linux-procfs.c: Likewise.
1025 * nat/linux-procfs.h: Likewise.
1026 * nat/linux-ptrace.c: Likewise.
1027 * nat/linux-ptrace.h: Likewise.
1028 * nat/mips-linux-watch.c: Likewise.
1029 * nat/mips-linux-watch.h: Likewise.
1030 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
1031 (object file files): Reordered.
1032 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
1033 of glibc_thread_db.h.
1035 2014-06-20 Gary Benson <gbenson@redhat.com>
1037 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
1038 (i386_dr_low_type): Moved to nat/i386-dregs.h.
1039 (i386_dr_low): Likewise.
1040 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
1041 (i386_dr_low_set_addr): Likewise.
1042 (i386_dr_low_get_addr): Likewise.
1043 (i386_dr_low_can_set_control): Likewise.
1044 (i386_dr_low_set_control): Likewise.
1045 (i386_dr_low_get_control): Likewise.
1046 (i386_dr_low_get_status): Likewise.
1047 (i386_get_debug_register_length): Likewise.
1048 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
1049 (i386_dr_low): Likewise.
1050 * nat/i386-dregs.c (i386-low.h): Remove include.
1051 (i386-nat.h): Likewise.
1052 (nat/i386-dregs.h): New include.
1053 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
1054 (i386_dr_low_set_addr): Likewise.
1055 (i386_dr_low_get_addr): Likewise.
1056 (i386_dr_low_can_set_control): Likewise.
1057 (i386_dr_low_set_control): Likewise.
1058 (i386_dr_low_get_control): Likewise.
1059 (i386_dr_low_get_status): Likewise.
1060 (i386_get_debug_register_length): Likewise.
1061 (debug_hw_points): Likewise.
1063 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
1065 * Makefile.in (SFILES): Add d-exp.y.
1066 (YYFILES): Add d-exp.c.
1067 (YYOBJ): Add d-exp.o.
1068 (local-maintainer-clean): Delete d-exp.c.
1069 * d-exp.y: New file.
1070 * d-lang.h (d_parse): New declaration.
1071 (d_error): New declaration.
1072 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
1073 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
1074 PREC_ORDER operators.
1075 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
1077 2014-06-19 Yao Qi <yao@codesourcery.com>
1079 * gdbthread.h (any_running): Remove the declaration.
1080 * thread.c (any_running): Remove.
1082 2014-06-19 Yao Qi <yao@codesourcery.com>
1084 * gdbthread.h (struct thread_info) <state>: Change its type to
1085 'enum thread_state'. Update comments.
1087 2014-06-19 Pedro Alves <palves@redhat.com>
1089 * gdbthread.h (ALL_THREADS): Delete.
1090 (ALL_NON_EXITED_THREADS): New macro.
1091 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
1092 instead of ALL_THREADS.
1093 * infrun.c (find_thread_needs_step_over)
1094 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
1095 instead of ALL_THREADS.
1096 * record-btrace.c (record_btrace_open)
1097 (record_btrace_stop_recording, record_btrace_close)
1098 (record_btrace_is_replaying, record_btrace_resume)
1099 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
1100 * remote.c (append_pending_thread_resumptions): Likewise.
1101 * thread.c (thread_apply_all_command): Likewise.
1103 2014-06-19 Gary Benson <gbenson@redhat.com>
1105 * i386-nat.c (i386_stopped_by_watchpoint):
1106 Use i386_dr_stopped_by_watchpoint.
1107 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
1108 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
1110 2014-06-19 Gary Benson <gbenson@redhat.com>
1112 * nat/i386-dregs.c: New file.
1113 * Makefile.in (i386-dregs.o): New rule.
1114 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
1115 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
1116 * config/i386/darwin.mh (NATDEPFILES): Likewise.
1117 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
1118 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
1119 * config/i386/go32.mh (NATDEPFILES): Likewise.
1120 * config/i386/linux.mh (NATDEPFILES): Likewise.
1121 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1122 * config/i386/mingw.mh (NATDEPFILES): Likewise.
1123 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
1124 * i386-nat.h (debug_hw_points): New declaration.
1125 * i386-nat.c (breakpoint.h): Remove include.
1126 (command.h): Likewise.
1127 (target.h): Likewise.
1128 (gdb_assert.h): Likewise.
1129 (debug_hw_points): Made nonstatic.
1130 (debug_printf): Now in i386-dregs.c.
1131 (TARGET_HAS_DR_LEN_8): Likewise.
1132 (DR_CONTROL_SHIFT): Likewise.
1133 (DR_CONTROL_SIZE): Likewise.
1134 (DR_RW_EXECUTE): Likewise.
1135 (DR_RW_WRITE): Likewise.
1136 (DR_RW_READ): Likewise.
1137 (DR_RW_IORW): Likewise.
1138 (DR_LEN_1): Likewise.
1139 (DR_LEN_2): Likewise.
1140 (DR_LEN_4): Likewise.
1141 (DR_LEN_8): Likewise.
1142 (DR_LOCAL_ENABLE_SHIFT): Likewise.
1143 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
1144 (DR_ENABLE_SIZE): Likewise.
1145 (DR_LOCAL_SLOWDOWN): Likewise.
1146 (DR_GLOBAL_SLOWDOWN): Likewise.
1147 (DR_CONTROL_RESERVED): Likewise.
1148 (I386_DR_CONTROL_MASK): Likewise.
1149 (I386_DR_VACANT): Likewise.
1150 (I386_DR_LOCAL_ENABLE): Likewise.
1151 (I386_DR_GLOBAL_ENABLE): Likewise.
1152 (I386_DR_DISABLE): Likewise.
1153 (I386_DR_SET_RW_LEN): Likewise.
1154 (I386_DR_GET_RW_LEN): Likewise.
1155 (I386_DR_WATCH_HIT): Likewise.
1156 (i386_wp_op_t): Likewise.
1157 (i386_show_dr): Likewise.
1158 (i386_length_and_rw_bits): Likewise.
1159 (i386_insert_aligned_watchpoint): Likewise.
1160 (i386_remove_aligned_watchpoint): Likewise.
1161 (i386_handle_nonaligned_watchpoint): Likewise.
1162 (i386_update_inferior_debug_regs): Likewise.
1163 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
1164 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
1165 (i386_region_ok_for_watchpoint):
1166 Use i386_dr_region_ok_for_watchpoint.
1167 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
1169 2014-06-19 Gary Benson <gbenson@redhat.com>
1171 * i386-nat.c (i386_insert_hw_breakpoint): Use
1172 i386_insert_watchpoint.
1173 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
1175 2014-06-19 Gary Benson <gbenson@redhat.com>
1177 * i386-nat.c (i386_dr_show): Renamed to
1178 i386_show_dr and made static. All uses updated.
1179 (i386_dr_length_and_rw_bits): Renamed to
1180 i386_length_and_rw_bits and made static.
1182 (i386_dr_insert_aligned_watchpoint): Renamed to
1183 i386_insert_aligned_watchpoint and made static.
1185 (i386_dr_remove_aligned_watchpoint): Renamed to
1186 i386_remove_aligned_watchpoint and made static.
1188 (i386_dr_update_inferior_debug_regs): Renamed to
1189 i386_update_inferior_debug_regs and made static.
1191 * nat/i386-dregs.h (i386_dr_show): Removed.
1192 (i386_dr_length_and_rw_bits): Likewise.
1193 (i386_dr_insert_aligned_watchpoint): Likewise.
1194 (i386_dr_remove_aligned_watchpoint): Likewise.
1195 (i386_dr_update_inferior_debug_regs): Likewise.
1197 2014-06-19 Gary Benson <gbenson@redhat.com>
1199 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
1200 * configure: Regenerate.
1201 * config.in: Likewise.
1202 * main.c (signal.h): New include.
1203 (setup_alternate_signal_stack): New function.
1204 (captured_main): Call the above.
1205 * cp-support.c (signal.h): New include.
1206 (catch_demangler_crashes): New flag.
1207 (SIGJMP_BUF): New define.
1208 (SIGSETJMP): Likewise.
1209 (SIGLONGJMP): Likewise.
1210 (gdb_demangle_jmp_buf): New static global.
1211 (gdb_demangle_attempt_core_dump): Likewise.
1212 (gdb_demangle_signal_handler): New function.
1213 (gdb_demangle): If catch_demangler_crashes is set, install the
1214 above signal handler before calling bfd_demangle, and restore
1215 the original signal handler afterwards. Display the offending
1216 symbol and call demangler_warning the first time a segmentation
1218 (_initialize_cp_support): New maint set/show command.
1220 2014-06-19 Gary Benson <gbenson@redhat.com>
1222 * utils.h (resource_limit_kind): New enum.
1223 (can_dump_core): New declaration.
1224 (warn_cant_dump_core): Likewise.
1225 (dump_core): Likewise.
1226 * utils.c (dump_core): Made nonstatic. Added new
1227 parameter "limit_kind".
1228 (can_dump_core): Made nonstatic. Moved printing code to...
1229 (warn_cant_dump_core): New function.
1230 (can_dump_core_warn): Likewise.
1231 (internal_vproblem): Replace calls to can_dump_core with
1232 calls to can_dump_core_warn. Supply new argument to each.
1234 2014-06-19 Gary Benson <gbenson@redhat.com>
1236 * utils.h (demangler_vwarning): New declaration.
1237 (demangler_warning): Likewise.
1238 * utils.c (struct internal_problem)
1239 <user_settable_should_quit>: New field.
1240 <user_settable_should_dump_core>: Likewise
1241 (internal_error_problem): Add values for above new fields.
1242 (internal_warning_problem): Likewise.
1243 (demangler_warning_problem): New static global.
1244 (demangler_vwarning): New function.
1245 (demangler_warning): Likewise.
1246 (add_internal_problem_command): Selectively add commands.
1247 (_initialize_utils): New internal problem command.
1248 * maint.c (maintenance_demangler_warning): New function.
1249 (_initialize_maint_cmds): New command.
1251 2014-06-18 Tom Tromey <tromey@redhat.com>
1253 * f-valprint.c (info_common_command_for_block): Update.
1254 * symtab.h (struct general_symbol_info) <common_block>: Now
1257 2014-06-18 Tom Tromey <tromey@redhat.com>
1259 * symtab.h (struct symtab) <blockvector>: Now const.
1260 * ada-lang.c (ada_add_global_exceptions): Update.
1261 * buildsym.c (augment_type_symtab): Update.
1262 * dwarf2read.c (dw2_lookup_symbol): Update.
1263 * jit.c (finalize_symtab): Update.
1264 * jv-lang.c (add_class_symtab_symbol): Update.
1265 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
1267 * objfiles.c (objfile_relocate1): Update.
1268 * psymtab.c (lookup_symbol_aux_psymtabs)
1269 (maintenance_check_psymtabs): Update.
1270 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1272 * spu-tdep.c (spu_catch_start): Update.
1273 * symmisc.c (dump_symtab_1): Update.
1274 * symtab.c (lookup_global_symbol_from_objfile)
1275 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1276 (basic_lookup_transparent_type_quick)
1277 (basic_lookup_transparent_type, find_pc_sect_symtab)
1278 (find_pc_sect_line, search_symbols): Update.
1279 * block.c (find_block_in_blockvector): Make "bl" const.
1280 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1282 (blockvector_contains_pc): Make "bv" const.
1283 (block_for_pc_sect): Update.
1284 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1285 (blockvector_contains_pc): Update.
1286 * breakpoint.c (resolve_sal_pc): Update.
1287 * inline-frame.c (block_starting_point_at): Update.
1289 2014-06-18 Tom Tromey <tromey@redhat.com>
1291 * completer.c (complete_line): Make "line_buffer" const.
1292 * completer.h (complete_line): Update.
1294 2014-06-18 Tom Tromey <tromey@redhat.com>
1296 * symtab.c (add_macro_name): Remove unneeded cast.
1298 2014-06-18 Tom Tromey <tromey@redhat.com>
1300 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1301 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1303 2014-06-18 Tom Tromey <tromey@redhat.com>
1305 * probe.c (info_probes_for_ops): Make "arg" const.
1306 * probe.h (info_probes_for_ops): Update.
1308 2014-06-18 Tom Tromey <tromey@redhat.com>
1310 * varobj.c (varobj_create): Update.
1311 * valops.c (value_of_this): Update.
1312 * tracepoint.c (add_local_symbols, scope_info): Update.
1313 * symtab.h (struct general_symbol_info) <block>: Now const.
1314 * symtab.c (skip_prologue_sal)
1315 (default_make_symbol_completion_list_break_on)
1316 (skip_prologue_using_sal): Update.
1317 * stack.h (iterate_over_block_locals)
1318 (iterate_over_block_local_vars): Update.
1319 * stack.c (print_frame_args): Update.
1320 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1322 (get_selected_block): Make return type const.
1323 * python/py-frame.c (frapy_block): Update.
1324 * python/py-block.c (gdbpy_block_for_pc): Update.
1325 * p-exp.y (%union) <bval>: Now const.
1326 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1327 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1328 * m2-exp.y (%union) <bval>: Now const.
1329 * linespec.c (get_current_search_block): Make return type const.
1330 (create_sals_line_offset, find_label_symbols): Update.
1331 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1333 (block_starting_point_at): Make "block" const.
1334 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1335 (check_exception_resume): Update.
1336 * guile/scm-frame.c (gdbscm_frame_block): Update.
1337 * guile/scm-block.c (gdbscm_lookup_block): Update.
1338 * frame.h (get_frame_block): Update.
1339 (get_selected_block): Make return type const.
1340 * frame.c (frame_id_inner): Update.
1341 * f-valprint.c (info_common_command_for_block)
1342 (info_common_command): Update.
1343 * dwarf2loc.c (dwarf2_find_location_expression)
1344 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1345 (locexpr_describe_location_piece): Update.
1346 * c-exp.y (%union) <bval>: Now const.
1347 * breakpoint.c (resolve_sal_pc): Update.
1348 * blockframe.c (get_frame_block):Make return type const.
1349 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1350 (block_innermost_frame): Update.
1351 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1352 (block_for_pc, block_for_pc_sect): Update.
1353 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1355 (block_for_pc_sect, block_for_pc): Make return type const.
1356 * ax-gdb.c (gen_expr): Update.
1357 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1358 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1359 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1360 (ada_read_var_value): Update.
1361 * ada-exp.y (struct name_info) <block>: Now const.
1363 (block_lookup): Constify.
1365 2014-06-18 Gary Benson <gbenson@redhat.com>
1367 * nat/i386-dregs.h: New file.
1368 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1369 * i386-nat.h (i386-dregs.h): New include.
1370 (DR_FIRSTADDR): Now in i386-dregs.h.
1371 (DR_LASTADDR): Likewise.
1372 (DR_NADDR): Likewise.
1373 (DR_STATUS): Likewise.
1374 (DR_CONTROL): Likewise.
1375 (i386_debug_reg_state): Likewise.
1376 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1378 2014-06-18 Don Breazeal <donb@codesourcery.com>
1380 * breakpoint.c (set_longjmp_breakpoint): Call
1381 momentary_breakpoint_from_master with additional argument.
1382 (set_longjmp_breakpoint_for_call_dummy): Call
1383 momentary_breakpoint_from_master with additional argument.
1384 (set_std_terminate_breakpoint): Call
1385 momentary_breakpoint_from_master with additional argument.
1386 (momentary_breakpoint_from_master): Add argument to function
1387 definition and use it to initialize structure member flag.
1388 (clone_momentary_breakpoint): Call
1389 momentary_breakpoint_from_master with additional argument.
1390 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1391 member flags set in momentary_breakpoint_from_master.
1393 2014-06-18 Gary Benson <gbenson@redhat.com>
1395 * i386-nat.c (i386_show_dr): Renamed to
1396 i386_dr_show and made nonstatic. All uses updated.
1397 (i386_length_and_rw_bits): Renamed to
1398 i386_dr_length_and_rw_bits and made nonstatic.
1400 (i386_insert_aligned_watchpoint): Renamed to
1401 i386_dr_insert_aligned_watchpoint and made nonstatic.
1403 (i386_remove_aligned_watchpoint): Renamed to
1404 i386_dr_remove_aligned_watchpoint and made nonstatic.
1406 (i386_update_inferior_debug_regs): Renamed to
1407 i386_dr_update_inferior_debug_regs and made nonstatic.
1410 2014-06-18 Gary Benson <gbenson@redhat.com>
1412 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1413 (i386_dr_low_can_set_control): Likewise.
1414 (i386_dr_low_set_addr): Likewise.
1415 (i386_dr_low_set_control): Likewise.
1416 (i386_dr_low_get_addr): Likewise.
1417 (i386_dr_low_get_status): Likewise.
1418 (i386_dr_low_get_control): Likewise.
1419 (i386_insert_aligned_watchpoint): Use new macros.
1420 (i386_update_inferior_debug_regs): Likewise.
1421 (i386_stopped_data_address): Likewise.
1423 2014-06-18 Gary Benson <gbenson@redhat.com>
1425 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1426 New parameter. All uses updated.
1428 2014-06-18 Gary Benson <gbenson@redhat.com>
1430 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1433 2014-06-18 Gary Benson <gbenson@redhat.com>
1435 * i386-nat.c (debug_printf): New macro.
1436 (i386_get_debug_register_length): Likewise.
1437 (TARGET_HAS_DR_LEN_8): Use above macro.
1438 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1439 and printf_unfiltered. Use phex to format values.
1441 2014-06-18 Gary Benson <gbenson@redhat.com>
1443 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1446 2014-06-18 Gary Benson <gbenson@redhat.com>
1448 * i386-nat.c: Comment changes.
1450 2014-06-18 Gary Benson <gbenson@redhat.com>
1452 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1454 2014-06-18 Gary Benson <gbenson@redhat.com>
1456 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1457 (i386_insert_aligned_watchpoint): Likewise.
1458 (i386_remove_aligned_watchpoint): Likewise.
1459 (i386_handle_nonaligned_watchpoint): Likewise.
1461 2014-06-18 Gary Benson <gbenson@redhat.com>
1463 * i386-nat.c: Whitespace changes.
1465 2014-06-17 Samuel Bronson <naesten@gmail.com>
1467 * MAINTAINERS: Update Roland McGrath's email address.
1468 Thanks to Sergio Durigan Junior for pointing out that he left
1469 Red Hat a while ago, and giving me a current address.
1471 2014-06-17 Tom Tromey <tromey@redhat.com>
1473 * utils.h (savestring): Remove declaration.
1475 2014-06-17 Tom Tromey <tromey@redhat.com>
1477 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1479 2014-06-16 Keith Seitz <keiths@redhat.com>
1482 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1483 to update the varobj if inferior_ptid is null_ptid.
1485 2014-06-16 Tom Tromey <tromey@redhat.com>
1487 * target.h (struct target_ops) <to_info_proc>: Make parameter
1489 (target_info_proc): Update.
1490 * target.c (target_info_proc): Make "args" const.
1491 * procfs.c (procfs_info_proc): Update.
1492 * linux-tdep.c (linux_info_proc): Update.
1493 (linux_core_info_proc_mappings): Make "args" const.
1494 (linux_core_info_proc): Update.
1495 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1496 * gdbarch.c: Rebuild.
1497 * gdbarch.h: Rebuild.
1498 * corelow.c (core_info_proc): Update.
1500 2014-06-16 Tom Tromey <tromey@redhat.com>
1502 * target.h (struct target_ops) <to_disconnect>: Make parameter
1504 (target_disconnect): Update.
1505 * target.c (target_disconnect): Make "args" const.
1506 * target-delegates.c: Rebuild.
1507 * remote.c (remote_disconnect): Update.
1508 * record.h (record_disconnect): Update.
1509 * record.c (record_disconnect): Update.
1510 * inf-child.c (inf_child_disconnect): Update.
1512 2014-06-16 Tom Tromey <tromey@redhat.com>
1514 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1515 * target.c (debug_to_rcmd, default_rcmd): Update.
1516 * target-delegates.c: Rebuild.
1517 * remote.c (remote_rcmd): Update.
1518 * monitor.c (monitor_rcmd): Update.
1520 2014-06-16 Pedro Alves <palves@redhat.com>
1522 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1523 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1524 have OBJF_SHARED set.
1525 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1526 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1527 instead of OBJF_USERLOADED.
1528 * objfiles.h (OBJF_SHARED): Update comment.
1529 (userloaded_objfile_contains_address_p): Rename to ...
1530 (shared_objfile_contains_address_p): ... this, and update
1532 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1534 (remove_symbol_file_command): Skip objfiles that don't have
1537 2014-06-16 Tom Tromey <tromey@redhat.com>
1539 * minsyms.h (prim_record_minimal_symbol)
1540 (prim_record_minimal_symbol_and_info): Update comments.
1542 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1544 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1545 or --without-guile, according to how GDB was built.
1547 2014-06-13 Tom Tromey <tromey@redhat.com>
1549 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1551 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1553 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1555 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1556 help_list.Pass all_commands, not -1, to help_list.
1557 * cli/cli-dump.c (dump_command, append_command)
1558 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1559 (binary_dump_command, binary_append_command): Pass all_commands,
1560 not -1, to help_list.
1561 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1563 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1565 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1567 * top.c (set_history): Pass all_commands, not -1, to help_list.
1568 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1569 all_commands, not -1, to help_list.
1570 * symfile.c (overlay_command): Pass all_commands, not -1, to
1572 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1574 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1576 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1578 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1579 not -1, to help_list.
1580 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1581 not -1, to help_list.
1582 * maint.c (maintenance_command, maintenance_info_command)
1583 (maintenance_print_command, maintenance_set_cmd): Pass
1584 all_commands, not -1, to help_list.
1585 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1587 * language.c (set_check): Pass all_commands, not -1, to help_list.
1588 * infcmd.c (unset_command): Pass all_commands, not -1, to
1590 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1592 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1594 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1596 * breakpoint.c (save_command): Pass all_commands, not -1, to
1598 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1599 all_commands, not -1, to help_list.
1601 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1603 * regcache.c (struct register_to_invalidate): New structure.
1604 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1606 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1608 2014-06-12 Yao Qi <yao@codesourcery.com>
1610 * varobj.c (varobj_get_num_children): Call
1611 varobj_is_dynamic_p.
1612 (varobj_list_children): Likewise.
1613 (varobj_update): Likewise. Update comments.
1615 2014-06-12 Yao Qi <yao@codesourcery.com>
1617 * varobj.c (varobj_pretty_printed_p): Rename to ...
1618 (varobj_is_dynamic_p): ... this. New function.
1619 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1620 (varobj_is_dynamic_p): Declare.
1621 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1622 (mi_print_value_p, varobj_update_one): Likewise.
1624 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1625 Yao Qi <yao@codesourcery.com>
1627 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1628 (varobj_get_iterator): Wrap up code for pretty-printer by
1629 "#if HAVE_PYTHON" and "#endif".
1630 (update_dynamic_varobj_children): Likewise.
1632 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1633 Yao Qi <yao@codesourcery.com>
1635 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1636 gdb_python_initialized is false. Move some code from varobj.c.
1637 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1638 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1639 (struct varobj_item): Moved to varobj-iter.h".
1640 (varobj_clear_saved_item): New function.
1641 (update_dynamic_varobj_children): Move python-related code to
1643 (free_variable): Call varobj_clear_saved_item and
1646 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1647 Yao Qi <yao@codesourcery.com>
1649 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1650 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1651 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1652 (py-varobj.o): New rule.
1653 * python/py-varobj.c: New file.
1654 * python/python-internal.h (py_varobj_get_iterator): Declare.
1655 * varobj-iter.h: New file.
1656 * varobj.c: Include "varobj-iter.h"
1657 (struct varobj) <child_iter>: Change its type from "PyObject *"
1658 to "struct varobj_iter *".
1659 <saved_item>: Likewise.
1660 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1661 [HAVE_PYTHON] (varobj_get_iterator): New function.
1662 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1663 python-specific code to python/py-varobj.c.
1664 (install_visualizer): Call varobj_iter_delete instead of
1666 * varobj.h (varobj_ensure_python_env): Declare.
1668 2014-06-12 Yao Qi <yao@codesourcery.com>
1670 * varobj.c (struct varobj_item): New structure.
1671 (create_child_with_value): Update declaration.
1672 (varobj_add_child): Replace arguments 'name' and 'value' with
1673 'item'. All callers updated.
1674 (install_dynamic_child): Likewise.
1675 (update_dynamic_varobj_children): Likewise.
1676 (varobj_add_child): Likewise.
1677 (create_child_with_value): Likewise.
1679 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1681 * NEWS: Create a new section for the next release branch.
1682 Rename the section of the current branch, now that it has
1685 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1687 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1688 * version.in: Bump version to 7.8.50.DATE-cvs.
1690 2014-06-11 Pedro Alves <palves@redhat.com>
1693 * ser-mingw.c (net_windows_socket_check_pending): New function.
1694 (net_windows_select_thread): Ignore spurious wakeups. Use
1695 net_windows_socket_check_pending.
1696 (net_windows_wait_handle): Check for pending events with
1697 ioctlsocket, through net_windows_socket_check_pending, instead of
1698 checking the socket's event.
1700 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1702 * python/python-internal.h (gdb_PyObject_GetAttrString)
1703 (gdb_PyObject_HasAttrString): New inline function definitions.
1704 * py-value.c (get_field_flag): Remove the now unnecessary cast to
1705 char * of the second argument to PyObject_GetAttrString.
1707 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1709 * serial.c (serial_write): Fix index of character to be printed
1710 in call to serial_logchar when serial debug traces are enabled.
1712 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1714 * gdbtypes (resolve_dynamic_range): Add function description.
1716 2014-06-09 Pedro Alves <palves@redhat.com>
1718 * linux-nat.c (linux_child_follow_fork): Initialize status with
1719 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
1720 inner block. Only pass the signal to PTRACE_DETACH if in pass
1723 2014-06-09 Gary Benson <gbenson@redhat.com>
1725 * common/signals.c (gdb_signal_from_host): Reorder to separate
1726 the always-available ANSI-standard signals from the signals that
1728 (do_gdb_signal_to_host): Likewise.
1729 * proc-events.c (signal_table): Likewise.
1731 2014-06-08 Hui Zhu <hui@codesourcery.com>
1733 * common/linux-ptrace.c (linux_disable_event_reporting): New
1735 * common/linux-ptrace.h (linux_disable_event_reporting): New
1737 * linux-nat.c (linux_child_follow_fork): Do a single step before
1740 2014-06-07 Keith Seitz <keiths@redhat.com>
1744 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1745 from symbol_matches_domain in symtab.c. All local callers
1746 of symbol_matches_domain updated.
1747 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1748 search STRUCT_DOMAIN.
1749 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1750 independently. standard_lookup will do that automatically.
1751 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1752 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1753 (cp_lookup_symbol_in_namespace): Likewise.
1754 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1755 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1756 may return a STRUCT_DOMAIN match.
1757 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1758 * cp-support.c: Include language.h.
1759 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1761 * psymtab.c (match_partial_symbol): Compare the requested
1762 domain with the symbol's domain directly.
1763 (lookup_partial_symbol): Likewise.
1764 * symtab.c (lookup_symbol_in_language): Explain when/why
1765 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1766 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1767 appropriate languages.
1768 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1769 and moved to ada-lang.c
1770 (lookup_block_symbol): Explain that this function only returns
1771 symbol matching the requested DOMAIN.
1772 Compare the requested domain with the symbol's domain directly.
1773 (iterate_over_symbols): Compare the requested domain with the
1774 symbol's domain directly.
1775 * symtab.h (symbol_matches_domain): Remove.
1777 2014-06-06 Doug Evans <xdje42@gmail.com>
1779 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
1780 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
1781 (gdbscm_guile_version_is_at_least): Declare.
1782 (gdbscm_scm_string_to_int): Declare.
1783 * guile/guile.c (gdbscm_guile_major_version): New global.
1784 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
1785 (guile_datadir): New static global.
1786 (gdbscm_guile_data_directory): New function.
1787 (initialize_scheme_side): Update.
1788 (misc_guile_functions): Add guile-data-directory.
1789 (initialize_gdb_module): Fetch guile version number.
1790 * guile/lib/gdb.scm: Remove call to add-to-load-path.
1791 * guile/lib/gdb/init.scm (%initialize!): Ditto.
1792 * guile/lib/gdb/boot.scm: Use guile-data-directory.
1793 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
1795 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
1796 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
1797 * guile/scm-value.c (gdbscm_value_to_string): Only call
1798 scm_port_conversion_strategy if Guile version >= 2.0.6.
1800 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
1802 * main.c (print_gdb_help): Add -q and --silent.
1804 2014-06-06 Gary Benson <gbenson@redhat.com>
1806 * common/signals.c: Remove preprocessor conditionals for
1807 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
1808 SIGSEGV and SIGTERM.
1809 * proc-events.c: Likewise.
1811 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
1813 * symfile.c (symfile_free_objfile): Remove restriction to
1815 * symfile-mem.c (symbol_file_add_from_memory): Call
1816 add_target_sections_of_objfile.
1818 2014-06-05 Ludovic Courtès <ludo@gnu.org>
1820 * guile/scm-value.c (gdbscm_history_append_x): Use
1821 'vlscm_get_value_smob_arg_unsafe' instead of
1822 'vlscm_scm_to_value'.
1824 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
1827 * utils.c (printchar): Don't escape at all if quoter is NUL.
1828 Update function documentation to clarify effect of parameter
1830 * remote.c (escape_buffer): Pass '\\' as the quoter to
1831 fputstrn_unfiltered.
1832 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
1833 generate the output.
1834 (mi_solib_unloaded): Same.
1836 2014-06-05 Joel Brobecker <brobecker@adacore.com>
1838 * development.sh: Delete.
1839 * Makefile.in (config.status): Adjust dependency on development.sh.
1840 * configure.ac: Adjust development.sh source call.
1841 * configure: Regenerate.
1843 2014-06-04 Doug Evans <xdje42@gmail.com>
1845 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
1846 is_scheme_bkpt, spec.
1847 (bpscm_make_breakpoint_smob): Initialize new members.
1848 (gdbscm_create_breakpoint_x): Split into two ...
1849 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
1850 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
1851 (scheme_function breakpoint_functions): Update.
1852 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
1853 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
1854 register-breakpoint!.
1856 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
1859 * mem-break.c (z_type_supported): Return zero if
1860 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
1862 2014-06-04 Tom Tromey <tromey@redhat.com>
1864 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1865 value_from_contents_and_address_unresolved.
1866 (ada_template_to_fixed_record_type_1): Likewise.
1867 (ada_which_variant_applies): Likewise.
1868 * value.h (value_from_contents_and_address_unresolved): Declare.
1869 * value.c (value_from_contents_and_address_unresolved): New
1871 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
1872 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
1873 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
1875 2014-06-04 Tom Tromey <tromey@redhat.com>
1877 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
1879 2014-06-04 Tom Tromey <tromey@redhat.com>
1881 * procfs.c (procfs_attach): Make "args" const.
1882 * windows-nat.c (windows_attach): Make "args" const.
1883 * nto-procfs.c (procfs_attach): Make "args" const.
1884 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
1885 * go32-nat.c (go32_attach): Make "args" const.
1886 * gnu-nat.c (gnu_attach): Make "args" const.
1887 * darwin-nat.c (darwin_attach): Make "args" const.
1888 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
1889 * linux-nat.c (linux_nat_attach): Make "args" const.
1890 * remote.c (extended_remote_attach_1, extended_remote_attach):
1892 * target.h (struct target_ops) <to_attach>: Make "args" const.
1893 (find_default_attach): Likewise.
1894 * utils.c (parse_pid_to_attach): Make "args" const.
1895 * utils.h (parse_pid_to_attach): Update.
1897 2014-06-04 Tom Tromey <tromey@redhat.com>
1899 * target-delegates.c: Rebuild.
1900 * target.c (default_thread_address_space): New function.
1901 (target_thread_address_space): Simplify.
1902 * target.h (struct target_ops) <to_thread_address_space>: Add
1903 TARGET_DEFAULT_FUNC.
1905 2014-06-04 Doug Evans <xdje42@gmail.com>
1907 * guile/scm-type.c (type_smob): Remove duplicate typedef.
1909 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
1911 * record-btrace.c: Include event-loop.h and inf-loop.h.
1912 (record_btrace_resume_exec_dir)
1913 (record_btrace_async_inferior_event_handler)
1914 (record_btrace_handle_async_inferior_event): New.
1915 (record_btrace_open): Create async event handler.
1916 (record_btrace_close): Delete async event handler.
1917 (record_btrace_resume): Set record_btrace_resume_exec_dir,
1918 Mark async event handler.
1919 (record_btrace_execution_direction): New.
1920 (init_record_btrace_ops): Initialize to_execution_direction.
1922 2014-06-03 Doug Evans <xdje42@gmail.com>
1924 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
1925 (gdbscm_make_parameter): Ditto.
1927 2014-06-03 Doug Evans <dje@google.com>
1929 * exec.c (exec_close_1): Call clear_section_table instead of
1930 resize_section_table.
1931 (clear_section_table): New function.
1932 (resize_section_table): Make static. Rename arg num_added to
1934 * exec.h (clear_section_table): Declare.
1935 (resize_section_table): Delete.
1936 * progspace.c (release_program_space): Call clear_section_table
1937 instead of resize_section_table.
1939 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1941 * NEWS (Python Scripting): Add entry about the new xmethods
1944 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1946 * python/py-xmethods.c: New file.
1947 * python/py-objfile.c (objfile_object): New field 'xmethods'.
1948 (objfpy_dealloc): XDECREF on the new xmethods field.
1949 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
1951 (objfpy_get_xmethods): New function.
1952 (objfile_getset): New entry 'xmethods'.
1953 * python/py-progspace.c (pspace_object): New field 'xmethods'.
1954 (pspy_dealloc): XDECREF on the new xmethods field.
1955 (pspy_new, pspace_to_pspace_object): Initialize xmethods
1957 (pspy_get_xmethods): New function.
1958 (pspace_getset): New entry 'xmethods'.
1959 * python/python-internal.h: Add declarations for new functions.
1960 * python/python.c (_initialize_python): Invoke
1961 gdbpy_initialize_xmethods.
1962 * python/lib/gdb/__init__.py (xmethods): New
1964 * python/lib/gdb/xmethod.py: New file.
1965 * python/lib/gdb/command/xmethods.py: New file.
1967 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1969 * eval.c (evaluate_subexp_standard): Call the xmethod if the
1970 best match method returned by find_overload_match is an xmethod.
1971 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
1972 the best matching operator returned by find_overload_match is an
1974 * valops.c: #include "extension.h".
1975 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
1976 Return void. The list of matching source methods is returned in
1977 "fn_list" and a vector of matching debug method workers is
1978 returned in "xm_worker_vec". Update all callers.
1979 (value_find_oload_method_list): Likewise.
1980 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
1981 non-NULL, then the index of the best matching method in this
1982 vector is returned. Update all callers.
1983 (find_overload_match): Include xmethods while performing overload
1986 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1988 * defs.h (enum lval_type): New enumerator "lval_xcallable".
1989 * extension-priv.h (struct extension_language_ops): Add the
1991 * extension.c (new_xmethod_worker, clone_xmethod_worker,
1992 get_matching_xmethod_workers, get_xmethod_argtypes,
1993 invoke_xmethod, free_xmethod_worker,
1994 free_xmethod_worker_vec): New functions.
1995 * extension.h: #include "common/vec.h".
1996 New function declarations.
1997 (struct xmethod_worker): New struct.
1998 (VEC (xmethod_worker_ptr)): New vector type.
1999 (xmethod_worker_ptr): New typedef.
2000 (xmethod_worker_vec): Likewise.
2001 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
2003 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
2004 (struct builtin_type): New field "xmethod".
2005 * valarith.c (value_ptradd): Assert that the value argument is not
2007 * valops.c (value_must_coerce_to_target): Return 0 for
2008 lval_xcallable values.
2009 * value.c (struct value): New field XM_WORKER in the field
2011 (value_address, value_raw_address): Return 0 for lval_xcallable
2013 (set_value_address): Assert that the value is not an
2015 (value_free): Free the associated xmethod worker when freeing
2016 lval_xcallable values.
2017 (set_value_component_location): Assert that the WHOLE value is not
2019 (value_of_xmethod, call_xmethod): New functions.
2020 * value.h: Declare "struct xmethod_worker".
2021 Declare new functions value_of_xmethod, call_xmethod.
2023 2014-06-03 Joel Brobecker <brobecker@adacore.com>
2024 Pedro Alves <palves@redhat.com>
2026 PR breakpoints/17000
2027 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
2028 New function, extracted from software_breakpoint_inserted_here_p.
2029 (software_breakpoint_inserted_here_p): Replace factored out code
2030 by call to find_non_raw_software_breakpoint_inserted_here.
2031 (bp_target_info_copy_insertion_state): New function.
2032 (bkpt_insert_location): Handle the case of a single-step
2033 breakpoint already inserted at the same address.
2034 (bkpt_remove_location): Handle the case of a single-step
2035 breakpoint still inserted at the same address.
2036 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
2037 breakpoint already inserted at the same address.
2038 (deprecated_remove_raw_breakpoint): Handle the case of a
2039 non-raw breakpoint still inserted at the same address.
2040 (find_single_step_breakpoint): New function, extracted from
2041 single_step_breakpoint_inserted_here_p.
2042 (find_single_step_breakpoint): New function,
2043 factored out from single_step_breakpoint_inserted_here_p.
2044 (single_step_breakpoint_inserted_here_p): Reimplement.
2046 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
2048 Pushed by Joel Brobecker <brobecker@adacore.com>
2049 * source.c (show_substitute_path_command): Fix display of matching
2052 2014-06-03 Gary Benson <gbenson@redhat.com>
2054 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
2056 2014-06-02 Doug Evans <xdje42@gmail.com>
2058 Add parameter support for Guile.
2059 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
2060 (SUBDIR_GUILE_SRCS): Add scm-param.c.
2061 (scm-param.o): New rule.
2062 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
2063 (gdbscm_misc_error): Declare.
2064 (gdbscm_canonicalize_command_name): Declare.
2065 (gdbscm_scm_to_host_string): Declare.
2066 (gdbscm_scm_from_host_string): Declare.
2067 (gdbscm_initialize_parameters): Declare.
2068 * guile/guile.c (initialize_gdb_module): Call
2069 gdbscm_initialize_parameters.
2070 * guile/lib/gdb.scm: Export parameter symbols.
2071 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
2072 cmdscm_canonicalize_name and made public. All callers updated.
2073 * guile/scm-exception.c (gdbscm_misc_error): New function.
2074 * guile/scm-param.c: New file.
2075 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
2076 (gdbscm_scm_to_host_string): New function.
2077 (gdbscm_scm_from_host_string): New function.
2078 * scm-utils.c (gdbscm_gc_dup_argv): New function.
2080 2014-06-02 Doug Evans <xdje42@gmail.com>
2082 Add command support for Guile.
2083 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
2084 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
2085 (scm-cmd.o): New rule.
2086 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
2087 (gdbscm_user_error_p): Declare.
2088 (gdbscm_parse_command_name): Declare.
2089 (gdbscm_valid_command_class_p): Declare.
2090 (gdbscm_initialize_commands): Declare.
2091 * guile/guile.c (initialize_gdb_module): Call
2092 gdbscm_initialize_commands.
2093 * guile/lib/gdb.scm: Export command symbols.
2094 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
2095 (throw-user-error): New function.
2096 * guile/scm-cmd.c: New file.
2097 * guile/scm-exception.c (user_error_symbol): New static global.
2098 (gdbscm_user_error_p): New function.
2099 (gdbscm_initialize_exceptions): Set user_error_symbol.
2100 * scm-utils.c (gdbscm_gc_xstrdup): New function.
2102 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
2104 * top.c (command_loop): Handle comments here...
2105 (command_line_input): ... not here.
2107 2014-06-02 Doug Evans <xdje42@gmail.com>
2109 Add progspace support for Guile.
2110 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
2111 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
2112 (scm-progspace.o): New rule.
2113 * guile/guile-internal.h (pspace_smob): New typedef.
2114 (psscm_pspace_smob_pretty_printers): Declare.
2115 (psscm_pspace_smob_from_pspace): Declare.
2116 (psscm_scm_from_pspace): Declare.
2117 * guile/guile.c (initialize_gdb_module): Call
2118 gdbscm_initialize_pspaces.
2119 * guile/lib/gdb.scm: Export progspace symbols.
2120 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
2122 (append-pretty-printer!): Ditto.
2123 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
2125 * guile/scm-progspace.c: New file.
2127 2014-06-03 Alan Modra <amodra@gmail.com>
2129 * ppc64-tdep.c (ppc64_standard_linkage8): New.
2130 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
2132 2014-06-02 Doug Evans <dje@google.com>
2134 Add support for skeletonless type units.
2135 * dwarf2read.c (struct dwarf2_per_objfile): New member
2136 n_allocated_type_units.
2137 (struct dwarf2_per_objfile) <tu_stats>: New member
2138 nr_all_type_units_reallocs.
2139 (create_signatured_type_table_from_index): Initialize
2140 n_allocated_type_units
2141 (create_all_type_units): Ditto.
2142 (add_type_unit): Move up in file. New arg slot.
2143 All callers updated. Increase space for all_type_units more
2145 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
2146 (lookup_dwo_signatured_type): Handle skeletonless TUs.
2147 (lookup_dwp_signatured_type): Ditto.
2148 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
2149 All callers updated.
2150 (build_type_psymtabs_1): Leave type_unit_groups as
2151 NULL if no TUs present.
2152 (print_tu_stats): New function.
2153 (process_skeletonless_type_unit): New function.
2154 (process_dwo_file_for_skeletonless_type_units): New
2156 (process_skeletonless_type_units): New function.
2157 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
2158 Call print tu_stats if debugging enabled.
2160 2014-06-02 Pedro Alves <palves@redhat.com>
2162 * breakpoint.c (build_target_command_list): Don't build a command
2163 list if we have any duplicate location that isn't a dprintf.
2165 2014-06-02 Pedro Alves <palves@redhat.com>
2167 * breakpoint.c (dprintf_breakpoint_hit): New function.
2168 (initialize_breakpoint_ops): Install it as dprintf's
2169 breakpoint_hit method.
2171 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2173 * source.c (substitute_path_rule_matches): Simplify using
2174 filename_ncmp instead of FILENAME_CMP.
2176 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2178 * source.c (substitute_path_rule_matches): Remove trailing spaces.
2180 2014-06-01 Ludovic Courtès <ludo@gnu.org>
2182 * configure.ac: When Guile is available, check for the
2183 availability of 'scm_new_smob'.
2184 * configure, config.h.in: Regenerate.
2185 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
2188 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2190 * frame.c (struct frame_info): Add stop_string field.
2191 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
2192 (get_prev_frame_always): Old content moved into
2193 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
2194 TRY_CATCH, handle MEMORY_ERROR exceptions.
2195 (frame_stop_reason_string): New function definition.
2196 * frame.h (unwind_stop_reason_to_string): Extend comment to
2197 mention frame_stop_reason_string.
2198 (frame_stop_reason_string): New function declaration.
2199 * stack.c (frame_info): Switch to frame_stop_reason_string.
2200 (backtrace_command_1): Switch to frame_stop_reason_string.
2201 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
2202 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
2203 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
2205 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2207 * frame.c (frame_stop_reason_string): Rename to ...
2208 (unwind_stop_reason_to_string): this.
2209 * frame.h (frame_stop_reason_string): Rename to ...
2210 (unwind_stop_reason_to_string): this.
2211 * stack.c (frame_info): Update call to frame_stop_reason_string.
2212 (backtrace_command_1): Likewise.
2213 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
2214 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2216 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2218 * frame.c (remove_prev_frame): New function.
2219 (get_prev_frame_if_no_cycle): Create / discard cleanup using
2222 2014-05-29 Pedro Alves <palves@redhat.com>
2224 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
2225 and make it const. When a single-step decays to a continue,
2226 clear 'step', not 'hw_step'. Pass whether the caller wanted
2227 to step to user_visible_resume_ptid, not what we ask the
2230 2014-05-29 Pedro Alves <palves@redhat.com>
2232 * infrun.c (process_event_stop_test, handle_step_into_function)
2233 (handle_step_into_function_backward): Adjust.
2234 Don't set the even thread's stop_step and call stop_waiting before
2235 calling end_stepping_range. Instead do that ...
2236 (end_stepping_range): ... here. Take an ecs pointer parameter.
2238 2014-05-29 Pedro Alves <palves@redhat.com>
2240 * infrun.c (stop_stepping): Rename to ...
2241 (stop_waiting): ... this.
2242 (proceed): Update comment.
2243 (process_event_stop_test, handle_inferior_event)
2244 (handle_signal_stop, handle_step_into_function)
2245 (handle_step_into_function_backward): Update.
2247 2014-05-29 Pedro Alves <palves@redhat.com>
2249 * infcall.c (run_inferior_call): Don't check whether the current
2250 thread is running after the proceed call.
2252 2014-05-29 Pedro Alves <palves@redhat.com>
2253 Tom Tromey <tromey@redhat.com>
2255 * NEWS: Mention "maint set target-async", "set mi-async", and that
2256 background execution commands are now always available.
2257 * target.h (target_async_permitted): Update comment.
2258 * target.c (target_async_permitted, target_async_permitted_1):
2260 (set_target_async_command): Rename to ...
2261 (maint_set_target_async_command): ... this.
2262 (show_target_async_command): Rename to ...
2263 (maint_show_target_async_command): ... this.
2264 (_initialize_target): Adjust.
2265 * infcmd.c (prepare_execution_command): Make extern.
2266 * inferior.h (prepare_execution_command): Declare.
2267 * infrun.c (set_observer_mode): Leave target async alone.
2268 * mi/mi-interp.c (mi_interpreter_init): Install
2269 mi_on_sync_execution_done as sync_execution_done observer.
2270 (mi_on_sync_execution_done): New function.
2271 (mi_execute_command_input_handler): Don't print the prompt if we
2272 just started a synchronous command with an async target.
2273 (mi_on_resume): Check sync_execution before printing prompt.
2274 * mi/mi-main.h (mi_async_p): Declare.
2275 * mi/mi-main.c: Include gdbcmd.h.
2276 (mi_async_p): New function.
2277 (mi_async, mi_async_1): New globals.
2278 (set_mi_async_command, show_mi_async_command, mi_async): New
2280 (exec_continue): Call prepare_execution_command.
2281 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2282 (mi_execute_async_cli_command): Use mi_async_p.
2283 (_initialize_mi_main): Install "set mi-async". Make
2284 "target-async" a deprecated alias.
2286 2014-05-29 Pedro Alves <palves@redhat.com>
2288 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2289 (_initialize_cli_interp): Adjust.
2290 * event-loop.c: Include "observer.h".
2291 (start_event_loop): Notify 'command_error' observers instead of
2292 calling display_gdb_prompt. Remove FIXME comment.
2293 * event-top.c (display_gdb_prompt): Remove call into the
2295 * inf-loop.c: Include "observer.h".
2296 (inferior_event_handler): Notify 'command_error' observers instead
2297 of calling display_gdb_prompt.
2298 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2299 observers instead of calling display_gdb_prompt.
2300 * interps.c (interp_set): Don't call display_gdb_prompt.
2301 (current_interp_display_prompt_p): Delete.
2302 * interps.h (interp_prompt_p): Delete declaration.
2303 (interp_prompt_p_ftype): Delete.
2304 (struct interp_procs) <prompt_proc_p>: Delete field.
2305 (current_interp_display_prompt_p): Delete declaration.
2306 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2307 (_initialize_mi_interp): Adjust.
2308 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2309 'command_error' observers.
2310 (tui_on_sync_execution_done, tui_on_command_error): New
2312 (tui_display_prompt_p): Delete.
2313 (_initialize_tui_interp): Adjust.
2315 2014-05-29 Pedro Alves <palves@redhat.com>
2318 * cli/cli-interp.c: Include infrun.h and observer.h.
2319 (cli_uiout, cli_interp): New globals.
2320 (cli_on_signal_received, cli_on_end_stepping_range)
2321 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2323 (cli_interpreter_init): Install them as 'end_stepping_range',
2324 'signal_received' 'signal_exited', 'exited' and 'no_history'
2326 (_initialize_cli_interp): Remove cli_interp local.
2327 * infrun.c (handle_inferior_event): Call the several stop reason
2328 observers instead of printing the stop reason directly.
2329 (end_stepping_range): New function.
2330 (print_end_stepping_range_reason, print_signal_exited_reason)
2331 (print_exited_reason, print_signal_received_reason)
2332 (print_no_history_reason): Make static, and add an uiout
2333 parameter. Print to that instead of to CURRENT_UIOUT.
2334 * infrun.h (print_end_stepping_range_reason)
2335 (print_signal_exited_reason, print_exited_reason)
2336 (print_signal_received_reason print_no_history_reason): New
2338 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2340 <cli_uiout>: New field.
2341 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2342 uiout for CLI output. Install 'signal_received',
2343 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2345 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2346 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2347 (mi_on_no_history): New functions.
2348 (ui_out_free_cleanup): Delete function.
2349 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2350 instead use the one already stored in the MI interpreter data.
2351 (mi_ui_out): Adjust.
2352 * tui/tui-interp.c: Include infrun.h and observer.h.
2353 (tui_interp): New global.
2354 (tui_on_signal_received, tui_on_end_stepping_range)
2355 (tui_on_signal_exited, tui_on_exited)
2356 (tui_on_no_history): New functions.
2357 (tui_init): Install them as 'end_stepping_range',
2358 'signal_received' 'signal_exited', 'exited' and 'no_history'
2360 (_initialize_tui_interp): Delete tui_interp local.
2362 2014-05-29 Pedro Alves <palves@redhat.com>
2365 * linux-nat.c (linux_nat_resume_callback): Rename the second
2366 parameter to 'except'. Skip LP if it points to EXCEPT.
2367 (linux_nat_resume): Don't mark the event lwp as not stopped
2368 before resuming sibling lwps. Instead ask
2369 linux_nat_resume_callback to skip the event lwp. Mark it as not
2370 stopped after actually resuming it.
2371 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2373 (wait_lwp): Mark the lwp as stopped here.
2374 (stop_wait_callback): Mark the lwp as not stopped right after
2375 resuming it. Don't mark lwps as stopped here.
2376 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2377 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2379 2014-05-29 Pedro Alves <palves@redhat.com>
2382 * infrun.c (resume): Determine how much to resume depending on
2383 whether the caller wanted a step, not whether we can hardware step
2384 the target. Mark all threads that we intend to run as running,
2385 unless we're calling an inferior function.
2386 (normal_stop): If the thread is running an infcall, don't finish
2388 * target.c (target_resume): Don't mark threads as running here.
2390 2014-05-28 Joel Brobecker <brobecker@adacore.com>
2392 * serial.c (_initialize_serial): Remove support for
2393 the "set remotebaud" and "show remotebaud" commands.
2394 * NEWS: Add entry documenting the removal of that command.
2396 2014-05-28 Yao Qi <yao@codesourcery.com>
2398 * charset.c: Fix typo in comments.
2400 2014-05-27 Gary Benson <gbenson@redhat.com>
2402 * utils.c (internal_vproblem): Prompt for a bug report.
2404 2014-05-26 Andy Wingo <wingo@igalia.com>
2406 * guile/scm-arch.c (arscm_mark_arch_smob):
2407 * guile/scm-block.c (bkscm_mark_block_smob)
2408 (bkscm_mark_block_syms_progress_smob):
2409 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2410 * guile/scm-exception.c (exscm_mark_exception_smob):
2411 * guile/scm-frame.c (frscm_mark_frame_smob):
2412 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2413 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2414 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2415 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2416 (ppscm_mark_pretty_printer_worker_smob):
2417 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2418 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2419 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2420 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2422 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2425 2014-05-26 Andy Wingo <wingo@igalia.com>
2426 Doug Evans <xdje42@gmail.com>
2428 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2429 empty_base_class. All uses updated.
2430 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2431 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2433 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2434 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2435 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2436 (gdbscm_gsmob_has_property_p, add_property_name)
2437 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2438 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2439 (gdb-object-has-property?, gdb-object-properties): Remove.
2440 (gdb-object-kind): Renamed from gsmob-kind.
2442 2014-05-26 Andy Wingo <wingo@igalia.com>
2444 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2445 * configure: Regenerate.
2447 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2449 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2451 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2453 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2454 (replay_memory_access_read_only, replay_memory_access_read_write)
2455 (replay_memory_access_types, replay_memory_access)
2456 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2457 (cmd_set_record_btrace, cmd_show_record_btrace)
2458 (cmd_show_replay_memory_access): New.
2459 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2460 (record_btrace_remove_breakpoint): Replace
2461 record_btrace_allow_memory_access with replay_memory_access.
2462 (_initialize_record_btrace): Add commands.
2463 * NEWS: Announce it.
2465 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2467 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2469 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2471 * MAINTAINERS (Write After Approval): Move self back from
2474 2014-05-22 Pedro Alves <palves@redhat.com>
2476 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2477 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2478 (disable_randomization, enum exec_direction_kind)
2479 (execution_direction, stop_registers, start_remote)
2480 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2481 (wait_for_inferior, normal_stop, get_last_target_status)
2482 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2483 (insert_step_resume_breakpoint_at_sal)
2484 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2485 (set_step_info, print_stop_event, signal_stop_state)
2486 (signal_print_state, signal_pass_state, signal_stop_update)
2487 (signal_print_update, signal_pass_update)
2488 (update_signals_program_target, clear_exit_convenience_vars)
2489 (displaced_step_dump_bytes, update_observer_mode)
2490 (signal_catch_update, gdb_signal_from_command): Move
2492 * infrun.h: ... to this new file.
2493 * amd64-tdep.c: Include infrun.h.
2494 * annotate.c: Include infrun.h.
2495 * arch-utils.c: Include infrun.h.
2496 * arm-linux-tdep.c: Include infrun.h.
2497 * arm-tdep.c: Include infrun.h.
2498 * break-catch-sig.c: Include infrun.h.
2499 * breakpoint.c: Include infrun.h.
2500 * common/agent.c: Include infrun.h instead of inferior.h.
2501 * corelow.c: Include infrun.h.
2502 * event-top.c: Include infrun.h.
2503 * go32-nat.c: Include infrun.h.
2504 * i386-tdep.c: Include infrun.h.
2505 * inf-loop.c: Include infrun.h.
2506 * infcall.c: Include infrun.h.
2507 * infcmd.c: Include infrun.h.
2508 * infrun.c: Include infrun.h.
2509 * linux-fork.c: Include infrun.h.
2510 * linux-nat.c: Include infrun.h.
2511 * linux-thread-db.c: Include infrun.h.
2512 * monitor.c: Include infrun.h.
2513 * nto-tdep.c: Include infrun.h.
2514 * procfs.c: Include infrun.h.
2515 * record-btrace.c: Include infrun.h.
2516 * record-full.c: Include infrun.h.
2517 * remote-m32r-sdi.c: Include infrun.h.
2518 * remote-mips.c: Include infrun.h.
2519 * remote-notif.c: Include infrun.h.
2520 * remote-sim.c: Include infrun.h.
2521 * remote.c: Include infrun.h.
2522 * reverse.c: Include infrun.h.
2523 * rs6000-tdep.c: Include infrun.h.
2524 * s390-linux-tdep.c: Include infrun.h.
2525 * solib-irix.c: Include infrun.h.
2526 * solib-osf.c: Include infrun.h.
2527 * solib-svr4.c: Include infrun.h.
2528 * target.c: Include infrun.h.
2529 * top.c: Include infrun.h.
2530 * windows-nat.c: Include infrun.h.
2531 * mi/mi-interp.c: Include infrun.h.
2532 * mi/mi-main.c: Include infrun.h.
2533 * python/py-threadevent.c: Include infrun.h.
2535 2014-05-22 Pedro Alves <palves@redhat.com>
2537 * infrun.c (handle_inferior_event): Store the exit code for
2538 --return-child-result here, instead of ...
2539 (print_exited_reason): ... here.
2541 2014-05-21 Pedro Alves <palves@redhat.com>
2544 * gdbthread.h (struct thread_control_state): New field
2546 * infrun.c (follow_fork): Copy the new thread control field to the
2548 (clear_proceed_status_thread): Clear the new thread control field.
2549 (proceed): Set the new thread control field.
2550 * interps.h (command_interp): Declare.
2551 * interps.c (command_interpreter): New global.
2552 (command_interp): New function.
2553 (interp_exec): Set `command_interpreter' while here.
2554 * cli-out.c (cli_uiout_dtor): New function.
2555 (cli_ui_out_impl): Install it.
2556 * mi/mi-interp.c: Include cli-out.h.
2557 (mi_cmd_interpreter_exec): Add comment.
2558 (restore_current_uiout_cleanup): New function.
2559 (ui_out_free_cleanup): New function.
2560 (mi_on_normal_stop): If finishing an execution command started by
2561 a CLI command, or any kind of breakpoint-like event triggered,
2562 print the stop event to the output (CLI) stream.
2563 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2565 2014-05-21 Pedro Alves <palves@redhat.com>
2567 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2568 current source line having changed.
2569 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2570 * infrun.c (normal_stop): Adjust call to
2571 set_current_sal_from_frame.
2572 * source.c (clear_lines_listed_range): New function.
2573 (set_current_source_symtab_and_line, identify_source_line): Clear
2574 the lines listed range.
2575 (line_info): Handle the first "info line" after the current source
2576 line having changed.
2577 * stack.c (print_stack_frame): Remove center handling.
2578 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2581 2014-05-21 Pedro Alves <palves@redhat.com>
2583 * inf-child.c (inf_child_mourn_inferior): New function.
2584 * inf-child.h (inf_child_mourn_inferior): New declaration.
2585 * darwin-nat.c (darwin_mourn_inferior): Use
2586 inf_child_mourn_inferior.
2587 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2588 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2589 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2590 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2591 * windows-nat.c (windows_mourn_inferior): Likewise.
2593 2014-05-21 Doug Evans <xdje42@gmail.com>
2595 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
2597 2014-05-21 Doug Evans <xdje42@gmail.com>
2599 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
2600 (gdbscm_out_of_range_error): Ditto.
2601 (gdbscm_memory_error): Ditto.
2602 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2603 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
2604 (gdbscm_out_of_range_error): Update.
2605 (gdbscm_memory_error): Update.
2606 (gdbscm_scm_to_target_string_unsafe): Delete.
2608 2014-05-21 Pedro Alves <palves@redhat.com>
2610 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2612 (inf_child_open_target): New function.
2613 (inf_child_open): Use inf_child_open_target to push the target
2614 instead of erroring out.
2615 (inf_child_disconnect, inf_child_close)
2616 (inf_child_maybe_unpush_target): New functions.
2617 (inf_child_target): Install inf_child_disconnect and
2618 inf_child_close. Store a pointer to the returned object.
2619 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2621 * target.c (auto_connect_native_target): New global.
2622 (show_default_run_target): New function.
2623 (find_default_run_target): Return NULL if automatically connecting
2624 to the native target is disabled.
2625 (_initialize_target): Install set/show auto-connect-native-target.
2626 * NEWS: Mention "set auto-connect-native-target", and "target
2628 * linux-nat.c (super_close): New global.
2629 (linux_nat_close): Call super_close.
2630 (linux_nat_add_target): Store a pointer to the base class's
2632 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2633 inf_child_maybe_unpush.
2634 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2636 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2637 the inferior. Use inf_child_maybe_unpush_target.
2638 (inf_ttrace_attach): Don't push the target if it is already
2640 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2641 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2642 after mourning the inferior. Use inf_child_maybe_unpush_target.
2643 (darwin_attach_pid): Don't push the target if it is already
2645 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2646 mourning the inferior. Use inf_child_maybe_unpush_target.
2647 (gnu_detach): Use inf_child_maybe_unpush_target.
2648 * go32-nat.c (go32_create_inferior): Don't push the target if it
2650 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2651 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2652 (procfs_open): Rename to ...
2653 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2654 comments. Can target_preopen before changing node. Call
2655 inf_child_open_target to push the target explicitly.
2656 (procfs_attach): Don't push the target if it is already pushed.
2657 (procfs_detach): Use inf_child_maybe_unpush_target.
2658 (procfs_create_inferior): Don't push the target if it is already
2660 (nto_native_ops): New global.
2661 (procfs_open): Reimplement.
2662 (procfs_native_open): New function.
2663 (init_procfs_targets): Install procfs_native_open as to_open of
2664 "target native". Store a pointer to the "native" target in
2666 * procfs.c (procfs_attach): Don't push the target if it is already
2668 (procfs_detach): Use inf_child_maybe_unpush_target.
2669 (procfs_mourn_inferior): Only unpush the target after mourning the
2670 inferior. Use inf_child_maybe_unpush_target.
2671 (procfs_init_inferior): Don't push the target if it is already
2673 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2674 if it is already pushed.
2676 2014-05-21 Pedro Alves <palves@redhat.com>
2678 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2679 and "procfs" targets are now called "native" instead.
2681 2014-05-21 Pedro Alves <palves@redhat.com>
2683 * go32-nat.c (go32_open): Delete.
2684 (go32_target): Don't override the to_open method.
2686 2014-05-21 Pedro Alves <palves@redhat.com>
2688 * nto-procfs.c (procfs_can_run): New function.
2689 (nto_procfs_ops): New global.
2690 (init_procfs_targets): New, based on procfs_target. Install
2691 "target native" in addition to "target procfs".
2692 (_initialize_procfs): Call init_procfs_targets instead of adding
2695 2014-05-21 Pedro Alves <palves@redhat.com>
2697 * windows-nat.c (windows_target): Don't override to_shortname,
2698 to_longname or to_doc.
2700 2014-05-21 Pedro Alves <palves@redhat.com>
2702 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2705 2014-05-21 Pedro Alves <palves@redhat.com>
2707 * darwin-nat.c (_initialize_darwin_inferior): Don't override
2708 to_shortname, to_longname or to_doc.
2710 2014-05-21 Pedro Alves <palves@redhat.com>
2712 * go32-nat.c (go32_target): Don't override to_shortname,
2713 to_longname or to_doc.
2715 2014-05-21 Pedro Alves <palves@redhat.com>
2717 * inf-child.c (inf_child_open): Remove mention of "child".
2718 (inf_child_target): Rename target to "native" instead of "child".
2720 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2722 * Makefile.in (SFILES): Delete "regset.c".
2723 (COMMON_OBS): Delete "regset.o".
2725 * regset.h (regset_alloc): Delete prototype.
2727 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2729 * sparc-linux-tdep.c (sparc32_linux_gregset)
2730 (sparc32_linux_fpregset): New static regset structures.
2731 (sparc32_linux_init_abi): Drop dynamic regset allocations.
2732 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
2734 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
2735 (sparc64_linux_fpregset): New static regset structures.
2736 (sparc64_linux_init_abi): Drop dynamic regset allocations.
2737 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
2738 New static regset structures.
2739 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
2740 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
2741 New static regset structures.
2742 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
2743 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
2744 New static regset structures.
2745 (sparc64obsd_init_abi): Drop dynamic regset allocations.
2746 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
2747 New static regset structures.
2748 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
2750 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2752 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
2753 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
2754 register maps ("regmaps") from "*regset" to "*regmap". Do this
2755 for all regmap types and variables.
2756 * sparc-linux-tdep.c (sparc32_linux_step_trap)
2757 (sparc32_linux_supply_core_gregset)
2758 (sparc32_linux_collect_core_gregset)
2759 (sparc32_linux_supply_core_fpregset)
2760 (sparc32_linux_collect_core_fpregset): Likewise.
2761 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
2762 (sparc_gregmap, sparc_fpregmap): ... these.
2763 (sparc_supply_gregset, sparc_collect_gregset)
2764 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2765 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
2766 (_initialize_sparc_nat): Rename regmaps.
2767 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
2768 (sparc_gregmap, sparc_fpregmap): ... these.
2769 (sparc_supply_gregset, sparc_collect_gregset)
2770 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2771 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
2773 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
2774 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
2776 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
2778 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
2779 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
2780 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
2782 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2783 (sparc32_bsd_fpregset): Rename to...
2784 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2785 (sparc32_bsd_fpregmap): ... these.
2786 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
2787 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2788 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
2789 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
2790 (struct sparc_gregmap, struct sparc_fpregmap)
2791 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2792 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
2793 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
2794 (sparc32_supply_regset, sparc32_collect_gregset)
2795 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
2797 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
2798 (sparc64_linux_ptrace_gregmap): ... this.
2799 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
2800 (_initialize_sparc64_linux_nat): Rename regmaps.
2801 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
2802 (sparc64_linux_core_gregmap): ... this.
2803 (sparc64_linux_supply_core_gregset)
2804 (sparc64_linux_collect_core_gregset)
2805 (sparc64_linux_supply_core_fpregset)
2806 (sparc64_linux_collect_core_fpregset): Rename regmaps.
2807 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
2808 (sparc64_sol2_fpregset): Rename to...
2809 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
2810 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2811 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
2813 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
2814 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
2815 (sparc64_bsd_fpregset): Rename to...
2816 (struct sparc_gregmap, sparc64_sol2_gregmap)
2817 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
2818 (sparc64_bsd_fpregmap): ... these.
2819 (sparc64_supply_gregset, sparc64_collect_gregset)
2820 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
2822 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
2823 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
2824 (sparc64fbsd_gregmap): ... this.
2825 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
2826 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
2828 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
2829 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2830 (sparc64nbsd_collect_fpregset): Likewise.
2831 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
2832 (sparc64nbsd_gregmap): ... this.
2833 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
2835 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
2836 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
2837 (sparc64obsd_gregmap): ... this.
2838 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
2840 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
2841 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
2842 (sparc32nbsd_gregmap): ... this.
2843 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
2846 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2848 * score-tdep.c (score7_linux_gregset): New static regset
2850 (score7_linux_regset_from_core_section): Remove dynamic regset
2852 (score_gdbarch_init): Drop allocation of tdep structure.
2853 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
2855 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2857 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
2859 (am33_regset_from_core_section): Remove dynamic regset
2862 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2864 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
2865 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
2867 (mips_linux_regset_from_core_section): Remove dynamic regset
2869 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2870 'gregset64', 'fpregset', and 'fpregset64'.
2871 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
2872 deleted tdep fields.
2874 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2876 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
2878 (amd64_regset_from_core_section): Remove dynamic regset
2880 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
2882 (amd64obsd_regset_from_core_section): Remove dynamic regset
2884 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2886 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
2887 x86-common regset supply function.
2888 * i386-tdep.c (i386_collect_gregset): Make static.
2889 (i386_gregset): New global regset structure.
2890 (i386_fpregset, i386_xstateregset): New static regset structures.
2891 (i386_regset_from_core_section): Remove dynamic regset
2893 (i386_gdbarch_init): Remove initialization of tdep fields
2894 'gregset', 'fpregset', and 'xstateregset'.
2895 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2896 'fpregset', and 'xstateregset'.
2897 (i386_collect_gregset): Remove prototype.
2898 (i386_gregset): New declaration.
2899 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
2901 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
2904 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2906 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
2907 (arm_linux_vfpregset): New static regset structures.
2908 (arm_linux_regset_from_core_section): Remove dynamic allocation of
2910 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
2911 and 'vfpregset' fields.
2913 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2915 * aarch64-linux-tdep.c (aarch64_linux_gregset)
2916 (aarch64_linux_fpregset): New static regset structures.
2917 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
2918 of regset structures.
2919 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
2922 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2924 * regset.h (struct regset): Remove gdbarch field.
2925 * regset.c (regset_alloc): Drop initialization of gdbarch field.
2926 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2927 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
2929 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
2930 (ppc32_linux_fpregset, ppc32_linux_vrregset)
2931 (ppc32_linux_vsxregset): Likewise.
2932 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
2933 via the regcache instead of the regset.
2934 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
2935 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
2936 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
2937 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
2940 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2942 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
2943 Constify structures.
2944 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
2945 (alphanbsd_aout_gregset): Likewise.
2946 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
2947 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
2949 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
2950 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
2952 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
2953 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
2954 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
2955 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
2956 * m88k-tdep.c (m88k_gregset): Likewise.
2957 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
2958 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
2959 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2960 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
2961 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2962 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2963 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2964 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2965 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
2967 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
2968 * sh-tdep.h (sh_corefile_gregset): Likewise.
2969 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
2970 * vax-tdep.c (vax_gregset): Likewise.
2972 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2974 Fix TLS access for -static -pthread.
2975 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
2976 (try_thread_db_load_1): Initialize it.
2977 (thread_db_get_thread_local_address): Call it if LM is zero.
2978 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
2979 * target.h (struct target_ops) (to_get_thread_local_address): Add
2980 load_module_addr comment.
2982 2014-05-21 Pedro Alves <palves@redhat.com>
2984 * dcache.c (dcache_read_memory_partial): If reading the cache line
2985 fails, fallback to reading just the memory the caller wanted.
2987 2014-05-20 Doug Evans <dje@google.com>
2989 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
2990 instead of get_current_arch.
2992 2014-05-20 Pedro Alves <palves@redhat.com>
2994 * NEWS: Mention that compare-sections now works with all targets.
2996 * remote.c (PACKET_qCRC): New enum value.
2997 (remote_verify_memory): Don't send qCRC if the target has no
2998 execution. Use packet_support/packet_ok. If the target doesn't
2999 support the qCRC packet, fallback to a deep memory copy.
3000 (compare_sections_command): Say "target image" instead of "remote
3002 (_initialize_remote): Add PACKET_qCRC to the list of config
3003 packets that have no associated command. Extend comment.
3004 * target.c (simple_verify_memory, default_verify_memory): New
3006 * target.h (struct target_ops) <to_verify_memory>: Default to
3007 default_verify_memory.
3008 (simple_verify_memory): New declaration.
3009 * target-delegates.c: Regenerate.
3011 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
3013 * record-btrace.c (record_btrace_step_thread): Check for empty history.
3015 2014-05-20 Hui Zhu <hui@codesourcery.com>
3016 Yao Qi <yao@codesourcery.com>
3019 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
3020 and change address of sp and pc.
3022 2014-05-19 Tom Tromey <tromey@redhat.com>
3024 * gdbtypes.c (rank_function): Use XNEWVEC.
3025 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
3027 2014-05-19 Doug Evans <dje@google.com>
3029 * dwarf2read.c (build_type_psymtabs_1): Renamed from
3030 build_type_unit_groups and moved closer to only caller. Remove
3031 arguments. All references updated. Remove outdated .gdb_index
3033 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
3034 build_type_psymtabs_1.
3036 2014-05-19 Doug Evans <dje@google.com>
3038 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
3039 n_type_unit_groups, all_type_unit_groups. All uses removed.
3040 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
3041 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
3042 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
3043 (add_type_unit_group_to_table): Delete.
3045 2014-05-19 Doug Evans <dje@google.com>
3047 * eval.c (evaluate_subexp_standard): Add some comments.
3049 2014-05-17 Doug Evans <xdje42@gmail.com>
3051 * progspace.c (remove_program_space): Delete, unused.
3052 * progspace.h (remove_program_space): Ditto.
3054 2014-05-17 Doug Evans <xdje42@gmail.com>
3056 * inferior.c (prune_inferiors): Fix comment.
3057 (remove_inferior_command): Call prune_program_spaces.
3059 2014-05-16 Doug Evans <dje@google.com>
3061 New command line option -D.
3063 * main.c (set_gdb_data_directory): New function.
3064 (captured_main): Recognize -D. Flag error for --data-directory "".
3065 Call set_gdb_data_directory.
3066 (print_gdb_help): Print --data-directory, -D.
3067 * main.h (set_gdb_data_directory): Declare.
3068 * top.c (staged_gdb_datadir): New static global.
3069 (set_gdb_datadir): Call set_gdb_data_directory
3070 (show_gdb_datadir): New function.
3071 (init_main): Update init of data-directory parameter.
3073 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
3075 Import the "dirfd" gnulib module.
3076 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
3077 * gnulib/aclocal.m4: Update.
3078 * gnulib/config.in: Update.
3079 * gnulib/configure: Update.
3080 * gnulib/import/Makefile.am: Update.
3081 * gnulib/import/Makefile.in: Update.
3082 * gnulib/import/dirfd.c: New.
3083 * gnulib/import/m4/dirfd.m4: New.
3084 * gnulib/import/m4/gnulib-cache.m4: Update.
3085 * gnulib/import/m4/gnulib-comp.m4: Update.
3087 2014-05-16 Pierre Muller <muller@sourceware.org>
3088 Yao Qi <yao@codesourcery.com>
3090 * valprint.c (print_wchar): Move the code on checking whether
3091 W is a printable wide char to the default branch of switch
3092 statement below. Call wchar_printable instead of gdb_iswprint.
3094 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
3096 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
3097 ldr.w and ldrd instructions.
3099 2014-05-15 Doug Evans <dje@google.com>
3101 * dwarf2read.c (read_structure_type): Delete outdated comments.
3103 2014-05-14 Tom Tromey <tromey@redhat.com>
3105 * macrocmd.c (print_macro_definition): Reindent.
3107 2014-05-13 Doug Evans <xdje42@gmail.com>
3109 * python/py-cmd.c (cmdpy_completer): Add comment.
3110 (completers): Make const.
3112 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
3114 * infrun.c (resume): Remove should_resume (unused). Move up
3115 declaration of resume_ptid.
3117 2014-05-13 Tom Tromey <tromey@redhat.com>
3119 * language.h (unop_type_check): Remove.
3120 (binop_type_check): Don't declare.
3122 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
3124 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
3125 call to regcache_raw_collect.
3127 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3129 * mi/mi-console.c (mi_console_raw_packet): Use the value from
3130 mi_console->quote as the quoting character.
3132 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3134 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
3136 2014-04-29 Tom Tromey <tromey@redhat.com>
3138 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
3139 "show debug varobj".
3141 2014-05-07 Kyle McMartin <kyle@redhat.com>
3143 Pushed by Joel Brobecker <brobecker@adacore.com>.
3144 * aarch64-tdep.c (aarch64_software_single_step): New function.
3145 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
3146 with aarch64_software_single_step.
3148 2014-05-05 Joel Brobecker <brobecker@adacore.com>
3152 2014-05-05 Keith Seitz <keiths@redhat.com>
3154 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
3155 variable or history value is successfully parsed.
3157 2014-05-05 Yao Qi <yao@codesourcery.com>
3158 Pedro Alves <palves@redhat.com>
3160 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
3161 address of blocks that intersects the requested range. Trim
3162 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
3164 * ctf.c (ctf_xfer_partial): Likewise.
3166 2014-05-05 Yao Qi <yao@codesourcery.com>
3168 * printcmd.c (display_command): Remove the check to
3169 target_has_execution.
3171 2014-05-03 Mark Kettenis <kettenis@gnu.org>
3173 * ppcobsd-nat.c: Include "obsd-nat.h".
3174 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
3176 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3178 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3180 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
3181 and 16-bit signed and unsigned arguments. Update comment.
3182 (stap_parse_probe_arguments): Extend code to handle such
3183 arguments. Use warning instead of complaint to notify about
3184 unrecognized bitness.
3186 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3188 PR breakpoints/16889
3189 * stap-probe.c (stap_parse_probe_arguments): Simplify
3190 check for non-prefixed probes (i.e., probes whose
3191 arguments do not start with "N@"). Always set the
3192 argument type to a sane value.
3194 2014-05-01 David Taylor <dtaylor@emc.com>
3196 * remote.c (compare_sections_command): Add -r option to compare
3197 all loadable read-only sections.
3199 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
3201 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
3202 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
3204 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
3205 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
3206 Remove unused CORE_ADDR argument. Update all callers.
3208 2014-04-29 Pedro Alves <palves@redhat.com>
3210 * remote.c (struct packet_config) <detect>: Extend comment.
3211 (add_packet_config_cmd): Don't set the config's detect or support
3213 (init_all_packet_configs): Also initialize the config's 'detect'
3215 (reset_all_packet_configs_support): New function.
3216 (remote_open_1): Call reset_all_packet_configs_support instead of
3217 init_all_packet_configs.
3218 (_initialize_remote): Initialize all packet configs. Assert that
3219 all packets have an associated command, except a few known
3222 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3224 * dwarf2read.c (read_subrange_type): Handle dynamic
3225 DW_AT_lower_bound attributes.
3227 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3229 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
3230 dynamic bounds before computing its upper bound.
3231 (ada_discrete_type_low_bound): Same as above with the lower bound.
3233 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3235 * dwarf2read.c (is_dynamic_type): Return true for dynamic
3236 range types. Adjust the array handling implementation to
3237 take advantage of this change.
3238 (resolve_dynamic_range): New function, mostly extracted from
3239 resolve_dynamic_bounds.
3240 (resolve_dynamic_array): New function, mostly extracted from
3241 resolve_dynamic_bounds.
3242 (resolve_dynamic_bounds): Delete.
3243 (resolve_dynamic_type): Reimplement. Add handling of
3244 TYPE_CODE_RANGE types.
3246 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3248 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
3249 handling of parallel ___XA types.
3251 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3253 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
3254 unnecessary second call to static_unwrap_type.
3256 2014-04-27 Hui Zhu <hui@codesourcery.com>
3258 * stack.c (print_frame_info): Call do_gdb_disassembly with
3259 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
3261 2014-04-26 Doug Evans <xdje42@gmail.com>
3263 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
3265 2014-04-25 Pedro Alves <palves@redhat.com>
3268 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
3269 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
3270 and newline from built string.
3271 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3272 (linux_ptrace_attach_fail_reason): ... this.
3273 * linux-nat.c (linux_nat_attach): Adjust to use
3274 linux_ptrace_attach_fail_reason.
3276 2014-04-25 Pedro Alves <palves@redhat.com>
3278 * remote.c (struct remote_state): Remove multi_process_aware,
3279 non_stop_aware, cond_tracepoints, cond_breakpoints,
3280 breakpoint_commands, fast_tracepoints, static_tracepoints,
3281 install_in_trace, disconnected_tracing,
3282 enable_disable_tracepoints, string_tracing, and
3283 augmented_libraries_svr4_read fields.
3284 (remote_multi_process_p): Move further below in the file.
3285 (struct packet_config): Add comments.
3286 (update_packet_config): Delete function.
3287 (show_packet_config_cmd): Use packet_config_support.
3288 (add_packet_config_cmd): Use NULL as set callback.
3289 (packet_ok): "set remote foo-packet"-style commands no longer
3290 change config->supported -- adjust.
3291 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3292 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3293 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3294 (PACKET_QNonStop, PACKET_multiprocess_feature)
3295 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3296 (PACKET_DisconnectedTracing_feature)
3297 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3298 (set_remote_protocol_packet_cmd): Delete function.
3299 (packet_config_support, packet_support): New functions.
3300 (set_remote_protocol_Z_packet_cmd): Don't call
3301 update_packet_config.
3302 (remote_query_attached, remote_pass_signals)
3303 (remote_program_signals, remote_threads_info)
3304 (remote_threads_extra_info, remote_start_remote): Use
3306 (remote_start_remote): Use packet_config_support and
3308 (init_all_packet_configs): Set all packets to unknown support,
3309 instead of calling update_packet_config.
3310 (remote_check_symbols): Use packet_support.
3311 (remote_supported_packet): Unconditionally set the packet config's
3313 (remote_multi_process_feature, remote_non_stop_feature)
3314 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3315 (remote_breakpoint_commands_feature)
3316 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3317 (remote_install_in_trace_feature)
3318 (remote_disconnected_tracing_feature)
3319 (remote_enable_disable_tracepoint_feature)
3320 (remote_string_tracing_feature)
3321 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3322 (remote_protocol_features): Adjust to use remote_supported_packet
3323 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3324 "ConditionalTracepoints", "ConditionalBreakpoints",
3325 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3326 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3327 "EnableDisableTracepoints", and "tracenz".
3328 (remote_query_supported): Use packet_support.
3329 (remote_open_1): Adjust.
3330 (extended_remote_attach_1): Use packet_support. Switch on the
3331 result of packet_ok instead of checking whether the packet ended
3333 (remote_vcont_resume): Use packet_support.
3334 (remote_resume, remote_stop_ns, fetch_register_using_p)
3335 (remote_prepare_to_store, store_register_using_P)
3336 (check_binary_download, remote_write_bytes): Use packet_support.
3337 (remote_vkill): Use packet_support. Switch on the result of
3338 packet_ok instead of checking whether the packet ended up
3340 (extended_remote_supports_disable_randomization): Use
3342 (extended_remote_run): Switch on the result of packet_ok instead
3343 of checking whether the packet ended up disabled.
3344 (remote_insert_breakpoint, remote_remove_breakpoint)
3345 (remote_insert_watchpoint, remote_remove_watchpoint)
3346 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3348 (remote_search_memory): Use packet_config_support.
3349 (remote_get_thread_local_address, remote_get_tib_address)
3350 (remote_hostio_send_command, remote_can_execute_reverse): Use
3352 (remote_supports_cond_tracepoints)
3353 (remote_supports_cond_breakpoints)
3354 (remote_supports_fast_tracepoints)
3355 (remote_supports_static_tracepoints)
3356 (remote_supports_install_in_trace)
3357 (remote_supports_enable_disable_tracepoint)
3358 (remote_supports_string_tracing)
3359 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3360 the packet config says the feature is enabled or disabled.
3361 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3362 (remote_get_trace_status): Use packet_support.
3363 (remote_set_disconnected_tracing): Adjust to check whether the
3364 feature is enabled with packet_support.
3365 (remote_set_trace_buffer_size, remote_use_agent)
3366 (remote_can_use_agent, remote_supports_btrace): Use
3368 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3369 Use packet_config_support.
3370 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3371 the packet config says the feature is enabled or disabled.
3372 (set_range_stepping): Use packet_support.
3374 2014-04-25 Tom Tromey <tromey@redhat.com>
3376 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3379 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3381 * NEWS: Mention support for C99 variable length arrays.
3383 2014-04-24 Joel Brobecker <brobecker@adacore.com>
3385 * ada-lang.c (standard_exc): Expand introductory comment.
3387 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
3388 Walfred Tedeschi <walfred.tedeschi@intel.com>
3390 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3392 (amd64_linux_read_description): Add code to handle AVX512 xstate
3393 mask and return respective tdesc.
3394 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3395 and features/i386/x32-avx512-linux.c.
3396 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3397 (amd64_linux_core_read_description): Add code to handle AVX512
3398 xstate mask and return respective tdesc.
3399 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3400 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3402 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3403 (tdesc_amd64_avx512_linux): New prototype.
3404 (tdesc_x32_avx512_linux): Likewise.
3405 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3406 features/i386/x32-avx512.c.
3407 (amd64_ymm_avx512_names): New register names for pseudo
3409 (amd64_ymmh_avx512_names): New register names for raw registers
3411 (amd64_k_names): New register names for K registers.
3412 (amd64_zmmh_names): New register names for ZMM raw registers.
3413 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3414 (amd64_xmm_avx512_names): New register names for XMM16-31
3416 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3418 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3419 if feature is present.
3420 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3421 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3422 (AMD64_NUM_REGS): Adjust to new number of registers.
3423 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3424 registers supplied via XSTATE by AVX512 registers.
3425 (i386_linux_read_description): Add case for AVX512.
3426 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3427 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3428 (i386_linux_core_read_description): Add case for AVX512.
3429 (i386_linux_init_abi): Install supported register note section
3431 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3433 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3434 registers to be number of zmm7h + 1.
3435 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3436 * i386-tdep.c: Include features/i386/i386-avx512.c.
3437 (i386_zmm_names): Add ZMM pseudo register names array.
3438 (i386_zmmh_names): Add ZMM raw register names array.
3439 (i386_k_names): Add K raw register names array.
3440 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3441 registers. AVX512 has 16 more ZMM registers than there are YMM
3443 (i386_zmmh_regnum_p): Add function to look up register number of
3445 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3446 (i386_k_regnum_p): Likewise for K raw registers.
3447 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3448 registers added by AVX512.
3449 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3450 registers added by AVX512.
3451 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3453 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3454 (i386_pseudo_register_name): Add ZMM pseudo registers.
3455 (i386_zmm_type): Construct and return vector registers type for ZMM
3457 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3458 ZMM0-31 pseudo registers and K registers.
3459 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3460 and YMM16-31 registers from register cache.
3461 (i386_pseudo_register_write): Add code to write K, ZMM and
3463 (i386_register_reggroup_p): Add code to include/exclude AVX512
3464 registers in/from respective register groups.
3465 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3466 registers if feature is present in xcr0.
3467 (i386_gdbarch_init): Add code to initialize AVX512 feature
3468 variables in tdep structure, wire in pseudo registers and call
3469 initialize_tdesc_i386_avx512.
3470 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3472 (i386_regnum): Add AVX512 registers.
3473 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3474 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3475 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3476 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3478 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3479 (i386_ymm_avx512_regnum_p): Likewise.
3480 (i386_k_regnum_p): Likewise.
3481 (i386_zmm_regnum_p): Likewise.
3482 (i386_zmmh_regnum_p): Likewise.
3483 * i387-tdep.c : Update year in copyright notice.
3484 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3486 (XSAVE_YMM_AVX512_ADDR): New macro.
3487 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3489 (XSAVE_XMM_AVX512_ADDR): New macro.
3490 (xsave_avx512_k_offset): New table for K register offsets in
3492 (XSAVE_AVX512_K_ADDR): New macro.
3493 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3495 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3496 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3498 (i387_collect_xsave): Add code to collect AVX512 registers from
3500 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3501 of XMM16-31 registers.
3502 (I387_NUM_K_REGS): New define for number of K registers.
3503 (I387_K0_REGNUM): New define for K0 register number.
3504 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3505 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3506 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3508 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3509 (I387_XMM16_REGNUM): New define for XMM16 register number.
3510 (I387_YMM0_REGNUM): New define for YMM0 register number.
3511 (I387_KEND_REGNUM): New define for last K register number.
3512 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3513 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3515 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3517 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3519 * features/Makefile: Add AVX512 related files.
3520 * features/i386/32bit-avx512.xml: New file.
3521 * features/i386/64bit-avx512.xml: Likewise.
3522 * features/i386/amd64-avx512-linux.c: Likewise.
3523 * features/i386/amd64-avx512-linux.xml: Likewise.
3524 * features/i386/amd64-avx512.c: Likewise.
3525 * features/i386/amd64-avx512.xml: Likewise.
3526 * features/i386/i386-avx512-linux.c: Likewise.
3527 * features/i386/i386-avx512-linux.xml: Likewise.
3528 * features/i386/i386-avx512.c: Likewise.
3529 * features/i386/i386-avx512.xml: Likewise.
3530 * features/i386/x32-avx512-linux.c: Likewise.
3531 * features/i386/x32-avx512-linux.xml: Likewise.
3532 * features/i386/x32-avx512.c: Likewise.
3533 * features/i386/x32-avx512.xml: Likewise.
3534 * regformats/i386/amd64-avx512-linux.dat: New file.
3535 * regformats/i386/amd64-avx512.dat: Likewise.
3536 * regformats/i386/i386-avx512-linux.dat: Likewise.
3537 * regformats/i386/i386-avx512.dat: Likewise.
3538 * regformats/i386/x32-avx512-linux.dat: Likewise.
3539 * regformats/i386/x32-avx512.dat: Likewise.
3540 * NEWS: Add note about new support for AVX512.
3543 2014-04-23 Pedro Alves <palves@redhat.com>
3545 * breakpoint.c (insert_bp_location): Tolerate errors if the
3546 breakpoint is set in a user-loaded objfile.
3547 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3548 location is marked shlib_disabled. If the breakpoint is set in a
3549 user-loaded objfile is a GDB-side memory breakpoint, validate it
3550 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3551 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3553 * mem-break.c (memory_validate_breakpoint): New function.
3554 * objfiles.c (userloaded_objfile_contains_address_p): New
3556 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3557 * target.h (memory_validate_breakpoint): New declaration.
3559 2014-04-23 Pedro Alves <palves@redhat.com>
3561 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3562 the breakpoint is set in a shared library, only suppress
3563 errors for software breakpoints, not hardware breakpoints.
3565 2014-04-22 Pedro Alves <palves@redhat.com>
3567 * infrun.c (schedlock_applies): New function, factored out from
3568 find_thread_needs_step_over.
3569 (find_thread_needs_step_over): Use it.
3570 (switch_back_to_stepped_thread): Always clear trap_expected if the
3571 step over is finished. Return early if scheduler locking applies.
3572 Look for the stepping thread and a potential step-over thread with
3574 (currently_stepping_or_nexting_callback): Delete.
3576 2014-04-22 Nick Clifton <nickc@redhat.com>
3578 * NEWS: Mention that ARM sim now supports tracing.
3580 2014-04-22 Yao Qi <yao@codesourcery.com>
3582 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3584 * tracefile.c (tracefile_fetch_registers): ... it. New
3586 * tracefile.h (tracefile_fetch_registers): Declare.
3587 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3588 tracefile_fetch_registers.
3590 2014-04-19 Eli Zaretskii <eliz@gnu.org>
3593 * windows-nat.c (thread_rec): Don't display a warning when
3594 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3595 fails for any reason, set th->suspended to -1, so that we don't
3596 try to resume such a thread. Also, don't return NULL in these
3597 cases, to avoid completely ruin the session due to "PC register is
3598 not available" error.
3599 (do_windows_fetch_inferior_registers): Check errors in
3600 GetThreadContext call.
3601 (windows_continue): Accept an additional argument KILLED; if not
3602 zero, ignore errors in the SetThreadContext call, since the
3603 inferior was killed and is shutting down.
3604 (windows_resume, get_windows_debug_event)
3605 (windows_create_inferior, windows_mourn_inferior)
3606 (windows_kill_inferior): All callers of windows_continue changed
3607 to adjust to its new calling sequence.
3609 2014-04-19 Yao Qi <yao@codesourcery.com>
3611 * ctf.c (ctf_open): Call post_create_inferior.
3613 2014-04-19 Yao Qi <yao@codesourcery.com>
3615 * ctf.c (handle_id): New static variable.
3616 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3617 value. Get the declaration of event "register" and get length
3618 of field "contents".
3620 2014-04-19 Yao Qi <yao@codesourcery.com>
3622 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3624 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3626 * valops.c (oload_method_static): Remove unnecessary argument
3627 METHOD. Update all callers.
3629 2014-04-18 Pedro alves <palves@redhat.com>
3630 Tom Tromey <tromey@redhat.com>
3633 * frame.c (get_prev_frame_1): Rename to ...
3634 (get_prev_frame_always): ... this, and make extern. Adjust.
3635 (skip_artificial_frames): Use get_prev_frame_always.
3636 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3637 (get_frame_unwind_stop_reason): Adjust to rename.
3638 * frame.h (get_prev_frame_always): Declare.
3639 * inline-frame.c: Include frame.h.
3640 (inline_frame_this_id): Use get_prev_frame_always.
3642 2014-04-18 Tristan Gingold <gingold@adacore.com>
3644 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3645 code by using bfd_mach_o_get_base_address.
3647 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3649 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3650 (spu_ax_pseudo_register_collect): New function.
3651 (spu_ax_pseudo_register_push_stack): Likewise.
3652 (spu_dwarf_reg_to_regnum): Likewise.
3653 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3655 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3657 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3658 Replace FRAME argument with FRAME_ID.
3659 * gdbarch.c, gdbarch.h: Regenerate.
3660 * findvar.c (default_value_from_register): Add GDBARCH argument;
3661 replace FRAME by FRAME_ID. No longer call get_frame_id.
3662 (value_from_register): Update call to gdbarch_value_from_register.
3663 * value.h (default_value_from_register): Update prototype.
3664 * s390-linux-tdep.c (s390_value_from_register): Update interface
3665 and call to default_value_from_register.
3666 * spu-tdep.c (spu_value_from_register): Likewise.
3668 * findvar.c (address_from_register): Remove TYPE argument.
3669 Do not call value_from_register; use gdbarch_value_from_register
3670 with null_frame_id instead.
3671 * value.h (address_from_register): Update prototype.
3672 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3673 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3674 address_from_register interface change.
3676 2014-04-17 Yao Qi <yao@codesourcery.com>
3678 * gdbtypes.h: Update comments to link to types and macros'
3681 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3683 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3685 2014-04-16 Keith Seitz <keiths@redhat.com>
3688 * dwarf2read.c (skip_one_die): Check that all relative-offset
3689 sibling DIEs fall within range of the current reader's buffer.
3690 (read_partial_die): Likewise.
3692 2014-04-16 Keith Seitz <keiths@redhat.com>
3695 * cp-namespace.c (lookup_symbol_file): If the type name of
3696 `this' is NULL, return immediately.
3698 2014-04-14 Keith Seitz <keiths@redhat.com>
3701 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3702 from symbol_matches_domain in symtab.c. All local callers
3703 of symbol_matches_domain updated.
3704 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3705 search STRUCT_DOMAIN.
3706 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3707 independently. standard_lookup will do that automatically.
3708 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3709 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3710 (cp_lookup_symbol_in_namespace): Likewise.
3711 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3712 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3713 may return a STRUCT_DOMAIN match.
3714 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3715 * cp-support.c: Include language.h.
3716 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3718 * psymtab.c (match_partial_symbol): Compare the requested
3719 domain with the symbol's domain directly.
3720 (lookup_partial_symbol): Likewise.
3721 * symtab.c (lookup_symbol_in_language): Explain when/why
3722 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3723 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3724 appropriate languages.
3725 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3726 and moved to ada-lang.c
3727 (lookup_block_symbol): Explain that this function only returns
3728 symbol matching the requested DOMAIN.
3729 Compare the requested domain with the symbol's domain directly.
3730 (iterate_over_symbols): Compare the requested domain with the
3731 symbol's domain directly.
3732 * symtab.h (symbol_matches_domain): Remove.
3734 2014-04-14 Tom Tromey <tromey@redhat.com>
3737 * c-exp.y (type_aggregate_p): New function.
3738 (qualified_name, classify_inner_name): Use it.
3739 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
3740 and TYPE_TARGET_TYPE of an enum type.
3741 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
3743 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
3744 handle TYPE_DECLARED_CLASS.
3745 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
3747 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
3748 * valops.c (enum_constant_from_type): New function.
3749 (value_aggregate_elt): Use it.
3750 * cp-namespace.c (cp_lookup_nested_symbol): Handle
3753 2014-04-14 Tom Tromey <tromey@redhat.com>
3755 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
3756 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
3758 * value.h (value_aggregate_elt): Update.
3760 2014-04-14 Tom Tromey <tromey@redhat.com>
3762 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
3764 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3766 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3767 (evaluate_subexp_standard): Pass noside argument.
3768 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3769 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3770 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3771 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3772 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3774 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3776 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3777 points to a constant blob.
3779 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3781 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3782 property and store it as the high bound and flag the range accordingly.
3783 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3784 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3785 * gdbtypes.h (enum range_flags): New enum.
3786 (struct range_bounds): Add flags member.
3788 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3790 * c-typeprint.c (c_type_print_varspec_suffix): Added
3791 check for not yet resolved high bound. If unresolved, print
3792 "variable length" string to the console instead of random
3795 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3797 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
3799 (ada_template_to_fixed_record_type_1): Likewise.
3800 (ada_to_fixed_type_1): Likewise.
3801 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3802 (cp_print_value): Likewise.
3803 * d-valprint.c (dynamic_array_type): Likewise.
3804 * findvar.c (address_of_variable): Likewise.
3805 * jv-valprint.c (java_value_print): Likewise.
3806 * valops.c (value_ind): Likewise.
3807 * value.c (coerce_ref): Likewise.
3809 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3811 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3812 value and retrieve the dynamic type size.
3814 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3816 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3817 passed to sizeof is dynamic evaluate the argument to compute the length.
3819 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3820 Joel Brobecker <brobecker@adacore.com>
3822 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3823 (dwarf2_evaluate_property): New function.
3824 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3825 * dwarf2read.c (attr_to_dynamic_prop): New function.
3826 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3828 * gdbtypes.c: Include dwarf2loc.h.
3829 (is_dynamic_type): New function.
3830 (resolve_dynamic_type): New function.
3831 (resolve_dynamic_bounds): New function.
3832 (get_type_length): New function.
3833 (check_typedef): Use get_type_length to compute type length.
3834 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3835 (TYPE_LOW_BOUND_KIND): New macro.
3836 (is_dynamic_type): New function prototype.
3837 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3838 to resolve dynamic properties of the type. Update comment.
3839 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3841 2014-04-14 Richard Henderson <rth@redhat.com>
3843 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
3845 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
3846 Doug Evans <xdje42@gmail.com>
3848 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
3849 dereference TYPE_CODE_REF values.
3851 2014-04-11 Joel Brobecker <brobecker@adacore.com>
3853 Revert the following changes due to regressions:
3855 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3856 (dwarf2_evaluate_property): New function.
3857 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3858 * dwarf2read.c (attr_to_dynamic_prop): New function.
3859 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3861 * gdbtypes.c: Include dwarf2loc.h.
3862 (is_dynamic_type): New function.
3863 (resolve_dynamic_type): New function.
3864 (resolve_dynamic_bounds): New function.
3865 (get_type_length): New function.
3866 (check_typedef): Use get_type_length to compute type length.
3867 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3868 (TYPE_LOW_BOUND_KIND): New macro.
3869 (is_dynamic_type): New function prototype.
3870 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3871 to resolve dynamic properties of the type. Update comment.
3872 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3874 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3875 passed to sizeof is dynamic evaluate the argument to compute the length.
3877 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3878 value and retrieve the dynamic type size.
3880 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3881 (ada_template_to_fixed_record_type_1): Likewise.
3882 (ada_to_fixed_type_1): Likewise.
3883 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3884 (cp_print_value): Likewise.
3885 * d-valprint.c (dynamic_array_type): Likewise.
3886 * eval.c (evaluate_subexp_with_coercion): Likewise.
3887 * findvar.c (address_of_variable): Likewise.
3888 * jv-valprint.c (java_value_print): Likewise.
3889 * valops.c (value_ind): Likewise.
3890 * value.c (coerce_ref): Likewise.
3892 * c-typeprint.c (c_type_print_varspec_suffix): Added
3893 check for not yet resolved high bound. If unresolved, print
3894 "variable length" string to the console instead of random
3897 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3898 property and store it as the high bound and flag the range accordingly.
3899 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3900 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3901 * gdbtypes.h (enum range_flags): New enum.
3902 (struct range_bounds): Add flags member.
3904 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3905 points to a constant blob.
3907 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3908 (evaluate_subexp_standard): Pass noside argument.
3909 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3910 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3911 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3912 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3913 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3915 2014-04-11 Keith Seitz <keiths@redhat.com>
3918 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
3919 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
3922 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3924 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3925 (evaluate_subexp_standard): Pass noside argument.
3926 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3927 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3928 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3929 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3930 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3932 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3934 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3935 points to a constant blob.
3937 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3939 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3940 property and store it as the high bound and flag the range accordingly.
3941 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3942 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3943 * gdbtypes.h (enum range_flags): New enum.
3944 (struct range_bounds): Add flags member.
3946 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3948 * c-typeprint.c (c_type_print_varspec_suffix): Added
3949 check for not yet resolved high bound. If unresolved, print
3950 "variable length" string to the console instead of random
3953 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3955 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3956 (ada_template_to_fixed_record_type_1): Likewise.
3957 (ada_to_fixed_type_1): Likewise.
3958 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3959 (cp_print_value): Likewise.
3960 * d-valprint.c (dynamic_array_type): Likewise.
3961 * eval.c (evaluate_subexp_with_coercion): Likewise.
3962 * findvar.c (address_of_variable): Likewise.
3963 * jv-valprint.c (java_value_print): Likewise.
3964 * valops.c (value_ind): Likewise.
3965 * value.c (coerce_ref): Likewise.
3967 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3969 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3970 value and retrieve the dynamic type size.
3972 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3974 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3975 passed to sizeof is dynamic evaluate the argument to compute the length.
3977 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3979 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3980 (dwarf2_evaluate_property): New function.
3981 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3982 * dwarf2read.c (attr_to_dynamic_prop): New function.
3983 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3985 * gdbtypes.c: Include dwarf2loc.h.
3986 (is_dynamic_type): New function.
3987 (resolve_dynamic_type): New function.
3988 (resolve_dynamic_bounds): New function.
3989 (get_type_length): New function.
3990 (check_typedef): Use get_type_length to compute type length.
3991 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3992 (TYPE_LOW_BOUND_KIND): New macro.
3993 (is_dynamic_type): New function prototype.
3994 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3995 to resolve dynamic properties of the type. Update comment.
3996 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3998 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4000 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
4001 declaring high/low bounds and change uses accordingly. Call
4002 create_range_type instead of create_static_range_type.
4003 * gdbtypes.c (create_range_type): New function.
4004 (create_range_type): Convert bounds into struct bound_prop and pass
4005 them to create_range_type.
4006 * gdbtypes.h (struct bound_prop): New struct.
4007 (create_range_type): New function prototype.
4008 (struct range_bounds): Use struct bound_prop instead of LONGEST for
4009 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
4010 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
4012 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
4014 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4016 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
4017 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
4018 * ada-lang.c: All uses of create_range_type updated.
4019 * coffread.c: All uses of create_range_type updated.
4020 * dwarf2read.c: All uses of create_range_type updated.
4021 * f-exp.y: All uses of create_range_type updated.
4022 * m2-valprint.c: All uses of create_range_type updated.
4023 * mdebugread.c: All uses of create_range_type updated.
4024 * stabsread.c: All uses of create_range_type updated.
4025 * valops.c: All uses of create_range_type updated.
4026 * valprint.c: All uses of create_range_type updated.
4028 2014-04-10 Pedro Alves <palves@redhat.com>
4030 * breakpoint.c (single_step_breakpoints)
4031 (single_step_gdbarch): Move up in the file.
4032 (one_breakpoint_xfer_memory): New function, factored out from ...
4033 (breakpoint_xfer_memory): ... here. Also process single-step
4036 2014-04-09 Tristan Gingold <gingold@adacore.com>
4038 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
4040 (darwin_decode_exception_message): Free port only after use.
4042 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
4044 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
4045 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
4046 when setting the size of call_length.
4048 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
4050 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
4051 dereference TYPE_CODE_REF values.
4053 2014-04-07 Joel Brobecker <brobecker@adacore.com>
4055 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
4056 end of warning message.
4058 2014-04-03 Doug Evans <dje@google.com>
4060 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
4061 of stub_comp_unit_die, stub_comp_dir is non-NULL.
4063 2014-04-02 Alan Modra <amodra@gmail.com>
4065 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
4066 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
4067 (struct symbol_file_add_from_memory_args): Add size field.
4068 (find_vdso_size): New function.
4069 (add_vsyscall_page): Attempt to find vdso size.
4071 2014-04-01 Doug Evans <dje@google.com>
4073 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
4075 2014-04-01 Tristan Gingold <gingold@adacore.com>
4077 * darwin-nat.c (darwin_encode_reply): Add prototype.
4078 (darwin_decode_exception_message): Reply to unknown inferiors.
4079 (darwin_decode_message): Handle message by id. Ignore message
4080 to unknown inferior.
4081 (darwin_wait): Discard unknown messages, add debug trace.
4083 2014-03-31 Doug Evans <dje@google.com>
4085 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
4088 2014-03-31 Doug Evans <dje@google.com>
4090 New option "set print symbol-loading".
4092 * solib.c (solib_read_symbols): Only print symbol loading messages
4094 (solib_add): If symbol loading is in "brief" mode, notify user
4095 symbols are being loaded.
4096 (reload_shared_libraries_1): Ditto.
4097 * symfile.c (print_symbol_loading_off): New static global.
4098 (print_symbol_loading_brief): New static global.
4099 (print_symbol_loading_full): New static global.
4100 (print_symbol_loading_enums): New static global.
4101 (print_symbol_loading): New static global.
4102 (print_symbol_loading_p): New function.
4103 (symbol_file_add_with_addrs): Only print symbol loading messages
4105 (_initialize_symfile): Register "print symbol-loading" set/show
4107 * symfile.h (print_symbol_loading_p): Declare.
4109 2014-03-30 Doug Evans <xdje42@gmail.com>
4111 * infrun.c (set_last_target_status): New function.
4112 (handle_inferior_event): Call it.
4114 2014-03-30 Doug Evans <xdje42@gmail.com>
4116 * inferior.h (enum stop_kind): Improve comment.
4118 2014-03-28 Joel Brobecker <brobecker@adacore.com>
4120 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
4121 a reference, strip the reference layer before calling
4122 the lang_ops value_has_mutated callback.
4124 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
4126 Remove some globals from our parser.
4127 * language.c (unk_lang_parser): Add "struct parser_state"
4129 * language.h (struct language_defn) <la_parser>: Likewise.
4130 * parse.c (expout, expout_size, expout_ptr): Remove variables.
4131 (initialize_expout): Add "struct parser_state" argument.
4132 Rewrite function to use the parser state.
4133 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
4134 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
4135 write_exp_elt_longcst, write_exp_elt_dblcst,
4136 write_exp_elt_decfloatcst, write_exp_elt_type,
4137 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4138 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
4139 write_dollar_variable): Likewise.
4140 (parse_exp_in_context_1): Use parser state.
4141 (insert_type_address_space): Add "struct parser_state" argument.
4143 (increase_expout_size): New function.
4144 * parser-defs.h: Forward declare "struct language_defn" and
4145 "struct parser_state".
4146 (expout, expout_size, expout_ptr): Remove extern declarations.
4147 (parse_gdbarch, parse_language): Rewrite macro declarations to
4148 accept the parser state.
4149 (struct parser_state): New struct.
4150 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
4151 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
4152 write_exp_elt_decfloatcst, write_exp_elt_type,
4153 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4154 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
4155 write_exp_msymbol, write_dollar_variable,
4156 mark_struct_expression, insert_type_address_space): Add "struct
4157 parser_state" argument.
4158 (increase_expout_size): New function.
4159 * utils.c (do_clear_parser_state): New function.
4160 (make_cleanup_clear_parser_state): Likewise.
4161 * utils.h (make_cleanup_clear_parser_state): New function
4163 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
4164 Update calls to write_exp* in order to pass the parser state.
4165 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
4166 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
4167 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4168 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
4169 * stap-probe.c (stap_parse_register_operand): Likewise.
4170 (stap_parse_single_operand): Likewise.
4171 (stap_parse_argument_1): Likewise.
4172 (stap_parse_argument): Use parser state.
4173 * stap-probe.h: Include "parser-defs.h".
4174 (struct stap_parse_info) <pstate>: New field.
4175 * c-exp.y (parse_type): Rewrite to use parser state.
4176 (yyparse): Redefine to c_parse_internal.
4177 (pstate): New global variable.
4178 (parse_number): Add "struct parser_state" argument.
4179 (write_destructor_name): Likewise.
4180 (type_exp): Update calls to write_exp* and similars in order to
4182 (exp1, exp, variable, qualified_name, space_identifier,
4183 typename, typebase): Likewise.
4184 (write_destructor_name, parse_number, lex_one_token,
4185 classify_name, classify_inner_name, c_parse): Add "struct
4186 parser_state" argument. Update function to use parser state.
4187 * c-lang.h: Forward declare "struct parser_state".
4188 (c_parse): Add "struct parser_state" argument.
4189 * ada-exp.y (parse_type): Rewrite macro to use parser state.
4190 (yyparse): Redefine macro to ada_parse_internal.
4191 (pstate): New variable.
4192 (write_int, write_object_renaming, write_var_or_type,
4193 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
4194 type_int, type_long, type_long_long, type_float, type_double,
4195 type_long_double, type_char, type_boolean, type_system_address):
4196 Add "struct parser_state" argument.
4197 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
4198 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
4199 var_or_type, aggregate, aggregate_component_list,
4200 positional_list, others, component_group,
4201 component_associations): Update calls to write_exp* and similar
4202 functions in order to use parser state.
4203 (ada_parse, write_var_from_sym, write_int,
4204 write_exp_op_with_string, write_object_renaming,
4205 find_primitive_type, write_selectors, write_ambiguous_var,
4206 write_var_or_type, write_name_assoc, type_int, type_long,
4207 type_long_long, type_float, type_double, type_long_double,
4208 type_char, type_boolean, type_system_address): Add "struct
4209 parser_state" argument. Adjust function to use parser state.
4210 * ada-lang.c (parse): Likewise.
4211 * ada-lang.h: Forward declare "struct parser_state".
4212 (ada_parse): Add "struct parser_state" argument.
4213 * ada-lex.l (processInt, processReal): Likewise. Adjust all
4214 calls to both functions.
4215 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
4217 (yyparse): Redefine macro to f_parse_internal.
4218 (pstate): New variable.
4219 (parse_number): Add "struct parser_state" argument.
4220 (type_exp, exp, subrange, typebase): Update calls to write_exp*
4221 and similars in order to use parser state.
4222 (parse_number): Adjust code to use parser state.
4224 (f_parse): New function.
4225 * f-lang.h: Forward declare "struct parser_state".
4226 (f_parse): Add "struct parser_state" argument.
4227 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
4229 (yyparse): Redefine macro for java_parse_internal.
4230 (pstate): New variable.
4231 (push_expression_name, push_expression_name, insert_exp): Add
4232 "struct parser_state" argument.
4233 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
4234 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
4235 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
4236 PostIncrementExpression, PostDecrementExpression,
4237 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
4238 UnaryExpressionNotPlusMinus, CastExpression,
4239 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
4240 RelationalExpression, EqualityExpression, AndExpression,
4241 ExclusiveOrExpression, InclusiveOrExpression,
4242 ConditionalAndExpression, ConditionalOrExpression,
4243 ConditionalExpression, Assignment, LeftHandSide): Update
4244 calls to write_exp* and similars in order to use parser state.
4245 (parse_number): Ajust code to use parser state.
4247 (java_parse): New function.
4248 (push_variable): Add "struct parser_state" argument. Adjust
4249 code to user parser state.
4250 (push_fieldnames, push_qualified_expression_name,
4251 push_expression_name, insert_exp): Likewise.
4252 * jv-lang.h: Forward declare "struct parser_state".
4253 (java_parse): Add "struct parser_state" argument.
4254 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
4256 (yyparse): Redefine macro to m2_parse_internal.
4257 (pstate): New variable.
4258 (type_exp, exp, fblock, variable, type): Update calls to
4259 write_exp* and similars to use parser state.
4261 (m2_parse): New function.
4262 * m2-lang.h: Forward declare "struct parser_state".
4263 (m2_parse): Add "struct parser_state" argument.
4264 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
4265 * objc-lang.h: Forward declare "struct parser_state".
4266 (end_msglist): Add "struct parser_state" argument.
4267 * p-exp.y (parse_type): Rewrite macro to use parser state.
4268 (yyparse): Redefine macro to pascal_parse_internal.
4269 (pstate): New variable.
4270 (parse_number): Add "struct parser_state" argument.
4271 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4272 write_exp* and similars in order to use parser state.
4273 (parse_number, yylex): Adjust code to use parser state.
4274 (pascal_parse): New function.
4275 * p-lang.h: Forward declare "struct parser_state".
4276 (pascal_parse): Add "struct parser_state" argument.
4277 * go-exp.y (parse_type): Rewrite macro to use parser state.
4278 (yyparse): Redefine macro to go_parse_internal.
4279 (pstate): New variable.
4280 (parse_number): Add "struct parser_state" argument.
4281 (type_exp, exp1, exp, variable, type): Update calls to
4282 write_exp* and similars in order to use parser state.
4283 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4284 to use parser state.
4285 (go_parse): Likewise.
4286 * go-lang.h: Forward declare "struct parser_state".
4287 (go_parse): Add "struct parser_state" argument.
4289 2014-03-27 Doug Evans <dje@google.com>
4291 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4293 2014-03-27 Doug Evans <dje@google.com>
4295 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4296 Remove argument abbrev_section. All callers updated.
4298 2014-03-27 Doug Evans <dje@google.com>
4300 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4301 addr_base, ranges_base.
4303 2014-03-26 Keith Seitz <keiths@redhat.com>
4305 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4306 types, not VAR_DOMAIN.
4308 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4310 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4312 * features/nios2-linux.c: Regenerated.
4313 * features/nios2.c: Regenerated.
4315 2014-03-25 Pedro Alves <palves@redhat.com>
4317 * cli/cli-script.c (script_from_file): Force the interpreter to
4320 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4322 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4323 small stack allocation.
4325 2014-03-24 Tristan Gingold <gingold@adacore.com>
4327 * darwin-nat.c (exc_server): Remove unused prototype.
4328 (darwin_dump_message): Correctly display data on x86_64.
4329 (darwin_encode_reply): Fix style.
4330 Add comments and fix indentation.
4332 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4334 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4336 2014-03-22 Doug Evans <xdje42@gmail.com>
4338 * infcmd.c: Whitespace fixes.
4339 (interrupt_command): Merge two function comments into one.
4341 2014-03-22 Doug Evans <xdje42@gmail.com>
4343 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4346 2014-03-22 Yao Qi <yao@codesourcery.com>
4348 * remote.c (target_read_live_memory): Remove.
4349 (memory_xfer_live_readonly_partial): Rename it to
4350 remote_xfer_live_readonly_partial. Remove argument 'object'.
4351 All callers updated. Call remote_read_bytes_1
4352 instead of target_read_live_memory.
4353 * tracepoint.c (set_traceframe_number): Remove.
4354 (make_cleanup_restore_traceframe_number): Likewise .
4355 * tracepoint.h (set_traceframe_number): Remove declaration.
4356 (make_cleanup_restore_traceframe_number): Likewise.
4358 2014-03-22 Yao Qi <yao@codesourcery.com>
4360 * remote.c (remote_read_bytes): Move code on reading from the
4362 (remote_read_bytes_1): ... here. New function.
4364 2014-03-22 Yao Qi <yao@codesourcery.com>
4366 * ctf.c (ctf_xfer_partial): Check the return value of
4367 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4368 return TARGET_XFER_UNAVAILABLE.
4369 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4370 * target.c (target_read_live_memory): Move it to remote.c.
4371 (memory_xfer_live_readonly_partial): Likewise.
4372 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4373 * remote.c (target_read_live_memory): Moved from target.c.
4374 (memory_xfer_live_readonly_partial): Likewise.
4375 (remote_read_bytes): Factored out from
4376 memory_xfer_partial_1.
4378 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4380 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4383 2014-03-21 Pedro Alves <palves@redhat.com>
4385 * infrun.c (normal_stop): Extend comment.
4387 2014-03-21 Hui Zhu <hui@codesourcery.com>
4388 Pedro Alves <palves@redhat.com>
4390 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4392 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4393 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4394 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4396 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4398 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4399 `z' formatted output modifier.
4401 2014-03-20 Tom Tromey <tromey@redhat.com>
4402 Sergio Durigan Junior <sergiodj@redhat.com>
4404 * probe.c (parse_probes): Turn assert into an ordinary error.
4405 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4406 exceptions when parsing probes. Rearrange the code for clarity.
4408 2014-03-20 Tom Tromey <tromey@redhat.com>
4411 * top.c (execute_command): Only dispatch events if the command
4414 2014-03-20 Tom Tromey <tromey@redhat.com>
4417 * infcall.c: Include event-top.h.
4418 (run_inferior_call): Call async_disable_stdin if needed.
4420 2014-03-20 Pedro Alves <palves@redhat.com>
4422 * infrun.c (prepare_to_proceed): Delete.
4423 (thread_still_needs_step_over): New function.
4424 (find_thread_needs_step_over): New function.
4425 (proceed): If the current thread needs a step-over, set its
4426 steping_over_breakpoint flag. Adjust to use
4427 find_thread_needs_step_over instead of prepare_to_proceed.
4428 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4429 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4431 (switch_back_to_stepped_thread): Step over breakpoints of all
4432 threads not the stepping thread, before switching back to the
4435 2014-03-20 Pedro Alves <palves@redhat.com>
4437 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4439 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4440 * infrun.c (saved_singlestep_ptid)
4441 (stepping_past_singlestep_breakpoint): Delete.
4442 (resume): Remove stepping_past_singlestep_breakpoint handling.
4443 (proceed): Store the prev_pc of the stepping thread too.
4444 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4446 (enum infwait_states): Delete infwait_thread_hop_state.
4447 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4449 (handle_inferior_event): Adjust.
4450 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4451 handling and the thread-hop code. Before removing single-step
4452 breakpoints, check whether the thread hit a single-step breakpoint
4453 of another thread. If it did, the trap is not a random signal.
4454 (switch_back_to_stepped_thread): If the event thread hit a
4455 single-step breakpoint, unblock it before switching to the
4456 stepping thread. Handle the case of the stepped thread having
4458 (keep_going): Handle the case of the current thread moving past a
4459 single-step breakpoint.
4461 2014-03-20 Pedro Alves <palves@redhat.com>
4464 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4465 are being stepped over.
4466 (breakpoint_address_match): Make extern.
4467 * breakpoint.h (breakpoint_address_match): New declaration.
4468 * inferior.h (stepping_past_instruction_at): New declaration.
4469 * infrun.c (struct step_over_info): New type.
4470 (step_over_info): New global.
4471 (set_step_over_info, clear_step_over_info)
4472 (stepping_past_instruction_at): New functions.
4473 (handle_inferior_event): Clear the step-over info when
4474 trap_expected is cleared.
4475 (resume): Remove now stale comment.
4476 (clear_proceed_status): Clear step-over info.
4477 (proceed): Adjust step-over handling to set or clear the step-over
4478 info instead of removing all breakpoints.
4479 (handle_signal_stop): When setting up a thread-hop, don't remove
4481 (stop_stepping): Clear step-over info.
4482 (keep_going): Adjust step-over handling to set or clear step-over
4483 info and then always inserting breakpoints, instead of removing
4484 all breakpoints when stepping over one.
4486 2014-03-20 Pedro Alves <palves@redhat.com>
4488 * infrun.c (previous_inferior_ptid): Adjust comment.
4489 (deferred_step_ptid): Delete.
4490 (infrun_thread_ptid_changed, prepare_to_proceed)
4491 (init_wait_for_inferior): Adjust.
4492 (handle_signal_stop): Delete deferred_step_ptid handling.
4494 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4497 * defs.h (sync_quit_force_run): New declaration.
4498 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4499 * event-top.c (async_sigterm_handler): New declaration.
4500 (async_sigterm_token): New variable.
4501 (async_init_signals): Create also async_sigterm_token.
4502 (async_sigterm_handler): New function.
4503 (sync_quit_force_run): New variable.
4504 (handle_sigterm): Replace quit_force call by other calls.
4505 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4507 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4509 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4510 offset into SPE pseudo registers.
4512 2014-03-18 Pedro Alves <palves@redhat.com>
4515 * inferior.h (print_stop_event): Declare.
4516 * infrun.c (print_stop_event): New, factored out from ...
4517 (normal_stop): ... this.
4518 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4519 of bpstat_print/print_stack_frame.
4521 2014-03-17 Tom Tromey <tromey@redhat.com>
4523 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4525 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4527 * ada-lang.c (decode_constrained_packed_array): Perform a
4528 minimal coercion for reference with coerce_ref instead of
4531 2014-03-17 Tristan Gingold <gingold@adacore.com>
4533 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4534 (darwin_solib_create_inferior_hook): Emit a warning if version
4537 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
4539 * python/py-value.c (get_field_flag): Cast flag_name argument to
4540 PyObject_GetAttrString to support Python 2.4.
4542 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4544 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4545 (Global Maintainers): Remove Jan Kratochvil.
4547 2014-03-14 Pedro Alves <palves@redhat.com>
4549 * inferior.h (terminal_ours_for_output): Rename to ...
4550 (child_terminal_ours_for_output): ... this.
4551 (terminal_save_ours): Rename to ...
4552 (child_terminal_save_ours): ... this.
4553 (terminal_ours): Rename to ...
4554 (child_terminal_ours): ... this.
4555 (terminal_inferior): Rename to ...
4556 (child_terminal_inferior): ... this.
4557 (terminal_init_inferior): Rename to ...
4558 (child_terminal_init_inferior): ... this.
4559 (terminal_init_inferior_with_pgrp): Rename to ...
4560 (child_terminal_init_inferior_with_pgrp): ... this.
4561 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4562 (child_terminal_init_with_pgrp): ... this.
4563 (terminal_save_ours): Rename to ...
4564 (child_terminal_save_ours): ... this.
4565 (terminal_init_inferior): Rename to ...
4566 (child_terminal_init): ... this. Adjust.
4567 (terminal_inferior): Rename to ...
4568 (child_terminal_inferior): ... this.
4569 (terminal_ours_for_output): Rename to ...
4570 (child_terminal_ours_for_output): ... this. Adjust.
4571 (terminal_ours): Rename to ...
4572 (child_terminal_ours): ... this.
4573 (terminal_ours_1): Rename to ...
4574 (child_terminal_ours_1): ... this. Adjust.
4575 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4576 * windows-nat.c (do_initial_windows_stuff): Adjust.
4577 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4578 (gnu_terminal_init): ... this. Adjust.
4579 (gnu_target): Adjust.
4580 * inf-child.c (inf_child_target): Adjust.
4582 2014-03-13 Doug Evans <xdje42@gmail.com>
4585 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4588 2014-03-13 Doug Evans <xdje42@gmail.com>
4590 * value.c (record_latest_value): Call release_value_or_incref
4591 instead of release_value.
4593 2014-03-13 Pedro Alves <palves@redhat.com>
4595 * procfs.c (procfs_target): Don't override to_shortname,
4596 to_longname or to_doc.
4598 2014-03-13 Pedro Alves <palves@redhat.com>
4600 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4601 Unix in user visible strings.
4603 2014-03-12 Stan Shebs <stan@codesourcery.com>
4605 * gdbtypes.h: Annotate comments for Doxygen, add a page
4606 block comment with some general info.
4608 2014-03-12 Pedro Alves <palves@redhat.com>
4610 * infcmd.c (prepare_execution_command): New function, factored out
4611 from several execution commands.
4612 (run_command_1, continue_command, step_1, jump_command)
4613 (signal_command, until_command, advance_command, finish_command)
4614 (attach_command): Use prepare_execution_command.
4616 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
4618 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4621 (struct arm_linux_thread_points): Removed.
4622 (struct arm_linux_process_info): New.
4623 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4624 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4625 (arm_linux_find_breakpoints_by_tid): Removed.
4626 (struct arch_lwp_info): New.
4627 (arm_linux_find_process_pid): New functions.
4628 (arm_linux_add_process): New functions.
4629 (arm_linux_process_info_get): New functions.
4630 (arm_linux_forget_process): New function.
4631 (arm_linux_get_debug_reg_state): New function.
4632 (struct update_registers_data): New.
4633 (update_registers_callback): New function.
4634 (arm_linux_insert_hw_breakpoint1): Updated.
4635 (arm_linux_remove_hw_breakpoint1): Updated.
4636 (arm_linux_insert_hw_breakpoint): Updated.
4637 (arm_linux_remove_hw_breakpoint): Updated.
4638 (arm_linux_insert_watchpoint): Updated.
4639 (arm_linux_remove_watchpoint): Updated.
4640 (arm_linux_new_thread): Updated.
4641 (arm_linux_prepare_to_resume): New function.
4642 (arm_linux_new_fork): New function.
4643 (_initialize_arm_linux_nat): Updated.
4645 2014-03-12 Pedro Alves <palves@redhat.com>
4647 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4649 2014-03-12 Tom Tromey <tromey@redhat.com>
4651 * inf-child.c (return_zero): New function.
4652 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4653 * aix-thread.c (aix_thread_inferior_created): New function.
4654 (aix_thread_attach): Remove.
4655 (init_aix_thread_ops): Don't set to_attach.
4656 (_initialize_aix_thread): Register inferior_created observer.
4657 * corelow.c (init_core_ops): Don't set to_attach or
4659 * exec.c (init_exec_ops): Don't set to_attach or
4661 * infcmd.c (run_command_1): Use find_run_target. Make direct
4663 (attach_command): Use find_attach_target. Make direct target
4665 * record-btrace.c (init_record_btrace_ops): Don't set
4667 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4669 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4670 set to_create_inferior.
4671 * target.c (complete_target_initialization): Add assertion.
4672 (target_create_inferior): Remove.
4673 (find_default_attach, find_default_create_inferior): Remove.
4674 (find_attach_target, find_run_target): New functions.
4675 (find_default_is_async_p, find_default_can_async_p)
4676 (target_supports_non_stop, target_attach): Remove.
4677 (init_dummy_target): Don't set to_create_inferior or
4678 to_supports_non_stop.
4679 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4680 TARGET_DEFAULT_FUNC.
4681 <to_create_inferior>: Add comment.
4682 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4683 TARGET_DEFAULT_RETURN.
4684 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4685 (find_attach_target, find_run_target): Declare.
4686 (target_create_inferior): Remove.
4687 (target_has_execution_1): Update comment.
4688 (target_supports_non_stop): Remove.
4689 * target-delegates.c: Rebuild.
4691 2014-03-12 Pedro Alves <palves@redhat.com>
4693 * inf-child.h: Update comment to not mention Unix.
4695 2014-03-12 Pedro Alves <palves@redhat.com>
4697 * inf-child.c: Update top comment to not mention Unix. Add
4698 generic comment describing how this target is meant to be used.
4699 (inf_child_post_attach, inf_child_post_startup_inferior)
4700 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4703 2014-03-12 Pedro Alves <palves@redhat.com>
4705 * nto-procfs.c: Include inf-child.h.
4706 (procfs_ops): Delete global.
4707 (procfs_can_run): Delete method.
4708 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
4709 target pointer instead of referencing procfs_ops.
4710 (procfs_prepare_to_store): Delete.
4711 (init_procfs_ops): Delete function.
4712 (procfs_target): New function, based on init_procfs_ops, but
4713 inherit inf_child_target.
4714 (_initialize_procfs): Use procfs_target.
4716 2014-03-12 Pedro Alves <palves@redhat.com>
4718 * windows-nat.c: Include inf-child.h.
4719 (windows_ops): Delete global.
4720 (windows_open, windows_prepare_to_store, windows_can_run): Delete
4722 (init_windows_ops): Delete function.
4723 (windows_target): New function, based on init_windows_ops, but
4724 inherit inf_child_target.
4725 (_initialize_windows_nat): Use windows_target. Install x86
4726 specific target methods here.
4728 2014-03-10 Doug Evans <xdje42@gmail.com>
4730 * guile/guile.c (call_initialize_gdb_module): New function.
4731 (initialize_guile): Replace call to scm_init_guile with call to
4734 2014-03-10 Joel Brobecker <brobecker@adacore.com>
4736 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
4737 in call to TYPE_CODE macro.
4739 2014-03-10 Jerome Guitton <guitton@adacore.com>
4741 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
4742 Resolve tagged types to full view.
4744 2014-03-10 Hui Zhu <hui@codesourcery.com>
4746 * target.h (target_insert_breakpoint): Remove "hardware" from its
4749 2014-03-07 Doug Evans <dje@google.com>
4751 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
4753 2014-03-07 Doug Evans <dje@google.com>
4755 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
4756 Remove unused local comp_dir_attr. Assert exactly one of
4757 stub_comp_unit_die, stub_comp_dir is non-NULL.
4759 2014-03-07 Joel Brobecker <brobecker@adacore.com>
4761 * target.h (complete_target_initialization, add_target):
4764 2014-03-07 Pedro Alves <palves@redhat.com>
4766 * go32-nat.c: Include inf-child.h.
4767 (go32_ops): Delete global.
4768 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
4770 (go32_create_inferior): Push the passed in target pointer instead
4771 of referencing go32_ops.
4772 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
4773 (go32_target): New function, based on init_go32_ops, but inherit
4775 (_initialize_go32_nat): Use go32_target. Move parts of
4778 2014-03-06 Joel Brobecker <brobecker@adacore.com>
4780 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
4781 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
4782 SYMBOL_VALUE_ADDRESS.
4783 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
4785 2014-03-06 Yao Qi <yao@codesourcery.com>
4787 * breakpoint.c (get_tracepoint_by_number): Remove argument
4788 optional_p. All callers updated. Adjust comments. Update
4790 * breakpoint.h (get_tracepoint_by_number): Update declaration.
4792 2014-03-06 Yao Qi <yao@codesourcery.com>
4794 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
4795 early if get_number returns zero. Use 'p' instead of 'args'.
4797 2014-03-06 Yao Qi <yao@codesourcery.com>
4799 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
4802 2014-03-06 Yao Qi <yao@codesourcery.com>
4804 PR breakpoints/16508
4805 * tracepoint.c (check_trace_running): New function.
4806 (trace_find_command): Move code to check_trace_running and
4807 call check_trace_running.
4808 (trace_find_pc_command): Likewise.
4809 (trace_find_tracepoint_command): Likewise.
4810 (trace_find_line_command): Likewise.
4811 (trace_find_range_command): Likewise.
4812 * tracepoint.h (check_trace_running): Likewise.
4813 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
4815 2014-03-06 Yao Qi <yao@codesourcery.com>
4817 * target.h (struct target_ops) <to_traceframe_info>: Use
4818 TARGET_DEFAULT_NORETURN (tcomplain ()).
4819 * target-delegates.c: Regenerated.
4821 2014-03-05 Pedro Alves <palves@redhat.com>
4824 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
4825 void. Update comment.
4826 (dcache_xfer_memory): Delete.
4827 (dcache_read_memory_partial): New, based on the read bits of
4829 (dcache_update): Add status parameter. Use ULONGEST for len, and
4830 adjust. Discard cache lines if the reason for the update was
4832 * dcache.h (dcache_xfer_memory): Delete declaration.
4833 (dcache_read_memory_partial): New declaration.
4834 (dcache_update): Update prototype.
4835 * target.c (raw_memory_xfer_partial): Update the dcache here.
4836 (memory_xfer_partial_1): Don't handle dcache writes here.
4838 2014-03-05 Mike Frysinger <vapier@gentoo.org>
4840 * remote-sim.c (gdbsim_load): Add const to prog.
4842 2014-03-03 Tom Tromey <tromey@redhat.com>
4844 * elfread.c (probe_key): Change to bfd_data.
4845 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
4846 now per-BFD, not per-objfile.
4847 * stap-probe.c (stap_probe_destroy): Update comment.
4848 (handle_stap_probe): Allocate on the per-BFD obstack.
4850 2014-03-03 Tom Tromey <tromey@redhat.com>
4852 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
4853 * breakpoint.c (create_longjmp_master_breakpoint): Use
4855 (add_location_to_breakpoint, bkpt_probe_insert_location)
4856 (bkpt_probe_remove_location): Update.
4857 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
4858 * elfread.c (elf_symfile_relocate_probe): Remove.
4859 (elf_probe_fns): Update.
4860 (insert_exception_resume_breakpoint): Change type of "probe"
4861 parameter to bound_probe.
4862 (check_exception_resume): Update.
4863 * objfiles.c (objfile_relocate1): Don't relocate probes.
4864 * probe.c (bound_probe_s): New typedef.
4865 (parse_probes): Use get_probe_address. Set sal's objfile.
4866 (find_probe_by_pc): Return a bound_probe.
4867 (collect_probes): Return a VEC(bound_probe_s).
4868 (compare_probes): Update.
4869 (gen_ui_out_table_header_info): Change type of "probes"
4871 (info_probes_for_ops): Update.
4872 (get_probe_address): New function.
4873 (probe_safe_evaluate_at_pc): Update.
4874 * probe.h (struct probe_ops) <get_probe_address>: New field.
4875 <set_semaphore, clear_semaphore>: Add objfile parameter.
4876 (struct probe) <objfile>: Remove field.
4878 <address>: Update comment.
4879 (struct bound_probe): New.
4880 (find_probe_by_pc): Return a bound_probe.
4881 (get_probe_address): Declare.
4882 * solib-svr4.c (struct probe_and_action) <address>: New field.
4883 (hash_probe_and_action, equal_probe_and_action): Update.
4884 (register_solib_event_probe): Add address parameter.
4885 (solib_event_probe_at): Update.
4886 (svr4_create_probe_breakpoints): Add objfile parameter. Use
4888 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
4889 (stap_get_probe_address): New function.
4890 (stap_can_evaluate_probe_arguments, compute_probe_arg)
4891 (compile_probe_arg): Update.
4892 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
4894 (handle_stap_probe): Don't relocate the probe.
4895 (stap_relocate): Remove.
4896 (stap_gen_info_probes_table_values): Update.
4897 (stap_probe_ops): Remove stap_relocate.
4898 * symfile-debug.c (debug_sym_relocate_probe): Remove.
4899 (debug_sym_probe_fns): Update.
4900 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
4901 * symtab.c (init_sal): Use memset.
4902 * symtab.h (struct symtab_and_line) <objfile>: New field.
4903 * tracepoint.c (start_tracing, stop_tracing): Update.
4905 2014-03-03 Tom Tromey <tromey@redhat.com>
4907 * probe.h (parse_probes, find_probe_by_pc)
4908 (find_probes_in_objfile): Fix comments.
4910 2014-03-02 Doug Evans <xdje42@gmail.com>
4912 * infrun.c (handle_signal_stop): Replace test for
4913 TARGET_WAITKIND_STOPPED with an assert.
4915 2014-03-02 Doug Evans <xdje42@gmail.com>
4917 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
4919 2014-03-02 Doug Evans <xdje42@gmail.com>
4921 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
4923 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4925 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
4927 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4929 * i386obsd-nat.c: Include "obsd-nat.h".
4930 (_initialize_i386obsd_nat): Call obsd_add_target instead of
4932 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4934 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4936 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
4938 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4940 * mips64obsd-nat.c: Include "obsd-nath".
4941 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
4943 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4945 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4947 * amd64obsd-nat.c: Include "obsd-nat,h.
4948 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
4950 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4952 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
4954 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
4955 (find_overload_match): Update call to find_oload_champ.
4956 (find_oload_champ_namespace_loop): Likewise
4958 2014-02-28 Mark Kettenis <kettenis@gnu.org>
4960 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
4962 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
4963 * config/sparc/obsd64.mh: New file.
4964 * sparc64obsd-nat.c: New file.
4966 * obsd-nat.h: New file.
4967 * obsd-nat.c: New file.
4968 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
4969 (ALLDEPFILES): Add obsd-nat.c.
4971 2014-02-28 Tom Tromey <tromey@redhat.com>
4973 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
4974 * cli-out.h (cli_ui_out_impl): Now const.
4975 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
4976 * ui-out.c (struct ui_out) <impl>: Now const.
4977 (default_ui_out_impl): Now const.
4978 (ui_out_new): Make 'impl' parameter const.
4979 * ui-out.h (ui_out_new): Update.
4981 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4983 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
4985 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4987 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
4989 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4991 Additional PR 8882 fix.
4992 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
4994 2014-02-27 Pedro Alves <palves@redhat.com>
4996 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
4999 2014-02-27 Pedro Alves <palves@redhat.com>
5002 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
5003 * nat/linux-waitpid.c: Include string.h.
5004 (status_to_str): Moved here and made extern.
5005 * nat/linux-waitpid.h (status_to_str): New declaration.
5007 2014-02-27 Hui Zhu <hui@codesourcery.com>
5010 * infrun.c (ptid_match): Move ...
5011 * common/ptid.c (ptid_match): ... here.
5012 * inferior.h (ptid_match): Move ...
5013 * common/ptid.h (ptid_match): ... here.
5015 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5017 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
5018 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
5021 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5023 * obsd-tdep.c (obsd_auxv_parse): New function.
5024 (obsd_init_abi): Set auxv_parse.
5026 * gdbarch.sh (auxv_parse): New.
5027 * gdbarch.h: Regenerated.
5028 * gdbarch.c: Regenerated.
5029 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
5031 2014-02-26 Ludovic Courtès <ludo@gnu.org>
5033 * guile/scm-value.c (gdbscm_history_append_x): New function.
5034 (value_functions): Add it.
5036 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5038 * dwarf2read.c (attr_value_as_address): New function.
5039 (dwarf2_find_base_address, read_call_site_scope): Use
5040 attr_value_as_address in place of DW_ADDR.
5041 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
5042 the low and high addresses. Slight rework of the handling
5043 of the high pc being a constant form, and limit it to
5044 DWARF verson 4 or higher.
5045 (dwarf2_record_block_ranges): Likewise.
5046 (read_partial_die): Likewise.
5047 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
5049 2014-02-26 Tom Tromey <tromey@redhat.com>
5051 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
5053 2014-02-26 Tom Tromey <tromey@redhat.com>
5055 * elfread.c (elf_read_minimal_symbols): Return early if
5056 minimal symbols have already been read. Add "ei" parameter.
5057 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
5058 * minsyms.c (prim_record_minimal_symbol_full): Update.
5059 * objfiles.h (struct objstats) <n_minsyms>: Move...
5060 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
5061 * symmisc.c (print_objfile_statistics): Update.
5063 2014-02-26 Tom Tromey <tromey@redhat.com>
5065 * elfread.c (elf_read_minimal_symbols): New function, from
5067 (elf_symfile_read): Call it.
5069 2014-02-26 Tom Tromey <tromey@redhat.com>
5071 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
5072 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5073 (lookup_minimal_symbol_solib_trampoline)
5074 (lookup_minimal_symbol_by_pc_section_1)
5075 (lookup_minimal_symbol_and_objfile): Update.
5076 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
5077 Don't allocate a minimal symbol if minsyms have already been read.
5078 (build_minimal_symbol_hash_tables): Update.
5079 (install_minimal_symbols): Do nothing if minsyms already read.
5080 Use the per-BFD obstack.
5081 (terminate_minimal_symbol_table): Use the per-BFD obstack.
5082 * objfiles.c (allocate_objfile): Call
5083 terminate_minimal_symbol_table later.
5084 (have_minimal_symbols): Update.
5085 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
5086 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
5087 Move from struct objfile.
5088 <minsyms_read>: New field.
5089 (struct objfile) <msymbols, minimal_symbol_count,
5090 msymbol_hash, msymbol_demangled_hash>: Move.
5091 (ALL_OBJFILE_MSYMBOLS): Update.
5092 * symfile.c (read_symbols): Set minsyms_read.
5093 (reread_symbols): Update.
5094 * symmisc.c (dump_objfile, dump_msymbols): Update.
5096 2014-02-26 Tom Tromey <tromey@redhat.com>
5098 * minsyms.c (msymbols_sort): Remove.
5099 * minsyms.h (msymbols_sort): Remove.
5100 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
5101 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
5102 * elfread.c (elf_symtab_read): Don't add section offsets.
5103 * xcoffread.c (record_minimal_symbol): Don't add section offset
5104 to minimal symbol address.
5105 * somread.c (text_offset, data_offset): Remove.
5106 (som_symtab_read): Don't add section offsets to minimal symbol
5108 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
5109 Don't add section offsets to minimal symbols.
5110 * coffread.c (coff_symtab_read): Don't add section offsets
5111 to minimal symbol addresses.
5112 * machoread.c (macho_symtab_add_minsym): Don't add section offset
5113 to minimal symbol addresses.
5114 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
5115 section offset to minimal symbol addresses.
5116 * mdebugread.c (parse_partial_symbols): Don't add section
5117 offset to minimal symbol addresses.
5118 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
5119 offset to minimal symbol addresses.
5121 2014-02-26 Tom Tromey <tromey@redhat.com>
5123 * ada-lang.c (ada_main_name): Update.
5124 (ada_add_standard_exceptions): Update.
5125 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5126 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5127 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
5128 * auxv.c (ld_so_xfer_auxv): Update.
5129 * avr-tdep.c (avr_scan_prologue): Update.
5130 * ax-gdb.c (gen_var_ref): Update.
5131 * blockframe.c (get_pc_function_start)
5132 (find_pc_partial_function_gnu_ifunc): Update.
5133 * breakpoint.c (create_overlay_event_breakpoint)
5134 (create_longjmp_master_breakpoint)
5135 (create_std_terminate_master_breakpoint)
5136 (create_exception_master_breakpoint): Update.
5137 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5138 * c-valprint.c (c_val_print): Update.
5139 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5140 * common/agent.c (agent_look_up_symbols): Update.
5141 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5142 * dwarf2loc.c (call_site_to_target_addr): Update.
5143 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
5144 * elfread.c (elf_gnu_ifunc_record_cache)
5145 (elf_gnu_ifunc_resolve_by_got): Update.
5146 * findvar.c (default_read_var_value): Update.
5147 * frame.c (inside_main_func): Update.
5148 * frv-tdep.c (frv_frame_this_id): Update.
5149 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5150 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5152 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
5153 (hppa_hpux_find_dummy_bpaddr): Update.
5154 * hppa-tdep.c (hppa_symbol_address): Update.
5155 * infcmd.c (until_next_command): Update.
5156 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
5158 * linespec.c (minsym_found, add_minsym): Update.
5159 * linux-nat.c (get_signo): Update.
5160 * linux-thread-db.c (inferior_has_bug): Update.
5161 * m32c-tdep.c (m32c_return_value)
5162 (m32c_m16c_address_to_pointer): Update.
5163 * m32r-tdep.c (m32r_frame_this_id): Update.
5164 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5165 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5166 * maint.c (maintenance_translate_address): Update.
5167 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
5168 (frob_address): New function.
5169 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
5170 frob_address. Rename parameter to "pc_in".
5171 (compare_minimal_symbols, compact_minimal_symbols): Use raw
5173 (find_solib_trampoline_target, minimal_symbol_upper_bound):
5175 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5176 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
5177 * objc-lang.c (find_objc_msgsend): Update.
5178 * objfiles.c (objfile_relocate1): Update.
5179 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5180 * p-valprint.c (pascal_val_print): Update.
5181 * parse.c (write_exp_msymbol): Update.
5182 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
5183 (ppc_elfv2_skip_entrypoint): Update.
5184 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5185 * printcmd.c (build_address_symbolic, msym_info)
5186 (address_info): Update.
5187 * proc-service.c (ps_pglobal_lookup): Update.
5188 * psymtab.c (find_pc_sect_psymtab_closer)
5189 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
5190 Change msymbol parameter to bound_minimal_symbol.
5191 * ravenscar-thread.c (get_running_thread_id): Update.
5192 * remote.c (remote_check_symbols): Update.
5193 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
5195 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5196 * solib-dsbt.c (lm_base): Update.
5197 * solib-frv.c (lm_base, main_got): Update.
5198 * solib-irix.c (locate_base): Update.
5199 * solib-som.c (som_solib_create_inferior_hook)
5200 (link_map_start): Update.
5201 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
5202 * solib-svr4.c (elf_locate_base, enable_break): Update.
5203 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5204 (flush_ea_cache): Update.
5205 * stabsread.c (define_symbol, scan_file_globals): Update.
5206 * stack.c (find_frame_funname): Update.
5207 * symfile-debug.c (debug_qf_expand_symtabs_matching)
5208 (debug_qf_find_pc_sect_symtab): Update.
5209 * symfile.c (simple_read_overlay_table)
5210 (simple_overlay_update): Update.
5211 * symfile.h (struct quick_symbol_functions)
5212 <find_pc_sect_symtab>: Change type of msymbol to
5213 bound_minimal_symbol.
5214 * symmisc.c (dump_msymbols): Update.
5215 * symtab.c (find_pc_sect_symtab_via_partial)
5216 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
5217 (search_symbols, print_msymbol_info): Update.
5218 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
5219 (MSYMBOL_VALUE_ADDRESS): Redefine.
5220 (BMSYMBOL_VALUE_ADDRESS): New macro.
5221 * tracepoint.c (scope_info): Update.
5222 * tui/tui-disasm.c (tui_find_disassembly_address)
5223 (tui_get_begin_asm_address): Update.
5224 * valops.c (find_function_in_inferior): Update.
5225 * value.c (value_static_field, value_fn_field): Update.
5227 2014-02-26 Tom Tromey <tromey@redhat.com>
5229 * ada-lang.c (ada_update_initial_language): Update.
5230 (ada_main_name, ada_has_this_exception_support): Update.
5231 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5232 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5233 * arm-tdep.c (arm_skip_stub): Update.
5234 * auxv.c (ld_so_xfer_auxv): Update.
5235 * avr-tdep.c (avr_scan_prologue): Update.
5236 * ax-gdb.c (gen_var_ref): Update.
5237 * breakpoint.c (struct breakpoint_objfile_data)
5238 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
5239 type to bound_minimal_symbol.
5240 (create_overlay_event_breakpoint)
5241 (create_longjmp_master_breakpoint)
5242 (create_std_terminate_master_breakpoint)
5243 (create_exception_master_breakpoint): Update.
5244 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5245 * c-exp.y (classify_name): Update.
5246 * coffread.c (coff_symfile_read): Update.
5247 * common/agent.c (agent_look_up_symbols): Update.
5248 * d-lang.c (d_main_name): Update.
5249 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5250 * dec-thread.c (enable_dec_thread): Update.
5251 * dwarf2loc.c (call_site_to_target_addr): Update.
5252 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
5253 * eval.c (evaluate_subexp_standard): Update.
5254 * findvar.c (struct minsym_lookup_data) <result>: Change type
5255 to bound_minimal_symbol.
5257 (minsym_lookup_iterator_cb, default_read_var_value): Update.
5258 * frame.c (inside_main_func): Update.
5259 * frv-tdep.c (frv_frame_this_id): Update.
5260 * gcore.c (call_target_sbrk): Update.
5261 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5262 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5264 * go-lang.c (go_main_name): Update.
5265 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5266 (hppa_hpux_find_import_stub_for_addr): Update.
5267 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
5268 Update. Change return type.
5269 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5271 * jit.c (jit_breakpoint_re_set_internal): Update.
5272 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5274 * linux-nat.c (get_signo): Update.
5275 * linux-thread-db.c (inferior_has_bug): Update
5276 * m32c-tdep.c (m32c_return_value)
5277 (m32c_m16c_address_to_pointer): Update.
5278 * m32r-tdep.c (m32r_frame_this_id): Update.
5279 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5280 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5281 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5282 lookup_minimal_symbol. Change return type.
5283 (lookup_minimal_symbol): Remove.
5284 (lookup_bound_minimal_symbol): Update.
5285 (lookup_minimal_symbol_text): Change return type.
5286 (lookup_minimal_symbol_solib_trampoline): Change return type.
5287 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5288 (lookup_minimal_symbol_solib_trampoline): Change return type.
5289 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5290 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5291 (value_nsstring, find_imps): Update.
5292 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5293 * p-lang.c (pascal_main_name): Update.
5294 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5295 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5296 * proc-service.c (ps_pglobal_lookup): Update.
5297 * ravenscar-thread.c (get_running_thread_msymbol): Change
5299 (has_ravenscar_runtime, get_running_thread_id): Update.
5300 * remote.c (remote_check_symbols): Update.
5301 * sol-thread.c (ps_pglobal_lookup): Update.
5302 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5303 * solib-dsbt.c (lm_base): Update.
5304 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5306 * solib-irix.c (locate_base): Update.
5307 * solib-som.c (som_solib_create_inferior_hook)
5308 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5310 * solib-spu.c (spu_enable_break): Update.
5311 * solib-svr4.c (elf_locate_base, enable_break): Update.
5312 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5313 (flush_ea_cache): Update.
5314 * stabsread.c (define_symbol): Update.
5315 * symfile.c (simple_read_overlay_table): Update.
5316 * symtab.c (find_pc_sect_line): Update.
5317 * tracepoint.c (scope_info): Update.
5318 * tui-disasm.c (tui_get_begin_asm_address): Update.
5319 * value.c (value_static_field): Update.
5321 2014-02-26 Tom Tromey <tromey@redhat.com>
5323 * minsyms.c (prim_record_minimal_symbol_full): Use
5324 SET_MSYMBOL_VALUE_ADDRESS.
5325 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5326 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5327 SET_MSYMBOL_VALUE_ADDRESS.
5328 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5329 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5331 2014-02-26 Tom Tromey <tromey@redhat.com>
5333 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5334 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5335 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5336 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5337 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5338 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5339 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5340 * ada-lang.c (ada_main_name): Update.
5341 (ada_lookup_simple_minsym): Update.
5342 (ada_make_symbol_completion_list): Update.
5343 (ada_add_standard_exceptions): Update.
5344 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5345 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5346 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5347 * arm-tdep.c (skip_prologue_function): Update.
5348 (arm_skip_stack_protector, arm_skip_stub): Update.
5349 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5350 (arm_wince_skip_main_prologue): Update.
5351 * auxv.c (ld_so_xfer_auxv): Update.
5352 * avr-tdep.c (avr_scan_prologue): Update.
5353 * ax-gdb.c (gen_var_ref): Update.
5354 * block.c (call_site_for_pc): Update.
5355 * blockframe.c (get_pc_function_start): Update.
5356 (find_pc_partial_function_gnu_ifunc): Update.
5357 * breakpoint.c (create_overlay_event_breakpoint): Update.
5358 (create_longjmp_master_breakpoint): Update.
5359 (create_std_terminate_master_breakpoint): Update.
5360 (create_exception_master_breakpoint): Update.
5361 (resolve_sal_pc): Update.
5362 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5363 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5365 * c-valprint.c (c_val_print): Update.
5366 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5367 * coffread.c (coff_symfile_read): Update.
5368 * common/agent.c (agent_look_up_symbols): Update.
5369 * dbxread.c (find_stab_function_addr): Update.
5370 (end_psymtab): Update.
5371 * dwarf2loc.c (call_site_to_target_addr): Update.
5372 (func_verify_no_selftailcall): Update.
5373 (tailcall_dump): Update.
5374 (call_site_find_chain_1): Update.
5375 (dwarf_expr_reg_to_entry_parameter): Update.
5376 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5377 (elf_gnu_ifunc_resolve_by_got): Update.
5378 * f-valprint.c (info_common_command): Update.
5379 * findvar.c (read_var_value): Update.
5380 * frame.c (get_prev_frame_1): Update.
5381 (inside_main_func): Update.
5382 * frv-tdep.c (frv_skip_main_prologue): Update.
5383 (frv_frame_this_id): Update.
5384 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5385 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5386 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5387 (gnuv3_skip_trampoline): Update.
5388 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5389 (hppa64_hpux_in_solib_call_trampoline): Update.
5390 (hppa_hpux_skip_trampoline_code): Update.
5391 (hppa64_hpux_search_dummy_call_sequence): Update.
5392 (hppa_hpux_find_import_stub_for_addr): Update.
5393 (hppa_hpux_find_dummy_bpaddr): Update.
5394 * hppa-tdep.c (hppa_symbol_address)
5395 (hppa_lookup_stub_minimal_symbol): Update.
5396 * i386-tdep.c (i386_skip_main_prologue): Update.
5397 (i386_pe_skip_trampoline_code): Update.
5398 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5399 * infcall.c (get_function_name): Update.
5400 * infcmd.c (until_next_command): Update.
5401 * jit.c (jit_breakpoint_re_set_internal): Update.
5402 (jit_inferior_init): Update.
5403 * linespec.c (minsym_found): Update.
5404 (add_minsym): Update.
5405 * linux-fork.c (info_checkpoints_command): Update.
5406 * linux-nat.c (get_signo): Update.
5407 * linux-thread-db.c (inferior_has_bug): Update.
5408 * m32c-tdep.c (m32c_return_value): Update.
5409 (m32c_m16c_address_to_pointer): Update.
5410 (m32c_m16c_pointer_to_address): Update.
5411 * m32r-tdep.c (m32r_frame_this_id): Update.
5412 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5413 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5414 * maint.c (maintenance_translate_address): Update.
5415 * minsyms.c (add_minsym_to_hash_table): Update.
5416 (add_minsym_to_demangled_hash_table): Update.
5417 (msymbol_objfile): Update.
5418 (lookup_minimal_symbol): Update.
5419 (iterate_over_minimal_symbols): Update.
5420 (lookup_minimal_symbol_text): Update.
5421 (lookup_minimal_symbol_by_pc_name): Update.
5422 (lookup_minimal_symbol_solib_trampoline): Update.
5423 (lookup_minimal_symbol_by_pc_section_1): Update.
5424 (lookup_minimal_symbol_and_objfile): Update.
5425 (prim_record_minimal_symbol_full): Update.
5426 (compare_minimal_symbols): Update.
5427 (compact_minimal_symbols): Update.
5428 (build_minimal_symbol_hash_tables): Update.
5429 (install_minimal_symbols): Update.
5430 (terminate_minimal_symbol_table): Update.
5431 (find_solib_trampoline_target): Update.
5432 (minimal_symbol_upper_bound): Update.
5433 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5434 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5435 (mips_skip_pic_trampoline_code): Update.
5436 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5437 * objc-lang.c (selectors_info): Update.
5438 (classes_info): Update.
5439 (find_methods): Update.
5440 (find_imps): Update.
5441 (find_objc_msgsend): Update.
5442 * objfiles.c (objfile_relocate1): Update.
5443 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5444 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5445 * p-valprint.c (pascal_val_print): Update.
5446 * parse.c (write_exp_msymbol): Update.
5447 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5448 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5449 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5450 * printcmd.c (build_address_symbolic): Update.
5452 (address_info): Update.
5453 * proc-service.c (ps_pglobal_lookup): Update.
5454 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5455 (find_pc_sect_psymtab): Update.
5456 * python/py-framefilter.c (py_print_frame): Update.
5457 * ravenscar-thread.c (get_running_thread_id): Update.
5458 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5460 * remote.c (remote_check_symbols): Update.
5461 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5462 (rs6000_skip_trampoline_code): Update.
5463 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5464 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5465 * solib-dsbt.c (lm_base): Update.
5466 * solib-frv.c (lm_base): Update.
5468 * solib-irix.c (locate_base): Update.
5469 * solib-som.c (som_solib_create_inferior_hook): Update.
5470 (som_solib_desire_dynamic_linker_symbols): Update.
5471 (link_map_start): Update.
5472 * solib-spu.c (spu_enable_break): Update.
5473 (ocl_enable_break): Update.
5474 * solib-svr4.c (elf_locate_base): Update.
5475 (enable_break): Update.
5476 * spu-tdep.c (spu_get_overlay_table): Update.
5477 (spu_catch_start): Update.
5478 (flush_ea_cache): Update.
5479 * stabsread.c (define_symbol): Update.
5480 (scan_file_globals): Update.
5481 * stack.c (find_frame_funname): Update.
5482 (frame_info): Update.
5483 * symfile.c (simple_read_overlay_table): Update.
5484 (simple_overlay_update): Update.
5485 * symmisc.c (dump_msymbols): Update.
5486 * symtab.c (fixup_section): Update.
5487 (find_pc_sect_line): Update.
5488 (skip_prologue_sal): Update.
5489 (search_symbols): Update.
5490 (print_msymbol_info): Update.
5491 (rbreak_command): Update.
5492 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5493 (completion_list_objc_symbol): Update.
5494 (default_make_symbol_completion_list_break_on): Update.
5495 * tracepoint.c (scope_info): Update.
5496 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5497 (tui_get_begin_asm_address): Update.
5498 * valops.c (find_function_in_inferior): Update.
5499 * value.c (value_static_field): Update.
5500 (value_fn_field): Update.
5502 2014-02-26 Tom Tromey <tromey@redhat.com>
5504 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5505 bound minimal symbols. Move code that knows about minsym
5507 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5509 * minsyms.h (minimal_symbol_upper_bound): Declare.
5510 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5511 minimal_symbol_upper_bound.
5513 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5515 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5516 Use the type's name if its basic type does not have a tag.
5518 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5520 * dwarf2read.c (read_subrange_type): Add comment.
5522 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5524 * dwarf2read.c (update_enumeration_type_from_children): New
5525 function, mostly extracted from process_structure_scope.
5526 (read_enumeration_type): Call update_enumeration_type_from_children.
5527 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5528 and flag_flag_enum fields.
5530 2014-02-26 Pedro Alves <palves@redhat.com>
5532 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5533 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5534 to_xfer_partial method.
5536 2014-02-26 Pedro Alves <palves@redhat.com>
5538 * target.c (complete_target_initialization): Don't install
5539 default_xfer_partial as to_xfer_partial hook.
5541 (update_current_target): Don't INHERIT nor de_fault
5542 deprecated_xfer_memory. Delete de_fault macro.
5543 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5544 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5545 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5548 2014-02-26 Pedro Alves <palves@redhat.com>
5550 * go32-nat.c (my_write_child): New function.
5551 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5552 (go32_xfer_partial): New function.
5553 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5554 Instead install a to_xfer_partial hook.
5556 2014-02-26 Pedro Alves <palves@redhat.com>
5558 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5559 to_xfer_partial helper. Rewrite.
5560 (procfs_xfer_partial): New function.
5561 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5562 Install a to_xfer_partial hook.
5564 2014-02-26 Pedro Alves <palves@redhat.com>
5566 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5567 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5568 (m32r_xfer_partial): New function.
5569 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5570 Install a to_xfer_partial hook.
5572 2014-02-26 Pedro Alves <palves@redhat.com>
5574 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5576 (mips_xfer_partial): New function.
5577 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5578 hook. Install a to_xfer_partial hook.
5580 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5582 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5583 * gdbtypes.c (create_array_type_with_stride): New function,
5584 renaming create_array_type, but with an added parameter
5585 called "bit_stride".
5586 (create_array_type): Re-implement using
5587 create_array_type_with_stride.
5588 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5589 and DW_AT_bit_stride attributes.
5591 2014-02-26 Pedro Alves <palves@redhat.com>
5593 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5594 task-specific breakpoints.
5596 2014-02-25 Pedro Alves <palves@redhat.com>
5598 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5599 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5601 2014-02-25 Stan Shebs <stan@codesourcery.com>
5603 * defs.h: Annotate comments for Doxygen.
5605 2014-02-25 Tom Tromey <tromey@redhat.com>
5607 * target.h (target_ignore): Don't declare.
5608 * target.c (target_ignore): Remove.
5610 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5613 * auto-load.c (auto_load_objfile_script_1): Change filename to
5616 2014-02-25 Joel Brobecker <brobecker@adacore.com>
5618 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5619 documentation. Adjust prototype to match the target_ops
5620 to_xfer_partial method. Adjust implementation accordingly.
5622 2014-02-25 Hui Zhu <hui@codesourcery.com>
5624 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5627 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5629 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5630 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5631 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5632 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5633 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5634 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5635 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5636 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5638 (rl78_register_type): Use a data pointer type for SP and
5639 new pseudo registers mentioned above. Use a 16 bit integer
5640 type for all other register pairs.
5641 (rl78_register_name, rl78_g10_register_name): Update for
5642 new pseudo registers.
5643 (rl78_pseudo_register_read): Likewise.
5644 (rl78_pseudo_register_write): Likewise.
5645 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5646 to the newly added pseudo registers.
5648 2014-02-24 Doug Evans <dje@google.com>
5650 * value.c (record_latest_value): Fix comment.
5651 * printcmd.c (print_command_1): Remove code to handle -1 return from
5652 record_latest_value.
5654 2014-02-24 Pedro Alves <palves@redhat.com>
5656 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5657 deprecated_xfer_memory hook.
5658 (procfs_xfer_partial): Call procfs_xfer_memory instead
5659 of the deprecated_xfer_memory target hook.
5660 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5663 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5665 * windows-nat.c (windows_xfer_shared_libraries): Return
5666 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5667 requested object is TARGET_OBJECT_LIBRARIES.
5669 2014-02-24 Yao Qi <yao@codesourcery.com>
5671 * target.h (enum target_xfer_status)
5672 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5673 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5675 * corefile.c (memory_error_message): User updated.
5676 * exec.c (section_table_read_available_memory): Likewise.
5677 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5678 * target.c (target_xfer_status_to_string): Likewise.
5679 (raw_memory_xfer_partial): Likewise.
5680 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5681 * valops.c (read_value_memory): Likewise.
5682 * exec.h: Update comments.
5684 2014-02-24 Yao Qi <yao@codesourcery.com>
5686 * target.c (target_xfer_status_to_string): Rename argument err
5688 * target.h (target_xfer_status_to_string): Update declaration.
5689 Replace target_xfer_error_to_string with
5690 target_xfer_status_to_string in comment.
5692 2014-02-24 Yao Qi <yao@codesourcery.com>
5694 * mips-linux-nat.c (super_close): Update its type.
5695 (mips_linux_close): Pass 'self' to super_close.
5697 2014-02-24 Yao Qi <yao@codesourcery.com>
5699 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5700 * corefile.c (read_memory): Adjusted.
5701 * target.c (target_write_with_progress): Adjusted.
5703 2014-02-23 Yao Qi <yao@codesourcery.com>
5707 2013-10-25 Yao Qi <yao@codesourcery.com>
5709 * remote.c (remote_traceframe_info): Return early if
5710 traceframe is not selected.
5712 2013-07-19 Yao Qi <yao@codesourcery.com>
5714 * target.c (update_current_target): Change the default action
5715 of 'to_traceframe_info' from tcomplain to return_zero.
5716 * target.h (struct target_ops) <to_traceframe_info>: Add more
5719 2014-02-23 Yao Qi <yao@codesourcery.com>
5721 * valops.c (read_value_memory): Rewrite it. Call
5722 target_xfer_partial in a loop.
5723 * exec.h (section_table_available_memory): Remove declaration.
5724 Move comments to ...
5725 * exec.c (section_table_available_memory): ... here. Make it
5728 2014-02-23 Yao Qi <yao@codesourcery.com>
5730 * exec.c (section_table_read_available_memory): New function.
5731 * exec.h (section_table_read_available_memory): Declare.
5732 * ctf.c (ctf_xfer_partial): Call
5733 section_table_read_available_memory.
5734 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5736 2014-02-23 Yao Qi <yao@codesourcery.com>
5738 * ctf.c (ctf_xfer_partial): Move code to ...
5739 * exec.c (exec_read_partial_read_only): ... it. New function.
5740 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5741 * tracefile.c: Include "exec.h".
5742 * exec.h (exec_read_partial_read_only): Declare.
5744 2014-02-23 Yao Qi <yao@codesourcery.com>
5746 * tracefile-tfile.c (tfile_has_all_memory): Remove.
5747 (tfile_has_memory): Remove.
5748 (init_tfile_ops): Don't set fields to_has_all_memory and
5749 to_has_memory of tfile_ops.
5750 * tracefile.c (tracefile_has_all_memory): New function.
5751 (tracefile_has_memory): New function.
5752 (init_tracefile_ops): Initialize fields to_has_all_memory and
5753 to_has_memory of 'ops'.
5755 2014-02-23 Yao Qi <yao@codesourcery.com>
5757 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
5758 (ctf_thread_alive, ctf_get_trace_status): Remove.
5759 (init_ctf_ops): Don't set some fields of ctf_ops. Call
5761 * tracefile-tfile.c (tfile_get_trace_status): Remove.
5762 (tfile_has_stack, tfile_has_registers): Remove.
5763 (tfile_thread_alive): Remove.
5764 (init_tfile_ops): Don't set some fields of tfile_ops. Call
5766 * tracefile.c (tracefile_has_stack): New function.
5767 (tracefile_has_registers): New function.
5768 (tracefile_thread_alive): New function.
5769 (tracefile_get_trace_status): New function.
5770 (init_tracefile_ops): New function.
5771 * tracefile.h (init_tracefile_ops): Declare.
5773 2014-02-23 Yao Qi <yao@codesourcery.com>
5775 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
5776 (O_LARGEFILE): Likewise.
5777 (tfile_ops): Likewise.
5778 (TRACE_HEADER_SIZE): Likewise.
5779 (trace_fd, trace_frames_offset, cur_offset): Likewise.
5780 (cur_data_size): Likewise.
5781 (tfile_read, tfile_open, tfile_interp_line): Likewise.
5782 (tfile_close, tfile_files_info): Likewise.
5783 (tfile_get_trace_status): Likewise.
5784 (tfile_get_tracepoint_status): Likewise.
5785 (tfile_get_traceframe_address): Likewise.
5786 (tfile_trace_find, match_blocktype): Likewise.
5787 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
5788 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
5789 (tfile_get_trace_state_variable_value): Likewise.
5790 (tfile_has_all_memory, tfile_has_memory): Likewise.
5791 (tfile_has_stack, tfile_has_registers): Likewise.
5792 (tfile_thread_alive, build_traceframe_info): Likewise.
5793 (tfile_traceframe_info, init_tfile_ops): Likewise.
5794 (_initialize_tracepoint): Don't call init_tfile_ops
5795 and add_target_with_completer.
5796 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
5797 exec.h, completer.h and filenames.h.
5798 (_initialize_tracefile_tfile): New function.
5800 2014-02-23 Yao Qi <yao@codesourcery.com>
5802 * Makefile.in (REMOTE_OBS): Append tracefile.o and
5804 (HFILES_NO_SRCDIR): Add tracefile.h.
5805 * ctf.c: Include "tracefile.h".
5806 * tracefile.h: New file.
5807 * tracefile.c: New file
5808 * tracefile-tfile.c: New file.
5809 * tracepoint.c: Include "tracefile.h".
5810 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
5811 (stop_reason_names): Add const.
5812 (trace_file_writer_xfree): Move it to tracefile.c.
5813 (trace_save, trace_save_command, trace_save_tfile): Likewise.
5814 (trace_save_ctf): Likewise.
5815 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
5816 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
5817 (tfile_write_header, tfile_write_regblock_type): Likewise.
5818 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
5819 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
5820 (tfile_write_raw_data, tfile_end): Likewise.
5821 (tfile_trace_file_writer_new): Likewise.
5822 (free_uploaded_tp): Make it extern.
5823 (free_uploaded_tsv): Make it extern.
5824 (_initialize_tracepoint): Move code to register command 'tsave'
5826 * tracepoint.h (stop_reason_names): Declare.
5827 (struct trace_frame_write_ops): Move it to tracefile.h.
5828 (struct trace_file_write_ops): Likewise.
5829 (struct trace_file_writer): Likewise.
5830 (free_uploaded_tsvs, free_uploaded_tps): Declare.
5832 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5835 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
5837 (get_cores_used_by_process): New parameter num_cores, use it.
5838 (linux_xfer_osdata_processes): Pass num_cores to it.
5839 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
5842 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
5844 * target.c (memory_xfer_partial): Fix length arg in call to
5845 breakpoint_xfer_memory.
5847 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5850 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
5851 number comes after the + or - signs. Adjust length of register
5852 name to be extracted.
5854 2014-02-20 Tom Tromey <tromey@redhat.com>
5856 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
5857 (ada_varobj_ops): Mark "extern".
5859 2014-02-20 Tom Tromey <tromey@redhat.com>
5861 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
5863 2014-02-20 Doug Evans <xdje42@gmail.com>
5865 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
5866 All callers updated.
5867 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
5868 All callers updated.
5869 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
5870 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
5872 2014-02-20 lin zuojian <manjian2006@gmail.com>
5873 Joel Brobecker <brobecker@adacore.com>
5874 Doug Evans <xdje42@gmail.com>
5877 * dwarf2read.c (struct die_info): New member in_process.
5878 (reset_die_in_process): New function.
5879 (process_die): Set it at the start, reset when returning.
5880 (inherit_abstract_dies): Only call process_die if origin_child_die
5881 not already being processed.
5883 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5885 * windows-nat.c (handle_unload_dll): Add function documentation.
5886 (do_initial_windows_stuff): Add comment explaining why we wait
5887 until after inferior initialization has finished before
5888 processing all DLLs.
5890 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5892 * windows-nat.c (get_module_name): Delete.
5893 (windows_get_exec_module_filename): New function, mostly
5894 inspired from get_module_name.
5895 (windows_pid_to_exec_file): Replace call to get_module_name
5896 by call to windows_get_exec_module_filename.
5898 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5900 * windows-nat.c (handle_load_dll): Rewrite this function's
5901 introductory comment. Remove code using get_module_name
5902 to get the DLL's name.
5904 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5906 * windows-nat.c (get_windows_debug_event): Ignore
5907 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
5908 if windows_initialization_done == 0.
5909 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
5910 Adjust implementation to always load all DLLs.
5911 (do_initial_windows_stuff): Replace call to
5912 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
5914 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5916 * windows-nat.c (_initialize_windows_nat): Deprecate the
5917 "dll-symbols" command. Turn the "add-shared-symbol-files"
5918 and "assf" aliases into commands, and deprecate them as well.
5919 * NEWS: Add entry explaining that "dll-symbols" and its two
5920 aliases are now deprecated.
5922 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5924 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
5925 new-line in debug string. Remove trailing spaces.
5927 2014-02-19 Stan Shebs <stan@codesourcery.com>
5929 * darwin-nat.c (darwin_xfer_partial): Fix return type.
5931 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
5933 * NEWS: Add entry for the new feature
5934 * python/py-value.c (valpy_binop): Call value_x_binop for struct
5937 2014-02-19 Stan Shebs <stan@codesourcery.com>
5939 * MAINTAINERS: List Yao Qi as nios2 maintainer.
5941 2014-02-19 Pedro Alves <palves@redhat.com>
5943 * common/ptid.h (struct ptid): Mention that process_stratum
5944 targets should prefer ptid.lwp.
5946 2014-02-19 Pedro Alves <palves@redhat.com>
5948 * remote.c (remote_thread_alive, write_ptid, read_ptid)
5949 (read_ptid, remote_newthread_step, remote_threads_extra_info)
5950 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
5951 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
5952 store remote thread ids rather than ptid.tid.
5953 (_initialize_remote): Adjust.
5955 2014-02-19 Tom Tromey <tromey@redhat.com>
5957 * target.c (target_get_unwinder): Rewrite.
5958 (target_get_tailcall_unwinder): Rewrite.
5959 * record-btrace.c (record_btrace_to_get_unwinder): New function.
5960 (record_btrace_to_get_tailcall_unwinder): New function.
5961 (init_record_btrace_ops): Update.
5962 * target.h (struct target_ops) <to_get_unwinder,
5963 to_get_tailcall_unwinder>: Now function pointers. Use
5964 TARGET_DEFAULT_RETURN.
5966 2014-02-19 Tom Tromey <tromey@redhat.com>
5968 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
5970 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
5972 2014-02-19 Tom Tromey <tromey@redhat.com>
5974 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
5976 * target-delegates.c: Rebuild.
5977 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
5978 TARGET_DEFAULT_FUNC.
5979 * target.c (default_target_decr_pc_after_break): Rename from
5980 forward_target_decr_pc_after_break. Simplify.
5981 (target_decr_pc_after_break): Rely on delegation.
5983 2014-02-19 Tom Tromey <tromey@redhat.com>
5985 * target.c (update_current_target): Do not INHERIT to_doc or
5986 to_magic. Do not de_fault to_open or to_close.
5988 2014-02-19 Tom Tromey <tromey@redhat.com>
5990 * gcore.h (objfile_find_memory_regions): Declare.
5991 * gcore.c (objfile_find_memory_regions): No longer static. Add
5993 (_initialize_gcore): Don't call exec_set_find_memory_regions.
5994 * exec.c: Include gcore.h.
5995 (exec_set_find_memory_regions): Remove.
5996 (exec_find_memory_regions): Remove.
5997 (exec_do_find_memory_regions): Remove.
5998 (init_exec_ops): Update.
5999 * defs.h (exec_set_find_memory_regions): Remove.
6001 2014-02-19 Tom Tromey <tromey@redhat.com>
6003 * target-delegates.c: Rebuild.
6004 * target.h (struct target_ops) <to_extra_thread_info,
6005 to_thread_name, to_pid_to_exec_file, to_get_section_table,
6006 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
6007 not 0, in TARGET_DEFAULT_RETURN.
6009 2014-02-19 Tom Tromey <tromey@redhat.com>
6011 * target.c (complete_target_initialization): Remove casts. Use
6012 return_zero_has_execution.
6013 (return_zero): Add "ignore" argument.
6014 (return_zero_has_execution): New function.
6015 (init_dummy_target): Remove casts. Use
6016 return_zero_has_execution.
6018 2014-02-19 Tom Tromey <tromey@redhat.com>
6020 * target.c (update_current_target): Update comments. Do not
6023 2014-02-19 Tom Tromey <tromey@redhat.com>
6025 * arm-linux-nat.c (arm_linux_read_description): Delegate when
6027 * corelow.c (core_read_description): Delegate when needed.
6028 * remote.c (remote_read_description): Delegate when needed.
6029 * target-delegates.c: Rebuild.
6030 * target.c (target_read_description): Rewrite.
6031 * target.h (struct target_ops) <to_read_description>: Update
6032 comment. Use TARGET_DEFAULT_RETURN.
6034 2014-02-19 Tom Tromey <tromey@redhat.com>
6036 * target-delegates.c: Rebuild.
6037 * target.c (update_current_target): Don't inherit or default
6039 (find_default_run_target): Check against delegate_can_run.
6040 * target.h (struct target_ops) <to_can_run>: Use
6041 TARGET_DEFAULT_RETURN.
6043 2014-02-19 Tom Tromey <tromey@redhat.com>
6045 * target-delegates.c: Rebuild.
6046 * target.c (target_disconnect): Unconditionally delegate.
6047 * target.h (struct target_ops) <to_disconnect>: Use
6048 TARGET_DEFAULT_NORETURN.
6050 2014-02-19 Tom Tromey <tromey@redhat.com>
6052 * record.c (record_stop): Unconditionally delegate.
6053 * target-delegates.c: Rebuild.
6054 * target.c (target_stop_recording): Unconditionally delegate.
6055 * target.h (struct target_ops) <to_stop_recording>: Use
6056 TARGET_DEFAULT_IGNORE.
6058 2014-02-19 Tom Tromey <tromey@redhat.com>
6060 * target-delegates.c: Rebuild.
6061 * target.c (target_enable_btrace): Unconditionally delegate.
6062 * target.h (struct target_ops) <to_enable_btrace>: Use
6063 TARGET_DEFAULT_NORETURN.
6065 2014-02-19 Tom Tromey <tromey@redhat.com>
6067 * target-delegates.c: Rebuild.
6068 * target.c (target_read_btrace): Unconditionally delegate.
6069 * target.h (struct target_ops) <to_read_btrace>: Use
6070 TARGET_DEFAULT_NORETURN.
6072 2014-02-19 Tom Tromey <tromey@redhat.com>
6074 * target-delegates.c: Rebuild.
6075 * target.c (target_teardown_btrace): Unconditionally delegate.
6076 * target.h (struct target_ops) <to_teardown_btrace>: Use
6077 TARGET_DEFAULT_NORETURN.
6079 2014-02-19 Tom Tromey <tromey@redhat.com>
6081 * target-delegates.c: Rebuild.
6082 * target.c (target_disable_btrace): Unconditionally delegate.
6083 * target.h (struct target_ops) <to_disable_btrace>: Use
6084 TARGET_DEFAULT_NORETURN.
6086 2014-02-19 Tom Tromey <tromey@redhat.com>
6088 * target-delegates.c: Rebuild.
6089 * target.c (default_search_memory): New function.
6090 (simple_search_memory): Update comment.
6091 (target_search_memory): Unconditionally delegate.
6092 * target.h (struct target_ops) <to_search_memory>: Use
6093 TARGET_DEFAULT_FUNC.
6095 2014-02-19 Tom Tromey <tromey@redhat.com>
6097 * auxv.c (default_auxv_parse): No longer static.
6098 (target_auxv_parse): Unconditionally delegate.
6099 * auxv.h (default_auxv_parse): Declare.
6100 * target-delegates.c: Rebuild.
6101 * target.c: Include auxv.h.
6102 * target.h (struct target_ops) <to_auxv_parse>: Use
6103 TARGET_DEFAULT_FUNC.
6105 2014-02-19 Tom Tromey <tromey@redhat.com>
6107 * target-delegates.c: Rebuild.
6108 * target.c (target_memory_map): Unconditionally delegate.
6109 * target.h (struct target_ops) <to_memory_map>: Use
6110 TARGET_DEFAULT_RETURN.
6112 2014-02-19 Tom Tromey <tromey@redhat.com>
6114 * target-delegates.c: Rebuild.
6115 * target.c (target_thread_alive): Unconditionally delegate.
6116 * target.h (struct target_ops) <to_thread_alive>: Use
6117 TARGET_DEFAULT_RETURN.
6119 2014-02-19 Tom Tromey <tromey@redhat.com>
6121 * target-delegates.c: Rebuild.
6122 * target.c (target_save_record): Unconditionally delegate.
6123 * target.h (struct target_ops) <to_save_record>: Use
6124 TARGET_DEFAULT_NORETURN.
6126 2014-02-19 Tom Tromey <tromey@redhat.com>
6128 * target-delegates.c: Rebuild.
6129 * target.c (target_delete_record): Unconditionally delegate.
6130 * target.h (struct target_ops) <to_delete_record>: Use
6131 TARGET_DEFAULT_NORETURN.
6133 2014-02-19 Tom Tromey <tromey@redhat.com>
6135 * target-delegates.c: Rebuild.
6136 * target.c (target_record_is_replaying): Unconditionally
6138 * target.h (struct target_ops) <to_record_is_replaying>: Use
6139 TARGET_DEFAULT_RETURN.
6141 2014-02-19 Tom Tromey <tromey@redhat.com>
6143 * target-delegates.c: Rebuild.
6144 * target.c (target_goto_record_begin): Unconditionally delegate.
6145 * target.h (struct target_ops) <to_goto_record_begin>: Use
6146 TARGET_DEFAULT_NORETURN.
6148 2014-02-19 Tom Tromey <tromey@redhat.com>
6150 * target-delegates.c: Rebuild.
6151 * target.c (target_goto_record_end): Unconditionally delegate.
6152 * target.h (struct target_ops) <to_goto_record_end>: Use
6153 TARGET_DEFAULT_NORETURN.
6155 2014-02-19 Tom Tromey <tromey@redhat.com>
6157 * target-delegates.c: Rebuild.
6158 * target.c (target_goto_record): Unconditionally delegate.
6159 * target.h (struct target_ops) <to_goto_record>: Use
6160 TARGET_DEFAULT_NORETURN.
6162 2014-02-19 Tom Tromey <tromey@redhat.com>
6164 * target-delegates.c: Rebuild.
6165 * target.c (target_insn_history): Unconditionally delegate.
6166 * target.h (struct target_ops) <to_insn_history>: Use
6167 TARGET_DEFAULT_NORETURN.
6169 2014-02-19 Tom Tromey <tromey@redhat.com>
6171 * target-delegates.c: Rebuild.
6172 * target.c (target_insn_history_from): Unconditionally delegate.
6173 * target.h (struct target_ops) <to_insn_history_from>: Use
6174 TARGET_DEFAULT_NORETURN.
6176 2014-02-19 Tom Tromey <tromey@redhat.com>
6178 * target-delegates.c: Rebuild.
6179 * target.c (target_insn_history_range): Unconditionally delegate.
6180 * target.h (struct target_ops) <to_insn_history_range>: Use
6181 TARGET_DEFAULT_NORETURN.
6183 2014-02-19 Tom Tromey <tromey@redhat.com>
6185 * target-delegates.c: Rebuild.
6186 * target.c (target_call_history): Unconditionally delegate.
6187 * target.h (struct target_ops) <to_call_history>: Use
6188 TARGET_DEFAULT_NORETURN.
6190 2014-02-19 Tom Tromey <tromey@redhat.com>
6192 * target-delegates.c: Rebuild.
6193 * target.c (target_call_history_from): Unconditionally delegate.
6194 * target.h (struct target_ops) <to_call_history_from>: Use
6195 TARGET_DEFAULT_NORETURN.
6197 2014-02-19 Tom Tromey <tromey@redhat.com>
6199 * target-delegates.c: Rebuild.
6200 * target.c (target_call_history_range): Unconditionally delegate.
6201 * target.h (struct target_ops) <to_call_history_range>: Use
6202 TARGET_DEFAULT_NORETURN.
6204 2014-02-19 Tom Tromey <tromey@redhat.com>
6206 * target-delegates.c: Rebuild.
6207 * target.c (target_verify_memory): Unconditionally delegate.
6208 * target.h (struct target_ops) <to_verify_memory>: Use
6209 TARGET_DEFAULT_NORETURN.
6211 2014-02-19 Tom Tromey <tromey@redhat.com>
6213 * target-delegates.c: Rebuild.
6214 * target.c (target_core_of_thread): Unconditionally delegate.
6215 * target.h (struct target_ops) <to_core_of_thread>: Use
6216 TARGET_DEFAULT_RETURN.
6218 2014-02-19 Tom Tromey <tromey@redhat.com>
6220 * target-delegates.c: Rebuild.
6221 * target.c (target_flash_done): Unconditionally delegate.
6222 * target.h (struct target_ops) <to_flash_done>: Use
6223 TARGET_DEFAULT_NORETURN.
6225 2014-02-19 Tom Tromey <tromey@redhat.com>
6227 * target-delegates.c: Rebuild.
6228 * target.c (target_flash_erase): Unconditionally delegate.
6229 * target.h (struct target_ops) <to_flash_erase>: Use
6230 TARGET_DEFAULT_NORETURN.
6232 2014-02-19 Tom Tromey <tromey@redhat.com>
6234 * target-delegates.c: Rebuild.
6235 * target.c (target_get_section_table): Unconditionally delegate.
6236 * target.h (struct target_ops) <to_get_section_table>: Use
6237 TARGET_DEFAULT_RETURN.
6239 2014-02-19 Tom Tromey <tromey@redhat.com>
6241 * target-delegates.c: Rebuild.
6242 * target.c (target_pid_to_str): Unconditionally delegate.
6243 (init_dummy_target): Don't initialize to_pid_to_str.
6244 (default_pid_to_str): Rename from dummy_pid_to_str.
6245 * target.h (struct target_ops) <to_pid_to_str>: Use
6246 TARGET_DEFAULT_FUNC.
6248 2014-02-19 Tom Tromey <tromey@redhat.com>
6250 * target-delegates.c: Rebuild.
6251 * target.c (target_find_new_threads): Unconditionally delegate.
6252 * target.h (struct target_ops) <to_find_new_threads>: Use
6253 TARGET_DEFAULT_RETURN.
6255 2014-02-19 Tom Tromey <tromey@redhat.com>
6257 * target-delegates.c: Rebuild.
6258 * target.c (target_program_signals): Unconditionally delegate.
6259 * target.h (struct target_ops) <to_program_signals>: Use
6260 TARGET_DEFAULT_IGNORE.
6262 2014-02-19 Tom Tromey <tromey@redhat.com>
6264 * target-delegates.c: Rebuild.
6265 * target.c (target_pass_signals): Unconditionally delegate.
6266 * target.h (struct target_ops) <to_pass_signals>: Use
6267 TARGET_DEFAULT_IGNORE.
6269 2014-02-19 Tom Tromey <tromey@redhat.com>
6271 * target-delegates.c: Rebuild.
6272 * target.c (default_mourn_inferior): New function.
6273 (target_mourn_inferior): Unconditionally delegate.
6274 * target.h (struct target_ops) <to_mourn_inferior>: Use
6275 TARGET_DEFAULT_FUNC.
6277 2014-02-19 Tom Tromey <tromey@redhat.com>
6279 * target-delegates.c: Rebuild.
6280 * target.c (default_follow_fork): New function.
6281 (target_follow_fork): Unconditionally delegate.
6282 * target.h (struct target_ops) <to_follow_fork>: Use
6283 TARGET_DEFAULT_FUNC.
6285 2014-02-19 Tom Tromey <tromey@redhat.com>
6287 * target-delegates.c: Rebuild.
6288 * target.c (target_kill): Unconditionally delegate.
6289 * target.h (struct target_ops) <to_kill>: Use
6290 TARGET_DEFAULT_NORETURN.
6292 2014-02-19 Tom Tromey <tromey@redhat.com>
6294 * target-delegates.c: Rebuild.
6295 * target.c (target_masked_watch_num_registers): Unconditionally
6297 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6298 Use TARGET_DEFAULT_RETURN.
6300 2014-02-19 Tom Tromey <tromey@redhat.com>
6302 * target-delegates.c: Rebuild.
6303 * target.c (target_remove_mask_watchpoint): Unconditionally
6305 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6306 TARGET_DEFAULT_RETURN.
6308 2014-02-19 Tom Tromey <tromey@redhat.com>
6310 * target-delegates.c: Rebuild.
6311 * target.c (target_insert_mask_watchpoint): Unconditionally
6313 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6314 TARGET_DEFAULT_RETURN.
6316 2014-02-19 Tom Tromey <tromey@redhat.com>
6318 * target-delegates.c: Rebuild.
6319 * target.c (target_ranged_break_num_registers): Unconditionally
6321 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6322 Use TARGET_DEFAULT_RETURN.
6324 2014-02-19 Tom Tromey <tromey@redhat.com>
6326 * target-delegates.c: Rebuild.
6327 * target.c (target_fetch_registers): Unconditionally delegate.
6328 * target.h (struct target_ops) <to_fetch_registers>: Use
6329 TARGET_DEFAULT_NORETURN.
6331 2014-02-19 Tom Tromey <tromey@redhat.com>
6333 * target-delegates.c: Rebuild.
6334 * target.c (update_current_target): Don't inherit or default
6336 * target.h (struct target_ops) <to_stop>: Use
6337 TARGET_DEFAULT_IGNORE.
6339 2014-02-19 Tom Tromey <tromey@redhat.com>
6341 * target-delegates.c: Rebuild.
6342 * target.c (update_current_target): Don't inherit or default
6343 to_can_run_breakpoint_commands.
6344 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6345 Use TARGET_DEFAULT_RETURN.
6347 2014-02-19 Tom Tromey <tromey@redhat.com>
6349 * target-delegates.c: Rebuild.
6350 * target.c (update_current_target): Don't inherit or default
6351 to_supports_evaluation_of_breakpoint_conditions.
6352 * target.h (struct target_ops)
6353 <to_supports_evaluation_of_breakpoint_conditions>: Use
6354 TARGET_DEFAULT_RETURN.
6356 2014-02-19 Tom Tromey <tromey@redhat.com>
6358 * target-delegates.c: Rebuild.
6359 * target.c (update_current_target): Don't inherit or default
6360 to_augmented_libraries_svr4_read.
6361 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6362 Use TARGET_DEFAULT_RETURN.
6364 2014-02-19 Tom Tromey <tromey@redhat.com>
6366 * target-delegates.c: Rebuild.
6367 * target.c (update_current_target): Don't inherit or default
6369 * target.h (struct target_ops) <to_can_use_agent>: Use
6370 TARGET_DEFAULT_RETURN.
6372 2014-02-19 Tom Tromey <tromey@redhat.com>
6374 * target-delegates.c: Rebuild.
6375 * target.c (update_current_target): Don't inherit or default
6377 * target.h (struct target_ops) <to_use_agent>: Use
6378 TARGET_DEFAULT_NORETURN.
6380 2014-02-19 Tom Tromey <tromey@redhat.com>
6382 * target-delegates.c: Rebuild.
6383 * target.c (update_current_target): Don't inherit or default
6385 (return_null): Remove.
6386 * target.h (struct target_ops) <to_traceframe_info>: Use
6387 TARGET_DEFAULT_RETURN.
6389 2014-02-19 Tom Tromey <tromey@redhat.com>
6391 * target-delegates.c: Rebuild.
6392 * target.c (update_current_target): Don't inherit or default
6393 to_static_tracepoint_markers_by_strid.
6394 * target.h (struct target_ops)
6395 <to_static_tracepoint_markers_by_strid>: 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_static_tracepoint_marker_at.
6403 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6404 Use TARGET_DEFAULT_RETURN.
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
6411 * target.h (struct target_ops) <to_set_permissions>: Use
6412 TARGET_DEFAULT_IGNORE.
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_get_tib_address>: 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
6427 * target.h (struct target_ops) <to_set_trace_notes>: Use
6428 TARGET_DEFAULT_RETURN.
6430 2014-02-19 Tom Tromey <tromey@redhat.com>
6432 * target-delegates.c: Rebuild.
6433 * target.c (update_current_target): Don't initialize
6434 to_set_trace_buffer_size.
6435 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6436 TARGET_DEFAULT_IGNORE.
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_set_circular_trace_buffer.
6443 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6444 TARGET_DEFAULT_IGNORE.
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_set_disconnected_tracing.
6451 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6452 TARGET_DEFAULT_IGNORE.
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_get_min_fast_tracepoint_insn_len.
6459 (return_minus_one): Remove.
6460 * target.h (struct target_ops)
6461 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6463 2014-02-19 Tom Tromey <tromey@redhat.com>
6465 * target-delegates.c: Rebuild.
6466 * target.c (update_current_target): Don't inherit or default
6467 to_get_raw_trace_data.
6468 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6469 TARGET_DEFAULT_NORETURN.
6471 2014-02-19 Tom Tromey <tromey@redhat.com>
6473 * target-delegates.c: Rebuild.
6474 * target.c (update_current_target): Don't inherit or default
6475 to_upload_trace_state_variables.
6476 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6477 Use TARGET_DEFAULT_RETURN.
6479 2014-02-19 Tom Tromey <tromey@redhat.com>
6481 * target-delegates.c: Rebuild.
6482 * target.c (update_current_target): Don't inherit or default
6483 to_upload_tracepoints.
6484 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6485 TARGET_DEFAULT_RETURN.
6487 2014-02-19 Tom Tromey <tromey@redhat.com>
6489 * target-delegates.c: Rebuild.
6490 * target.c (update_current_target): Don't inherit or default
6492 * target.h (struct target_ops) <to_save_trace_data>: Use
6493 TARGET_DEFAULT_NORETURN.
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_get_trace_state_variable_value.
6500 * target.h (struct target_ops)
6501 <to_get_trace_state_variable_value>: Use 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
6508 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6510 2014-02-19 Tom Tromey <tromey@redhat.com>
6512 * target-delegates.c: Rebuild.
6513 * target.c (update_current_target): Don't inherit or default
6515 * target.h (struct target_ops) <to_trace_stop>: Use
6516 TARGET_DEFAULT_NORETURN.
6518 2014-02-19 Tom Tromey <tromey@redhat.com>
6520 * target-delegates.c: Rebuild.
6521 * target.c (update_current_target): Don't inherit or default
6522 to_get_tracepoint_status.
6523 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6524 TARGET_DEFAULT_NORETURN.
6526 2014-02-19 Tom Tromey <tromey@redhat.com>
6528 * target-delegates.c: Rebuild.
6529 * target.c (update_current_target): Don't inherit or default
6530 to_get_trace_status.
6531 * target.h (struct target_ops) <to_get_trace_status>: Use
6532 TARGET_DEFAULT_RETURN.
6534 2014-02-19 Tom Tromey <tromey@redhat.com>
6536 * target-delegates.c: Rebuild.
6537 * target.c (update_current_target): Don't inherit or default
6539 * target.h (struct target_ops) <to_trace_start>: Use
6540 TARGET_DEFAULT_NORETURN.
6542 2014-02-19 Tom Tromey <tromey@redhat.com>
6544 * target-delegates.c: Rebuild.
6545 * target.c (update_current_target): Don't inherit or default
6546 to_trace_set_readonly_regions.
6547 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6548 Use TARGET_DEFAULT_NORETURN.
6550 2014-02-19 Tom Tromey <tromey@redhat.com>
6552 * target-delegates.c: Rebuild.
6553 * target.c (update_current_target): Don't inherit or default
6554 to_disable_tracepoint.
6555 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6556 TARGET_DEFAULT_NORETURN.
6558 2014-02-19 Tom Tromey <tromey@redhat.com>
6560 * target-delegates.c: Rebuild.
6561 * target.c (update_current_target): Don't inherit or default
6562 to_enable_tracepoint.
6563 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6564 TARGET_DEFAULT_NORETURN.
6566 2014-02-19 Tom Tromey <tromey@redhat.com>
6568 * target-delegates.c: Rebuild.
6569 * target.c (update_current_target): Don't inherit or default
6570 to_download_trace_state_variable.
6571 * target.h (struct target_ops) <to_download_trace_state_variable>:
6572 Use TARGET_DEFAULT_NORETURN.
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
6578 to_can_download_tracepoint.
6579 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6580 TARGET_DEFAULT_RETURN.
6582 2014-02-19 Tom Tromey <tromey@redhat.com>
6584 * target-delegates.c: Rebuild.
6585 * target.c (update_current_target): Don't inherit or default
6586 to_download_tracepoint.
6587 * target.h (struct target_ops) <to_download_tracepoint>: Use
6588 TARGET_DEFAULT_NORETURN.
6590 2014-02-19 Tom Tromey <tromey@redhat.com>
6592 * target-delegates.c: Rebuild.
6593 * target.c (update_current_target): Don't inherit or default
6595 * target.h (struct target_ops) <to_trace_init>: Use
6596 TARGET_DEFAULT_RETURN.
6598 2014-02-19 Tom Tromey <tromey@redhat.com>
6600 * target-delegates.c: Rebuild.
6601 * target.c (update_current_target): Don't inherit or default
6602 to_supports_string_tracing.
6603 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6604 TARGET_DEFAULT_RETURN.
6606 2014-02-19 Tom Tromey <tromey@redhat.com>
6608 * target-delegates.c: Rebuild.
6609 * target.c (update_current_target): Don't inherit or default
6610 to_supports_enable_disable_tracepoint.
6611 * target.h (struct target_ops)
6612 <to_supports_enable_disable_tracepoint>: Use
6613 TARGET_DEFAULT_RETURN.
6615 2014-02-19 Tom Tromey <tromey@redhat.com>
6617 * target-delegates.c: Rebuild.
6618 * target.c (update_current_target): Don't inherit or default
6619 to_supports_multi_process.
6620 * target.h (struct target_ops) <to_supports_multi_process>: Use
6621 TARGET_DEFAULT_RETURN.
6623 2014-02-19 Tom Tromey <tromey@redhat.com>
6625 * target-delegates.c: Rebuild.
6626 * target.c (update_current_target): Don't inherit or default
6627 to_get_ada_task_ptid.
6628 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6629 TARGET_DEFAULT_FUNC.
6631 2014-02-19 Tom Tromey <tromey@redhat.com>
6633 * target-delegates.c: Rebuild.
6634 * target.c (update_current_target): Don't inherit or default
6635 to_thread_architecture.
6636 * target.h (struct target_ops) <to_thread_architecture>: Use
6637 TARGET_DEFAULT_FUNC.
6639 2014-02-19 Tom Tromey <tromey@redhat.com>
6641 * target-delegates.c: Rebuild.
6642 * target.c (update_current_target): Don't inherit or default
6643 to_execution_direction.
6644 * target.h (struct target_ops) <to_execution_direction>: Use
6645 TARGET_DEFAULT_FUNC.
6647 2014-02-19 Tom Tromey <tromey@redhat.com>
6649 * target-delegates.c: Rebuild.
6650 * target.c (update_current_target): Don't inherit or default
6651 to_can_execute_reverse.
6652 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6653 TARGET_DEFAULT_RETURN.
6654 (target_can_execute_reverse): Unconditionally delegate.
6656 2014-02-19 Tom Tromey <tromey@redhat.com>
6658 * target-delegates.c: Rebuild.
6659 * target.c (update_current_target): Don't inherit or default
6661 (dummy_goto_bookmark): Remove.
6662 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6663 * target.h (struct target_ops) <to_goto_bookmark>: Use
6664 TARGET_DEFAULT_NORETURN.
6666 2014-02-19 Tom Tromey <tromey@redhat.com>
6668 * target-delegates.c: Rebuild.
6669 * target.c (update_current_target): Don't inherit or default
6671 (dummy_get_bookmark): Remove.
6672 (init_dummy_target): Don't inherit or default to_get_bookmark.
6673 * target.h (struct target_ops) <to_get_bookmark>: Use
6674 TARGET_DEFAULT_NORETURN
6676 2014-02-19 Tom Tromey <tromey@redhat.com>
6678 * target-delegates.c: Rebuild.
6679 * target.c (update_current_target): Don't inherit or default
6680 to_make_corefile_notes.
6681 (init_dummy_target): Don't initialize to_make_corefile_notes.
6682 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6683 TARGET_DEFAULT_FUNC.
6685 2014-02-19 Tom Tromey <tromey@redhat.com>
6687 * target-delegates.c: Rebuild.
6688 * target.c (update_current_target): Don't inherit or default
6689 to_find_memory_regions.
6690 (init_dummy_target): Don't initialize to_find_memory_regions.
6691 * target.h (struct target_ops) <to_find_memory_regions>: Use
6692 TARGET_DEFAULT_FUNC.
6694 2014-02-19 Tom Tromey <tromey@redhat.com>
6696 * target-delegates.c: Rebuild.
6697 * target.c (update_current_target): Don't inherit or default
6699 * target.h (struct target_ops) <to_log_command>: Use
6700 TARGET_DEFAULT_IGNORE.
6701 (target_log_command): Unconditionally delegate.
6703 2014-02-19 Tom Tromey <tromey@redhat.com>
6705 * target-delegates.c: Rebuild.
6706 * target.c (update_current_target): Don't inherit or default
6707 to_pid_to_exec_file.
6708 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
6709 TARGET_DEFAULT_RETURN.
6711 2014-02-19 Tom Tromey <tromey@redhat.com>
6713 * target-delegates.c: Rebuild.
6714 * target.c (update_current_target): Don't inherit or default
6716 (target_thread_name): Unconditionally delegate.
6717 * target.h (struct target_ops) <to_thread_name>: Use
6718 TARGET_DEFAULT_RETURN.
6720 2014-02-19 Tom Tromey <tromey@redhat.com>
6722 * target-delegates.c: Rebuild.
6723 * target.c (update_current_target): Don't inherit or default
6724 to_extra_thread_info.
6725 * target.h (struct target_ops) <to_extra_thread_info>: Use
6726 TARGET_DEFAULT_RETURN.
6728 2014-02-19 Tom Tromey <tromey@redhat.com>
6730 * target-delegates.c: Rebuild.
6731 * target.c (update_current_target): Don't inherit or default
6733 * target.h (struct target_ops) <to_has_exited>: Use
6734 TARGET_DEFAULT_RETURN..
6736 2014-02-19 Tom Tromey <tromey@redhat.com>
6738 * target-delegates.c: Rebuild.
6739 * target.c (update_current_target): Don't inherit or default
6740 to_set_syscall_catchpoint.
6741 (return_one): Remove.
6742 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
6743 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_insert_exec_catchpoint.
6750 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6751 TARGET_DEFAULT_RETURN.
6753 2014-01-08 Tom Tromey <tromey@redhat.com>
6755 * target-delegates.c: Rebuild.
6756 * target.c (update_current_target): Don't inherit or default
6757 to_insert_exec_catchpoint.
6758 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6759 TARGET_DEFAULT_RETURN.
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_vfork_catchpoint.
6766 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
6767 TARGET_DEFAULT_RETURN.
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_vfork_catchpoint.
6774 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: 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_fork_catchpoint.
6782 * target.h (struct target_ops) <to_remove_fork_catchpoint>: 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_fork_catchpoint.
6790 * target.h (struct target_ops) <to_insert_fork_catchpoint>: 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_post_startup_inferior.
6798 * target.h (struct target_ops) <to_post_startup_inferior>: Use
6799 TARGET_DEFAULT_IGNORE.
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_load>: Use
6807 TARGET_DEFAULT_NORETURN.
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_terminal_info>: Use
6815 TARGET_DEFAULT_FUNC.
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
6821 to_terminal_save_ours.
6822 * target.h (struct target_ops) <to_terminal_save_ours>: 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 * target.h (struct target_ops) <to_terminal_ours>: Use
6831 TARGET_DEFAULT_IGNORE.
6833 2014-02-19 Tom Tromey <tromey@redhat.com>
6835 * target-delegates.c: Rebuild.
6836 * target.c (update_current_target): Don't inherit or default
6837 to_terminal_ours_for_output.
6838 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
6839 TARGET_DEFAULT_IGNORE.
6841 2014-02-19 Tom Tromey <tromey@redhat.com>
6843 * target-delegates.c: Rebuild.
6844 * target.c (update_current_target): Don't inherit or default
6845 to_terminal_inferior.
6846 * target.h (struct target_ops) <to_terminal_inferior>: Use
6847 TARGET_DEFAULT_IGNORE.
6849 2014-02-19 Tom Tromey <tromey@redhat.com>
6851 * target-delegates.c: Rebuild.
6852 * target.c (update_current_target): Don't inherit or default
6854 * target.h (struct target_ops) <to_terminal_init>: Use
6855 TARGET_DEFAULT_IGNORE.
6857 2014-02-19 Tom Tromey <tromey@redhat.com>
6859 * target-delegates.c: Rebuild.
6860 * target.c (update_current_target): Don't inherit or default
6861 to_can_accel_watchpoint_condition.
6862 * target.h (struct target_ops)
6863 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
6865 2014-02-19 Tom Tromey <tromey@redhat.com>
6867 * target-delegates.c: Rebuild.
6868 * target.c (update_current_target): Don't inherit or default
6869 to_region_ok_for_hw_watchpoint.
6870 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6871 Use TARGET_DEFAULT_FUNC.
6873 2014-02-19 Tom Tromey <tromey@redhat.com>
6875 * target-delegates.c: Rebuild.
6876 * target.c (update_current_target): Don't inherit or default
6877 to_watchpoint_addr_within_range.
6878 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
6879 Use TARGET_DEFAULT_FUNC.
6881 2014-02-19 Tom Tromey <tromey@redhat.com>
6883 * target-delegates.c: Rebuild.
6884 * target.c (update_current_target): Don't inherit or default
6885 to_remove_watchpoint.
6886 * target.h (struct target_ops) <to_remove_watchpoint>: Use
6887 TARGET_DEFAULT_NORETURN.
6889 2014-02-19 Tom Tromey <tromey@redhat.com>
6891 * target-delegates.c: Rebuild.
6892 * target.c (update_current_target): Don't inherit or default
6893 to_insert_watchpoint.
6894 * target.h (struct target_ops) <to_insert_watchpoint>: Use
6895 TARGET_DEFAULT_RETURN.
6897 2014-02-19 Tom Tromey <tromey@redhat.com>
6899 * target-delegates.c: Rebuild.
6900 * target.c (update_current_target): Don't inherit or default
6901 to_remove_hw_breakpoint.
6902 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
6903 TARGET_DEFAULT_RETURN.
6905 2014-02-19 Tom Tromey <tromey@redhat.com>
6907 * target-delegates.c: Rebuild.
6908 * target.c (update_current_target): Don't inherit or default
6909 to_insert_hw_breakpoint.
6910 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
6911 TARGET_DEFAULT_RETURN.
6913 2014-02-19 Tom Tromey <tromey@redhat.com>
6915 * target-delegates.c: Rebuild.
6916 * target.c (update_current_target): Don't inherit or default
6917 to_can_use_hw_breakpoint.
6918 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
6919 TARGET_DEFAULT_RETURN.
6921 2014-02-19 Tom Tromey <tromey@redhat.com>
6923 * target-delegates.c: Rebuild.
6924 * target.c (update_current_target): Don't inherit or default
6926 * target.h (struct target_ops) <to_files_info>: Use
6927 TARGET_DEFAULT_IGNORE.
6929 2014-02-19 Tom Tromey <tromey@redhat.com>
6931 * target-delegates.c: Rebuild.
6932 * target.c (update_current_target): Don't inherit or default
6934 * target.h (struct target_ops) <to_store>: Use
6935 TARGET_DEFAULT_NORETURN.
6937 2014-02-19 Tom Tromey <tromey@redhat.com>
6939 * target-delegates.c: Rebuild.
6940 * target.c (update_current_target): Don't inherit or default
6942 * target.h (struct target_ops) <to_post_attach>: Use
6943 TARGET_DEFAULT_IGNORE.
6945 2014-02-19 Tom Tromey <tromey@redhat.com>
6947 * target-delegates.c: Rebuild.
6948 * target.c (update_current_target): Don't inherit or default
6950 (default_rcmd): New function.
6951 (do_monitor_command): Unconditionally delegate.
6952 * target.h (struct target_ops) <to_rmcd>: Use
6953 TARGET_DEFAULT_FUNC.
6955 2014-02-19 Tom Tromey <tromey@redhat.com>
6957 * target-delegates.c: Rebuild.
6958 * target.c (init_dummy_target): Don't initialize to_attach.
6959 (target_attach): Unconditionally delegate.
6960 * target.h (struct target_ops) <to_attach>: Use
6961 TARGET_DEFAULT_FUNC.
6963 2014-02-19 Tom Tromey <tromey@redhat.com>
6965 * target-delegates.c: Rebuild.
6966 * target.c (target_detach): Unconditionally delegate.
6967 (init_dummy_target): Don't initialize to_detach.
6968 * target.h (struct target_ops) <to_detach>: Use
6969 TARGET_DEFAULT_IGNORE.
6971 2014-02-19 Tom Tromey <tromey@redhat.com>
6973 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6975 (target_augmented_libraries_svr4_read): Add argument.
6976 * target.c (update_current_target): Update.
6977 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
6980 2014-02-19 Tom Tromey <tromey@redhat.com>
6982 * target.h (struct target_ops) <to_call_history_range>: Add
6984 * target.c (target_call_history_range): Add argument.
6985 * record-btrace.c (record_btrace_call_history_range): Add 'self'
6987 (record_btrace_call_history_from): Update.
6989 2014-02-19 Tom Tromey <tromey@redhat.com>
6991 * target.h (struct target_ops) <to_call_history_from>: Add
6993 * target.c (target_call_history_from): Add argument.
6994 * record-btrace.c (record_btrace_call_history_from): Add 'self'
6997 2014-02-19 Tom Tromey <tromey@redhat.com>
6999 * target.h (struct target_ops) <to_call_history>: Add argument.
7000 * target.c (target_call_history): Add argument.
7001 * record-btrace.c (record_btrace_call_history): Add 'self'
7004 2014-02-19 Tom Tromey <tromey@redhat.com>
7006 * target.h (struct target_ops) <to_insn_history_range>: Add
7008 * target.c (target_insn_history_range): Add argument.
7009 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
7011 (record_btrace_insn_history_from): Update.
7013 2014-02-19 Tom Tromey <tromey@redhat.com>
7015 * target.h (struct target_ops) <to_insn_history_from>: Add
7017 * target.c (target_insn_history_from): Add argument.
7018 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
7021 2014-02-19 Tom Tromey <tromey@redhat.com>
7023 * target.h (struct target_ops) <to_insn_history>: Add argument.
7024 * target.c (target_insn_history): Add argument.
7025 * record-btrace.c (record_btrace_insn_history): Add 'self'
7028 2014-02-19 Tom Tromey <tromey@redhat.com>
7030 * target.h (struct target_ops) <to_goto_record>: Add argument.
7031 * target.c (target_goto_record): Add argument.
7032 * record-full.c (record_full_goto): Add 'self' argument.
7033 * record-btrace.c (record_btrace_goto): Add 'self' argument.
7035 2014-02-19 Tom Tromey <tromey@redhat.com>
7037 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
7038 * target.c (target_goto_record_end): Add argument.
7039 * record-full.c (record_full_goto_end): Add 'self' argument.
7040 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
7042 2014-02-19 Tom Tromey <tromey@redhat.com>
7044 * target.h (struct target_ops) <to_goto_record_begin>: Add
7046 * target.c (target_goto_record_begin): Add argument.
7047 * record-full.c (record_full_goto_begin): Add 'self' argument.
7048 * record-btrace.c (record_btrace_goto_begin): Add 'self'
7051 2014-02-19 Tom Tromey <tromey@redhat.com>
7053 * target.h (struct target_ops) <to_record_is_replaying>: Add
7055 * target.c (target_record_is_replaying): Add argument.
7056 * record-full.c (record_full_is_replaying): Add 'self' argument.
7057 * record-btrace.c (record_btrace_is_replaying): Add 'self'
7059 (record_btrace_xfer_partial, record_btrace_store_registers)
7060 (record_btrace_prepare_to_store, record_btrace_resume)
7061 (record_btrace_wait, record_btrace_decr_pc_after_break)
7062 (record_btrace_find_new_threads, record_btrace_thread_alive):
7065 2014-02-19 Tom Tromey <tromey@redhat.com>
7067 * target.h (struct target_ops) <to_delete_record>: Add argument.
7068 * target.c (target_delete_record): Add argument.
7069 * record-full.c (record_full_delete): Add 'self' argument.
7071 2014-02-19 Tom Tromey <tromey@redhat.com>
7073 * target.h (struct target_ops) <to_save_record>: Add argument.
7074 * target.c (target_save_record): Add argument.
7075 * record-full.c (record_full_save): Add 'self' argument.
7076 (record_full_save): Add 'self' argument.
7078 2014-02-19 Tom Tromey <tromey@redhat.com>
7080 * target.h (struct target_ops) <to_info_record>: Add argument.
7081 * target.c (target_info_record): Add argument.
7082 * record.c (info_record_command): Add argument.
7083 * record-full.c (record_full_info): Add 'self' argument.
7084 * record-btrace.c (record_btrace_info): Add 'self' argument.
7086 2014-02-19 Tom Tromey <tromey@redhat.com>
7088 * target.h (struct target_ops) <to_stop_recording>: Add argument.
7089 * target.c (target_stop_recording): Add argument.
7090 * record.c (record_stop): Add argument.
7091 * record-btrace.c (record_btrace_stop_recording): Add 'self'
7094 2014-02-19 Tom Tromey <tromey@redhat.com>
7096 * target.h (struct target_ops) <to_read_btrace>: Add argument.
7097 * target.c (struct target_ops) <to_read_btrace>: Add argument.
7098 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
7100 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
7101 (_initialize_amd64_linux_nat): Use it.
7102 * i386-linux-nat.c (i386_linux_read_btrace): New function.
7103 (_initialize_i386_linux_nat): Use it.
7105 2014-02-19 Tom Tromey <tromey@redhat.com>
7107 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
7108 * target.c (target_teardown_btrace): Add argument.
7109 * remote.c (remote_teardown_btrace): Add 'self' argument.
7110 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
7112 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
7115 2014-02-19 Tom Tromey <tromey@redhat.com>
7117 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
7118 * target.c (target_disable_btrace): Add argument.
7119 * remote.c (remote_disable_btrace): Add 'self' argument.
7120 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
7122 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
7125 2014-02-19 Tom Tromey <tromey@redhat.com>
7127 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
7128 * target.c (target_enable_btrace): Add argument.
7129 * remote.c (remote_enable_btrace): Add 'self' argument.
7130 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
7132 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
7135 2014-02-19 Tom Tromey <tromey@redhat.com>
7137 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
7138 (target_can_use_agent): Add argument.
7139 * target.c (update_current_target): Update.
7140 * remote.c (remote_can_use_agent): Add 'self' argument.
7141 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
7143 2014-02-19 Tom Tromey <tromey@redhat.com>
7145 * target.h (struct target_ops) <to_use_agent>: Add argument.
7146 (target_use_agent): Add argument.
7147 * target.c (update_current_target): Update.
7148 * remote.c (remote_use_agent): Add 'self' argument.
7149 * inf-child.c (inf_child_use_agent): Add 'self' argument.
7151 2014-02-19 Tom Tromey <tromey@redhat.com>
7153 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
7154 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
7155 (target_traceframe_info): Add argument.
7156 * target.c (update_current_target): Update.
7157 * remote.c (remote_traceframe_info): Add 'self' argument.
7158 * ctf.c (ctf_traceframe_info): Add 'self' argument.
7160 2014-02-19 Tom Tromey <tromey@redhat.com>
7162 * target.h (target_static_tracepoint_markers_by_strid): Add
7164 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
7166 * target.c (update_current_target): Update.
7167 * remote.c (struct target_ops)
7168 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7169 * linux-nat.c (struct target_ops)
7170 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7172 2014-02-19 Tom Tromey <tromey@redhat.com>
7174 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7176 (target_static_tracepoint_marker_at): Add argument.
7177 * target.c (update_current_target): Update.
7178 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
7181 2014-02-19 Tom Tromey <tromey@redhat.com>
7183 * target.h (struct target_ops) <to_set_permissions>: Add argument.
7184 (target_set_permissions): Add argument.
7185 * target.c (update_current_target): Update.
7186 * remote.c (remote_set_permissions): Add 'self' argument.
7187 (remote_start_remote): Update.
7189 2014-02-19 Tom Tromey <tromey@redhat.com>
7191 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
7192 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
7193 (target_get_tib_address): Add argument.
7194 * target.c (update_current_target): Update.
7195 * remote.c (remote_get_tib_address): Add 'self' argument.
7197 2014-02-19 Tom Tromey <tromey@redhat.com>
7199 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
7200 (target_set_trace_notes): Add argument.
7201 * target.c (update_current_target): Update.
7202 * remote.c (remote_set_trace_notes): Add 'self' argument.
7204 2014-02-19 Tom Tromey <tromey@redhat.com>
7206 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
7208 (target_set_trace_buffer_size): Add argument.
7209 * target.c (update_current_target): Update.
7210 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
7212 2014-02-19 Tom Tromey <tromey@redhat.com>
7214 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
7216 (target_set_circular_trace_buffer): Add argument.
7217 * target.c (update_current_target): Update.
7218 * remote.c (remote_set_circular_trace_buffer): Add 'self'
7221 2014-02-19 Tom Tromey <tromey@redhat.com>
7223 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
7225 (target_set_disconnected_tracing): Add argument.
7226 * target.c (update_current_target): Update.
7227 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
7229 2014-02-19 Tom Tromey <tromey@redhat.com>
7231 * target.h (struct target_ops)
7232 <to_get_min_fast_tracepoint_insn_len>: Add argument.
7233 (target_get_min_fast_tracepoint_insn_len): Add argument.
7234 * target.c (update_current_target): Update.
7235 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
7238 2014-02-19 Tom Tromey <tromey@redhat.com>
7240 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
7242 (target_get_raw_trace_data): Add argument.
7243 * target.c (update_current_target): Update.
7244 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
7246 2014-02-19 Tom Tromey <tromey@redhat.com>
7248 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7250 (target_upload_trace_state_variables): Add argument.
7251 * target.c (update_current_target): Update.
7252 * remote.c (remote_upload_trace_state_variables): Add 'self'
7254 (remote_start_remote): Update.
7256 2014-02-19 Tom Tromey <tromey@redhat.com>
7258 * target.h (struct target_ops) <to_upload_tracepoints>: Add
7260 (target_upload_tracepoints): Add argument.
7261 * target.c (update_current_target): Update.
7262 * remote.c (remote_upload_tracepoints): Add 'self' argument.
7263 (remote_start_remote): Update.
7265 2014-02-19 Tom Tromey <tromey@redhat.com>
7267 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
7268 (target_save_trace_data): Add argument.
7269 * target.c (update_current_target): Update.
7270 * remote.c (remote_save_trace_data): Add 'self' argument.
7272 2014-02-19 Tom Tromey <tromey@redhat.com>
7274 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7276 * target.h (struct target_ops)
7277 <to_get_trace_state_variable_value>: Add argument.
7278 (target_get_trace_state_variable_value): Add argument.
7279 * target.c (update_current_target): Update.
7280 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7282 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7284 2014-02-19 Tom Tromey <tromey@redhat.com>
7286 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7287 * target.h (struct target_ops) <to_trace_find>: Add argument.
7288 (target_trace_find): Add argument.
7289 * target.c (update_current_target): Update.
7290 * remote.c (remote_trace_find): Add 'self' argument.
7291 * ctf.c (ctf_trace_find): Add 'self' argument.
7293 2014-02-19 Tom Tromey <tromey@redhat.com>
7295 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7296 (target_trace_stop): Add argument.
7297 * target.c (update_current_target): Update.
7298 * remote.c (remote_trace_stop): Add 'self' argument.
7300 2014-02-19 Tom Tromey <tromey@redhat.com>
7302 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7303 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7305 (target_get_tracepoint_status): Add argument.
7306 * target.c (update_current_target): Update.
7307 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7309 2014-02-19 Tom Tromey <tromey@redhat.com>
7311 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7312 * target.h (struct target_ops) <to_get_trace_status>: Add
7314 (target_get_trace_status): Add argument.
7315 * target.c (update_current_target): Update.
7316 * remote.c (remote_get_trace_status): Add 'self' argument.
7317 (remote_start_remote, remote_can_download_tracepoint): Update.
7318 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7320 2014-02-19 Tom Tromey <tromey@redhat.com>
7322 * target.h (struct target_ops) <to_trace_start>: Add argument.
7323 (target_trace_start): Add argument.
7324 * target.c (update_current_target): Update.
7325 * remote.c (remote_trace_start): Add 'self' argument.
7327 2014-02-19 Tom Tromey <tromey@redhat.com>
7329 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7331 (target_trace_set_readonly_regions): Add argument.
7332 * target.c (update_current_target): Update.
7333 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7336 2014-02-19 Tom Tromey <tromey@redhat.com>
7338 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7340 (target_disable_tracepoint): Add argument.
7341 * target.c (update_current_target): Update.
7342 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7344 2014-02-19 Tom Tromey <tromey@redhat.com>
7346 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7348 (target_enable_tracepoint): Add argument.
7349 * target.c (update_current_target): Update.
7350 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7352 2014-02-19 Tom Tromey <tromey@redhat.com>
7354 * target.h (struct target_ops) <to_download_trace_state_variable>:
7356 (target_download_trace_state_variable): Add argument.
7357 * target.c (update_current_target): Update.
7358 * remote.c (remote_download_trace_state_variable): Add 'self'
7361 2014-02-19 Tom Tromey <tromey@redhat.com>
7363 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7365 (target_can_download_tracepoint): Add argument.
7366 * target.c (update_current_target): Update.
7367 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7369 2014-02-19 Tom Tromey <tromey@redhat.com>
7371 * target.h (struct target_ops) <to_download_tracepoint>: Add
7373 (target_download_tracepoint): Add argument.
7374 * target.c (update_current_target): Update.
7375 * remote.c (remote_download_tracepoint): Add 'self' argument.
7377 2014-02-19 Tom Tromey <tromey@redhat.com>
7379 * target.h (struct target_ops) <to_trace_init>: Add argument.
7380 (target_trace_init): Add argument.
7381 * target.c (update_current_target): Update.
7382 * remote.c (remote_trace_init): Add 'self' argument.
7384 2014-02-19 Tom Tromey <tromey@redhat.com>
7386 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7387 * target.c (target_fileio_readlink): Add argument.
7388 * remote.c (remote_hostio_readlink): Add 'self' argument.
7389 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7391 2014-02-19 Tom Tromey <tromey@redhat.com>
7393 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7394 * target.c (target_fileio_unlink): Add argument.
7395 * remote.c (remote_hostio_unlink): Add 'self' argument.
7396 (remote_file_delete): Update.
7397 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7399 2014-02-19 Tom Tromey <tromey@redhat.com>
7401 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7402 * target.c (target_fileio_close): Add argument.
7403 * remote.c (remote_hostio_close): Add 'self' argument.
7404 (remote_hostio_close_cleanup): Update.
7405 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7407 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7409 2014-02-19 Tom Tromey <tromey@redhat.com>
7411 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7412 * target.c (target_fileio_pread): Add argument.
7413 * remote.c (remote_hostio_pread): Add 'self' argument.
7414 (remote_bfd_iovec_pread, remote_file_get): Update.
7415 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7417 2014-02-19 Tom Tromey <tromey@redhat.com>
7419 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7420 * target.c (target_fileio_pwrite): Add argument.
7421 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7422 (remote_file_put): Update.
7423 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7425 2014-02-19 Tom Tromey <tromey@redhat.com>
7427 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7428 * target.c (target_fileio_open): Add argument.
7429 * remote.c (remote_hostio_open): Add 'self' argument.
7430 (remote_bfd_iovec_open): Add 'self' argument.
7431 (remote_file_put): Add 'self' argument.
7432 (remote_file_get): Add 'self' argument.
7433 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7435 2014-02-19 Tom Tromey <tromey@redhat.com>
7437 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7439 (target_can_run_breakpoint_commands): Add argument.
7440 * target.c (update_current_target): Update.
7441 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7443 (remote_insert_breakpoint): Add 'self' argument.
7444 (remote_insert_hw_breakpoint): Add 'self' argument.
7445 (remote_can_run_breakpoint_commands): Add 'self' argument.
7447 2014-02-19 Tom Tromey <tromey@redhat.com>
7449 * target.h (struct target_ops)
7450 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7451 (target_supports_evaluation_of_breakpoint_conditions): Add
7453 * target.c (update_current_target): Update.
7454 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7456 (remote_insert_breakpoint): Add 'self' argument.
7457 (remote_insert_hw_breakpoint): Add 'self' argument.
7458 (remote_supports_cond_breakpoints): Add 'self' argument.
7460 2014-02-19 Tom Tromey <tromey@redhat.com>
7462 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7464 (target_supports_string_tracing): Add argument.
7465 * target.c (update_current_target): Update.
7466 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7468 2014-02-19 Tom Tromey <tromey@redhat.com>
7470 * target.h (struct target_ops)
7471 <to_supports_disable_randomization>: Add argument.
7472 * target.c (find_default_supports_disable_randomization): Add
7474 (target_supports_disable_randomization): Add argument.
7475 (find_default_supports_disable_randomization): Add 'self'
7477 * remote.c (extended_remote_supports_disable_randomization): Add
7479 (remote_supports_disable_randomization): Add 'self' argument.
7480 (extended_remote_create_inferior): Update.
7481 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7484 2014-02-19 Tom Tromey <tromey@redhat.com>
7486 * target.h (struct target_ops)
7487 <to_supports_enable_disable_tracepoint>: Add argument.
7488 (target_supports_enable_disable_tracepoint): Add argument.
7489 * target.c (update_current_target): Update.
7490 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7493 2014-02-19 Tom Tromey <tromey@redhat.com>
7495 * target.h (struct target_ops) <to_supports_multi_process>: Add
7497 (target_supports_multi_process): Add argument.
7498 * target.c (update_current_target): Update.
7499 * remote.c (remote_supports_multi_process): Add 'self' argument.
7500 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7502 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7505 2014-02-19 Tom Tromey <tromey@redhat.com>
7507 * target.h (struct target_ops) <to_execution_direction>: Add
7509 (target_execution_direction): Add argument.
7510 * target.c (default_execution_direction): Add 'self' argument.
7511 * record-full.c (record_full_execution_direction): Add 'self'
7514 2014-02-19 Tom Tromey <tromey@redhat.com>
7516 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7518 (target_can_execute_reverse): Add argument.
7519 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7520 * record-full.c (record_full_can_execute_reverse): Add 'self'
7522 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7525 2014-02-19 Tom Tromey <tromey@redhat.com>
7527 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7528 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7530 (target_get_ada_task_ptid): Add argument.
7531 * target.c (update_current_target): Update.
7532 (default_get_ada_task_ptid): Add 'self' argument.
7533 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7534 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7535 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7537 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7539 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7541 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7543 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7544 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7547 2014-02-19 Tom Tromey <tromey@redhat.com>
7549 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7550 (target_goto_bookmark): Add argument.
7551 * target.c (dummy_goto_bookmark): Add 'self' argument.
7552 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7554 2014-02-19 Tom Tromey <tromey@redhat.com>
7556 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7557 (target_get_bookmark): Add argument.
7558 * target.c (dummy_get_bookmark): Add 'self' argument.
7559 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7561 2014-02-19 Tom Tromey <tromey@redhat.com>
7563 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7565 (target_make_corefile_notes): Add argument.
7566 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7567 * procfs.c (procfs_make_note_section): Add 'self' argument.
7568 (procfs_make_note_section): Add 'self' argument.
7569 (procfs_make_note_section): Add 'self' argument.
7570 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7572 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7573 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7574 * exec.c (exec_make_note_section): Add 'self' argument.
7575 (exec_make_note_section): Add 'self' argument.
7577 2014-02-19 Tom Tromey <tromey@redhat.com>
7579 * target.h (struct target_ops) <to_find_memory_regions>: Add
7581 (target_find_memory_regions): Add argument.
7582 * target.c (dummy_find_memory_regions): Add 'self' argument.
7583 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7584 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7585 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7586 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7587 * exec. (exec_do_find_memory_regions): New global.
7588 (exec_set_find_memory_regions): Rewrite.
7589 (exec_find_memory_regions): New function.
7590 (init_exec_ops): Use exec_find_memory_regions.
7592 2014-02-19 Tom Tromey <tromey@redhat.com>
7594 * target.h (struct target_ops) <to_supports_non_stop>: Add
7596 * target.c (find_default_supports_non_stop): Add argument.
7597 (target_supports_non_stop): Add argument.
7598 (find_default_supports_non_stop): Add 'self' argument.
7599 * remote.c (remote_supports_non_stop): Add 'self' argument.
7600 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7602 2014-02-19 Tom Tromey <tromey@redhat.com>
7604 * target.h (struct target_ops) <to_log_command>: Add argument.
7605 (target_log_command): Add argument.
7606 * serial.h (serial_log_command): Add 'self' argument.
7607 * serial.c (serial_log_command): Add 'self' argument.
7609 2014-02-19 Tom Tromey <tromey@redhat.com>
7611 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7612 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7614 (target_pid_to_exec_file): Add argument.
7615 * target.c (debug_to_pid_to_exec_file): Add argument.
7616 (update_current_target): Update.
7617 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7618 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7619 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7620 (linux_handle_extended_wait): Update.
7621 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7622 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7623 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7624 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7626 2014-02-19 Tom Tromey <tromey@redhat.com>
7628 * target.h (struct target_ops) <to_rcmd>: Add argument.
7629 (target_rcmd): Add argument.
7630 * target.c (debug_to_rcmd): Add argument.
7631 (update_current_target, do_monitor_command): Update.
7632 * remote.c (remote_rcmd): Add 'self' argument.
7633 * monitor.c (monitor_rcmd): Add 'self' argument.
7635 2014-02-19 Tom Tromey <tromey@redhat.com>
7637 * windows-nat.c (windows_stop): Add 'self' argument.
7638 * target.h (struct target_ops) <to_stop>: Add argument.
7639 * target.c (target_stop): Add argument.
7640 (debug_to_stop): Add argument.
7641 (update_current_target): Update.
7642 * remote.c (remote_stop): Add 'self' argument.
7643 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7644 (gdbsim_cntrl_c): Update.
7645 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7646 * procfs.c (procfs_stop): Add 'self' argument.
7647 * nto-procfs.c (procfs_stop): Add 'self' argument.
7648 * monitor.c (monitor_stop): Add 'self' argument.
7649 (monitor_open): Update.
7650 * linux-nat.c (linux_nat_stop): Add argument.
7651 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7652 * gnu-nat.c (gnu_stop): Add 'self' argument.
7653 * darwin-nat.c (darwin_stop): Add 'self' argument.
7655 2014-02-19 Tom Tromey <tromey@redhat.com>
7657 * target.h (struct target_ops) <to_thread_name>: Add argument.
7658 * target.c (target_thread_name): Add argument.
7659 (update_current_target): Update.
7660 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7662 2014-02-19 Tom Tromey <tromey@redhat.com>
7664 * target.h (struct target_ops) <to_extra_thread_info>: Add
7666 (target_extra_thread_info): Add argument.
7667 * target.c (update_current_target): Update.
7668 * remote.c (remote_threads_extra_info): Add 'self' argument.
7669 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7671 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7672 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7673 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7675 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7677 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7679 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7682 2014-02-19 Tom Tromey <tromey@redhat.com>
7684 * target.h (struct target_ops) <to_program_signals>: Add argument.
7685 * target.c (target_program_signals): Add argument.
7686 * remote.c (remote_program_signals): Add 'self' argument.
7688 2014-02-19 Tom Tromey <tromey@redhat.com>
7690 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7691 * target.c (target_pass_signals): Add argument.
7692 * remote.c (remote_pass_signals): Add 'self' argument.
7693 (remote_start_remote): Update.
7694 * procfs.c (procfs_pass_signals): Add 'self' argument.
7695 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7696 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7697 (linux_nat_create_inferior, linux_nat_attach): Update.
7699 2014-02-19 Tom Tromey <tromey@redhat.com>
7701 * windows-nat.c (windows_can_run): Add 'self' argument.
7702 * target.h (struct target_ops) <to_can_run>: Add argument.
7703 (target_can_run): Add argument.
7704 * target.c (debug_to_can_run): Add argument.
7705 (update_current_target): Update.
7706 * nto-procfs.c (procfs_can_run): Add 'self' argument.
7707 * inf-child.c (inf_child_can_run): Add 'self' argument.
7708 * go32-nat.c (go32_can_run): Add 'self' argument.
7710 2014-02-19 Tom Tromey <tromey@redhat.com>
7712 * target.h (struct target_ops) <to_has_exited>: Add argument.
7713 (target_has_exited): Add argument.
7714 * target.c (debug_to_has_exited): Add argument.
7715 (update_current_target): Update.
7717 2014-02-19 Tom Tromey <tromey@redhat.com>
7719 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
7721 (target_set_syscall_catchpoint): Add argument.
7722 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
7724 * target.c (update_current_target): Update.
7726 2014-02-19 Tom Tromey <tromey@redhat.com>
7728 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
7730 (target_remove_exec_catchpoint): Add argument.
7731 * target.c (debug_to_remove_exec_catchpoint): Add argument.
7732 (update_current_target): Update.
7733 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
7736 2014-02-19 Tom Tromey <tromey@redhat.com>
7738 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
7740 (target_insert_exec_catchpoint): Add argument.
7741 * target.c (debug_to_insert_exec_catchpoint): Add argument.
7742 (update_current_target): Update.
7743 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
7746 2014-02-19 Tom Tromey <tromey@redhat.com>
7748 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
7750 (target_remove_vfork_catchpoint): Add argument.
7751 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
7752 (update_current_target): Update.
7753 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
7756 2014-02-19 Tom Tromey <tromey@redhat.com>
7758 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
7760 (target_insert_vfork_catchpoint): Add argument.
7761 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
7762 (update_current_target): Update.
7763 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
7766 2014-02-19 Tom Tromey <tromey@redhat.com>
7768 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
7770 (target_remove_fork_catchpoint): Add argument.
7771 * target.c (debug_to_remove_fork_catchpoint): Add argument.
7772 (update_current_target): Update.
7773 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
7776 2014-02-19 Tom Tromey <tromey@redhat.com>
7778 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
7780 (target_insert_fork_catchpoint): Add argument.
7781 * target.c (debug_to_insert_fork_catchpoint): Add argument.
7782 (update_current_target): Update.
7783 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
7786 2014-02-19 Tom Tromey <tromey@redhat.com>
7788 * target.h (struct target_ops) <to_post_startup_inferior>: Add
7790 (target_post_startup_inferior): Add argument.
7791 * target.c (debug_to_post_startup_inferior): Add argument.
7792 (update_current_target): Update.
7793 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
7795 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
7797 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
7799 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
7801 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
7803 (super_post_startup_inferior): Likewise.
7804 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
7806 (super_post_startup_inferior): Likewise.
7807 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
7808 Add 'self' argument.
7809 (super_post_startup_inferior): Likewise.
7811 2014-02-19 Tom Tromey <tromey@redhat.com>
7813 * target.h (struct target_ops) <to_load>: Add argument.
7814 * target.c (target_load): Add argument.
7815 (debug_to_load): Add argument.
7816 (update_current_target): Update.
7817 * remote.c (remote_load): Add 'self' argument.
7818 * remote-sim.c (gdbsim_load): Add 'self' argument.
7819 * remote-mips.c (mips_load): Add 'self' argument.
7820 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
7821 * monitor.c (monitor_load): Add 'self' argument.
7822 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
7824 2014-02-19 Tom Tromey <tromey@redhat.com>
7826 * target.h (struct target_ops) <to_terminal_info>: Add argument.
7827 (target_terminal_info): Add argument.
7828 * target.c (debug_to_terminal_info): Add argument.
7829 (default_terminal_info): Likewise.
7830 * inflow.c (child_terminal_info): Add 'self' argument.
7831 * inferior.h (child_terminal_info): Add 'self' argument.
7832 * go32-nat.c (go32_terminal_info): Add 'self' argument.
7834 2014-02-19 Tom Tromey <tromey@redhat.com>
7836 * target.h (struct target_ops) <to_terminal_save_ours>: Add
7838 (target_terminal_save_ours): Add argument.
7839 * target.c (debug_to_terminal_save_ours): Add argument.
7840 (update_current_target): Update.
7841 * inflow.c (terminal_save_ours): Add 'self' argument.
7842 * inferior.h (terminal_save_ours): Add 'self' argument.
7844 2014-02-19 Tom Tromey <tromey@redhat.com>
7846 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
7847 (target_terminal_ours): Add argument.
7848 * target.c (debug_to_terminal_ours): Add argument.
7849 (update_current_target): Update.
7850 * remote.c (remote_terminal_ours): Add 'self' argument.
7851 (remote_close): Update.
7852 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
7853 * inflow.c (terminal_ours): Add 'self' argument.
7854 * inferior.h (terminal_ours): Add 'self' argument.
7855 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7857 2014-02-19 Pedro Alves <palves@redhat.com>
7858 Tom Tromey <tromey@redhat.com>
7860 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
7862 (target_terminal_ours_for_output): Add argument.
7863 * target.c (debug_to_terminal_ours_for_output): Add argument.
7864 (update_current_target): Update.
7865 * inflow.c (terminal_ours_for_output): Add 'self' argument.
7866 * inferior.h (terminal_ours_for_output): Add 'self' argument.
7867 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7869 2014-02-19 Tom Tromey <tromey@redhat.com>
7871 * target.h (struct target_ops) <to_terminal_inferior>: Add
7873 * target.c (target_terminal_inferior): Add argument.
7874 (update_current_target): Update.
7875 * remote.c (remote_terminal_inferior): Add 'self' argument.
7876 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
7877 * inflow.c (terminal_inferior): Add 'self' argument.
7878 * inferior.h (terminal_inferior): Add 'self' argument.
7879 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
7880 (go32_terminal_inferior): Add 'self' argument.
7882 2014-02-19 Tom Tromey <tromey@redhat.com>
7884 * target.h (struct target_ops) <to_terminal_init>: Add argument.
7885 (target_terminal_init): Add argument.
7886 * target.c (debug_to_terminal_init): Add argument.
7887 (update_current_target): Update.
7888 * inflow.c (terminal_init_inferior): Add 'self' argument.
7889 * inferior.h (terminal_init_inferior): Add 'self' argument.
7890 * go32-nat.c (go32_terminal_init): Add 'self' argument.
7891 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
7893 2014-02-19 Tom Tromey <tromey@redhat.com>
7895 * target.h (struct target_ops)
7896 <to_can_accel_watchpoint_condition>: Add argument.
7897 (target_can_accel_watchpoint_condition): Add argument.
7898 * target.c (debug_to_can_accel_watchpoint_condition): Add
7900 (update_current_target): Update.
7901 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
7904 2014-02-19 Tom Tromey <tromey@redhat.com>
7906 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7908 (target_region_ok_for_hw_watchpoint): Add argument.
7909 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
7910 (default_region_ok_for_hw_watchpoint): Add argument.
7911 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
7912 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
7914 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
7916 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
7918 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
7920 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
7922 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
7924 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
7925 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
7927 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
7928 Add 'self' argument.
7930 2014-02-19 Tom Tromey <tromey@redhat.com>
7932 * target.h (struct target_ops) <to_insert_watchpoint>: Add
7934 (target_insert_watchpoint): Add argument.
7935 * target.c (debug_to_insert_watchpoint): Add argument.
7936 (update_current_target): Update.
7937 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
7938 * remote.c (remote_insert_watchpoint): Add 'self' argument.
7939 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
7940 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
7941 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
7942 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
7944 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
7945 (procfs_insert_hw_watchpoint): Add 'self' argument.
7946 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
7948 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
7950 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
7952 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
7953 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
7955 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
7958 2014-02-19 Tom Tromey <tromey@redhat.com>
7960 * target.h (struct target_ops) <to_remove_watchpoint>: Add
7962 (target_remove_watchpoint): Add argument.
7963 * target.c (debug_to_remove_watchpoint): Add argument.
7964 (update_current_target): Update.
7965 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
7966 * remote.c (remote_remove_watchpoint): Add 'self' argument.
7967 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
7968 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
7969 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
7970 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
7972 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
7973 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
7975 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
7977 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
7979 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
7980 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
7982 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
7985 2014-02-19 Tom Tromey <tromey@redhat.com>
7987 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
7989 (target_remove_hw_breakpoint): Add argument.
7990 * target.c (debug_to_remove_hw_breakpoint): Add argument.
7991 (update_current_target): Update.
7992 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
7993 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
7995 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
7996 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
7998 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
8001 2014-02-19 Tom Tromey <tromey@redhat.com>
8003 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
8005 (target_insert_hw_breakpoint): Add argument.
8006 * target.c (debug_to_insert_hw_breakpoint): Add argument.
8007 (update_current_target): Update.
8008 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
8009 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
8011 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
8012 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
8013 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
8015 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
8018 2014-02-19 Tom Tromey <tromey@redhat.com>
8020 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
8022 (target_can_use_hardware_watchpoint): Add argument.
8023 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
8024 (update_current_target): Update.
8025 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
8027 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
8029 * remote.c (remote_check_watch_resources): Add 'self' argument.
8030 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
8031 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
8033 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
8034 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
8036 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
8038 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
8040 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
8042 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
8044 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
8046 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
8047 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
8049 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
8052 2014-02-19 Tom Tromey <tromey@redhat.com>
8054 * target.h (struct target_ops) <to_post_attach>: Add argument.
8055 (target_post_attach): Add argument.
8056 * target.c (debug_to_post_attach): Add argument.
8057 (update_current_target): Update.
8058 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
8059 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
8060 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
8061 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
8062 * inf-child.c (inf_child_post_attach): Add 'self' argument.
8064 2014-02-19 Tom Tromey <tromey@redhat.com>
8066 * windows-nat.c (windows_close): Add 'self' argument.
8067 * tracepoint.c (tfile_close): Add 'self' argument.
8068 * target.h (struct target_ops) <to_close>: Add argument.
8069 * target.c (target_close): Add argument.
8070 (update_current_target): Update.
8071 * remote.c (remote_close): Add 'self' argument.
8072 * remote-sim.c (gdbsim_close): Add 'self' argument.
8073 * remote-mips.c (mips_close): Add 'self' argument.
8074 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
8075 * record-full.c (record_full_close): Add 'self' argument.
8076 * record-btrace.c (record_btrace_close): Add 'self' argument.
8077 * monitor.h (monitor_close): Add 'self' argument.
8078 * monitor.c (monitor_close): Add 'self' argument.
8079 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
8080 * linux-nat.c (linux_nat_close): Add argument.
8081 * go32-nat.c (go32_close): Add 'self' argument.
8082 * exec.c (exec_close_1): Add 'self' argument.
8083 * ctf.c (ctf_close): Add 'self' argument.
8084 * corelow.c (core_close): Add 'self' argument.
8085 (core_close_cleanup): Update.
8086 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
8087 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
8089 2014-02-19 Tom Tromey <tromey@redhat.com>
8091 * remote.c (remote_load): New function.
8092 (init_remote_ops): Use it.
8094 2014-02-19 Tom Tromey <tromey@redhat.com>
8096 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
8098 * common/linux-btrace.h (linux_supports_btrace): Update.
8099 * remote.c (remote_supports_btrace): Add "self" argument.
8100 * target-delegates.c: Rebuild.
8101 * target.c (target_supports_btrace): Remove.
8102 * target.h (struct target_ops) <to_supports_btrace>: Add
8103 target_ops argument.
8104 (target_supports_btrace): New define.
8106 2014-02-19 Tom Tromey <tromey@redhat.com>
8108 * record-full.c (record_full_beneath_to_resume_ops)
8109 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
8110 (record_full_beneath_to_wait)
8111 (record_full_beneath_to_store_registers_ops)
8112 (record_full_beneath_to_store_registers)
8113 (record_full_beneath_to_xfer_partial_ops)
8114 (record_full_beneath_to_xfer_partial)
8115 (record_full_beneath_to_insert_breakpoint_ops)
8116 (record_full_beneath_to_insert_breakpoint)
8117 (record_full_beneath_to_remove_breakpoint_ops)
8118 (record_full_beneath_to_remove_breakpoint)
8119 (record_full_beneath_to_stopped_by_watchpoint)
8120 (record_full_beneath_to_stopped_data_address)
8121 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
8122 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
8123 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
8124 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
8125 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
8126 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
8127 (tmp_to_stopped_data_address, tmp_to_async): Remove.
8128 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
8129 (record_full_resume, record_full_wait_1)
8130 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
8131 (record_full_store_registers, record_full_xfer_partial)
8132 (record_full_insert_breakpoint, record_full_remove_breakpoint)
8133 (record_full_async, record_full_core_xfer_partial): Use target
8135 * target-delegates.c: Rebuild.
8136 * target.c (current_xfer_partial): Remove.
8137 (update_current_target): Do not INHERIT or de_fault
8138 to_insert_breakpoint, to_remove_breakpoint,
8139 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
8140 to_is_async_p, to_async. Do not set to_xfer_partial field.
8141 (default_xfer_partial): Simplify.
8142 (current_xfer_partial): Remove.
8143 (target_wait, target_resume): Simplify.
8144 (find_default_can_async_p, find_default_is_async_p): Update.
8145 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
8146 to_xfer_partial, to_stopped_by_watchpoint,
8147 to_stopped_data_address.
8148 (target_store_registers): Simplify.
8149 (forward_target_remove_breakpoint)
8150 (forward_target_insert_breakpoint): Remove.
8151 (target_remove_breakpoint, target_insert_breakpoint)
8152 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
8153 * target.h (struct target_ops) <to_resume, to_wait,
8154 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
8155 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
8156 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
8158 (forward_target_remove_breakpoint)
8159 (forward_target_insert_breakpoint): Remove.
8160 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
8162 (record_btrace_insert_breakpoint): Delegate directly.
8164 2014-02-19 Tom Tromey <tromey@redhat.com>
8167 * target-delegates.c: New file.
8168 * target.c: Include target-delegates.c.
8169 (init_dummy_target): Call install_dummy_methods.
8170 (complete_target_initialization): Call install_delegators.
8171 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
8172 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
8173 * make-target-delegates: New file.
8175 2014-02-19 Tom Tromey <tromey@redhat.com>
8177 * record.c (find_record_target): Use find_target_at.
8178 * target.c (find_target_at): New function.
8179 * target.h (find_target_at): Declare.
8181 2014-02-19 Tom Tromey <tromey@redhat.com>
8183 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
8185 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
8187 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
8188 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
8190 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
8192 * linux-nat.c (save_sigtrap): Update.
8193 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
8194 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
8195 (linux_nat_close): Update.
8196 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
8198 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
8200 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
8201 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
8202 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
8203 (tmp_to_async): Add 'ops' argument.
8204 (record_full_stopped_by_watchpoint, record_full_async)
8205 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
8207 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
8208 (m32r_stopped_by_watchpoint): Add 'ops' argument.
8209 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
8210 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
8211 (remote_is_async_p, remote_async): Add 'ops' argument.
8212 (remote_stopped_data_address): Update.
8213 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
8214 * target.c (update_current_target)
8215 (find_default_can_async_p, find_default_is_async_p): Update.
8216 (init_dummy_target): Update.
8217 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
8218 * target.h (struct target_ops) <to_stopped_by_watchpoint,
8219 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
8220 (target_can_async_p, target_is_async_p, target_async)
8221 (target_stopped_by_watchpoint): Update.
8223 2014-02-19 Yao Qi <yao@codesourcery.com>
8226 * gdbarch.sh: Remove startup_gdbarch.
8227 * gdbarch.c: Regenerated.
8228 * gdbarch.h: Likewise.
8230 2014-02-17 Kevin Buettner <kevinb@redhat.com>
8232 * rl78-tdep.c (rl78_g10_register_name): New function.
8233 (rl78_return_value): Add g10 support.
8234 (rl78_gdbarch_init): Register rl78_g10_register_name for the
8237 2014-02-17 Doug Evans <xdje42@gmail.com>
8239 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
8240 (SUBDIR_GUILE_SRCS): Ditto.
8241 (scm-gsmob.o): Ditto.
8243 2014-02-17 Yao Qi <yao@codesourcery.com>
8245 * gnu-nat.c (ILL_RPC): Declare defined function.
8247 2014-02-17 Yao Qi <yao@codesourcery.com>
8249 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
8250 mach_msg_type_number_t.
8251 (gnu_write_inferior): Likewise.
8253 2014-02-17 Yao Qi <yao@codesourcery.com>
8255 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
8257 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
8258 (inf_validate_procs, inf_signal): Likewise.
8259 (S_exception_raise_request): Likewise.
8260 (do_mach_notify_dead_name): Likewise.
8261 (steal_exc_port): Likewise.
8262 (gnu_read_inferior): Change 'copy_count''s type to
8263 mach_msg_type_number_t.
8264 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
8267 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
8269 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
8270 flag. Adjust all users; in particular...
8271 (gnu_wait): ..., don't decrement its value in here...
8272 (gnu_create_inferior): ..., and instead set the flag in here,
8273 around the startup_inferior call, and call that one with
8274 START_INFERIOR_TRAPS_EXPECTED.
8276 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8277 (ILL_RPC): ... new macro.
8278 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8279 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8280 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8281 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8282 functions with ILL_RPC macro.
8283 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8284 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8285 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8286 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8287 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8288 (S_proc_getlogin_reply, S_proc_getsid_reply)
8289 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8290 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8291 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8292 (S_proc_getnports_reply, S_proc_is_important_reply)
8293 (S_proc_get_code_reply): New stub functions, generated with
8296 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8297 collected the type check structures.
8299 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8301 2014-02-14 Doug Evans <dje@google.com>
8303 * target.c (target_write_partial): Fix result type.
8305 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8307 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8308 the proper offsets to access fpregset_t.
8310 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8312 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8313 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8314 * h8300-tdep.c (setmachinelist): Remove global.
8315 * hppa-tdep.c (hppa_sigtramp): Remove global.
8316 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8317 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8318 * ravenscar-thread.c (update_target_observer): Remove global.
8319 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8321 2014-02-12 Tom Tromey <tromey@redhat.com>
8323 * common/rsp-low.c: Update comments.
8324 * common/rsp-low.h: Update comments.
8326 2014-02-12 Tom Tromey <tromey@redhat.com>
8328 * common/rsp-low.c (convert_ascii_to_int): Remove.
8329 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8331 2014-02-12 Tom Tromey <tromey@redhat.com>
8333 * common/rsp-low.h (unhexify): Don't declare.
8334 * common/rsp-low.c (unhexify): Remove.
8336 2014-02-12 Tom Tromey <tromey@redhat.com>
8338 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8339 * common/rsp-low.c (convert_int_to_ascii): Remove.
8341 2014-02-12 Tom Tromey <tromey@redhat.com>
8343 * common/rsp-low.h (hexify): Don't declare.
8344 * common/rsp-low.c (hexify): Remove.
8346 2014-02-12 Tom Tromey <tromey@redhat.com>
8348 * common/rsp-low.c (hexify): Never take strlen of argument.
8350 2014-02-12 Tom Tromey <tromey@redhat.com>
8352 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8353 * remote.c (extended_remote_run, remote_rcmd)
8354 (remote_download_trace_state_variable, remote_save_trace_data)
8355 (remote_set_trace_notes): Update.
8356 * tracepoint.c (encode_source_string, tfile_write_status)
8357 (tfile_write_uploaded_tsv): Update.
8359 2014-02-12 Tom Tromey <tromey@redhat.com>
8361 * tracepoint.c: Include rsp-low.h.
8362 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8363 * remote.c: Include rsp-low.h.
8364 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8365 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8366 (remote_unescape_input): Move to common/rsp-low.c.
8367 * common/rsp-low.h: New file.
8368 * common/rsp-low.c: New file.
8369 * Makefile.in (SFILES): Add common/rsp-low.c.
8370 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8371 (COMMON_OBS): Add rsp-low.o.
8372 (rsp-low.o): New target.
8374 2014-02-12 Tom Tromey <tromey@redhat.com>
8376 * utils.h: Include print-utils.h.
8377 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8378 (int_string, core_addr_to_string, core_addr_to_string_nz)
8379 (hex_string, hex_string_custom): Don't declare.
8380 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8381 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8382 (hex_string_custom, int_string, core_addr_to_string)
8383 (core_addr_to_string_nz, host_address_to_string): Move to
8384 common/print-utils.c.
8385 * common/print-utils.h: New file.
8386 * common/print-utils.c: New file
8387 * Makefile.in (SFILES): Add common/print-utils.c.
8388 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8389 (COMMON_OBS): Add print-utils.o.
8390 (print-utils.o): New target.
8392 2014-02-12 Tom Tromey <tromey@redhat.com>
8394 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8396 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8398 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8400 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8402 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8403 if a PT_IO ptrace request returns sucessfully but indicates that 0
8404 bytes were transferred.
8406 2014-02-12 Pedro Alves <palves@redhat.com>
8407 Kevin Buettner <kevinb@redhat.com>
8409 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8410 TYPE_INSTANCE_FLAG_CODE_SPACE.
8412 2014-02-12 Pedro Alves <palves@redhat.com>
8414 * h8300-tdep.c (pseudo_from_raw_register)
8415 (raw_from_pseudo_register): New functions.
8416 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8419 2014-02-12 Pedro Alves <palves@redhat.com>
8421 * h8300-tdep.c (h8300_register_sim_regno): New function.
8422 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8423 gdbarch_register_sim_regno hook.
8425 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8427 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8429 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8431 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8433 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8435 * obsd-tdep.h (obsd_init_abi): New prototype.
8436 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8437 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8438 (obsd_init_abi): New functions.
8439 * i386obsd-tdep.c: Include "obsd-tdep.h".
8440 (i386obsd_init_abi): Call obsd_init_abi.
8441 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8442 (amd64obsd_init_abi): Call obsd_init_abi.
8443 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8444 obsd-tdep.c to gdb_target_obs.
8446 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8448 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8449 double float arguments to 16-byte in the argument slots.
8451 2014-02-11 Doug Evans <xdje42@gmail.com>
8453 * configure.ac: Don't crash if pkg-config is not found and guile
8454 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8456 * configure: Regenerate.
8458 2014-02-11 Yao Qi <yao@codesourcery.com>
8460 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8461 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8462 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8463 * gnu-nat.c (gnu_xfer_memory): Likewise.
8464 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8465 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8466 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8467 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8469 2014-02-11 Yao Qi <yao@codesourcery.com>
8471 * target.h (enum target_xfer_error): Rename to ...
8472 (enum target_xfer_status): ... it. New. All users updated.
8473 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8475 (TARGET_XFER_STATUS_ERROR_P): New macro.
8476 (target_xfer_error_to_string): Remove declaration.
8477 (target_xfer_status_to_string): Declare.
8478 (target_xfer_partial_ftype): Adjust it.
8479 (struct target_ops) <to_xfer_partial>: Return
8480 target_xfer_status. Add argument xfered_len. Update
8482 * target.c (target_xfer_error_to_string): Rename to ...
8483 (target_xfer_status_to_string): ... it. New. All callers
8485 (target_read_live_memory): Likewise. Call target_xfer_partial
8486 instead of target_read.
8487 (memory_xfer_live_readonly_partial): Return
8488 target_xfer_status. Add argument xfered_len.
8489 (raw_memory_xfer_partial): Likewise.
8490 (memory_xfer_partial_1): Likewise.
8491 (memory_xfer_partial): Likewise.
8492 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8493 properly. Update debug message.
8494 (default_xfer_partial, current_xfer_partial): Likewise.
8495 (target_write_partial): Likewise.
8496 (target_read_partial): Likewise. All callers updated.
8497 (read_whatever_is_readable): Likewise.
8498 (target_write_with_progress): Likewise.
8499 (target_read_alloc_1): Likewise.
8501 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8502 * auxv.c (procfs_xfer_auxv): Likewise.
8503 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8504 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8505 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8506 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8507 * corefile.c (read_memory): Adjust.
8508 * corelow.c (core_xfer_partial): Likewise.
8509 * ctf.c (ctf_xfer_partial): Likewise.
8510 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8512 (darwin_xfer_partial): Likewise.
8513 * exec.c (section_table_xfer_memory_partial): Likewise. All
8515 (exec_xfer_partial): Likewise.
8516 * exec.h (section_table_xfer_memory_partial): Update
8518 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8520 (gnu_xfer_partial): Likewise.
8521 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8522 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8523 (ia64_hpux_xfer_solib_got): Likewise.
8524 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8525 type of 'partial_len' to ULONGEST.
8526 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8527 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8528 (linux_nat_xfer_partial): Likewise.
8529 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8530 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8531 * monitor.c (monitor_xfer_memory): Likewise.
8532 (monitor_xfer_partial): Likewise.
8533 * procfs.c (procfs_xfer_partial): Likewise.
8534 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8535 * record-full.c (record_full_xfer_partial): Likewise.
8536 (record_full_core_xfer_partial): Likewise.
8537 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8538 (gdbsim_xfer_partial): Likewise.
8539 * remote.c (remote_write_bytes_aux): Likewise. All callers
8541 (remote_write_bytes, remote_read_bytes): Likewise. All
8543 (remote_flash_erase): Likewise. All callers updated.
8544 (remote_write_qxfer): Likewise. All callers updated.
8545 (remote_read_qxfer): Likewise. All callers updated.
8546 (remote_xfer_partial): Likewise.
8547 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8548 (rs6000_xfer_shared_libraries): Likewise.
8549 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8550 (sol_thread_xfer_partial): Likewise.
8551 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8552 (sparc_xfer_partial): Likewise.
8553 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8555 (spu_xfer_partial): Likewise.
8556 * spu-multiarch.c (spu_xfer_partial): Likewise.
8557 * tracepoint.c (tfile_xfer_partial): Likewise.
8558 * windows-nat.c (windows_xfer_memory): Likewise.
8559 (windows_xfer_shared_libraries): Likewise.
8560 (windows_xfer_partial): Likewise.
8561 * valprint.c: Replace 'target_xfer_error' with
8562 'target_xfer_status' in comments.
8564 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8566 Checked in by Joel Brobecker <brobecker@adacore.com>.
8567 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8569 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8571 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8572 function parameters.
8574 2014-02-10 Will Newton <will.newton@linaro.org>
8576 * elfread.c (elf_rel_plt_read): Look for a .got section if
8577 looking up .got.plt fails.
8578 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8579 on address passed to elf_gnu_ifunc_record_cache.
8580 (elf_gnu_ifunc_resolve_addr): Likewise.
8581 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8583 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8585 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8586 (X_RETTURN): New macro.
8587 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8589 * sparc64-tdep.c (sparc64_init_abi): Hook
8590 sparc_in_function_epilogue_p.
8592 2014-02-10 Gary Benson <gbenson@redhat.com>
8594 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8595 Rename name_matcher to symbol_matcher.
8597 2014-02-10 Gary Benson <gbenson@redhat.com>
8599 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8600 Use expand_symtabs_file_matcher_ftype and
8601 expand_symtabs_symbol_matcher_ftype.
8603 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8605 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8606 (struct ada_symbol_cache): New.
8607 (ada_free_symbol_cache): Forward declare.
8608 (struct ada_pspace_data): New.
8609 (ada_pspace_data_handle): New static global.
8610 (get_ada_pspace_data, ada_pspace_data_cleanup)
8611 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8612 (cache_space, cache): Delete, now folded inside struct
8614 (ada_get_symbol_cache): New function.
8615 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8617 (_initialize_ada_language): Remove initialization of cache_space.
8618 Move call to observer_attach_inferior_exit up, grouping it
8619 with the other observer registrations inside this function.
8620 Rename command to be more general. Add call to
8621 register_program_space_data_with_cleanup.
8623 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8625 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8626 ada_new_objfile_observer.
8627 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8628 (_initialize_tasks): Update uses of ada_new_objfile_observer
8629 and ada_tasks_normal_stop_observer.
8631 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8633 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8634 returned by the 'Length attribute to integer.
8636 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8638 * ada-lang.c (_initialize_ada_language): Initialize
8639 cache_space obstack.
8641 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8643 * ada-lang.c (HASH_SIZE): New macro.
8644 (struct cache_entry): New type.
8645 (cache_space, cache): New static globals.
8646 (ada_clear_symbol_cache, find_entry): New functions.
8647 (lookup_cached_symbol, cache_symbol): Implement.
8648 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8649 (_initialize_ada_language): Attach ada_new_objfile_observer
8650 and ada_free_objfile_observer.
8652 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8654 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8655 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8656 struct block * parameter.
8657 (ada_lookup_symbol_list_worker): Constify local variable "block".
8658 Remove cast which is no longer necessary.
8660 2014-02-10 Doug Evans <xdje42@gmail.com>
8662 Add Guile as an extension language.
8663 * NEWS: Mention Guile scripting.
8664 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8665 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8666 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8667 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8668 (CLIBS): Add GUILE_LIBS.
8669 (install-guile): New rule.
8670 (guile.o): New rule.
8671 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8672 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8673 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8674 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8675 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8676 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8677 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8678 * configure.ac: New option --with-guile.
8679 * configure: Regenerate.
8680 * config.in: Regenerate.
8681 * auto-load.c: Remove #include "python/python.h". Add #include
8682 "gdb/section-scripts.h".
8683 (source_section_scripts): Handle Guile scripts.
8684 (_initialize_auto_load): Add name of Guile objfile script to
8685 scripts-directory help text.
8686 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8687 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8688 (struct breakpoint): New member scm_bp_object.
8689 * defs.h (enum command_control_type): New value guile_control.
8690 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8692 (show_user): Update comment.
8693 (_initialize_cli_cmds): Update help text for "show user". Update help
8694 text for max-user-call-depth.
8695 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8697 (multi_line_command_p): Add guile_control.
8698 (print_command_lines): Handle guile_control.
8699 (execute_control_command, recurse_read_control_structure): Ditto.
8700 (process_next_line): Recognize "guile" commands.
8701 * disasm.c (gdb_disassemble_info): Make non-static.
8702 * disasm.h: #include "dis-asm.h".
8703 (struct gdbarch): Add forward decl.
8704 (gdb_disassemble_info): Declare.
8705 * extension.c: #include "guile/guile.h".
8706 (extension_languages): Add guile.
8707 (get_ext_lang_defn): Handle EXT_LANG_GDB.
8708 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
8709 * gdbtypes.c (get_unsigned_type_max): New function.
8710 (get_signed_type_minmax): New function.
8711 * gdbtypes.h (get_unsigned_type_max): Declare.
8712 (get_signed_type_minmax): Declare.
8713 * guile/README: New file.
8714 * guile/guile-internal.h: New file.
8715 * guile/guile.c: New file.
8716 * guile/guile.h: New file.
8717 * guile/scm-arch.c: New file.
8718 * guile/scm-auto-load.c: New file.
8719 * guile/scm-block.c: New file.
8720 * guile/scm-breakpoint.c: New file.
8721 * guile/scm-disasm.c: New file.
8722 * guile/scm-exception.c: New file.
8723 * guile/scm-frame.c: New file.
8724 * guile/scm-gsmob.c: New file.
8725 * guile/scm-iterator.c: New file.
8726 * guile/scm-lazy-string.c: New file.
8727 * guile/scm-math.c: New file.
8728 * guile/scm-objfile.c: New file.
8729 * guile/scm-ports.c: New file.
8730 * guile/scm-pretty-print.c: New file.
8731 * guile/scm-safe-call.c: New file.
8732 * guile/scm-string.c: New file.
8733 * guile/scm-symbol.c: New file.
8734 * guile/scm-symtab.c: New file.
8735 * guile/scm-type.c: New file.
8736 * guile/scm-utils.c: New file.
8737 * guile/scm-value.c: New file.
8738 * guile/lib/gdb.scm: New file.
8739 * guile/lib/gdb/boot.scm: New file.
8740 * guile/lib/gdb/experimental.scm: New file.
8741 * guile/lib/gdb/init.scm: New file.
8742 * guile/lib/gdb/iterator.scm: New file.
8743 * guile/lib/gdb/printing.scm: New file.
8744 * guile/lib/gdb/types.scm: New file.
8745 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
8746 (VPATH): Add $(GUILE_SRCDIR).
8747 (GUILE_DIR): New variable.
8748 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
8749 (all): Add stamp-guile dependency.
8750 (stamp-guile): New rule.
8751 (clean-guile, install-guile, uninstall-guile): New rules.
8752 (install-only): Add install-guile dependency.
8753 (uninstall): Add uninstall-guile dependency.
8754 (clean): Add clean-guile dependency.
8756 2014-02-09 Doug Evans <xdje42@gmail.com>
8758 Revert this patch (which I approved, mea culpa).
8760 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8762 * Makefile.in (all-lib): Remove.
8763 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8765 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8767 Fix Python stack corruption.
8768 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
8771 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8773 * Makefile.in (all-lib): Remove.
8774 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8776 2014-02-07 Doug Evans <dje@google.com>
8778 * extension-priv.h (extension_language_script_ops): Add comment.
8779 (extension_language_ops): Add comment.
8780 (active_ext_lang_state): Fix typo in comment.
8782 2014-02-07 Pedro Alves <palves@redhat.com>
8784 PR breakpoints/16292
8785 * infrun.c (handle_signal_stop) <signal arrives while stepping
8786 over a breakpoint>: Switch back to the stepping thread.
8788 2014-02-07 Yao Qi <yao@codesourcery.com>
8790 * target.c (target_xfer_partial): Return zero if LEN is zero.
8792 2014-02-07 Yao Qi <yao@codesourcery.com>
8794 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
8795 (ld_so_xfer_auxv): Likewise.
8796 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8797 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8798 * corelow.c (core_xfer_partial): Likewise.
8799 * ctf.c (ctf_xfer_partial): Likewise.
8800 * darwin-nat.c (darwin_read_dyld_info): Likewise.
8801 (darwin_xfer_partial): Likewise.
8802 * exec.c (exec_xfer_partial): Likewise.
8803 * gnu-nat.c (gnu_xfer_partial): Likewise.
8804 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
8805 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8806 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8807 * linux-nat.c (linux_xfer_siginfo): Likewise.
8808 (linux_proc_xfer_spu): Likewise.
8809 * procfs.c (procfs_xfer_partial): Likewise.
8810 * record-full.c (record_full_xfer_partial): Likewise.
8811 (record_full_core_xfer_partial): Likewise.
8812 * remote-sim.c (gdbsim_xfer_partial): Likewise.
8813 * remote.c (remote_write_qxfer): Likewise.
8814 (remote_write_qxfer, remote_read_qxfer): Likewise.
8815 (remote_xfer_partial): Likewise.
8816 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8817 (rs6000_xfer_shared_libraries): Likewise.
8818 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8819 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8820 (spu_xfer_partial): Likewise.
8821 * target.c (memory_xfer_partial_1): Likewise.
8822 * tracepoint.c (tfile_xfer_partial): Likewise.
8823 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
8824 (windows_xfer_partial): Likewise.
8826 2014-02-07 Yao Qi <yao@codesourcery.com>
8828 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
8830 (core_xfer_shared_libraries_aix): Likewise.
8831 * gdbarch.c, gdbarch.h: Regenerated.
8832 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
8833 ULONGEST. Change 'len_avail' type to ULONGEST.
8834 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8835 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8837 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
8839 2014-02-07 Yao Qi <yao@codesourcery.com>
8841 * corefile.c (memory_error): Get 'exception' from ERR and pass
8842 'exception' to throw_error.
8844 2014-02-06 Doug Evans <xdje42@gmail.com>
8846 * configure.ac (libpython checking): Remove all but python.o from
8847 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
8848 * configure: Regenerate.
8850 * Makefile.in (SFILES): Add extension.c.
8851 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
8852 (COMMON_OBS): Add extension.o.
8853 * extension.h: New file.
8854 * extension-priv.h: New file.
8855 * extension.c: New file.
8857 * python/python-internal.h: #include "extension.h".
8858 (gdbpy_auto_load_enabled): Declare.
8859 (gdbpy_apply_val_pretty_printer): Declare.
8860 (gdbpy_apply_frame_filter): Declare.
8861 (gdbpy_preserve_values): Declare.
8862 (gdbpy_breakpoint_cond_says_stop): Declare.
8863 (gdbpy_breakpoint_has_cond): Declare.
8864 (void source_python_script_for_objfile): Delete.
8865 * python/python.c: #include "extension-priv.h".
8866 Delete inclusion of "observer.h".
8867 (extension_language_python): Moved here and renamed from
8868 script_language_python in py-auto-load.c.
8869 Redefined to be of type extension_language_defn.
8870 (python_extension_script_ops): New global.
8871 (python_extension_ops): New global.
8872 (struct python_env): New member previous_active.
8873 (restore_python_env): Call restore_active_ext_lang.
8874 (ensure_python_env): Call set_active_ext_lang.
8875 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
8877 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
8879 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
8881 (gdbpy_eval_from_control_command): Renamed from
8882 eval_python_from_control_command, made static. New arg extlang.
8883 (gdbpy_source_script) Renamed from source_python_script, made static.
8885 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
8886 result to int. New arg extlang.
8887 (gdbpy_source_objfile_script): Renamed from
8888 source_python_script_for_objfile, made static. New arg extlang.
8889 (gdbpy_start_type_printers): Renamed from start_type_printers, made
8890 static. New args extlang, extlang_printers. Change result type to
8892 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
8893 static. New arg extlang. Rename arg printers to extlang_printers
8894 and change type to ext_lang_type_printers *.
8895 (gdbpy_free_type_printers): Renamed from free_type_printers, made
8896 static. Replace argument arg with extlang, extlang_printers.
8897 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
8898 (!HAVE_PYTHON, source_python_script): Delete.
8899 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
8900 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
8901 (!HAVE_PYTHON, start_type_printers): Delete.
8902 (!HAVE_PYTHON, apply_type_printers): Delete.
8903 (!HAVE_PYTHON, free_type_printers): Delete.
8904 (_initialize_python): Delete call to observer_attach_before_prompt.
8905 (finalize_python): Set/restore active extension language.
8906 (gdbpy_finish_initialization) Renamed from
8907 finish_python_initialization, made static. New arg extlang.
8908 (gdbpy_initialized): New function.
8909 * python/python.h: #include "extension.h". Delete #include
8910 "value.h", "mi/mi-cmds.h".
8911 (extension_language_python): Declare.
8912 (GDBPY_AUTO_FILE_NAME): Delete.
8913 (enum py_bt_status): Moved to extension.h and renamed to
8915 (enum frame_filter_flags): Moved to extension.h.
8916 (enum py_frame_args): Moved to extension.h and renamed to
8917 ext_lang_frame_args.
8918 (finish_python_initialization): Delete.
8919 (eval_python_from_control_command): Delete.
8920 (source_python_script): Delete.
8921 (apply_val_pretty_printer): Delete.
8922 (apply_frame_filter): Delete.
8923 (preserve_python_values): Delete.
8924 (gdbpy_script_language_defn): Delete.
8925 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
8926 (start_type_printers, apply_type_printers, free_type_printers): Delete.
8928 * auto-load.c: #include "extension.h".
8929 (GDB_AUTO_FILE_NAME): Delete.
8930 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
8931 (script_language_gdb): Delete, moved to extension.c and renamed to
8932 extension_language_gdb.
8933 (source_gdb_script_for_objfile): Delete.
8934 (auto_load_pspace_info): New member unsupported_script_warning_printed.
8935 (loaded_script): Change type of language member to
8936 struct extension_language_defn *.
8937 (init_loaded_scripts_info): Initialize
8938 unsupported_script_warning_printed.
8939 (maybe_add_script): Make static. Change type of language arg to
8940 struct extension_language_defn *.
8941 (clear_section_scripts): Reset unsupported_script_warning_printed.
8942 (auto_load_objfile_script_1): Rewrite to use extension language API.
8943 (auto_load_objfile_script): Make public. Remove support-compiled-in
8944 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
8945 (source_section_scripts): Rewrite to use extension language API.
8946 (load_auto_scripts_for_objfile): Rewrite to use
8947 auto_load_scripts_for_objfile.
8948 (collect_matching_scripts_data): Change type of language member to
8949 struct extension_language_defn *.
8950 (auto_load_info_scripts): Change type of language arg to
8951 struct extension_language_defn *.
8952 (unsupported_script_warning_print): New function.
8953 (script_not_found_warning_print): Make static.
8954 (_initialize_auto_load): Rewrite construction of scripts-directory
8956 * auto-load.h (struct objfile): Add forward decl.
8957 (struct script_language): Delete.
8958 (struct auto_load_pspace_info): Add forward decl.
8959 (struct extension_language_defn): Add forward decl.
8960 (maybe_add_script): Delete.
8961 (auto_load_objfile_script): Declare.
8962 (script_not_found_warning_print): Delete.
8963 (auto_load_info_scripts): Update prototype.
8964 (auto_load_gdb_scripts_enabled): Declare.
8965 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
8966 auto_load_python_scripts_enabled and made public.
8967 (script_language_python): Delete, moved to python.c.
8968 (gdbpy_script_language_defn): Delete.
8969 (info_auto_load_python_scripts): Update to use
8970 extension_language_python.
8972 * breakpoint.c (condition_command): Replace call to
8973 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
8974 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
8975 with call to breakpoint_ext_lang_cond_says_stop.
8976 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
8977 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
8978 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
8979 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
8981 (local_setattro): Print name of extension language with existing
8984 * valprint.c (val_print, value_print): Update to call
8985 apply_ext_lang_val_pretty_printer.
8986 * cp-valprint.c (cp_print_value): Update call to
8987 apply_ext_lang_val_pretty_printer.
8988 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
8989 (gdbpy_apply_val_pretty_printer): Renamed from
8990 apply_val_pretty_printer. New arg extlang.
8991 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
8993 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
8994 extension language API.
8995 * cli/cli-script.c (execute_control_command): Update to call
8996 eval_ext_lang_from_control_command.
8998 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
8999 enum ext_lang_bt_status values. Update call to
9000 apply_ext_lang_frame_filter.
9001 (mi_cmd_stack_list_locals): Ditto.
9002 (mi_cmd_stack_list_args): Ditto.
9003 (mi_cmd_stack_list_variables): Ditto.
9004 * mi/mi-main.c: Delete #include "python/python-internal.h".
9005 Add #include "extension.h".
9006 (mi_cmd_list_features): Replace reference to python internal variable
9007 gdb_python_initialized with call to ext_lang_initialized_p.
9009 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
9010 Update to use enum ext_lang_frame_args. Update to call
9011 apply_ext_lang_frame_filter.
9012 * python/py-framefilter.c (extract_sym): Update to use enum
9014 (extract_value, py_print_type, py_print_value): Ditto.
9015 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
9016 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
9017 (py_print_frame): Ditto.
9018 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
9019 New arg extlang. Update to use enum ext_lang_bt_status.
9021 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
9022 finish_python_initialization. Replace with call to
9023 finish_ext_lang_initialization.
9025 * typeprint.c (do_free_global_table): Update to call
9026 free_ext_lang_type_printers.
9027 (create_global_typedef_table): Update to call
9028 start_ext_lang_type_printers.
9029 (find_global_typedef): Update to call apply_ext_lang_type_printers.
9030 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
9031 (type_print_options): Change type of global_printers from "void *"
9032 to "struct ext_lang_type_printers *".
9034 * value.c (preserve_values): Update to call preserve_ext_lang_values.
9035 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
9036 (gdbpy_preserve_values): Renamed from preserve_python_values.
9038 (!HAVE_PYTHON, preserve_python_values): Delete.
9040 * utils.c (quit_flag): Delete, moved to extension.c.
9041 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
9044 * eval.c: Delete #include "python/python.h".
9045 * main.c: Delete #include "python/python.h".
9047 * defs.h: Update comment.
9049 2014-02-06 Joel Brobecker <brobecker@adacore.com>
9053 2014-02-05 Mark Kettenis <kettenis@gnu.org>
9055 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
9058 2014-02-05 Yao Qi <yao@codesourcery.com>
9060 * remote.c (remote_pass_signals): Remove local 'buf' and use
9062 (remote_program_signals): Likewise.
9064 2014-02-05 Yao Qi <yao@codesourcery.com>
9066 * ctf.c: Include "inferior.h" and "gdbthread.h".
9067 (CTF_PID): A new macro.
9068 (ctf_open): Call inferior_appeared and add_thread_silent.
9069 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
9070 (ctf_thread_alive): New function.
9071 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
9073 2014-02-05 Yao Qi <yao@codesourcery.com>
9077 2013-05-24 Yao Qi <yao@codesourcery.com>
9079 * tracepoint.c (TFILE_PID): Remove.
9080 (tfile_open): Don't add thread and inferior.
9081 (tfile_close): Don't set 'inferior_ptid'. Don't call
9082 exit_inferior_silent.
9083 (tfile_thread_alive): Remove.
9084 (init_tfile_ops): Don't set field 'to_thread_alive' of
9087 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
9089 * remote.c (remote_start_remote): Call remote_check_symbols even
9090 if only symbol-file (not file) has been given.
9092 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9094 * gdbarch.sh (skip_entrypoint): New callback.
9095 * gdbarch.c, gdbarch.h: Regenerate.
9096 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
9097 * infrun.c (fill_in_stop_func): Likewise.
9098 * ppc-linux-tdep.c: Include "elf/ppc64.h".
9099 (ppc_elfv2_elf_make_msymbol_special): New function.
9100 (ppc_elfv2_skip_entrypoint): Likewise.
9101 (ppc_linux_init_abi): Install them for ELFv2.
9103 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9105 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
9106 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
9107 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
9108 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
9109 structures returned in GPRs.
9111 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9113 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
9114 offset to the stack parameter list for the ELFv2 ABI.
9116 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9118 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
9119 set_gdbarch_convert_from_func_ptr_addr and
9120 set_gdbarch_elf_make_msymbol_special for ELFv1.
9121 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
9122 function descriptors on ELFv1.
9123 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
9124 set up r12 at function entry.
9126 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9128 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
9129 (struct gdbarch_tdep): New member elf_abi.
9131 * rs6000-tdep.c: Include "elf/ppc64.h".
9132 (rs6000_gdbarch_init): Detect ELF ABI version.
9134 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9136 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
9137 within a register pair holding a DFP 128-bit value on little-endian.
9138 (ppc64_sysv_abi_return_value_base): Likewise.
9139 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
9140 (dfp_pseudo_register_write): Likewise.
9142 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9144 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
9145 offset on little-endian when passing _Decimal32.
9146 (ppc64_sysv_abi_return_value_base): Likewise for return values.
9148 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9150 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
9151 of the overlapped FP register within the VSX register on little-
9153 (efpr_pseudo_register_write): Likewise.
9155 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9157 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
9158 offset on little-endian when passing small structures.
9160 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9162 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
9163 (struct ppc64_sysv_argpos): New data structure.
9164 (ppc64_sysv_abi_push_float): Remove.
9165 (ppc64_sysv_abi_push_val): New function.
9166 (ppc64_sysv_abi_push_integer): Likewise.
9167 (ppc64_sysv_abi_push_freg): Likewise.
9168 (ppc64_sysv_abi_push_vreg): Likewise.
9169 (ppc64_sysv_abi_push_param): Likewise.
9170 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
9171 (ppc64_sysv_abi_return_value_base): New function.
9172 (ppc64_sysv_abi_return_value): Refactor to use it.
9174 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9176 * NEWS: Document new target powerpc64le-*-linux*.
9178 2014-02-04 Mark Kettenis <kettenis@gnu.org>
9180 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
9181 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
9183 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
9184 register set used in ELF core dumps. Add floating-point register set.
9186 2014-02-03 Kevin Buettner <kevinb@redhat.com>
9188 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
9189 dwarf2_to_gdb[] table using symbolic constants. Adjust
9190 penultimate entry from number representing the PC register
9191 to symbolic constant representing the MDR register. Add
9192 constant for the PC register to the end of the table.
9194 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9196 * bsd-kvm.c: Include <sys/param.h>
9198 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9200 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
9202 2014-01-31 Joel Brobecker <brobecker@adacore.com>
9204 * ada-lang.h (clear_ada_sym_cache): Delete.
9206 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
9208 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
9210 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
9212 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
9213 the sigreturn register save area only if the syscall is
9216 2014-01-29 Joel Brobecker <brobecker@adacore.com>
9218 * valops.c (value_slice): Minor reformatting.
9220 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
9222 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
9224 2014-01-28 Joel Brobecker <brobecker@adacore.com>
9226 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
9228 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
9229 (ada_ignore_descriptive_types_p): New static global.
9230 (find_parallel_type_by_descriptive_type): Return immediately
9231 if ada_ignore_descriptive_types_p is set.
9232 (_initialize_ada_language): Register new commands "maintenance
9233 set ada", "maintenance show ada", "maintenance set ada
9234 ignore-descriptive-types" and "maintenance show ada
9235 ignore-descriptive-types".
9236 * NEWS: Add entry for new "maint ada set/show
9237 ignore-descriptive-types" commands.
9239 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
9241 * record-btrace.c (record_btrace_close): Call btrace_teardown
9244 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9246 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
9249 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9251 * ada-typeprint (type_is_full_subrange_of_target_type):
9253 (print_range): Add parameter bounds_prefered_p. If not set,
9254 try printing range types using the name of their base type.
9255 (print_range_type): Add parameter bounds_prefered_p.
9256 Use it in call to print_range.
9257 (print_array_type, ada_print_type): Update calls to print_range
9258 and print_range_type.
9260 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9262 * ada-typeprint.c (print_array_type, print_choices, print_range)
9263 (print_range_bound, print_dynamic_range_bound, print_range_type):
9266 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9268 * ada-typeprint.c (print_range): Add missing empty line
9269 after local declaration.
9271 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9273 * ada-valprint.c (print_optional_low_bound): Get index_type's
9274 target type for as long as it is a TYPE_CODE_RANGE.
9276 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9278 * procfs.c (procfs_make_note_section): Remove assertion and
9281 2014-01-24 Yao Qi <yao@codesourcery.com>
9283 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9284 * corelow.c (get_core_siginfo): Likewise.
9286 2014-01-24 Yao Qi <yao@codesourcery.com>
9288 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9289 ULONGEST. Don't check 'len' is negative.
9290 (remote_write_bytes): Change type of 'len' to ULONGEST.
9292 2014-01-23 Tom Tromey <tromey@redhat.com>
9295 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9296 Handle exception from frame.block.
9297 (FrameVars.fetch_frame_locals): Likewise.
9299 2014-01-23 Tom Tromey <tromey@redhat.com>
9302 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9303 on a NULL pointer. Move "goto error" to correct place.
9305 2014-01-23 Tom Tromey <tromey@redhat.com>
9308 * python/py-framefilter.c (apply_frame_filter): Call
9309 ensure_python_env after computing gdbarch.
9311 2014-01-23 Yao Qi <yao@codesourcery.com>
9313 * target.c (raw_memory_xfer_partial): Change argument type
9314 from void * to gdb_byte *.
9315 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9317 2014-01-22 Doug Evans <dje@google.com>
9319 New gdbserver option --debug-format=timestamp.
9322 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9324 * syscalls/s390x-linux.xml: New file.
9325 * syscalls/s390-linux.xml: New file.
9326 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9327 (XML_SYSCALL_FILENAME_S390X): Likewise.
9328 (op_svc): New enum value for SVC opcode.
9329 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9330 (s390_linux_get_syscall_number): New function.
9331 (s390_gdbarch_init): Register '*get_syscall_number' and the
9332 syscall xml file name.
9333 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9334 "s390-linux.xml" and "s390x-linux.xml".
9335 * NEWS: Announce new feature.
9337 2014-01-22 Baruch Siach <baruch@tkos.co.il>
9339 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9341 2014-01-22 Pedro Alves <palves@redhat.com>
9343 * xtensa-config.c: Include defs.h.
9345 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9347 * common/common-utils.h: Add "ARI:" comment beside __func__
9350 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9352 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9353 documentation a bit.
9355 2014-01-21 Roland McGrath <mcgrathr@google.com>
9357 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9358 * configure: Regenerate.
9359 * aclocal.m4: Regenerate.
9360 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9361 New substituted variables.
9362 (install-strip): New target.
9363 (INSTALL_SCRIPT): New substituted variable.
9364 (FLAGS_TO_PASS): Add it.
9365 (install-only): Use $(INSTALL_SCRIPT) rather than
9366 $(INSTALL_PROGRAM) for gcore.
9368 2014-01-20 Tom Tromey <tromey@redhat.com>
9370 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9373 2014-01-20 Tom Tromey <tromey@redhat.com>
9375 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9376 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9377 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9378 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9379 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9380 (struct cmd_list_element) <flags>: Remove.
9381 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9382 doc_allocated>: New fields.
9383 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9385 * maint.c (maintenance_do_deprecate): Update.
9386 * top.c (execute_command): Update.
9388 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9390 * xtensa-linux-nat.c: Include asm/ptrace.h.
9392 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9394 * Makefile.in (SFILES): Add d-support.c.
9395 (COMMON_OBS): Add d-support.o.
9396 * d-lang.h (d_parse_symbol): Add comment, now defined in
9398 * d-lang.c (parse_call_convention)
9399 (parse_attributes, parse_function_types)
9400 (parse_function_args, parse_type, parse_identifier)
9401 (call_convention_p, d_parse_symbol): Move functions to ...
9402 * d-support.c: ... New file.
9404 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9406 * d-lang.h (d_parse_symbol): Add declaration.
9407 * d-lang.c (extract_identifiers)
9408 (extract_type_info): Remove functions.
9409 (parse_call_convention, parse_attributes)
9410 (parse_function_types, parse_function_args)
9411 (parse_type, parse_identifier, call_convention_p)
9412 (d_parse_symbol): New functions.
9413 (d_demangle): Use d_parse_symbol to demangle D symbols.
9415 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9417 * d-lang.h (struct builtin_d_type): New data type.
9418 (builtin_d_type): Add declaration.
9419 * d-lang.c (d_language_arch_info, build_d_types)
9420 (builtin_d_type): New functions.
9421 (enum d_primitive_types): New data type.
9422 (d_language_defn): Change c_language_arch_info to
9423 d_language_arch_info.
9424 (d_type_data): New static variable.
9425 (_initialize_d_language): Initialize d_type_data.
9427 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9429 * d-lang.h (d_main_name): Add declaration.
9430 * d-lang.c (d_main_name): New function.
9431 * symtab.c (find_main_name): Add call to d_main_name.
9433 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9435 * d-lang.c (d_language_defn): Change macro_expansion_c to
9438 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9440 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9442 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9444 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9445 gdb_exception" declaration.
9446 * remote.c (getpkt_or_notif_sane): Likewise.
9448 2014-01-17 Doug Evans <dje@google.com>
9450 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9451 function, contents of dirnames_to_char_ptr_vec_append moved here.
9452 (delim_string_to_char_ptr_vec): New function.
9453 (dirnames_to_char_ptr_vec_append): Rewrite.
9454 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9456 2014-01-17 Doug Evans <dje@google.com>
9458 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9460 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9461 #include "common-utils.h".
9462 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9463 * common/vec.h (VEC_ASSERT_PASS): Update.
9464 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9465 (MACH_CHECK_ERROR): Update.
9467 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9469 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9471 * gdbarch.h: Regenerate.
9473 2014-01-16 Tom Tromey <tromey@redhat.com>
9475 * value.c (struct value) <regnum>: Move earlier.
9477 2014-01-16 Tom Tromey <tromey@redhat.com>
9479 * remote.c (extended_remote_create_inferior): Rename from
9480 extended_remote_create_inferior_1. Add "ops" argument. Remove
9483 2014-01-16 Pedro Alves <palves@redhat.com>
9485 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9486 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9489 2014-01-16 Doug Evans <dje@google.com>
9491 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9493 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9495 * btrace.h (btrace_thread_flag): New.
9496 (struct btrace_thread_info) <flags>: New.
9497 * record-btrace.c (record_btrace_resume_thread)
9498 (record_btrace_find_thread_to_move, btrace_step_no_history)
9499 (btrace_step_stopped, record_btrace_start_replaying)
9500 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9501 (record_btrace_find_resume_thread): New.
9502 (record_btrace_resume, record_btrace_wait): Extend.
9503 (record_btrace_can_execute_reverse): New.
9504 (record_btrace_open): Fail in non-stop mode.
9505 (record_btrace_set_replay): Split into this, ...
9506 (record_btrace_stop_replaying): ... this, ...
9507 (record_btrace_clear_histories): ... and this.
9508 (init_record_btrace_ops): Init to_can_execute_reverse.
9509 * NEWS: Announce it.
9511 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9513 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9514 (forward_target_decr_pc_after_break)
9515 (target_decr_pc_after_break): New.
9516 * target.c (forward_target_decr_pc_after_break)
9517 (target_decr_pc_after_break): New.
9518 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9519 instead of gdbarch_decr_pc_after_break.
9520 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9521 instead of gdbarch_decr_pc_after_break.
9522 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9523 instead of gdbarch_decr_pc_after_break.
9524 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9525 instead of gdbarch_decr_pc_after_break.
9526 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9527 instead of gdbarch_decr_pc_after_break.
9528 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9529 instead of gdbarch_decr_pc_after_break.
9531 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9533 * btrace.c: Include regcache.h.
9534 (btrace_add_pc): New.
9535 (btrace_enable): Call btrace_add_pc.
9536 (btrace_is_empty): New.
9537 * btrace.h (btrace_is_empty): New.
9538 * record-btrace.c (require_btrace, record_btrace_info): Call
9541 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9543 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9544 Support delta reads.
9545 (linux_disable_btrace): Change return type.
9546 * common/linux-btrace.h (linux_read_btrace): Change parameters
9547 and return type to allow error reporting. Update users.
9548 (linux_disable_btrace): Change return type. Update users.
9549 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9551 (btrace_error): New.
9552 (btrace_block) <begin>: Comment on BEGIN == 0.
9553 * btrace.c (btrace_compute_ftrace): Start from the end of
9555 (btrace_stitch_trace, btrace_clear_history): New.
9556 (btrace_fetch): Read delta trace, return if replaying.
9557 (btrace_clear): Move clear history code to btrace_clear_history.
9558 (parse_xml_btrace): Throw an error if parsing failed.
9559 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9560 and return type to allow error reporting.
9561 (target_read_btrace): Change parameters and return type to allow
9563 * target.c (target_read_btrace): Update.
9564 * remote.c (remote_read_btrace): Support delta reads. Pass
9566 * NEWS: Announce it.
9568 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9570 * record.h (record_btrace_frame_unwind)
9571 (record_btrace_tailcall_frame_unwind): New declarations.
9572 * dwarf2-frame: Include record.h
9573 (dwarf2_frame_cfa): Throw an error for btrace frames.
9574 * record-btrace.c: Include hashtab.h.
9575 (btrace_get_bfun_name): New.
9576 (btrace_call_history): Call btrace_get_bfun_name.
9577 (struct btrace_frame_cache): New.
9579 (bfcache_hash, bfcache_eq, bfcache_new): New.
9580 (btrace_get_frame_function): New.
9581 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9582 (record_btrace_frame_this_id): Compute own id.
9583 (record_btrace_frame_prev_register): Provide PC, throw_error
9584 for all other registers.
9585 (record_btrace_frame_sniffer): Detect btrace frames.
9586 (record_btrace_tailcall_frame_sniffer): New.
9587 (record_btrace_frame_dealloc_cache): New.
9588 (record_btrace_frame_unwind): Add new functions.
9589 (record_btrace_tailcall_frame_unwind): New.
9590 (_initialize_record_btrace): Allocate cache.
9591 * btrace.c (btrace_clear): Call reinit_frame_cache.
9592 * NEWS: Announce it.
9594 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9596 * record-btrace.c (record_btrace_set_replay)
9597 (record_btrace_goto_begin, record_btrace_goto_end)
9598 (record_btrace_goto): New.
9599 (init_record_btrace_ops): Initialize them.
9600 * NEWS: Announce it.
9602 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9604 * record-btrace.c (record_btrace_find_new_threads)
9605 (record_btrace_thread_alive): New.
9606 (init_record_btrace_ops): Initialize to_find_new_threads and
9609 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9611 * record-btrace.c (record_btrace_resume): New.
9612 (record_btrace_wait): New.
9613 (init_record_btrace_ops): Initialize to_wait and to_resume.
9615 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9617 * record-btrace.c (record_btrace_xfer_partial)
9618 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9619 (record_btrace_allow_memory_access): New.
9620 (init_record_btrace_ops): Initialize new methods.
9621 * target.c (raw_memory_xfer_partial): Bail out if target reports
9622 that this memory is not available.
9624 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9626 * target.h (target_ops) <to_insert_breakpoint>
9627 <to_remove_breakpoint>: Add target_ops parameter.
9628 (forward_target_insert_breakpoint): New.
9629 (forward_target_remove_breakpoint): New.
9630 (memory_remove_breakpoint, memory_insert_breakpoint):
9631 Add target_ops parameter.
9632 * target.c (target_insert_breakpoint): Split into this and ...
9633 (forward_target_insert_breakpoint): ... this.
9634 (target_remove_breakpoint): Split into this and ...
9635 (forward_target_remove_breakpoint): ... this.
9636 (debug_to_insert_breakpoint): Add target_ops parameter.
9637 Call forward_target_insert_breakpoint.
9638 (debug_to_remove_breakpoint): Add target_ops parameter.
9639 Call forward_target_remove_breakpoint.
9640 (update_current_target): Do not inherit or default to_insert_breakpoint
9641 and to_remove_breakpoint.
9642 * corelow.c (ignore): Add target_ops parameter.
9643 * exec.c (ignore): Add target_ops parameter.
9644 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9645 Add target_ops parameter.
9646 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9647 Add target_ops parameter.
9648 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9649 Add target_ops parameter.
9650 * record-full.c (record_full_beneath_to_insert_breakpoint)
9651 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9652 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9653 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9654 (record_full_core_remove_breakpoint): Add target_ops parameter.
9656 (record_full_beneath_to_insert_breakpoint_ops)
9657 (record_full_beneath_to_remove_breakpoint_ops)
9658 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9659 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9660 tmp_to_remove_breakpoint_ops,
9661 record_full_beneath_to_insert_breakpoint_ops, and
9662 record_full_beneath_to_remove_breakpoint_ops.
9663 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9664 (m32r_remove_breakpoint): Add target_ops parameter.
9665 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9666 Add target_ops parameter.
9667 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9668 Add target_ops parameter.
9670 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9671 Markus Metzger <markus.t.metzger@intel.com>
9673 * record-btrace.c: Include frame-unwind.h.
9674 (record_btrace_frame_unwind_stop_reason)
9675 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9676 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9678 (init_record_btrace_ops): Install it.
9680 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9682 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9685 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9687 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9690 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9692 * frame-unwind.c: Include target.h.
9693 (frame_unwind_try_unwinder): New function with code from ...
9694 (frame_unwind_find_by_frame): ... here. New variable
9695 unwinder_from_target, call also target_get_unwinder)
9696 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9697 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9698 * target.h (struct target_ops): New fields to_get_unwinder and
9699 to_get_tailcall_unwinder.
9700 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9702 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9704 * record-btrace.c (record_btrace_fetch_registers)
9705 (record_btrace_store_registers)
9706 (record_btrace_to_prepare_to_store): New.
9707 (init_record_btrace_ops): Add the above.
9709 2014-01-16 Tom Tromey <tromey@redhat.com>
9711 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
9712 * target.h (struct target_ops) <to_prepare_to_store>: Add
9714 (target_prepare_to_store): Add argument.
9715 * target.c (debug_to_prepare_to_store): Add argument.
9716 (update_current_target): Update.
9717 * remote.c (remote_prepare_to_store): Add 'self' argument.
9718 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
9719 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
9720 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
9721 * record-full.c (record_full_core_prepare_to_store): Add 'self'
9723 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
9724 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
9725 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
9726 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
9727 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
9729 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9731 * btrace.h (replay) <replay>: New.
9732 (btrace_is_replaying): New.
9733 * btrace.c (btrace_clear): Free replay iterator.
9734 (btrace_is_replaying): New.
9735 * record-btrace.c (record_btrace_is_replaying): New.
9736 (record_btrace_info): Print insn number if replaying.
9737 (record_btrace_insn_history): Start at replay position.
9738 (record_btrace_call_history): Start at replay position.
9739 (init_record_btrace_ops): Init to_record_is_replaying.
9741 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9743 * record-btrace.c (record_btrace_insn_history_range): Include
9745 (record_btrace_insn_history_from): Adjust range.
9746 (record_btrace_call_history_range): Include
9748 (record_btrace_call_history_from): Adjust range.
9749 * NEWS: Announce changes.
9751 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9753 * record.h (enum record_print_flag)
9754 <record_print_indent_calls>: New.
9755 * record.c (get_call_history_modifiers): Recognize /c modifier.
9756 (_initialize_record): Document /c modifier.
9757 * record-btrace.c (btrace_call_history): Add btinfo parameter.
9758 Reorder fields. Optionally indent the function name. Update
9760 * NEWS: Announce changes.
9762 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9764 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
9766 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9768 * btrace.c (ftrace_new_function): Start counting at one.
9769 * record-btrace.c (record_btrace_info): Adjust number of calls
9771 * NEWS: Announce it.
9773 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9775 * record-btrace.c (btrace_call_history_insn_range): Print
9776 insn range as [begin, end].
9778 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9780 * btrace.h (struct btrace_func_link): New.
9781 (enum btrace_function_flag): New.
9782 (struct btrace_inst): Rename to ...
9783 (struct btrace_insn): ...this. Update all users.
9784 (struct btrace_func) <ibegin, iend>: Remove.
9785 (struct btrace_func_link): New.
9786 (struct btrace_func): Rename to ...
9787 (struct btrace_function): ...this. Update all users.
9788 (struct btrace_function) <segment, flow, up, insn, insn_offset)
9789 (number, level, flags>: New.
9790 (struct btrace_insn_iterator): Rename to ...
9791 (struct btrace_insn_history): ...this.
9793 (struct btrace_insn_iterator, btrace_call_iterator): New.
9794 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
9795 (struct btrace_target_info) <begin, end, level>
9796 <insn_history, call_history>: New.
9797 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9798 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9799 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9800 (btrace_call_number, btrace_call_begin, btrace_call_end)
9801 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9802 (btrace_find_function_by_number, btrace_set_insn_history)
9803 (btrace_set_call_history): New.
9804 * btrace.c (btrace_init_insn_iterator)
9805 (btrace_init_func_iterator, compute_itrace): Remove.
9806 (ftrace_print_function_name, ftrace_print_filename)
9807 (ftrace_skip_file): Change
9809 (ftrace_init_func): Remove.
9810 (ftrace_debug): Use new btrace_function fields.
9811 (ftrace_function_switched): Also consider gaining and
9812 losing symbol information).
9813 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
9814 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
9815 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
9817 (ftrace_new_function): Move. Remove debug print.
9818 (ftrace_update_lines, ftrace_update_insns): New.
9819 (ftrace_update_function): Check for call, ret, and jump.
9820 (compute_ftrace): Renamed to ...
9821 (btrace_compute_ftrace): ...this. Rewritten to compute call
9823 (btrace_fetch, btrace_clear): Updated.
9824 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9825 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9826 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9827 (btrace_call_number, btrace_call_begin, btrace_call_end)
9828 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9829 (btrace_find_function_by_number, btrace_set_insn_history)
9830 (btrace_set_call_history): New.
9831 * record-btrace.c (require_btrace): Use new btrace thread
9833 (record_btrace_info, btrace_insn_history)
9834 (record_btrace_insn_history, record_btrace_insn_history_range):
9835 Use new btrace thread info fields and new iterator.
9836 (btrace_func_history_src_line): Rename to ...
9837 (btrace_call_history_src_line): ...this. Use new btrace
9839 (btrace_func_history): Rename to ...
9840 (btrace_call_history): ...this. Use new btrace thread info
9841 fields and new iterator.
9842 (record_btrace_call_history, record_btrace_call_history_range):
9843 Use new btrace thread info fields and new iterator.
9845 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9847 * frame.h (frame_id_build_unavailable_stack_special): New.
9848 * frame.c (frame_id_build_unavailable_stack_special): New.
9850 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9852 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
9853 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
9854 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
9856 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
9857 (i386_insn_is_jump, i386_jmp_p): New.
9858 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
9859 insn_is_jump to gdbarch.
9860 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
9861 * gdbarch.h: Regenerated.
9862 * gdbarch.c: Regenerated.
9863 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
9864 (default_insn_is_jump): New.
9865 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
9866 (default_insn_is_jump): New.
9868 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9870 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
9872 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
9873 (btrace_read_type) <btrace_read_new>: Change to ...
9874 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
9876 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9878 * common/linux-btrace.c (linux_read_btrace): Free trace from
9881 2014-01-15 Doug Evans <dje@google.com>
9883 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
9886 2014-01-15 Tom Tromey <tromey@redhat.com>
9888 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
9889 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
9890 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
9891 (set_objfile_main_name): New function.
9892 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
9893 language_of_main>: New fields.
9894 (set_objfile_main_name): Declare.
9895 * symtab.c (find_main_name): Loop over objfiles to find the main
9897 (set_main_name): Now static.
9898 (get_main_info): Add comment.
9899 * symtab.h (set_main_name): Don't declare.
9901 2014-01-15 Tom Tromey <tromey@redhat.com>
9903 * symtab.c (main_progspace_key): New global.
9904 (struct main_info): New.
9905 (name_of_main, language_of_main): Remove.
9906 (get_main_info, main_info_cleanup): New function.
9907 (set_main_name, main_name, main_language): Use get_main_info.
9908 (_initialize_symtab): Initialize main_progspace_key.
9910 2014-01-15 Tom Tromey <tromey@redhat.com>
9912 * dbxread.c (process_one_symbol): Update.
9913 * dwarf2read.c (read_partial_die): Update.
9914 * symfile.c (set_initial_language): Call main_language.
9915 * symtab.c (language_of_main): Now static.
9916 (set_main_name): Add 'lang' parameter.
9917 (find_main_name): Update.
9918 (main_language): New function.
9919 (symtab_observer_executable_changed): Update.
9920 * symtab.h (set_main_name): Update.
9921 (language_of_main): Remove.
9922 (main_language): Declare.
9924 2014-01-15 Tom Tromey <tromey@redhat.com>
9926 * symfile.c (init_entry_point_info): Use new "initialized" field.
9928 * objfiles.h (struct entry_point) <initialized>: New field.
9929 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
9930 (struct objfile) <ei>: ...here. Remove.
9931 * objfiles.c (entry_point_address_query): Update.
9933 2014-01-15 Tom Tromey <tromey@redhat.com>
9935 * objfiles.c (entry_point_address_query): Relocate entry point
9937 (objfile_relocate1): Do not relocate entry point address.
9938 * objfiles.h (struct entry_info) <entry_point>: Update comment.
9939 <the_bfd_section_index>: New field.
9940 * symfile.c (init_entry_point_info): Find the entry point's
9943 2014-01-15 Tom Tromey <tromey@redhat.com>
9945 * solib-frv.c (enable_break): Use entry_point_address_query.
9947 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9949 * NEWS: Add note on improved process record-replay on
9950 arm*-linux* targets.
9952 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9954 * arm-tdep.c (enum arm_record_result): New enum.
9955 (arm_record_unsupported_insn): New function.
9956 (arm_record_coproc_data_proc): Removed.
9957 (thumb2_record_ld_st_multiple): New function.
9958 (thumb2_record_ld_st_dual_ex_tbb): New function.
9959 (thumb2_record_data_proc_sreg_mimm): New function.
9960 (thumb2_record_ps_dest_generic): New function.
9961 (thumb2_record_branch_misc_cntrl): New function.
9962 (thumb2_record_str_single_data): New function.
9963 (thumb2_record_ld_mem_hints): New function.
9964 (thumb2_record_ld_word): New function.
9965 (thumb2_record_lmul_lmla_div): New function.
9966 (thumb2_record_decode_insn_handler): New function.
9967 (decode_insn): Add thumb32 instruction handlers.
9969 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9971 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
9972 (struct arm_linux_record_tdep): Declare.
9973 (arm_canonicalize_syscall): New function.
9974 (arm_all_but_pc_registers_record): New function.
9975 (arm_linux_syscall_record): New function.
9976 (arm_linux_init_abi): Add syscall recording constructs.
9977 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
9978 decoding. (arm_record_coproc_data_proc): Update arm syscall
9980 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
9981 <arm_syscall_record>: New field.
9982 * configure.tgt (arm*-*-linux*): Add linux-record.o to
9985 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9987 * arm-tdep.c (thumb_record_misc): Update to use sp as base
9988 register for push instruction recording.
9990 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9992 * arm-tdep.c (thumb_record_misc): Update to correct logical
9993 error while recording ldm, ldmia and pop instructions.
9995 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9997 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
9999 2014-01-15 Pedro Alves <palves@redhat.com>
10001 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
10002 (go32_resume, go32_fetch_registers, store_register)
10003 (go32_store_registers, go32_prepare_to_store)
10004 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
10005 (go32_create_inferior, go32_can_run, go32_terminal_init)
10006 (go32_terminal_inferior, go32_terminal_ours): Delete forward
10009 2014-01-15 Tom Tromey <tromey@redhat.com>
10011 * target.h (async_callback_ftype): New typedef.
10012 (struct target_ops) <to_async>: Use it.
10014 2014-01-15 Joel Brobecker <brobecker@adacore.com>
10016 * python/py-value.c (get_field_type): Remove unnecessary curly
10017 braces for single-statement if block.
10019 2014-01-15 Joel Brobecker <brobecker@adacore.com>
10021 * python/py-type.c (convert_field): Add missing empty line
10022 after declarations.
10024 2014-01-14 Doug Evans <dje@google.com>
10026 * symfile.h (expand_symtabs_matching): Renamed from
10027 expand_partial_symbol_names. Update prototype.
10028 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10029 * symfile.c (expand_symtabs_matching): Renamed from
10030 expand_partial_symbol_names. New args file_matcher, kind.
10031 Rename arg fun to symbol_matcher.
10032 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10033 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
10034 ada_expand_partial_symbol_name.
10035 (ada_make_symbol_completion_list): Update to call
10036 expand_symtabs_matching.
10037 (ada_add_global_exceptions): Call expand_symtabs_matching.
10038 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
10039 call map_symbol_filenames.
10040 * symtab.c (sources_info): Update to call map_symbol_filenames.
10041 (search_symbols): Call expand_symtabs_matching.
10042 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
10043 (default_make_symbol_completion_list_break_on): Update to call
10044 expand_symtabs_matching.
10045 (make_source_files_completion_list): Update to call
10046 map_symbol_filenames.
10048 2014-01-14 Doug Evans <dje@google.com>
10050 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
10051 (expand_symtabs_symbol_matcher_ftype): New typedef.
10052 (quick_symbol_functions.expand_symtabs_matching): Update to use.
10053 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10054 * symfile.c (expand_partial_symbol_names): Update to use
10055 expand_symtabs_symbol_matcher_ftype.
10056 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
10057 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10058 Arg name_matcher renamed to symbol_matcher.
10059 * psymtab.c (recursively_search_psymtabs): Update to use
10060 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
10062 (expand_symtabs_matching_via_partial): Update to use
10063 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10064 Arg name_matcher renamed to symbol_matcher.
10066 2014-01-14 Doug Evans <dje@google.com>
10068 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
10069 (map_partial_symbol_filenames): Ditto.
10070 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
10071 (map_partial_symbol_filenames): Ditto.
10072 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
10073 (map_partial_symbol_filenames): Ditto.
10074 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
10075 (map_partial_symbol_filenames): Ditto.
10076 * symtab.c: Delete #include "psymtab.h".
10078 2014-01-14 Pedro Alves <palves@redhat.com>
10079 Tom Tromey <tromey@redhat.com>
10081 * infrun.c (use_displaced_stepping): Use find_record_target
10082 instead of RECORD_IS_USED.
10083 (adjust_pc_after_break): Use record_full_is_used instead of
10085 * record-btrace.c (record_btrace_open): Call record_preopen
10086 instead of checking RECORD_IS_USED.
10087 * record-full.c (record_full_shortname)
10088 (record_full_core_shortname): New globals.
10089 (record_full_is_used): New function.
10090 (find_full_open): Call record_preopen instead of checking
10092 (init_record_full_ops): Set the target's shortname to
10093 record_full_shortname.
10094 (init_record_full_core_ops): Set the target's shortname to
10095 record_full_core_shortname.
10096 * record-full.h (record_full_is_used): Declare.
10097 * record.c (find_record_target): Make extern.
10098 (record_preopen): New function.
10099 * record.h (RECORD_IS_USED): Delete macro.
10100 (find_record_target, record_preopen): Declare functions.
10102 2014-01-14 Yao Qi <yao@codesourcery.com>
10104 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
10105 'len''s type to ULONGEST.
10106 (core_xfer_shared_libraries_aix): Likewise.
10107 * gdbarch.c, gdbarch.h: Regenerated.
10108 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
10109 Change type of 'len' to ULONGEST.
10110 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10111 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
10113 2014-01-14 Yao Qi <yao@codesourcery.com>
10115 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
10116 type of 'len' to ULONGEST.
10117 (linux_xfer_osdata_processgroups): Likewise.
10118 (linux_xfer_osdata_threads): Likewise.
10119 (linux_xfer_osdata_fds): Likewise.
10120 (linux_xfer_osdata_isockets): Likewise.
10121 (linux_xfer_osdata_shm): Likewise.
10122 (linux_xfer_osdata_sem): Likewise.
10123 (linux_xfer_osdata_msg): Likewise.
10124 (linux_common_xfer_osdata): Likewise.
10125 (struct osdata_type) <getter>: Likewise.
10126 * common/linux-osdata.h (linux_common_xfer_osdata): Update
10129 2014-01-14 Yao Qi <yao@codesourcery.com>
10131 * target.h (target_xfer_partial_ftype): Update.
10132 (struct target_ops) <to_xfer_partial>: Change 'len' type to
10134 * aix-thread.c (aix_thread_xfer_partial): Change type of
10135 argument 'len' to ULONGEST.
10136 * auxv.c (procfs_xfer_auxv): Likewise.
10137 (ld_so_xfer_auxv): Likewise.
10138 (memory_xfer_auxv): Likewise.
10139 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10140 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10141 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10142 * corelow.c (core_xfer_partial): Likewise.
10143 * ctf.c (ctf_xfer_partial): Likewise.
10144 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
10146 (darwin_read_dyld_info): Likewise.
10147 (darwin_xfer_partial): Likewise.
10148 * exec.c (section_table_xfer_memory_partial): Likewise.
10149 (exec_xfer_partial): Likewise.
10150 * exec.h (section_table_xfer_memory_partial): Update
10152 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
10153 instead of plongest.
10154 (gnu_xfer_partial): Likewise.
10155 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
10156 (ia64_hpux_xfer_solib_got): Likewise.
10157 (ia64_hpux_xfer_partial): Likewise.
10158 * ia64-linux-nat.c (ia64_linux_xfer_partial):
10159 * inf-ptrace.c (inf_ptrace_xfer_partial):
10160 * inf-ttrace.c (inf_ttrace_xfer_partial):
10161 * linux-nat.c (linux_xfer_siginfo): Likewise.
10162 (linux_nat_xfer_partial): Likewise.
10163 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
10164 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
10165 * monitor.c (monitor_xfer_memory): Likewise.
10166 (monitor_xfer_partial): Likewise.
10167 * procfs.c (procfs_xfer_partial): Likewise.
10168 * record-full.c (record_full_xfer_partial): Likewise.
10169 (record_full_core_xfer_partial): Likewise.
10170 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
10171 instead of plongest.
10172 (gdbsim_xfer_partial): Likewise.
10173 * remote.c (remote_xfer_partial): Likewise.
10174 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10175 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10177 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10178 (rs6000_xfer_shared_libraries): Likewise.
10179 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10180 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10181 (sparc_xfer_partial): Likewise.
10182 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10183 (spu_xfer_partial): Likewise.
10184 * spu-multiarch.c (spu_xfer_partial): Likewise.
10185 * target.c (target_read_live_memory): Likewise.
10186 (memory_xfer_live_readonly_partial): Likewise.
10187 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
10188 (target_xfer_partial, default_xfer_partial): Likewise.
10189 (current_xfer_partial): Likewise.
10190 * tracepoint.c (tfile_xfer_partial): Likewise.
10191 * windows-nat.c (windows_xfer_memory): Likewise. Call
10192 pulongest instead of plongest.
10193 (windows_xfer_partial): Likewise.
10194 (windows_xfer_shared_libraries): Likewise.
10196 2014-01-14 Yao Qi <yao@codesourcery.com>
10198 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
10199 target_xfer_partial_ftype.
10201 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
10205 * valops.c (value_struct_elt_bitpos): New function
10206 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
10207 object to 'None' if the field name is an empty string ("").
10208 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
10209 attribute to look for a field when 'name' is 'None'.
10210 (get_field_type): New function
10212 2014-01-13 Doug Evans <dje@google.com>
10215 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
10216 (try_open_dwop_file): Ditto.
10217 * gdb_bfd.c: #include "vec.h".
10218 (bfdp): New typedef.
10219 (struct gdb_bfd_data): New member included_bfds.
10220 (gdb_bfd_unref): Unref all included bfds.
10221 (gdb_bfd_record_inclusion): New function.
10222 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
10224 2014-01-13 Tom Tromey <tromey@redhat.com>
10226 * gdbcore.h (deprecated_core_resize_section_table): Remove.
10228 2014-01-13 Tom Tromey <tromey@redhat.com>
10230 * defs.h (use_windows): Remove.
10231 * gdb.c (main): Update.
10232 * main.c (captured_main, gdb_main): Update.
10233 * main.h (struct captured_main_args) <use_windows>: Remove.
10234 * top.c (use_windows): Remove.
10236 2014-01-13 Tom Tromey <tromey@redhat.com>
10238 * defs.h (deprecated_flush_hook): Remove.
10240 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10243 * linux-thread-db.c (try_thread_db_load): Add parameter
10244 check_auto_load_safe. Move here the file_is_auto_load_safe call.
10245 (try_thread_db_load_from_pdir_1): Move it there from here.
10246 (try_thread_db_load_from_sdir): Update caller.
10247 (try_thread_db_load_from_dir): Move it there from here.
10249 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
10251 * regformats/regdat.sh: Always rewrite the register file.
10253 2014-01-13 Pedro Alves <palves@redhat.com>
10255 * Makefile.in (CHECK_HEADERS): New variable.
10256 (check-headers:): New rule.
10258 2014-01-13 Tom Tromey <tromey@redhat.com>
10260 * cli/cli-setshow.c (do_set_command): Update.
10261 * defs.h (deprecated_set_hook): Remove.
10262 * top.c (deprecated_set_hook): Remove.
10264 2014-01-13 Pedro Alves <palves@redhat.com>
10266 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10267 the tracepoint if the PC is a pseudo-register.
10269 2014-01-13 Tom Tromey <tromey@redhat.com>
10271 * defs.h (XCALLOC): Remove.
10272 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10273 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10274 * dwarf2loc.c (allocate_piece_closure): Likewise.
10275 * elfread.c (elf_symfile_segments): Likewise.
10276 (elf_symfile_segments): Likewise.
10277 * gdbtypes.c (copy_type_recursive): Likewise.
10278 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10279 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10280 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10282 * mt-tdep.c (mt_gdbarch_init): Likewise.
10283 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10285 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10286 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10287 * registry.c (registry_alloc_data): Likewise.
10288 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10289 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10290 * serial.c (serial_fdopen_ops): Likewise.
10291 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10293 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10294 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10297 2014-01-13 Tom Tromey <tromey@redhat.com>
10299 * defs.h (XMALLOC): Remove.
10300 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10301 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10302 * cli-out.c (struct ui_out *): Likewise.
10303 * cli/cli-dump.c (add_dump_command): Likewise.
10304 (add_dump_command): Likewise.
10305 * complaints.c (get_complaints): Likewise.
10306 (find_complaint): Likewise.
10307 * dwarf2-frame.c (execute_cfa_program): Likewise.
10308 * dwarf2read.c (abbrev_table_read_table): Likewise.
10309 * gdbarch.sh: Likewise.
10310 * gdbarch.c: Rebuild.
10311 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10312 * interps.c (interp_new): Likewise.
10313 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10314 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10315 * mi/mi-console.c (mi_console_file_new): Likewise.
10316 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10317 * mi/mi-out.c (mi_out_new): Likewise.
10318 * mi/mi-parse.c (mi_parse): Likewise.
10319 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10320 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10321 * observer.c (xalloc_observer_list_node): Likewise.
10322 * regcache.c (regcache_xmalloc_1): Likewise.
10323 * reggroups.c (reggroup_new): Likewise.
10324 (_initialize_reggroup): Likewise.
10325 * registry.c (register_data_with_cleanup): Likewise.
10326 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10327 * ser-base.c (serial_ttystate): Likewise.
10328 * ser-mingw.c (make_pipe_state): Likewise.
10329 * ser-pipe.c (pipe_open): Likewise.
10330 * serial.c (serial_open): Likewise.
10331 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10332 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10333 (tui_alloc_win_info): Likewise.
10334 (tui_add_content_elements): Likewise.
10335 * tui/tui-file.c (tui_file_new): Likewise.
10336 * tui/tui-out.c (tui_out_new): Likewise.
10337 * ui-file.c (mem_file_new): Likewise.
10338 * ui-out.c (push_level): Likewise.
10339 (make_cleanup_ui_out_end): Likewise.
10340 (append_header_to_list): Likewise.
10341 (ui_out_new): Likewise.
10342 * user-regs.c (user_reg_add_builtin): Likewise.
10344 2014-01-13 Tom Tromey <tromey@redhat.com>
10346 * defs.h (XZALLOC): Remove.
10347 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10348 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10349 (get_ada_tasks_inferior_data): Likewise.
10350 * auto-load.c (get_auto_load_pspace_data): Likewise.
10351 * auxv.c (get_auxv_inferior_data): Likewise.
10352 * bfd-target.c (target_bfd_reopen): Likewise.
10353 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10354 (deprecated_insert_raw_breakpoint): Likewise.
10355 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10356 * corelow.c (core_open): Likewise.
10357 * darwin-nat.c (darwin_check_new_threads): Likewise.
10358 (darwin_attach_pid): Likewise.
10359 * dummy-frame.c (dummy_frame_push): Likewise.
10360 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10361 * dwarf2loc.c (allocate_piece_closure): Likewise.
10362 * elfread.c (elf_symfile_segments): Likewise.
10363 * eval.c (ptrmath_type_p): Likewise.
10364 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10365 * gdbtypes.c (alloc_type_arch): Likewise.
10366 (alloc_type_instance): Likewise.
10367 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10368 * inf-child.c (inf_child_can_use_agent): Likewise.
10369 * inflow.c (get_inflow_inferior_data): Likewise.
10370 * infrun.c (save_infcall_suspend_state): Likewise.
10371 * jit.c (jit_reader_load): Likewise.
10372 (get_jit_objfile_data): Likewise.
10373 (get_jit_program_space_data): Likewise.
10374 (jit_object_open_impl): Likewise.
10375 (jit_symtab_open_impl): Likewise.
10376 (jit_block_open_impl): Likewise.
10377 (jit_frame_sniffer): Likewise.
10378 * linux-fork.c (add_fork): Likewise.
10379 * maint.c (make_command_stats_cleanup): Likewise.
10380 * objfiles.c (get_objfile_pspace_data): Likewise.
10381 * opencl-lang.c (struct lval_closure): Likewise.
10382 * osdata.c (osdata_start_osdata): Likewise.
10383 * progspace.c (new_address_space): Likewise.
10384 (add_program_space): Likewise.
10385 * remote-sim.c (get_sim_inferior_data): Likewise.
10386 * sh-tdep.c (sh_gdbarch_init): Likewise.
10387 * skip.c (Ignore): Likewise.
10388 (skip_delete_command): Likewise.
10389 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10390 (library_list_start_library): Likewise.
10391 (solib_aix_current_sos): Likewise.
10392 * solib-darwin.c (get_darwin_info): Likewise.
10393 (darwin_current_sos): Likewise.
10394 * solib-dsbt.c (get_dsbt_info): Likewise.
10395 * solib-ia64-hpux.c (new_so_list): Likewise.
10396 (ia64_hpux_get_solib_linkage_addr): Likewise.
10397 * solib-spu.c (append_ocl_sos): Likewise.
10398 (spu_current_sos): Likewise.
10399 * solib-svr4.c (get_svr4_info): Likewise.
10400 (svr4_keep_data_in_core): Likewise.
10401 (library_list_start_library): Likewise.
10402 (svr4_default_sos): Likewise.
10403 (svr4_read_so_list): Likewise.
10404 * solib-target.c (library_list_start_library): Likewise.
10405 (solib_target_current_sos): Likewise.
10406 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10407 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10408 * symfile.c (default_symfile_segments): Likewise.
10409 * target-descriptions.c (tdesc_data_init): Likewise.
10410 (tdesc_create_reg): Likewise.
10411 (struct tdesc_type *): Likewise.
10412 (tdesc_create_vector): Likewise.
10413 (tdesc_set_struct_size): Likewise.
10414 (struct tdesc_type *): Likewise.
10415 (tdesc_free_feature): Likewise.
10416 (tdesc_create_feature): Likewise.
10417 * windows-nat.c (windows_add_thread): Likewise.
10418 (windows_make_so): Likewise.
10419 * xml-support.c (gdb_xml_body_text): Likewise.
10420 (gdb_xml_create_parser_and_cleanup): Likewise.
10421 (xml_process_xincludes): Likewise.
10422 * xml-syscall.c (allocate_syscalls_info): Likewise.
10423 (syscall_create_syscall_desc): Likewise.
10425 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10427 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10428 function, with code from i386_stap_parse_special_token.
10429 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10430 (i386_stap_parse_special_token): Move code to the two functions
10431 above; simplify it.
10433 2014-01-09 Pedro Alves <palves@redhat.com>
10434 Hui Zhu <hui@codesourcery.com>
10437 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10438 bp_err_string. Don't mark the location shlib_disabled if the
10439 error thrown wasn't a generic or memory error. Catch errors
10440 thrown while inserting breakpoints in overlayed code. Output
10441 error message of software breakpoints.
10442 * remote.c (remote_insert_breakpoint): If this breakpoint has
10443 target-side commands but this stub doesn't support Z0 packets,
10444 throw NOT_SUPPORTED_ERROR error.
10445 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10446 * target.h (target_insert_breakpoint): Extend comment.
10447 (target_insert_hw_breakpoint): Add comment.
10449 2014-01-08 Pedro Alves <palves@redhat.com>
10451 * remote.c (remote_add_thread): Add threads silently if starting
10453 (remote_notice_new_inferior): If in all-stop, and starting up,
10454 don't call notice_new_inferior.
10455 (get_current_thread): New function, factored out from ...
10456 (add_current_inferior_and_thread): ... this. Adjust.
10457 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10458 found any thread, then select the remote's current thread as GDB's
10459 current thread too.
10461 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10463 * NEWS: Create a new section for the next release branch.
10464 Rename the section of the current branch, now that it has
10467 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10469 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10470 * version.in: Bump version to 7.7.50.DATE-cvs.
10472 2014-01-08 Yao Qi <yao@codesourcery.com>
10474 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10475 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10476 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10478 2014-01-08 Yao Qi <yao@codesourcery.com>
10480 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10481 return value of bfd_get_filename to symbol_file_add_from_bfd.
10483 2014-01-08 Pierre Muller <muller@sourceware.org>
10486 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10487 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10488 to prim_record_mininal_symbol_and_info.
10489 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10490 in call to prim_record_minimal_symbol_and_info.
10491 (read_pe_exported_syms): Set index field of section_data.
10493 2014-01-07 Andrew Pinski <apinski@cavium.com>
10495 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10496 * features/aarch64.c: Regenerate.
10498 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10500 * target.c (return_null): Define.
10501 (update_current_target): Use it instead of return_zero for
10502 functions that return a pointer.
10504 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10506 * source.c (add_path): Fix check for duplicated paths in the previously
10509 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10511 * ada-lang.c: Remove duplicated include statements.
10512 * alphabsd-nat.c: Ditto.
10513 * amd64-darwin-tdep.c: Ditto.
10514 * amd64fbsd-nat.c: Ditto.
10515 * auto-load.c: Ditto.
10517 * breakpoint.c: Ditto.
10518 * dbxread.c: Ditto.
10519 * fork-child.c: Ditto.
10520 * gdb_usleep.c: Ditto.
10521 * i386-darwin-tdep.c: Ditto.
10522 * i386fbsd-nat.c: Ditto.
10524 * inferior.c: Ditto.
10525 * jv-lang.c: Ditto.
10526 * linux-nat.c: Ditto.
10527 * linux-tdep.c: Ditto.
10528 * m68kbsd-nat.c: Ditto.
10529 * m68klinux-nat.c: Ditto.
10530 * microblaze-tdep.c: Ditto.
10531 * mips-linux-tdep.c: Ditto.
10532 * mn10300-tdep.c: Ditto.
10533 * nto-tdep.c: Ditto.
10534 * opencl-lang.c: Ditto.
10536 * printcmd.c: Ditto.
10537 * regcache.c: Ditto.
10538 * remote-m32r-sdi.c: Ditto.
10540 * symfile.c: Ditto.
10542 * tilegx-linux-nat.c: Ditto.
10543 * tilegx-tdep.c: Ditto.
10544 * tracepoint.c: Ditto.
10546 * vaxbsd-nat.c: Ditto.
10547 * windows-nat.c: Ditto.
10548 * xtensa-tdep.c: Ditto.
10550 2014-01-07 Yao Qi <yao@codesourcery.com>
10552 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10554 2014-01-07 Yao Qi <yao@codesourcery.com>
10555 Joel Brobecker <brobecker@adacore.com>
10557 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10558 (pdc_write_regs): Likewise.
10559 (fetch_regs_kernel_thread): Likewise.
10560 (store_regs_kernel_thread): Likewise.
10562 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10564 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10565 tagged type objects to their actual type.
10567 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10569 * ada-valprint.c (print_field_values): Add "language" parameter.
10570 Update calls to print_field_values and print_variant_part.
10571 Pass new parameter "language" in call to val_print instead
10572 of "current_language". Replace call to ada_val_print by call
10574 (print_variant_part): Add "language" parameter.
10575 (ada_val_print_struct_union): Update call to print_field_values.
10577 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10579 * ada-valprint.c (ui_memcpy): Delete.
10580 (ada_print_floating): Update documentation. Add empty line
10581 between between function documentation and implementation.
10582 Delete variable "buffer". Use ui_file_xstrdup in place of
10583 ui_file_put. Minor adjustments following this change.
10585 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10587 * ada-valprint.c (ada_val_print_string): New function,
10588 extracted from ada_val_print_array.
10589 (ada_val_print_array): Replace extracted code by call
10590 to ada_val_print_string followed by a return. Move
10591 "else" branch to the function's top block.
10593 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10595 * ada-valprint.c (ada_val_print_array): Move implementation
10596 down. Rename parameter "offset" and "val" into "offset_aligned"
10597 and "original_value" respectively. Add parameter "offset".
10599 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10601 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10602 re-organizing the code. Change the "???" message printed
10603 when target type is a TYPE_CODE_UNDEF into
10604 "<ref to undefined type>".
10606 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10608 * ada-valprint.c (print_record): Delete, implementation inlined...
10609 (ada_val_print_struct_union): ... here. Remove call to
10610 ada_check_typedef in inlined implementation.
10612 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10614 * ada-valprint.c (ada_val_print_gnat_array): New function,
10615 extracted from ada_val_print_1;
10616 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10617 (ada_val_print_flt, ada_val_print_struct_union)
10618 (ada_val_print_ref): Likewise.
10619 (ada_val_print_1): Delete variables i and elttype.
10620 Replace extracted-out code by call to corresponding
10623 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10625 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10627 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10629 * ada-valprint.c (ada_val_print_1): Replace calls to
10630 ada_val_print_1 by calls to val_print.
10632 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10634 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10635 Update calls to self accordingly. Replace calls to c_val_print
10636 by calls to val_print.
10638 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10640 * ada-valprint.c (print_record): Delete declaration.
10641 (adjust_type_signedness, ada_val_print_1): Likewise.
10642 (ada_val_print): Move function implementation down.
10643 (print_variant_part, print_field_values, print_record):
10644 Move function implementation up.
10646 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10648 * python/py-type.c (typy_get_name): New function.
10649 (type_object_getset): Add entry for attribute "name".
10650 * NEWS: Add entry mentioning this new attribute.
10652 2014-01-07 Yao Qi <yao@codesourcery.com>
10654 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10657 2014-01-07 Yao Qi <yao@codesourcery.com>
10659 * gnu-nat.c (info_port_rights): Add qualifier const to
10662 2014-01-07 Yao Qi <yao@codesourcery.com>
10664 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10666 2014-01-07 Yao Qi <yao@codesourcery.com>
10668 * gnu-nat.c (make_inf) Update declaration.
10669 (make_inf): Make it static.
10670 (inf_set_traced): Likewise.
10671 (inf_port_to_thread, inf_task_died_status): Likewise.
10673 2014-01-07 Yao Qi <yao@codesourcery.com>
10675 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10677 2014-01-07 Yao Qi <yao@codesourcery.com>
10679 * gnu-nat.c (_initialize_gnu_nat): Declare.
10681 2014-01-07 Yao Qi <yao@codesourcery.com>
10683 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10685 (struct gdbarch_info) <byte_order>: Change type to
10687 <byte_order_for_code>: Likewise.
10688 * gdbarch.c, gdbarch.h: Regenerated.
10690 2014-01-06 Sasha Smundak <asmundak@google.com>
10692 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10694 2014-01-06 Tom Tromey <tromey@redhat.com>
10696 * doublest.c (convert_doublest_to_floatformat): Use const, not
10698 * somread.c (som_symtab_read): Likewise.
10700 2014-01-07 Hui Zhu <hui@codesourcery.com>
10702 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10703 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10704 (gdb_bfd_fopen): Ditto.
10705 (gdb_bfd_openr): Ditto.
10706 (gdb_bfd_openw): Ditto.
10707 (gdb_bfd_openr_iovec): Ditto.
10708 (gdb_bfd_fdopenr): Ditto.
10709 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
10710 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
10712 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
10714 * symfile-mem.c (symbol_file_add_from_memory): Removed
10715 gdb_bfd_stash_filename.
10717 2014-01-03 Doug Evans <dje@google.com>
10719 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
10722 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10724 Update year range in copyright notice of all files.
10726 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10728 * top.c (print_gdb_version): Set copyright year to 2014.
10730 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10732 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
10734 For older changes see ChangeLog-2013.
10740 version-control: never