aboutsummaryrefslogtreecommitdiff
path: root/gdb/a29k-tdep.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-01-28 22:42:31 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-01-28 22:42:31 +0000
commit7f2ffa58eb6bed47886cb99165f0016293d00f65 (patch)
tree29fdf90a6155474b1f73225aed58abd7295a8a55 /gdb/a29k-tdep.c
parent796d1fd3fb276bcfab2a10eecc7da4b1c753a7dd (diff)
downloadgdb-7f2ffa58eb6bed47886cb99165f0016293d00f65.zip
gdb-7f2ffa58eb6bed47886cb99165f0016293d00f65.tar.gz
gdb-7f2ffa58eb6bed47886cb99165f0016293d00f65.tar.bz2
* a29k-tdep.c (examine_tag): Add comment regarding argcount.
Diffstat (limited to 'gdb/a29k-tdep.c')
-rw-r--r--gdb/a29k-tdep.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/a29k-tdep.c b/gdb/a29k-tdep.c
index 7d02b8b..04d1fd2 100644
--- a/gdb/a29k-tdep.c
+++ b/gdb/a29k-tdep.c
@@ -362,7 +362,11 @@ examine_tag(p, is_trans, argcount, msize, mfp_used)
*msize = tag1 & 0x7ff;
}
if (is_trans)
- *is_trans = ((tag1 & (1<<21)) ? 1 : 0);
+ *is_trans = ((tag1 & (1<<21)) ? 1 : 0);
+ /* Note that this includes the frame pointer and the return address
+ register, so the actual number of registers of arguments is two less.
+ argcount can be zero, however, sometimes, for strange assembler
+ routines. */
if (argcount)
*argcount = (tag1 >> 16) & 0x1f;
if (mfp_used)