diff options
author | Kung Hsu <kung@cygnus> | 1995-08-01 23:09:20 +0000 |
---|---|---|
committer | Kung Hsu <kung@cygnus> | 1995-08-01 23:09:20 +0000 |
commit | fc564b185864dc8d3378a4bd705fa6d62af2cbc1 (patch) | |
tree | ad7776254b53257bd28287d4d44e4213e3952fbb | |
parent | 9c92373a6cd9d3d1c22a6366a2dc568ac132f0f4 (diff) | |
download | gdb-fc564b185864dc8d3378a4bd705fa6d62af2cbc1.zip gdb-fc564b185864dc8d3378a4bd705fa6d62af2cbc1.tar.gz gdb-fc564b185864dc8d3378a4bd705fa6d62af2cbc1.tar.bz2 |
* xcoffread.c (process_linenos): The value in include file symbol
should point to line number table. Currently this value is not
set correctly by AIX ld. A fix to get around this bug.
-rw-r--r-- | gdb/xcoffread.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index bda6caa..931e5cc 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -606,7 +606,8 @@ process_linenos (start, end) enter_line_range (tmpSubfile, inclTable[ii].begin, inclTable[ii].end, start, 0, firstLine); - offset = inclTable[ii].end + LINESZ; + if (offset < = inclTable[ii].end) + offset = inclTable[ii].end + LINESZ; } /* All the include files' line have been processed at this point. Now, @@ -3033,7 +3034,7 @@ xcoff_symfile_offsets (objfile, addr) parameter and use 0. rs6000-nat.c will set the correct section offsets via objfile_relocate. */ for (i = 0; i < objfile->num_sections; ++i) - ANOFFSET (section_offsets, i) = 0; + ANOFFSET (section_offsets, i) = addr; return section_offsets; } |