In The Debugging World: - Kiran Divekar
In The Debugging World: - Kiran Divekar
- Kiran Divekar
Agenda
● Hello world
● System calls ( strace )
● gdb internals
● gdb helpers
● Embedded debugging
● Kernel debugging
Hello World
How debugger works
JTAG
PORT
Host OS Target OS
JTAG SYSCALL
SYSCALL
Daemon
GDB
Gdbserver
Code
Daemon
Code Source
GCC
KGDB
KDB
Stub
How Debugger works
How Debugger works
System call trace
gdb internals
gdb commands
gdb commands
Info macros
Macro expand
Info signals
Handle singal SIGINT noignore
Thread i, thread apply all where
gdb macros
gdb commands
define connect
Target remote 192.168.1.13:4321
b panic
b sys_sync
end
Embedded Debugging
Embedded Debugging
To configure: -
./configure --host=arm-linux
--build = build machine
--target = compiling a cross compiler
make CC=<cross-compiler>
Kernel Debugging
Thank You...