Showing posts with label gdb. Show all posts
Showing posts with label gdb. Show all posts

Friday, 29 April 2016

gdb and python

Wow no posts since 2015...

I have been messing around in gdb running some python scripts in the embedded python interpreter.

One very useful tip I found was enabling the full python stack trace enabling me to debug the scripts I was running.

To do this use
set python print-stack full


Thursday, 26 September 2013

gdb not stepping into break point set on strcpy

I was messing around with gdb and some test programs and I set a breakpoint on a call to strcpy, when I ran the program it stepped right over this breakpoint.

Initially I had assumed that glibc had been stripped but this was not the case. Further investigation lead me onto this discussion, where it was suggested to compile with the gcc option -fno-builtin.

This appeared to solve my issue and now when running this code in gdb it does step into the breakpoint set for strcpy.