Thread (3 messages) flat view 3 messages, 3 authors, 2002-11-18

Re: gdbserver and gdb cross debug?

From: William A. Gatliff <hidden>
Date: 2002-11-15 19:48:22

Jikun:

On Mon, Nov 11, 2002 at 03:39:07PM +0800, sjk wrote:
I am porting Linux on EP405 board. So I use gdbserver and gdb to debug
applications,but only the first
breakpoint could be stopped.Then if i press 'step', the program will
execute to end straightforwardly . Any other breakpoints could not break
the execution.
Have you compiled the application in question with optimizations?  Gdb
isn't so good at debugging optimized code.  Compile with -g -O0 if you
intend to debug.

b.g.
--
Bill Gatliff
Do you do embedded GNU?  I do!
See http://billgatliff.com for details.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help