On Thu, 2009-08-27 at 12:36 -0600, Orion Poplawski wrote: > I'm trying to debug a stack smash in of the hdf test programs but am > having a hard time tracking down exactly where the smash happens. Is > there any way to watch the guard variable with gdb to find exactly when > it happens? Something similar? (gdb) help watch Set a watchpoint for an expression. A watchpoint stops execution of your program whenever the value of an expression changes. Note that this means what it says: if your expression contains a symbol that goes out of scope before the change happens, then the watchpoint will be forgotten, because the value of the expression will change from being a value to being not-a-thing. So you would need to set the watch on the address in memory of what you're trying to watch, and not necessarily on its symbolic name. - ajax
Attachment:
signature.asc
Description: This is a digitally signed message part
-- fedora-devel-list mailing list fedora-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-devel-list