This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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));


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]