mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
5878efd480
If I remove all regformats/*.dat files and run make GDB=/scratch/yao/gdb/build-git/all-targets/gdb/gdb all, some powerpc .dat files are not generated. This patch fixes it by adding them to WHICH, so these .dat files can be generated. gdb: 2016-10-05 Yao Qi <yao.qi@linaro.org> * features/Makefile (WHICH): Add rs6000/powerpc-isa205-32l, rs6000/powerpc-isa205-64l, rs6000/powerpc-isa205-altivec32l, rs6000/powerpc-isa205-altivec64l, rs6000/powerpc-isa205-vsx32l and rs6000/powerpc-isa205-vsx64l. * regformats/rs6000/powerpc-isa205-32l.dat: Regenerated. * regformats/rs6000/powerpc-isa205-64l.dat: Likewise. * regformats/rs6000/powerpc-isa205-altivec32l.dat: Likewise. * regformats/rs6000/powerpc-isa205-altivec64l.dat: Likewise. * regformats/rs6000/powerpc-isa205-vsx32l.dat: Likewise. * regformats/rs6000/powerpc-isa205-vsx64l.dat: Likewise.
5956 lines
216 KiB
Plaintext
5956 lines
216 KiB
Plaintext
2016-10-05 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* features/Makefile (WHICH): Add
|
||
rs6000/powerpc-isa205-32l, rs6000/powerpc-isa205-64l,
|
||
rs6000/powerpc-isa205-altivec32l, rs6000/powerpc-isa205-altivec64l,
|
||
rs6000/powerpc-isa205-vsx32l and rs6000/powerpc-isa205-vsx64l.
|
||
* regformats/rs6000/powerpc-isa205-32l.dat: Regenerated.
|
||
* regformats/rs6000/powerpc-isa205-64l.dat: Likewise.
|
||
* regformats/rs6000/powerpc-isa205-altivec32l.dat: Likewise.
|
||
* regformats/rs6000/powerpc-isa205-altivec64l.dat: Likewise.
|
||
* regformats/rs6000/powerpc-isa205-vsx32l.dat: Likewise.
|
||
* regformats/rs6000/powerpc-isa205-vsx64l.dat: Likewise.
|
||
|
||
2016-10-05 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* features/Makefile (XMLTOC): Add s390-tevx-linux64.xml,
|
||
s390-vx-linux64.xml, s390x-tevx-linux64.xml and
|
||
s390x-vx-linux64.xml.
|
||
|
||
2016-10-05 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* features/Makefile: Remove i386/*-expedite. Add i386-expedite,
|
||
amd64-expedite, and x32-expedite.
|
||
|
||
2016-10-05 Terry Guo <terry.guo@arm.com>
|
||
Yao Qi <yao.qi@linaro.org>
|
||
|
||
* arm-tdep.c: Adjust includes.
|
||
* features/Makefile (WHICH): Add "arm/" directory to arm
|
||
target descriptions.
|
||
(XMLTOC): Likewise.
|
||
(arm/arm-with-iwmmxt.dat): Adjust the path for
|
||
dependencies.
|
||
* features/arm-core.xml: Moved to ...
|
||
* features/arm/arm-core.xml: ... it.
|
||
* features/arm-fpa.xml: Moved to ...
|
||
* features/arm/arm-fpa.xml: ... it.
|
||
* features/arm-m-profile.xml: Moved to ...
|
||
* features/arm/arm-m-profile.xm: ... it.
|
||
* features/arm-vfpv2.xml: Moved to ...
|
||
* features/arm/arm-vfpv2.xm: ... it.
|
||
* features/arm-vfpv3.xml: Moved to ...
|
||
* features/arm/arm-vfpv3.xml: ... it.
|
||
* features/arm-with-iwmmxt.c: Moved to ...
|
||
* features/arm/arm-with-iwmmxt.c: ... it.
|
||
* features/arm-with-iwmmxt.xml: Moved to ...
|
||
* features/arm/arm-with-iwmmxt.xml: ... it.
|
||
* features/arm-with-m-fpa-layout.c: Moved to ...
|
||
* features/arm/arm-with-m-fpa-layout.c: ... it.
|
||
* features/arm-with-m-fpa-layout.xml: Moved to ...
|
||
* features/arm/arm-with-m-fpa-layout.xml: ... it.
|
||
* features/arm-with-m-vfp-d16.c: Moved to ...
|
||
* features/arm/arm-with-m-vfp-d16.c: ... it.
|
||
* features/arm-with-m-vfp-d16.xml: Moved to ...
|
||
* features/arm/arm-with-m-vfp-d16.xml: ... it.
|
||
* features/arm-with-m.c: Moved to ...
|
||
* features/arm/arm-with-m.c: ... it.
|
||
* features/arm-with-m.xml: Moved to ...
|
||
* features/arm/arm-with-m.xm: ... it.
|
||
* features/arm-with-neon.c: Moved to ...
|
||
* features/arm/arm-with-neon.c: ... it.
|
||
* features/arm-with-neon.xml: Moved to ...
|
||
* features/arm/arm-with-neon.xml: ... it.
|
||
* features/arm-with-vfpv2.c: Moved to ...
|
||
* features/arm/arm-with-vfpv2.c: ... it.
|
||
* features/arm-with-vfpv2.xml: Moved to ...
|
||
* features/arm/arm-with-vfpv2.xml: ... it.
|
||
* features/arm-with-vfpv3.c: Moved to ...
|
||
* features/arm/arm-with-vfpv3.c: ... it.
|
||
* features/arm-with-vfpv3.xml: Moved to ...
|
||
* features/arm/arm-with-vfpv3.xml: ... it.
|
||
* features/xscale-iwmmxt.xml: Moved to ...
|
||
* features/arm/xscale-iwmmxt.xml: ... it.
|
||
|
||
2016-10-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
|
||
2016-10-03 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
PR gdb/20487
|
||
* NEWS: Mention new frame field of =thread-selected event.
|
||
* cli/cli-decode.c (add_cmd): Initialize c->suppress_notification.
|
||
(add_com_suppress_notification): New function definition.
|
||
(cmd_func): Set and restore the suppress_notification flag.
|
||
* cli/cli-deicode.h (struct cmd_list_element)
|
||
<suppress_notification>: New field.
|
||
* cli/cli-interp.c (cli_suppress_notification): New global variable.
|
||
(cli_on_user_selected_context_changed): New function.
|
||
(_initialize_cli_interp): Attach to user_selected_context_changed
|
||
observer.
|
||
* command.h (struct cli_suppress_notification): New structure.
|
||
(cli_suppress_notification): New global variable declaration.
|
||
(add_com_suppress_notification): New function declaration.
|
||
* defs.h (enum user_selected_what_flag): New enum.
|
||
(user_selected_what): New enum flag type.
|
||
* frame.h (print_stack_frame_to_uiout): New function declaration.
|
||
* gdbthread.h (print_selected_thread_frame): New function declaration.
|
||
* inferior.c (print_selected_inferior): New function definition.
|
||
(inferior_command): Remove printing of inferior/thread/frame switch
|
||
notifications, notify user_selected_context_changed observer.
|
||
* inferior.h (print_selected_inferior): New function declaration.
|
||
* mi/mi-cmds.c (struct mi_cmd): Add user_selected_context
|
||
suppression to stack-select-frame and thread-select commands.
|
||
* mi/mi-interp.c (struct mi_suppress_notification)
|
||
<user_selected_context>: Initialize.
|
||
(mi_user_selected_context_changed): New function definition.
|
||
(_initialize_mi_interp): Attach to user_selected_context_changed.
|
||
* mi/mi-main.c (mi_cmd_thread_select): Print thread selection reply.
|
||
(mi_execute_command): Handle notification suppression. Notify
|
||
user_selected_context_changed observer on thread change instead of printing
|
||
event directly. Don't send it if command already sends the notification.
|
||
(command_notifies_uscc_observer): New function.
|
||
(mi_cmd_execute): Don't handle notification suppression.
|
||
* mi/mi-main.h (struct mi_suppress_notification)
|
||
<user_selected_context>: New field.
|
||
* stack.c (print_stack_frame_to_uiout): New function definition.
|
||
(select_frame_command): Notify user_selected_context_changed
|
||
observer.
|
||
(frame_command): Call print_selected_thread_frame if there's no frame
|
||
change or notify user_selected_context_changed observer if there is.
|
||
(up_command): Notify user_selected_context_changed observer.
|
||
(down_command): Likewise.
|
||
(_initialize_stack): Suppress user_selected_context notification for
|
||
command select-frame.
|
||
* thread.c (thread_command): Notify
|
||
user_selected_context_changed if the thread has changed, print
|
||
thread info directly if it hasn't.
|
||
(do_captured_thread_select): Do not print thread switch event.
|
||
(print_selected_thread_frame): New function definition.
|
||
* tui/tui-interp.c (tui_on_user_selected_context_changed):
|
||
New function definition.
|
||
(_initialize_tui_interp): Attach to user_selected_context_changed
|
||
observer.
|
||
|
||
2016-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||
|
||
PR gdb/20609 - attach of JIT-debug-enabled inf 7.11.1 regression
|
||
* exec.c (exec_file_locate_attach): Add parameter defer_bp_reset.
|
||
Use it.
|
||
* gdbcore.h (exec_file_locate_attach): Add parameter defer_bp_reset.
|
||
* infcmd.c (setup_inferior): Update caller.
|
||
* remote.c (remote_add_inferior): Likewise.
|
||
|
||
2016-09-28 Pedro Alves <palves@redhat.com>
|
||
|
||
* infcall.c (run_inferior_call): Remove input from the event
|
||
loop while running the infcall.
|
||
|
||
2016-09-27 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
|
||
|
||
* arm-tdep.c (arm_m_addr_is_magic): New function.
|
||
(arm_addr_bits_remove): Call arm_m_addr_is_magic.
|
||
(arm_m_exception_unwind_sniffer): Likewise.
|
||
|
||
2016-09-23 Jon Turney <jon.turney@dronecode.org.uk>
|
||
|
||
* windows-nat.c (windows_delete_thread): Adjusting call to
|
||
target_mourn_inferior to include ptid_t argument.
|
||
|
||
2016-09-23 Tom Tromey <tom@tromey.com>
|
||
|
||
* utils.h (make_cleanup_dyn_string_delete): Remove declaration.
|
||
* utils.c: Don't include dyn-string.h.
|
||
(do_dyn_string_delete, make_cleanup_dyn_string_delete): Remove.
|
||
* cli/cli-cmds.c: Include <string>. Don't include dyn-string.h.
|
||
(argv_to_string): Rename. Change return type to std::string.
|
||
(alias_command): Use std::string.
|
||
|
||
2016-09-23 Tom Tromey <tom@tromey.com>
|
||
|
||
* objfiles.c: Include <vector>.
|
||
(objfile_relocate): Use std::vector.
|
||
|
||
2016-09-23 Tom Tromey <tom@tromey.com>
|
||
|
||
* rust-lang.c: Include <string> and <vector>.
|
||
(rust_evaluate_funcall): Use std::vector, std::string.
|
||
(rust_evaluate_subexp): Use std::string.
|
||
(rust_lookup_symbol_nonlocal): Use std::string.
|
||
|
||
2016-09-23 Tom Tromey <tom@tromey.com>
|
||
|
||
* cp-namespace.c: Include <string>.
|
||
(cp_search_static_and_baseclasses)
|
||
(cp_lookup_symbol_imports_or_template, find_symbol_in_baseclass):
|
||
Use std::string.
|
||
|
||
2016-09-23 Tom Tromey <tom@tromey.com>
|
||
|
||
* break-catch-sig.c: Include <string>.
|
||
(signal_catchpoint_print_one): Use std::string.
|
||
|
||
2016-09-23 Tom Tromey <tom@tromey.com>
|
||
|
||
* utils.c (struct restore_ui_out_closure): Remove.
|
||
* objfiles.h (terminate_minimal_symbol_table): Don't declare.
|
||
|
||
2016-09-23 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* nat/linux-osdata.c (linux_xfer_osdata_threads): Replace
|
||
sprintf with xsnprintf.
|
||
(linux_xfer_osdata_fds): Likewise.
|
||
|
||
2016-09-23 Pedro Alves <palves@redhat.com>
|
||
|
||
* Makefile.in (SFILES): Add common/new-op.c.
|
||
(COMMON_OBS): Add common/new-op.o.
|
||
(new-op.o): New rule.
|
||
* common/common-exceptions.h: Include <new>.
|
||
(struct gdb_quit_bad_alloc): New type.
|
||
* common/new-op.c: New file.
|
||
|
||
2016-09-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
|
||
|
||
* rs6000-tdep.c (ppc_process_record_op31): Fix
|
||
regcache_raw_read_unsigned call using the correct parameter type.
|
||
|
||
2016-09-22 Anton Kolesov <anton.kolesov@synopsys.com>
|
||
|
||
* arc-tdep.c: Fix ARI warning for printf(%p).
|
||
|
||
2016-09-21 Anton Kolesov <anton.kolesov@synopsys.com>
|
||
|
||
* MAINTAINERS (Write After Approval): Add Anton Kolesov.
|
||
|
||
2016-09-21 Anton Kolesov <anton.kolesov@synopsys.com>
|
||
|
||
* Makefile.in (ALL_TARGET_OBS): Add arc-tdep.o.
|
||
(HFILES_NO_SRCDIR): Add arc-tdep.h.
|
||
(ALLDEPFILES): Add arc-tdep.c.
|
||
* NEWS: Mention new ARC port.
|
||
* configure.tgt: Add ARC.
|
||
* arc-tdep.c: New file.
|
||
* arc-tdep.h: New file.
|
||
* features/Makefile (XMLTOC): Add arc-v2.xml and arc-arcompact.xml.
|
||
* features/arc-v2.xml: New file.
|
||
* features/arc-v2.c: New file (generated).
|
||
* features/arc-arcompact.xml: New file.
|
||
* features/arc-arcompact.c: New file (generated).
|
||
|
||
2016-09-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
|
||
|
||
* rs6000-tdep.c (ppc_process_record_op63): Fix return of instruction
|
||
handlers.
|
||
|
||
2016-09-21 Tom Tromey <tom@tromey.com>
|
||
|
||
PR gdb/20604:
|
||
* top.h (quit_force): Update.
|
||
* top.c (quit_force): Changed type of first argument. Don't
|
||
evaluate expression. Pass NULL to kill_or_detach.
|
||
* cli/cli-cmds.c (quit_command): Evaluate "args".
|
||
|
||
2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* .gitignore: Ignore more files.
|
||
* data-directory/.gitignore: Likewise.
|
||
|
||
2016-09-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
|
||
|
||
* rs6000-tdep.c (PPC_DQ): New macro.
|
||
(ppc_process_record_op4): Add Power ISA 3.0 instructions.
|
||
(ppc_process_record_op19): Likewise.
|
||
(ppc_process_record_op31): Likewise.
|
||
(ppc_process_record_op59): Likewise.
|
||
(ppc_process_record_op60): Likewise.
|
||
(ppc_process_record_op63): Likewise.
|
||
(ppc_process_record): Likewise.
|
||
(ppc_process_record_op61): New function.
|
||
|
||
2016-09-21 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* aarch32-linux-nat.c (aarch32_gp_regcache_collect): Keep
|
||
bits 20 to 23.
|
||
|
||
2016-09-20 Tom Tromey <tom@tromey.com>
|
||
|
||
* python/py-value.c (convert_value_from_python): Make PyInt_Check
|
||
conditional on Python 2.
|
||
* python/py-arch.c (archpy_disassemble): Make PyInt_Check
|
||
conditional on Python 2.
|
||
|
||
2016-09-20 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
|
||
|
||
* rs6000-tdep.c (ppc_process_record_op31): Fix record of Store String
|
||
Word instructions.
|
||
|
||
2016-09-20 Sergio Durigan Junior <sergiodj@redhat.com>
|
||
|
||
* fork-inferior.c (startup_inferior): Pass 'event_ptid' instead of
|
||
'resume_ptid' to 'target_mourn_inferior'. Fix regression
|
||
introduced by my last commit.
|
||
|
||
2016-09-19 Pedro Alves <palves@redhat.com>
|
||
|
||
* common/gdb_locale.h [!ENABLE_NLS] (gettext, dgettext, dcgettext,
|
||
textdomain, bindtextdomain): Delete macros.
|
||
* main.c (captured_main) [!ENABLE_NLS]: Skip bintextdomain and
|
||
textdomain calls.
|
||
|
||
2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
|
||
|
||
* darwin-nat.c (darwin_kill_inferior): Adjusting call to
|
||
target_mourn_inferior to include ptid_t argument.
|
||
* fork-child.c (startup_inferior): Likewise.
|
||
* gnu-nat.c (gnu_kill_inferior): Likewise.
|
||
* inf-ptrace.c (inf_ptrace_kill): Likewise.
|
||
* infrun.c (handle_inferior_event_1): Likewise.
|
||
* linux-nat.c (linux_nat_attach): Likewise.
|
||
(linux_nat_kill): Likewise.
|
||
* nto-procfs.c (interrupt_query): Likewise.
|
||
(procfs_interrupt): Likewise.
|
||
(procfs_kill_inferior): Likewise.
|
||
* procfs.c (procfs_kill_inferior): Likewise.
|
||
* record.c (record_mourn_inferior): Likewise.
|
||
* remote-sim.c (gdbsim_kill): Likewise.
|
||
* remote.c (remote_detach_1): Likewise.
|
||
(remote_kill): Likewise.
|
||
* target.c (target_mourn_inferior): Change declaration to accept
|
||
new ptid_t argument; use gdb_assert on it.
|
||
* target.h (target_mourn_inferior): Move function prototype from
|
||
here...
|
||
* target/target.h (target_mourn_inferior): ... to here. Adjust it
|
||
to accept new ptid_t argument.
|
||
* windows-nat.c (get_windows_debug_event): Adjusting call to
|
||
target_mourn_inferior to include ptid_t argument.
|
||
|
||
2016-09-18 Pedro Alves <palves@redhat.com>
|
||
|
||
* s390-linux-nat.c: Include <algorithm>.
|
||
|
||
2016-09-18 Pedro Alves <palves@redhat.com>
|
||
|
||
* breakpoint.c (hardware_watchpoint_inserted_in_range): Explicitly
|
||
specify the std:min/std::max specialization.
|
||
* exec.c (section_table_read_available_memory): Likewise.
|
||
* remote.c (remote_read_qxfer): Likewise.
|
||
* target.c (simple_verify_memory): Likewise.
|
||
|
||
2016-09-16 Simon Marchi <simark@simark.ca>
|
||
|
||
* infrun.c (restore_current_uiout_cleanup): Move to ui-out.c.
|
||
(print_stop_event): Use make_cleanup_restore_current_uiout.
|
||
* python/python.c (execute_gdb_command): Likewise.
|
||
* ui-out.c (restore_current_uiout_cleanup): Move from infrun.c.
|
||
(make_cleanup_restore_current_uiout): New function definition.
|
||
* ui-out.h (make_cleanup_restore_current_uiout): New function
|
||
declaration.
|
||
* utils.c (do_restore_ui_out): Remove.
|
||
(make_cleanup_restore_ui_out): Remove.
|
||
* utils.h (make_cleanup_restore_ui_out): Remove.
|
||
|
||
2016-09-16 Pedro Alves <palves@redhat.com>
|
||
|
||
* defs.h (min, max): Delete.
|
||
* aarch64-tdep.c: Include <algorithm> and use std::min and
|
||
std::max throughout.
|
||
* aarch64-tdep.c: Likewise.
|
||
* alpha-tdep.c: Likewise.
|
||
* amd64-tdep.c: Likewise.
|
||
* amd64-windows-tdep.c: Likewise.
|
||
* arm-tdep.c: Likewise.
|
||
* avr-tdep.c: Likewise.
|
||
* breakpoint.c: Likewise.
|
||
* btrace.c: Likewise.
|
||
* ctf.c: Likewise.
|
||
* disasm.c: Likewise.
|
||
* doublest.c: Likewise.
|
||
* dwarf2loc.c: Likewise.
|
||
* dwarf2read.c: Likewise.
|
||
* environ.c: Likewise.
|
||
* exec.c: Likewise.
|
||
* f-exp.y: Likewise.
|
||
* findcmd.c: Likewise.
|
||
* ft32-tdep.c: Likewise.
|
||
* gcore.c: Likewise.
|
||
* hppa-tdep.c: Likewise.
|
||
* i386-darwin-tdep.c: Likewise.
|
||
* i386-tdep.c: Likewise.
|
||
* linux-thread-db.c: Likewise.
|
||
* lm32-tdep.c: Likewise.
|
||
* m32r-tdep.c: Likewise.
|
||
* m88k-tdep.c: Likewise.
|
||
* memrange.c: Likewise.
|
||
* minidebug.c: Likewise.
|
||
* mips-tdep.c: Likewise.
|
||
* moxie-tdep.c: Likewise.
|
||
* nds32-tdep.c: Likewise.
|
||
* nios2-tdep.c: Likewise.
|
||
* nto-procfs.c: Likewise.
|
||
* parse.c: Likewise.
|
||
* ppc-sysv-tdep.c: Likewise.
|
||
* probe.c: Likewise.
|
||
* record-btrace.c: Likewise.
|
||
* remote.c: Likewise.
|
||
* rs6000-tdep.c: Likewise.
|
||
* rx-tdep.c: Likewise.
|
||
* s390-linux-nat.c: Likewise.
|
||
* s390-linux-tdep.c: Likewise.
|
||
* ser-tcp.c: Likewise.
|
||
* sh-tdep.c: Likewise.
|
||
* sh64-tdep.c: Likewise.
|
||
* source.c: Likewise.
|
||
* sparc-tdep.c: Likewise.
|
||
* symfile.c: Likewise.
|
||
* target-memory.c: Likewise.
|
||
* target.c: Likewise.
|
||
* tic6x-tdep.c: Likewise.
|
||
* tilegx-tdep.c: Likewise.
|
||
* tracefile-tfile.c: Likewise.
|
||
* tracepoint.c: Likewise.
|
||
* valprint.c: Likewise.
|
||
* value.c: Likewise.
|
||
* xtensa-tdep.c: Likewise.
|
||
* cli/cli-cmds.c: Likewise.
|
||
* compile/compile-object-load.c: Likewise.
|
||
|
||
2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||
|
||
* s390-linux-nat.c (PER_BIT, PER_EVENT_BRANCH, PER_EVENT_IFETCH)
|
||
(PER_EVENT_STORE, PER_EVENT_NULLIFICATION)
|
||
(PER_CONTROL_BRANCH_ADDRESS, PER_CONTROL_SUSPENSION)
|
||
(PER_CONTROL_ALTERATION): New macros.
|
||
(struct s390_debug_reg_state) <break_areas>: New member.
|
||
(s390_forget_process): Free break_areas as well.
|
||
(s390_linux_new_fork): Copy break_areas as well.
|
||
(s390_prepare_to_resume): Install hardware breakpoints.
|
||
(s390_can_use_hw_breakpoint): Indicate support for hardware
|
||
breakpoints.
|
||
(s390_insert_hw_breakpoint, s390_remove_hw_breakpoint): New
|
||
linux_nat target methods.
|
||
(_initialize_s390_nat): Register them.
|
||
|
||
2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||
|
||
* nat/linux-nat.h (lwp_is_stepping): New declaration.
|
||
* linux-nat.c (lwp_is_stepping): New function.
|
||
|
||
2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||
|
||
* s390-linux-nat.c (gdbcmd.h): New include.
|
||
(s390_show_debug_regs): New function.
|
||
(s390_stopped_by_watchpoint): Call it, if show_debug_regs is set.
|
||
(s390_prepare_to_resume): Likewise.
|
||
(_initialize_s390_nat): Register the command "maint set
|
||
show-debug-regs".
|
||
|
||
2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||
|
||
* s390-linux-nat.c (watch_areas): Remove variable. Replace by a
|
||
member of...
|
||
(struct s390_debug_reg_state): ...this. New struct.
|
||
(struct s390_process_info): New struct.
|
||
(s390_process_list): New variable.
|
||
(s390_find_process_pid, s390_add_process, s390_process_info_get)
|
||
(s390_get_debug_reg_state): New functions.
|
||
(s390_stopped_by_watchpoint): Now access the watch_areas VEC via
|
||
s390_get_debug_reg_state.
|
||
(s390_prepare_to_resume): Likewise.
|
||
(s390_insert_watchpoint): Likewise.
|
||
(s390_remove_watchpoint): Likewise.
|
||
(s390_forget_process, s390_linux_new_fork): New linux_nat target
|
||
methods.
|
||
(_initialize_s390_nat): Register them.
|
||
|
||
2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||
|
||
* s390-linux-nat.c (s390_watch_area): New typedef. Define a VEC.
|
||
(watch_base): Remove variable.
|
||
(watch_areas): New variable.
|
||
(s390_stopped_by_watchpoint): Transform operations on the
|
||
watch_base list to equivalent operations on the watch_areas VEC.
|
||
(s390_prepare_to_resume): Likewise.
|
||
(s390_insert_watchpoint): Likewise.
|
||
(s390_remove_watchpoint): Likewise.
|
||
|
||
2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||
|
||
* s390-linux-nat.c (s390_prepare_to_resume): Use advertised lwp
|
||
functions instead of accessing lwp_info structure members.
|
||
(s390_mark_per_info_changed): New function.
|
||
(s390_new_thread): Use it.
|
||
(s390_refresh_per_info_cb): New function.
|
||
(s390_refresh_per_info): Remove parameter. Refresh all lwps of
|
||
the current process.
|
||
(s390_insert_watchpoint): Adjust call to s390_refresh_per_info.
|
||
(s390_remove_watchpoint): Likewise.
|
||
|
||
2016-09-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||
|
||
* elfread.c (auxv.h): New include.
|
||
(elf_gnu_ifunc_resolve_addr): Pass HWCAP to ifunc resolver.
|
||
|
||
2016-09-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* remote.c (remote_notif_stop_ack, remote_wait_as)
|
||
(show_remote_cmd): Remove unneeded casts.
|
||
|
||
2016-09-06 Pedro Alves <palves@redhat.com>
|
||
|
||
* top.c (wait_sync_command_done): Don't assume current_ui doesn't
|
||
change across events. Restore the current UI before returning.
|
||
(gdb_readline_wrapper): Restore the current UI before returning.
|
||
|
||
2016-09-06 Pedro Alves <palves@redhat.com>
|
||
|
||
* event-top.c (restore_ui_cleanup): Now static.
|
||
(make_cleanup_restore_current_ui): New function.
|
||
(switch_thru_all_uis_init): Use it.
|
||
* infcall.c (call_thread_fsm_should_stop): Use it.
|
||
* infrun.c (fetch_inferior_event): Use it.
|
||
* top.c (new_ui_command): Use it.
|
||
* top.h (restore_ui_cleanup): Delete declaration.
|
||
(make_cleanup_restore_current_ui): New declaration.
|
||
|
||
2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
|
||
|
||
* i386-tdep.c (i386_floatformat_for_type): New function.
|
||
(i386_gdbarch_init): Install it.
|
||
* ppc-linux-tdep.c (ppc_floatformat_for_type): New function.
|
||
(ppc_linux_init_abi): Install it.
|
||
|
||
2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
|
||
|
||
* gdbarch.sh (floatformat_for_type): New gdbarch callback.
|
||
* gdbarch.h, gdbarch.c: Re-generate.
|
||
* arch-utils.h (default_floatformat_for_type): New prototype.
|
||
* arch-utils.c (default_floatformat_for_type): New function.
|
||
|
||
* doublest.c (floatformat_from_length): Remove.
|
||
(floatformat_from_type): Assume TYPE_FLOATFORMAT is non-NULL.
|
||
* gdbtypes.c (verify_floatformat): Require non-NULL format.
|
||
|
||
* dwarf2read.c (dwarf2_init_float_type): New function.
|
||
(read_base_type): Use it.
|
||
* stabsread.c (dbx_init_float_type): New function.
|
||
(read_sun_floating_type): Use it.
|
||
(read_range_type): Likewise.
|
||
|
||
2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
|
||
|
||
* ada-lang.c (ada_language_arch_info): Use gdbarch-provided
|
||
platform ABI floating-point formats for built-in types.
|
||
* d-lang.c (build_d_types): Likewise.
|
||
* f-lang.c (build_fortran_types): Likewise.
|
||
* m2-lang.c (build_m2_types): Likewise.
|
||
* mdebugread.c (basic_type): Likewise.
|
||
|
||
* go-lang.c (build_go_types): Use IEEE floating-point formats
|
||
for language built-in types as mandanted by the language.
|
||
* jv-lang.c (build_java_types): Likewise.
|
||
* rust-lang.c (rust_language_arch_info): Likewise.
|
||
* stabsread.c (rs6000_builtin_type): Likewise.
|
||
|
||
2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
|
||
|
||
* gdbtypes.c (init_type): Remove "char" special case.
|
||
(arch_integer_type): Likewise.
|
||
(gdbtypes_post_init): Set TYPE_NOSIGN for "char" type.
|
||
(objfile_type): Likewise.
|
||
* mdebugread.c (basic_type): Likewise.
|
||
* stabsread.c (rs6000_builtin_type): Likewise.
|
||
|
||
2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
|
||
|
||
* gdbtypes.h (enum type_flag_value): Remove.
|
||
Remove references to TYPE_FLAG_... in comments throughout.
|
||
* gdbtypes.c (recursive_dump_type): Do not print TYPE_FLAG_...
|
||
flags, print the corresponding TYPE_... access macro names.
|
||
Remove references to TYPE_FLAG_... in comments throughout.
|
||
* infcall.c: Remove references to TYPE_FLAG_... in comments.
|
||
* valprint.c: Likewise.
|
||
* gdb-gdb.py (class TypeFlag): No longer consider TYPE_FLAG_...
|
||
values, only TYPE_INSTANCE_FLAG_... values.
|
||
(class TypeFlagsPrinter): Likewise.
|
||
|
||
2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
|
||
|
||
* gdbtypes.h (init_type): Remove FLAGS argument. Move OBJFILE
|
||
argument to first position.
|
||
(init_integer_type): New prototype.
|
||
(init_character_type): Likewise.
|
||
(init_boolean_type): Likewise.
|
||
(init_float_type): Likewise.
|
||
(init_decfloat_type): Likewise.
|
||
(init_complex_type): Likewise.
|
||
(init_pointer_type): Likewise.
|
||
* gdbtypes.c (verify_floatflormat): New function.
|
||
(init_type): Remove FLAGS argument and processing. Move OBJFILE
|
||
argument to first position.
|
||
(init_integer_type): New function.
|
||
(init_character_type): Likewise.
|
||
(init_boolean_type): Likewise.
|
||
(init_float_type): Likewise.
|
||
(init_decfloat_type): Likewise.
|
||
(init_complex_type): Likewise.
|
||
(init_pointer_type): Likewise.
|
||
(arch_float_type): Use verify_floatflormat.
|
||
(objfile_type): Use init_..._type helpers instead of calling
|
||
init_type directly.
|
||
* dwarf2read.c (fixup_go_packaging): Update to changed init_type
|
||
prototype.
|
||
(read_namespace_type): Likewise.
|
||
(read_module_type): Likewise.
|
||
(read_typedef): Likewise.
|
||
(read_unspecified_type): Likewise.
|
||
(build_error_marker_type): Likewise.
|
||
(read_base_type): Use init_..._type helpers.
|
||
* mdebugread.c (basic_type): Use init_..._type helpers.
|
||
(parse_type): Update to changed init_type prototype.
|
||
(cross_ref): Likewise.
|
||
* stabsread.c (rs6000_builtin_type): Use init_..._type helpers.
|
||
(read_sun_builtin_type): Likewise.
|
||
(read_sun_floating_type): Likewise.
|
||
(read_range_type): Likewise. Also update to changed init_type
|
||
prototype.
|
||
|
||
2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
|
||
|
||
* gdbtypes.h (arch_decfloat_type): New prototype.
|
||
(arch_pointer_type): Likewise.
|
||
* gdbtypes.c (arch_decfloat_type): New function.
|
||
(arch_pointer_type): Likewise.
|
||
(gdbtypes_post_init): Use arch_decfloat_type.
|
||
* avr-tdep.c (avr_gdbarch_init): Use arch_pointer_type.
|
||
* ft32-tdep.c (ft32_gdbarch_init): Likewise.
|
||
* m32c-tdep.c (make_types): Likewise.
|
||
* rl78-tdep.c (rl78_gdbarch_init): Likewise.
|
||
|
||
2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
|
||
|
||
* gdbtypes.c (set_type_code): New function.
|
||
(init_type, arch_type): Use it.
|
||
|
||
2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
|
||
|
||
* ada-lang.c (ada_language_arch_info): Use gdbarch_long_double_bit
|
||
instead of gdbarch_double_bit for "long_long_float".
|
||
|
||
2016-09-05 Pedro Alves <palves@redhat.com>
|
||
|
||
* NEWS: Mention that a C++ compiler is now required.
|
||
* Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
|
||
(COMPILE.pre, CC_LD): Use CXX directly.
|
||
(INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
|
||
* acinclude.m4: Don't include build-with-cxx.m4.
|
||
* build-with-cxx.m4: Delete file.
|
||
* configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
|
||
* warning.m4: Assume $enable_build_with_cxx is yes.
|
||
* configure: Regenerate.
|
||
|
||
2016-09-05 Pedro Alves <palves@redhat.com>
|
||
|
||
PR backtrace/19927
|
||
* frame.c (get_frame_id): Compute the frame id if not computed
|
||
yet.
|
||
(unwind_to_current_frame): Delete.
|
||
(get_current_frame): Use get_prev_frame_always_1 to get the
|
||
current frame and assert that that always succeeds.
|
||
(get_prev_frame_if_no_cycle): Skip cycle detection if returning
|
||
the current frame.
|
||
|
||
2016-09-02 Tom Tromey <tom@tromey.com>
|
||
|
||
PR gdb/11616:
|
||
* dwarf2read.c (decode_locdesc): Handle DW_OP_form_tls_address.
|
||
* dwarf2loc.c (dwarf2_compile_expr_to_ax): Handle
|
||
DW_OP_form_tls_address.
|
||
(locexpr_describe_location_piece): Likewise.
|
||
* dwarf2expr.h (struct dwarf_expr_context_funcs): Update comment.
|
||
* dwarf2expr.c (execute_stack_op): Handle DW_OP_form_tls_address.
|
||
(ctx_no_get_tls_address): Mention DW_OP_form_tls_address.
|
||
* compile/compile-loc2c.c (struct insn_info): Update comment.
|
||
(compute_stack_depth_worker): Handle DW_OP_form_tls_address.
|
||
|
||
2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
|
||
|
||
* target.c (target_wait): Mention that the function's prototype
|
||
can be found at target/target.h.
|
||
* target.h (target_wait): Move prototype from here...
|
||
* target/target.h (target_wait): ... to here.
|
||
|
||
2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
|
||
|
||
* fork-child.c (startup_inferior): Replace calls to target_resume
|
||
by target_continue{,_no_signal}, depending on the case.
|
||
* linux-nat.c (cleanup_target_stop): Call
|
||
target_continue_no_signal instead of target_resume.
|
||
* procfs.c (procfs_wait): Likewise.
|
||
* target.c (target_continue): New function.
|
||
* target/target.h (target_continue): New prototype.
|
||
|
||
2016-08-31 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* record-full.c (record_full_insert_breakpoint): Fix typo.
|
||
|
||
2016-08-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||
|
||
* thread.c (tp_array_compar): Insert missing parentheses.
|
||
|
||
2016-08-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||
|
||
* xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Replace
|
||
designated initializer list by plain initializer list, for C++
|
||
compliance.
|
||
|
||
2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
|
||
|
||
* aarch64-linux-nat.c (ps_get_thread_area): Remove const from
|
||
struct ps_prochandle.
|
||
* amd64-linux-nat.c (ps_get_thread_area): Likewise.
|
||
* arm-linux-nat.c (ps_get_thread_area): Likewise.
|
||
* gdb_proc_service.h (ps_get_thread_area): Likewise.
|
||
* i386-linux-nat.c (ps_get_thread_area): Likewise.
|
||
* m68klinux-nat.c (ps_get_thread_area): Likewise.
|
||
* mips-linux-nat.c (ps_get_thread_area): Likewise.
|
||
* nat/aarch64-linux.c (aarch64_ps_get_thread_area): Likewise.
|
||
* nat/aarch64-linux.h (aarch64_ps_get_thread_area): Likewise.
|
||
* xtensa-linux-nat.c (ps_get_thread_area): Likewise.
|
||
|
||
2016-08-24 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* infcmd.c (set_inferior_io_terminal): Set inferior terminal to
|
||
NULL if terminal_name is an empty string.
|
||
(_initialize_infcmd): Make the argument of "set inferior-tty"
|
||
optional, mention it in the help doc.
|
||
|
||
2016-08-24 Carl Love <cel@us.ibm.com>
|
||
|
||
* rs6000-tdep.c (rs6000_gdbarch_init): Remove call
|
||
set_gdbarch_deprecated_fp_regnum() architecture
|
||
initialization function.
|
||
|
||
2016-08-23 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* stack.c (parse_frame_specification): Fix typo in comment.
|
||
|
||
2016-08-23 Pedro Alves <palves@redhat.com>
|
||
|
||
PR gdb/20494
|
||
* inflow.c (our_terminal_info, initial_gdb_ttystate): Update
|
||
comments.
|
||
(enum gdb_has_a_terminal_flag_enum, gdb_has_a_terminal_flag):
|
||
Delete.
|
||
(set_initial_gdb_ttystate): Record our_terminal_info here too,
|
||
instead of ...
|
||
(gdb_has_a_terminal): ... here. Reimplement in terms of
|
||
initial_gdb_ttystate. Make static.
|
||
* terminal.h (gdb_has_a_terminal): Delete declaration.
|
||
(set_initial_gdb_ttystate): Add comment.
|
||
* top.c (show_interactive_mode): Use input_interactive_p instead
|
||
of gdb_has_a_terminal.
|
||
|
||
2016-08-22 Pedro Alves <palves@redhat.com>
|
||
|
||
PR gdb/20505
|
||
* linux-tdep.c (linux_vsyscall_range_raw): For core inferiors,
|
||
find the vDSO's start address with AT_SYSINFO_EHDR too, and
|
||
determine the vDSO's size by finding the PT_LOAD segment that
|
||
matches AT_SYSINFO_EHDR.
|
||
|
||
2016-08-19 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* aarch64-tdep.c (aarch64_analyze_prologue): Handle register
|
||
based STP instruction.
|
||
|
||
2016-08-19 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* completer.c (linespec_location_completer): Make file_to_match
|
||
null-terminated.
|
||
|
||
2016-08-19 Pedro Alves <palves@redhat.com>
|
||
|
||
* amd64-tdep.c (amd64_relocate_instruction) <callq>: Handle return
|
||
addresses over 0x7fffffff.
|
||
|
||
2016-08-18 Carl Love <cel@us.ibm.com>
|
||
|
||
* MAINTANERS Write After Approval): Add "Carl Love".
|
||
|
||
2016-08-18 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
|
||
|
||
* rs6000-tdep.c (ppc_process_record_op31): Handle HTM instructions.
|
||
|
||
2016-08-17 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* inferior.c (remove_inferior_command): Fix error message.
|
||
|
||
2016-08-17 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* inferior.c (exit_inferior_1): Remove comment.
|
||
|
||
2016-08-15 Matthew Wahab <matthew.wahab@arm.com>
|
||
|
||
PR gdb/20457
|
||
* gdb_proc_service.h: Add an include of gregset.h
|
||
[!HAVE_PROC_SERVICE_H]: Remove the include of gregset.h.
|
||
|
||
2016-08-15 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* location.c (explicit_location_lex_one): Compare the return
|
||
value of strncmp with zero. Don't check (*inp)[9]. Increment
|
||
*inp by 8.
|
||
|
||
2016-08-11 Pedro Alves <palves@redhat.com>
|
||
|
||
PR gdb/20413
|
||
* nat/linux-ptrace.c: Include <sys/procfs.h> instead of
|
||
"gregset.h".
|
||
|
||
2016-08-10 Pedro Alves <palves@redhat.com>
|
||
|
||
PR gdb/19187
|
||
* record-full.c (record_full_remove_breakpoint): Don't remove the
|
||
breakpoint from the record_full_breakpoints VEC if we're detaching
|
||
the breakpoint from a fork child.
|
||
|
||
2016-08-10 Pedro Alves <palves@redhat.com>
|
||
|
||
PR gdb/19187
|
||
* break-catch-sig.c (signal_catchpoint_remove_location): Adjust
|
||
interface.
|
||
* break-catch-syscall.c (remove_catch_syscall):
|
||
* breakpoint.c (enum remove_bp_reason): Moved to breakpoint.h.
|
||
(remove_breakpoint_1): Pass 'reason' down.
|
||
(remove_catch_fork, remove_catch_vfork, remove_catch_solib)
|
||
(remove_catch_exec, remove_watchpoint, remove_masked_watchpoint)
|
||
(base_breakpoint_remove_location, bkpt_remove_location)
|
||
(bkpt_probe_remove_location, bkpt_probe_remove_location): Adjust
|
||
interface.
|
||
* breakpoint.h (enum remove_bp_reason): Moved here from
|
||
breakpoint.c.
|
||
(struct breakpoint_ops) <remove_location>: Add 'reason' parameter.
|
||
* corelow.c (core_remove_breakpoint): New function.
|
||
(init_core_ops): Install it as to_remove_breakpoint method.
|
||
* exec.c (exec_remove_breakpoint): New function.
|
||
(init_exec_ops): Install it as to_remove_breakpoint method.
|
||
* mem-break.c (memory_remove_breakpoint): Adjust interface.
|
||
* record-btrace.c (record_btrace_remove_breakpoint): Adjust
|
||
interface.
|
||
* record-full.c (record_full_remove_breakpoint)
|
||
(record_full_core_remove_breakpoint): Adjust interface.
|
||
* remote.c (remote_remove_breakpoint): Adjust interface.
|
||
* target-debug.h (target_debug_print_enum_remove_bp_reason): New
|
||
macro.
|
||
* target-delegates.c: Regenerate.
|
||
* target.c (target_remove_breakpoint): Add 'reason' parameter.
|
||
* target.h (struct target_ops) <to_remove_breakpoint>: Add
|
||
'reason' parameter.
|
||
(target_remove_breakpoint, memory_remove_breakpoint): Add 'reason'
|
||
parameter.
|
||
|
||
2016-08-10 Pedro Alves <palves@redhat.com>
|
||
|
||
PR gdb/19187
|
||
* breakpoint.c (insertion_state_t): Delete.
|
||
(enum remove_bp_reason): New.
|
||
(detach_breakpoints, remove_breakpoint_1, remove_breakpoint):
|
||
Adjust to use enum remove_bp_reason instead of insertion_state_t.
|
||
|
||
2016-08-10 Pedro Alves <palves@redhat.com>
|
||
|
||
PR gdb/19187
|
||
* breakpoint.c (remove_breakpoint): Remove 'is' parameter and
|
||
always pass mark_uninserted to remove_breakpoint_1.
|
||
(insert_breakpoint_locations, remove_breakpoints)
|
||
(remove_breakpoints_pid, update_global_location_list): Update
|
||
callers.
|
||
|
||
2016-08-10 Руслан Ижбулатов <lrn1986@gmail.com>
|
||
Pedro Alves <palves@redhat.com>
|
||
|
||
* windows-nat.c (MS_VC_EXCEPTION): New define.
|
||
(handle_exception_result): New enum.
|
||
(windows_delete_thread): Free the thread's name.
|
||
(handle_exception): Handle MS_VC_EXCEPTION.
|
||
(get_windows_debug_event): Handle HANDLE_EXCEPTION_IGNORED.
|
||
(windows_thread_name): New function.
|
||
(windows_target): Install it as to_thread_name method.
|
||
* NEWS: Mention the thread naming support on MS-Windows.
|
||
|
||
2016-08-10 Pedro Alves <palves@redhat.com>
|
||
|
||
* common/signals-state-save-restore.c
|
||
(save_original_signals_state, restore_original_signals_state):
|
||
Wrap perror_with_name arguments with '()'.
|
||
|
||
2016-08-09 Pedro Alves <palves@redhat.com>
|
||
|
||
PR gdb/20418
|
||
* event-top.c (ui_register_input_event_handler)
|
||
(ui_unregister_input_event_handler): New functions.
|
||
(async_enable_stdin): Register input in the event loop.
|
||
(async_disable_stdin): Unregister input from the event loop.
|
||
(gdb_setup_readline): Register input in the event loop.
|
||
* infrun.c (check_curr_ui_sync_execution_done): Register input in
|
||
the event loop.
|
||
* target.c (target_terminal_inferior): Don't unregister input from
|
||
the event loop.
|
||
(target_terminal_ours): Don't register input in the event loop.
|
||
* target.h (target_terminal_inferior)
|
||
(target_terminal_ours_for_output, target_terminal_ours): Update
|
||
comments.
|
||
* top.h (ui_register_input_event_handler)
|
||
(ui_unregister_input_event_handler): New declarations.
|
||
* utils.c (ui_unregister_input_event_handler_cleanup)
|
||
(prepare_to_handle_input): New functions.
|
||
(defaulted_query, prompt_for_continue): Use
|
||
prepare_to_handle_input.
|
||
|
||
2016-08-09 Pedro Alves <palves@redhat.com>
|
||
|
||
PR mi/20431
|
||
* mi/mi-main.c (mi_execute_command): Enable input and set prompt
|
||
state to PROMPT_NEEDED.
|
||
|
||
2016-08-09 Pedro Alves <palves@redhat.com>
|
||
|
||
PR gdb/18653
|
||
* Makefile.in (SFILES): Add
|
||
common/signals-state-save-restore.c.
|
||
(HFILES_NO_SRCDIR): Add common/signals-state-save-restore.h.
|
||
(COMMON_OBS): Add signals-state-save-restore.o.
|
||
(signals-state-save-restore.o): New rule.
|
||
* configure: Regenerate.
|
||
* fork-child.c: Include "signals-state-save-restore.h".
|
||
(fork_inferior): Call restore_original_signals_state.
|
||
* main.c: Include "signals-state-save-restore.h".
|
||
(captured_main): Call save_original_signals_state.
|
||
* common/common.m4: Add sigaction to AC_CHECK_FUNCS checks.
|
||
* common/signals-state-save-restore.c: New file.
|
||
* common/signals-state-save-restore.h: New file.
|
||
|
||
2016-08-09 Pedro Alves <palves@redhat.com>
|
||
|
||
* value.c (unpack_value_bitfield): Skip unpacking if the parent
|
||
has no contents buffer to begin with.
|
||
|
||
2016-08-08 Pedro Alves <palves@redhat.com>
|
||
|
||
* features/i386/amd64-avx-mpx-linux.c: Regenerate.
|
||
* features/i386/amd64-avx-mpx.c: Regenerate.
|
||
* features/i386/i386-avx-mpx-linux.c: Regenerate.
|
||
* features/i386/i386-avx-mpx.c: Regenerate.
|
||
|
||
2016-08-05 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* event-top.h (cli_command_loop): Remove.
|
||
|
||
2016-08-05 Pedro Alves <palves@redhat.com>
|
||
|
||
PR remote/20398
|
||
* remote-fileio.c (remote_fileio_quit_handler): Check the quit
|
||
flag before calling quit.
|
||
|
||
2016-08-05 Pedro Alves <palves@redhat.com>
|
||
|
||
* NEWS: Mention that GDB and GDBserver build with a C++ compiler
|
||
by default.
|
||
|
||
2016-08-05 Pedro Alves <palves@redhat.com>
|
||
|
||
* build-with-cxx.m4: Change help string to be in terms of
|
||
--disable-build-with-cxx.
|
||
* configure: Regenerate.
|
||
|
||
2016-08-04 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* aarch64-linux-nat.c (tdesc_arm_with_vfpv3): Remove the
|
||
declaration.
|
||
(aarch64_linux_read_description): Remove code on getting
|
||
auxv and select target description on it. Select target
|
||
description by the result of NT_ARM_VFP ptrace request.
|
||
|
||
2016-08-03 Tom Tromey <tom@tromey.com>
|
||
|
||
PR python/18565:
|
||
* python/py-frame.c (frapy_function): Use find_frame_funname.
|
||
|
||
2016-08-03 Tom Tromey <tom@tromey.com>
|
||
|
||
* stack.c (find_frame_funname): Avoid any possible leak in case
|
||
cp_remove_params can throw.
|
||
|
||
2016-08-03 Tom Tromey <tom@tromey.com>
|
||
|
||
* NEWS: Mention new Python breakpoint events.
|
||
|
||
2016-08-02 Tom Tromey <tom@tromey.com>
|
||
|
||
* MAINTAINERS (Core): Add self as Rust maintainer.
|
||
|
||
2016-08-01 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* NEWS: Create a new section for the next release branch.
|
||
Rename the section of the current branch, now that it has
|
||
been cut.
|
||
|
||
2016-08-01 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
GDB 7.12 branch created (41bfcd638a4e0e48b96ce4de2845372dea481322):
|
||
* version.in: Bump version to 7.12.50.DATE-git.
|
||
|
||
2016-07-27 Alan Modra <amodra@gmail.com>
|
||
|
||
* amd64-darwin-tdep.c: Don't include libbfd.h.
|
||
* i386-darwin-tdep.c: Likewise.
|
||
* rs6000-nat.c: Likewise.
|
||
* rs6000-tdep.c: Likewise.
|
||
|
||
2016-07-26 Tom Tromey <tom@tromey.com>
|
||
|
||
* symtab.c (register_symbol_computed_impl): Update.
|
||
PR python/20190:
|
||
* value.h (symbol_read_needs): Declare.
|
||
(symbol_read_needs_frame): Add comment.
|
||
* symtab.h (struct symbol_computed_ops) <read_variable>: Update
|
||
comment.
|
||
<get_symbol_read_needs>: Rename. Change return type.
|
||
* findvar.c (symbol_read_needs): New function.
|
||
(symbol_read_needs_frame): Rewrite.
|
||
(default_read_var_value): Use symbol_read_needs.
|
||
* dwarf2loc.c (struct symbol_needs_baton): Rename.
|
||
<needs>: Renamed from needs_frame. Changed type.
|
||
(needs_frame_read_addr_from_reg, symbol_needs_get_reg_value)
|
||
(symbol_needs_read_mem, symbol_needs_frame_base)
|
||
(symbol_needs_frame_cfa, symbol_needs_tls_address)
|
||
(symbol_needs_dwarf_call): Rename.
|
||
(needs_dwarf_reg_entry_value): Update.
|
||
(symbol_needs_ctx_funcs, dwarf2_loc_desc_get_symbol_read_needs):
|
||
Rename and update.
|
||
(locexpr_get_symbol_read_needs, loclist_symbol_needs): Likewise.
|
||
(dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
|
||
* defs.h (enum symbol_needs_kind): New.
|
||
|
||
2016-07-26 Pedro Alves <palves@redhat.com>
|
||
|
||
* nat/linux-ptrace.c: Include "gregset.h".
|
||
(linux_ptrace_test_ret_to_nx): Use PTRACE_GETREGS instead of
|
||
PTRACE_PEEKUSER.
|
||
|
||
2016-07-26 Pedro Alves <palves@redhat.com>
|
||
|
||
* amd64-linux-nat.c (amd64_linux_siginfo_fixup): Rename 'native'
|
||
parameter to 'ptrace'.
|
||
* nat/amd64-linux-siginfo.c (GDB_SI_SIZE): New define.
|
||
(nat_uptr_t): New an unsigned long.
|
||
(nat_clock_t): Remove attribute __aligned__.
|
||
(struct nat_timeval): Delete.
|
||
(nat_siginfo_t): Remove attribute __aligned__.
|
||
(ptrace_siginfo_t): Define.
|
||
(compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
|
||
(compat_x32_siginfo_from_siginfo)
|
||
(siginfo_from_compat_x32_siginfo): Make 'from' parameter const.
|
||
Convert through a ptrace_siginfo_t instead of a nat_siginfo_t.
|
||
Remove casts.
|
||
(amd64_linux_siginfo_fixup_common): Rename 'native' parameter to
|
||
'ptrace'. Remove static assertions.
|
||
(top level): New static assertions.
|
||
|
||
2016-07-25 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* top.h (make_delete_ui_cleanup): New declaration.
|
||
* top.c (delete_ui_cleanup): New function.
|
||
(make_delete_ui_cleanup): New function.
|
||
(new_ui_command): Create restore_ui cleanup earlier, create a
|
||
delete_ui cleanup and discard it on success.
|
||
|
||
2016-07-25 Pedro Alves <palves@redhat.com>
|
||
Jan Kratochvil <jan.kratochvil@redhat.com>
|
||
|
||
* nat/linux-procfs.c (parse_proc_status_state): Handle lowercase
|
||
't'.
|
||
|
||
2016-07-25 Pedro Alves <palves@redhat.com>
|
||
|
||
* nat/linux-procfs.c (enum proc_state): New enum.
|
||
(parse_proc_status_state): New function.
|
||
(linux_proc_pid_get_state): Replace output string buffer parameter
|
||
with an output proc_state parameter. Use parse_proc_status_state.
|
||
(linux_proc_pid_is_gone): Adjust to use proc_state values.
|
||
(linux_proc_pid_has_state): Change type of 'state' parameter; now
|
||
an enum proc_state. Adjust to linux_proc_pid_get_state interface
|
||
change.
|
||
(linux_proc_pid_is_stopped)
|
||
(linux_proc_pid_is_trace_stopped_nowarn)
|
||
(linux_proc_pid_is_zombie_maybe_warn): Adjust to
|
||
linux_proc_pid_get_state interface change.
|
||
|
||
2016-07-25 Tim Wiederhake <tim.wiederhake@intel.com>
|
||
|
||
* MAINTAINERS (Write After Approval): Add Tim Wiederhake
|
||
|
||
2016-07-25 Tim Wiederhake <tim.wiederhake@intel.com>
|
||
|
||
* NEWS: Resume btrace on reconnect.
|
||
* record-btrace.c: Added record-btrace.h include.
|
||
(record_btrace_open): Split into this and ...
|
||
(record_btrace_push_target): ... this.
|
||
(record_btrace_disconnect): New function.
|
||
(init_record_btrace_ops): Use record_btrace_disconnect.
|
||
* record-btrace.h: New file.
|
||
* remote.c: Added record-btrace.h include.
|
||
(remote_start_remote): Check recording status.
|
||
(remote_btrace_maybe_reopen): New function.
|
||
|
||
2016-07-23 Gabriel Krisman Bertazi <gabriel@krisman.be>
|
||
|
||
* xml-syscall.c (get_syscalls_by_group): New.
|
||
(get_syscall_group_names): New.
|
||
(struct syscall_group_desc): New structure to store group data.
|
||
(struct syscalls_info): Include field to store the group list.
|
||
(sysinfo_free_syscall_group_desc): New.
|
||
(free_syscalls_info): Free group list.
|
||
(syscall_group_create_syscall_group_desc): New.
|
||
(syscall_group_add_syscall): New.
|
||
(syscall_create_syscall_desc): Add syscall to its groups.
|
||
(syscall_start_syscall): Load group attribute.
|
||
(syscall_group_get_group_by_name): New.
|
||
(xml_list_syscalls_by_group): New.
|
||
(xml_list_of_groups): New.
|
||
* xml-syscall.h (get_syscalls_by_group): Export function
|
||
to retrieve a list of syscalls filtered by the group name.
|
||
(get_syscall_group_names): Export function to retrieve the list
|
||
of syscall groups.
|
||
* break-catch-syscall.c (catch_syscall_split_args): Verify if
|
||
argument is a syscall group and expand it to a list of syscalls
|
||
when creating catchpoints.
|
||
(catch_syscall_completer): Add word completion for system call
|
||
groups.
|
||
* configure.ac: Include dependency for xsltproc when building
|
||
in maintainer-mode.
|
||
* break-catch-syscall.c (_initialize_breakpoint): Update catch
|
||
syscall command documentation.
|
||
* NEWS: Include section about catching groups of syscalls.
|
||
* configure: Regenerate.
|
||
* data-directory/Makefile.in: Generate syscall xml when building
|
||
in maintainer mode.
|
||
* syscalls/gdb-syscalls.dtd: Include group attribute to the
|
||
syscall element.
|
||
* syscalls/apply-defaults.xsl: New.
|
||
* syscalls/linux-defaults.xml.in: New.
|
||
* syscalls/aarch64-linux.xml: Rename to aarch64-linux.xml.in.
|
||
* syscalls/amd64-linux.xml: Rename to amd64-linux.xml.in.
|
||
* syscalls/arm-linux.xml: Rename to arm-linux.xml.in.
|
||
* syscalls/bfin-linux.xml: Rename to bfin-linux.xml.in.
|
||
* syscalls/i386-linux.xml: Rename to i386-linux.xml.in.
|
||
* syscalls/mips-n32-linux.xml: Rename to mips-n32-linux.xml.in.
|
||
* syscalls/mips-n64-linux.xml: Rename to mips-n64-linux.xml.in.
|
||
* syscalls/mips-o32-linux.xml: Rename to mips-o32-linux.xml.in.
|
||
* syscalls/ppc-linux.xml: Rename to ppc-linux.xml.in.
|
||
* syscalls/ppc64-linux.xml: Rename to ppc64-linux.xml.in.
|
||
* syscalls/s390-linux.xml: Rename to s390-linux.xml.in.
|
||
* syscalls/s390x-linux.xml: Rename to s390x-linux.xml.in.
|
||
* syscalls/sparc-linux.xml: Rename to sparc-linux.xml.in.
|
||
* syscalls/sparc64-linux.xml: Rename to sparc64-linux.xml.in.
|
||
* syscalls/aarch64-linux.xml: Regenerate.
|
||
* syscalls/amd64-linux.xml: Regenerate.
|
||
* syscalls/arm-linux.xml: Regenerate.
|
||
* syscalls/i386-linux.xml: Regenerate.
|
||
* syscalls/mips-n32-linux.xml: Regenerate.
|
||
* syscalls/mips-n64-linux.xml: Regenerate.
|
||
* syscalls/mips-o32-linux.xml: Regenerate.
|
||
* syscalls/ppc-linux.xml: Regenerate.
|
||
* syscalls/ppc64-linux.xml: Regenerate.
|
||
* syscalls/s390-linux.xml: Regenerate.
|
||
* syscalls/s390x-linux.xml: Regenerate.
|
||
* syscalls/sparc-linux.xml: Regenerate.
|
||
* syscalls/sparc64-linux.xml: Regenerate.
|
||
|
||
2016-07-23 Andrew Pinski <apinski@cavium.com>
|
||
|
||
* nat/aarch64-linux-hw-point.c
|
||
(aarch64_linux_get_debug_reg_capacity): Handle
|
||
ARMv8.1 and ARMv8.2 debug versions.
|
||
* nat/aarch64-linux-hw-point.h
|
||
(AARCH64_DEBUG_ARCH_V8_1): New define.
|
||
(AARCH64_DEBUG_ARCH_V8_2): New define.
|
||
|
||
2016-06-30 Руслан Ижбулатов <lrn1986@gmail.com>
|
||
|
||
PR gdb/14529
|
||
* windows-nat.c (signal_event_command): New command 'signal-event'
|
||
for W32 JIT debug support.
|
||
* NEWS: Add an entry about the new 'signal-event' command.
|
||
|
||
2016-07-22 Tom Tromey <tom@tromey.com>
|
||
|
||
PR rust/20162:
|
||
* dwarf2read.c (scan_partial_symbols) <DW_TAG_structure_type>:
|
||
Call scan_partial_symbols for children when reading a Rust CU.
|
||
(dwarf2_physname): Ignore invalid DW_AT_linkage_name generated by
|
||
rustc.
|
||
(process_structure_scope) <DW_TAG_subprogram>: Call
|
||
read_func_scope for Rust.
|
||
|
||
2016-07-22 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* ctf.c (ctf_traceframe_info): Call bt_ctf_get_uint64 rather than
|
||
bt_ctf_get_int64.
|
||
|
||
2016-07-21 Tom Tromey <tom@tromey.com>
|
||
|
||
* rust-lang.c (rust_tuple_struct_type_p): Return false for empty
|
||
structs.
|
||
* rust-exp.y (struct_expr_list): Allow empty elements.
|
||
|
||
2016-07-21 Tom Tromey <tom@tromey.com>
|
||
|
||
* configure: Rebuild.
|
||
* warning.m4 (AM_GDB_WARNINGS) <build_warnings>: Add
|
||
-Wunused-but-set-parameter, -Wunused-but-set-variable.
|
||
|
||
2016-07-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* go32-nat.c (go32_create_inferior): Add cast.
|
||
* ser-go32.c (dos_noop): Delete.
|
||
(dos_flush_output, dos_setparity, dos_drain_output): New
|
||
functions.
|
||
(dos_write): Add cast.
|
||
(dos_ops): Use dos_flush_output, dos_setparity and
|
||
dos_drain_output.
|
||
* top.c (do_chdir_cleanup): Add cast.
|
||
|
||
2016-07-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* windows-nat.c (handle_exception): Remove "th".
|
||
|
||
2016-07-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* varobj.c (varobj_value_get_print_value): Move "gdbarch" to block
|
||
scope that uses it.
|
||
|
||
2016-07-20 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* fbsd-nat.c (fbsd_enable_proc_events): Enable "PTRACE_VFORK"
|
||
events.
|
||
(fbsd_pending_vfork_done): Only define if "PTRACE_VFORK" is not
|
||
defined.
|
||
(fbsd_add_vfork_done): Likewise.
|
||
(fbsd_is_vfork_done_pending): Likewise.
|
||
(fbsd_next_vfork_done): Likewise.
|
||
(fbsd_resume): Only ignore pending vfork done events if
|
||
"PTRACE_VFORK" is not defined.
|
||
(fbsd_wait): Only look for pending vfork done events if
|
||
"PTRACE_VFORK" is not defined.
|
||
[PTRACE_VFORK]: Handle "PL_FLAG_VFORKED" and "PL_FLAG_VFORK_DONE"
|
||
events.
|
||
(fbsd_follow_fork): Only fake a vfork done event if "PTRACE_VFORK"
|
||
is not defined.
|
||
|
||
2016-07-20 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* fbsd-nat.c (fbsd_wait): Use "fbsd_enable_proc_events" on
|
||
new child processes.
|
||
|
||
2016-07-20 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* fbsd-nat.c (fbsd_enable_lwp_events): Remove function.
|
||
(fbsd_enable_proc_events): New function.
|
||
(fbsd_enable_follow_fork): Remove function.
|
||
(fbsd_post_startup_inferior): Use "fbsd_enable_proc_events".
|
||
(fbsd_post_attach): Likewise.
|
||
|
||
2016-07-15 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* common/signals.c (gdb_signal_from_host): Handle SIGLIBRT.
|
||
(do_gdb_signal_to_host): Likewise.
|
||
* infrun.c (_initialize_infrun): Pass GDB_SIGNAL_LIBRT through to
|
||
programs.
|
||
* proc-events.c (signal_table): Add entry for SIGLIBRT.
|
||
|
||
2016-07-14 Tom Tromey <tom@tromey.com>
|
||
|
||
* python/py-breakpoint.c (gdbpy_breakpoint_deleted): Add missing
|
||
newline.
|
||
|
||
2016-07-14 Tom Tromey <tom@tromey.com>
|
||
|
||
* mips-tdep.c (micromips_scan_prologue): Remove "frame_addr".
|
||
(mips_o32_push_dummy_call): Remove "stack_used_p".
|
||
* aarch64-tdep.c (aarch64_record_data_proc_imm): Remove
|
||
"insn_bit28".
|
||
* rust-lang.c (rust_print_type): Remove "len".
|
||
* rust-exp.y (super_name): Remove "current_len".
|
||
* python/py-framefilter.c (py_print_type): Remove "type".
|
||
* mdebugread.c (parse_partial_symbols): Remove
|
||
"past_first_source_file".
|
||
<N_SO>: Remove "valu", "first_so_symnum", "prev_textlow_not_set".
|
||
* m2-valprint.c (m2_print_unbounded_array): Remove
|
||
"content_type".
|
||
(m2_val_print): Remove "i".
|
||
* linespec.c (unexpected_linespec_error): Remove "cleanup".
|
||
* f-valprint.c (f_val_print): Remove "i".
|
||
* elfread.c (elf_symtab_read): Remove "offset".
|
||
* dwarf2-frame.c (dwarf2_fetch_cfa_info): Remove "addr_size".
|
||
* jit.c (jit_dealloc_cache): Remove "i" and "frame_arch".
|
||
|
||
2016-07-14 Tom Tromey <tom@tromey.com>
|
||
|
||
* arch-utils.c (default_skip_permanent_breakpoint): Remove
|
||
"bp_insn".
|
||
* disasm.c (do_assembly_only): Remove "num_displayed".
|
||
* dwarf2read.c (read_abbrev_offset): Remove "length".
|
||
(dwarf_decode_macro_bytes) <DW_MACINFO_vendor_ext>: Remove
|
||
"constant".
|
||
* m32c-tdep.c (make_regs): Remove "r2hl", "r3hl", and "intbhl".
|
||
* microblaze-tdep.c (microblaze_frame_cache): Remove "func".
|
||
* tracefile.c (trace_save): Remove "status".
|
||
|
||
2016-07-14 Tom Tromey <tom@tromey.com>
|
||
|
||
* symfile.c (simple_overlay_update_1): Remove initialization
|
||
of "size", and commented-out code.
|
||
(simple_overlay_update): Likewise.
|
||
|
||
2016-07-14 Tom Tromey <tom@tromey.com>
|
||
|
||
* tui/tui-winsource.c (tui_show_source_line): Use getcurx.
|
||
* tui/tui-io.c (tui_puts): Use getcurx.
|
||
(tui_redisplay_readline): Likewise.
|
||
|
||
2016-07-14 Tom Tromey <tom@tromey.com>
|
||
|
||
* inflow.c (child_terminal_ours_1): Use ATTRIBUTE_UNUSED.
|
||
|
||
2016-07-14 Tom Tromey <tom@tromey.com>
|
||
|
||
* corefile.c (reopen_exec_file): Only examine st.st_mtime if stat
|
||
succeeded.
|
||
|
||
2016-07-13 Tom Tromey <tom@tromey.com>
|
||
|
||
PR python/15620, PR python/18620:
|
||
* python/py-evts.c (gdbpy_initialize_py_events): Call
|
||
add_new_registry for new events.
|
||
* python/py-events.h (events_object) <breakpoint_created,
|
||
breakpoint_deleted, breakpoint_modified>: New fields.
|
||
* python/py-breakpoint.c (gdbpy_breakpoint_created): Emit the
|
||
breakpoint changed event.
|
||
(gdbpy_breakpoint_deleted): Emit the breakpoint deleted event.
|
||
(gdbpy_breakpoint_modified): New function.
|
||
(gdbpy_initialize_breakpoints): Attach to the breakpoint modified
|
||
observer.
|
||
|
||
2016-07-13 Tom Tromey <tom@tromey.com>
|
||
|
||
PR python/17698:
|
||
* NEWS: Update.
|
||
* python/py-breakpoint.c (bppy_get_pending): New function.
|
||
(breakpoint_object_getset): Add entry for "pending".
|
||
* breakpoint.h (pending_breakpoint_p): Declare.
|
||
* breakpoint.c (pending_breakpoint_p): New function.
|
||
|
||
2016-07-13 Tom Tromey <tom@tromey.com>
|
||
|
||
* python/py-breakpoint.c (bppy_get_visibility)
|
||
(gdbpy_breakpoint_created): Use user_breakpoint_p.
|
||
|
||
2016-07-13 Tom Tromey <tom@tromey.com>
|
||
|
||
PR cli/18053:
|
||
* jit.c (jit_reader_load_command): Use tilde_expand.
|
||
(_initialize_jit): Fix help for jit-reader-unload. Set completer
|
||
for new commands.
|
||
|
||
2016-07-12 Tom Tromey <tom@tromey.com>
|
||
|
||
PR python/19293:
|
||
* python/lib/gdb/command/unwinders.py (do_enable_unwinder): Call
|
||
gdb.invalidate_cached_frames.
|
||
* python/lib/gdb/unwinder.py (register_unwinder): Call
|
||
gdb.invalidate_cached_frames.
|
||
* python/python.c (gdbpy_invalidate_cached_frames): New function.
|
||
(python_GdbMethods): Add entry for invalidate_cached_frames.
|
||
|
||
2016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
|
||
|
||
* cp-namespace.c (cp_lookup_bare_symbol): Initialize
|
||
lang_this.symbol.
|
||
|
||
2016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
|
||
|
||
* cp-namespace.c (cp_lookup_bare_symbol): Use language passed as
|
||
parameter to look for the symbol "this".
|
||
|
||
|
||
2016-07-06 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* h8300-tdep.c (h8300_print_register): Remove extraneous parentheses.
|
||
|
||
2016-07-06 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* ada-lang.c (ada_unpack_from_contents): Use unsigned constants with
|
||
left shifts.
|
||
|
||
2016-07-06 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* sh64-tdep.c (sh64_analyze_prologue): Set "uses_fp" when setting
|
||
the MEDIA_FP_REGNUM register.
|
||
|
||
2016-07-06 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* score-tdep.c (score7_malloc_and_get_memblock): Remove check for
|
||
negative size.
|
||
|
||
2016-07-06 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* fbsd-nat.c (fbsd_is_vfork_done_pending): Fix return type.
|
||
|
||
2016-07-06 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* arm-tdep.c (arm_vfp_cprc_sub_candidate): Don't call
|
||
arm_vfp_cprc_sub_candidate for static field.
|
||
|
||
2016-07-06 Manish Goregaokar <manish@mozilla.com>
|
||
|
||
* rust-lang.c (rust_subscript): Allow subscripting pointers
|
||
|
||
2016-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||
|
||
* configure: Regenerate.
|
||
* configure.ac (HAVE_LIBBABELTRACE): Fix pos variable dereference.
|
||
|
||
2016-07-01 Don Breazeal <donb@codesourcery.com>
|
||
|
||
* remote.c (remote_get_memory_xfer_limit): New function.
|
||
* target-delegates.c: Regenerate.
|
||
* target.c (memory_xfer_partial): Call
|
||
target_ops.to_get_memory_xfer_limit.
|
||
* target.h (struct target_ops) <to_get_memory_xfer_limit>: New
|
||
member.
|
||
|
||
2016-07-01 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* fbsd-nat.c (struct fbsd_fork_child_info): Rename to ...
|
||
(struct fbsd_fork_info): ... this.
|
||
(struct fbsd_fork_info) <child>: Rename to ...
|
||
(struct fbsd_fork_info) <ptid>: ... this.
|
||
(fbsd_pending_children): Update type.
|
||
(fbsd_remember_child): Update type and field name.
|
||
(fbsd_is_child_pending): Likewise.
|
||
(fbsd_pending_vfork_done): New variable.
|
||
(fbsd_is_vfork_done_pending): New function.
|
||
(fbsd_next_vfork_done): New function.
|
||
(fbsd_resume): Don't resume processes with a pending vfork done
|
||
event.
|
||
(fbsd_wait): Report pending vfork done events.
|
||
(fbsd_follow_fork): Delay and record a pending vfork done event
|
||
for a vfork parent when detaching the child.
|
||
|
||
2016-07-01 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* fbsd-nat.c (super_resume): Move earlier next to "super_wait".
|
||
(resume_one_thread_cb): Move below fork following helper code.
|
||
(resume_all_threads_cb): Likewise.
|
||
(fbsd_resume): Likewise.
|
||
|
||
2016-07-01 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* fbsd-nat.c (fbsd_follow_fork): Only detach child if
|
||
"detach_fork" is true.
|
||
|
||
2016-07-01 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* x86bsd-nat.c: Include 'gdbthread.h'.
|
||
(x86bsd_dr_set): Set debug registers on all threads belonging to
|
||
the current inferior.
|
||
|
||
2016-07-01 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* Makefile.in [HFILES_NO_SRCDIR]: Replace 'amd64bsd-nat.h' with
|
||
'x86bsd-nat.h'.
|
||
* amd64bsd-nat.c: Include 'x86bsd-nat.h' instead of
|
||
'amd64bsd-nat.h'.
|
||
(amd64bsd_xsave_len): Rename and move to x86bsd-nat.c.
|
||
(amd64bsd_fetch_inferior_registers): Replace 'amd64bsd_xsave_len'
|
||
with 'x86bsd_xsave_len'.
|
||
(amd64bsd_store_inferior_registers): Likewise.
|
||
(amd64bsd_target): Inherit from x86bsd_target.
|
||
(amd64bsd_dr_get): Rename and move to x86bsd-nat.c.
|
||
(amd64bsd_dr_set): Likewise.
|
||
(amd64bsd_dr_set_control): Likewise.
|
||
(amd64bsd_dr_set_addr): Likewise.
|
||
(amd64bsd_dr_get_addr): Likewise.
|
||
(amd64bsd_dr_get_status): Likewise.
|
||
(amd64bsd_dr_get_control): Likewise.
|
||
* amd64fbsd-nat.c: Include 'x86bsd-nat.h' instead of
|
||
'amd64bsd-nat.h'.
|
||
(super_mourn_inferior): Move to x86bsd-nat.c.
|
||
(amd64fbsd_mourn_inferior): Rename and move to x86bsd-nat.c.
|
||
(amd64fbsd_read_description): Replace 'amd64bsd_xsave_len' with
|
||
'x86bsd_xsave_len'.
|
||
(_initialize_amd64fbsd_nat): Remove x86 watchpoint setup and
|
||
mourn_inferior' target op.
|
||
* config/i386/fbsd.mh (NATDEPFILES): Add x86bsd-nat.o.
|
||
* config/i386/fbsd64.mh: Likewise.
|
||
* config/i386/nbsd64.mh: Likewise.
|
||
* config/i386/nbsdelf.mh: Likewise.
|
||
* config/i386/obsd.mh: Likewise.
|
||
* config/i386/obsd64.mh: Likewise.
|
||
* i386bsd-nat.c: Include 'x86bsd-nat.h'.
|
||
(i386bsd_xsave_len): Rename and move to x86bsd-nat.c.
|
||
(i386bsd_fetch_inferior_registers): Replace 'i386bsd_xsave_len'
|
||
with 'x86bsd_xsave_len'.
|
||
(i386bsd_store_inferior_registers): Likewise.
|
||
(i386bsd_target): Inherit from x86bsd_target.
|
||
(i386bsd_dr_get): Rename and move to x86bsd-nat.c.
|
||
(i386bsd_dr_set): Likewise.
|
||
(i386bsd_dr_set_control): Likewise.
|
||
(i386bsd_dr_set_addr): Likewise.
|
||
(i386bsd_dr_get_addr): Likewise.
|
||
(i386bsd_dr_get_status): Likewise.
|
||
(i386bsd_dr_get_control): Likewise.
|
||
* i386bsd-nat.h (i386bsd_xsave_len): Remove.
|
||
(i386bsd_dr_set_control): Remove.
|
||
(i386bsd_dr_set_addr): Remove.
|
||
(i386bsd_dr_get_addr): Remove.
|
||
(i386bsd_dr_get_status): Remove.
|
||
(i386bsd_dr_get_control): Remove.
|
||
* i386fbsd-nat.c: Include 'x86bsd-nat.h'.
|
||
(i386fbsd_read_description): Replace 'i386bsd_xsave_len' with
|
||
'x86bsd_xsave_len'.
|
||
(_initialize_i386fbsd_nat): Remove x86 watchpoint setup and
|
||
mourn_inferior' target op.
|
||
* x86bsd-nat.c: New file.
|
||
* x86bsd-nat.h: New file.
|
||
|
||
2016-07-01 Pedro Alves <palves@redhat.com>
|
||
Tom Tromey <tom@tromey.com>
|
||
|
||
* jit.c (jit_reader_load_command): Call reinit_frame_cache and
|
||
jit_inferior_created_hook.
|
||
(jit_reader_unload_command): Call reinit_frame_cache and
|
||
jit_inferior_exit_hook.
|
||
* jit.c (struct jit_unwind_private) <registers>: Delete field.
|
||
<regcache>: New field.
|
||
(jit_unwind_reg_set_impl): Set the register's value in the
|
||
regcache. Free the passed-in gdb_reg_value.
|
||
(jit_dealloc_cache): Adjust to free the regcache.
|
||
(jit_frame_sniffer): Allocate a regcache instead of an array of
|
||
gdb_reg_value pointers.
|
||
(jit_frame_this_id): Adjust.
|
||
(jit_frame_prev_register): Read raw registers off of the regcache
|
||
instead of from the gdb_reg_value pointer array. Use
|
||
gdbarch_pseudo_register_read_value to read pseudo registers.
|
||
* regcache.c (regcache_raw_set_cached_value): New function,
|
||
factored out from ...
|
||
(regcache_raw_write): ... here.
|
||
* regcache.h (regcache_raw_set_cached_value): Declare.
|
||
|
||
2016-07-01 Pedro Alves <palves@redhat.com>
|
||
Antoine Tremblay <antoine.tremblay@ericsson.com>
|
||
|
||
* inf-ptrace.c (inf_ptrace_detach_success): New function, factored
|
||
out from ...
|
||
(inf_ptrace_detach): ... here.
|
||
* inf-ptrace.h (inf_ptrace_detach_success): New declaration.
|
||
* linux-nat.c (get_pending_status): Rename to ...
|
||
(get_detach_signal): ... this, and return a host signal instead of
|
||
filling in a wait status.
|
||
(detach_one_lwp): New function, factored out from detach_callback
|
||
and adjusted to handle detaching from a zombie thread.
|
||
(detach_callback): Skip the leader thread.
|
||
(linux_nat_detach): No longer defer to inf_ptrace_detach to detach
|
||
the leader thread, nor build a signal string to pass down.
|
||
Instead, use target_announce_detach, detach_one_lwp and
|
||
inf_ptrace_detach_success.
|
||
|
||
2016-07-01 Pedro Alves <palves@redhat.com>
|
||
|
||
* breakpoint.c (breakpoint_init_inferior): Discard watchpoint
|
||
locations.
|
||
* infcmd.c (detach_command): Call breakpoint_init_inferior.
|
||
|
||
2016-07-01 Pedro Alves <palves@redhat.com>
|
||
|
||
* darwin-nat.c (darwin_detach): Use target_announce_detach.
|
||
* inf-ptrace.c (inf_ptrace_detach): Likewise.
|
||
* nto-procfs.c (procfs_detach): Likewise.
|
||
* remote.c (remote_detach_1): Likewise.
|
||
* target.c (target_announce_detach): New function.
|
||
* target.h (target_announce_detach): New declaration.
|
||
|
||
2016-06-29 Tom Tromey <tom@tromey.com>
|
||
|
||
PR python/20129:
|
||
* python/lib/gdb/command/frame_filters.py (_do_enable_frame_filter)
|
||
(SetFrameFilterPriority._set_filter_priority): Use "frame_filter",
|
||
not "name".
|
||
|
||
2016-06-29 Tom Tromey <tom@tromey.com>
|
||
|
||
PR gdb/17210:
|
||
* target.c (free_memory_read_result_vector): Take a pointer to the
|
||
VEC as an argument.
|
||
(read_memory_robust): Install a cleanup for "result".
|
||
* mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update.
|
||
|
||
2016-06-29 Manish Goregaokar <manish@mozilla.com>
|
||
|
||
* rust-lang.c (rust_get_disr_info): Initialize saveptr to NULL.
|
||
|
||
2016-06-29 Manish Goregaokar <manish@mozilla.com>
|
||
|
||
* rust-lang.c (rust_get_disr_info): Use strtok_r instead of strsep.
|
||
|
||
2016-06-28 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* aarch64-tdep.c (aarch64_displaced_step_b): Use int64_t for
|
||
variable new_offset.
|
||
|
||
2016-06-27 Manish Goregaokar <manish@mozilla.com>
|
||
|
||
* rust-lang.c (rust_print_type, rust_decorations): Print unit
|
||
types as "()".
|
||
(rust_print_type): Omit return type for functions returning unit.
|
||
|
||
2016-06-25 Pierre-Marie de Rodat <derodat@adacore.com>
|
||
|
||
* python/py-breakpoint.c (bppy_init): Clear bppy_pending_object
|
||
when there is an error during the breakpoint creation.
|
||
|
||
2016-06-25 Tom Tromey <tom@tromey.com>
|
||
|
||
* rust-lang.c (rust_get_disr_info, rust_print_type): Fix
|
||
formatting.
|
||
|
||
2016-06-25 Manish Goregaokar <manish@mozilla.com>
|
||
|
||
PR gdb/20239
|
||
* rust-lang.c (rust_get_disr_info): Correctly interpret
|
||
NonZero-optimized enums of arbitrary depth.
|
||
(rust_print_type): Correctly print NonZero-optimized
|
||
enums.
|
||
|
||
2016-06-24 David Taylor <dtaylor@emc.com>
|
||
|
||
PR gdb/17520 Structure offset wrong when 1/4 GB or greater.
|
||
* c-lang.h: Change all parameters, variables, and struct or union
|
||
members used as struct or union fie3ld offsets from int to
|
||
LONGEST.
|
||
* c-valprint.c: Likewise.
|
||
* cp-abi.c: Likewise.
|
||
* cp-abi.h: Likewise.
|
||
* cp-valprint.c: Likewise.
|
||
* d-valprint.c: Likewise.
|
||
* dwarf2loc.c: Likewise.
|
||
* eval.c: Likewise.
|
||
* extension-priv.h: Likewise.
|
||
* extension.c: Likewise.
|
||
* extension.h: Likewise.
|
||
* findvar.c: Likewise.
|
||
* gdbtypes.h: Likewise.
|
||
* gnu-v2-abi.c: Likewise.
|
||
* gnu-v3-abi.c: Likewise.
|
||
* go-valprint.c: Likewise.
|
||
* guile/guile-internal.h: Likewise.
|
||
* guile/scm-pretty-print.c: Likewise.
|
||
* jv-valprint.c Likewise.
|
||
* opencl-lang.c: Likewise.
|
||
* p-lang.h: Likewise.
|
||
* python/py-prettyprint.c: Likewise.
|
||
* python/python-internal.h: Likewise.
|
||
* spu-tdep.c: Likewise.
|
||
* typeprint.c: Likewise.
|
||
* valarith.c: Likewise.
|
||
* valops.c: Likewise.
|
||
* valprint.c: Likewise.
|
||
* valprint.h: Likewise.
|
||
* value.c: Likewise.
|
||
* value.h: Likewise.
|
||
* p-valprint.c: Likewise.
|
||
* c-typeprint.c (c_type_print_base): When printing offset, use
|
||
plongest, not %d.
|
||
* gdbtypes.c (recursive_dump_type): Ditto.
|
||
|
||
2016-06-24 David Taylor <david.taylor@emc.com>
|
||
|
||
* MAINTAINERS (Write After Approval): Add David Taylor.
|
||
|
||
2016-06-24 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* configure.ac: Check for support for system call LWP fields on
|
||
FreeBSD.
|
||
* config.in, configure: Rebuild.
|
||
* data-directory/Makefile.in (SYSCALLS_FILES): Add freebsd.xml.
|
||
* fbsd-nat.c (fbsd_wait) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
|
||
Report system call events.
|
||
[HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]
|
||
(fbsd_set_syscall_catchpoint): New function.
|
||
(fbsd_nat_add_target) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
|
||
Set "to_set_syscall_catchpoint" to "fbsd_set_syscall_catchpoint".
|
||
* fbsd-tdep.c: Include xml-syscall.h
|
||
(fbsd_get_syscall_number): New function.
|
||
(fbsd_init_abi): Set XML system call file name.
|
||
Add "get_syscall_number" gdbarch method.
|
||
* syscalls/freebsd.xml: New file.
|
||
|
||
2016-06-24 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* fbsd-tdep.c: Include "auxv.h".
|
||
(fbsd_print_auxv_entry): New function.
|
||
(fbsd_init_abi): Install gdbarch "print_auxv_entry" method.
|
||
|
||
2016-06-24 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* auxv.c (fprint_auxv_entry): New function.
|
||
(default_print_auxv_entry): New function.
|
||
(fprint_target_auxv): Use gdbarch_print_auxv_entry.
|
||
* auxv.h (enum auxv_format): New enum.
|
||
(fprint_auxv_entry): Declare.
|
||
(default_print_auxv_entry): Declare.
|
||
* gdbarch.sh (print_auxv_entry): New.
|
||
* gdbarch.c, gdbarch.h: Re-generated.
|
||
|
||
2016-06-24 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* fbsd-nat.c [KERN_PROC_AUXV] New variable super_xfer_partial.
|
||
(fbsd_xfer_partial): New function.
|
||
(fbsd_nat_add_target) [KERN_PROC_AUXV] Set "to_xfer_partial" to
|
||
"fbsd_xfer_partial".
|
||
|
||
2016-06-23 Tom Tromey <tom@tromey.com>
|
||
|
||
* symtab.c (symbol_find_demangled_name): Loop over languages and
|
||
use language_sniff_from_mangled_name.
|
||
* rust-lang.c (rust_sniff_from_mangled_name): New function.
|
||
(rust_language_defn): Update.
|
||
* p-lang.c (pascal_language_defn): Update.
|
||
* opencl-lang.c (opencl_language_defn): Update.
|
||
* objc-lang.c (objc_sniff_from_mangled_name): New function.
|
||
(objc_language_defn): Update.
|
||
* m2-lang.c (m2_language_defn): Update.
|
||
* language.h (struct language_defn) <la_sniff_from_mangled_name>: New
|
||
field.
|
||
(language_sniff_from_mangled_name): Declare.
|
||
* language.c (language_sniff_from_mangled_name): New function.
|
||
(unknown_language_defn, auto_language_defn, local_language_defn):
|
||
Update.
|
||
* jv-lang.c (java_sniff_from_mangled_name): New function.
|
||
(java_language_defn): Use it.
|
||
* go-lang.c (go_sniff_from_mangled_name): New function.
|
||
(go_language_defn): Use it.
|
||
* f-lang.c (f_language_defn): Update.
|
||
* defs.h (enum language): Reorder.
|
||
* d-lang.c (d_sniff_from_mangled_name): New function.
|
||
(d_language_defn): Use it.
|
||
* cp-support.h (gdb_sniff_from_mangled_name): Declare.
|
||
* cp-support.c (gdb_sniff_from_mangled_name): New function.
|
||
* c-lang.c (c_language_defn, cplus_language_defn)
|
||
(asm_language_defn, minimal_language_defn): Update.
|
||
* ada-lang.c (ada_sniff_from_mangled_name): New function.
|
||
(ada_language_defn): Use it.
|
||
|
||
2016-06-23 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_extensions): New array.
|
||
(ada_language_defn): Use it.
|
||
* c-lang.c (c_extensions): New array.
|
||
(c_language_defn): Use it.
|
||
(cplus_extensions): New array.
|
||
(cplus_language_defn): Use it.
|
||
(asm_extensions): New array.
|
||
(asm_language_defn): Use it.
|
||
(minimal_language_defn): Update.
|
||
* d-lang.c (d_extensions): New array.
|
||
(d_language_defn): Use it.
|
||
* f-lang.c (f_extensions): New array.
|
||
(f_language_defn): Use it.
|
||
* go-lang.c (go_language_defn): Update.
|
||
* jv-lang.c (java_extensions): New array.
|
||
(java_language_defn): Use it.
|
||
* language.c (add_language): Call add_filename_language.
|
||
(unknown_language_defn, auto_language_defn, local_language_defn):
|
||
Update.
|
||
* language.h (struct language_defn) <la_filename_extensions>: New
|
||
field.
|
||
* m2-lang.c (m2_language_defn): Update.
|
||
* objc-lang.c (objc_extensions): New array.
|
||
(objc_language_defn): Use it.
|
||
* opencl-lang.c (opencl_language_defn): Update.
|
||
* p-lang.c (p_extensions): New array.
|
||
(pascal_language_defn): Use it.
|
||
* rust-lang.c (rust_extensions): New array.
|
||
(rust_language_defn): Use it.
|
||
* symfile.c (add_filename_language): No longer static. Make "ext"
|
||
const.
|
||
(init_filename_language_table): Remove.
|
||
(_initialize_symfile): Update.
|
||
* symfile.h (add_filename_language): Declare.
|
||
|
||
2016-06-23 Tom Tromey <tom@tromey.com>
|
||
|
||
* symfile.c (filename_language_table): Now a VEC.
|
||
(fl_table_size, fl_table_next): Remove.
|
||
(add_filename_language): Use VEC_safe_push.
|
||
(set_ext_lang_command, info_ext_lang_command)
|
||
(deduce_language_from_filename): Use VEC_iterate.
|
||
(init_filename_language_table): Use VEC_empty.
|
||
|
||
2016-06-23 Tom Tromey <tom@tromey.com>
|
||
|
||
* python/python.c (gdbpy_parameter): Now static.
|
||
* python/python-internal.h (gdbpy_parameter): Don't declare.
|
||
|
||
2016-06-23 Tom Tromey <tom@tromey.com>
|
||
|
||
PR gdb/16483:
|
||
* python/lib/gdb/command/frame_filters.py
|
||
(InfoFrameFilter.list_frame_filters): Rename to print_list. Print
|
||
nothing if no filters found. Return value indicating whether
|
||
filters were printed.
|
||
(InfoFrameFilter.print_list): Remove.
|
||
(InfoFrameFilter.invoke): Print message if no frame filters
|
||
found.
|
||
|
||
2016-06-21 Walfred Tedeschi <walfred.tedeschi@intel.com>
|
||
|
||
* f-valprint.c (f_val_print): Add field names for printing
|
||
derived types fields.
|
||
|
||
2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||
|
||
* s390-linux-tdep.c (s390_iterate_over_regset_sections): Fix typo
|
||
in name of last-break regset.
|
||
|
||
2016-06-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* fork-child.c (fork_inferior): Switch the child to the main UI
|
||
right after vfork. Save/restore the current UI in the parent.
|
||
Flush outputs of the main UI instead of the current UI.
|
||
|
||
2016-06-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* breakpoint.c (watchpoint_check): Send watchpoint-deleted output
|
||
to all UIs.
|
||
|
||
2016-06-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* NEWS: Mention support for running interpreters on separate
|
||
UIs and the new new-ui command.
|
||
|
||
2016-06-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* interps.c (set_top_level_interpreter): New function, factored
|
||
out from captured_main.
|
||
(interpreter_completer): Make extern.
|
||
* interps.h (set_top_level_interpreter, interpreter_completer):
|
||
New declarations.
|
||
(captured_main): Use set_top_level_interpreter.
|
||
* top.c [!O_NOCTTY] (O_NOCTTY): Define as 0.
|
||
(open_terminal_stream, new_ui_command): New functions.
|
||
(init_main): Install the "new-ui" command.
|
||
|
||
2016-06-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* cli/cli-script.c (read_next_line): Adjust to per-UI stdin.
|
||
(read_command_lines): Use input_interactive_p instead of
|
||
input_from_terminal_p.
|
||
* defs.h (struct ui): Forward declare.
|
||
(input_from_terminal_p): Rename to ...
|
||
(input_interactive_p): ... this.
|
||
* event-top.c (stdin_event_handler): Pass 0 as from_tty argument
|
||
to quit_command.
|
||
(command_handler): Adjust to per-UI stdin.
|
||
(handle_line_of_input): Adjust to per-UI stdin and use
|
||
input_interactive_p instead of ISATTY and input_from_terminal_p.
|
||
(gdb_readline_no_editing_callback): Adjust to per-UI stdin.
|
||
(command_line_handler): Always pass true as "from_tty" parameter
|
||
of handle_line_of_input and execute_command.
|
||
(async_sigterm_handler): Pass 0 as from_tty argument to
|
||
quit_command.
|
||
* inflow.c (interactive_mode, show_interactive_mode): Moved to ...
|
||
(gdb_has_a_terminal): Don't check interactive_mode here.
|
||
(_initialize_inflow): Don't install "set interactive-mode" here.
|
||
* main.c (captured_command_loop): Adjust to per-UI stdin.
|
||
* mi/mi-interp.c (mi_execute_command_wrapper): Adjust to per-UI
|
||
stdin.
|
||
* top.c (new_ui): Save the stdin stream and whether it's a tty.
|
||
(dont_repeat): Adjust to per-UI stdin.
|
||
(command_line_input): Adjust to per-UI stdin and to use
|
||
input_interactive_p.
|
||
(quit_force): Write history if any UI supports interactive input.
|
||
(interactive_mode, show_interactive_mode): Move here, from
|
||
inflow.c.
|
||
(input_from_terminal_p): Rename to ...
|
||
(input_interactive_p): ... this, and check the "interactive_mode"
|
||
global instead of calling gdb_has_a_terminal.
|
||
(_initialize_top): Install "set interactive-mode" here.
|
||
* top.h (struct ui) <stdin_stream, input_interactive_p>: New
|
||
fields.
|
||
* utils.c (quit): Pass 0 as from_tty argument to quit_force.
|
||
(defaulted_query): Adjust to per-UI stdin and to use
|
||
input_interactive_p.
|
||
|
||
2016-06-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* event-top.c (stdin_event_handler): Don't quit gdb if it was a
|
||
secondary UI's input stream that closed. Instead, just delete the
|
||
UI.
|
||
|
||
2016-06-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* event-top.c (main_ui_): Delete.
|
||
(main_ui, current_ui, ui_list): No longer initialize here.
|
||
* main.c (captured_main): UI initialization code factored out to
|
||
new new_ui function.
|
||
(gdb_main): Wrap captured_main with TRY/CATCH instead of
|
||
catch_errors.
|
||
* top.c (highest_ui_num): New global.
|
||
(new_ui): New function.
|
||
* top.h (struct ui) <num>: New field.
|
||
(new_ui): New declaration.
|
||
|
||
2016-06-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* cli/cli-interp.c (cli_on_normal_stop): Bail out early if there's
|
||
nothing to print. Use should_print_stop_to_console.
|
||
* tui/tui-interp.c (tui_on_normal_stop): Likewise.
|
||
|
||
2016-06-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* breakpoint.c (new_until_break_fsm): Add 'cmd_interp' parameter.
|
||
(until_break_fsm_should_stop, until_break_fsm_clean_up): Add
|
||
thread parameter.
|
||
(until_break_command): Pass command interpreter to thread fsm
|
||
ctor.
|
||
* cli/cli-interp.c (should_print_stop_to_console): Adjust.
|
||
* gdbthread.h (struct thread_control_state) <command_interp>:
|
||
Delete field.
|
||
* infcall.c (new_call_thread_fsm): Add 'cmd_interp' parameter.
|
||
Pass it down.
|
||
(call_thread_fsm_should_stop): Add thread parameter.
|
||
(call_function_by_hand_dummy): Pass command interpreter to thread
|
||
fsm ctor. Pass thread pointer to fsm clean up method.
|
||
* infcmd.c: Include interps.h.
|
||
(struct step_command_fsm) <thread>: Delete field.
|
||
(new_step_command_fsm): Add 'cmd_interp' parameter. Pass it down.
|
||
(step_command_fsm_prepare): Remove references to fsm's thread
|
||
field.
|
||
(step_1): Pass command interpreter to thread
|
||
fsm ctor. Pass thread pointer to fsm clean up method.
|
||
(step_command_fsm_should_stop, step_command_fsm_clean_up): Add
|
||
thread parameter and use it.
|
||
(new_until_next_fsm): Add 'cmd_interp' parameter. Pass it down.
|
||
(until_next_fsm_should_stop, until_next_fsm_clean_up): Add thread
|
||
parameter and use it.
|
||
(until_next_command): Pass command interpreter to thread fsm ctor.
|
||
(struct finish_command_fsm) <thread>: Delete field.
|
||
(finish_command_fsm_ops): Add NULL slot for should_notify_stop.
|
||
(new_finish_command_fsm): Add 'cmd_interp' parameter and pass it
|
||
down. Remove thread parameter and adjust.
|
||
(finish_command_fsm_should_stop, finish_command_fsm_clean_up): Add
|
||
thread parameter and use it.
|
||
(finish_command): Pass command interpreter to thread fsm ctor.
|
||
Don't pass thread.
|
||
* infrun.c (follow_fork): Move thread fsm to child fork instead of
|
||
command interpreter, only.
|
||
(clear_proceed_status_thread): Remove reference to command_interp.
|
||
(proceed): Don't record the thread's command interpreter.
|
||
(clean_up_just_stopped_threads_fsms): Pass thread to fsm clean_up
|
||
method.
|
||
(fetch_inferior_event): Pass thread to fsm should_stop method.
|
||
* thread-fsm.c (thread_fsm_ctor): Add 'cmd_interp' parameter.
|
||
Store it.
|
||
(thread_fsm_clean_up, thread_fsm_should_stop): Add thread
|
||
parameter and pass it down.
|
||
* thread-fsm.h (struct thread_fsm) <command_interp>: New field.
|
||
(struct thread_fsm_ops) <clean_up, should_stop>: Add thread
|
||
parameter.
|
||
(thread_fsm_ctor): Add 'cmd_interp' parameter.
|
||
(thread_fsm_clean_up, thread_fsm_should_stop): Add thread
|
||
parameter.
|
||
* thread.c (thread_cancel_execution_command): Pass thread to
|
||
thread fsm clean_up method.
|
||
|
||
2016-06-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* cli/cli-interp.c: Include gdbthread.h and thread-fsm.h.
|
||
(should_print_stop_to_console): New function, factored out from
|
||
mi_on_normal_stop_1.
|
||
* cli/cli-interp.h (should_print_stop_to_console): Declare.
|
||
* mi/mi-interp.c (mi_on_normal_stop_1): Use
|
||
should_print_stop_to_console. Pass it the current UI's console
|
||
interpreter.
|
||
* mi/mi-main.c (captured_mi_execute_command): Use the
|
||
INTERP_CONSOLE symbol rather than explicit "console".
|
||
|
||
2016-06-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* infcmd.c (prepare_execution_command): Use
|
||
all_uis_on_sync_execution_starting.
|
||
* infrun.c (all_uis_on_sync_execution_starting): New function.
|
||
* infrun.h (all_uis_on_sync_execution_starting): Declare.
|
||
|
||
2016-06-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* annotate.c: Include top.h.
|
||
(async_background_execution_p): Delete.
|
||
(print_value_flags): Check the UI's prompt state rather then
|
||
async_background_execution_p.
|
||
* event-loop.c (start_event_loop): Set the prompt state to
|
||
PROMPT_NEEDED.
|
||
* event-top.c (display_gdb_prompt, async_enable_stdin)
|
||
(async_disable_stdin): Check the current UI's prompt state instead
|
||
of the sync_execution global.
|
||
(command_line_handler): Set the prompt state to PROMPT_NEEDED
|
||
before running a command, and display the prompt if still needed
|
||
afterwards.
|
||
* infcall.c (struct call_thread_fsm) <waiting_ui>: New field.
|
||
(new_call_thread_fsm): New parameter 'waiting_ui'. Store it.
|
||
(call_thread_fsm_should_stop): Set the prompt state to
|
||
PROMPT_NEEDED.
|
||
(run_inferior_call): Adjust to temporarily set the prompt state to
|
||
PROMPT_BLOCKED instead of using the sync_execution global.
|
||
(call_function_by_hand_dummy): Pass the current UI to
|
||
new_call_thread_fsm.
|
||
* infcmd.c: Include top.h.
|
||
(continue_1): Check the current UI's prompt state instead of the
|
||
sync_execution global.
|
||
(continue_command): Validate global execution state before calling
|
||
prepare_execution_command.
|
||
(step_1): Call all_uis_check_sync_execution_done.
|
||
(attach_post_wait): Don't call async_enable_stdin here. Remove
|
||
reference to sync_execution.
|
||
* infrun.c (sync_execution): Delete global.
|
||
(follow_fork_inferior)
|
||
(reinstall_readline_callback_handler_cleanup): Check the current
|
||
UI's prompt state instead of the sync_execution global.
|
||
(check_curr_ui_sync_execution_done)
|
||
(all_uis_check_sync_execution_done): New functions.
|
||
(fetch_inferior_event): Call all_uis_check_sync_execution_done
|
||
instead of trying to determine whether the global sync execution
|
||
changed.
|
||
(handle_no_resumed): Check the prompt state of all UIs.
|
||
(normal_stop): Emit the no unwait-for even to all PROMPT_BLOCKED
|
||
UIs. Emit the "Switching to" notification to all UIs. Enable
|
||
stdin in all UIs.
|
||
* infrun.h (sync_execution): Delete.
|
||
(all_uis_check_sync_execution_done): Declare.
|
||
* main.c (captured_command_loop): Don't call
|
||
interp_pre_command_loop if the prompt is blocked.
|
||
(catch_command_errors, catch_command_errors_const): Adjust.
|
||
(captured_main): Set the initial prompt state to PROMPT_NEEDED.
|
||
* mi/mi-interp.c (display_mi_prompt): Set the prompt state to
|
||
PROMPTED.
|
||
(mi_interpreter_resume): Don't clear sync_execution. Remove hack
|
||
comment.
|
||
(mi_execute_command_input_handler): Set the prompt state to
|
||
PROMPT_NEEDED before executing the command, and only display the
|
||
prompt if the prompt state is PROMPT_NEEDED afterwards.
|
||
(mi_on_resume_1): Adjust to check the prompt state.
|
||
* target.c (target_terminal_inferior): Adjust to check the prompt
|
||
state.
|
||
* top.c (wait_sync_command_done, maybe_wait_sync_command_done)
|
||
(execute_command): Check the current UI's prompt state instead of
|
||
sync_execution.
|
||
* top.h (enum prompt_state): New.
|
||
(struct ui) <prompt_state>: New field.
|
||
(ALL_UIS): New macro.
|
||
|
||
2016-06-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* top.c (gdb_secondary_prompt_depth): Delete.
|
||
(gdb_in_secondary_prompt_p): Add ui parameter. Use it.
|
||
(gdb_readline_wrapper_cleanup, gdb_readline_wrapper): Adjust to
|
||
per-UI gdb_secondary_prompt_depth.
|
||
* top.h (struct ui) <secondary_prompt_depth>: New field.
|
||
|
||
2016-06-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* cli/cli-interp.c (cli_interpreter_pre_command_loop): New
|
||
function.
|
||
(cli_interp_procs): Install it instead of cli_command_loop.
|
||
* cli/cli-interp.h (cli_interpreter_pre_command_loop): Declare.
|
||
* event-top.c (cli_command_loop): Delete.
|
||
* interps.c (interp_new): Remove reference to command_loop_proc.
|
||
(current_interp_command_loop): Delete.
|
||
(interp_pre_command_loop): New function.
|
||
(interp_command_loop_ftype): Delete.
|
||
* interps.h (interp_pre_command_loop_ftype): New typedef.
|
||
(struct interp_procs) <command_loop_proc>: Delele field.
|
||
<pre_command_loop_proc>: New field.
|
||
(current_interp_command_loop): Delete declaration.
|
||
(interp_pre_command_loop): New declaration.
|
||
* main.c (captured_command_loop): Call interp_pre_command_loop
|
||
instead of current_interp_command_loop and start an event loop.
|
||
* mi/mi-interp.c (mi_command_loop): Delete.
|
||
(mi_interpreter_pre_command_loop): New.
|
||
(mi_interp_procs): Update.
|
||
* tui/tui-interp.c (tui_interp_procs): Install
|
||
cli_interpreter_pre_command_loop instead of cli_command_loop.
|
||
|
||
2016-06-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* interps.c (current_interpreter): New function.
|
||
* interps.h (current_interpreter): New declaration.
|
||
* mi/mi-cmds.h (raw_stdout): Delete declaration.
|
||
* mi/mi-common.h (struct mi_interp) <raw_stdout,
|
||
saved_raw_stdout>: New field.
|
||
* mi/mi-interp.c (display_mi_prompt): New parameter 'mi'. Adjust
|
||
to per-UI raw_stdout.
|
||
(mi_interpreter_init): Adjust to per-UI raw_stdout.
|
||
(mi_on_sync_execution_done, mi_execute_command_input_handler)
|
||
(mi_command_loop): Pass MI instance to display_mi_prompt.
|
||
(mi_on_normal_stop_1, mi_output_running_pid, mi_on_resume_1)
|
||
(mi_on_resume): Adjust to per-UI raw_stdout.
|
||
(saved_raw_stdout): Delete.
|
||
(mi_set_logging): Adjust to per-UI raw_stdout and
|
||
saved_raw_stdout.
|
||
* mi/mi-main.c (raw_stdout): Delete.
|
||
(mi_cmd_gdb_exit, captured_mi_execute_command)
|
||
(mi_print_exception, mi_load_progress): Adjust to per-UI
|
||
raw_stdout.
|
||
(print_diff_now, mi_print_timing_maybe): New ui_file parameter.
|
||
Pass it along.
|
||
(print_diff): New ui_file parameter. Send output there instead of
|
||
raw_stdout.
|
||
* mi/mi-main.h (struct ui_file): Forward declare.
|
||
(mi_print_timing_maybe): Add ui_file parameter.
|
||
|
||
2016-06-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* mi/mi-interp.c (display_mi_prompt): New function.
|
||
|
||
2016-06-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* target.c (target_terminal_inferior): Bail out after
|
||
unregistering input_fd if not on the main UI.
|
||
(target_terminal_ours): Bail out after registering input_fd if not
|
||
on the main UI.
|
||
(target_terminal_ours_for_output): Bail out if not on the main UI.
|
||
|
||
2016-06-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* event-top.c (restore_ui_cleanup): Make extern.
|
||
* infrun.c (fetch_inferior_event): Always switch to the main UI.
|
||
* top.h (restore_ui_cleanup): Declare.
|
||
|
||
2016-06-21 Pedro Alves <palves@redhat.com>
|
||
|
||
PR mi/20034
|
||
* cli/cli-interp.c: Include cli-interp.h and event-top.h.
|
||
(cli_interpreter_resume): Pass 1 to gdb_setup_readline. Set the
|
||
UI's input_handler here.
|
||
(cli_interpreter_supports_command_editing): New function.
|
||
(cli_interp_procs): Install it.
|
||
* cli/cli-interp.h: New file.
|
||
* event-top.c (async_command_editing_p): Rename to ...
|
||
(set_editing_cmd_var): ... this.
|
||
(change_line_handler): Add parameter 'editing', and use it. Bail
|
||
early if the interpreter doesn't support editing. Don't touch
|
||
readline state if editing is off.
|
||
(gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
|
||
(gdb_rl_callback_handler_reinstall): Assert the current UI is the
|
||
main UI.
|
||
(display_gdb_prompt): Don't call gdb_rl_callback_handler_remove if
|
||
not using readline. Check whether the current UI is using command
|
||
editing instead of checking the async_command_editing_p global.
|
||
(set_async_editing_command): Delete.
|
||
(gdb_setup_readline): Add 'editing' parameter. Only allow editing
|
||
on the main UI. Don't touch readline state if editing is off.
|
||
(gdb_disable_readline): Don't touch readline state if editing is
|
||
off.
|
||
* event-top.h (gdb_setup_readline): Add 'int' parameter.
|
||
(set_async_editing_command): Delete declaration.
|
||
(change_line_handler, command_line_handler): Declare.
|
||
(async_command_editing_p): Rename to ...
|
||
(set_editing_cmd_var): ... this.
|
||
* infrun.c (reinstall_readline_callback_handler_cleanup): Check
|
||
whether the current UI has editing enabled rather than checking
|
||
the async_command_editing_p global.
|
||
* interps.c (interp_supports_command_editing): New function.
|
||
* interps.h (interp_supports_command_editing_ftype): New typedef.
|
||
(struct interp_procs) <supports_command_editing_proc>: New field.
|
||
(interp_supports_command_editing): Declare.
|
||
* mi/mi-interp.c (mi_interpreter_resume): Pass 0 to
|
||
gdb_setup_readline. Don't clear the async_command_editing_p
|
||
global. Update comments.
|
||
* top.c (gdb_readline_wrapper_line, gdb_readline_wrapper): Check
|
||
whether the current UI has editing enabled rather than checking
|
||
the async_command_editing_p global. Don't touch readline state if
|
||
editing is off.
|
||
(undo_terminal_modifications_before_exit): Switch to the main UI.
|
||
Unconditionally call gdb_disable_readline.
|
||
(set_editing): New function.
|
||
(show_async_command_editing_p): Rename to ...
|
||
(show_editing): ... this. Show the state of the current UI.
|
||
(_initialize_top): Adjust.
|
||
* top.h (struct ui) <command_editing>: New field.
|
||
* tui/tui-interp.c: Include cli/cli-interp.h.
|
||
(tui_resume): Pass 1 to gdb_setup_readline. Set the UI's
|
||
input_handler.
|
||
(tui_interp_procs): Install
|
||
cli_interpreter_supports_command_editing.
|
||
* tui/tui-io.c (tui_getc): Check whether the current UI has
|
||
editing enabled rather than checking the async_command_editing_p
|
||
global.
|
||
|
||
2016-06-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* top.c: Call gen_ret_current_ui_field_ptr for current_uiout.
|
||
* top.h (struct ui) <m_current_uiout>: New field.
|
||
* ui-out.c (current_uiout): Delete.
|
||
* ui-out.h (current_uiout): Delete.
|
||
(current_ui_current_uiout_ptr): New declaration.
|
||
(current_uiout): Reimplement as wrapper around
|
||
current_ui_current_uiout_ptr.
|
||
|
||
2016-06-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* ui-out.c (default_ui_out_impl): Delete.
|
||
(def_uiout): Delete.
|
||
(current_uiout): Set to NULL.
|
||
(default_table_begin, default_table_body, default_table_end)
|
||
(default_table_header, default_begin, default_end)
|
||
(default_field_int, default_field_skip, default_field_string)
|
||
(default_field_fmt, default_spaces, default_text, default_message)
|
||
(default_wrap_hint, default_flush, default_data_destroy): Delete.
|
||
|
||
2016-06-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* event-top.c (gdb_setup_readline): Pass the UI's outstream and
|
||
errstream to stdout_fileopen and stderr_fileopen.
|
||
* exceptions.c: Include top.h.
|
||
(print_flush): Open the current UI's outstream file descriptor,
|
||
instead of hardcoding file descriptor 1.
|
||
* main.c (captured_main): Save the main UI's out and error
|
||
streams. Adjust stderr_fileopen call.
|
||
* top.h (struct ui) <outstream, errstream>: New fields.
|
||
* ui-file.c (stderr_fileopen): Add stream parameter. Use it
|
||
instead of stderr.
|
||
* ui-file.h (stderr_fileopen): Add stream parameter and update
|
||
comment.
|
||
|
||
2016-06-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* event-top.c (input_fd): Delete.
|
||
(stdin_event_handler): Switch to the UI whose input descriptor got
|
||
the event. Adjust to per-UI input_fd.
|
||
(gdb_setup_readline): Don't set the input_fd global. Adjust to
|
||
per-UI input_fd.
|
||
(gdb_disable_readline): Adjust to per-UI input_fd.
|
||
* event-top.h (input_fd): Delete declaration.
|
||
* linux-nat.c (linux_nat_terminal_inferior): Don't remove input_fd
|
||
from the event-loop here.
|
||
(linux_nat_terminal_ours): Don't register input_fd in the
|
||
event-loop here.
|
||
* main.c (captured_main): Adjust to per-UI input_fd.
|
||
* remote.c (remote_terminal_inferior): Don't remove input_fd from
|
||
the event-loop here.
|
||
(remote_terminal_ours): Don't register input_fd in the event-loop
|
||
here.
|
||
* target.c: Include top.h and event-top.h.
|
||
(target_terminal_inferior): Remove input_fd from the event-loop
|
||
here.
|
||
(target_terminal_ours): Register input_fd in the event-loop.
|
||
* top.h (struct ui) <input_fd>: New field.
|
||
|
||
2016-06-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* cli/cli-script.c (execute_user_command, read_next_line)
|
||
(read_next_line): Adjust to per-UI instream.
|
||
* event-top.c (stdin_event_handler, command_handler)
|
||
(handle_line_of_input, command_line_handler)
|
||
(gdb_readline_no_editing_callback, async_sigterm_handler)
|
||
(gdb_setup_readline): Likewise.
|
||
* inflow.c: Include top.h.
|
||
(gdb_has_a_terminal, child_terminal_init_with_pgrp)
|
||
(gdb_save_tty_state, child_terminal_inferior)
|
||
(child_terminal_ours_1, copy_terminal_info): Use the main UI.
|
||
(initialize_stdin_serial): Adjust to per-UI instream.
|
||
* main.c (captured_command_loop, captured_main): Adjust to per-UI
|
||
instream.
|
||
* mi/mi-interp.c (mi_execute_command_wrapper): Likewise.
|
||
* python/python.c (python_interactive_command): Likewise.
|
||
* terminal.h (struct ui): Forward declare.
|
||
(initialize_stdin_serial): Add struct ui parameter.
|
||
* top.c (instream): Delete.
|
||
(do_restore_instream_cleanup, read_command_file, dont_repeat)
|
||
(gdb_readline_no_editing, command_line_input)
|
||
(input_from_terminal_p, gdb_init): Adjust to per-UI instream.
|
||
* top.h (struct ui) <instream>: New field.
|
||
(instream): Delete declaration.
|
||
(quit): Adjust to per-UI instream.
|
||
|
||
2016-06-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* event-loop.c: Include top.h.
|
||
(invoke_async_signal_handlers): Switch to the main UI.
|
||
* event-top.c (main_ui_): Update comment.
|
||
(main_ui): New global.
|
||
* top.h (main_ui): Declare.
|
||
|
||
2016-06-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* cli/cli-interp.c (cli_interp): Delete.
|
||
(as_cli_interp): New function.
|
||
(cli_on_normal_stop, cli_on_signal_received)
|
||
(cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
|
||
(cli_on_no_history): Send output to all CLI UIs.
|
||
(cli_on_sync_execution_done, cli_on_command_error): Skip output if
|
||
the top level interpreter is not a CLI.
|
||
(cli_interpreter_init): Don't set cli_interp or install observers
|
||
here.
|
||
(_initialize_cli_interp): Install observers here.
|
||
* event-top.c (main_ui_, ui_list): New globals.
|
||
(current_ui): Point to main_ui_.
|
||
(restore_ui_cleanup, switch_thru_all_uis_init)
|
||
(switch_thru_all_uis_cond, switch_thru_all_uis_next): New
|
||
functions.
|
||
* mi/mi-interp.c (as_mi_interp): New function.
|
||
(mi_interpreter_init): Don't install observers here.
|
||
(mi_on_sync_execution_done): Skip output if the top level
|
||
interpreter is not a MI.
|
||
(mi_new_thread, mi_thread_exit, mi_record_changed)
|
||
(mi_inferior_added, mi_inferior_appeared, mi_inferior_exit)
|
||
(mi_inferior_removed): Send output to all MI UIs.
|
||
(find_mi_interpreter, mi_interp_data): Delete.
|
||
(find_mi_interp): New function.
|
||
(mi_on_signal_received, mi_on_end_stepping_range)
|
||
(mi_on_signal_exited, mi_on_exited, mi_on_no_history): Send output
|
||
to all MI UIs.
|
||
(mi_on_normal_stop): Rename to ...
|
||
(mi_on_normal_stop_1): ... this.
|
||
(mi_on_normal_stop): Reimplement, sending output to all MI UIs.
|
||
(mi_traceframe_changed, mi_tsv_created, mi_tsv_deleted)
|
||
(mi_tsv_modified, mi_breakpoint_created, mi_breakpoint_deleted)
|
||
(mi_breakpoint_modified, mi_output_running_pid): Send output to
|
||
all MI UIs.
|
||
(mi_on_resume): Rename to ...
|
||
(mi_on_resume_1): ... this. Don't handle infcalls here.
|
||
(mi_on_resume): Reimplement, sending output to all MI UIs.
|
||
(mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed)
|
||
(mi_memory_changed): Send output to all MI UIs.
|
||
(report_initial_inferior): Install observers here.
|
||
* top.h (struct ui) <next>: New field.
|
||
(ui_list): Declare.
|
||
(struct switch_thru_all_uis): New.
|
||
(switch_thru_all_uis_init, switch_thru_all_uis_cond)
|
||
(switch_thru_all_uis_next): Declare.
|
||
(SWITCH_THRU_ALL_UIS): New macro.
|
||
* tui/tui-interp.c (tui_interp): Delete global.
|
||
(as_tui_interp): New function.
|
||
(tui_on_normal_stop, tui_on_signal_received)
|
||
(tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
|
||
(tui_on_no_history): Send output to all TUI UIs.
|
||
(tui_on_sync_execution_done, tui_on_command_error): Skip output if
|
||
the top level interpreter is not a TUI.
|
||
(tui_init): Don't set tui_interp or install observers here.
|
||
(_initialize_tui_interp): Install observers here.
|
||
|
||
2016-06-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* cli/cli-interp.c (cli_uiout): Delete, moved into ...
|
||
(struct cli_interp): ... this new structure.
|
||
(cli_on_normal_stop, cli_on_signal_received)
|
||
(cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
|
||
(cli_on_no_history): Use interp_ui_out.
|
||
(cli_interpreter_init): If top level, set the cli_interp global.
|
||
(cli_interpreter_init): Return the interp's data instead of NULL.
|
||
(cli_interpreter_resume, cli_interpreter_exec, cli_ui_out): Adjust
|
||
to cli_uiout being in the interpreter's data.
|
||
(cli_interp_procs): New, factored out from _initialize_cli_interp.
|
||
(cli_interp_factory): New function.
|
||
(_initialize_cli_interp): Call interp_factory_register.
|
||
* interps.c (get_interp_info): New, factored out from ...
|
||
(get_current_interp_info): ... this.
|
||
(interp_new): Add parameter 'data'. Store it.
|
||
(struct interp_factory): New function.
|
||
(interp_factory_p): New typedef. Define a VEC_P.
|
||
(interpreter_factories): New global.
|
||
(interp_factory_register): New function.
|
||
(interp_add): Add 'ui' parameter. Use get_interp_info and
|
||
interp_lookup_existing.
|
||
(interp_lookup): Rename to ...
|
||
(interp_lookup_existing): ... this. Add 'ui' parameter. Don't
|
||
check for NULL or empty name here.
|
||
(interp_lookup): Add 'ui' parameter and reimplement.
|
||
(interp_set_temp, interpreter_exec_cmd): Adjust.
|
||
(interpreter_completer): Complete on registered interpreter
|
||
factories instead of interpreters.
|
||
* interps.h (interp_factory_func): New typedef.
|
||
(interp_factory_register): Declare.
|
||
(interp_new, interp_add): Adjust.
|
||
(interp_lookup): Declare.
|
||
* main.c (captured_main): Adjust.
|
||
* mi/mi-interp.c (mi_cmd_interpreter_exec): Adjust.
|
||
(mi_interp_procs): New, factored out from
|
||
_initialize_mi_interp.
|
||
(mi_interp_factory): New function.
|
||
* python/python.c (execute_gdb_command): Adjust.
|
||
* tui/tui-interp.c (tui_init): If top level, set the tui_interp
|
||
global.
|
||
(tui_interp_procs): New.
|
||
(tui_interp_factory): New function.
|
||
(_initialize_tui_interp): Call interp_factory_register.
|
||
|
||
2016-06-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* breakpoint.c (bpstat_do_actions_1): Access the current UI's
|
||
async field instead of the interpreter_async global.
|
||
* cli/cli-script.c (execute_user_command, while_command)
|
||
(if_command, script_from_file): Likewise.
|
||
* compile/compile.c: Include top.h instead of interps.h.
|
||
(compile_file_command, compile_code_command)
|
||
(compile_print_command): Access the current UI's async field
|
||
instead of the interpreter_async global.
|
||
* guile/guile.c: Include top.h instead of interps.h.
|
||
(guile_repl_command, guile_command, gdbscm_execute_gdb_command):
|
||
Access the current UI's async field instead of the
|
||
interpreter_async global.
|
||
* guile/scm-ports.c: Include top.h instead of interps.h.
|
||
(ioscm_with_output_to_port_worker): Access the current UI's async
|
||
field instead of the interpreter_async global.
|
||
* inf-loop.c (inferior_event_handler): Likewise.
|
||
* infcall.c (run_inferior_call): Likewise.
|
||
* infrun.c (reinstall_readline_callback_handler_cleanup)
|
||
(fetch_inferior_event): Likewise.
|
||
* interps.c (interpreter_async): Delete.
|
||
(struct ui_interp_info): New.
|
||
(get_current_interp_info): New function.
|
||
(interp_list, current_interpreter, top_level_interpreter_ptr):
|
||
Delete.
|
||
(interp_add, interp_set, interp_lookup, interp_ui_out)
|
||
(current_interp_set_logging, interp_set_temp)
|
||
(current_interp_named_p): Adjust to per-UI interpreters.
|
||
(command_interpreter): Delete.
|
||
(command_interp, current_interp_command_loop, interp_quiet_p)
|
||
(interp_exec, interpreter_exec_cmd, interpreter_completer)
|
||
(top_level_interpreter, top_level_interpreter_data): Adjust to
|
||
per-UI interpreters.
|
||
* interps.h (interpreter_async): Delete.
|
||
* main.c (captured_command_loop): Access the current UI's async
|
||
field instead of the interpreter_async global.
|
||
* python/python.c (python_interactive_command, python_command)
|
||
(execute_gdb_command): Likewise.
|
||
* top.c (maybe_wait_sync_command_done, execute_command_to_string):
|
||
Access the current UI's async field instead of the
|
||
interpreter_async global.
|
||
* top.h (struct tl_interp_info): Forward declare.
|
||
(struct ui) <interp_info, async>: New fields.
|
||
|
||
2016-06-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* main.c (gdb_stdout, gdb_stderr, gdb_stdlog, gdb_stdin): Delete
|
||
globals.
|
||
(gen_ret_current_ui_field_ptr): New macro. Use it to generate
|
||
wrappers for gdb_stdout, gdb_stderr, gdb_stdlog and gdb_stdin.
|
||
* top.h (struct ui) <m_gdb_stdout, m_gdb_stdin, m_gdb_stderr,
|
||
m_gdb_stdlog>: New fields.
|
||
(current_ui_gdb_stdout_ptr, current_ui_gdb_stdin_ptr)
|
||
(current_ui_gdb_stderr_ptr, current_ui_gdb_stdlog_ptr): Declare.
|
||
(gdb_stdout, gdb_stdin, gdb_stderr, gdb_stdlog): Reimplement as
|
||
macros.
|
||
|
||
2016-06-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* event-top.c: Update readline-related comments.
|
||
(input_handler, call_readline): Delete globals.
|
||
(gdb_rl_callback_handler): Call the current UI's input_handler
|
||
method.
|
||
(change_line_handler): Adjust to set current UI's properties
|
||
instead of globals.
|
||
(current_ui_, current_ui): New globals.
|
||
(get_command_line_buffer): Rewrite to refer to the current UI.
|
||
(stdin_event_handler): Adjust to call the call_readline method of
|
||
the current UI.
|
||
(gdb_readline_no_editing_callback): Adjust to call the current UI's
|
||
input_handler method.
|
||
(gdb_setup_readline): Adjust to set current UI's properties
|
||
instead of globals.
|
||
* event-top.h (call_readline, input_handler): Delete declarations.
|
||
* mi/mi-interp.c (mi_interpreter_resume): Adjust to set current
|
||
UI's properties instead of globals.
|
||
* top.c (gdb_readline_wrapper_cleanup): Adjust to set current UI's
|
||
properties instead of globals.
|
||
(gdb_readline_wrapper): Adjust to call and set current UI's
|
||
methods instead of globals.
|
||
* top.h: Include buffer.h and event-loop.h.
|
||
(struct ui): New struct.
|
||
(current_ui): New declaration.
|
||
|
||
2016-06-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* ada-lang.c (ada_exception_name_addr_1): Add comment.
|
||
(print_it_exception): Select the current frame.
|
||
|
||
2016-06-17 Yan-Ting Lin <currygt52@gmail.com>
|
||
|
||
* Makefile.in (ALL_TARGET_OBS): Add nds32-tdep.o.
|
||
(HFILES_NO_SRCDIR): Add nds32-tdep.h.
|
||
(ALLDEPFILES): Add nds32-tdep.c.
|
||
* NEWS: Mention new NDS32 port.
|
||
* configure.tgt: Add NDS32.
|
||
* nds32-tdep.c: New file.
|
||
* nds32-tdep.h: New file.
|
||
* features/Makefile (XMLTOC): Add nds32.xml.
|
||
* features/nds32-core.xml: New file.
|
||
* features/nds32-fpu.xml: New file.
|
||
* features/nds32-system.xml: New file.
|
||
* features/nds32.c: New file (generated).
|
||
* features/nds32.xml: New file.
|
||
|
||
2016-06-14 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* v850-tdep.c (v850_use_struct_convention): Trim type length checks.
|
||
|
||
2016-06-14 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* tui/tui-stack.c (tui_show_frame_info): Fix type mismatch.
|
||
|
||
2016-06-14 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* rs6000-tdep.c (ppc_process_record_op31): Initialize ra.
|
||
|
||
2016-06-13 Nick Clifton <nickc@redhat.com>
|
||
|
||
* gdbtypes.c (replace_type): Fix assertion.
|
||
|
||
2016-06-10 Tom Tromey <tom@tromey.com>
|
||
|
||
* gdbtypes.c (arch_type, arch_integer_type, arch_character_type)
|
||
(arch_boolean_type, arch_float_type, arch_complex_type)
|
||
(arch_flags_type, append_flags_type_field)
|
||
(append_flags_type_flag, arch_composite_type)
|
||
(append_composite_type_field_raw)
|
||
(append_composite_type_field_aligned)
|
||
(append_composite_type_field): Make "name" parameter const.
|
||
* gdbtypes.h (arch_type, arch_integer_type, arch_character_type)
|
||
(arch_boolean_type, arch_float_type, arch_complex_type)
|
||
(append_composite_type_field, append_composite_type_field_aligned)
|
||
(append_composite_type_field_raw, arch_flags_type)
|
||
(append_flags_type_field, append_flags_type_flag): Constify.
|
||
|
||
2016-06-10 Tom Tromey <tom@tromey.com>
|
||
|
||
PR rust/20110:
|
||
* rust-exp.y (lex_number): Don't truncate large numbers to i32.
|
||
|
||
2016-06-10 Tom Tromey <tom@tromey.com>
|
||
|
||
* Makefile.in (COMMON_OBS): Remove rust-exp.o.
|
||
(YYFILES): Add rust-exp.c.
|
||
(YYOBJ): Add rust-exp.o.
|
||
(local-maintainer-clean): Remove rust-exp.c.
|
||
|
||
2016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
|
||
|
||
* NEWS: Mention that GDB now supports a negative repeat count in
|
||
the 'x' command.
|
||
* printcmd.c (decode_format): Allow '-' in the parameter
|
||
"string_ptr" to accept a negative repeat count.
|
||
(find_instruction_backward): New function.
|
||
(read_memory_backward): New function.
|
||
(integer_is_zero): New function.
|
||
(find_string_backward): New function.
|
||
(do_examine): Use new functions to examine memory backward.
|
||
(_initialize_printcmd): Mention that 'x' command supports a negative
|
||
repeat count.
|
||
|
||
2016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
|
||
|
||
* MAINTAINERS (Write After Approval): Add Toshihito Kikuchi.
|
||
|
||
2016-06-09 Tom Tromey <tom@tromey.com>
|
||
|
||
PR python/19819:
|
||
* python/py-xmethods.c (invoke_method_name)
|
||
(py_get_result_type_method_name, py_invoke_method_name): Remove.
|
||
(gdbpy_initialize_xmethods): Don't initialize
|
||
py_invoke_method_name, py_get_result_type_method_name.
|
||
|
||
2016-06-07 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* mi/mi-interp.c (mi_record_changed): Add missing braces.
|
||
|
||
2016-06-07 Bernhard Heckel <bernhard.heckel@intel.com>
|
||
|
||
* findvar.c (follow_static_link): Check for valid pointer.
|
||
|
||
2016-06-06 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* NEWS: Mention the new fields in =record-started.
|
||
* common/btrace-common.h (btrace_format_short_string): New function
|
||
declaration.
|
||
* common/btrace-common.c (btrace_format_short_string): New
|
||
function.
|
||
* mi/mi-interp.c (mi_record_changed): Output method and format
|
||
fields in the =record-started record.
|
||
* record-btrace.c (record_btrace_open): Adapt record_changed
|
||
notification.
|
||
* record-full.c (record_full_open): Likewise.
|
||
* record.c (cmd_record_stop): Likewise.
|
||
|
||
2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
|
||
|
||
* windows-nat.c (handle_output_debug_string): Return type of
|
||
gdb_signal_from_host() is gdb_signal, not an int.
|
||
(windows_get_exec_module_filename): Add pointer casts for C++.
|
||
|
||
2016-06-02 Tom Tromey <tom@tromey.com>
|
||
|
||
PR python/18984:
|
||
* python/python.c (gdbpy_solib_name): Use GDB_PY_LLU_ARG.
|
||
|
||
2016-06-01 Pedro Alves <palves@redhat.com>
|
||
|
||
* remote-fileio.c (remote_fio_ctrl_c_flag, remote_fio_sa)
|
||
(remote_fio_osa)
|
||
(remote_fio_ofunc, remote_fileio_sig_init, remote_fileio_sig_set)
|
||
(remote_fileio_sig_exit, remote_fileio_ctrl_c_signal_handler):
|
||
Delete.
|
||
(remote_fileio_o_quit_handler): New global.
|
||
(remote_fileio_quit_handler): New function.
|
||
(remote_fileio_reply): Check the quit flag instead of the custom
|
||
'remote_fio_ctrl_c_flag' flag. Restore the quit handler instead
|
||
of changing the SIGINT handler.
|
||
(do_remote_fileio_request): Override the quit handler instead of
|
||
changing the SIGINT handler.
|
||
|
||
2016-06-01 Nick Clifton <nickc@redhat.com>
|
||
|
||
* common/common-utils.c (xmalloc_failed): New function. Provided
|
||
so that the version in libiberty is not linked in.
|
||
|
||
2016-06-01 Markus Metzger <markus.t.metzger@intel.com>
|
||
|
||
* infcmd.c (skip_finish_frames): New.
|
||
(finish_command): Call skip_finish_frames.
|
||
|
||
2016-06-01 Yao Qi <yao.qi@linaro.org>
|
||
|
||
PR remote/19998
|
||
* remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Call
|
||
quit_serial_event_set.
|
||
|
||
2016-06-01 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
GDB 7.11.1 released.
|
||
|
||
2016-05-31 Martin Galvan <martin.galvan@tallertechnologies.com>
|
||
|
||
PR c++/19893
|
||
* dwarf2loc.c (coerce_pieced_ref, indirect_synthetic_pointer,
|
||
fetch_const_value_from_synthetic_pointer): New functions.
|
||
(indirect_pieced_value): Move lower half to indirect_synthetic_pointer.
|
||
(pieced_value_funcs): Implement coerce_ref.
|
||
* valops.c (value_addr): Call coerce_ref for synthetic references.
|
||
* valprint.c (valprint_check_validity): Return true for synthetic
|
||
references. Also, don't show "<synthetic pointer>" if they reference
|
||
addressable values.
|
||
(generic_val_print_ref): Handle synthetic references. Also move some
|
||
code to print_ref_address.
|
||
(print_ref_address, get_value_addr_contents): New functions.
|
||
|
||
2016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||
|
||
PR c++/15231
|
||
* dwarf2read.c (enum pc_bounds_kind): Add PC_BOUNDS_INVALID.
|
||
(process_psymtab_comp_unit_reader, read_func_scope): Adjust callers.
|
||
(read_lexical_block_scope): Import DIEs from bare DW_TAG_lexical_block.
|
||
(read_call_site_scope): Adjust callers.
|
||
(dwarf2_get_pc_bounds): Implement pc_bounds_invalid.
|
||
(dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
|
||
|
||
2016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||
|
||
Code cleanup: dwarf2_get_pc_bounds: -1/0/+1 -> enum
|
||
* dwarf2read.c (enum pc_bounds_kind) New.
|
||
(dwarf2_get_pc_bounds): Use it in the declaration.
|
||
(process_psymtab_comp_unit_reader): Adjust caller. Rename has_pc_info
|
||
to cu_bounds_kind.
|
||
(read_func_scope, read_lexical_block_scope, read_call_site_scope):
|
||
Adjust callers.
|
||
(dwarf2_get_pc_bounds): Use enum pc_bounds_kind in the definition.
|
||
(dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
|
||
|
||
2016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||
|
||
* NEWS (QCatchSyscalls): Remove the parameter. Include ...
|
||
(QCatchSyscalls:1 in qSupported) ... this separate entry which got
|
||
deleted.
|
||
|
||
2016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||
|
||
* NEWS (N stop reply): Remove empty line.
|
||
|
||
2016-05-28 Alan Modra <amodra@gmail.com>
|
||
|
||
* compile/compile-object-load.c (link_callbacks_multiple_definition,
|
||
link_callbacks_warning, link_callbacks_undefined_symbol,
|
||
link_callbacks_undefined_symbol, link_callbacks_reloc_overflow,
|
||
link_callbacks_reloc_dangerous,
|
||
link_callbacks_unattached_reloc): Return void.
|
||
|
||
2016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* opencl-lang.c (evaluate_subexp_opencl): If
|
||
EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute to
|
||
the returned value in the STRUCTOP_STRUCT case.
|
||
|
||
2016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* eval.c (evaluate_subexp_standard): If EVAL_AVOID_SIDE_EFFECTS
|
||
mode, forward the VALUE_LVAL attribute to the returned value in
|
||
the STRUCTOP_PTR case.
|
||
|
||
2016-05-25 Tom Tromey <tom@tromey.com>
|
||
|
||
* python/py-value.c (value_object_as_number): Use correct spelling
|
||
of HAVE_LIBPYTHON2_4.
|
||
|
||
2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
|
||
|
||
* f-typeprint.c (f_type_print_base): Replace 0 by show.
|
||
|
||
2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
|
||
|
||
* f-typeprint.c (f_type_print_base): Decrease show by one.
|
||
|
||
2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
|
||
|
||
* f-typeprint.c (f_type_print_base): Don't print fields when show < 0.
|
||
|
||
2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
|
||
|
||
* f-typeprint.c (f_type_print_base): Take print level into account.
|
||
|
||
2016-05-24 Tom Tromey <tom@tromey.com>
|
||
|
||
PR python/17386:
|
||
* python/py-value.c (value_object_as_number): Add
|
||
nb_inplace_floor_divide, nb_inplace_true_divide, nb_index.
|
||
|
||
2016-05-24 Tom Tromey <tom@tromey.com>
|
||
|
||
* python/py-value.c (value_object_as_number): Add
|
||
nb_inplace_divide for Python 2.
|
||
|
||
2016-05-23 Tom Tromey <tom@tromey.com>
|
||
|
||
PR python/17981:
|
||
* python/py-breakpoint.c (gdbpy_breakpoints): Return a new tuple
|
||
when there are no breakpoints.
|
||
|
||
2016-05-24 Pedro Alves <palves@redhat.com>
|
||
|
||
PR gdb/19828
|
||
* linux-nat.c (attach_proc_task_lwp_callback): Mark the lwp
|
||
resumed, and add the thread to GDB's thread list.
|
||
|
||
2016-05-24 Pedro Alves <palves@redhat.com>
|
||
|
||
PR gdb/19828
|
||
* linux-nat.c (get_pending_status): If the thread reported the
|
||
event to the core and it's pending, use the pending status signal
|
||
number.
|
||
|
||
2016-05-24 Pedro Alves <palves@redhat.com>
|
||
|
||
PR gdb/19828
|
||
* linux-nat.c (lwp_lwpid_htab): New htab.
|
||
(lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
|
||
(lwp_lwpid_htab_add_lwp): New functions.
|
||
(lwp_list): Tweak comment.
|
||
(lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
|
||
functions.
|
||
(purge_lwp_list): Rewrite, using htab_traverse_noresize.
|
||
(add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
|
||
(delete_lwp): Use lwp_list_remove. Remove htab too.
|
||
(find_lwp_pid): Search in htab.
|
||
(_initialize_linux_nat): Call lwp_lwpid_htab_create.
|
||
* linux-nat.h (struct lwp_info) <prev>: New field.
|
||
|
||
2016-05-24 Pedro Alves <palves@redhat.com>
|
||
|
||
PR gdb/19828
|
||
* linux-nat.c (lwp_lwpid_htab): New htab.
|
||
(lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
|
||
(lwp_lwpid_htab_add_lwp): New functions.
|
||
(lwp_list): Tweak comment.
|
||
(lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
|
||
functions.
|
||
(purge_lwp_list): Rewrite, using htab_traverse_noresize.
|
||
(add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
|
||
(delete_lwp): Use lwp_list_remove. Remove htab too.
|
||
(find_lwp_pid): Search in htab.
|
||
(_initialize_linux_nat): Call lwp_lwpid_htab_create.
|
||
* linux-nat.h (struct lwp_info) <prev>: New field.
|
||
|
||
2016-05-24 Pedro Alves <palves@redhat.com>
|
||
|
||
PR gdb/19828
|
||
* linux-nat.c (linux_resume_one_lwp_throw): Clear the LWP's core
|
||
field.
|
||
(linux_nat_update_thread_list): Don't fetch the core if already
|
||
known.
|
||
|
||
2016-05-24 Pedro Alves <palves@redhat.com>
|
||
|
||
PR gdb/19828
|
||
* linux-tdep.c (find_mapping_size): Delete.
|
||
(linux_vsyscall_range_raw): Rewrite reading from
|
||
/proc/PID/task/PID/maps directly instead of using
|
||
gdbarch_find_memory_regions.
|
||
|
||
2016-05-24 Pedro Alves <palves@redhat.com>
|
||
|
||
PR gdb/19828
|
||
* linux-nat.c (report_thread_events): New global.
|
||
(linux_handle_extended_wait): Report
|
||
TARGET_WAITKIND_THREAD_CREATED if thread event reporting is
|
||
enabled.
|
||
(wait_lwp, linux_nat_filter_event): Report all thread exits if
|
||
thread event reporting is enabled. Remove comment.
|
||
(filter_exit_event): New function.
|
||
(linux_nat_wait_1): Use it.
|
||
(linux_nat_thread_events): New function.
|
||
(linux_nat_add_target): Install it as target_thread_events method.
|
||
|
||
2016-05-24 Yan-Ting Lin <currygt52@gmail.com>
|
||
|
||
* MAINTAINERS (Write After Approval): Add "Yan-Ting Lin".
|
||
|
||
2016-05-23 Yao Qi <yao.qi@arm.com>
|
||
|
||
* arch-utils.c (default_code_of_frame_writable): New function.
|
||
* arch-utils.h (default_code_of_frame_writable): Declare.
|
||
* arm-tdep.c (arm_code_of_frame_writable): New function.
|
||
(arm_gdbarch_init): Install gdbarch method
|
||
code_of_frame_writable if the target is M-profile.
|
||
* frame.c (skip_unwritable_frames): New function.
|
||
* frame.h (skip_unwritable_frames): Declare.
|
||
* gdbarch.sh (code_of_frame_writable): New.
|
||
* gdbarch.c, gdbarch.h: Re-generated.
|
||
* infcmd.c (finish_command): Call skip_unwritable_frames.
|
||
|
||
2016-05-23 Tom Tromey <tom@tromey.com>
|
||
|
||
PR python/19438, PR python/18393:
|
||
* python/py-objfile.c (objfpy_initialize): Initialize self->dict.
|
||
* python/py-progspace.c (pspy_initialize): Initialize self->dict.
|
||
|
||
2016-05-23 Gary Benson <gbenson@redhat.com>
|
||
|
||
* nat/gdb_thread_db.h (td_thr_validate_ftype): Remove typedef.
|
||
* linux-thread-db.c (struct thread_db_info) <td_thr_validate_p>:
|
||
Remove field.
|
||
(try_thread_db_load_1): Remove td_thr_validate initialization.
|
||
|
||
2016-05-23 Jon Boden <jon@ubuntubsd.org> (tiny change)
|
||
|
||
* configure.ac: Search for libutil-freebsd as alternative to libutil.
|
||
* configure: Re-generated.
|
||
|
||
2016-05-19 Andreas Schwab <schwab@suse.de>
|
||
|
||
* ia64-libunwind-tdep.c (libunwind_descr): Add cast from void *.
|
||
(libunwind_frame_set_descr): Likewise.
|
||
(libunwind_frame_cache): Likewise.
|
||
(libunwind_frame_dealloc_cache): Likewise.
|
||
(libunwind_frame_sniffer): Likewise.
|
||
(libunwind_search_unwind_table): Likewise.
|
||
(libunwind_sigtramp_frame_sniffer): Likewise.
|
||
(libunwind_get_reg_special): Likewise.
|
||
(libunwind_load): Likewise.
|
||
* ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
|
||
(ia64_linux_store_register): Likewise.
|
||
(ia64_linux_xfer_partial): Likewise.
|
||
* ia64-tdep.c (ia64_access_reg): Likewise.
|
||
(ia64_access_fpreg): Likewise.
|
||
(ia64_access_rse_reg): Likewise.
|
||
(ia64_access_rse_fpreg): Likewise.
|
||
|
||
2016-05-18 Tom Tromey <tom@tromey.com>
|
||
|
||
* rust-lang.c (rust_subscript): Initialize "high".
|
||
|
||
2016-05-17 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
PR gdb/20045
|
||
* mi/mi-main.c (mi_on_resume): Call target_can_async_p instead
|
||
of target_is_async_p.
|
||
|
||
2016-05-17 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
PR gdb/18077
|
||
* mi/mi-main.c (run_one_inferior): Use run target to determine
|
||
whether to run async or not.
|
||
(mi_cmd_exec_run): Likewise.
|
||
|
||
2016-05-17 Tom Tromey <tom@tromey.com>
|
||
|
||
* std-operator.def (OP_RANGE): Rename from OP_F90_RANGE.
|
||
* rust-lang.c: Don't include f-lang.h.
|
||
(rust_range, rust_compute_range, rust_subscript)
|
||
(rust_evaluate_subexp): Update.
|
||
* rust-exp.y: Don't include f-lang.h.
|
||
(ast_range, convert_ast_to_expression): Update.
|
||
* parse.c (operator_length_standard): Update.
|
||
* f-lang.h (enum f90_range_type): Move to expression.h.
|
||
* f-exp.y: Use OP_RANGE.
|
||
* expression.h (enum range_type): New enum; renamed from
|
||
f90_range_type.
|
||
* expprint.c: Don't include f-lang.h.
|
||
(print_subexp_standard, dump_subexp_body_standard): Use OP_RANGE.
|
||
* eval.c (value_f90_subarray, evaluate_subexp_standard): Update.
|
||
|
||
2016-05-17 Tom Tromey <tom@tromey.com>
|
||
|
||
* NEWS: Add Rust item.
|
||
|
||
2016-05-17 Tom Tromey <tom@tromey.com>
|
||
Manish Goregaokar <manishsmail@gmail.com>
|
||
|
||
* symtab.c (symbol_find_demangled_name): Handle Rust.
|
||
* symfile.c (init_filename_language_table): Treat ".rs" as Rust.
|
||
* std-operator.def (STRUCTOP_ANONYMOUS, OP_RUST_ARRAY): New
|
||
constants.
|
||
* rust-lang.h: New file.
|
||
* rust-lang.c: New file.
|
||
* rust-exp.y: New file.
|
||
* dwarf2read.c (read_file_scope): Add Rust producer sniffing.
|
||
(dwarf2_compute_name, read_func_scope, read_structure_type)
|
||
(read_base_type, read_subrange_type, set_cu_language)
|
||
(new_symbol_full, determine_prefix): Handle Rust.
|
||
* defs.h (enum language) <language_rust>: New constant.
|
||
* Makefile.in (SFILES): Add rust-exp.y, rust-lang.c.
|
||
(COMMON_OBS): Add rust-exp.o, rust-lang.o.
|
||
|
||
2016-05-17 Tom Tromey <tom@tromey.com>
|
||
|
||
* valprint.h (struct generic_val_print_array) <array_start,
|
||
array_end>: New fields.
|
||
* valprint.c (generic_val_print_array): Add "decorations"
|
||
parameter. Use "array_start", "array_end".
|
||
(generic_val_print) <TYPE_CODE_ARRAY>: Update.
|
||
* p-valprint.c (p_decorations): Update.
|
||
* m2-valprint.c (m2_decorations): Update.
|
||
* f-valprint.c (f_decorations): Update.
|
||
* c-valprint.c (c_decorations): Update.
|
||
|
||
2016-05-17 Tom Tromey <tom@tromey.com>
|
||
|
||
* NEWS: Add "maint selftest" entry.
|
||
* selftest.h: New file.
|
||
* selftest.c: New file.
|
||
* maint.c: Include selftest.h.
|
||
(maintenance_selftest): New function.
|
||
(_initialize_maint_cmds): Add "maint selftest" command.
|
||
* configure.ac (GDB_SELF_TEST): Maybe define.
|
||
* config.in, configure: Rebuild.
|
||
* Makefile.in (SFILES): Add selftest.c.
|
||
(COMMON_OBS): Add selftest.o.
|
||
|
||
2016-05-17 Tom Tromey <tom@tromey.com>
|
||
|
||
* expprint.c: Include f-lang.h.
|
||
(print_subexp_standard, dump_subexp_body_standard): Handle
|
||
OP_F90_RANGE.
|
||
|
||
2016-05-17 Tom Tromey <tom@tromey.com>
|
||
|
||
* Makefile.in (init.c): Search .y files for initialization
|
||
functions.
|
||
|
||
2016-05-12 Doug Evans <dje@google.com>
|
||
|
||
PR symtab/19999
|
||
* dwarf2loc.c (dwarf2_find_location_expression): For DWO files still
|
||
add base_offset.
|
||
|
||
2016-05-10 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
|
||
|
||
* iq2000-tdep.c (iq2000_scan_prologue): Remove if that shouldn't guard
|
||
anything.
|
||
* linespec.c (add_sal_to_sals): Restore call to symtab_to_fullname.
|
||
|
||
2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
|
||
|
||
* arm-tdep.c (arm_elf_make_msymbol_special): Use
|
||
ARM_GET_SYM_BRANCH_TYPE to get branch type of a symbol.
|
||
|
||
2016-05-07 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
|
||
|
||
* aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Remove unused
|
||
variables.
|
||
* aarch64-tdep.c (aarch64_skip_prologue): Likewise.
|
||
(aarch64_scan_prologue): Likewise.
|
||
(aarch64_prologue_prev_register): Likewise.
|
||
(aarch64_dwarf2_prev_register): Likewise.
|
||
(pass_in_v): Likewise.
|
||
(aarch64_push_dummy_call): Likewise.
|
||
(aarch64_breakpoint_from_pc): Likewise.
|
||
(aarch64_return_in_memory): Likewise.
|
||
(aarch64_return_value): Likewise.
|
||
(aarch64_displaced_step_b_cond): Likewise.
|
||
(aarch64_displaced_step_cb): Likewise.
|
||
(aarch64_displaced_step_tb): Likewise.
|
||
(aarch64_gdbarch_init): Likewise.
|
||
(aarch64_process_record): Likewise.
|
||
* alpha-mdebug-tdep.c (alpha_mdebug_init_abi): Likewise.
|
||
* alpha-tdep.c (_initialize_alpha_tdep): Likewise.
|
||
* amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
|
||
* amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Likewise.
|
||
* amd64-tdep.c (fixup_riprel): Likewise.
|
||
* amd64-windows-tdep.c (amd64_windows_frame_decode_epilogue): Likewise.
|
||
(amd64_windows_frame_decode_insns): Likewise.
|
||
(amd64_windows_frame_cache): Likewise.
|
||
(amd64_windows_frame_prev_register): Likewise.
|
||
(amd64_windows_frame_this_id): Likewise.
|
||
(amd64_windows_init_abi): Likewise.
|
||
* arm-linux-tdep.c (arm_linux_get_syscall_number): Likewise.
|
||
(arm_linux_get_next_pcs_syscall_next_pc): Likewise.
|
||
* arm-symbian-tdep.c (arm_symbian_init_abi): Likewise.
|
||
* arm-tdep.c (arm_make_epilogue_frame_cache): Likewise.
|
||
(arm_epilogue_frame_prev_register): Likewise.
|
||
(arm_record_vdata_transfer_insn): Likewise.
|
||
(arm_record_exreg_ld_st_insn): Likewise.
|
||
* auto-load.c (execute_script_contents): Likewise.
|
||
(print_scripts): Likewise.
|
||
* avr-tdep.c (avr_frame_prev_register): Likewise.
|
||
(avr_push_dummy_call): Likewise.
|
||
* bfin-linux-tdep.c (bfin_linux_sigframe_init): Likewise.
|
||
* bfin-tdep.c (bfin_gdbarch_init): Likewise.
|
||
* blockframe.c (find_pc_partial_function_gnu_ifunc): Likewise.
|
||
* break-catch-throw.c (fetch_probe_arguments): Likewise.
|
||
* breakpoint.c (breakpoint_xfer_memory): Likewise.
|
||
(breakpoint_init_inferior): Likewise.
|
||
(breakpoint_inserted_here_p): Likewise.
|
||
(software_breakpoint_inserted_here_p): Likewise.
|
||
(hardware_breakpoint_inserted_here_p): Likewise.
|
||
(bpstat_what): Likewise.
|
||
(break_range_command): Likewise.
|
||
(save_breakpoints): Likewise.
|
||
* coffread.c (coff_symfile_read): Likewise.
|
||
* cris-tdep.c (cris_push_dummy_call): Likewise.
|
||
(cris_scan_prologue): Likewise.
|
||
(cris_register_size): Likewise.
|
||
(_initialize_cris_tdep): Likewise.
|
||
* d-exp.y: Likewise.
|
||
* dbxread.c (dbx_read_symtab): Likewise.
|
||
(process_one_symbol): Likewise.
|
||
(coffstab_build_psymtabs): Likewise.
|
||
(elfstab_build_psymtabs): Likewise.
|
||
* dicos-tdep.c (dicos_init_abi): Likewise.
|
||
* disasm.c (do_mixed_source_and_assembly): Likewise.
|
||
(gdb_disassembly): Likewise.
|
||
* dtrace-probe.c (dtrace_process_dof): Likewise.
|
||
* dwarf2read.c (error_check_comp_unit_head): Likewise.
|
||
(build_type_psymtabs_1): Likewise.
|
||
(skip_one_die): Likewise.
|
||
(process_imported_unit_die): Likewise.
|
||
(dwarf2_physname): Likewise.
|
||
(read_file_scope): Likewise.
|
||
(setup_type_unit_groups): Likewise.
|
||
(create_dwo_cu_reader): Likewise.
|
||
(create_dwo_cu): Likewise.
|
||
(create_dwo_unit_in_dwp_v1): Likewise.
|
||
(create_dwo_unit_in_dwp_v2): Likewise.
|
||
(lookup_dwo_unit_in_dwp): Likewise.
|
||
(free_dwo_file): Likewise.
|
||
(check_producer): Likewise.
|
||
(dwarf2_add_typedef): Likewise.
|
||
(dwarf2_add_member_fn): Likewise.
|
||
(read_unsigned_leb128): Likewise.
|
||
(read_signed_leb128): Likewise.
|
||
(dwarf2_const_value): Likewise.
|
||
(follow_die_sig_1): Likewise.
|
||
(dwarf_decode_macro_bytes): Likewise.
|
||
* extension.c (restore_active_ext_lang): Likewise.
|
||
* frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
|
||
* ft32-tdep.c (ft32_analyze_prologue): Likewise.
|
||
* gdbtypes.c (lookup_typename): Likewise.
|
||
(resolve_dynamic_range): Likewise.
|
||
(check_typedef): Likewise.
|
||
* h8300-tdep.c (h8300_is_argument_spill): Likewise.
|
||
(h8300_gdbarch_init): Likewise.
|
||
* hppa-tdep.c (hppa32_push_dummy_call): Likewise.
|
||
(hppa_frame_this_id): Likewise.
|
||
(_initialize_hppa_tdep): Likewise.
|
||
* hppanbsd-tdep.c (hppanbsd_sigtramp_cache_init): Likewise.
|
||
* hppaobsd-tdep.c (hppaobsd_supply_fpregset): Likewise.
|
||
* i386-dicos-tdep.c (i386_dicos_init_abi): Likewise.
|
||
* i386-tdep.c (i386_bnd_type): Likewise.
|
||
(i386_gdbarch_init): Likewise.
|
||
(i386_mpx_bd_base): Likewise.
|
||
* i386nbsd-tdep.c (i386nbsd_sigtramp_cache_init): Likewise.
|
||
* i386obsd-tdep.c (i386obsd_elf_init_abi): Likewise.
|
||
* ia64-tdep.c (examine_prologue): Likewise.
|
||
(ia64_frame_cache): Likewise.
|
||
(ia64_push_dummy_call): Likewise.
|
||
* infcmd.c (finish_command_fsm_async_reply_reason): Likewise.
|
||
(default_print_one_register_info): Likewise.
|
||
* infrun.c (infrun_thread_ptid_changed): Likewise.
|
||
(thread_still_needs_step_over): Likewise.
|
||
(stop_all_threads): Likewise.
|
||
(restart_threads): Likewise.
|
||
(keep_going_stepped_thread): Likewise.
|
||
* iq2000-tdep.c (iq2000_scan_prologue): Likewise.
|
||
* language.c (language_init_primitive_type_symbols): Likewise.
|
||
* linespec.c (add_sal_to_sals): Likewise.
|
||
* linux-nat.c (status_callback): Likewise.
|
||
(kill_unfollowed_fork_children): Likewise.
|
||
(linux_nat_kill): Likewise.
|
||
* linux-tdep.c (linux_fill_prpsinfo): Likewise.
|
||
* linux-thread-db.c (thread_db_notice_clone): Likewise.
|
||
(record_thread): Likewise.
|
||
* location.c (string_to_event_location_basic): Likewise.
|
||
* m32c-tdep.c (m32c_prev_register): Likewise.
|
||
* m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
|
||
* m32r-tdep.c (decode_prologue): Likewise.
|
||
* m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
|
||
* machoread.c (macho_symtab_read): Likewise.
|
||
(macho_symfile_read): Likewise.
|
||
(macho_symfile_offsets): Likewise.
|
||
* maint.c (set_per_command_cmd): Likewise.
|
||
* mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
|
||
(mi_cmd_stack_list_variables): Likewise.
|
||
* mi/mi-main.c (mi_cmd_exec_run): Likewise.
|
||
(output_register): Likewise.
|
||
(mi_cmd_execute): Likewise.
|
||
(mi_cmd_trace_define_variable): Likewise.
|
||
(print_variable_or_computed): Likewise.
|
||
* minsyms.c (prim_record_minimal_symbol_full): Likewise.
|
||
* mn10300-tdep.c (mn10300_frame_prev_register): Likewise.
|
||
* msp430-tdep.c (msp430_pseudo_register_write): Likewise.
|
||
* mt-tdep.c (mt_registers_info): Likewise.
|
||
* nios2-tdep.c (nios2_analyze_prologue): Likewise.
|
||
(nios2_push_dummy_call): Likewise.
|
||
(nios2_frame_unwind_cache): Likewise.
|
||
(nios2_stub_frame_cache): Likewise.
|
||
(nios2_stub_frame_sniffer): Likewise.
|
||
(nios2_gdbarch_init): Likewise.
|
||
* ppc-ravenscar-thread.c: Likewise.
|
||
* ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
|
||
* python/py-evts.c (add_new_registry): Likewise.
|
||
* python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
|
||
(bpfinishpy_detect_out_scope_cb): Likewise.
|
||
* python/py-framefilter.c (py_print_value): Likewise.
|
||
* python/py-inferior.c (infpy_write_memory): Likewise.
|
||
* python/py-infevents.c (create_inferior_call_event_object): Likewise.
|
||
* python/py-infthread.c (thpy_get_ptid): Likewise.
|
||
* python/py-linetable.c (ltpy_get_pcs_for_line): Likewise.
|
||
(ltpy_get_all_source_lines): Likewise.
|
||
(ltpy_is_valid): Likewise.
|
||
(ltpy_iternext): Likewise.
|
||
* python/py-symtab.c (symtab_and_line_to_sal_object): Likewise.
|
||
* python/py-unwind.c (pyuw_object_attribute_to_pointer): Likewise.
|
||
(unwind_infopy_str): Likewise.
|
||
* python/py-varobj.c (py_varobj_get_iterator): Likewise.
|
||
* ravenscar-thread.c (ravenscar_inferior_created): Likewise.
|
||
* rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
|
||
* rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
|
||
* rs6000-tdep.c (ppc_deal_with_atomic_sequence): Likewise.
|
||
* s390-linux-tdep.c (s390_supply_tdb_regset): Likewise.
|
||
(s390_frame_prev_register): Likewise.
|
||
(s390_dwarf2_frame_init_reg): Likewise.
|
||
(s390_record_vr): Likewise.
|
||
(s390_process_record): Likewise.
|
||
* score-tdep.c (score_push_dummy_call): Likewise.
|
||
(score3_analyze_prologue): Likewise.
|
||
* sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
|
||
* sh64-tdep.c (sh64_analyze_prologue): Likewise.
|
||
(sh64_push_dummy_call): Likewise.
|
||
(sh64_extract_return_value): Likewise.
|
||
(sh64_do_fp_register): Likewise.
|
||
* solib-aix.c (solib_aix_get_section_offsets): Likewise.
|
||
* solib-darwin.c (darwin_read_exec_load_addr_from_dyld): Likewise.
|
||
(darwin_solib_read_all_image_info_addr): Likewise.
|
||
* solib-dsbt.c (enable_break): Likewise.
|
||
* solib-frv.c (enable_break2): Likewise.
|
||
(frv_fdpic_find_canonical_descriptor): Likewise.
|
||
* solib-svr4.c (svr4_handle_solib_event): Likewise.
|
||
* sparc-tdep.c (sparc_skip_stack_check): Likewise.
|
||
* sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): Likewise.
|
||
* sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
|
||
* spu-tdep.c (info_spu_dma_cmdlist): Likewise.
|
||
* stack.c (read_frame_local): Likewise.
|
||
* symfile.c (symbol_file_add_separate): Likewise.
|
||
(remove_symbol_file_command): Likewise.
|
||
* symmisc.c (maintenance_print_one_line_table): Likewise.
|
||
* symtab.c (symbol_cache_flush): Likewise.
|
||
(basic_lookup_transparent_type): Likewise.
|
||
(sort_search_symbols_remove_dups): Likewise.
|
||
* target.c (target_memory_map): Likewise.
|
||
(target_detach): Likewise.
|
||
(target_resume): Likewise.
|
||
(acquire_fileio_fd): Likewise.
|
||
(target_store_registers): Likewise.
|
||
* thread.c (print_thread_info_1): Likewise.
|
||
* tic6x-tdep.c (tic6x_analyze_prologue): Likewise.
|
||
* tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Likewise.
|
||
* tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
|
||
(tilegx_analyze_prologue): Likewise.
|
||
(tilegx_stack_frame_destroyed_p): Likewise.
|
||
(tilegx_frame_cache): Likewise.
|
||
* tracefile.c (trace_save): Likewise.
|
||
* tracepoint.c (encode_actions_and_make_cleanup): Likewise.
|
||
(start_tracing): Likewise.
|
||
(print_one_static_tracepoint_marker): Likewise.
|
||
* tui/tui.c (tui_enable): Likewise.
|
||
* valops.c (value_struct_elt_bitpos): Likewise.
|
||
(find_overload_match): Likewise.
|
||
(find_oload_champ): Likewise.
|
||
* value.c (value_contents_copy_raw): Likewise.
|
||
* windows-tdep.c (windows_get_tlb_type): Likewise.
|
||
* x86-linux-nat.c (x86_linux_enable_btrace): Likewise.
|
||
* xcoffread.c (record_minimal_symbol): Likewise.
|
||
(scan_xcoff_symtab): Likewise.
|
||
* xtensa-tdep.c (execute_code): Likewise.
|
||
(xtensa_gdbarch_init): Likewise.
|
||
(_initialize_xtensa_tdep): Likewise.
|
||
|
||
2016-05-04 Ulrich Weigand <uweigand@de.ibm.com>
|
||
|
||
* spu-linux-nat.c (spu_bfd_iovec_pread): Add pointer cast for C++.
|
||
(spu_bfd_open): Likewise.
|
||
|
||
2016-05-04 Yao Qi <yao.qi@linaro.org>
|
||
|
||
PR gdb/19947
|
||
* corefile.c (read_memory): Rename it to ...
|
||
(read_memory_object): ... it. Add parameter object.
|
||
(read_memory): Call read_memory_object.
|
||
(read_stack): Likewise.
|
||
(read_code): Likewise.
|
||
|
||
2016-05-03 Yunlian Jiang <yunlian@google.com>
|
||
Doug Evans <dje@google.com>
|
||
|
||
PR symtab/19914
|
||
* dwarf2read.c (open_and_init_dwp_file): Look at backlink if objfile
|
||
is separate debug file.
|
||
|
||
2016-05-03 Don Breazeal <donb@codesourcery.com>
|
||
|
||
* serial.h (gdb_pipe): Fix argument names in comment.
|
||
|
||
2016-05-03 Pedro Alves <palves@redhat.com>
|
||
|
||
PR python/20037
|
||
* python/python.c (_initialize_python) [IS_PY3K]: xstrdup/xfree
|
||
oldloc.
|
||
|
||
2016-05-03 Pedro Alves <palves@redhat.com>
|
||
|
||
* python/python.c (_initialize_python) [IS_PY3K]: Remove dead
|
||
code.
|
||
|
||
2016-05-03 Pedro Alves <palves@redhat.com>
|
||
|
||
* configure.ac (PYTHON_LIBS): Sed away "-Xlinker -export-dynamic".
|
||
* configure: Regenerate.
|
||
|
||
2016-05-03 Pedro Alves <palves@redhat.com>
|
||
|
||
* configure.ac (checking for the dynamic export flag): Add
|
||
$PYTHON_CPPFLAGS to CPPFLAGS.
|
||
* configure: Regenerate.
|
||
|
||
2016-05-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
|
||
|
||
* symfile.c (find_pc_overlay): Add braces to avoid -Wparentheses
|
||
warning.
|
||
(find_pc_mapped_section): Likewise.
|
||
(list_overlays_command): Likewise.
|
||
|
||
2016-05-02 Eli Zaretskii <eliz@gnu.org>
|
||
|
||
* windows-nat.c (_initialize_check_for_gdb_ini): Fix off-by-one
|
||
error in allocation of space for "$HOME/.gdbinit" string. This
|
||
caused GDB to abort on startup whenever a '~/gdb.ini' file was
|
||
actually found, because xsnprintf would hit an assertion
|
||
violation.
|
||
|
||
2016-04-28 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* cli/cli-decode.c (help_cmd_list): Do not list commands that
|
||
are deprecated.
|
||
|
||
2016-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||
|
||
* remote.c (remote_start_remote): Detect PACKET_vFile_setfs.support.
|
||
|
||
2016-04-27 Martin Galvan <martin.galvan@tallertechnologies.com>
|
||
|
||
* c-valprint.c (c_value_print): Always convert val back to reference
|
||
type if we converted it to a pointer type.
|
||
|
||
2016-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||
|
||
* configure.ac: Enhance configure check for babeltrace to reject
|
||
non-C++-enabled versions.
|
||
* configure: Regenerate.
|
||
|
||
2016-04-26 Sanimir Agovic <sanimir.agovic@intel.com>
|
||
Keven Boell <keven.boell@intel.com>
|
||
Bernhard Heckel <bernhard.heckel@intel.com>
|
||
|
||
* f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
|
||
function.
|
||
(F77_DIM_SIZE, F77_DIM_OFFSET): Remove macro.
|
||
(f77_print_array_1): Use value_subscript to subscript a
|
||
value array.
|
||
(f77_print_array): Remove call to f77_create_arrayprint_offset_tbl.
|
||
(f_val_print): Use value_field to construct a field value.
|
||
|
||
2016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
|
||
|
||
* valarith.c (value_address): Resolve dynamic types.
|
||
|
||
2016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
|
||
Keven Boell <kevel.boell@intel.com>
|
||
|
||
* NEWS: Add new supported features for fortran.
|
||
* gdbtypes.c (remove_dyn_prop): New.
|
||
(resolve_dynamic_struct): Keep type length for fortran structs.
|
||
* gdbtypes.h: Forward declaration of new function.
|
||
* value.c (value_address): Return dynamic resolved location of a value.
|
||
(set_value_component_location): Adjust the value address
|
||
for single value prints.
|
||
(value_primitive_field): Support value types with a dynamic location.
|
||
(set_internalvar): Remove dynamic location property of
|
||
internal variables.
|
||
|
||
2016-04-25 Pedro Alves <palves@redhat.com>
|
||
Yao Qi <yao.qi@linaro.org>
|
||
|
||
* mem-break.c (set_raw_breakpoint_at): Create a raw breakpoint
|
||
object. Insert it if it is not inserted yet. Increase the
|
||
refcount and link it into the proc's raw breakpoint list.
|
||
|
||
2016-04-25 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* breakpoint.c (should_be_inserted): Return 0 if the location's
|
||
owner is not single step breakpoint or single step breakpoint's
|
||
thread isn't the thread which is stepping past a breakpoint.
|
||
* gdbarch.sh (software_single_step): Update comments.
|
||
* gdbarch.h: Regenerated.
|
||
* infrun.c (struct step_over_info) <thread>: New field.
|
||
(set_step_over_info): New argument 'thread'. Callers updated.
|
||
(clear_step_over_info): Set field thread to -1.
|
||
(thread_is_stepping_over_breakpoint): New function.
|
||
* infrun.h (thread_is_stepping_over_breakpoint): Declaration.
|
||
|
||
2016-04-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
|
||
|
||
* ppc-linux-nat.c (ppc_linux_read_description): Use PPC_FEATURE_HAS_VSX
|
||
and PPC_FEATURE_HAS_ALTIVEC to check if such features are available.
|
||
|
||
2016-04-22 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* valops.c (read_value_memory): New local variable 'stack'.
|
||
Set it to either TARGET_OBJECT_STACK_MEMORY or
|
||
TARGET_OBJECT_MEMORY.
|
||
|
||
2016-04-22 Pedro Alves <palves@redhat.com>
|
||
|
||
* ada-exp.y: Remove all yy symbol remappings.
|
||
(GDB_YY_REMAP_PREFIX): Define.
|
||
Include "yy-remap.h".
|
||
* ada-lang.c (ada_language_defn): Adjust.
|
||
* ada-lang.h (ada_error): Rename to ...
|
||
(ada_yyerror): ... this.
|
||
* c-exp.y: Remove all yy symbol remappings.
|
||
(GDB_YY_REMAP_PREFIX): Define.
|
||
Include "yy-remap.h".
|
||
* c-lang.c (c_language_defn, cplus_language_defn)
|
||
(asm_language_defn, minimal_language_defn): Adjust.
|
||
* c-lang.h (c_error): Rename to ...
|
||
(c_yyerror): ... this.
|
||
* d-exp.y: Remove all yy symbol remappings.
|
||
(GDB_YY_REMAP_PREFIX): Define.
|
||
Include "yy-remap.h".
|
||
* d-lang.c (d_language_defn): Adjust.
|
||
* d-lang.h (d_error): Rename to ...
|
||
(d_yyerror): ... this.
|
||
* f-exp.y: Remove all yy symbol remappings.
|
||
(GDB_YY_REMAP_PREFIX): Define.
|
||
Include "yy-remap.h".
|
||
* f-lang.c (f_language_defn): Adjust.
|
||
* f-lang.h (f_error): Rename to ...
|
||
(f_yyerror): ... this.
|
||
* go-exp.y: Remove all yy symbol remappings.
|
||
(GDB_YY_REMAP_PREFIX): Define.
|
||
Include "yy-remap.h".
|
||
* go-lang.c (go_language_defn): Adjust.
|
||
* go-lang.h (go_error): Rename to ...
|
||
(go_yyerror): ... this.
|
||
* jv-exp.y: Remove all yy symbol remappings.
|
||
(GDB_YY_REMAP_PREFIX): Define.
|
||
Include "yy-remap.h".
|
||
* jv-lang.c (java_language_defn): Adjust.
|
||
* jv-lang.h (java_error): Rename to ...
|
||
(java_yyerror): ... this.
|
||
* m2-exp.y: Remove all yy symbol remappings.
|
||
(GDB_YY_REMAP_PREFIX): Define.
|
||
Include "yy-remap.h".
|
||
* m2-lang.c (m2_language_defn): Adjust.
|
||
* m2-lang.h (m2_error): Rename to ...
|
||
(m2_yyerror): ... this.
|
||
* objc-exp.y: Remove all yy symbol remappings.
|
||
(GDB_YY_REMAP_PREFIX): Define.
|
||
Include "yy-remap.h".
|
||
* objc-lang.c (objc_language_defn): Adjust.
|
||
* opencl-lang.c (opencl_language_defn): Adjust.
|
||
* p-exp.y: Remove all yy symbol remappings.
|
||
(GDB_YY_REMAP_PREFIX): Define.
|
||
Include "yy-remap.h".
|
||
* p-lang.c (pascal_language_defn): Adjust.
|
||
* p-lang.h (pascal_error): Rename to ...
|
||
(pascal_yyerror): ... this.
|
||
* yy-remap.h: New file.
|
||
|
||
2016-04-22 Pedro Alves <palves@redhat.com>
|
||
|
||
* common/common-exceptions.h (GDB_XCPT_TRY): Remove mention of
|
||
the foreign frames issue.
|
||
[__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
|
||
|
||
2016-04-22 Pedro Alves <palves@redhat.com>
|
||
|
||
* common/common-exceptions.c (enum catcher_state, struct catcher)
|
||
(current_catcher): Define in C++ mode too.
|
||
(exceptions_state_mc_catch): Call throw_exception_sjlj instead of
|
||
throw_exception.
|
||
(throw_exception_sjlj, throw_exception_cxx): New functions,
|
||
factored out from throw_exception.
|
||
(throw_exception): Reimplement.
|
||
* common/common-exceptions.h (exceptions_state_mc_init)
|
||
(exceptions_state_mc_action_iter)
|
||
(exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
|
||
Declare in C++ mode too.
|
||
(TRY): Rename to ...
|
||
(TRY_SJLJ): ... this.
|
||
(CATCH): Rename to ...
|
||
(CATCH_SJLJ): ... this.
|
||
(END_CATCH): Rename to ...
|
||
(END_CATCH_SJLJ): ... this.
|
||
[GDB_XCPT == GDB_XCPT_SJMP] (TRY, CATCH, END_CATCH): Map to SJLJ
|
||
equivalents.
|
||
(throw_exception): Update comments.
|
||
(throw_exception_sjlj): Declare.
|
||
* event-top.c (gdb_rl_callback_read_char_wrapper): Extend intro
|
||
comment. Wrap body in TRY_SJLJ/CATCH_SJLJ and rethrow any
|
||
intercepted exception.
|
||
(gdb_rl_callback_handler): New function.
|
||
(gdb_rl_callback_handler_install): Always install
|
||
gdb_rl_callback_handler as readline callback.
|
||
|
||
2016-04-22 Pedro Alves <palves@redhat.com>
|
||
|
||
* event-top.c (rl_callback_read_char_wrapper): Rename to ...
|
||
(gdb_rl_callback_read_char_wrapper): ... this.
|
||
(change_line_handler, gdb_setup_readline): Adjust.
|
||
|
||
2016-04-22 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* aarch32-linux-nat.c (aarch32_gp_regcache_supply): Clear CPSR
|
||
bits 20 to 23.
|
||
|
||
2016-04-22 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* MAINTAINER: Remove myself as AIX Maintainer.
|
||
|
||
2016-04-22 Maciej W. Rozycki <macro@imgtec.com>
|
||
|
||
* mips-tdep.c (mips_gdbarch_init): For GDB_OSABI_LINUX set
|
||
`num_regs' to 90 rather than 79. Where a target description is
|
||
present adjust the setting appropriately.
|
||
|
||
2016-04-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* common/common-exceptions.h (GDB_XCPT_TRY): Add comment.
|
||
(GDB_XCPT): Always define as GDB_XCPT_SJMP.
|
||
|
||
2016-04-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* aix-thread.c (pdc_read_data, pdc_write_data): Add cast.
|
||
(aix_thread_resume): Use PTRACE_TYPE_ARG5.
|
||
* rs6000-nat.c (rs6000_ptrace64): Use PTRACE_TYPE_ARG5.
|
||
(rs6000_ptrace_ldinfo): Change type of 'ldi' local to void
|
||
pointer, and cast return to gdb_byte pointer.
|
||
|
||
2016-04-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* s390-linux-nat.c (fetch_regset, store_regset, check_regset): Use
|
||
void * instead of gdb_byte *.
|
||
|
||
2016-04-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* dwarf2read.c (try_open_dwop_file, open_dwo_file)
|
||
(file_file_name, file_full_name): Add char * cast to sentinel in
|
||
concat/reconcat calls.
|
||
* event-top.c (top_level_prompt): Likewise.
|
||
* guile/guile.c (initialize_scheme_side): Likewise.
|
||
* linux-tdep.c (linux_fill_prpsinfo): Likewise.
|
||
* macrotab.c (macro_source_fullname): Likewise.
|
||
* main.c (get_init_files, captured_main): Likewise.
|
||
* psymtab.c (psymtab_to_fullname): Likewise.
|
||
* python/python.c (_initialize_python)
|
||
(gdbpy_finish_initialization): Likewise.
|
||
* source.c (symtab_to_fullname): Likewise.
|
||
|
||
2016-04-20 Pedro Alves <palves@redhat.com>
|
||
|
||
* build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Default to yes.
|
||
* configure: Renegerate.
|
||
|
||
2016-04-20 Pedro Alves <palves@redhat.com>
|
||
|
||
* darwin-nat.c (darwin_decode_message): Use gdb_signal_from_host.
|
||
|
||
2016-04-20 Pedro Alves <palves@redhat.com>
|
||
|
||
* aarch64-tdep.c (aarch64_record_load_store): Change type of
|
||
'reg_rm_val' local to ULONGEST.
|
||
|
||
2016-04-20 Pedro Alves <palves@redhat.com>
|
||
|
||
* darwin-nat.c (darwin_resume_thread): Add uintptr_t cast.
|
||
|
||
2016-04-20 Doug Evans <xdje42@gmail.com>
|
||
|
||
* symmisc.c (dump_symtab_1): Print owning compunit for identical
|
||
blockvectors.
|
||
|
||
2016-04-20 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* aarch32-linux-nat.c: Include "arch/arm-linux.h".
|
||
|
||
2016-04-20 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* arm-linux-tdep.h (ARM_CPSR_GREGNUM): Move it to ...
|
||
* arch/arm-linux.h: ... here.
|
||
|
||
2016-04-19 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Change xstateregs
|
||
to void *.
|
||
(amd64bsd_store_inferior_registers): Likewise.
|
||
* fbsd-nat.c (resume_one_thread_cb): Explicitly cast data to ptid_t *.
|
||
(resume_all_threads_cb): Likewise.
|
||
* i386bsd-nat.c (i386bsd_supply_gregset): Cast gregs to char *.
|
||
(i386bsd_collect_gregset): Likewise.
|
||
(i386bsd_fetch_inferior_registers): Change xstateregs to void *.
|
||
(i386bsd_store_inferior_registers): Likewise.
|
||
|
||
2016-04-19 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* main.c (setup_alternate_signal_stack): Cast to char *.
|
||
|
||
2016-04-19 Doug Evans <xdje42@gmail.com>
|
||
|
||
* symmisc.c (dump_symtab_1, dump_symtab): Delete arg objfile.
|
||
All callers updated.
|
||
|
||
2016-04-19 Doug Evans <xdje42@gmail.com>
|
||
|
||
PR gdb/17911
|
||
* source.c (is_regular_file): New arg errno_ptr.
|
||
All callers updated.
|
||
|
||
2016-04-19 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||
|
||
* linux-record.c (record_linux_system_call): Merge handling for
|
||
readlink/recv/read and pipe/pipe2.
|
||
|
||
2016-04-14 Walfred Tedeschi <walfred.tedeschi@intel.com>
|
||
|
||
* features/i386/amd64-mpx-linux.xml: Remove AVX feature.
|
||
* features/i386/amd64-mpx.xml: Remove AVX feature.
|
||
* features/i386/i386-mpx-linux.xml: Remove AVX feature.
|
||
* features/i386/i386-mpx.xml: Remove AVX feature.
|
||
* features/i386/amd64-mpx-linux.c: Regenerate.
|
||
* features/i386/amd64-mpx.c: Regenerate.
|
||
* features/i386/i386-mpx-linux.c: Regenerate.
|
||
* features/i386/i386-mpx.c: Regenerate.
|
||
* regformats/i386/amd64-mpx-linux.dat: Regenerate.
|
||
* regformats/i386/amd64-mpx.dat: Regenerate.
|
||
* regformats/i386/i386-mpx-linux.dat: Regenerate.
|
||
* regformats/i386/i386-mpx.dat: Regenerate.
|
||
|
||
2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
|
||
|
||
* amd64-linux-tdep.c (features/i386/amd64-avx-mpx-linux.c):
|
||
New include.
|
||
(amd64_linux_core_read_description): Add case for
|
||
X86_XSTATE_AVX_MPX_MASK.
|
||
(_initialize_amd64_linux_tdep): Call initialize_tdesc_amd64_avx_mpx_linux.
|
||
* amd64-linux-tdep.h (tdesc_amd64_avx_mpx_linux): New definition.
|
||
* amd64-tdep.c (features/i386/amd64-avx-mpx.c): New include.
|
||
(amd64_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
|
||
(_initialize_amd64_tdep): Call initialize_tdesc_amd64_avx_mpx.
|
||
* common/x86-xstate.h (X86_XSTATE_MPX_MASK): Remove AVX bits.
|
||
(X86_XSTATE_AVX_MPX_MASK): New case.
|
||
* features/Makefile (i386/i386-avx-mpx, i386/i386-avx-mpx-linux)
|
||
(i386/amd64-avx-mpx, i386/amd64-avx-mpx-linux): New rules.
|
||
(i386/i386-avx-mpx-expedite, i386/i386-avx-mpx-linux-expedite)
|
||
(i386/amd64-avx-mpx-expedite, i386/amd64-avx-mpx-linux-expedite):
|
||
New expedites.
|
||
* i386-linux-tdep.c (features/i386/i386-avx-mpx-linux.c): New
|
||
include.
|
||
(i386_linux_core_read_description): Add case
|
||
X86_XSTATE_AVX_MPX_MASK.
|
||
(_initialize_i386_linux_tdep): Call
|
||
initialize_tdesc_i386_avx_mpx_linux.
|
||
* i386-linux-tdep.h (tdesc_i386_avx_mpx_linux): New include.
|
||
* i386-tdep.c (features/i386/i386-avx-mpx.c): New include.
|
||
(i386_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
|
||
* x86-linux-nat.c (x86_linux_read_description): Add case for
|
||
X86_XSTATE_AVX_MPX_MASK.
|
||
* features/i386/amd64-avx-mpx-linux.xml: New file.
|
||
* features/i386/i386-avx-mpx-linux.xml: New file.
|
||
* features/i386/i386-avx-mpx.xml: New file.
|
||
* features/i386/amd64-avx-mpx.xml: New file.
|
||
* features/i386/amd64-avx-mpx-linux.c: Generated.
|
||
* features/i386/amd64-avx-mpx.c: Generated.
|
||
* features/i386/i386-avx-mpx-linux.c: Generated.
|
||
* features/i386/i386-avx-mpx.c: Generated.
|
||
* regformats/i386/amd64-avx-mpx-linux.dat: Generated.
|
||
* regformats/i386/amd64-avx-mpx.dat: Generated.
|
||
* regformats/i386/i386-avx-mpx-linux.dat: Generated.
|
||
* regformats/i386/i386-avx-mpx.dat: Generated.
|
||
|
||
2016-04-18 Pedro Alves <palves@redhat.com>
|
||
|
||
* ptrace.m4 (GDB_AC_PTRACE): Don't run tests in C++ mode.
|
||
* configure: Regenerate.
|
||
|
||
2016-04-18 Martin Galvan <martin.galvan@tallertechnologies.com>
|
||
|
||
* valops.c (value_addr): For C++ references, set the copied value's
|
||
enclosing_type as well.
|
||
|
||
2016-04-18 Yao Qi <yao.qi@linaro.org>
|
||
|
||
Revert:
|
||
2016-04-15 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
|
||
PC is far from the end of function.
|
||
|
||
2016-04-16 Pedro Alves <palves@redhat.com>
|
||
|
||
* ada-exp.y (yydefred): Define as ada_yydefred.
|
||
|
||
2016-04-15 Pedro Alves <palves@redhat.com>
|
||
|
||
* ada-lang.c (ada_lookup_struct_elt_type): Constify 'type_str' and
|
||
'name_str' locals.
|
||
|
||
2016-04-15 Pedro Alves <palves@redhat.com>
|
||
|
||
* btrace.c (pt_btrace_insn_flags): Change return type to
|
||
btrace_insn_flags. Use btrace_insn_flags for local.
|
||
|
||
2016-04-15 Pedro Alves <palves@redhat.com>
|
||
|
||
* nat/linux-ptrace.h [__mips__] (GDB_ARCH_IS_TRAP_BRKPT): Also
|
||
accept TRAP_BRKPT.
|
||
[__mips__] (GDB_ARCH_IS_TRAP_HWBKPT): Also accept TRAP_HWBKPT.
|
||
|
||
2016-04-15 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
|
||
PC is far from the end of function.
|
||
|
||
2016-04-14 Pedro Alves <palves@redhat.com>
|
||
|
||
* cli/cli-cmds.c (alias_usage_error): New function.
|
||
(alias_command): Use it.
|
||
* ctf.c (ctf_save_metadata_header): Inline metadata_fmt local in
|
||
ctf_save_write_metadata call.
|
||
|
||
2016-04-14 Pedro Alves <palves@redhat.com>
|
||
|
||
* ada-typeprint.c (print_fixed_point_type): Don't pass float as
|
||
argument to function expecting LONGEST.
|
||
* value.c (unpack_long): Add casts to LONGEST.
|
||
|
||
2016-04-13 Luis Machado <lgustavo@codesourcery.com>
|
||
|
||
* exec.c (exec_file_locate_attach): Guard a couple functions
|
||
that can throw errors.
|
||
(exception_print_same): New helper function.
|
||
|
||
2016-04-13 Pedro Alves <palves@redhat.com>
|
||
|
||
PR remote/19840
|
||
* remote.c (struct remote_state) <last_resume_exec_dir>: New
|
||
field.
|
||
(new_remote_state): Default last_resume_exec_dir to EXEC_FORWARD.
|
||
(remote_open_1): Reset last_resume_exec_dir to EXEC_FORWARD.
|
||
(remote_resume): Store the last execution direction.
|
||
(remote_execution_direction): New function.
|
||
(init_remote_ops): Install it as to_execution_direction target_ops
|
||
method.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* common/common-exceptions.h (GDB_XCPT_TRY): Update comment.
|
||
[__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* common/common-exceptions.c (struct catcher) <buf>: Now a
|
||
'jmp_buf' instead of SIGJMP_BUF.
|
||
(exceptions_state_mc_init): Change return type to 'jmp_buf'.
|
||
(throw_exception): Use longjmp instead of SIGLONGJMP.
|
||
* common/common-exceptions.h: Include <setjmp.h> instead of
|
||
"gdb_setjmp.h".
|
||
(exceptions_state_mc_init): Change return type to 'jmp_buf'.
|
||
[GDB_XCPT == GDB_XCPT_SJMP] (TRY): Use setjmp instead of
|
||
SIGSETJMP.
|
||
* cp-support.c: Include "gdb_setjmp.h".
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* common/common-exceptions.c (exception_rethrow): Remove
|
||
prepare_to_throw_exception call.
|
||
* common/common-exceptions.h (prepare_to_throw_exception): Delete
|
||
declaration.
|
||
* exceptions.c (prepare_to_throw_exception): Delete.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* target.c (target_check_pending_interrupt): Delete.
|
||
* target.h (struct target_ops) <to_check_pending_interrupt>:
|
||
Remove method.
|
||
(target_check_pending_interrupt): Remove declaration.
|
||
* target-delegates.c: Regenerate.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* defs.h: Update comments on SIGINT handling.
|
||
(immediate_quit): Delete declaration.
|
||
* event-loop.c (call_async_signal_handler): Delete.
|
||
* event-loop.h (call_async_signal_handler): Delete declaration.
|
||
(mark_async_signal_handler): Update comments.
|
||
(gdb_call_async_signal_handler): Delete declaration.
|
||
* event-top.c (handle_sigint): Call mark_async_signal_handler
|
||
instead of gdb_call_async_signal_handler.
|
||
* exceptions.c (prepare_to_throw_exception): Remove reference to
|
||
immediate_quit.
|
||
(exception_fprintf): Remove comments about immediate_quit.
|
||
* mingw-hdep.c (sigint_event, sigint_handler): Delete.
|
||
(gdb_select): Don't wait on sigint_event.
|
||
(gdb_call_async_signal_handler): Delete.
|
||
(_initialize_mingw_hdep): Delete.
|
||
* posix-hdep.c (gdb_call_async_signal_handler): Delete.
|
||
* utils.c (immediate_quit): Delete.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* defs.h (quit_handler_ftype, quit_handler)
|
||
(make_cleanup_override_quit_handler, default_quit_handler): New.
|
||
(QUIT): Adjust comments.
|
||
* event-top.c (default_quit_handler): New function.
|
||
(quit_handler): New global.
|
||
(struct quit_handler_cleanup_data): New.
|
||
(restore_quit_handler, restore_quit_handler_dtor)
|
||
(make_cleanup_override_quit_handler): New.
|
||
(async_request_quit): Call QUIT.
|
||
* remote.c (struct remote_state) <got_ctrlc_during_io>: New field.
|
||
(async_sigint_remote_twice_token, async_sigint_remote_token):
|
||
Delete.
|
||
(remote_close): Update comments.
|
||
(remote_start_remote): Don't set immediate_quit. Set starting_up
|
||
earlier.
|
||
(remote_serial_quit_handler, remote_unpush_and_throw): New
|
||
functions.
|
||
(remote_open_1): Clear got_ctrlc_during_io. Set
|
||
remote_async_terminal_ours_p unconditionally.
|
||
(async_initialize_sigint_signal_handler)
|
||
(async_handle_remote_sigint, async_handle_remote_sigint_twice)
|
||
(remote_check_pending_interrupt, async_remote_interrupt)
|
||
(async_remote_interrupt_twice)
|
||
(async_cleanup_sigint_signal_handler, ofunc)
|
||
(sync_remote_interrupt, sync_remote_interrupt_twice): Delete.
|
||
(remote_terminal_inferior, remote_terminal_ours): Remove async
|
||
checks.
|
||
(remote_wait_as): Don't install a SIGINT handler in sync mode.
|
||
(readchar, remote_serial_write): Override the quit handler with
|
||
remote_serial_quit_handler.
|
||
(getpkt_or_notif_sane_1): Don't call QUIT.
|
||
(initialize_remote_ops): Don't install
|
||
remote_check_pending_interrupt.
|
||
(_initialize_remote): Don't create async_sigint_remote_token and
|
||
async_sigint_remote_twice_token.
|
||
* ser-base.c (ser_base_wait_for): Call QUIT and use
|
||
interruptible_select.
|
||
(ser_base_write): Call QUIT.
|
||
* ser-go32.c (dos_readchar, dos_write): Call QUIT.
|
||
* ser-unix.c (wait_for): Don't use VTIME. Always take the
|
||
gdb_select path, but call QUIT and interruptible_select.
|
||
* utils.c (maybe_quit): Call the current quit handler. Don't call
|
||
target_check_pending_interrupt.
|
||
(defaulted_query, prompt_for_continue): Override the quit handler
|
||
with the default quit handler.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* tui/tui-hooks.c (tui_target_has_run): Delete.
|
||
(tui_about_to_proceed): Delete.
|
||
(tui_about_to_proceed_observer): Delete.
|
||
(tui_install_hooks, tui_remove_hooks): Don't install/remove an
|
||
about_to_proceed observer.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* mi/mi-interp.c (mi_new_thread): Put
|
||
target_terminal_ours_for_output in effect while outputting.
|
||
(mi_thread_exit): Use target_terminal_ours_for_output instead of
|
||
target_terminal_ours.
|
||
(mi_record_changed, mi_inferior_added, mi_inferior_appeared)
|
||
(mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
|
||
(mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
|
||
(mi_breakpoint_created, mi_breakpoint_deleted)
|
||
(mi_breakpoint_modified, mi_solib_loaded, mi_solib_unloaded)
|
||
(mi_command_param_changed, mi_memory_changed)
|
||
(report_initial_inferior): Use target_terminal_ours_for_output
|
||
instead of target_terminal_ours. Restore terminal settings.
|
||
* mi/mi-main.c (mi_execute_command): Use
|
||
target_terminal_ours_for_output instead of target_terminal_ours.
|
||
Restore terminal settings.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
PR gdb/19828
|
||
* gnu-nat.c (inf_validate_task_sc): Don't call
|
||
target_terminal_ours / target_terminal_inferior around query.
|
||
* i386-tdep.c (i386_record_lea_modrm, i386_process_record): Don't
|
||
call target_terminal_ours / target_terminal_inferior around
|
||
yquery.
|
||
* linux-record.c (record_linux_system_call): Don't call
|
||
target_terminal_ours / target_terminal_inferior around yquery.
|
||
* nto-procfs.c (interrupt_query): Don't call target_terminal_ours
|
||
/ target_terminal_inferior around query.
|
||
* record-full.c (record_full_check_insn_num): Remove
|
||
'set_terminal' parameter. Don't call target_terminal_ours /
|
||
target_terminal_inferior around query.
|
||
(record_full_message, record_full_registers_change)
|
||
(record_full_xfer_partial): Adjust.
|
||
* remote.c (interrupt_query): Don't call target_terminal_ours /
|
||
target_terminal_inferior around query.
|
||
* utils.c (defaulted_query): Install cleanup to restore target
|
||
terminal. Put target_terminal_ours_for_output in effect while
|
||
defaulted producing, and target_terminal_ours in in effect while
|
||
handling input.
|
||
(prompt_for_continue): Install cleanup to restore target terminal.
|
||
Put target_terminal_ours in in effect while handling input.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* utils.c (defaulted_query, prompt_for_continue): Free temporary
|
||
strings with cleanups, instead of xfree.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* utils.c (vwarning, internal_vproblem): Use
|
||
make_cleanup_restore_target_terminal and
|
||
target_terminal_ours_for_output.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* infcmd.c (post_create_inferior, prepare_one_step): Use
|
||
target_terminal_ours_for_output instead of target_terminal_ours.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* exceptions.c (print_flush): Use target_terminal_ours_for_output
|
||
instead of target_terminal_ours, and restore target terminal with
|
||
a cleanup.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* cp-support.c (gdb_demangle): Use target_terminal_ours_for_output
|
||
instead of target_terminal_ours, and restore target terminal with
|
||
a cleanup.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* ada-lang.c (type_as_string, type_as_string_and_cleanup): New
|
||
functions.
|
||
(ada_lookup_struct_elt_type): Use type_as_string_and_cleanup.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* ser-base.c (fd_event): Retry read_prim on EINTR.
|
||
(do_ser_base_readchar): Retry read_prim on EINTR.
|
||
(ser_base_write): Retry write_prim on EINTR.
|
||
* ser-unix.c (ser_unix_read_prim): Don't retry on EINTR here.
|
||
(ser_unix_write_prim): Remove comment.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* remote.c (remote_pass_ctrlc): New function.
|
||
(init_remote_ops): Install it.
|
||
* target.c (target_terminal_inferior): Pass pending Ctrl-C to the
|
||
target.
|
||
(target_pass_ctrlc, default_target_pass_ctrlc): New functions.
|
||
* target.h (struct target_ops) <to_pass_ctrlc>: New method.
|
||
(target_pass_ctrlc, default_target_pass_ctrlc): New declarations.
|
||
* target-delegates.c: Regenerate.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* infcmd.c (interrupt_target_1): Call target_stop is in non-stop
|
||
mode.
|
||
* linux-nat.c (linux_nat_interrupt): Delete.
|
||
(linux_nat_add_target): Don't install linux_nat_interrupt.
|
||
* remote.c (remote_interrupt_ns): Change return type to void.
|
||
Throw error if interrupting the target is not supported.
|
||
(remote_interrupt): Don't call the remote_stop_ns/remote_stop_as.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* defs.h (clear_quit_flag): Remove declaration.
|
||
* extension-priv.h (struct extension_language_ops)
|
||
<clear_quit_flag>: Remove field and update comments.
|
||
* extension.c (clear_quit_flag): Delete.
|
||
* guile/guile.c (guile_extension_ops): Adjust.
|
||
* python/python.c (python_extension_ops): Adjust.
|
||
(gdbpy_clear_quit_flag): Delete.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* main.c (captured_main): Don't clear the quit flag.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* exceptions.c (prepare_to_throw_exception): Don't clear the quit
|
||
flag.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* event-top.c (command_handler): Don't call clear_quit_flag.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* remote-sim.c (gdb_os_poll_quit): Don't call clear_quit_flag.
|
||
* remote.c (remote_wait_as): Don't call clear_quit_flag.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* python/python.c: Include "ser-event.h".
|
||
(gdbpy_event_fds): Delete.
|
||
(gdbpy_serial_event): New.
|
||
(gdbpy_run_events): Change prototype. Use serial_event_clear
|
||
instead of serial_readchar.
|
||
(gdbpy_post_event): Use serial_event_set instead of serial_write.
|
||
(gdbpy_initialize_events): Use make_serial_event instead of
|
||
serial_pipe.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* defs.h: Extend QUIT-related comments to mention
|
||
interruptible_select.
|
||
(quit_serial_event_set, quit_serial_event_clear): Declare.
|
||
* event-top.c: Include "ser-event.h" and "gdb_select.h".
|
||
(quit_serial_event): New global.
|
||
(async_init_signals): Make quit_serial_event.
|
||
(quit_serial_event_set, quit_serial_event_clear)
|
||
(quit_serial_event_fd, interruptible_select): New functions.
|
||
* extension.c (set_quit_flag): Set the quit serial event.
|
||
(check_quit_flag): Clear the quit serial event.
|
||
* gdb_select.h (interruptible_select): New declaration.
|
||
* guile/scm-ports.c (ioscm_input_waiting): Use
|
||
interruptible_select instead of gdb_select.
|
||
* top.c (gdb_readline_no_editing): Likewise.
|
||
* ui-file.c (stdio_file_read): Likewise.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* event-loop.c: Include "ser-event.h".
|
||
(async_signal_handlers_serial_event): New global.
|
||
(async_signals_handler, initialize_async_signal_handlers): New
|
||
functions.
|
||
(mark_async_signal_handler): Set
|
||
async_signal_handlers_serial_event.
|
||
(invoke_async_signal_handlers): Clear
|
||
async_signal_handlers_serial_event.
|
||
* event-top.c (async_init_signals): Call
|
||
initialize_async_signal_handlers.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* Makefile.in (SFILES): Add ser-event.c.
|
||
(HFILES_NO_SRCDIR): Add ser-event.h.
|
||
(COMMON_OBS): Add ser-event.o.
|
||
* ser-event.c, ser-event.h: New files.
|
||
* serial.c (new_serial): New function, factored out from
|
||
(serial_fdopen_ops): ... this.
|
||
(serial_open_ops_1): New function, factored out from
|
||
(serial_open): ... this.
|
||
(serial_open_ops): New function.
|
||
* serial.h (struct serial): Forware declare.
|
||
(serial_open_ops): New declaration.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* serial.c (serial_open, serial_fdopen_ops, do_serial_close):
|
||
Remove references to name.
|
||
* serial.h (struct serial) <name>: Delete.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* remote-fileio.c (sigint_fileio_token, remote_fio_no_longjmp):
|
||
Delete.
|
||
(async_remote_fileio_interrupt): Delete.
|
||
(remote_fileio_ctrl_c_signal_handler): Don't call the async signal
|
||
handler. Instead just always set the ctrl_c flag.
|
||
(remote_fileio_reply): Clear remote_fio_ctrl_c_flag before
|
||
re-enabling the SIGINT handler.
|
||
(remote_fileio_func_open, remote_fileio_func_close)
|
||
(remote_fileio_func_read, remote_fileio_func_write)
|
||
(remote_fileio_func_lseek, remote_fileio_func_rename)
|
||
(remote_fileio_func_unlink, remote_fileio_func_stat)
|
||
(remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
|
||
(remote_fileio_func_isatty, remote_fileio_func_system)
|
||
(remote_fileio_request): Remove references to
|
||
remote_fio_no_longjmp.
|
||
(initialize_remote_fileio): Don't create an async signal handler.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* event-top.c (stdin_event_handler): Call QUIT;
|
||
(prompt_for_continue): Don't run with immediate_quit set.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* tui/tui-io.c (tui_redisplay_readline): Check
|
||
gdb_in_secondary_prompt_p instead of immediate_quit.
|
||
* tui/tui.c: Include top.h.
|
||
(tui_rl_startup_hook): Check gdb_in_secondary_prompt_p instead of
|
||
immediate_quit.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* top.c (read_command_file): Inline command_loop here.
|
||
(command_loop): Delete.
|
||
|
||
2016-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* top.c: Include "gdb_select.h".
|
||
(gdb_readline_no_editing): Wait for input with gdb_select instead
|
||
of blocking in fgetc.
|
||
(command_line_input): Don't set immediate_quit.
|
||
|
||
2016-04-08 Martin Galvan <martin.galvan@tallertechnologies.com>
|
||
|
||
* value.c (value_next): Make pass-by-reference parameters const-correct.
|
||
(value_parent): Likewise.
|
||
(value_enclosing_type): Likewise.
|
||
(value_lazy): Likewise.
|
||
(value_stack): Likewise.
|
||
(value_embedded_offset): Likewise.
|
||
(value_pointed_to_offset): Likewise.
|
||
(value_raw_address): Likewise.
|
||
(deprecated_value_modifiable): Likewise.
|
||
(value_free_to_mark): Likewise.
|
||
(value_release_to_mark): Likewise.
|
||
(internalvar_name): Likewise.
|
||
(readjust_indirect_value_type): Likewise.
|
||
(value_initialized): Likewise.
|
||
* value.h (value_next): Likewise.
|
||
(value_parent): Likewise.
|
||
(value_enclosing_type): Likewise.
|
||
(value_lazy): Likewise.
|
||
(value_stack): Likewise.
|
||
(value_embedded_offset): Likewise.
|
||
(value_pointed_to_offset): Likewise.
|
||
(value_raw_address): Likewise.
|
||
(deprecated_value_modifiable): Likewise.
|
||
(value_free_to_mark): Likewise.
|
||
(value_release_to_mark): Likewise.
|
||
(internalvar_name): Likewise.
|
||
(readjust_indirect_value_type): Likewise.
|
||
(value_initialized): Likewise.
|
||
|
||
2016-04-07 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* record-full.c (record_full_insert_breakpoint): Return
|
||
early if entry on the address is found in
|
||
record_full_breakpoints.
|
||
|
||
2016-04-07 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* record-full.c (record_full_insert_breakpoint): Set
|
||
bp_tgt->reqstd_address and bp_tgt->placed_size.
|
||
|
||
2016-04-06 Don Breazeal <donb@codesourcery.com>
|
||
|
||
* value.c (value_actual_type): Don't try to get rtti type
|
||
of the value if it has been optimized out.
|
||
(value_optimized_out): If a memory access error occurs,
|
||
just check vaue->optimized_out.
|
||
|
||
2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||
|
||
Revert the previous commit adding unknown_v_replies_ok.
|
||
|
||
2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||
|
||
* remote.c (struct remote_state): New field unknown_v_replies_ok.
|
||
(packet_config_support): Read it.
|
||
(remote_start_remote): Set it.
|
||
|
||
2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||
|
||
* remote.c: Revert check-in by a mistake in the previous commit.
|
||
|
||
2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||
Pedro Alves <palves@redhat.com>
|
||
|
||
* exec.c (exec_file_locate_attach): Print warning for unsupported
|
||
target_pid_to_exec_file.
|
||
* symfile-mem.c (add_vsyscall_page): Remove the "file" command
|
||
message part.
|
||
|
||
2016-04-04 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* cli/cli-decode.c (help_cmd_list): Fix function doc and remove
|
||
trailing spaces.
|
||
|
||
2016-04-01 Artemiy Volkov <artemiyv@acm.org>
|
||
|
||
PR gdb/19820
|
||
* eval.c (evaluate_subexp_standard): Allow TYPE_CODE_ENUM to be
|
||
the type of BINOP_REPEAT's second operand.
|
||
|
||
2016-03-31 Yichao Yu <yyc1992@gmail.com>
|
||
|
||
PR gdb/19858
|
||
* jit.c (jit_breakpoint_re_set_internal): Return 0 if we already
|
||
got the breakpoint at the right address.
|
||
(jit_inferior_created): New function.
|
||
(_initialize_jit): Install jit_inferior_created as
|
||
inferior_created observer.
|
||
|
||
2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
|
||
|
||
* NEWS: Mention support for tracepoints on powerpc*-linux.
|
||
|
||
2016-03-31 Catalin Udma <catalin.udma@freescale.com>
|
||
|
||
PR python/19743
|
||
* python/python.c (execute_gdb_command): Use console uiout
|
||
when executing gdb command.
|
||
* utils.c (restore_ui_out_closure): New structure.
|
||
(do_restore_ui_out): New function.
|
||
(make_cleanup_restore_ui_out): Likewise.
|
||
* utils.h (make_cleanup_restore_ui_out): Declare.
|
||
|
||
2016-03-31 Pedro Alves <palves@redhat.com>
|
||
|
||
* NEWS: Mention that support for "target m32rsdi", "target mips",
|
||
"target pmon", "target ddb", "target rockhopper", and "target lsi"
|
||
was removed.
|
||
* Makefile.in (ALL_TARGET_OBS): Remove remote-m32r-sdi.o and
|
||
remote-mips.o.
|
||
(ALLDEPFILES): Remove remote-m32r-sdi.c and remote-mips.c.
|
||
* configure.tgt: Remove all references to remote-m32r-sdi.o and
|
||
remote-mips.o.
|
||
* mips-tdep.c (deprecated_mips_set_processor_regs_hack): Delete
|
||
function.
|
||
* mips-tdep.h (deprecated_mips_set_processor_regs_hack): Delete
|
||
declaration.
|
||
* remote-m32r-sdi.c, remote-mips.c: Delete files.
|
||
* symfile.c (generic_load, generic_load): Remove comments.
|
||
|
||
2016-03-30 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* arm-tdep.c (arm_epilogue_frame_this_id): Check 'func' against
|
||
0 rather than NULL.
|
||
|
||
2016-03-30 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* arm-tdep.c: (arm_make_epilogue_frame_cache): New function.
|
||
(arm_epilogue_frame_this_id): New function.
|
||
(arm_epilogue_frame_prev_register): New function.
|
||
(arm_epilogue_frame_sniffer): New function.
|
||
(arm_epilogue_frame_unwind): New.
|
||
(arm_gdbarch_init): Append unwinder arm_epilogue_frame_unwind.
|
||
|
||
2016-03-30 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* arm-tdep.c (arm_stack_frame_destroyed_p): Rename it ...
|
||
(arm_stack_frame_destroyed_p_1): ... here. Don't call
|
||
arm_pc_is_thumb.
|
||
(arm_stack_frame_destroyed_p): Call
|
||
thumb_stack_frame_destroyed_p and
|
||
arm_stack_frame_destroyed_p_1.
|
||
|
||
2016-03-30 Doug Evans <dje@google.com>
|
||
|
||
* python/py-utils.c (host_string_to_python_string): New function.
|
||
* python/python-internal.h (host_string_to_python_string): Declare it.
|
||
* python/py-*.c (*): Update all calls to
|
||
PyString_Decode (str, strlen (str), host_charset (), NULL);
|
||
to use host_string_to_python_string instead.
|
||
|
||
2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
|
||
|
||
* remote.c (remote_check_symbols): Allocate own buffer for reply.
|
||
|
||
2016-03-29 Max Filippov <jcmvbkbc@gmail.com>
|
||
|
||
* xtensa-tdep.c (xtensa_frame_cache): Change op1 type to LONGEST.
|
||
Use safe_read_memory_integer instead of read_memory_integer.
|
||
|
||
2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
|
||
|
||
* NEWS: Mention support for tracepoints on s390*-linux.
|
||
|
||
2016-03-29 Don Breazeal <donb@codesourcery.com>
|
||
|
||
* gdb/value.c (value_actual_type): Fix formatting issue.
|
||
|
||
2016-03-23 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* gdbarch.sh (software_single_step): Remove comments.
|
||
* gdbarch.h: Regenerated.
|
||
|
||
2016-03-21 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* arm-tdep.c (arm_record_media): New.
|
||
(arm_record_ld_st_reg_offset): Call arm_record_media.
|
||
|
||
2016-03-21 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* arm-linux-tdep.c (arm_canonicalize_syscall): Canonicalize
|
||
more syscalls.
|
||
|
||
2016-03-18 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* sparc-tdep.c (sparc_software_single_step): Make it static.
|
||
* sparc-tdep.h (sparc_software_single_step): Remove declaration.
|
||
|
||
2016-03-18 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* spu-tdep.c (spu_software_single_step): Throw error when
|
||
target_read_memory fails.
|
||
|
||
2016-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||
|
||
* linux-thread-db.c (check_pid_namespace_match): Extend the message.
|
||
|
||
2016-03-17 Pedro Alves <palves@redhat.com>
|
||
Don Breazeal <donb@codesourcery.com>
|
||
|
||
PR remote/19496
|
||
* infcmd.c (notice_new_inferior): Use the 'leave_running' argument
|
||
instead of checking the 'non_stop' global.
|
||
* remote.c (remote_add_thread): New parameter 'executing'. Use it
|
||
to set the new thread's executing state.
|
||
(remote_notice_new_inferior): Rename parameter 'running' to
|
||
'executing'. Always set the thread state to THREAD_RUNNING in
|
||
non-stop mode, and to THREAD_STOPPED in all-stop mode. Pass
|
||
EXECUTING to remote_add_thread and notice_new_inferior.
|
||
(remote_update_thread_list): Update to pass executing state, not
|
||
running state.
|
||
|
||
2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||
|
||
* syscalls/s390-linux.xml: Add NUMA syscalls and new syscalls up
|
||
to 374.
|
||
* syscalls/s390x-linux.xml: Likewise.
|
||
|
||
2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||
|
||
* linux-record.c (record_mem_at_reg): New helper function.
|
||
(record_linux_system_call): Exploit new helper function where
|
||
applicable.
|
||
|
||
2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||
|
||
* linux-record.c: Fix whitespace issues; tabify, remove trailing
|
||
spaces.
|
||
|
||
2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||
|
||
* linux-record.c (record_linux_system_call): Add missing return
|
||
statements to handling of pipe and pipe2 syscalls.
|
||
|
||
2016-03-16 Doug Evans <dje@google.com>
|
||
|
||
* xml-tdesc.c (tdesc_start_enum): Fix c++ build.
|
||
|
||
2016-03-16 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* arm-linux-tdep.c (arm_linux_init_abi): Fix
|
||
arm_linux_record_tdep.arg1, arm_linux_record_tdep.arg2 and
|
||
arm_linux_record_tdep.arg3. Set arm_linux_record_tdep.arg4,
|
||
arm_linux_record_tdep.arg5, arm_linux_record_tdep.arg6, and
|
||
arm_linux_record_tdep.arg7.
|
||
|
||
2016-03-15 Keith Seitz <keiths@redhat.com>
|
||
|
||
PR breakpoints/18303
|
||
* cp-namespace.c (cp_lookup_bare_symbol): Change assertion to
|
||
look for "::" instead of simply ":".
|
||
(cp_search_static_and_baseclasses): Return null_block_symbol for
|
||
malformed input.
|
||
Remove assertions.
|
||
* cp-support.c (cp_find_first_component_aux): Do not return
|
||
a prefix length for ':' unless the next character is also ':'.
|
||
|
||
2016-03-15 Doug Evans <dje@google.com>
|
||
|
||
* features/aarch64-core.xml (cpsr_flags): New flags type.
|
||
(cpsr): Use it.
|
||
* features/aarch64.c: Regenerate.
|
||
|
||
2016-03-15 Doug Evans <dje@google.com>
|
||
|
||
* features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
|
||
* features/i386/32bit-sse.xml (i386_eflags): Ditto.
|
||
* features/i386/64bit-core.xml (i386_eflags): Ditto.
|
||
* features/i386/64bit-sse.xml (i386_eflags): Ditto.
|
||
* features/i386/x32-core.xml (i386_eflags): Ditto.
|
||
|
||
2016-03-15 Doug Evans <dje@google.com>
|
||
Wei-cheng Wang <cole945@gmail.com>
|
||
|
||
Extend flags to support multibit and enum bitfields.
|
||
* NEWS: Document new features.
|
||
* c-typeprint.c (c_type_print_varspec_prefix): Handle TYPE_CODE_FLAGS.
|
||
(c_type_print_varspec_suffix, c_type_print_base): Ditto.
|
||
* gdbtypes.c (arch_flags_type): Don't assume all fields are one bit.
|
||
(append_flags_type_field): New function.
|
||
(append_flags_type_flag): Call it.
|
||
* gdbtypes.h (append_flags_type_field): Declare.
|
||
* target-descriptions.c (struct tdesc_type_flag): Delete.
|
||
(enum tdesc_type_kind) <TDESC_TYPE_BOOL>: New enum value.
|
||
(enum tdesc_type_kind) <TDESC_TYPE_ENUM>: Ditto.
|
||
(struct tdesc_type) <u.f>: Delete.
|
||
(tdesc_predefined_types): Add "bool".
|
||
(tdesc_predefined_type): New function.
|
||
(tdesc_gdb_type): Handle TDESC_TYPE_BOOL, TDESC_TYPE_ENUM.
|
||
Update TDESC_TYPE_FLAGS support.
|
||
(tdesc_free_type): Handle TDESC_TYPE_ENUM. Update TDESC_TYPE_FLAGS.
|
||
(tdesc_create_flags): Update.
|
||
(tdesc_create_enum): New function.
|
||
(tdesc_add_field): Initialize start,end to -1.
|
||
(tdesc_add_typed_bitfield): New function.
|
||
(tdesc_add_bitfield): Call it.
|
||
(tdesc_add_flag): Allow TDESC_TYPE_STRUCT. Update.
|
||
(tdesc_add_enum_value): New function.
|
||
(maint_print_c_tdesc_cmd): Fold TDESC_TYPE_FLAGS support into
|
||
TDESC_TYPE_STRUCT. Handle TDESC_TYPE_ENUM.
|
||
* target-descriptions.h (tdesc_create_enum): Declare.
|
||
(tdesc_add_typed_bitfield, tdesc_add_enum_value): Declare.
|
||
* valprint.c (generic_val_print_enum_1): New function.
|
||
(generic_val_print_enum): Call it.
|
||
(val_print_type_code_flags): Make static. Handle multibit bitfields
|
||
and enum bitfields.
|
||
* valprint.h (val_print_type_code_flags): Delete.
|
||
* xml-tdesc.c (struct tdesc_parsing_data) <current_type_is_flags>:
|
||
Delete. All uses removed.
|
||
(tdesc_start_enum): New function.
|
||
(tdesc_start_field): Handle multibit and enum bitfields.
|
||
(tdesc_start_enum_value): New function.
|
||
(enum_value_attributes, enum_children, enum_attributes): New static
|
||
globals.
|
||
(feature_children): Add "enum".
|
||
* features/gdb-target.dtd (enum, evalue): New elements.
|
||
|
||
2016-03-15 Doug Evans <dje@google.com>
|
||
|
||
* target-descriptions.c (struct tdesc_type) <u.u.size>: Change type
|
||
from LONGEST to int.
|
||
(struct tdesc_type) <u.f.size>: Ditto.
|
||
(tdesc_set_struct_size): Change type of "size" arg from LONGEST
|
||
to int. Add assertion size > 0.
|
||
(tdesc_create_flags): Ditto.
|
||
* target-descriptions.h (tdesc_set_struct_size): Update.
|
||
(tdesc_create_flags): Update.
|
||
* xml-tdesc.c (MAX_FIELD_SIZE, MAX_FIELD_BITSIZE): New macros.
|
||
(MAX_VECTOR_SIZE): New macro.
|
||
(tdesc_start_struct): Catch conversion errors from LONGEST to int.
|
||
(tdesc_start_flags, tdesc_start_field, tdesc_start_vector): Ditto.
|
||
|
||
2016-03-15 Doug Evans <dje@google.com>
|
||
|
||
* target-descriptions.c (maint_print_c_tdesc_cmd): Use "type" for
|
||
TYPE_CODE_FLAGS instead of "field_type", for consistency.
|
||
* features/i386/amd64-avx-linux.c: Regenerate.
|
||
* features/i386/amd64-avx.c: Regenerate.
|
||
* features/i386/amd64-avx512-linux.c: Regenerate.
|
||
* features/i386/amd64-avx512.c: Regenerate.
|
||
* features/i386/amd64-linux.c: Regenerate.
|
||
* features/i386/amd64-mpx-linux.c: Regenerate.
|
||
* features/i386/amd64-mpx.c: Regenerate.
|
||
* features/i386/amd64.c: Regenerate.
|
||
* features/i386/i386-avx-linux.c: Regenerate.
|
||
* features/i386/i386-avx.c: Regenerate.
|
||
* features/i386/i386-avx512-linux.c: Regenerate.
|
||
* features/i386/i386-avx512.c: Regenerate.
|
||
* features/i386/i386-linux.c: Regenerate.
|
||
* features/i386/i386-mmx-linux.c: Regenerate.
|
||
* features/i386/i386-mmx.c: Regenerate.
|
||
* features/i386/i386-mpx-linux.c: Regenerate.
|
||
* features/i386/i386-mpx.c: Regenerate.
|
||
* features/i386/i386.c: Regenerate.
|
||
* features/i386/x32-avx-linux.c: Regenerate.
|
||
* features/i386/x32-avx.c: Regenerate.
|
||
* features/i386/x32-avx512-linux.c: Regenerate.
|
||
* features/i386/x32-avx512.c: Regenerate.
|
||
* features/i386/x32-linux.c: Regenerate.
|
||
* features/i386/x32.c: Regenerate.
|
||
|
||
2016-03-15 Pedro Alves <palves@redhat.com>
|
||
|
||
PR gdb/19676
|
||
* linux-thread-db.c (try_thread_db_load_1): Leave
|
||
info->td_ta_thr_iter_p NULL iff debugging a live process and we
|
||
have /proc access.
|
||
(find_new_threads_once): Assert that we have a non-NULL
|
||
info->td_ta_thr_iter_p instead of checking whether the target has
|
||
execution.
|
||
|
||
2016-03-15 Pedro Alves <palves@redhat.com>
|
||
|
||
PR gdb/19676
|
||
* infrun.c (displaced_step_prepare): Also disable displaced
|
||
stepping on NOT_SUPPORTED_ERROR.
|
||
* linux-tdep.c (linux_displaced_step_location): If reading auxv
|
||
fails, throw NOT_SUPPORTED_ERROR instead of generic error.
|
||
|
||
2016-03-13 Marcin Kościelnicki <koriakin@0x04.net>
|
||
|
||
* s390-linux-tdep.c (s390_gen_return_address): New function.
|
||
(s390_gdbarch_init): Fill gen_return_address hook.
|
||
|
||
2016-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* symmisc.c (maintenance_info_line_tables): New function.
|
||
(maintenance_print_one_line_table): New function.
|
||
(_initialize_symmisc): Register 'maint info line-table' command.
|
||
* NEWS: Mention new command.
|
||
|
||
2016-03-11 Marcin Kościelnicki <koriakin@0x04.net>
|
||
|
||
* s390-linux-tdep.c (s390_ax_pseudo_register_collect): New function.
|
||
(s390_ax_pseudo_register_push_stack): New function.
|
||
(s390_gdbarch_init): Fill ax_pseudo_register_collect and
|
||
ax_pseudo_register_push_stack hooks.
|
||
|
||
2016-03-10 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* data-directory/Makefile.in (PYTHON_FILE_LIST): Install
|
||
gdb/function/as_string.py.
|
||
* python/lib/gdb/function/as_string.py: New file.
|
||
* NEWS: Mention the new $_as_string function.
|
||
|
||
2016-03-09 Jose E. Marchesi <jose.marchesi@oracle.com>
|
||
|
||
* target.h: Fix doc string of target_can_use_hardware_watchpoint.
|
||
|
||
2016-03-09 Pedro Alves <palves@redhat.com>
|
||
|
||
* event-top.c (more_to_come): Delete.
|
||
(struct readline_input_state): Delete.
|
||
(readline_input_state): Delete.
|
||
(get_command_line_buffer): New function.
|
||
(command_handler): Update comments. Don't handle NULL commands
|
||
here. Do not execute commented lines.
|
||
(command_line_append_input_line): New function.
|
||
(handle_line_of_input): New function, partly based on
|
||
command_line_handler and command_line_input.
|
||
(command_line_handler): Rewrite.
|
||
* event-top.h (command_handler): New declaration.
|
||
(command_loop): Defer command execution to command_handler.
|
||
(command_line_input): Update comments. Simplify, using struct
|
||
buffer and handle_line_of_input.
|
||
* top.h (struct buffer): New forward declaration.
|
||
(handle_line_of_input): New declaration.
|
||
|
||
2016-03-09 Pedro Alves <palves@redhat.com>
|
||
|
||
* event-top.c (command_line_handler): Use xfree + xstrdup instead
|
||
of xrealloc + strcpy.
|
||
* main.c (captured_main): Use xstrdup instead of xmalloc plus
|
||
manual clear.
|
||
* top.c (saved_command_line): Rewrite comment.
|
||
(saved_command_line_size): Delete.
|
||
(command_line_input): Use xfree + xstrdup instead of xrealloc +
|
||
strcpy.
|
||
* top.h (saved_command_line_size): Delete declaration.
|
||
|
||
2016-03-09 Pedro Alves <palves@redhat.com>
|
||
|
||
* event-top.c: Include buffer.h.
|
||
(gdb_readline_no_editing_callback): Use struct buffer instead
|
||
of xrealloc.
|
||
|
||
2016-03-09 Pedro Alves <palves@redhat.com>
|
||
|
||
* common/buffer.h (buffer_grow_char): New function.
|
||
* top.c: Include buffer.h.
|
||
(gdb_readline_no_editing): Rename 'prompt_arg' parameter to
|
||
'prompt'. Use struct buffer instead of xrealloc.
|
||
|
||
2016-03-09 Pedro Alves <palves@redhat.com>
|
||
|
||
* defs.h (gdb_readline): Delete declaration.
|
||
* top.c (gdb_readline): Rename to ...
|
||
(gdb_readline_no_editing): ... this, and make static.
|
||
|
||
2016-03-09 Pedro Alves <palves@redhat.com>
|
||
|
||
* utils.c (prompt_for_continue): Update comments.
|
||
|
||
2016-03-09 Pedro Alves <palves@redhat.com>
|
||
|
||
* event-top.c (async_annotation_suffix): Delete.
|
||
(top_level_prompt, command_line_handler): Don't use
|
||
'async_annotation_suffix' and simplify.
|
||
* event-top.h (async_annotation_suffix): Delete declaration.
|
||
(init_main): Remove reference to 'async_annotation_suffix'.
|
||
|
||
2016-03-09 Pedro Alves <palves@redhat.com>
|
||
|
||
* event-top.c (gdb_readline2): Rename to ...
|
||
(gdb_readline_no_editing_callback): ... this.
|
||
(change_line_handler, stdin_event_handler)
|
||
(gdb_setup_readline): Adjust.
|
||
* event-top.h (gdb_readline2): Rename to ...
|
||
(gdb_readline_no_editing_callback): ... this, and move closer to
|
||
other readline-related declarations.
|
||
* mi/mi-interp.c (mi_interpreter_resume): Adjust.
|
||
|
||
2016-03-09 Pedro Alves <palves@redhat.com>
|
||
|
||
* top.c (window_hook): Delete.
|
||
(command_loop): Remove references to window_hook.
|
||
|
||
2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
|
||
|
||
* corefile.c (safe_read_memory_unsigned_integer): New function.
|
||
* gdbcore.h (safe_read_memory_unsigned_integer): New prototype.
|
||
* rs6000-tdep.c (rs6000_frame_cache): Read backchain as unsigned.
|
||
|
||
2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
|
||
|
||
* rs6000-tdep.c: Add "ax.h" and "ax-gdb.h" includes.
|
||
(rs6000_gen_return_address): New function.
|
||
(rs6000_gdbarch_init): Wire in the above.
|
||
|
||
2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
|
||
|
||
* rs6000-tdep.c (rs6000_ax_pseudo_register_collect): New function.
|
||
(rs6000_gdbarch_init): Wire in the above.
|
||
|
||
2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||
|
||
* s390-linux-tdep.c (s390_analyze_prologue): Ignore BRC and BRCL
|
||
instructions that do nothing or are conditional traps.
|
||
|
||
2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||
|
||
* s390-linux-tdep.c (s390_prologue_frame_unwind_cache): Store
|
||
frame func's PC in info->func before any other failure can occur.
|
||
(s390_frame_this_id): Use frame_id_build_unavailable_stack if
|
||
info->func has been filled out.
|
||
|
||
2016-03-09 Pedro Alves <palves@redhat.com>
|
||
|
||
* osabi.c (gdb_osabi_names): Avoid spaces in osabi names.
|
||
|
||
2016-03-09 Pedro Alves <palves@redhat.com>
|
||
|
||
* frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300.
|
||
|
||
2016-03-09 Pedro Alves <palves@redhat.com>
|
||
|
||
* cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte
|
||
order is BFD_ENDIAN_BIG or if the cris version is unsupported.
|
||
|
||
2016-03-09 Pedro Alves <palves@redhat.com>
|
||
|
||
* doublest.c: Extend comments.
|
||
(floatformat_to_doublest, floatformat_from_doublest): Copy the
|
||
floatformat's total size, not the host type's size.
|
||
|
||
2016-03-09 Pedro Alves <palves@redhat.com>
|
||
|
||
* doublest.c (floatformat_totalsize_bytes): New function.
|
||
(floatformat_from_type): Assert that the type's length is at least
|
||
as long as the floatformat's totalsize.
|
||
* doublest.h (floatformat_totalsize_bytes): New declaration.
|
||
* gdbtypes.c (arch_float_type): Assert that the type's length is
|
||
at least as long as the floatformat's totalsize.
|
||
|
||
2016-03-09 Pedro Alves <palves@redhat.com>
|
||
|
||
* hppa-linux-tdep.c (hppa_linux_init_abi): Set the long double
|
||
format to floatformats_ieee_double.
|
||
|
||
2016-03-07 Pedro Alves <palves@redhat.com>
|
||
|
||
* mips-tdep.c (mips_gdbarch_init): Check whether info.abfd is NULL
|
||
before calling bfd_get_flavour.
|
||
|
||
2016-03-05 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
|
||
|
||
* avr-tdep.c (AVR_LAST_ARG_REGNUM): Define.
|
||
(avr_push_dummy_call): Correct last needed argument register.
|
||
Write MSB of argument into register and subsequent bytes into
|
||
other registers in decreasing order.
|
||
|
||
2016-03-04 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* arm-tdep.c (arm_record_vdata_transfer_insn): Simplify the
|
||
condition check. Record the right D register number.
|
||
|
||
2016-03-04 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* arm-tdep.c (arm_record_extension_space): Remove code
|
||
printing "Process record does not support".
|
||
(arm_record_data_proc_misc_ld_str): Likewise.
|
||
(decode_insn): Call arm_record_extension_space if condition
|
||
is 0xf. Call arm_record_unsupported_insn if ret isn't
|
||
ARM_RECORD_SUCCESS. Use 'ret' instead of 'insn_id' to hold
|
||
the value of thumb2_record_decode_insn_handler.
|
||
|
||
2016-03-04 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* features/feature_to_c.sh: Print the help when passing no
|
||
argument.
|
||
|
||
2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
|
||
|
||
* MAINTAINERS (Write After Approval): Add Bernhard Heckel.
|
||
|
||
2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
|
||
|
||
* dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.
|
||
|
||
2016-03-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||
|
||
* s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid
|
||
exception when attempting to access the inferior's backchain.
|
||
|
||
2016-02-29 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Support
|
||
eventfd2, eventfd2, dup3, inotify_init1, fallocate and pipe2.
|
||
Return gdb_sys_epoll_create1 instead of gdb_sys_epoll_create
|
||
for aarch64_sys_epoll_create1.
|
||
|
||
2016-02-29 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* linux-record.h (enum gdb_syscall) <gdb_sys_fallocate>: New.
|
||
<gdb_sys_eventfd2, gdb_sys_epoll_create1, gdb_sys_dup3>: New.
|
||
<gdb_sys_pipe2, gdb_sys_inotify_init1>: New.
|
||
* linux-record.c (record_linux_system_call): Handle them.
|
||
|
||
2016-02-28 Iain Buclaw <ibuclaw@gdcproject.org>
|
||
|
||
* d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from
|
||
cyclic imports.
|
||
|
||
2016-02-26 Keith Seitz <keiths@redhat.com>
|
||
|
||
* rs6000-tdep.c (rs6000_frame_cache): Explicitly cast return result
|
||
to avoid invalid conversion from void *.
|
||
|
||
2016-02-26 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* arm-tdep.c (arm_record_exreg_ld_st_insn): Set 'single_reg'
|
||
per bit 8. Check bit 20 instead of bit 4 for VMOV
|
||
instruction. Record D registers for instructions changing
|
||
S registers. Change of the order of length and address
|
||
in record_buf_mem array.
|
||
|
||
2016-02-26 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* arm-tdep.c (thumb_record_ld_st_reg_offset): Fix the register
|
||
number of Rd.
|
||
|
||
2016-02-25 Doug Evans <dje@google.com>
|
||
|
||
* remote-m32r-sdi.c (recv_char_data): Initialize val to avoid
|
||
compiler warning.
|
||
(recv_long_data): Ditto.
|
||
|
||
2016-02-25 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* i386-linux-tdep.c (i386_linux_handle_segmentation_fault):
|
||
Initialize variables.
|
||
|
||
2016-02-25 Antoine Tremblay <antoine.tremblay@ericsson.com>
|
||
|
||
* ax-general.c (ax_reg): Call gdbarch_remote_register_number.
|
||
(ax_reg_mask): Likewise.
|
||
|
||
2016-02-24 Pedro Alves <palves@redhat.com>
|
||
|
||
* linux-nat.c (save_sigtrap) Delete.
|
||
(stop_wait_callback): Call save_stop_reason instead of
|
||
save_sigtrap.
|
||
(check_stopped_by_breakpoint): Rename to ...
|
||
(save_stop_reason): ... this. Bits of save_sigtrap folded here.
|
||
Use GDB_ARCH_IS_TRAP_HWBKPT and handle ambiguous
|
||
GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT. Factor out
|
||
common code between the USE_SIGTRAP_SIGINFO and
|
||
!USE_SIGTRAP_SIGINFO blocks.
|
||
(linux_nat_filter_event): Call save_stop_reason instead of
|
||
save_sigtrap.
|
||
* nat/linux-ptrace.h: Check for both SI_KERNEL and TRAP_BRKPT
|
||
si_code for MIPS.
|
||
* nat/linux-ptrace.h: Fix "TRAP_HWBPT" typo in x86 table. Add
|
||
comments on MIPS behavior.
|
||
(GDB_ARCH_IS_TRAP_HWBKPT): Define for all archs.
|
||
|
||
2016-02-24 Marcin Kościelnicki <koriakin@0x04.net>
|
||
|
||
* rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0
|
||
to avoid spurious warnings.
|
||
|
||
2016-02-24 Gary Benson <gbenson@redhat.com>
|
||
|
||
* exec.c (exec_file_locate_attach): Do not attempt to
|
||
locate main executable locally if not found in sysroot.
|
||
|
||
2016-02-24 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
GDB 7.11 released.
|
||
|
||
2016-02-24 Wei-cheng Wang <cole945@gmail.com>
|
||
|
||
* rs6000-tdep.c (rs6000_frame_cache, rs6000_frame_this_id): Handle
|
||
unavailable PC/SP to build unavailable frame.
|
||
|
||
2016-02-23 Doug Evans <dje@google.com>
|
||
|
||
Extend "skip" command to support -file, -gfile, -function, -rfunction.
|
||
* NEWS: Document new features.
|
||
* skip.c: #include "fnmatch.h", "gdb_regex.h".
|
||
(skiplist_entry) <file>: Renamed from filename.
|
||
<function>: Renamed from function_name.
|
||
<file_is_glob, function_is_regexp>: New members.
|
||
<compiled_function_regexp, compiled_function_regexp_is_valid>:
|
||
New members.
|
||
(make_skip_entry): New function.
|
||
(free_skiplist_entry, free_skiplist_entry_cleanup): New functions.
|
||
(make_free_skiplist_entry_cleanup): New function.
|
||
(skip_file_command): Update.
|
||
(skip_function, skip_function_command): Update.
|
||
(compile_skip_regexp): New functions.
|
||
(skip_command): Add support for new options.
|
||
(skip_info): Update.
|
||
(skip_file_p, skip_gfile_p): New functions.
|
||
(skip_function_p, skip_rfunction_p): New functions.
|
||
(function_name_is_marked_for_skip): Update and simplify.
|
||
(_initialize_step_skip): Update.
|
||
* symtab.c: #include "fnmatch.h".
|
||
(compare_glob_filenames_for_search): New function.
|
||
* symtab.h (compare_glob_filenames_for_search): Declare.
|
||
* utils.c (count_path_elements): New function.
|
||
(strip_leading_path_elements): New function.
|
||
* utils.h (count_path_elements): Declare.
|
||
(strip_leading_path_elements): Declare.
|
||
|
||
2016-02-23 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter.
|
||
(thumb_process_displaced_insn): Likewise.
|
||
(arm_process_displaced_insn): Adjust calls.
|
||
|
||
2016-02-23 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* aarch64-linux-tdep.c (enum aarch64_syscall) <aarch64_sys_mknod>:
|
||
Remove.
|
||
<aarch64_sys_mkdir, aarch64_sys_unlink, aarch64_sys_symlink>: Remove.
|
||
<aarch64_sys_link, aarch64_sys_rename, aarch64_sys_faccess>: Remove.
|
||
<aarch64_sys_mknodat, aarch64_sys_mkdirat>: New.
|
||
<aarch64_sys_unlinkat, aarch64_sys_symlinkat>: New.
|
||
<aarch64_sys_linkat, aarch64_sys_renameat>: New.
|
||
<aarch64_sys_faccessat>: New.
|
||
<aarch64_sys_open, aarch64_sys_readlink, aarch64_sys_fstatat>: Remove.
|
||
<aarch64_sys_openat, aarch64_sys_readlinkat>: New.
|
||
<aarch64_sys_newfstatat>: New.
|
||
(UNSUPPORTED_SYSCALL_MAP): New macro.
|
||
(aarch64_canonicalize_syscall): Add missing syscalls.
|
||
|
||
2016-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||
|
||
* gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print.
|
||
|
||
2016-02-22 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* arm-tdep.c: Fix code format issues.
|
||
|
||
2016-02-21 Iain Buclaw <ibuclaw@gdcproject.org>
|
||
|
||
* d-namespace.c (d_lookup_symbol_imports): Remove argument
|
||
'search_parents'. All callers updated.
|
||
|
||
2016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
|
||
|
||
* s390-linux-tdep.c (s390_guess_tracepoint_registers): New function.
|
||
(s390_gdbarch_init): Fill guess_tracepoint_registers hook.
|
||
|
||
2016-02-18 Walfred Tedeschi <walfred.tedeschi@intel.com>
|
||
|
||
* NEWS: Add entry for bound violation.
|
||
* amd64-linux-tdep.c (amd64_linux_init_abi_common):
|
||
Add handler for segmentation fault.
|
||
* gdbarch.sh (handle_segmentation_fault): New.
|
||
* gdbarch.c: Regenerate.
|
||
* gdbarch.h: Regenerate.
|
||
* i386-linux-tdep.c (i386_linux_handle_segmentation_fault): New.
|
||
(SIG_CODE_BONDARY_FAULT): New define.
|
||
(i386_linux_init_abi): Use i386_mpx_bound_violation_handler.
|
||
* i386-linux-tdep.h (i386_linux_handle_segmentation_fault) New.
|
||
* i386-tdep.c (i386_mpx_enabled): Add as external.
|
||
* i386-tdep.c (i386_mpx_enabled): Add as external.
|
||
* infrun.c (handle_segmentation_fault): New function.
|
||
(print_signal_received_reason): Use handle_segmentation_fault.
|
||
|
||
2016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
|
||
|
||
* arch-utils.c (default_guess_tracepoint_registers): New function.
|
||
* arch-utils.h (default_guess_tracepoint_registers): New prototype.
|
||
* gdbarch.c: Regenerate.
|
||
* gdbarch.h: Regenerate.
|
||
* gdbarch.sh: Add guess_tracepoint_registers hook.
|
||
* tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook.
|
||
|
||
2016-02-17 Gary Benson <gbenson@redhat.com>
|
||
|
||
* exec.c (exec_file_locate_attach): Add missing cleanup.
|
||
|
||
2016-02-16 Don Breazeal <donb@codesourcery.com>
|
||
|
||
PR remote/19496
|
||
* remote.c (remove_new_fork_children): Check for pending
|
||
fork status in thread_info.suspend.
|
||
|
||
2016-02-16 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* arm-linux-tdep.c (arm_linux_software_single_step): Assign
|
||
'old_chain' later.
|
||
|
||
2016-02-16 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops)
|
||
<syscall_next_pc>: Remove argument PC. Callers updated.
|
||
* arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
|
||
Remove argument PC. Get pc from regcache_read_pc.
|
||
* arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove
|
||
argument PC.
|
||
|
||
2016-02-15 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".
|
||
|
||
2016-02-12 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate
|
||
nextpc according to instruction.
|
||
|
||
2016-02-12 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* arch/arm-get-next-pcs.c (arm_get_next_pcs): Call
|
||
self->ops->fixup if it isn't NULL.
|
||
* arch/arm-get-next-pcs.h: Include gdb_vecs.h.
|
||
(struct arm_get_next_pcs_ops) <fixup>: New field.
|
||
* arch/arm-linux.c: Include common-regcache.h and
|
||
arch/arm-get-next-pcs.h.
|
||
(arm_linux_get_next_pcs_fixup): New function.
|
||
* arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare.
|
||
* arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize
|
||
it with arm_linux_get_next_pcs_fixup.
|
||
(arm_linux_software_single_step): Move code to
|
||
arm_linux_get_next_pcs_fixup.
|
||
* arm-tdep.c (arm_get_next_pcs_ops): Initialize it.
|
||
|
||
2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
|
||
|
||
* xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn
|
||
and return NULL.
|
||
|
||
2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
|
||
|
||
* frame.h (skip_tailcall_frames): Update comment.
|
||
* frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL
|
||
if only artificial frames are found. Update comment.
|
||
(frame_unwind_caller_id): Handle NULL return.
|
||
(frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that
|
||
skip_artificial_frames does not return NULL.
|
||
(frame_pop): Add an error if only tailcall frames are found.
|
||
* infcmd.c (finish_command): Move skip_tailcall_frames call into
|
||
forward-execution case. Add an error if only tailcall frames are
|
||
found.
|
||
|
||
2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
|
||
|
||
* stack.c (frame_info): Check frame_unwind_caller_id.
|
||
|
||
2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
|
||
|
||
* frame.h (skip_tailcall_frames): New.
|
||
* frame.c (skip_tailcall_frames): New.
|
||
(frame_pop): Call skip_tailcall_frames.
|
||
* infcmd.c (finish_command): Call skip_tailcall_frames.
|
||
|
||
2016-02-11 Pedro Alves <palves@redhat.com>
|
||
|
||
* Makefile.in (check-parallel): New rule.
|
||
|
||
2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* arm-tdep.c (arm_skip_prologue): Remove unused variables.
|
||
(arm_analyze_prologue): Likewise.
|
||
(arm_scan_prologue): Likewise.
|
||
(arm_m_exception_prev_register): Likewise.
|
||
(arm_copy_block_xfer): Likewise.
|
||
(thumb2_copy_block_xfer): Likewise.
|
||
(arm_decode_miscellaneous): Likewise.
|
||
(arm_decode_ld_st_word_ubyte): Likewise.
|
||
(arm_decode_svc_copro): Likewise.
|
||
(thumb2_decode_svc_copro): Likewise.
|
||
(thumb_copy_16bit_ldr_literal): Likewise.
|
||
(thumb_copy_pop_pc_16bit): Likewise.
|
||
(decode_thumb_32bit_ld_mem_hints): Likewise.
|
||
(arm_show_force_mode): Likewise.
|
||
(_initialize_arm_tdep): Likewise.
|
||
(arm_record_strx): Likewise.
|
||
(arm_record_extension_space): Likewise.
|
||
(arm_record_data_proc_misc_ld_str): Likewise.
|
||
(arm_record_exreg_ld_st_insn): Likewise.
|
||
(arm_record_vfp_data_proc_insn): Likewise.
|
||
(arm_record_coproc_data_proc): Likewise.
|
||
(thumb_record_misc): Likewise.
|
||
(thumb_record_ldm_stm_swi): Likewise.
|
||
(thumb2_record_ld_st_dual_ex_tbb): Likewise.
|
||
(thumb2_record_ld_mem_hints): Likewise.
|
||
(thumb2_record_lmul_lmla_div): Likewise.
|
||
(thumb2_record_asimd_struct_ld_st): Likewise.
|
||
(arm_process_record): Likewise.
|
||
|
||
2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* arm-tdep.c (arm_displaced_step_copy_insn): Remove.
|
||
(ARM displaced stepping support): Remove reference to
|
||
arm_displaced_step_copy_insn in comment.
|
||
* arm-tdep.h (arm_displaced_step_copy_insn): Remove.
|
||
* arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Remove
|
||
reference to arm_displaced_step_copy_insn in comment.
|
||
|
||
2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* arm-tdep.c (thumb_copy_unmodified_16bit): Change type of insn.
|
||
(thumb_copy_b): Likewise.
|
||
(arm_decode_b_bl_ldmstm): Likewise.
|
||
(thumb_copy_16bit_ldr_literal): Likewise.
|
||
(thumb_copy_pop_pc_16bit): Likewise.
|
||
|
||
2016-02-11 Antoine Tremblay <antoine.tremblay@ericsson.com>
|
||
|
||
* tracepoint.c (encode_actions_1): Use target_gdbarch () rather
|
||
than loc->gdbarch.
|
||
|
||
2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
|
||
|
||
* tracefile-tfile.c (trace_tdesc): New static variable.
|
||
(tfile_open): Clear trace_tdesc, call target_find_description.
|
||
(tfile_interp_line): Recognize tdesc lines.
|
||
(tfile_close): Clear trace_tdesc.
|
||
(tfile_xfer_partial_features): New function.
|
||
(tfile_xfer_partial): Call tfile_xfer_partial_features.
|
||
(tfile_append_tdesc_line): New function.
|
||
|
||
2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
|
||
|
||
* ctf.c (ctf_write_tdesc): New function.
|
||
(ctf_write_ops): Wire in ctf_write_tdesc.
|
||
* tracefile-tfile.c (tfile_write_tdesc): New function.
|
||
(tfile_write_ops): Wire in tfile_write_tdesc.
|
||
* tracefile.c (trace_save): Call write_tdesc method.
|
||
* tracefile.h (struct trace_file_write_ops): Add write_tdesc method.
|
||
* xml-tdesc.c (target_fetch_description_xml): New function.
|
||
* xml-tdesc.h: Add target_fetch_description_xml prototype.
|
||
|
||
2016-02-10 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* arm-tdep.c (arm_copy_extra_ld_st): Fix "unpriveleged" typo.
|
||
(arm_decode_dp_misc): Likewise.
|
||
|
||
2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
|
||
|
||
* amd64-tdep.c (amd64_ax_pseudo_register_collect): New function.
|
||
(amd64_init_abi): Fill ax_pseudo_register_collect hook.
|
||
* gdb/i386-tdep.c (i386_pseudo_register_read_into_value): Remove
|
||
misleading comment.
|
||
(i386_pseudo_register_write): Ditto.
|
||
(i386_ax_pseudo_register_collect): New function.
|
||
(i386_gdbarch_init): Fill ax_pseudo_register_collect hook.
|
||
* i386-tdep.h: Add i386_ax_pseudo_register_collect prototype.
|
||
|
||
2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
|
||
|
||
* tracefile-tfile.c (tfile_fetch_registers): Use g packet order
|
||
instead of gdb order.
|
||
|
||
2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
|
||
|
||
* tracefile-tfile.c (tfile_fetch_registers): Fix off-by-one in bounds
|
||
check.
|
||
|
||
2016-02-10 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* NEWS: Create a new section for the next release branch.
|
||
Rename the section of the current branch, now that it has
|
||
been cut.
|
||
|
||
2016-02-10 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a):
|
||
* version.in: Bump version to 7.11.50.DATE-git.
|
||
|
||
2016-02-09 Keith Seitz <keiths@redhat.com>
|
||
|
||
PR breakpoints/19546
|
||
* breakpoint.c (breakpoint_event_location_empty_p): New function.
|
||
(update_breakpoints_after_exec, bkpt_re_set): Use this new function
|
||
instead of event_location_empty_p.
|
||
|
||
2016-02-09 Keith Seitz <keiths@redhat.com>
|
||
|
||
* mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use
|
||
string_to_event_location_basic instead of string_to_event_location.
|
||
|
||
2016-02-09 Keith Seitz <keiths@redhat.com>
|
||
|
||
* guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip
|
||
leading whitespace and use string_to_event_location_basic instead
|
||
of new_linespec_location.
|
||
|
||
2016-02-09 Keith Seitz <keiths@redhat.com>
|
||
|
||
PR python/19506
|
||
* python/py-breakpoint.c (bppy_init): Use
|
||
string_to_event_location_basic instead of new_linespec_location.
|
||
|
||
2016-02-09 Keith Seitz <keiths@redhat.com>
|
||
|
||
* location.c (string_to_explicit_location): Note that "-p" is
|
||
reserved for probe locations and return NULL for any input
|
||
that starts with that.
|
||
(string_to_event_location): Move "legacy" linespec code to ...
|
||
(string_to_event_location_basic): ... here.
|
||
* location.h (string_to_event_location): Update comment.
|
||
(string_to_event_location_basic): New function.
|
||
|
||
2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* configure.ac: Use AC_CONFIG_FILES instead of passing arguments
|
||
to AC_OUTPUT. Remove "exit 0" at the end.
|
||
* configure: Regenerate.
|
||
|
||
2016-02-09 Pedro Alves <palves@redhat.com>
|
||
|
||
PR breakpoints/19548
|
||
* breakpoint.c (create_overlay_event_breakpoint): Don't update
|
||
global location list here.
|
||
(create_longjmp_master_breakpoint)
|
||
(create_std_terminate_master_breakpoint)
|
||
(create_exception_master_breakpoint, create_jit_event_breakpoint)
|
||
(update_breakpoint_locations):
|
||
(breakpoint_re_set): Update global location list after all
|
||
breakpoints are re-set.
|
||
|
||
2016-02-08 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* remote.c (remote_register_number_and_offset): Remove unused
|
||
variable(s).
|
||
(remote_thread_always_alive): Likewise.
|
||
(remote_update_thread_list): Likewise.
|
||
(process_initial_stop_replies): Likewise.
|
||
(remote_start_remote): Likewise.
|
||
(remote_check_symbols): Likewise.
|
||
(discard_pending_stop_replies): Likewise.
|
||
(process_stop_reply): Likewise.
|
||
(putpkt_binary): Likewise.
|
||
(getpkt): Likewise.
|
||
(remote_add_target_side_condition): Likewise.
|
||
(remote_insert_breakpoint): Likewise.
|
||
(remote_supports_stopped_by_sw_breakpoint): Likewise.
|
||
(remote_supports_stopped_by_hw_breakpoint): Likewise.
|
||
(remote_xfer_partial): Likewise.
|
||
(remote_read_btrace): Likewise.
|
||
(remote_async_serial_handler): Likewise.
|
||
(remote_thread_events): Likewise.
|
||
(_initialize_remote): Likewise.
|
||
|
||
2016-02-07 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* varobj.h (varobj_delete): Remove dellist parameter, update and
|
||
move documentation here.
|
||
* varobj.c (struct cpstack, cppush, cppop): Remove.
|
||
(delete_variable): Remove resultp (first) parameter.
|
||
(delete_variable_1): Likewise.
|
||
(varobj_delete): Remove dellist parameter and unused code.
|
||
(update_dynamic_varobj_children): Adjust varobj_delete call.
|
||
(update_type_if_necessary): Likewise.
|
||
(varobj_set_visualizer): Likewise.
|
||
(varobj_update): Likewise.
|
||
(value_of_root): Likewise.
|
||
(varobj_invalidate_iter): Likewise.
|
||
* mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.
|
||
|
||
2016-02-04 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to
|
||
0 before handling 'F' and set it back afterwards.
|
||
|
||
2016-02-02 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* ui-out.c (MAX_UI_OUT_LEVELS): Remove.
|
||
|
||
2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
|
||
|
||
* amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
|
||
New types.
|
||
(compat_siginfo): New bound fields added.
|
||
(compat_x32_siginfo): New field added.
|
||
(cpt_si_addr_lsb): New define.
|
||
(compat_siginfo_from_siginfo): Use nat_siginfo.
|
||
(siginfo_from_compat_siginfo): Use nat_siginfo.
|
||
(compat_x32_siginfo_from_siginfo): Likewise.
|
||
(siginfo_from_compat_x32_siginfo): Likewise.
|
||
|
||
2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
|
||
|
||
* linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd
|
||
structure to the siginfo if extra_fields contains
|
||
LINUX_SIGINFO_FIELD_ADDR_BND.
|
||
|
||
2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
|
||
|
||
* linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
|
||
* linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
|
||
* i386-linux-tdep.h (x86_linux_get_siginfo_type): New
|
||
function.
|
||
* amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
|
||
x86_linux_get_siginfo_type for the amd64 abi.
|
||
* i386-linux-tdep.c (x86_linux_get_siginfo_type): New
|
||
function.
|
||
(i386_linux_init_abi): Add new function at the i386 ABI
|
||
initialization.
|
||
|
||
2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
|
||
|
||
* linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
|
||
(linux_siginfo_extra_fields): New enum type.
|
||
* linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
|
||
(linux_get_siginfo_type): Use new function.
|
||
|
||
2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
|
||
|
||
* nat/amd64-linux-siginfo.c: New file.
|
||
* nat/amd64-linux-siginfo.h: New file.
|
||
* Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
|
||
(amd64-linux-siginfo.o): New rule.
|
||
* config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
|
||
* amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
|
||
(compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
|
||
(compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
|
||
(compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
|
||
(cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
|
||
(cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
|
||
(cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.
|
||
|
||
2016-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* value.c (max_value_size): New variable.
|
||
(MIN_VALUE_FOR_MAX_VALUE_SIZE): New define.
|
||
(set_max_value_size): New function.
|
||
(show_max_value_size): New function.
|
||
(check_type_length_before_alloc): New function.
|
||
(allocate_value_contents): Call check_type_length_before_alloc.
|
||
(set_value_enclosing_type): Likewise.
|
||
(_initialize_values): Add set/show handler for max-value-size.
|
||
* NEWS: Mention new set/show command.
|
||
|
||
2016-01-31 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* varobj.h (struct varobj): Fix typos in comments.
|
||
(struct lang_varobj_ops): Likewise.
|
||
* varobj.c (VAROBJ_TABLE_SIZE): Likewise.
|
||
(varobj_create): Move misplaced comment.
|
||
|
||
2016-01-29 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
|
||
to for include additional lines.
|
||
* xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
|
||
|
||
2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* gnulib/import/Makefile.am: Regenerate.
|
||
* gnulib/import/Makefile.in: Regenerate.
|
||
* gnulib/import/m4/gnulib-cache.m4: Regenerate.
|
||
* gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr.
|
||
|
||
2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* remote.c (skip_to_semicolon): Remove.
|
||
(remote_parse_stop_reply): Use strchrnul instead of
|
||
skip_to_semicolon.
|
||
* gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
|
||
strchrnul.
|
||
* gnulib/aclocal.m4: Regenerate.
|
||
* gnulib/config.in: Regenerate.
|
||
* gnulib/configure: Regenerate.
|
||
* gnulib/import/Makefile.am: Regenerate.
|
||
* gnulib/import/Makefile.in: Regenerate.
|
||
* gnulib/import/m4/gnulib-cache.m4: Regenerate.
|
||
* gnulib/import/m4/gnulib-comp.m4: Regenerate.
|
||
* gnulib/import/m4/rawmemchr.m4: New file.
|
||
* gnulib/import/m4/strchrnul.m4: New file.
|
||
* gnulib/import/rawmemchr.c: New file.
|
||
* gnulib/import/rawmemchr.valgrind: New file.
|
||
* gnulib/import/strchrnul.c: New file.
|
||
* gnulib/import/strchrnul.valgrind: New file.
|
||
|
||
2016-01-28 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* breakpoint.c (build_target_command_list): Don't call continue
|
||
if aexpr is NULL.
|
||
(build_target_condition_list): Likewise.
|
||
|
||
2016-01-27 Kevin Buettner <kevinb@redhat.com>
|
||
|
||
* rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
|
||
bytes as aggregates.
|
||
|
||
2016-01-27 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
|
||
Linespec Maintainers.
|
||
|
||
2016-01-26 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* common/common-utils.c (skip_spaces): Fix comment.
|
||
(skip_to_space_const): Likewise.
|
||
|
||
2016-01-25 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
|
||
Remove argument pc. Get pc by regcache_read_pc. Callers updated.
|
||
(arm_deal_with_atomic_sequence_raw): Likewise.
|
||
(thumb_get_next_pcs_raw): Likewise.
|
||
(arm_get_next_pcs_raw): Likewise.
|
||
(arm_get_next_pcs): Remove argument pc. Callers updated.
|
||
* arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
|
||
|
||
2016-01-25 Mark Wielaard <mjw@redhat.com>
|
||
|
||
* ada-lang.c (ada_evaluate_subexp): Add proper else block.
|
||
* c-typeprint.c (c_type_print_base): Fix misleading indentation of
|
||
if statement.
|
||
* inflow.c (child_terminal_ours_1): Fix misleading indentation of
|
||
statement block by introducing an else.
|
||
* linux-record.c (record_linux_sockaddr): Fix misleading indentation
|
||
of return statements.
|
||
(record_linux_msghdr): Likewise.
|
||
|
||
2016-01-25 Pedro Alves <palves@redhat.com>
|
||
|
||
PR threads/19461
|
||
* infrun.c (handle_inferior_event_1) <fork/vfork>: Update
|
||
parent/child running states.
|
||
|
||
2016-01-25 Pedro Alves <palves@redhat.com>
|
||
|
||
PR gdb/19494
|
||
* linux-nat.c (kill_one_lwp): New, factored out from ...
|
||
(kill_callback): ... this.
|
||
(kill_wait_callback): New, factored out from ...
|
||
(kill_wait_one_lwp): ... this.
|
||
(kill_unfollowed_fork_children): New function.
|
||
(linux_nat_kill): Use it.
|
||
|
||
2016-01-22 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
|
||
|
||
2016-01-22 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* arm-linux-nat.c (fetch_fpregs): Call perror_with_name
|
||
instead of warning.
|
||
(store_fpregs, fetch_regs, store_regs): Likewise.
|
||
(fetch_wmmx_regs, store_wmmx_regs): Likewise.
|
||
(fetch_vfp_regs, store_vfp_regs): Likewise.
|
||
|
||
2016-01-21 Doug Evans <dje@google.com>
|
||
|
||
* breakpoint.c (init_breakpoint_sal): Add comment.
|
||
|
||
2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
|
||
|
||
* ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
|
||
|
||
2016-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* disasm.c (maybe_add_dis_line_entry): Rename to...
|
||
(add_dis_line_entry): ...this, and update header comment.
|
||
(do_mixed_source_and_assembly): Now use add_dis_line_entry.
|
||
|
||
2016-01-21 Pedro Alves <palves@redhat.com>
|
||
|
||
* Makefile.in (COMPILER_CFLAGS): New.
|
||
(CXXFLAGS): Get it from configure.
|
||
(INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
|
||
instead of CFLAGS.
|
||
* build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
|
||
COMPILER_CFLAGS.
|
||
* configure: Regenerate.
|
||
|
||
2016-01-21 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* location.h (new_address_location): Add new parameters
|
||
"addr_string" and "addr_string_len".
|
||
(get_address_string_location): Add declaration.
|
||
* location.c (new_address_location): Add new parameters
|
||
"addr_string" and "addr_string_len". If not NULL, store
|
||
a copy of the addr_string in the new location as well.
|
||
(get_address_string_location): New function.
|
||
(string_to_event_location): Update call to new_address_location.
|
||
* linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
|
||
Save the event location in the parser's state before
|
||
passing it to convert_address_location_to_sals.
|
||
* breakpoint.c (create_thread_event_breakpoint): Update call
|
||
to new_address_location.
|
||
(init_breakpoint_sal): Get the event location's string, if any,
|
||
and use it to update call to new_address_location.
|
||
* python/py-finishbreakpoint.c (bpfinishpy_init):
|
||
Update call to new_address_location.
|
||
* spu-tdep.c (spu_catch_start): Likewise.
|
||
|
||
* config/djgpp/fnchange.lst: Add entries for
|
||
gdb/testsuite/gdb.base/break-fun-addr1.c and
|
||
gdb/testsuite/gdb.base/break-fun-addr2.c.
|
||
|
||
2016-01-21 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
|
||
is_thumb and set it according to CPSR saved on the stack.
|
||
(arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
|
||
arm_linux_sigreturn_next_pc.
|
||
|
||
2016-01-20 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
|
||
Fix enumerators sort key function.
|
||
|
||
2016-01-20 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* printcmd.c (print_scalar_formatted): Move binary operator from
|
||
end of line to beginning of next line. Adjust formatting
|
||
accordingly.
|
||
|
||
2016-01-19 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
|
||
"len" with sysctl.
|
||
|
||
2016-01-19 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* fbsd-tdep.c (find_stop_signal): Remove.
|
||
(struct fbsd_collect_regset_section_cb) <lwp>: New field.
|
||
<stop_signal>: New field.
|
||
<abort_iteration>: New field.
|
||
(fbsd_collect_regset_section_cb): Use new fields.
|
||
(fbsd_collect_thread_registers): New function.
|
||
(struct fbsd_corefile_thread_data): New structure.
|
||
(fbsd_corefile_thread): New function.
|
||
(fbsd_make_corefile_notes): Use new function to dump notes for each
|
||
non-exited thread in a process.
|
||
|
||
2016-01-19 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* configure.ac: Check for support for LWP names on FreeBSD.
|
||
* fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
|
||
[TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
|
||
(fbsd_fetch_kinfo_proc): Move function earlier.
|
||
[PT_LWPINFO] (fbsd_thread_alive): New function.
|
||
[PT_LWPINFO] (fbsd_pid_to_str): New function.
|
||
[HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
|
||
[PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
|
||
[PT_LWPINFO] (fbsd_add_threads): New function.
|
||
[PT_LWPINFO] (fbsd_update_thread_list): New function.
|
||
[PT_LWPINFO] New variable super_resume.
|
||
[PT_LWPINFO] (resume_one_thread_cb): New function.
|
||
[PT_LWPINFO] (resume_all_threads_cb): New function.
|
||
[PT_LWPINFO] (fbsd_resume): New function.
|
||
(fbsd_remember_child): Save full ptid instead of plain pid.
|
||
(fbsd_is_child_pending): Return ptid of saved child process.
|
||
(fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
|
||
first stop.
|
||
[PT_LWP_EVENTS] Handle LWP events.
|
||
[TDP_RFPPWAIT] Include LWP in child ptid.
|
||
(fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
|
||
(fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
|
||
Add threads for existing processes.
|
||
(fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
|
||
"fbsd_thread_alive".
|
||
Set "to_pid_to_str" to "fbsd_pid_to_str".
|
||
[HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
|
||
"fbsd_thread_name".
|
||
[PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
|
||
Set "to_has_thread_control" to "tc_schedlock".
|
||
Set "to_resume" to "fbsd_resume".
|
||
(_initialize_fbsd_nat): New function.
|
||
* configure: Regenerate.
|
||
* config.in: Regenerate.
|
||
|
||
2016-01-19 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
|
||
get_ptrace_pid.
|
||
(amd64bsd_store_inferior_registers): Use get_ptrace_pid.
|
||
(amd64bsd_dr_get): Use get_ptrace_pid.
|
||
(amd64bsd_dr_set): Use get_ptrace_pid.
|
||
* i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
|
||
(i386bsd_store_inferior_registers): Use get_ptrace_pid.
|
||
(i386bsd_dr_get): Use get_ptrace_pid.
|
||
(i386bsd_dr_set): Use get_ptrace_pid.
|
||
* inf-ptrace.c (get_ptrace_pid): Export.
|
||
* inf-ptrace.h (get_ptrace_pid): Declare.
|
||
* ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
|
||
(ppcfbsd_store_inferior_registers): Use lwp id.
|
||
|
||
2016-01-19 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* fbsd_tdep.c (fbsd_core_pid_to_str): New function.
|
||
(fbsd_core_thread_name): New function.
|
||
(fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
|
||
Add "core_thread_name" gdbarch method.
|
||
|
||
2016-01-19 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* corelow.c (core_thread_name): New function.
|
||
(init_core_ops): Use "core_thread_name" for the "to_thread_name"
|
||
target op.
|
||
* gdbarch.sh (core_thread_name): New gdbarch callback.
|
||
* gdbarch.h: Re-generate.
|
||
* gdbarch.c: Re-generate.
|
||
|
||
2016-01-19 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
|
||
convert gdb.Value to integer type using int().
|
||
|
||
2016-01-19 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* configure.ac: Include <sys/types.h when checking for "r_fs" in
|
||
"struct reg".
|
||
* configure: Regenerate.
|
||
|
||
2016-01-19 Pedro Alves <palves@redhat.com>
|
||
|
||
* ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
|
||
* break-catch-throw.c (re_set_exception_catchpoint): Pass the
|
||
current program space down to linespec decoding and breakpoint
|
||
location updating.
|
||
* breakpoint.c (parse_breakpoint_sals): Adjust calls to
|
||
decode_line_full.
|
||
(until_break_command): Adjust calls to decode_line_1.
|
||
(base_breakpoint_decode_location, bkpt_decode_location): Add
|
||
'search_pspace' parameter. Pass it along.
|
||
(bkpt_probe_create_sals_from_location): Adjust calls to
|
||
parse_probes.
|
||
(tracepoint_decode_location, tracepoint_probe_decode_location)
|
||
(strace_marker_decode_location): Add 'search_pspace' parameter.
|
||
Pass it along.
|
||
(all_locations_are_pending): Rewrite to take a breakpoint and
|
||
program space as arguments instead.
|
||
(hoist_existing_locations): New function.
|
||
(update_breakpoint_locations): Add 'filter_pspace' parameter. Use
|
||
hoist_existing_locations instead of always removing all locations,
|
||
and adjust to all_locations_are_pending change.
|
||
(location_to_sals): Add 'search_pspace' parameter. Pass it along.
|
||
Don't disable the breakpoint if there are other locations in
|
||
another program space.
|
||
(breakpoint_re_set_default): Adjust to pass down the current
|
||
program space as filter program space.
|
||
(decode_location_default): Add 'search_pspace' parameter and pass
|
||
it along.
|
||
(prepare_re_set_context): Don't switch program space here.
|
||
(breakpoint_re_set): Use save_current_space_and_thread instead of
|
||
save_current_program_space.
|
||
* breakpoint.h (struct breakpoint_ops) <decode_location>: Add
|
||
'search_pspace' parameter.
|
||
(update_breakpoint_locations): Add 'filter_pspace' parameter.
|
||
* cli/cli-cmds.c (edit_command, list_command): Adjust calls to
|
||
decode_line_1.
|
||
* elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
|
||
program space as filter program space.
|
||
* linespec.c (struct linespec_state) <search_pspace>: New field.
|
||
(create_sals_line_offset, convert_explicit_location_to_sals)
|
||
(parse_linespec): Pass the search program space down.
|
||
(linespec_state_constructor): Add 'search_pspace' parameter.
|
||
Store it.
|
||
(linespec_parser_new): Add 'search_pspace' parameter and pass it
|
||
along.
|
||
(linespec_lex_to_end): Adjust.
|
||
(decode_line_full, decode_line_1): Add 'search_pspace' parameter
|
||
and pass it along.
|
||
(decode_line_with_last_displayed): Adjust.
|
||
(collect_symtabs_from_filename, symtabs_from_filename): New
|
||
'search_pspace' parameter. Use it.
|
||
(find_function_symbols): Pass the search program space down.
|
||
* linespec.h (decode_line_1, decode_line_full): Add
|
||
'search_pspace' parameter.
|
||
* probe.c (parse_probes_in_pspace): New function, factored out
|
||
from ...
|
||
(parse_probes): ... this. Add 'search_pspace' parameter and use
|
||
it.
|
||
* probe.h (parse_probes): Add pspace' parameter.
|
||
* python/python.c (gdbpy_decode_line): Adjust.
|
||
* tracepoint.c (scope_info): Adjust.
|
||
|
||
2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
|
||
|
||
* mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
|
||
instruction support.
|
||
(micromips_next_pc): Likewise.
|
||
(micromips_scan_prologue): Likewise.
|
||
(micromips_deal_with_atomic_sequence): Likewise.
|
||
(micromips_stack_frame_destroyed_p): Likewise.
|
||
(mips_breakpoint_from_pc): Likewise.
|
||
|
||
2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
|
||
|
||
* mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
|
||
unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
|
||
|
||
2016-01-18 Pedro Alves <palves@redhat.com>
|
||
|
||
* NEWS: Mention that GDB now displays the ID and name of the
|
||
thread that hit a breakpoint or received a signal.
|
||
* break-catch-sig.c (signal_catchpoint_print_it): Use
|
||
maybe_print_thread_hit_breakpoint.
|
||
* break-catch-syscall.c (print_it_catch_syscall): Likewise.
|
||
* break-catch-throw.c (print_it_exception_catchpoint): Likewise.
|
||
* breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
|
||
(print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
|
||
(print_it_catch_exec, print_it_ranged_breakpoint)
|
||
(print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
|
||
Use maybe_print_thread_hit_breakpoint.
|
||
* breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
|
||
* gdbthread.h (show_thread_that_caused_stop): Declare.
|
||
* infrun.c (print_signal_received_reason): Print which thread
|
||
received signal.
|
||
* thread.c (show_thread_that_caused_stop): New function.
|
||
|
||
2016-01-18 Gary Benson <gbenson@redhat.com>
|
||
|
||
* nat/linux-namespaces.c (do_fork): New function.
|
||
(linux_mntns_get_helper): Use the above.
|
||
|
||
2016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change)
|
||
|
||
Pushed by Joel Brobecker <brobecker@adacore.com>.
|
||
PR gdb/19208
|
||
* dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
|
||
if the function has no name.
|
||
|
||
2016-01-15 Sandra Loosemore <sandra@codesourcery.com>
|
||
|
||
* charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
|
||
Conditionalize for Windows host.
|
||
(GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
|
||
(GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
|
||
(phony_iconv_open): Handle both UTF-32 endiannesses.
|
||
(phony_iconv): Likewise. Check for output overflow and clean up
|
||
out-of-input cases. Correct adjustment to input buffer pointer.
|
||
(set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
|
||
phony_iconv_open.
|
||
|
||
2016-01-15 Pedro Alves <palves@redhat.com>
|
||
|
||
* NEWS: Mention star wildcard ranges.
|
||
* cli/cli-utils.c (get_number_or_range): Check state->in_range first.
|
||
(number_range_setup_range): New function.
|
||
* cli/cli-utils.h (number_range_setup_range): New declaration.
|
||
* thread.c (thread_apply_command): Support star TID ranges.
|
||
* tid-parse.c (tid_range_parser_finished)
|
||
(tid_range_parser_string, tid_range_parser_skip)
|
||
(get_tid_or_range, get_tid_or_range): Handle
|
||
TID_RANGE_STATE_STAR_RANGE.
|
||
(tid_range_parser_star_range): New function.
|
||
* tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
|
||
New value.
|
||
(tid_range_parser_star_range): New declaration.
|
||
|
||
2016-01-15 Pedro Alves <palves@redhat.com>
|
||
|
||
* thread.c (thread_apply_command): Use the tid range parser to
|
||
advance past the thread ID list.
|
||
* tid-parse.c (get_positive_number_trailer): New function.
|
||
(parse_thread_id): Use it.
|
||
(get_tid_or_range): Use it. Return 0 instead of throwing invalid
|
||
thread ID error.
|
||
(get_tid_or_range): Detect negative values. Return 0 instead of
|
||
throwing invalid thread ID error.
|
||
|
||
2016-01-14 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
|
||
Declare.
|
||
(arm_linux_get_next_pcs_ops): Install
|
||
arm_linux_get_next_pcs_syscall_next_pc.
|
||
(arm_linux_syscall_next_pc): Change to ...
|
||
(arm_linux_get_next_pcs_syscall_next_pc): ... it.
|
||
(arm_linux_init_abi): Don't set tdep->syscall_next_pc.
|
||
* arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
|
||
(arm_get_next_pcs_syscall_next_pc): Make it static. Don't
|
||
call tdep->syscall_next_pc.
|
||
* arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
|
||
(arm_get_next_pcs_syscall_next_pc): Remove.
|
||
|
||
2016-01-14 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* remote.c (remote_set_syscall_catchpoint): Cast to char *.
|
||
* thread.c (do_captured_thread_select): Cast to const char *.
|
||
|
||
2016-01-14 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
|
||
argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
|
||
(thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
|
||
instead.
|
||
* arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
|
||
<arm_thumb2_breakpoint>: Remove.
|
||
<has_thumb2_breakpoint>: New field.
|
||
(arm_get_next_pcs_ctor): Update declaration.
|
||
* arm-linux-tdep.c (arm_linux_software_single_step): Pass
|
||
1 to arm_get_next_pcs_ctor.
|
||
* arm-tdep.c (arm_software_single_step): Pass 0 to
|
||
arm_get_next_pcs_ctor.
|
||
|
||
2016-01-13 Ulrich Weigand <uweigand@de.ibm.com>
|
||
|
||
* MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
|
||
|
||
2016-01-13 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
|
||
byte_order_for_code to read instruction.
|
||
|
||
2016-01-13 Pedro Alves <palves@redhat.com>
|
||
|
||
* NEWS: Mention $_gthread.
|
||
* gdbthread.h (struct thread_info) <global_num>: Mention
|
||
$_gthread.
|
||
* thread.c (thread_num_make_value_helper): New function.
|
||
(thread_id_make_value): Delete.
|
||
(thread_id_per_inf_num_make_value, global_thread_id_make_value):
|
||
New.
|
||
(thread_funcs): Adjust.
|
||
(gthread_funcs): New.
|
||
(_initialize_thread): Register $_gthread variable.
|
||
|
||
2016-01-13 Pedro Alves <palves@redhat.com>
|
||
|
||
* NEWS: Mention "info threads -gid".
|
||
* gdbthread.h (struct thread_info) <global_num>: Mention "info
|
||
threads -gid".
|
||
* thread.c (info_threads_command): Handle "-gid".
|
||
(_initialize_thread): Adjust "info threads" help string to mention
|
||
-gid.
|
||
|
||
2016-01-13 Pedro Alves <palves@redhat.com>
|
||
|
||
* NEWS: Mention InferiorThread.global_num.
|
||
* python/py-infthread.c (thpy_get_global_num): New function.
|
||
(thread_object_getset): Register "global_num".
|
||
|
||
2016-01-13 Pedro Alves <palves@redhat.com>
|
||
|
||
* NEWS: Mention that thread IDs are now per inferior and global
|
||
thread IDs.
|
||
* Makefile.in (SFILES): Add tid-parse.c.
|
||
(COMMON_OBS): Add tid-parse.o.
|
||
(HFILES_NO_SRCDIR): Add tid-parse.h.
|
||
* ada-tasks.c: Adjust to use ptid_to_global_thread_id.
|
||
* breakpoint.c (insert_breakpoint_locations)
|
||
(remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
|
||
(print_one_breakpoint_location, set_longjmp_breakpoint)
|
||
(check_longjmp_breakpoint_for_call_dummy)
|
||
(set_momentary_breakpoint): Adjust to use global IDs.
|
||
(find_condition_and_thread, watch_command_1): Use parse_thread_id.
|
||
(until_break_command, longjmp_bkpt_dtor)
|
||
(breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
|
||
to use global IDs.
|
||
* dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
|
||
ptid_to_global_thread_id.
|
||
* elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
|
||
* gdbthread.h (struct thread_info): Rename field 'num' to
|
||
'global_num. Add new fields 'per_inf_num' and 'inf'.
|
||
(thread_id_to_pid): Rename thread_id_to_pid to
|
||
global_thread_id_to_ptid.
|
||
(pid_to_thread_id): Rename to ...
|
||
(ptid_to_global_thread_id): ... this.
|
||
(valid_thread_id): Rename to ...
|
||
(valid_global_thread_id): ... this.
|
||
(find_thread_id): Rename to ...
|
||
(find_thread_global_id): ... this.
|
||
(ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
|
||
(print_thread_info): Add comment.
|
||
* tid-parse.h: New file.
|
||
* tid-parse.c: New file.
|
||
* infcmd.c (step_command_fsm_prepare)
|
||
(step_command_fsm_should_stop): Adjust to use the global thread
|
||
ID.
|
||
(until_next_command, until_next_command)
|
||
(finish_command_fsm_should_stop): Adjust to use the global thread
|
||
ID.
|
||
(attach_post_wait): Adjust to check the inferior number too.
|
||
* inferior.h (struct inferior) <highest_thread_num>: New field.
|
||
* infrun.c (handle_signal_stop)
|
||
(insert_exception_resume_breakpoint)
|
||
(insert_exception_resume_from_probe): Adjust to use the global
|
||
thread ID.
|
||
* record-btrace.c (record_btrace_open): Use global thread IDs.
|
||
* remote.c (process_initial_stop_replies): Also consider the
|
||
inferior number.
|
||
* target.c (target_pre_inferior): Clear the inferior's highest
|
||
thread num.
|
||
* thread.c (clear_thread_inferior_resources): Adjust to use the
|
||
global thread ID.
|
||
(new_thread): New inferior parameter. Adjust to use it. Set both
|
||
the thread's global ID and the thread's per-inferior ID.
|
||
(add_thread_silent): Adjust.
|
||
(find_thread_global_id): New.
|
||
(find_thread_id): Make static. Adjust to rename.
|
||
(valid_thread_id): Rename to ...
|
||
(valid_global_thread_id): ... this.
|
||
(pid_to_thread_id): Rename to ...
|
||
(ptid_to_global_thread_id): ... this.
|
||
(thread_id_to_pid): Rename to ...
|
||
(global_thread_id_to_ptid): ... this. Adjust.
|
||
(first_thread_of_process): Adjust.
|
||
(do_captured_list_thread_ids): Adjust to use global thread IDs.
|
||
(should_print_thread): New function.
|
||
(print_thread_info): Rename to ...
|
||
(print_thread_info_1): ... this, and add new show_global_ids
|
||
parameter. Handle it. Iterate over inferiors.
|
||
(print_thread_info): Reimplement as wrapper around
|
||
print_thread_info_1.
|
||
(show_inferior_qualified_tids): New function.
|
||
(print_thread_id): Use it.
|
||
(tp_array_compar): Compare inferior numbers too.
|
||
(thread_apply_command): Use tid_range_parser.
|
||
(do_captured_thread_select): Use parse_thread_id.
|
||
(thread_id_make_value): Adjust.
|
||
(_initialize_thread): Adjust "info threads" help string.
|
||
* varobj.c (struct varobj_root): Update comment.
|
||
(varobj_create): Adjust to use global thread IDs.
|
||
(value_of_root_1): Adjust to use global_thread_id_to_ptid.
|
||
* windows-tdep.c (display_tib): No longer accept an argument.
|
||
* cli/cli-utils.c (get_number_trailer): Make extern.
|
||
* cli/cli-utils.h (get_number_trailer): Declare.
|
||
(get_number_const): Adjust documentation.
|
||
* mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
|
||
thread IDs.
|
||
* mi/mi-interp.c (mi_new_thread, mi_thread_exit)
|
||
(mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
|
||
* mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
|
||
* guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
|
||
Likewise.
|
||
* python/py-breakpoint.c (bppy_set_thread): Likewise.
|
||
* python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
|
||
* python/py-infthread.c (thpy_get_num): Add comment and return the
|
||
per-inferior thread ID.
|
||
(thread_object_getset): Update comment of "num".
|
||
|
||
2016-01-13 Pedro Alves <palves@redhat.com>
|
||
|
||
* breakpoint.c (remove_threaded_breakpoints)
|
||
(print_one_breakpoint_location): Use print_thread_id.
|
||
* btrace.c (btrace_enable, btrace_disable, btrace_teardown)
|
||
(btrace_fetch, btrace_clear): Use print_thread_id.
|
||
* common/print-utils.c (CELLSIZE): Delete.
|
||
(get_cell): Rename to ...
|
||
(get_print_cell): ... this and made extern. Adjust call callers.
|
||
Adjust to use PRINT_CELL_SIZE.
|
||
* common/print-utils.h (get_print_cell): Declare.
|
||
(PRINT_CELL_SIZE): New.
|
||
* gdbthread.h (print_thread_id): Declare.
|
||
* infcmd.c (signal_command): Use print_thread_id.
|
||
* inferior.c (print_inferior): Use print_thread_id.
|
||
* infrun.c (handle_signal_stop)
|
||
(insert_exception_resume_breakpoint)
|
||
(insert_exception_resume_from_probe)
|
||
(print_signal_received_reason): Use print_thread_id.
|
||
* record-btrace.c (record_btrace_info)
|
||
(record_btrace_resume_thread, record_btrace_cancel_resume)
|
||
(record_btrace_step_thread, record_btrace_wait): Use
|
||
print_thread_id.
|
||
* thread.c (thread_apply_all_command): Use print_thread_id.
|
||
(print_thread_id): New function.
|
||
(thread_apply_command): Use print_thread_id.
|
||
(thread_command, thread_find_command, do_captured_thread_select):
|
||
Use print_thread_id.
|
||
|
||
2016-01-13 Pedro Alves <palves@redhat.com>
|
||
|
||
* NEWS: Mention InferiorThread.inferior.
|
||
* python/py-infthread.c (thpy_get_inferior): New.
|
||
(thread_object_getset): Register "inferior".
|
||
|
||
2016-01-13 Pedro Alves <palves@redhat.com>
|
||
|
||
* NEWS: Mention $_inferior.
|
||
* inferior.c (inferior_id_make_value): New.
|
||
(inferior_funcs): New.
|
||
(_initialize_inferior): Create $_inferior variable.
|
||
|
||
2016-01-13 Pedro Alves <palves@redhat.com>
|
||
|
||
PR breakpoints/19388
|
||
* frame.c (get_current_frame): Use validate_registers_access.
|
||
* gdbthread.h (validate_registers_access): Declare.
|
||
* infrun.c (validate_siginfo_access): Delete.
|
||
(siginfo_value_read, siginfo_value_write): Use
|
||
validate_registers_access.
|
||
* thread.c (validate_registers_access): New function.
|
||
|
||
2016-01-12 Josh Stone <jistone@redhat.com>
|
||
Philippe Waroquiers <philippe.waroquiers@skynet.be>
|
||
|
||
* NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
|
||
syscall_entry and syscall_return stop reasons. Mention GDB
|
||
support for remote catch syscall.
|
||
* remote.c (PACKET_QCatchSyscalls): New enum.
|
||
(remote_set_syscall_catchpoint): New function.
|
||
(remote_protocol_features): New element for QCatchSyscalls.
|
||
(remote_parse_stop_reply): Parse syscall_entry/return stops.
|
||
(init_remote_ops): Install remote_set_syscall_catchpoint.
|
||
(_initialize_remote): Config QCatchSyscalls.
|
||
* linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
|
||
|
||
2016-01-12 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* nat/linux-ptrace.c (linux_child_function): Cast child_stack
|
||
to gdb_byte * and pass to linux_fork_to_function.
|
||
|
||
2016-01-12 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* nat/linux-ptrace.c (linux_fork_to_function): Change type
|
||
of argument 'function'.
|
||
(linux_grandchild_function): Change return type to 'int'.
|
||
Change child_stack's type to 'void *'.
|
||
(linux_child_function): Likewise.
|
||
|
||
2016-01-12 Pedro Alves <palves@redhat.com>
|
||
|
||
Remove use of the registered trademark symbol throughout.
|
||
|
||
2016-01-12 Thomas Schwinge <thomas@codesourcery.com>
|
||
|
||
* reply_mig_hack.awk: Rewrite one regular expression.
|
||
|
||
2016-01-11 Mike Frysinger <vapier@gentoo.org>
|
||
|
||
* acinclude.m4: Include new warning.m4 file.
|
||
* configure: Regenerated.
|
||
* configure.ac: Move all warning logic ...
|
||
* warning.m4: ... here.
|
||
|
||
2016-01-08 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* extension.c: Include target.h.
|
||
(set_active_ext_lang): Only call install_gdb_sigint_handler,
|
||
check_quit_flag, and set_quit_flag if target_terminal_is_ours
|
||
returns false.
|
||
(restore_active_ext_lang): Likewise.
|
||
* target.c (target_terminal_is_ours): New function.
|
||
* target.h (target_terminal_is_ours): Declare.
|
||
|
||
2016-01-07 Maciej W. Rozycki <macro@imgtec.com>
|
||
|
||
* mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
|
||
to `err' in the little-endian leg.
|
||
|
||
2016-01-06 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
|
||
lines below.
|
||
(thumb_get_next_pcs_raw): Make it static.
|
||
(arm_get_next_pcs_raw): Likewise.
|
||
* arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
|
||
declaration.
|
||
(arm_get_next_pcs_raw): Likewise.
|
||
|
||
2016-01-05 Mike Frysinger <vapier@gentoo.org>
|
||
|
||
* version.in: Change cvs to git.
|
||
|
||
2016-01-05 Mike Frysinger <vapier@gentoo.org>
|
||
|
||
* configure.tgt (score-*-*): Delete gdb_sim assignment.
|
||
|
||
2016-01-05 Pedro Alves <palves@redhat.com>
|
||
|
||
PR sim/13418
|
||
* configure.ac: Define WITH_PPC_SIM when linking in the sim and
|
||
the target is powerpc*.
|
||
* rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
|
||
of WITH_SIM.
|
||
* configure: Regenerate.
|
||
* config.in: Regenerate.
|
||
|
||
2016-01-04 Markus Metzger <markus.t.metzger@intel.com>
|
||
|
||
* btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
|
||
|
||
2016-01-02 Mike Frysinger <vapier@gentoo.org>
|
||
|
||
* configure.tgt (powerpc*-*-*): Delete test call and
|
||
always assign gdb_sim.
|
||
|
||
2016-01-01 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
Update year range in copyright notice of all files.
|
||
|
||
2016-01-01 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* top.c (print_gdb_version): Change copyright year in version
|
||
message.
|
||
|
||
2016-01-01 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
|
||
|
||
For older changes see ChangeLog-2015.
|
||
|
||
Local Variables:
|
||
mode: change-log
|
||
left-margin: 8
|
||
fill-column: 74
|
||
version-control: never
|
||
coding: utf-8
|
||
End:
|