aboutsummaryrefslogtreecommitdiff
path: root/bfd/dwarf2.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2003-09-19 09:01:53 +0000
committerNathan Sidwell <nathan@codesourcery.com>2003-09-19 09:01:53 +0000
commit8bfd78b3d0e6ac77b921bdfbf2198088d240a50f (patch)
treec2c5c3595129a87ec60c4bf2776bd193acd89d33 /bfd/dwarf2.c
parent51db5742a9dfd4d6b0ca51856428029f4f8cbefc (diff)
downloadgdb-8bfd78b3d0e6ac77b921bdfbf2198088d240a50f.zip
gdb-8bfd78b3d0e6ac77b921bdfbf2198088d240a50f.tar.gz
gdb-8bfd78b3d0e6ac77b921bdfbf2198088d240a50f.tar.bz2
* dwarf2.c (decode_line_info): Cope with an initially empty
filename table.
Diffstat (limited to 'bfd/dwarf2.c')
-rw-r--r--bfd/dwarf2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index 7a9e5b0..a5976c3 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;