aboutsummaryrefslogtreecommitdiff
path: root/gdb/blockframe.c
diff options
context:
space:
mode:
authorgdb-3.4 <gdb@fsf.org>1989-11-05 21:02:37 +0000
committerPedro Alves <palves@redhat.com>2012-06-03 15:36:32 +0100
commit1c997a4ae86938343edb715efc3fc742c5f668fe (patch)
tree9e3c70728a3987732436b7fa4b4cfef433a0669a /gdb/blockframe.c
parent4187119d59afd156703cfcbc6be287c5085f1867 (diff)
downloadfsf-binutils-gdb-1c997a4ae86938343edb715efc3fc742c5f668fe.zip
fsf-binutils-gdb-1c997a4ae86938343edb715efc3fc742c5f668fe.tar.gz
fsf-binutils-gdb-1c997a4ae86938343edb715efc3fc742c5f668fe.tar.bz2
gdb-3.4
Diffstat (limited to 'gdb/blockframe.c')
-rw-r--r--gdb/blockframe.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/gdb/blockframe.c b/gdb/blockframe.c
index 3ea5919..2817017 100644
--- a/gdb/blockframe.c
+++ b/gdb/blockframe.c
@@ -431,7 +431,15 @@ find_pc_function (pc)
/* Finds the "function" (text symbol) that is smaller than PC
but greatest of all of the potential text symbols. Sets
*NAME and/or *ADDRESS conditionally if that pointer is non-zero.
- Returns 0 if it couldn't find anything, 1 if it did. */
+ Returns 0 if it couldn't find anything, 1 if it did.
+
+ Note that there are several possible responses:
+ * Set *NAME and *ADDRESS to nonzero values and return 0
+ * Set *NAME and *ADDRESS to zero and return 0
+ * Don't set *NAME and *ADDRESS and return 1
+ (I don't know whether it *should* work this way, but I'd rather
+ document it than risk breaking code
+ which depends on this behavior). */
int
find_pc_partial_function (pc, name, address)