Hi,

> We are unable to debug the OpenWRT image through GDB from a host
> system. When we try to debug, we are seeing the following error
> messages on the GDB screen. We are running the GDB from Cygwin on a
> Windows XP system.
Please use cross-compiled version of gdb - the one build by OpenWRT.

> Shall we need to be changed CFLAGS in any Makefile for including the -g 
> option?
Propably, or modify global CFLAGS setting in OpenWRT. By default all
programs are build without debug info (and can be stripped, but I am
not sure about this at the moment).

> Any suggestions / ideas / links would be appreciated and help us a lot
My own point of view: usually it is better to use printf() instead of
gdb and printk() instead of kgdb.

-- 
Pozdrawiam,
Sławomir Cygan
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to