diff options
author | Alan Modra <amodra@gmail.com> | 2002-11-11 23:15:38 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-11-11 23:15:38 +0000 |
commit | f39315758c92aa62d6a60a7320fbba38835334df (patch) | |
tree | 3b58f90a00d0c8680b2545dffe4e74d9a3640a70 | |
parent | c9fcedcf177c114677119b41d87203a27d360249 (diff) | |
download | binutils-f39315758c92aa62d6a60a7320fbba38835334df.zip binutils-f39315758c92aa62d6a60a7320fbba38835334df.tar.gz binutils-f39315758c92aa62d6a60a7320fbba38835334df.tar.bz2 |
* rddbg.c (read_section_stabs_debugging_info): Also recognize
LC_SYMTAB.stab/LC_SYMTAB.stabstr as a valid pair of sections.
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/rddbg.c | 19 |
2 files changed, 15 insertions, 9 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 5c6fec9..7763588 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2002-11-12 Klee Dienes <kdienes@apple.com> + + * rddbg.c (read_section_stabs_debugging_info): Also recognize + LC_SYMTAB.stab/LC_SYMTAB.stabstr as a valid pair of sections. + 2002-11-11 Christopher Faylor <cgf@redhat.com> * MAINTAINERS: Reinstate DJ Delorie as COFF maintainer. Drop COFF from diff --git a/binutils/rddbg.c b/binutils/rddbg.c index 3430c02..b6ca9e1 100644 --- a/binutils/rddbg.c +++ b/binutils/rddbg.c @@ -1,5 +1,5 @@ /* rddbg.c -- Read debugging information into a generic form. - Copyright 1995, 1996, 1997, 2000 Free Software Foundation, Inc. + Copyright 1995, 1996, 1997, 2000, 2002 Free Software Foundation, Inc. Written by Ian Lance Taylor <ian@cygnus.com>. This file is part of GNU Binutils. @@ -106,7 +106,8 @@ read_section_stabs_debugging_info (abfd, syms, symcount, dhandle, pfound) { const char *secname; const char *strsecname; - } names[] = { { ".stab", ".stabstr" } }; + } names[] = { { ".stab", ".stabstr" }, + { "LC_SYMTAB.stabs", "LC_SYMTAB.stabstr" } }; unsigned int i; PTR shandle; @@ -176,7 +177,7 @@ read_section_stabs_debugging_info (abfd, syms, symcount, dhandle, pfound) if (type == 0) { /* Special type 0 stabs indicate the offset to the - next string table. */ + next string table. */ stroff = next_stroff; next_stroff += value; } @@ -211,8 +212,8 @@ read_section_stabs_debugging_info (abfd, syms, symcount, dhandle, pfound) (const char *) NULL); /* We have to restore the backslash, because, if - the linker is hashing stabs strings, we may - see the same string more than once. */ + the linker is hashing stabs strings, we may + see the same string more than once. */ *p = '\\'; if (f != NULL) @@ -230,8 +231,8 @@ read_section_stabs_debugging_info (abfd, syms, symcount, dhandle, pfound) } /* Don't free f, since I think the stabs code - expects strings to hang around. This should be - straightened out. FIXME. */ + expects strings to hang around. This should be + straightened out. FIXME. */ } } @@ -239,8 +240,8 @@ read_section_stabs_debugging_info (abfd, syms, symcount, dhandle, pfound) free (stabs); /* Don't free strings, since I think the stabs code expects - the strings to hang around. This should be straightened - out. FIXME. */ + the strings to hang around. This should be straightened + out. FIXME. */ } } |