diff options
author | Per Bothner <per@bothner.com> | 1992-03-29 22:33:35 +0000 |
---|---|---|
committer | Per Bothner <per@bothner.com> | 1992-03-29 22:33:35 +0000 |
commit | 1eeba68641b9b75e2d780759c39a079d8ddda0fc (patch) | |
tree | 53b52dab03341261520ae752bb16576121125bfa /gdb/minsyms.c | |
parent | be78a1301f2ab2bb13177d15326fb1aa3e372bf3 (diff) | |
download | gdb-1eeba68641b9b75e2d780759c39a079d8ddda0fc.zip gdb-1eeba68641b9b75e2d780759c39a079d8ddda0fc.tar.gz gdb-1eeba68641b9b75e2d780759c39a079d8ddda0fc.tar.bz2 |
Merged in latest RS6000 diffs from Metin G. Ozisik.
Diffstat (limited to 'gdb/minsyms.c')
-rw-r--r-- | gdb/minsyms.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/minsyms.c b/gdb/minsyms.c index d3f6c7b..760ea75 100644 --- a/gdb/minsyms.c +++ b/gdb/minsyms.c @@ -130,7 +130,7 @@ lookup_minimal_symbol (name, objf) struct objfile *objfile; struct minimal_symbol *msymbol; struct minimal_symbol *found_symbol = NULL; -#ifdef IBM6000 +#ifdef IBM6000_TARGET struct minimal_symbol *trampoline_symbol = NULL; #endif @@ -147,13 +147,13 @@ lookup_minimal_symbol (name, objf) { if (strcmp (msymbol -> name, name) == 0) { +#ifdef IBM6000_TARGET /* I *think* all platforms using shared libraries (and trampoline code) * will suffer this problem. Consider a case where there are 5 shared * libraries, each referencing `foo' with a trampoline entry. When someone * wants to put a breakpoint on `foo' and the only info we have is minimal * symbol vector, we want to use the real `foo', rather than one of those * trampoline entries. MGO */ -#ifdef IBM6000 /* If a trampoline symbol is found, we prefer to keep looking for the *real* symbol. If the actual symbol not found, then we'll use the trampoline entry. Sorry for the machine @@ -173,7 +173,7 @@ lookup_minimal_symbol (name, objf) } } } -#ifdef IBM6000 +#ifdef IBM6000_TARGET return found_symbol ? found_symbol : trampoline_symbol; #endif @@ -232,6 +232,7 @@ lookup_minimal_symbol_by_pc (pc) Warning: this code is trickier than it would appear at first. */ + /* Should also requires that pc is <= end of objfile. FIXME! */ if (pc >= msymbol[lo].address) { while (msymbol[hi].address > pc) |