aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Taylor <taylor@redhat.com>2001-03-08 20:51:38 +0000
committerDavid Taylor <taylor@redhat.com>2001-03-08 20:51:38 +0000
commit24285e3a2ba6cdd4fa9012cd7cb359e18797864c (patch)
tree3025ecfd3f852e6763921f41d4d5de67db6b509c
parentec9a34493d40b2ad20dbfad56ea5ac45078fa749 (diff)
downloadgdb-24285e3a2ba6cdd4fa9012cd7cb359e18797864c.zip
gdb-24285e3a2ba6cdd4fa9012cd7cb359e18797864c.tar.gz
gdb-24285e3a2ba6cdd4fa9012cd7cb359e18797864c.tar.bz2
Add comment (part of immediately previous commit).
-rw-r--r--gdb/stack.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/stack.c b/gdb/stack.c
index 95ecdee4..77b7602 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -728,6 +728,11 @@ parse_frame_specification (char *frame_exp)
tmp_cleanup = make_cleanup (xfree, addr_string);
+ /* NOTE: we call parse_and_eval and then both
+ value_as_long and value_as_pointer rather than calling
+ parse_and_eval_long and parse_and_eval_address because
+ of the issue of potential side effects from evaluating
+ the expression. */
vp = parse_and_eval (addr_string);
if (numargs == 0)
level = value_as_long (vp);