* [U-Boot-Users] Compiling a debug version of U-boot
@ 2005-05-23 15:30 Armand Ciejak
2005-05-23 15:48 ` Wolfgang Denk
0 siblings, 1 reply; 2+ messages in thread
From: Armand Ciejak @ 2005-05-23 15:30 UTC (permalink / raw)
To: u-boot
What should I do to build a debug version of U-boot.
I currently add ?#define DEBUG? to the u-boot_1.1.2/include/configs/board_name.h file.
Is it the right method?
I building U-boot for a custom board derived from the MPC8540ADS, and when I start gdb I
get a strange warning. If someone has any idea it would help!
linuxcompiler:~/u-boot/u-boot_1.1.2$ ppc-linux-gdb u-boot
Warning: Cannot initialize solib-absolute-prefix
GNU gdb Yellow Dog Linux (5.2.1-4b_8)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i386-redhat-linux --target=ppc-linux"...
0xfffffffc in ?? ()
(gdb)
Thanks
Armand
Environment:
- ELDK3.1 (gcc and gdb)
- CROSS_COMPILE = ppc_6xx-
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot-Users] Compiling a debug version of U-boot
2005-05-23 15:30 [U-Boot-Users] Compiling a debug version of U-boot Armand Ciejak
@ 2005-05-23 15:48 ` Wolfgang Denk
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2005-05-23 15:48 UTC (permalink / raw)
To: u-boot
In message <d6ssmd$ea9$1@sea.gmane.org> you wrote:
> What should I do to build a debug version of U-boot.
> I currently add ?#define DEBUG? to the u-boot_1.1.2/include/configs/board_name.h file.
> Is it the right method?
Normally you would just enable "-DDEBUG" in "config.mk"; in some
cases you may also have to select a debug version of the linker
script (see the LDSCRIPT definition). However, this enables DEBUG
globally, which usually is NOT a good idea. It may even crash your
system if you don't know exactly what you're doing.
It's usually better to just enable DEBUG in the specific files you're
interested in.
> I building U-boot for a custom board derived from the MPC8540ADS, and when I start gdb I
> get a strange warning. If someone has any idea it would help!
>
> linuxcompiler:~/u-boot/u-boot_1.1.2$ ppc-linux-gdb u-boot
> Warning: Cannot initialize solib-absolute-prefix
> GNU gdb Yellow Dog Linux (5.2.1-4b_8)
> Copyright 2002 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for details.
> This GDB was configured as "--host=i386-redhat-linux --target=ppc-linux"...
> 0xfffffffc in ?? ()
> (gdb)
And which of that is a strange warning?
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Q: What do you get when you cross an ethernet with an income statement?
A: A local area networth.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-05-23 15:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-23 15:30 [U-Boot-Users] Compiling a debug version of U-boot Armand Ciejak
2005-05-23 15:48 ` Wolfgang Denk
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.