This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 5/7] Add a proxy unwinder.
>
> I'm curious why you approached it this way.
>
It seemed to me that it'll make writing a reader easier, turning
if (reg == RAX) {
/* Calculate and set RAX */
} else if (reg == RBX) {
/* Set `undefined' */
} /* ... and so on, for every register */
into
/* Calculate and set RAX */
/* Calculate and set RSP */
/* ... */
/* (No need to bother about the rest of the register file) */
--
Sanjoy Das
http://playingwithpointers.com