Differences
This shows you the differences between two versions of the page.
|
doc:devel:gdb [2012/11/08 12:36] jow add alternative approach to recompile package with debugging |
doc:devel:gdb [2012/11/08 12:38] (current) jow some more cleanups |
||
|---|---|---|---|
| Line 14: | Line 14: | ||
| ===== Add debugging to a package ===== | ===== Add debugging to a package ===== | ||
| - | Add CFLAGS to the package Makefile | + | Add CFLAGS to the package Makefile and recompile it. |
| | TARGET_CFLAGS += -ggdb3 | | | TARGET_CFLAGS += -ggdb3 | | ||
| Alternatively recompile the package with ''CONFIG_DEBUG'' set | Alternatively recompile the package with ''CONFIG_DEBUG'' set | ||
| | make package/busybox/{clean,compile} V=99 CONFIG_DEBUG=y | | | make package/busybox/{clean,compile} V=99 CONFIG_DEBUG=y | | ||
| - | |||
| - | ===== Compile ===== | ||
| - | Clean | ||
| - | | make dirclean | | ||
| - | and recompile | ||
| - | | make | | ||
| - | |||
| ===== Starting GNU Debugger ===== | ===== Starting GNU Debugger ===== | ||
doc/devel/gdb.1352374619.txt.bz2 · Last modified: 2012/11/08 12:36 by jow
