Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/dist/gdb/bfd PR/28781: OBATA Akio: gdb -write would core...
details: https://anonhg.NetBSD.org/src/rev/e37f76824fc5
branches: trunk
changeset: 572226:e37f76824fc5
user: christos <christos%NetBSD.org@localhost>
date: Sun Dec 26 16:55:00 2004 +0000
description:
PR/28781: OBATA Akio: gdb -write would core-dump if the executable did not
have a string table. Check if the string table has been passed to us before
we attempt writing it.
diffstat:
gnu/dist/gdb/bfd/elf-strtab.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r c3c7691b832d -r e37f76824fc5 gnu/dist/gdb/bfd/elf-strtab.c
--- a/gnu/dist/gdb/bfd/elf-strtab.c Sun Dec 26 13:07:41 2004 +0000
+++ b/gnu/dist/gdb/bfd/elf-strtab.c Sun Dec 26 16:55:00 2004 +0000
@@ -253,6 +253,9 @@
if (bfd_bwrite ("", 1, abfd) != 1)
return false;
+ if (tab == NULL)
+ return true;
+
for (i = 1; i < tab->size; ++i)
{
register const char *str;
Home |
Main Index |
Thread Index |
Old Index