- Create a simple shared library with the following code:
void f3()
{
printf("X");
}
void f2()
{
int i;
for(i=0;i<100;i++)
f3();
}
void f1()
{
f2();
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