diff options
author | Petr Tesarik <ptesarik@suse.cz> | 2018-06-28 08:30:42 +0200 |
---|---|---|
committer | Petr Tesarik <ptesarik@suse.cz> | 2018-06-28 08:35:34 +0200 |
commit | ed6dfe517ee323ed631aa8b9816289ea35219409 (patch) | |
tree | 8ebac09e44c3a548370a0c1d8a7b1f8d4e8cf299 /gdb/NEWS | |
parent | d4d429d589c4d6a4450146fbcac8e1aad445114d (diff) | |
download | gdb-ed6dfe517ee323ed631aa8b9816289ea35219409.zip gdb-ed6dfe517ee323ed631aa8b9816289ea35219409.tar.gz gdb-ed6dfe517ee323ed631aa8b9816289ea35219409.tar.bz2 |
Make add-symbol-file's address argument optional
The (first) .text section must be always specified as the second
non-option argument. The documentation states that GDB cannot
figure out this address by itself. This is true if the object file
was indeed relocated, but it is also confusing, because all other
sections can be omitted and will use the address provided by BFD.
gdb/ChangeLog:
2018-06-28 Petr Tesarik <ptesarik@suse.cz>
* symfile.c (add_symbol_file_command, _initialize_symfile): Do not
require the second argument. If omitted, load sections at the
addresses specified in the file.
gdb/doc/ChangeLog:
2018-06-28 Petr Tesarik <ptesarik@suse.cz>
* gdb.texinfo (Files): The address argument for "add-symbol-file"
is no longer mandatory.
gdb/testsuite/ChangeLog:
2018-06-28 Petr Tesarik <ptesarik@suse.cz>
* gdb.base/relocate.exp: Test add-symbol-file behavior when the
address argument is omitted.
Diffstat (limited to 'gdb/NEWS')
-rw-r--r-- | gdb/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -6,6 +6,9 @@ * The 'symbol-file' command now accepts an '-o' option to add a relative offset to all sections. +* The 'add-symbol-file' command no longer requires the second argument + (address of the text section). + * The endianness used with the 'set endian auto' mode in the absence of an executable selected for debugging is now the last endianness chosen either by one of the 'set endian big' and 'set endian little' commands |