summaryrefslogtreecommitdiff
path: root/binutils/ieee.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2009-03-02 16:18:54 +0000
committerNick Clifton <nickc@redhat.com>2009-03-02 16:18:54 +0000
commit113c677d30ff90c879f211f4a138104cba3601cc (patch)
tree170bcb02411c9823def95a235b1edbefb1d0b09c /binutils/ieee.c
parenta5ad065f8d9dd607851f3b03756caa374eda21ef (diff)
downloadbinutils-redhat-113c677d30ff90c879f211f4a138104cba3601cc.tar.gz
* ieee.c (parse_ieee_ty): Add support for undocumented 'v' type.
(parse_ieee_bb): Set the filename if it has not already been discovered.
Diffstat (limited to 'binutils/ieee.c')
-rw-r--r--binutils/ieee.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/binutils/ieee.c b/binutils/ieee.c
index 9a61132bfa..3763a8eed1 100644
--- a/binutils/ieee.c
+++ b/binutils/ieee.c
@@ -1,6 +1,6 @@
/* ieee.c -- Read and write IEEE-695 debugging information.
- Copyright 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2006, 2007, 2008
- Free Software Foundation, Inc.
+ Copyright 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2006, 2007,
+ 2008, 2009 Free Software Foundation, Inc.
Written by Ian Lance Taylor <ian@cygnus.com>.
This file is part of GNU Binutils.
@@ -1069,6 +1069,16 @@ parse_ieee_bb (struct ieee_info *info, const bfd_byte **pp)
break;
}
+ if (! info->saw_filename)
+ {
+ namcopy = savestring (name, namlen);
+ if (namcopy == NULL)
+ return FALSE;
+ if (! debug_set_filename (info->dhandle, namcopy))
+ return FALSE;
+ info->saw_filename = TRUE;
+ }
+
namcopy = savestring (name, namlen);
if (namcopy == NULL)
return FALSE;
@@ -1786,6 +1796,7 @@ parse_ieee_ty (struct ieee_info *info, const bfd_byte **pp)
break;
case 'V':
+ case 'v':
/* Void. This is not documented, but the MRI compiler emits it. */
type = debug_make_void_type (dhandle);
break;