hugsy / gef-extras

Extra goodies for GEF to (try to) make GDB suck even less
https://hugsy.github.io/gef-extras
MIT License
148 stars 50 forks source link

Fix: stack-view command Stack bounds retrieval when in frame 0 #67

Closed noahboegli closed 2 years ago

noahboegli commented 2 years ago

As per described in #66, allows the stack-view command to retrieve stack bounds (especially the HI bound) when the stack frame level is 0 and Frame.older() returns None.

I have compared the result with peda on a colleague's GDB and the results seem to be the same in terms of using the correct boundaries.

Note that this does not change the behavior in case Frame.older() does not return None or when the stack level is not 0 (in that case the error will still be handled)

I do not know which branch should be used as base, GitHub picked dev as default.