1

into GDB python I tried gdb.Breakpoint('0xaaaa')

I got error

Function 0xaaaa is not defided . Breakpoint 5(0xaaaa) pending

and the program not break at this address.

Why is that?

1 Answer 1

1

You just need to prefix the address with a '*', like when using break.

For example:

(gdb) python
>gdb.Breakpoint('*0x080487ff')
>end
Breakpoint 1 at 0x80487ff
(gdb)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.