From: Jesper S. <js...@re...> - 2000-09-01 06:26:05
|
>>>>> "Greg" == Greg Banks <gb...@po...> writes: Greg> BTW when building a debugging kernel, has anyone tried Greg> removing the -fomit-frame-pointer flag from the compile? I Greg> believe this will enable gdb to show a kernel stack trace. The Greg> ARM port has a config variable, CONFIG_FRAME_POINTER, to do Greg> this. I have the below in my Makefile: # Strip -fomit-frame-pointer and add -g when compiling with GDB support ifeq ($(CONFIG_DEBUG_KERNEL_WITH_GDB_STUB),y) CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -O1 -g endif If built with -fomit-frame-pointer GDB crashes in a second when it tries to unwind the stack for its own clueless purposes. Jesper |