linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Problems with remote debugging on MBX860
@ 2001-09-19 16:04 Pedro Parrilla
  2001-09-19 16:32 ` Peter Desnoyers
  2001-09-20 14:28 ` Cal Erickson
  0 siblings, 2 replies; 3+ messages in thread
From: Pedro Parrilla @ 2001-09-19 16:04 UTC (permalink / raw)
  To: linuxppc-embedded


 Hello!

    I am debugging  a remote target (Hard Hat Linux on a MBX860) from my

host (Red Hat Linux 7.0 on x86 PC) with ppc_8xx_gdb(cross-dev). I got to
connect both with
'target extended-remote' directive in the host, and with gdbserver in
the target, gdb can do STEP,RUN...and the like, but I can't see the
variables values. If I try to print any local variable GDB response is
'incomplete type'. I've compiled with ppc_8xx-gcc and the 'g' option and
I've  loaded the program in GDB with file 'program'...I don't Know what
more I should do...Any bad
configuration?

 Thanks.


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problems with remote debugging on MBX860
  2001-09-19 16:04 Problems with remote debugging on MBX860 Pedro Parrilla
@ 2001-09-19 16:32 ` Peter Desnoyers
  2001-09-20 14:28 ` Cal Erickson
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Desnoyers @ 2001-09-19 16:32 UTC (permalink / raw)
  To: Pedro Parrilla; +Cc: linuxppc-embedded


I've had luck with 'target remote /dev/<xxx>' instead of
extended-remote.  The following mod to the top-level Makefile helps,
too:

! CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -O2
-fno-strict-aliasing
! ifdef CONFIG_KGDB
! CFLAGS += -g -ggdb
! else
! CFLAGS += -fomit-frame-pointer
! endif

In addition, whenever I enabled kgdb I was getting an oops in
rs_8xx_interrupt sometime during boot due to info->tty being NULL - I
added a check for that and a return, and things seem to be fine.

--
.....................................................................
 Peter Desnoyers            (781) 457-1165   pdesnoyers@chinook.com
 Chinook Communications     (617) 661-1979   pjd@fred.cambridge.ma.us
 100 Hayden Ave, Lexington MA 02421

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problems with remote debugging on MBX860
  2001-09-19 16:04 Problems with remote debugging on MBX860 Pedro Parrilla
  2001-09-19 16:32 ` Peter Desnoyers
@ 2001-09-20 14:28 ` Cal Erickson
  1 sibling, 0 replies; 3+ messages in thread
From: Cal Erickson @ 2001-09-20 14:28 UTC (permalink / raw)
  To: Pedro Parrilla; +Cc: linuxppc-embedded


Pedro,
All  you need to add is the -ggdb option after the -g in your build of
your application. This option provides gdb with more information
about local variables that -g cannot. Everything else should be fine.
If you were going to debug a kernel using gdb you would not be
using gdbserver.

Cal Erickson
Pedro Parrilla wrote:

>  Hello!
>
>     I am debugging  a remote target (Hard Hat Linux on a MBX860) from my
>
> host (Red Hat Linux 7.0 on x86 PC) with ppc_8xx_gdb(cross-dev). I got to
> connect both with
> 'target extended-remote' directive in the host, and with gdbserver in
> the target, gdb can do STEP,RUN...and the like, but I can't see the
> variables values. If I try to print any local variable GDB response is
> 'incomplete type'. I've compiled with ppc_8xx-gcc and the 'g' option and
> I've  loaded the program in GDB with file 'program'...I don't Know what
> more I should do...Any bad
> configuration?
>
>  Thanks.
>

--
===========================================================================
Cal Erickson                 MontaVista Software Inc.
Linux Consultant             1237 E. Arques Ave.
Phone (408) 328-0304         Sunnyvale CA 94085
Fax   (408) 328-9204         web http://www.mvista.com
===========================================================================


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-09-20 14:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-19 16:04 Problems with remote debugging on MBX860 Pedro Parrilla
2001-09-19 16:32 ` Peter Desnoyers
2001-09-20 14:28 ` Cal Erickson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).