diff options
author | Pierre Muller <muller@sourceware.org> | 2002-07-16 07:42:25 +0000 |
---|---|---|
committer | Pierre Muller <muller@sourceware.org> | 2002-07-16 07:42:25 +0000 |
commit | 28a93f5a7a2e21f50151b293493c02efa26956ab (patch) | |
tree | 9fae68a3d695fc9a4aed2d17620bfa67570c5981 | |
parent | ba94744e3bc65b34908de8b953ade1e7f5ed002f (diff) | |
download | binutils-28a93f5a7a2e21f50151b293493c02efa26956ab.tar.gz binutils-28a93f5a7a2e21f50151b293493c02efa26956ab.tar.bz2 binutils-28a93f5a7a2e21f50151b293493c02efa26956ab.zip |
2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
* blockframe.c (get_pc_function_start): return 0 if the minimal symbol
found is not inside a section.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/blockframe.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 13a7b2bce0a..2fb74fefb62 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr> + + * blockframe.c (get_pc_function_start): return 0 if the minimal symbol + found is not inside a section. + 2002-07-15 Kevin Buettner <kevinb@redhat.com> * aix-thread.c (ptrace_check): Use safe_strerror() instead of diff --git a/gdb/blockframe.c b/gdb/blockframe.c index 8f95a891291..25bc0005673 100644 --- a/gdb/blockframe.c +++ b/gdb/blockframe.c @@ -632,6 +632,8 @@ get_pc_function_start (CORE_ADDR pc) else if ((msymbol = lookup_minimal_symbol_by_pc (pc)) != NULL) { fstart = SYMBOL_VALUE_ADDRESS (msymbol); + if (!find_pc_section (fstart)) + return 0; } else { |