This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
questions on amd64-tdep.c sigtramp handling
- From: dje at google dot com (Doug Evans)
- To: gdb at sourceware dot org
- Date: Tue, 20 Oct 2009 12:33:18 -0700 (PDT)
- Subject: questions on amd64-tdep.c sigtramp handling
Hi.
Why does amd64-tdep.c:amd64_sigtramp_frame_cache subtract 8 here?
get_frame_register (this_frame, AMD64_RSP_REGNUM, buf);
cache->base = extract_unsigned_integer (buf, 8, byte_order) - 8;
And why does amd64_sigtramp_frame_this_id add 16 here?
(*this_id) = frame_id_build (cache->base + 16, get_frame_pc (this_frame));