diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-07-17 08:29:26 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-07-20 05:53:31 -0700 |
commit | 7ac018954bd9c2d964204a451ecabdd7d8a11945 (patch) | |
tree | 86b533dd48bec9fa2eae73d7f4d2c885e313929c /bfd/bfd.c | |
parent | f2d7e0f45023ef1b469c627aff02ead3697b1240 (diff) | |
download | gdb-7ac018954bd9c2d964204a451ecabdd7d8a11945.zip gdb-7ac018954bd9c2d964204a451ecabdd7d8a11945.tar.gz gdb-7ac018954bd9c2d964204a451ecabdd7d8a11945.tar.bz2 |
Make binutils abort message GDB friendly
We used to generate abort messages like:
internal error, aborting at .../bfd/elf64-x86-64.c line 1554 in elf_x86_64_check_relocs
We can't cut and paste "file line ???" to GDB. This patch changes those
abort messages to
internal error, aborting at .../bfd/elf64-x86-64.c:1554 in elf_x86_64_check_relocs
so that we can cut and paste "file:???" to GDB.
bfd/
* bfd.c (_bfd_abort): Replace " line " with ":" in output
message.
gas/
* messages.c (as_assert): Replace " line " with ":" in output
message.
(as_abort): Likewise.
ld/
* ldmisc.c (ld_abort): Replace " line " with ":" in output
message.
Diffstat (limited to 'bfd/bfd.c')
-rw-r--r-- | bfd/bfd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1090,11 +1090,11 @@ _bfd_abort (const char *file, int line, const char *fn) { if (fn != NULL) (*_bfd_error_handler) - (_("BFD %s internal error, aborting at %s line %d in %s\n"), + (_("BFD %s internal error, aborting at %s:%d in %s\n"), BFD_VERSION_STRING, file, line, fn); else (*_bfd_error_handler) - (_("BFD %s internal error, aborting at %s line %d\n"), + (_("BFD %s internal error, aborting at %s:%d\n"), BFD_VERSION_STRING, file, line); (*_bfd_error_handler) (_("Please report this bug.\n")); _exit (EXIT_FAILURE); |