Up to [cvs.NetBSD.org] / src / external / gpl3 / gdb / dist / gdb
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
gdb/configure.host: Revive m5407 support to NetBSD, lost during merge
- fix the remaining bsd-kvm targets - remove nbsdelf, everything uses nbsd now - add missing files - regen
Merge gdb-13.2; last was 11.0.50. Builds but does not run.
Import gdb-13.2 over gdb-11.0.50 May 27th, 2023: GDB 13.2 Released! The latest version of GDB, version 13.2, is available for download. This is a minor corrective release over GDB 13.1, fixing the following issues: PR testsuite/30158 (rustc testsuite fails with 13.1, apparently worked before with trunk 20230114 on i686-linux-gnu and powerpc64le-linux-gnu) PR gdb/30214 (GDB 13.1 does not compile on FreeBSD 13.1) PR gdb/30240 ((linux/aarch) thread.c:86: internal-error: inferior_thread: Assertion `current_thread_ != nullptr' failed) PR gdb/30249 ([13 regression] hookpost-extended-remote will not work) PR exp/30271 (Addresses of static thread_local fields are badly calculated sometimes) PR symtab/30357 (Segmentation fault for the 'start' command) PR symtab/30369 ([gdb/symtab] False match issue in skip_prologue_using_linetable) PR gdb/30423 (Build failures with clang 16) PR build/30450 (Build failure (linux-low.cc:5393:45: error: expected ':' before ')' token) with musl-1.2.4) See the NEWS file for a more complete and detailed list of what this release includes. Feb 19th, 2023: GDB 13.1 Released! The latest version of GDB, version 13.1, is available for download. This version of GDB includes the following changes and enhancements: Support for the following new targets has been added in both GDB and GDBserver: GNU/Linux/LoongArch (gdbserver) loongarch*-*-linux* GNU/Linux/CSKY (gdbserver) csky*-*linux* The Windows native target now supports target async. FreeBSD: Arm and AArch64: Support for Thread Local Storage (TLS) variables Hardware watchpoint support on AArch64 FreeBSD Floating-point support has now been added on LoongArch GNU/Linux. New commands: set print nibbles [on|off] show print nibbles This controls whether the 'print/t' command will display binary values in groups of four bits, known as "nibbles". The default is 'off'. Various styling-related commands. See the gdb/NEWS file for more details. Various maintenance commands. These are normally aimed at GDB experts or developers. See the gdb/NEWS file for more details. Python API improvements: New Python API for instruction disassembly. The new attribute 'locations' of gdb.Breakpoint returns a list of gdb.BreakpointLocation objects specifying the locations where the breakpoint is inserted into the debuggee. New Python type gdb.BreakpointLocation. New function gdb.format_address(ADDRESS, PROGSPACE, ARCHITECTURE) that formats ADDRESS as 'address ' New function gdb.current_language that returns the name of the current language. Unlike gdb.parameter('language'), this will never return 'auto'. New function gdb.print_options that returns a dictionary of the prevailing print options, in the form accepted by gdb.Value.format_string. New method gdb.Frame.language that returns the name of the frame's language. gdb.Value.format_string now uses the format provided by 'print', if it is called during a 'print' or other similar operation. gdb.Value.format_string now accepts the 'summary' keyword. This can be used to request a shorter representation of a value, the way that 'set print frame-arguments scalars' does. The gdb.register_window_type method now restricts the set of acceptable window names. The first character of a window's name must start with a character in the set [a-zA-Z], every subsequent character of a window's name must be in the set [-_.a-zA-Z0-9]. ` GDB/MI changes: MI version 1 is deprecated, and will be removed in GDB 14. The async record stating the stopped reason 'breakpoint-hit' now contains an optional field locno. Miscellaneous improvements: gdb now supports zstd compressed debug sections (ELFCOMPRESS_ZSTD) for ELF. New convenience variable $_inferior_thread_count contains the number of live threads in the current inferior. New convenience variables $_hit_bpnum and $_hit_locno, set to the breakpoint number and the breakpoint location number of the breakpoint last hit. The "info breakpoints" now displays enabled breakpoint locations of disabled breakpoints as in the "y-" state. The format of 'disassemble /r' and 'record instruction-history /r' has changed to match the layout of GNU objdump when disassembling. A new format "/b" has been introduce to provide the old behavior of "/r". The TUI no longer styles the source and assembly code highlighted by the current position indicator by default. You can however re-enable styling using the new "set style tui-current-position" command. It is now possible to use the "document" command to document user-defined commands. Support for memory tag data for AArch64 MTE. Support Removal notices: DBX mode has been removed. Support for building against Python version 2 has been removed. It is now only possible to build GDB against Python 3. Support for the following commands has been removed: set debug aix-solib on|off show debug aix-solib set debug solib-frv on|off show debug solib-frv Use the "set/show debug solib" commands instead. See the NEWS file for a more complete and detailed list of what this release includes. Dec 18th, 2022: GDB 13 branch created The GDB 13 branch (gdb-13-branch) has been created. To check out a copy of the branch use: git clone --branch gdb-13-branch https://sourceware.org/git/binutils-gdb.git May 1st, 2022: GDB 12.1 Released! The latest version of GDB, version 12.1, is available for download. This version of GDB includes the following changes and enhancements: New support for the following native configuration: GNU/Linux/OpenRISC or1k*-*-linux* New support for the following targets: GNU/Linux/LoongArch loongarch*-*-linux* New GDBserver support on the following configuration: GNU/Linux/OpenRISC or1k*-*-linux* Support for the following target has been removed: S+core score-*-* Multithreaded symbol loading is now enabled by default Deprecation Notices: GDB 12 is the last release of GDB that will support building against Python 2 DBX mode is deprecated, and will be removed in GDB 13 GDB/MI changes: The '-add-inferior' with no option flags now inherits the connection of the current inferior, this restores the behaviour of GDB as it was prior to GDB 10. The '-add-inferior' command now accepts a '--no-connection' option, which causes the new inferior to start without a connection. Python API enhancements: It is now possible to add GDB/MI commands implemented in Python New function gdb.Architecture.integer_type() New gdb.events.gdb_exiting event New 'gdb.events.connection_removed' event registry New gdb.TargetConnection object New gdb.Inferior.connection property New read-only attribute gdb.InferiorThread.details New gdb.RemoteTargetConnection.send_packet method New read-only attributes gdb.Type.is_scalar and gdb.Type.is_signed The gdb.Value.format_string method now takes a 'styling' argument Various new function in the "gdb" module Miscellaneous: The FreeBSD native target now supports async mode Improved C++ template support Support for disabling source highlighting through GNU of the Pygments library instead. The "print" command has been changed so as to print floating-point values with a base-modifying formats such as "/x" to display the underlying bytes of the value in the desired base. The "clone-inferior" command now ensures that the TTY, CMD and ARGS settings are copied from the original inferior to the new one. All modifications to the environment variables done using the 'set environment' or 'unset environment' commands are also copied to the new inferior. Various new commands have been introduced See the NEWS file for a more complete and detailed list of what this release includes. Mar 20th, 2022: GDB 12 branch created The GDB 12 branch (gdb-12-branch) has been created. To check out a copy of the branch use: git clone --branch gdb-12-branch https://sourceware.org/git/binutils-gdb.git January 16th, 2022: GDB 11.2 Released! The latest version of GDB, version 11.2, is available for download. This is a minor corrective release over GDB 11.1, fixing the following issues: PR sim/28302 (gdb fails to build with glibc 2.34) PR build/28318 (std::thread support configure check does not use CXX_DIALECT) PR gdb/28405 (arm-none-eabi: internal-error: ptid_t remote_target::select_thread_for_ambiguous_stop_reply(const target_waitstatus*): Assertion `first_resumed_thread != nullptr' failed) PR tui/28483 ([gdb/tui] breakpoint creation not displayed) PR build/28555 (uclibc compile failure since commit 4655f8509fd44e6efabefa373650d9982ff37fd6) PR rust/28637 (Rust characters will be encoded using DW_ATE_UTF) PR gdb/28758 (GDB 11 doesn't work correctly on binaries with a SHT_RELR (.relr.dyn) section) PR gdb/28785 (Support SHT_RELR (.relr.dyn) section) See the NEWS file for a more complete and detailed list of what this release includes. September 13th, 2021: GDB 11.1 Released! The latest version of GDB, version 11.1, is available for download. This version of GDB includes the following changes and enhancements: Support for ARM Symbian (arm*-*-symbianelf*) has been removed. Building GDB now requires GMP (The GNU Multiple Precision Arithmetic Library). New command-line options "--early-init-command" (or "-eix") and "--early-init-eval-command" (or "-eiex") GDB/MI Changes: New --qualified option for the '-break-insert' and '-dprintf-insert' commands. New --force-condition option for the '-break-insert' and '-dprintf-insert' commands. New --force option for the '-break-condition' command. The '-file-list-exec-source-files' now accepts an optional regular expression to filter the source files included in the result. The results from '-file-list-exec-source-files' now include a 'debug-fully-read' field to indicate if the corresponding source's debugging information has been partially read (false) or has been fully read (true). TUI Improvements: Mouse actions are now supported. The mouse wheel scrolls the appropriate window. Key combinations that do not have a specific action on the focused window are now passed to GDB. Python enhancements: Inferior objects now contain a read-only 'connection_num' attribute that gives the connection number as seen in 'info connections' and 'info inferiors'. New method gdb.Frame.level() which returns the stack level of the frame object. New method gdb.PendingFrame.level() which returns the stack level of the frame object. When hitting a catchpoint, the Python API will now emit a gdb.BreakpointEvent rather than a gdb.StopEvent. The gdb.Breakpoint attached to the event will have type BP_CATCHPOINT. Python TUI windows can now receive mouse click events. If the Window object implements the click method, it is called for each mouse click event in this window. New setting "python ignore-environment on|off"; if "on", causes GDB's builtin Python to ignore any environment variable that would otherwise affect how Python behaves (needs to be set during "early initialization" (see above). New setting "python dont-write-bytecode auto|on|off". Guile API enhancements: Improved support for rvalue reference values. New procedures for obtaining value variants: value-reference-value, value-rvalue-reference-value and value-const-value. New "qMemTags" and "QMemTags" remote protocol packets (associated with Memory Tagging). GDB will now look for the .gdbinit file in a config directory before looking for ~/.gdbinit. The file is searched for in the following locations: $XDG_CONFIG_HOME/gdb/gdbinit, $HOME/.config/gdb/gdbinit, $HOME/.gdbinit. On Apple hosts the search order is instead: $HOME/Library/Preferences/gdb/gdbinit, $HOME/.gdbinit. The "break [...] if CONDITION" command no longer returns an error when the condition is invalid at one or more locations. Instead, if the condition is valid at one or more locations, the locations where the condition is not valid are disabled. The behavior of the "condition" command is changed to match the new behavior of the "break" command. Support for general memory tagging functionality (currently limited to AArch64 MTE) Core file debugging now supported for x86_64 Cygwin programs. New "org.gnu.gdb.riscv.vector" feature for RISC-V targets. GDB now supports fixed point types which are described in DWARF as base types with a fixed-point encoding. Additionally, support for the DW_AT_GNU_numerator and DW_AT_GNU_denominator has also been added. Miscellaneous: New "startup-quietly on|off" setting; when "on", behaves the same as passing the "-silent" option on the command line. New "print type hex on|off" setting; when 'on', the 'ptype' command uses hexadecimal notation to print sizes and offsets of struct members. When 'off', decimal notation is used. The "inferior" command, when run without argument, prints information about the current inferior. The "ptype" command now supports "/x" and "/d", affecting the base used to print sizes and offsets. The output of the "info source" has been restructured. New "style version foreground | background | intensity" commands to control the styling of the GDB version number. Various debug and maintenance commands (mostly useful for the GDB developers) See the NEWS file for a more complete and detailed list of what this release includes.
Missed a file in the RISC-V support commit
merge conflicts
Import head of gdb as of 2020-09-14 requested by Kamil 2020-07-24 Aaron Merey <amerey@redhat.com> * configure: Rebuild. * configure.ac: Remove AC_DEBUGINFOD. 2020-07-04 Nick Clifton <nickc@redhat.com> Binutils 2.35 branch created. 2020-04-21 Stephen Casner <casner@acm.org> PR 25830 * configure.ac (noconfigdirs): Exclude gdb & gprof for pdp11. * configure: Rebuild. 2020-03-12 Tom Tromey <tom@tromey.com> * Makefile.in: Rebuild. * Makefile.def (gdbserver): Depend on gdbsupport. 2020-03-12 Tom Tromey <tom@tromey.com> * Makefile.in: Rebuild. * Makefile.def (gdbsupport): Don't depend on bfd. 2020-03-12 Tom Tromey <tom@tromey.com> * Makefile.in: Rebuild. * Makefile.def (gdbsupport): Depend on intl. 2020-02-17 Tom Tromey <tom@tromey.com> * configure: Rebuild. * configure.ac (configdirs): Add gnulib and gdbsupport when building gdbserver. 2020-02-14 Tom Tromey <tom@tromey.com> * Makefile.in: Rebuild. * Makefile.def: Make gdbserver require gnulib and libiberty. 2020-02-07 Tom Tromey <tom@tromey.com> Pedro Alves <palves@redhat.com> * src-release.sh (GDB_SUPPORT_DIRS): Add gdbserver. * gdbserver: New directory, moved from gdb/gdbserver. * configure.ac (host_tools): Add gdbserver. Only build gdbserver on certain systems. * Makefile.in, configure: Rebuild. * Makefile.def (host_modules, dependencies): Add gdbserver. * MAINTAINERS: Add gdbserver. 2020-01-28 Sergio Durigan Junior <sergiodj@redhat.com> * src-release.sh (getver): Look for gdbsupport's create-version.sh script at the current directory if tool is "gdb". 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca> * remote-sim.c (gdbsim_target::wait): Return sim_data->remote_sim_ptid instead of inferior_ptid. 2020-01-18 Nick Clifton <nickc@redhat.com> Binutils 2.34 branch created. 2020-01-18 Nick Clifton <nickc@redhat.com> Synchronize top level configure files with master version: 2020-01-01 Ben Elliston <bje@gnu.org> * config.guess: Update copyright years. * config.sub: Likewise. 2019-12-21 Ben Elliston <bje@gnu.org> * config.guess (set_cc_for_build): Prevent multiple calls by checking if $tmp is already set. We can't check CC_FOR_BUILD as the user may set it externally. Thanks to Torbjörn Granlund for the bug report. 2019-12-21 Torbjörn Granlund <tg@gmplib.org> * config.guess (alpha:Linux:*:*): Guard against missing /proc/cpuinfo by redirecting standard error to /dev/null. 2019-09-12 Daniel Bittman <danielbittman1@gmail.com> * config.guess (*:Twizzler:*:*): New. * config.sub (-twizzler*): New. 2019-07-24 Ben Elliston <bje@gnu.org> * config.guess (mips:OSF1:*.*): Whitespace cleanup. 2019-06-30 Ben Elliston <bje@gnu.org> * config.sub (case $os): Match nsk* and powerunix. Don't later match nsk* and set os=nsk which removes the OS version number. 2019-06-30 Ben Elliston <bje@gnu.org> * config.sub: Recognise os108*. 2019-06-26 Ben Elliston <bje@gnu.org> * config.sub (hp300): Set $os to hpux. 2019-06-26 Ben Elliston <bje@gnu.org> * config.sub (vsta): Move into alphabetical order. 2019-06-10 Ben Elliston <bje@gnu.org> * config.guess (*:OS108:*:*): Recognise new OS. 2019-05-28 Ben Elliston <bje@gnu.org> * config.guess (*:Darwin:*:*): Run xcode-select to determine if a system compiler is installed. If not, do not run set_cc_for_build, as the default cc will open a dialog box asking to install Xcode. If no C compiler is available, guess based on uname -p and uname -m. 2019-05-28 Ben Elliston <bje@gnu.org> * config.guess (*:Darwin:*:*): Simplify UNAME_PROCESSOR. 2020-01-17 Simon Marchi <simon.marchi@efficios.com> * Makefile.def: Add dependencies of all-gdbsupport on all-bfd. * Makefile.in: Re-generate. 2020-01-14 Tom Tromey <tom@tromey.com> * src-release.sh (GDB_SUPPORT_DIRS): Add gdbsupport. * MAINTAINERS: Add gdbsupport. * configure: Rebuild. * configure.ac (configdirs): Add gdbsupport. * gdbsupport: New directory, move from gdb/gdbsupport. * Makefile.def (host_modules, dependencies): Add gnulib. * Makefile.in: Rebuild. 2020-01-09 Aaron Merey <amerey@redhat.com> * config/debuginfod.m4: New file. Add macro AC_DEBUGINFOD. Adds new configure option --with-debuginfod. * configure: Regenerate. * configure.ac: Call AC_DEBUGINFOD. 2019-12-26 Christian Biesinger <cbiesinger@google.com> * .gitignore: Add perf.data and perf.data.old. 2019-10-17 Sergio Durigan Junior <sergiodj@redhat.com> * src-release.sh (GDB_SUPPORT_DIRS): Add libctf. 2019-10-17 Alan Modra <amodra@gmail.com> PR 29 * src-release.sh (getver): Replace "head -1" with "head -n 1". 2019-07-30 Nick Alcock <nick.alcock@oracle.com> * Makefile.def (host_modules): libctf is no longer no_install. * Makefile.in: Regenerated. 2019-07-13 Nick Alcock <nick.alcock@oracle.com> * Makefile.def (dependencies): all-ld depends on all-libctf. * Makefile.in: Regenerated. 2019-09-09 Phil Blundell <pb@pbcl.net> binutils 2.33 branch created 2019-08-19 Tom Tromey <tom@tromey.com> * configure: Rebuild. * configure.ac: Add --with-static-standard-libraries. 2019-08-09 Nick Clifton <nickc@redhat.com> * libiberty: Sync with gcc. Bring in: 2019-08-08 Martin Liska <mliska@suse.cz> PR bootstrap/91352 * lrealpath.c (is_valid_fd): New function. 2019-07-24 Martin Liska <mliska@suse.cz> PR lto/91228 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections): Find first '\0' starting from gnu_lto + 1. 2019-07-12 Ren Kimura <rkx1209dev@gmail.com> * simple-object-elf.c (simple_object_elf_match): Check zero value shstrndx. This fixes a Bug 90924. 2019-07-22 Martin Liska <mliska@suse.cz> * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections): Do not search for gnu_lto_v1, but search for first '\0'. 2019-07-18 Eduard-Mihai Burtescu <eddyb@lyken.rs> * cplus-dem.c: Include rust-demangle.h. * rust-demangle.c: Include rust-demangle.h. * rust-demangle.h: New file. 2019-05-31 Michael Forney <mforney@mforney.org> * cp-demangle.c: Don't define CP_DYNAMIC_ARRAYS if __STDC_NO_VLA__ is non-zero. 2019-04-30 Ben L <bobsayshilol@live.co.uk> * d-demangle.c (dlang_parse_assocarray): Correctly handle error result. * testsuite/d-demangle-expected: Add testcase. * d-demangle.c (dlang_parse_tuple): Correctly handle error result. * testsuite/d-demangle-expected: Add testcase. * d-demangle.c (dlang_parse_structlit): Correctly handle error result. * testsuite/d-demangle-expected: Add testcase. * d-demangle.c (dlang_parse_arrayliteral): Correctly handle error result. * testsuite/d-demangle-expected: Add testcase. * d-demangle.c (dlang_parse_integer): Fix stack underflow. * testsuite/d-demangle-expected: Add testcase. * cp-demangle (d_print_comp_inner): Guard against a NULL 'typed_name'. * testsuite/demangle-expected: Add testcase. * cp-demangle.c (d_encoding): Guard against NULL return values from d_right (dc). * testsuite/demangle-expected: Add testcase. 2019-04-29 Ben L <bobsayshilol@live.co.uk> * cp-demangle.c (d_expression_1): Don't peek ahead unless the current char is valid. * testsuite/demangle-expected: Add testcase. 2019-04-10 Nick Clifton <nickc@redhat.com> PR 89394 * cp-demangle.c (cplus_demangle_fill_name): Reject negative lengths. (d_count_templates_scopes): Replace num_templates and num_scopes parameters with a struct d_print_info pointer parameter. Adjust body of the function accordingly. Add recursion counter and check that the recursion limit is not reached. (d_print_init): Pass dpi parameter to d_count_templates_scopes. Reset recursion counter afterwards, unless the recursion limit was reached. 2019-07-13 Joel Brobecker <brobecker@adacore.com> * src-release (getver): If $tool/gdbsupport/create-version.sh exists, use that to determine the version number. 2019-06-21 Andreas Schwab <schwab@linux-m68k.org> * src-release.sh (GDB_SUPPORT_DIRS): Add gnulib. 2019-06-14 Tom Tromey <tom@tromey.com> * MAINTAINERS: Add gnulib. * gnulib: New directory, move from gdb/gnulib. * configure.ac (host_libs): Add gnulib. * configure: Rebuild. * Makefile.def (host_modules, dependencies): Add gnulib. * Makefile.in: Rebuild. 2019-06-03 Nick Clifton <nickc@redhat.com> Revert: 2019-05-29 Nick Clifton <nickc@redhat.com> * configure.ac (noconfigdirs): Add libctf if the target does not use the ELF file format. * configure: Regenerate. 2019-05-29 Nick Clifton <nickc@redhat.com> * src-release.sh (do_proto_toplev): Add libctf to list of directories that can be disabled. 2019-05-29 Nick Clifton <nickc@redhat.com> * configure.ac (noconfigdirs): Add libctf if the target does not use the ELF file format. * configure: Regenerate. 2019-05-28 Nick Alcock <nick.alcock@oracle.com> * Makefile.def (dependencies): configure-libctf depends on all-bfd and all its deps. * Makefile.in: Regenerated. 2019-05-28 Nick Alcock <nick.alcock@oracle.com> * MAINTAINERS: Add libctf. 2019-05-28 Nick Alcock <nick.alcock@oracle.com> * Makefile.def (host_modules): Add libctf. * Makefile.def (dependencies): Likewise. libctf depends on zlib, libiberty, and bfd. * Makefile.in: Regenerated. * configure.ac (host_libs): Add libctf. * configure: Regenerated. 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com> * config.guess: Synchronize with config project master sources. * config.sub: Likewise. * readline/support/config.guess: Likewise. * readline/support/config.sub: Likewise. 2019-04-10 Nick Clifton <nickc@redhat.com> * libiberty: Sync with gcc. Bring in: 2019-04-10 Nick Clifton <nickc@redhat.com> PR 89394 * cp-demangle.c (cplus_demangle_fill_name): Reject negative lengths. (d_count_templates_scopes): Replace num_templates and num_scopes parameters with a struct d_print_info pointer parameter. Adjust body of the function accordingly. Add recursion counter and check that the recursion limit is not reached. (d_print_init): Pass dpi parameter to d_count_templates_scopes. Reset recursion counter afterwards, unless the recursion limit was reached. 2018-06-24 Nick Clifton <nickc@redhat.com> 2.32 branch created. 2019-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> Merge from GCC: PR target/88535 * config.guess: Import upstream version 2019-01-03. * config.sub: Import upstream version 2019-01-01. 2019-01-10 Nick Clifton <nickc@redhat.com> * libiberty: Sync with gcc. Bring in: 2019-01-09 Sandra Loosemore <sandra@codesourcery.com> PR other/16615 * cp-demangle.c: Mechanically replace "can not" with "cannot". * floatformat.c: Likewise. * strerror.c: Likewise. 2018-12-22 Jason Merrill <jason@redhat.com> Remove support for demangling GCC 2.x era mangling schemes. * cplus-dem.c: Remove cplus_mangle_opname, cplus_demangle_opname, internal_cplus_demangle, and all subroutines. (libiberty_demanglers): Remove entries for ancient GNU (pre-3.0), Lucid, ARM, HP, and EDG demangling styles. (cplus_demangle): Remove 'work' variable. Don't call internal_cplus_demangle. 2019-01-03 Дилян Палаузов <dilyan.palauzov@aegee.org> * configure.ac: Don't configure readline if --with-system-readline is used. * configure: Re-generate.
Sync with HEAD
Resolve conflicts (by choosing the new gdb code).
May 11th, 2019: GDB 8.3 Released! The latest version of GDB, version 8.3, is available for download. This version of GDB includes the following changes and enhancements: + Support for new native configurations (also available as a target configuration): o RISC-V GNU/Linux (riscv*-*-linux*) o RISC-V FreeBSD (riscv*-*-freebsd*) + Support for new target configurations: o CSKY ELF (csky*-*-elf) o CSKY GNU/Linux (csky*-*-linux) o NXP S12Z ELF (s12z-*-elf) o OpenRISC GNU/Linux (or1k*-*-linux*) + Native Windows debugging is only supported on Windows XP or later. + The Python API in GDB now requires Python 2.6 or later. + GDB now supports terminal styling for the CLI and TUI. Source highlighting is also supported by building GDB with GNU Highlight. + Experimental support for compilation and injection of C++ source code into the inferior (requires GCC 7.1 or higher, built with libcp1.so). + GDB and GDBserver now support IPv6 connections. + Target description support on RISC-V targets. + Various enhancements to several commands: o "frame", "select-frame" and "info frame" commands o "info functions", "info types", "info variables" o "info thread" o "info proc" o System call alias catchpoint support on FreeBSD o "target remote" support for Unix Domain sockets. + Support for displaying all files opened by a process + DWARF index cache: GDB can now automatically save indices of DWARF symbols on disk to speed up further loading of the same binaries. + Various GDB/MI enhancements. + GDBserver on PowerPC GNU/Linux now supports access to the PPR, DSCR, TAR, EBB/PMU, and HTM registers. + Ada task switching support when debugging programs built with the Ravenscar profile added to aarch64-elf. + GDB in batch mode now exits with status 1 if the last executed command failed. + Support for building GDB with GCC's Undefined Behavior Sanitizer. See the NEWS file for a more complete and detailed list of what this release includes. February 27th, 2019: GDB 8.3 branch created The GDB 8.3 branch (gdb-8.3-branch) has been created. To check out a copy of the branch use: git clone --branch gdb-8.3-branch ssh://sourceware.org/git/binutils-gdb.git December 23rd, 2018: GDB 8.2.1 Released! The latest version of GDB, version 8.2.1, is available for download. This is a minor corrective release over GDB 8.2, fixing the following issues: + PR build/23516 (gdb build error under msys+mingw: strip can't handle gdb-add-index.exe) + PR build/23623 (install-strip fails) + PR rust/23626 (gdb crashes in upstream rust nil-enum test) + PR rust/23650 (rust field name access error mentions "foo") + PR gdb/23663 (gdb 8.1.1: undefined rpl_stat function with musl toolchains) + PR python/23669 (gdb.execute("show commands") doesn't work) + PR python/23714 (Command repetition stops working after gdb.execute) + PR gdb/23838 (8.2 regression for invalid -data-directory) + PR gdb/23974 ("info os" crash when specifying invalid object) + PR gdb/23999 (SYMBOL_LANGUAGE assertion failure on AIX) + PR gdb/24003 (Error when binary searching CUs for a specific DIE when using DWZ) September 5th, 2018: GDB 8.2 Released! The latest version of GDB, version 8.2, is available for download. This version of GDB includes the following changes and enhancements: + Support for the following target has been added: o RiscV ELF (riscv*-*-elf) + Support for following targets and native configurations has been removed: o m88k running OpenBSD (m88*-*-openbsd*) o SH-5/SH64 ELF (sh64-*-elf*) o SH-5/SH64 (sh*) o SH-5/SH64 running GNU/Linux (sh*-*-linux*) o SH-5/SH64 running OpenBSD (sh*-*-openbsd*) + Various Python API enhancements + Aarch64/Linux enhancements: o SVE support. o Hardware watchpoints improvements for entities stored at unaligned addresses. # New "c" response to disable the pager for the rest of the current command. # C expressions can now use _Alignof, and C++ expressions can now use alignof. # Improved flexibility for loading symbol files. # The 'info proc' command nows works on running processes on FreeBSD systems as well as core files created on FreeBSD systems. # A new --enable-codesign=CERT configure option to automatically codesign GDB after build (useful on MacOS X). See the NEWS file for a more complete and detailed list of what this release includes. July 31st, 2018: GDB 8.1.1 Released! The latest version of GDB, version 8.1.1, is available for download. This is a minor corrective release over GDB 8.1, fixing the following issues: # PR gdb/22824 (misleading description of new rbreak Python function in GDB 8.1 NEWS file) # PR gdb/22849 (ctrl-c doesn't work in extended-remote) # PR gdb/22907 ([Regression] gdbserver doesn't work with filename-only binaries) # PR gdb/23028 (inconsistent disassemble of vcvtpd2dq) # PR gdb/23053 (Fix -D_GLIBCXX_DEBUG gdb-add-index regression) # PR gdb/23127 ([AArch64] GDB cannot be used for debugging software that uses high Virtual Addresses) # PR server/23158 (gdbserver no longer functional on Windows) # PR breakpoints/23210 ([8.1/8.2 Regression] Bogus Breakpoint address adjusted from 0xf7fe7dd3 to 0xfffffffff7fe7dd3) July 4th, 2018: GDB 8.2 branch created The GDB 8.2 branch (gdb-8.2-branch) has been created. To check out a copy of the branch use: git clone --branch gdb-8.2-branch ssh://sourceware.org/git/binutils-gdb.git January 31st, 2018: GDB 8.1 Released! The latest version of GDB, version 8.1, is available for download. Changes in this release include: # Breakpoints on C++ functions are now set on all scopes by default ("wild" matching); # Support for inserting breakpoints on functions marked with C++ ABI tags; # Target floating-point arithmetic emulation during expression evaluation (requires MPFR 3.1 or later); # Various Python Scripting enhancements; # Improved Rust support; in particular, Trait objects can now be inspected when debugging Rust code; # GDB no longer makes assumptions about the type of symbols without debugging information to avoid producing erroneous and often confusing results; # The 'enable' and 'disable' commands now accept a range of breakpoint locations; # New 'starti' command to start the program at the first instruction; # New 'rbreak' command to insert a number of breakpoints via a regular expression pattern (requires Python); # The 'ptype' command now supports printing the offset and size of the fields in a struct; # The 'gcore' command now supports dumping all the memory mappings ('-a' command-line option); # New shortcuts for TUI Single-Key mode: 'i' for stepi, and 'o' for nexti; # GDBserver enhancements: @ Support for transmitting environment variables to GDBserver; @ Support for starting inferior processes with a specified initial working directory; @ On Unix systems, support for globbing expansion and variable substitution of inferior command-line arguments; # Various completion enhancements; # The command used to compile and inject code with the 'compile' command is now configurable; # New '--readnever' command-line option to speed the GDB startup when debugging information is not needed; # Support for the following new native configurations: @ FreeBSD/aarch64 (aarch64*-*-freebsd*); @ FreeBSD/arm (arm*-*-freebsd*); # Support for the following new targets: @ FreeBSD/aarch64 (aarch64*-*-freebsd*); @ FreeBSD/arm (arm*-*-freebsd*); @ OpenRISC ELF (or1k*-*-elf) # Removed support for the following targets and native configurations: @ Solaris2/x86 (i?86-*-solaris2.[0-9]); @ Solaris2/sparc (sparc*-*-solaris2.[0-9]); See the NEWS file for a more complete and detailed list of what this release includes. January 5th, 2018: GDB 8.1 branch created The GDB 8.1 branch (gdb-8.1-branch) has been created. To check out a copy of the branch use: git clone --branch gdb-8.1-branch ssh://sourceware.org/git/binutils-gdb.git November 1st, 2017: Debugging Tools Devroom at FOSDEM 2018 We will have a Debugging Tools Devroom at FOSDEM 2018. The Call for Participation has recently been announced. The Devroom is on the first of the two FOSDEM days, on Saturday 3 Feb 2018. See you all at FOSDEM in Brussels! September 7th, 2017: GDB 8.0.1 Released! The latest version of GDB, version 8.0.1, is available for download. This is a minor corrective release over GDB 8.0, fixing the following issues: # PR breakpoint/21886 (Compressed MIPS code debugging impossible due to memory breakpoint misplacement) # PR symtab/22002 (Assertion on debuggee built with -gdwarf-5 -fdebug-types-section) GDB News (p6 of 30) # PR symtab/22003 (Incompatibility with -gdwarf-5 - DW_FORM_implicit_const) # PR gdb/22046 (Regression on older kernels for T (stopped) processes) # PR sim/20863 (gdb-7.12 powerpc-rtems4.12-gdb does not build on FreeBSD) # PR breakpoint/21555 ("error re-setting breakpoint" on PIE executables) # PR tdep/21717 ("print $fpscr" says "" until some VFP data register is printed) # PR exp/21827 (Regression: gdb command lookup became case-sensitive; but definitions are forced into lowercase) # PR remote/22021 (Multi-arch exec fails with a remote target)
Sync with HEAD
add minimal glue to make gdb compile on aarch-64; now configure in gdb/dist and gmake creates a gdb binary.
merge 8.0.1, not working yet.
Import gdb-8.0.1
Sync with HEAD
Merge conflicts and regen amd64
import gdb-7.12
merge conflicts
Import gdb-7.10.1: 2015-06-30 H.J. Lu <hongjiu.lu@intel.com> * configure.ac (ospace_frag): Enable for i?86*-*-elfiamcu target. * configure: Regenerate. 2015-05-13 John David Anglin <dave.anglin@bell.net> * configure.ac: Disable configuration of GDB for HPUX targets. * configure: Regenerate. 2015-05-01 H.J. Lu <hongjiu.lu@intel.com> PR ld/18355 * Makefile.def: Add extra_configure_flags to host zlib. * configure.ac (extra_host_zlib_configure_flags): New. Set to --enable-host-shared When bfd is to be built as shared library. AC_SUBST. * Makefile.in: Regenerated. 2015-04-15 Mike Frysinger <vapier@gentoo.org> Hans-Peter Nilsson <hp@axis.com> Adjust src-release.sh for sim using the gdb create-version.sh. * src-release.sh (tar_compress): If there's a fifth parameter, use that in the getver call instead of $tool. (sim_release): Pass gdb as fifth parameter to tar_compress. (SIM_SUPPORT_DIRS): Add gdb/common/create-version.sh. 2015-04-14 Max Ostapenko <m.ostapenko@partner.samsung.com> * Makefile.tpl (EXTRA_HOST_EXPORTS): New variables. (EXTRA_BOOTSTRAP_FLAGS): Likewise. (check-[+module+]): Add EXTRA_HOST_EXPORTS and EXTRA_BOOTSTRAP_FLAGS. * Makefile.in: Regenerate. 2015-04-01 H.J. Lu <hongjiu.lu@intel.com> * configure.ac: Add --with-system-zlib. * configure: Regenerated. 2015-03-31 H.J. Lu <hongjiu.lu@intel.com> * src-release.sh: Don't configure with --with-target-subdir=. --disable-multilib. 2015-03-31 H.J. Lu <hongjiu.lu@intel.com> * src-release.sh (DEVO_SUPPORT): Replace src-release with src-release.sh. 2015-03-30 Ed Schouten <ed@nuxi.nl> * config.sub: Update from upstream, to 2015-03-04 version. * config.guess: Likewise. 2015-03-30 H.J. Lu <hongjiu.lu@intel.com> * Makefile.def (dependencies): Add all-zlib to all-bfd. * Makefile.in: Regenerated. 2015-03-28 H.J. Lu <hongjiu.lu@intel.com> * src-release.sh (do_proto_toplev): Configure with --target --with-target-subdir and --disable-multilib. (BINUTILS_SUPPORT_DIRS): Add zlib. (GAS_SUPPORT_DIRS): Likewise. (GDB_SUPPORT_DIRS): Likewise. (SIM_SUPPORT_DIRS): Likewise. 2015-03-17 H.J. Lu <hongjiu.lu@intel.com> * configure.ac (target_configdirs): Exclude target-zlib if target-libjava isn't built. * configure: Regenerated. 2015-03-17 H.J. Lu <hongjiu.lu@intel.com> Sync with GCC 2014-06-13 Thomas Schwinge <thomas@codesourcery.com> * config-ml.in: Robustify ac_configure_args parsing. 2015-03-16 H.J. Lu <hongjiu.lu@intel.com> * Makefile.def: Updated from GCC trunk. * Makefile.tpl: Likewise. * configure.ac: Likewise. * Makefile.in: Regenerated. * configure: Likewise. 2015-01-28 James Bowman <james.bowman@ftdichip.com> * configure.ac: Add FT32 support. * configure: Regenerate. 2015-01-12 Anthony Green <green@moxielogic.com> * configure.ac: Don't disable gprof for moxie. * configure: Rebuild.
merge conflicts
import new gdb
Rebase to HEAD as of a few days ago.
Rebase.
merge changes, partial regen.
ChangeLog: 2013-12-19 Keven Boell <keven.boell@intel.com> * cp-namespace.c (cp_lookup_nested_symbol): Enable nested lookups for fortran modules. * dwarf2read.c (read_module): Add fortran module to the symbol table. (add_partial_symbol, add_partial_module): Add fortran module to the partial symbol table. (new_symbol_full): Create full symbol for fortran module. * f-exp.y (yylex): Add new module domain to be parsed. * symtab.h: New domain for fortran modules. 2013-12-19 Keven Boell <keven.boell@intel.com> * f-exp.y (yylex): Add domain array to enable lookup in multiple domains. Loop over lookup domains and try to find requested symbol. Add STRUCT_DOMAIN to lookup domains to be able to query for user defined types. 2013-12-13 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> * configure.ac: Add user-friendly check for native x86_64-linux multilibs. * configure: Regenerate. 2013-11-23 Alan Modra <amodra@gmail.com> * config.sub, config.guess: Import from upstream. 2013-11-07 Thomas Schwinge <thomas@codesourcery.com> * Makefile.in: Regenerate. * Makefile.tpl: Fix typo. * Makefile.in: Regenerate partially. 2013-11-04 Balaji V. Iyer <balaji.v.iyer@intel.com> * configure.ac: Added libcilkrts to noconfig list when C++ is not supported. * configure: Regenerated. 2013-10-30 Jason Merrill <jason@redhat.com> * Makefile.tpl (STAGE1_CONFIGURE_FLAGS): Pass --disable-build-format-warnings. 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com> * Makefile.def: Add libcilkrts to target_modules. Make libcilkrts depend on libstdc++ and libgcc. * configure: Regenerate. * configure.ac: Added libcilkrts to target binaries. Also, restrict libcilkrts for POSIX and i*86, and x86_64 architectures. * Makefile.in: Added libcilkrts related fields to support building it. 2013-10-26 Jeff Law <law@redhat.com> * Makefile.def (target_modules): Remove libmudflap (languages): Remove check-target-libmudflap). * Makefile.in: Rebuilt. * Makefile.tpl (check-target-libmudflap-c++): Remove. * configure.ac (target_libraries): Remove target-libmudflap. Remove checks which disabled libmudflap on some systems. * configure: Rebuilt. * libmudflap: Directory removed. 2013-10-16 Jan-Benedict Glaw <jbglaw@lug-owl.de> * configure.ac: Update from GCC. * configure: Regenerate. 2013-10-15 Hans-Peter Nilsson <hp@axis.com> * src-release (do-proto-toplevel): Support subdir-path-prefixed files in SUPPORT_FILES. (SIM_SUPPORT_DIRS): New variable. (sim.tar.bz2): New rule. 2013-10-08 Jan-Benedict Glaw <jbglaw@lug-owl.de> * configure.ac: Update from GCC. * configure: Regenerate. 2013-10-01 Jeff Johnston <jjohnstn@redhat.com> * COPYING.NEWLIB: Update with new copyright. 2013-09-21 Jan-Benedict Glaw <jbglaw@lug-owl.de> * configure.ac: Update from GCC. * configure: Regenerate. 2013-09-20 Alan Modra <amodra@gmail.com> * libtool.m4 (_LT_ENABLE_LOCK <ld -m flags>): Remove non-canonical ppc host match. Support little-endian powerpc linux hosts. 2013-08-16 Joel Brobecker <brobecker@adacore.com> * src-release (VER): When using $(TOOL)/common/create-version.sh, strip the "-cvs" suffix from the version number if present. 2013-08-12 Jan-Benedict Glaw <jbglaw@lug-owl.de> * configure.ac: Sync with GCC repo. * Makefile.def: Ditto. * configure: Regenerate. * Makefile.in: Ditto. 2013-07-22 Joel Brobecker <brobecker@adacore.com> * src-release (VER): Use $(TOOL)/common/create-version.sh if it exists. 2013-06-22 Richard Sandiford <rdsandiford@googlemail.com> * configure.ac (mips*-*-bsd*, mips*-*-ultrix*, mips*-*-osf*) (mips*-*-ecoff*, mips*-*-pe*, mips*-*-irix* [v4 and earlier]) (mips*-*-lnews*, mips*-*-riscos*): Add gas and ld to noconfigdirs. * configure: Regenerate. 2013-06-01 George Thomas <george.thomas@atmel.com> * include/opcode/avr.h: Rename AVR_ISA_XCH to AVR_ISA_RMW. Remove from AVR_ISA_XMEGA and add new AVR_ISA_XMEGAU 2013-05-06 Sandra Loosemore <sandra@codesourcery.com> * COPYING.NEWLIB: Add Altera Corporation copyright. 2013-04-29 Jan-Benedict Glaw <jbglaw@lug-owl.de> * config.guess: Update from config repo. * config.sub: Ditto. 2013-04-22 Jan-Benedict Glaw <jbglaw@lug-owl.de> * Makefile.def: Sync with GCC. * Makefile.in: Regenerate. 2013-04-22 Jan-Benedict Glaw <jbglaw@lug-owl.de> * configure.ac: Sync with GCC. * configure: Regenerate. 2013-03-22 Mike Frysinger <vapier@gentoo.org> * src-release (VER): Change bfd/configure.in sed to use the new `bfd/configure --version` output.
sync with head. for a reference, the tree before this commit was tagged as yamt-pagecache-tag8. this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
merge conflicts
Import gdb 7.6.1 News from: http://sourceware.org/gdb/news: August 30th, 2013: GDB 7.6.1 Released! The latest version of GDB, version 7.6.1, is available for download. This is a minor corrective release over GDB 7.6, fixing the following issues: PR tdep/15420 (Cannot debug threaded programs on newer versions of x86-solaris - Solaris 10, Update 10 or later) PR remote/15455 (QTro remote packet broken) PR build/15476 (Build failure due to incomplete enum type in utils.h) PR server/15594 (tls support in 64x32 x86 gdbserver doesn't extend address to 64 bit) PR server/15075 (dprintf inteferes with "next") PR server/15434 (dprintf uses a synchronous 'continue' even in non-stop mode) PR tui/14880 (In split register layouts, up results in assertion failure in value.c) PR c++/15519 (GDB 7.6 is 94x slower than GDB 7.5.1 using a certain core file) PR gdb/15837 (GDB prints entry values for local variables) PR gdb/15415 (gdb resolves symbolic links when passing argv[0]) PR cli/15603 (CTRL-C can no longer interrupt inferior) PR gdb/15604 (gdbserver socket leak 7.5 regression) April 26th, 2013: GDB 7.6 Released! The latest version of GDB, version 7.6, is available for download. Changes in this release include: New native configurations (ARM AArch64 GNU/Linux, FreeBSD/powerpc, 86_64/Cygwin and Tilera TILE-Gx GNU/Linux) New target configurations (ARM AArch64, ARM AArch64 GNU/Linux, Lynx 178 PowerPC, x86_64/Cygwin, and Tilera TILE-Gx GNU/Linux) Support for the "mini debuginfo" section, .gnu_debugdata The C++ ABI now defaults to the GNU v3 ABI More Python scripting improvements Some GDB/MI improvements New configure options, new commands, and options New remote packets A new "target record-btrace" has been added while the "target record" command has been renamed to "target record-full" See the NEWS file for a more complete and detailed list of what this release includes. March 12th, 2013: GDB 7.6 branch created The GDB 7.6 branch (gdb_7_6-branch) has been created. To check out a copy of the branch use: cvs -d :pserver:anoncvs@sourceware.org:/cvs/src co -r gdb_7_6-branch gdb November 29th, 2012: GDB 7.5.1 Released! The latest version of GDB, version 7.5.1, is available for download. This is a minor corrective release over GDB 7.5, fixing the following issues: An "Attempt to dereference a generic pointer" errors (-var-create). Backtrace problems on x32 (PR backtrace/14646). next/step/finish problems on x32 (PR gdb/14647). A "malformed linespec error: unexpected keyword, [...]" error (PR breakpoints/14643). GDB crash while stepping through powerpc (32bits) code. A failed assertion in linux_ptrace_test_ret_to_nx. A "!frame_id_inlined_p (frame_id)" failed assertion. A "No more reverse-execution history." error during reverse "next" execution (PR 14548). Incomplete command descriptions in "apropos" output. PR gdb/14494 (a GDB crash difficult to characterize). Various build warnings. August 17th, 2012: GDB 7.5 Released! The latest version of GDB, version 7.5, is available for download. Changes in this release include: Go language support. New targets (x32 ABI, microMIPS, Renesas RL78, HP OpenVMS ia64). More Python scripting improvements. SDT (Static Defined Tracing) probes support with SystemTap probes. GDBserver improvements (stdio connections, target-side evaluation of breakpoint conditions, remote protocol improvements). Other miscellaneous improvements (ability to stop when a shared library is loaded/unloaded, dynamic printf, etc). Reverse debugging on ARM. The binary "gdbtui" has been abandoned and can no longer be built. Use "gdb -tui" instead. See the NEWS file for a more complete and detailed list of what this release includes. July 17th, 2012: GDB 7.5 branch created The GDB 7.5 branch (gdb_7_5-branch) has been created. To check out a copy of the branch use: cvs -d :pserver:anoncvs@sourceware.org:/cvs/src co -r gdb_7_5-branch gdb April 26th, 2012: GDB 7.4.1 Released! The latest version of GDB, version 7.4.1, is available for download. This is a minor corrective release over GDB 7.4, fixing the following issues: [GDB/MI] Error when resuming program execution in all-stop mode ("Cannot execute this command without a live selected thread"). [Pascal] Polluted display of class methods parameters. [target remote] Errror when connecting to remote target where disconnected tracing is in effect. [AVX] Float and ymm* register values not available. [GDB] Crash when using the "finish" command. [build] makeinfo should not be required to build GDB. January 24th, 2012: GDB 7.4 Released! The latest version of GDB, version 7.4, is available for download. Changes in this release include: Many Python scripting improvements Better support for ambiguous linespecs Masked watchpoints Tracepoint support improvements Support for Texas Instruments TMS320C6x (tic6x-*-*) A Renesas RL78 simulator (rl78-*-elf) Some minor Remote protocol extensions and GDB/MI changes See the NEWS file for a more complete and detailed list of what this release includes. Note that the gdbtui binary is deprecated, starting with GDB 7.5. Use "gdb -tui" instead. January 9, 2012: Extensibility support using Guile GDB ought to support extensibility using Guile, the GNU extensibility package (an implementation of Scheme). We are looking for people to write the code to interface the two. Please write to gdb-patches AT sourceware DOT org if you are interested. December 13, 2011: GDB 7.4 branch created The GDB 7.4 branch (gdb_7_4-branch) has been created. To check out a copy of the branch use: cvs -d :pserver:anoncvs@sourceware.org:/cvs/src co -r gdb_7_4-branch gdb September 30, 2011: Release Mistakes in GDB Versions 6.0 - 7.3 A mistake has been detected in the release tar files for all GDB releases from version 6.0 to version 7.3 (included). The mistake has been corrected, and the FSF issued the following announcements: Making up for a release mistake in GDB versions 6.0 - 6.6 Making up for a release mistake in GDB versions 6.7 - 7.3
sync with HEAD
Match m5407--netbsdelf*
Apply the diffs that are relevant from our old gdb6 source tree.
import 7.3.1
Initial revision