aboutsummaryrefslogtreecommitdiff
path: root/gdb/amd64-tdep.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2009-11-05 21:17:00 +0000
committerDoug Evans <dje@google.com>2009-11-05 21:17:00 +0000
commitbba66b87eff7244120daed405cf524916e1652a4 (patch)
tree270b8216c8b9dd8503dbe4da10ed20cf76c059bf /gdb/amd64-tdep.c
parent52efb61a1cc2775bbc56266db0e1749fba7ae449 (diff)
downloadgdb-bba66b87eff7244120daed405cf524916e1652a4.zip
gdb-bba66b87eff7244120daed405cf524916e1652a4.tar.gz
gdb-bba66b87eff7244120daed405cf524916e1652a4.tar.bz2
* amd64-tdep.c (amd64_init_frame_cache): Enhance comment describing
saved_regs.
Diffstat (limited to 'gdb/amd64-tdep.c')
-rw-r--r--gdb/amd64-tdep.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c
index 51560cf..b47c4c3 100644
--- a/gdb/amd64-tdep.c
+++ b/gdb/amd64-tdep.c
@@ -1402,7 +1402,10 @@ amd64_init_frame_cache (struct amd64_frame_cache *cache)
cache->pc = 0;
/* Saved registers. We initialize these to -1 since zero is a valid
- offset (that's where %rbp is supposed to be stored). */
+ offset (that's where %rbp is supposed to be stored).
+ The values start out as being offsets, and are later converted to
+ addresses (at which point -1 is interpreted as an address, still meaning
+ "invalid"). */
for (i = 0; i < AMD64_NUM_SAVED_REGS; i++)
cache->saved_regs[i] = -1;
cache->saved_sp = 0;