On 07/11/17 15:58, Marc-André Lureau wrote: >>> How do you access a static inside a function? Gdb can look it up but >>> complains that it's not in current context. >>> >> >> According to <https://sourceware.org/gdb/onlinedocs/gdb/Variables.html>, >> the magic incantation is >> >> function::variable >> > > Thanks that works! I'll update the patch
Great! > >> If this doesn't work (in case the realize function isn't on the stack at >> all), then I agree the variable should be made file scope. >> > > Why would it matter if realize is on the stack? It's likely not :) I agree the realize function will likely not be on the stack, and I also agree that it should not matter. However, the gdb docs seemed a bit unclear to me regarding this, so I wasn't 100% sure without trying. Thanks Laszlo