asdfasdfasdf
asdfasdfasdf

Reputation: 13

search a string/number in memory using gdb?

Say I have following integer int i = 18723849;

So is there any parameter in GDB that can help search memory to find above integer and it's memory location?

E.g: (gdb) find 18723849

Upvotes: 0

Views: 1528

Answers (1)

Employed Russian
Employed Russian

Reputation: 213754

So is there any parameter in GDB that can help search memory to find above integer

Yes, there is.

It's also the first hit for https://www.google.com/search?q=gdb+search+memory

Upvotes: 1

Related Questions