This is the mail archive of the gdb-patches@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]

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


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