boast
June 11th, 2011, 05:05 PM
My goal is to set a breakpoint where a string is accessed in memory.
I did
strings -ao -t x bin_file and I found the string I was looking for, and it was at (I assume it is a relative address offset) 0x2ae59.
But when I run the application in gdb, the addresses seem to be direct, like 0x7fff84fcd2a4.
How do I go about setting an awatch for that ASCII string? I could not find how to search for strings within gdb.
thanks.
I did
strings -ao -t x bin_file and I found the string I was looking for, and it was at (I assume it is a relative address offset) 0x2ae59.
But when I run the application in gdb, the addresses seem to be direct, like 0x7fff84fcd2a4.
How do I go about setting an awatch for that ASCII string? I could not find how to search for strings within gdb.
thanks.