summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--loc2c.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 3164cd36..c5543e03 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-11-27 Frank Ch. Eigler <fche@elastic.org>
+
+ * loc2c.c (location_from_address): Tolerate errors with NULL *input.
+
2005-11-26 Roland McGrath <roland@redhat.com>
PR 1868.
diff --git a/loc2c.c b/loc2c.c
index ec97f36e..3b6b28a2 100644
--- a/loc2c.c
+++ b/loc2c.c
@@ -579,13 +579,13 @@ location_from_address (struct obstack *pool,
default: /* Shouldn't happen. */
case -1:
- FAIL (*input, N_("dwarf_addrloclists (form %#x): %s"),
- dwarf_whatform (fb_attr), dwarf_errmsg (-1));
+ FAIL (loc, N_("dwarf_addrloclists (form %#x): %s"),
+ dwarf_whatform(fb_attr), dwarf_errmsg (-1));
return NULL;
case 0: /* Shouldn't happen. */
fb_inaccessible:
- FAIL (*input, N_("DW_AT_frame_base not accessible at this address"));
+ FAIL (loc, N_("DW_AT_frame_base not accessible at this address"));
return NULL;
}