[uClinux-dev] GDB enabled Make
philwil at earthlink.net
Fri Mar 7 07:55:56 EST 2003
I tend not to depend on debuggers fro these sort of problems.
I isolate the test case and use flashing leds or serial port output to see what I am doing.
You can also use the technique of putting numbers into locations or even using a memory buffer to
drop printk data into.
I agree that sometimes this may take longet than using a proper debugger.
Lets see wht the others say.
Santosh Bhat wrote:
> Hi Phil , I am using the Jtag , abatron to debug the code.Now the problem
> what i am facing is to debug the assembly files. Since I have not included
> the enable-debug option in the make config(which increase the size to 14-15
> mb) , i am just able to get the object dump and I'll have to execute from
> that.I am debugging the entry-armv.S .
> I wanted to know is there any way , through which I can enable the debug
> option for few related files , so taht i'll be able to debug along with the
> code , than just debugging the dumped code.
> How is the debugging of thease codes done by you and others any tip faqs on
> this ??
> Any help pointer on this is appreciated.
> Thanx in advance for the help.
> ----- Original Message -----
> From: "Phil Wilshire" <philwil at earthlink.net>
> To: <uclinux-dev at uclinux.org>
> Sent: Thursday, March 06, 2003 9:21 PM
> Subject: Re: [uClinux-dev] GDB enabled Make
> > Hi Santosh,
> > I am not sure how you are downloading to the target system but
> > The inclusion of the debug information in the output file does not mean
> > the actual system you load to the target system is the same size.
> > The same goes for the user apps. The .gdb or .elf files may be larget but
> > flat files are the same size.
> > use arm-elf-objdump -h linux
> > typical results shown
> > Sections:
> > Idx Name Size VMA LMA File off Algn
> > 0 .init 0000a000 01000000 01000000 00008000 2**5
> > CONTENTS, ALLOC, LOAD, CODE
> > 1 .text 0023a2c8 0100a000 0100a000 00012000 2**5
> > CONTENTS, ALLOC, LOAD, READONLY, CODE
> > 2 .data 0000964c 01246000 01246000 0024e000 2**5
> > CONTENTS, ALLOC, LOAD, DATA
> > 3 .bss 00022350 0124f660 0124f660 00257660 2**5
> > ALLOC
> > regards
> > Phil Wilshire
> > Santosh Bhat wrote:
> > >
> > > Hi List ,
> > > I am trying to debug the ARM7 core . I have a 8 mb ram . when I compile
> > > code with debug enabled (without any applications ) it is coming up to
> > > mb of which i will not be able to download in to my RAM . Is there any
> way ,
> > > selectively I can choose the files of which i want to debug , enable
> > > those with -g so that I'll be able to debug from the source ???
> > > If yes which are the dependencies/Make files i will have to examine ??
> > >
> > > Any help/pointer on this is appreciated.
> > > Regards
> > > Santosh Bhat
> > >
> > > _______________________________________________
> > > uClinux-dev mailing list
> > > uClinux-dev at uclinux.org
> > > http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> > > This message was resent by uclinux-dev at uclinux.org
> > --
> > SDCS -- System Design & Consulting Services LLC, http://www.sysdcs.com
> > ** Embedded Linux Training ** email me for details
> > 630 Springhouse Sq., Leesburg VA 20175 t: 703 669 9766 f: 703 669 9768
> > _______________________________________________
> > uClinux-dev mailing list
> > uClinux-dev at uclinux.org
> > http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> > This message was resent by uclinux-dev at uclinux.org
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> This message was resent by uclinux-dev at uclinux.org
SDCS -- System Design & Consulting Services LLC, http://www.sysdcs.com
** Embedded Linux Training ** email me for details
630 Springhouse Sq., Leesburg VA 20175 t: 703 669 9766 f: 703 669 9768
More information about the uClinux-dev