Commit Graph

99726 Commits

Author SHA1 Message Date
Alibek Omarov 220385f52a GDB with MCST patches from ROSA repository (26.012) 2023-07-20 02:03:19 +03:00
Joel Brobecker 49526e9359 Bump GDB version number to 9.1.90.DATE-git.
gdb/ChangeLog:

	* version.in: Set GDB version number to 9.1.90.DATE-git.
2020-02-08 17:14:10 +04:00
Joel Brobecker 97bfc9ea88 Document the GDB 9.1 release in gdb/ChangeLog
gdb/ChangeLog:

	GDB 9.1 released.
2020-02-08 17:02:09 +04:00
Joel Brobecker 899016d49d Set GDB version number to 9.1.
gdb/ChangeLog:

	* version.in: Set GDB version number to 9.1.
2020-02-08 16:50:15 +04:00
GDB Administrator 2c8e4c9fba Automatic date update in version.in 2020-02-08 00:01:33 +00:00
Iain Buclaw f49692dff8 Make fputs_unfiltered use fputs_maybe_filtered
This patch redefines fputs_unfiltered in utils.c, with new behavior to
forward parameters to fputs_maybe_filtered.  This makes
fputs_unfiltered identical to fputs_filtered, except filtering is
disabled.

Some callers of fputs_unfiltered have been updated to use ui_file_puts
where they were using other ui_file_* functions anyway for IO.

This fixes the problem I saw with \032\032post-prompt annotation being
flushed to stdout in the wrong order.

gdb/ChangeLog
2020-02-05  Iain Buclaw  <ibuclaw@gdcproject.org>

	PR gdb/25190:
        * gdb/remote-sim.c (gdb_os_write_stderr): Update.
        * gdb/remote.c (remote_console_output): Update.
        * gdb/ui-file.c (fputs_unfiltered): Rename to...
        (ui_file_puts): ...this.
        * gdb/ui-file.h (ui_file_puts): Add declaration.
        * gdb/utils.c (emit_style_escape): Update.
        (flush_wrap_buffer): Update.
        (fputs_maybe_filtered): Update.
        (fputs_unfiltered): Add function.

Change-Id: I17ed5078f71208344f2f8ab634a6518b1af6e213
2020-02-07 13:23:51 -07:00
Iain Buclaw ff491e6bfc Make gdb_flush also flush the wrap buffer
This changes gdb_flush to also flush the internal wrap buffer.  A few
places needed to continue using the previous approach, so this also
introduces ui_file_flush for those.

gdb/ChangeLog
2020-02-05  Iain Buclaw  <ibuclaw@gdcproject.org>

        * gdb/event-loop.c (gdb_wait_for_event): Update.
        * gdb/printcmd.c (printf_command): Update.
        * gdb/remote-fileio.c (remote_fileio_func_write): Update.
        * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
        (gdb_os_flush_stderr): Update.
        * gdb/remote.c (remote_console_output): Update.
        * gdb/ui-file.c (gdb_flush): Rename to...
        (ui_file_flush): ...this.
        (stderr_file::write): Update.
        (stderr_file::puts): Update.
        * gdb/ui-file.h (gdb_flush): Rename to...
        (ui_file_flush): ...this.
        * gdb/utils.c (gdb_flush): Add function.
        * gdb/utils.h (gdb_flush): Add declaration.

Change-Id: I7ca143d30f03dc39f218f6e880eb9bca9e15af39
2020-02-07 13:07:39 -07:00
Tom Tromey 76f5096cd4 Revert basenames_may_differ patch
Commit a0c1ffedc regressed certain cases coming from Eclipse.
See PR breakpoints/24915.

This patch reverts the commit for the gdb 9 release.

gdb/ChangeLog
2020-02-07  Tom Tromey  <tromey@adacore.com>

	PR breakpoints/24915:
	* source.c (find_and_open_source): Do not check basenames_may_differ.

gdb/testsuite/ChangeLog
2020-02-07  Tom Tromey  <tromey@adacore.com>

	PR breakpoints/24915:
	* gdb.base/annotate-symlink.exp: Use setup_xfail.

Change-Id: Iadbf42f35eb40c95ad32b2108ae25d8f199998bd
2020-02-07 12:38:27 -07:00
GDB Administrator 168359c1b5 Automatic date update in version.in 2020-02-07 00:01:51 +00:00
GDB Administrator cab7b99a4f Automatic date update in version.in 2020-02-06 00:01:13 +00:00
GDB Administrator 6eb28a37e9 Automatic date update in version.in 2020-02-05 00:01:15 +00:00
GDB Administrator e0d936418a Automatic date update in version.in 2020-02-04 00:01:43 +00:00
GDB Administrator 4d37e9a90b Automatic date update in version.in 2020-02-03 00:01:43 +00:00
GDB Administrator 99a0005346 Automatic date update in version.in 2020-02-02 00:01:30 +00:00
Sergio Durigan Junior 1aa93c3a9b Implement '--enable-src-release-build' option and make src-release.sh use it
The generation of snapshots has been broken since we've disable
in-tree builds for GDB.  Given that src-release.sh performs a build
before creating the release tarball, and that this build is performed
in-tree, the solution we found is to implement a new top-level
configure flag called '--enable-src-release-build' which disables the
in-tree build restriction, and then make src-release.sh use it.

ChangeLog:
2020-02-01  Sergio Durigan Junior  <sergiodj@redhat.com>
	    Eli Zaretskii  <eliz@gnu.org>

	* configure.ac: Don't abort the build if trying to build GDB in tree
	_and_ invoking with '--enable-src-release-build'.
	* configure: Regenerate.
	* src-release.sh (do_proto_toplev): Invoke 'configure' using

Change-Id: Ic6dd55accd9a03e62fe498f7fd704fb67f44bfa9
2020-02-01 15:33:31 -05:00
Eli Zaretskii 50500ecfef libctf: compilation failure on MinGW due to missing errno values
This commit fixes a compilation failure in a couple of libctf files
due to the use of EOVERFLOW and ENOTSUP, which are not defined
when compiling on MinGW.

libctf/ChangeLog:

	PR binutils/25155:
	* ctf-create.c (EOVERFLOW): If not defined by system header,
	redirect to ERANGE as a poor man's substitute.
	* ctf-subr.c (ENOTSUP): If not defined, use ENOSYS instead.

This one is how Eli implemented it. I think this implementation
has a weakness in the following sense: If other units in libctf
start using those constants, we'll get the same error again.
Also, I'm wondering whether their use is documented as part of
the official libtcf API or not -- users might be writing code
that tests for these, and if the system doesn't support them,
how would they know what errno code to use in its place. This
argues for a having that information in one of libctf's header
files. I think it would be nice to have those in ctf-decls.h,
but I think we'll need to include <errno.h> in ctf-decls.h if
we decide to define those macros there.

Rather than second-guess what the CTF developers would prefer,
I'm starting by sending Eli's patch, to see what you guys think.

Thanks,
--
Joel
2020-02-01 15:25:19 +04:00
GDB Administrator 7437a7ef50 Automatic date update in version.in 2020-02-01 00:01:34 +00:00
GDB Administrator 1ca56c96a4 Automatic date update in version.in 2020-01-31 00:01:41 +00:00
GDB Administrator a11ceee48d Automatic date update in version.in 2020-01-30 00:01:30 +00:00
GDB Administrator caeb863eda Automatic date update in version.in 2020-01-29 00:01:22 +00:00
Hannes Domani 42cce0e4fc Fix library segment-address for 64bit values
The address was written as a long value, but long is always a 32bit value
on Windows, which lead to truncated addresses.
The solution was to use paddress instead.

gdb/gdbserver/ChangeLog:

2020-01-28  Hannes Domani  <ssbssa@yahoo.de>

	* server.c (handle_qxfer_libraries): Write segment-address with
	paddress.
2020-01-28 20:10:55 +01:00
GDB Administrator 8d197d83a1 Automatic date update in version.in 2020-01-28 00:02:48 +00:00
GDB Administrator 85e069727b Automatic date update in version.in 2020-01-27 00:01:57 +00:00
GDB Administrator 069022c5b3 Automatic date update in version.in 2020-01-26 00:01:35 +00:00
GDB Administrator 99075aaca1 Automatic date update in version.in 2020-01-25 00:00:54 +00:00
GDB Administrator 937d3d4a1f Automatic date update in version.in 2020-01-24 00:01:02 +00:00
GDB Administrator 0b25a5d915 Automatic date update in version.in 2020-01-23 00:01:16 +00:00
GDB Administrator eb886d58a2 Automatic date update in version.in 2020-01-22 00:01:18 +00:00
GDB Administrator 832bd9e9c9 Automatic date update in version.in 2020-01-21 00:01:48 +00:00
GDB Administrator 283eb89897 Automatic date update in version.in 2020-01-20 00:01:02 +00:00
GDB Administrator 0d4f8ed80a Automatic date update in version.in 2020-01-19 00:01:28 +00:00
GDB Administrator 62723af4cc Automatic date update in version.in 2020-01-18 00:01:25 +00:00
Joel Brobecker 043a001093 Abort configure immediately if building GDB in tree
The move of gnulib to the top src directory is causing the GDB build
to break if configured in tree. We hope to lift that limitation at
some point but, in the meantime, this commit allows us to abort
the initial configure right away with a clear error message should
the user attempt to build in tree.

ChangeLog:

        * configure.ac: Abort the build with an error if trying to build
        GDB in tree.
        * configure: Regenerate.
2020-01-17 19:30:39 +01:00
GDB Administrator a3cf234200 Automatic date update in version.in 2020-01-17 00:01:31 +00:00
GDB Administrator 7f92ae2824 Automatic date update in version.in 2020-01-16 00:01:33 +00:00
GDB Administrator 17524e099d Automatic date update in version.in 2020-01-15 00:00:56 +00:00
GDB Administrator 6c54147084 Automatic date update in version.in 2020-01-14 00:00:55 +00:00
GDB Administrator 7e36ff586d Automatic date update in version.in 2020-01-13 00:00:50 +00:00
GDB Administrator 3e353caee1 Automatic date update in version.in 2020-01-12 00:02:18 +00:00
GDB Administrator 55cca6cf13 Automatic date update in version.in 2020-01-11 00:01:19 +00:00
Christian Biesinger 975292a976 Don't define _FORTIFY_SOURCE on MinGW
Recent MinGW versions require -lssp when using _FORTIFY_SOURCE, which
gdb does (in common-defs.h)
https://github.com/msys2/MINGW-packages/issues/5868#issuecomment-544107564

To avoid all the complications with checking for -lssp and making sure it's
linked statically, just don't define it.

gdb/ChangeLog:

2020-01-10  Christian Biesinger  <cbiesinger@google.com>

	* gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.

Change-Id: Ide6870ab57198219a2ef78bc675768a789ca2b1d
2020-01-10 11:39:38 -06:00
GDB Administrator ad5e26527f Automatic date update in version.in 2020-01-10 00:00:56 +00:00
GDB Administrator 7e95250e16 Automatic date update in version.in 2020-01-09 00:02:08 +00:00
GDB Administrator cd57c637b2 Automatic date update in version.in 2020-01-08 00:00:53 +00:00
Tom Tromey 3c473fad8f Add constructor to stap_static_probe_ops
PR build/24937 concerns an error given by the clang provided by a
particular version of macOS.  In particular, it reports

    error: default initialization of an object of const type 'const
    stap_static_probe_ops' without a user-provided default constructor

Although (at least according to sources I found online) this was
resolved as a bug in the standard, it seemed simple enough to work
around this.

Given that this is a trivial build fix, I think it should go on the
gdb 9 branch as well.

2020-01-07  Tom Tromey  <tromey@adacore.com>

	PR build/24937:
	* stap-probe.c (class stap_static_probe_ops): Add constructor.

Change-Id: I18f180c17850f420e9b66afc67f9cb3d8dceb0b3
2020-01-07 09:46:26 -07:00
GDB Administrator 6b3a34ea87 Automatic date update in version.in 2020-01-07 00:00:51 +00:00
Andrew Burgess f7da8e5b9b gdb: Fix backtrace with disassemble-next-line on
In this commit:

  commit ec8e2b6d30
  Date:   Fri Jun 14 23:43:00 2019 +0100

      gdb: Don't allow annotations to influence what else GDB prints

A change was accidentally made that moved a call to do_gdb_disassembly
out of an if block guarded by 'if (source_print && sal.symtab)'.  The
result was that if a user has 'set disassemble-next-line on' then the
backtrace would now include some disassembly of a few instructions in
each frame.

This change was not intentional, but was not spotted by any tests.

This commit restores the old behaviour and adds a test to ensure this
doesn't break again in the future.

gdb/ChangeLog:

	* stack.c (print_frame_info): Move disassemble_next_line code
	inside source_print block.

gdb/testsuite/ChangeLog:

	* gdb.base/backtrace.c: New file.
	* gdb.base/backtrace.exp: New file.

Change-Id: I47c52a202fa74be138382646b695827940178689
2020-01-06 21:42:22 +00:00
GDB Administrator f231cbc17e Automatic date update in version.in 2020-01-06 00:01:03 +00:00
Eli Zaretskii 84baa6a515 libctf: Add configure check for asprintf (for MinGW)
This commit fixes a compilation warning when compiling libctf
on MinGW:

    libctf/ctf-dump.c:118:8: warning: implicit declaration of function
    'asprintf'; did you mean 'vasprintf'? [-Wimplicit-function-declaration]

	 if (asprintf (&bit, " %lx: [slice 0x%x:0x%x]",
	     ^~~~~~~~
	     vasprintf

MinGW doesn't provide that function, so we depend on the one provided
by libiberty. However, the declaration is guarded by HAVE_DECL_ASPRINTF,
which we do not have in libctf's config.h.

libctf/ChangeLog:

	PR binutils/25155:
	* configure.ac: Add AC_CHECK_DECLS([asprintf]).
	* configure, config.h.in: Regenerate.

(cherry picked from commit 3a657c600b)
2020-01-05 09:54:55 +04:00
Joel Brobecker 6f6d0a0778 libctf: Regenerate Makefile.in and acinclude.m4
I noticed that if I run "autoreconf" with vanilla automake-1.15.1
and autoconf-2.69, I get some differences.

libctf/ChangeLog:

        * Makefile.in, aclocal.m4: Regenerate.
2020-01-05 09:49:33 +04:00