Remote debug

  1. Create a simple shared library with the following code:
void f3()

void f2()
	int i;

void f1()
printf("hello \n");

2. create a simple application to use the above library (call f1)

3. compile the code for arm (using arm-none-linux-gnueabi-gcc)

4. debug the code:

  • break on main
  • break on f3
  • run stacktarce
  • print registers info

5. add init code to the library

6. debug the init code:

  • create a .gdbinit file to make your work easier
  • declare solib gdb variables