[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Ltib] Re: GDB with a JTAG
From: |
Stuart Hughes |
Subject: |
Re: [Ltib] Re: GDB with a JTAG |
Date: |
Mon, 09 Aug 2010 20:01:52 +0100 |
User-agent: |
Thunderbird 2.0.0.16 (X11/20080707) |
Hi Charles,
You have to re-build your kernel after configuring it for debugging
(which adds -g to the CFLAGS). I've not tried this lately, but that
used to be the case.
Regards, Stuart
Charles Krinke wrote:
> Morning.
>
> In working through getting a BDI-2000 to step through the linux kernel
> with ddd/gdb, I've gotten to where I can do:
>
> $ ddd --debugger powerpc-e300c3-linux-gdb vmlinux
> (gdb) target remote bdi:2001
>
> At this point the source window for head_32.S is loaded by ddd *and* a
> "continue" lets the kernel boot.
>
> I have changed the source search path from the default to the linux
> kernel source within ltib, but when I try to open source from within
> ddd, I get the choice of only a couple of .S files, that is, head_32.S &
> entry_32.S.
>
> Can someone offer and idea so I can get to where I can step from the
> first C line in the kernel (or any C line), such as setup_arch()??
>
> Charles
>
> On Fri, Aug 6, 2010 at 6:20 PM, Peter Barada <address@hidden
> <mailto:address@hidden>> wrote:
>
> On Fri, 2010-08-06 at 16:16 -0700, Charles Krinke wrote:
>> All right. I compiled gdb and have a valid executable per the
>> application note, but, ... when I connect to the BDI with "target
>> remote bdi:2001", I get a connection refused or a timeout.
>
> IIRC, try "target remote bdi:3001", assuming "bdi" maps to the IP
> address of your BDI...
>
>
>> Would anyone have a suggestion at this point?
>>
>> Charles
>>
>> On Fri, Aug 6, 2010 at 3:51 PM, Charles Krinke
>> <address@hidden <mailto:address@hidden>> wrote:
>>
>> I am convinced there is some law of the universe that declares
>> "after krinke embarrasses himself in public, he will be
>> allowed to see the answer". So, after a little research, it
>> appears the answer is:
>>
>> "Read *http://www.ultsol.com/pdfs/ToolTalk_03-001.pdf *and the
>> recipe of cross compiling gdb and connecting to a BDI-2000 is
>> revealed."
>>
>> <sigh>
>>
>> Charles
>>
>>
>> _______________________________________________
>> LTIB home page: http://ltib.org
>>
>> Ltib mailing list
>> address@hidden <mailto:address@hidden>
>> http://lists.nongnu.org/mailman/listinfo/ltib
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> LTIB home page: http://ltib.org
>
> Ltib mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/ltib
- [Ltib] GDB with a JTAG, Charles Krinke, 2010/08/06
- [Ltib] GDB with a JTAG, Charles Krinke, 2010/08/06
- [Ltib] Re: GDB with a JTAG, Charles Krinke, 2010/08/06
- Re: [Ltib] Re: GDB with a JTAG, Peter Barada, 2010/08/06
- Re: [Ltib] Re: GDB with a JTAG, Charles Krinke, 2010/08/09
- Re: [Ltib] Re: GDB with a JTAG,
Stuart Hughes <=
- [Ltib] usb OTG with ltib, AUMONT Bastien (MORPHO), 2010/08/10
- Re: [Ltib] usb OTG with ltib, Stuart Hughes, 2010/08/10
- Re: [Ltib] usb OTG with ltib, Peter Barada, 2010/08/10