diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2003-09-19 09:01:53 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@codesourcery.com> | 2003-09-19 09:01:53 +0000 |
commit | e9c7e6b97baa06086aca732c7f2d00adeac934f3 (patch) | |
tree | c4e9f611b7d99d6ac2b9c8c8b7ef4009f16d2ce5 /bfd/dwarf2.c | |
parent | a8a04ef70d7b93b47d872430c9564abfe479f2d2 (diff) | |
download | gdb-e9c7e6b97baa06086aca732c7f2d00adeac934f3.tar.gz |
* dwarf2.c (decode_line_info): Cope with an initially empty
filename table.
Diffstat (limited to 'bfd/dwarf2.c')
-rw-r--r-- | bfd/dwarf2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c index 7a9e5b00e31..a5976c34d86 100644 --- a/bfd/dwarf2.c +++ b/bfd/dwarf2.c @@ -1168,7 +1168,7 @@ decode_line_info (unit, stash) { /* State machine registers. */ bfd_vma address = 0; - char * filename = concat_filename (table, 1); + char * filename = table->num_files ? concat_filename (table, 1) : NULL; unsigned int line = 1; unsigned int column = 0; int is_stmt = lh.default_is_stmt; |