Re: Need help with stack smash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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.

Indeed.  Usually the convenient thing to do is:

(gdb) p &foo->bar
$22 = (int *) 0x12345
(gdb) watch *$22


-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux