diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-07-18 22:50:30 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-07-18 22:50:30 +0000 |
commit | fc39be5870d4a2acddd7aad0633f745b06b45761 (patch) | |
tree | 4867e54b277f384a701a4fa16522dad00d4feb4e /gdb/partial-stab.h | |
parent | 76b098d175f07d9d8635e5b603945a4497a6e09b (diff) | |
download | gdb-fc39be5870d4a2acddd7aad0633f745b06b45761.zip gdb-fc39be5870d4a2acddd7aad0633f745b06b45761.tar.gz gdb-fc39be5870d4a2acddd7aad0633f745b06b45761.tar.bz2 |
* partial-stab.h (N_SO): Add the text offset to valu before, not after,
passing it to END_PSYMTAB.
Diffstat (limited to 'gdb/partial-stab.h')
-rw-r--r-- | gdb/partial-stab.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/partial-stab.h b/gdb/partial-stab.h index e76c8d8..1eea3cc 100644 --- a/gdb/partial-stab.h +++ b/gdb/partial-stab.h @@ -203,11 +203,13 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ */ case N_SO: { - unsigned long valu = CUR_SYMBOL_VALUE; + unsigned long valu; static int prev_so_symnum = -10; static int first_so_symnum; char *p; - + + valu = CUR_SYMBOL_VALUE + ANOFFSET (section_offsets, SECT_OFF_TEXT); + past_first_source_file = 1; if (prev_so_symnum != symnum - 1) @@ -231,8 +233,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ SET_NAMESTRING(); - valu += ANOFFSET (section_offsets, SECT_OFF_TEXT); - /* Some compilers (including gcc) emit a pair of initial N_SOs. The first one is a directory name; the second the file name. If pst exists, is empty, and has a filename ending in '/', |