* [U-Boot-Users] How to debug u-boot?
@ 2003-05-13 4:33 huasee
0 siblings, 0 replies; 5+ messages in thread
From: huasee @ 2003-05-13 4:33 UTC (permalink / raw)
To: u-boot
hi,
How to debug u-boot?Is it necessarily to use emluator e.g.BDI2000?
Can I use some software to debug (just as kgdb?)
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] How to debug u-boot?
@ 2008-06-06 2:13 Brian S. Park
2008-06-06 6:07 ` Alessandro Rubini
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Brian S. Park @ 2008-06-06 2:13 UTC (permalink / raw)
To: u-boot
Hi every one.
I need help with debugging u-boot. If I comple u-Boot without -Os
optimization, I get bunch of errors about missing functions. They are
inline functions (in_be32, out_be32, out_8, etc) and I'm not sure how
to make sure they are included when building the code without optimization.
I'm using ELDK4.1 for windows and u-Boot-1.3.3
Any help or pointers will be appreciated.
Thanks
Brian
===============================================================
Brian S. Park brian.park at corelis.com (562) 926-6727 x132
---------------------------------------------------------------
Everything we do helps our customers get to market
FASTER with HIGHER quality and LOWER cost
===============================================================
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] How to debug u-boot?
2008-06-06 2:13 [U-Boot-Users] How to debug u-boot? Brian S. Park
@ 2008-06-06 6:07 ` Alessandro Rubini
2008-06-06 16:34 ` Brian S. Park
2008-06-09 9:53 ` Detlev Zundel
2 siblings, 0 replies; 5+ messages in thread
From: Alessandro Rubini @ 2008-06-06 6:07 UTC (permalink / raw)
To: u-boot
> I need help with debugging u-boot. If I comple u-Boot without -Os
> optimization, I get bunch of errors about missing functions.
gcc docs say:
GCC does not inline any functions when not optimizing unless you
specify the `always_inline' attribute for the function, like this:
[...]
I'm sorry you can't strip the "-Os", and you should debug the final
binary, despite all the reordering that takes place.
/alessandro
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] How to debug u-boot?
2008-06-06 2:13 [U-Boot-Users] How to debug u-boot? Brian S. Park
2008-06-06 6:07 ` Alessandro Rubini
@ 2008-06-06 16:34 ` Brian S. Park
2008-06-09 9:53 ` Detlev Zundel
2 siblings, 0 replies; 5+ messages in thread
From: Brian S. Park @ 2008-06-06 16:34 UTC (permalink / raw)
To: u-boot
I'm sorry to send this the second time.
I missed the answer from Jerry Van Baren & Alessandro Rubini. I
thought I had problem subscribing to the list.
Thank you for the answer.
Brian
At 07:13 PM 6/5/2008, Brian S. Park wrote:
>Hi every one.
>I need help with debugging u-boot. If I comple u-Boot without -Os
>optimization, I get bunch of errors about missing functions. They are
>inline functions (in_be32, out_be32, out_8, etc) and I'm not sure how
>to make sure they are included when building the code without optimization.
>
>I'm using ELDK4.1 for windows and u-Boot-1.3.3
>
>Any help or pointers will be appreciated.
>
>Thanks
>
>Brian
>
>
>===============================================================
>Brian S. Park brian.park at corelis.com (562) 926-6727 x132
>---------------------------------------------------------------
>Everything we do helps our customers get to market
>FASTER with HIGHER quality and LOWER cost
>===============================================================
>
>
>-------------------------------------------------------------------------
>Check out the new SourceForge.net Marketplace.
>It's the best place to buy or sell services for
>just about anything Open Source.
>http://sourceforge.net/services/buy/index.php
>_______________________________________________
>U-Boot-Users mailing list
>U-Boot-Users at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/u-boot-users
===============================================================
Brian S. Park brian.park at corelis.com (562) 926-6727 x132
---------------------------------------------------------------
Everything we do helps our customers get to market
FASTER with HIGHER quality and LOWER cost
===============================================================
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] How to debug u-boot?
2008-06-06 2:13 [U-Boot-Users] How to debug u-boot? Brian S. Park
2008-06-06 6:07 ` Alessandro Rubini
2008-06-06 16:34 ` Brian S. Park
@ 2008-06-09 9:53 ` Detlev Zundel
2 siblings, 0 replies; 5+ messages in thread
From: Detlev Zundel @ 2008-06-09 9:53 UTC (permalink / raw)
To: u-boot
Hi Brian,
> Hi every one.
> I need help with debugging u-boot. If I comple u-Boot without -Os
> optimization, I get bunch of errors about missing functions. They are
> inline functions (in_be32, out_be32, out_8, etc) and I'm not sure how
> to make sure they are included when building the code without optimization.
>
> I'm using ELDK4.1 for windows and u-Boot-1.3.3
>
> Any help or pointers will be appreciated.
You have seen by now, that you cannot disable all optimization to
successfully build U-Boot (Linux is the same btw.). I still do wonder,
why you want to disable optimization for debugging. Is it because GCC
reorders some statements, so gdb seems to jump around in the source
lines?
If so, you can suppress the reordering as documented in our DULG[1]:
Add "-fno-schedule-insns -fno-schedule-insns2" to the CFLAGS for U-Boot.
Cheers
Detlev
[1] http://www.denx.de/wiki/view/DULG/DebuggingTricks
--
Those who do not understand Unix are condemned to reinvent it,
poorly.
- Henry Spencer, University of Toronto Unix hack
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-06-09 9:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-06 2:13 [U-Boot-Users] How to debug u-boot? Brian S. Park
2008-06-06 6:07 ` Alessandro Rubini
2008-06-06 16:34 ` Brian S. Park
2008-06-09 9:53 ` Detlev Zundel
-- strict thread matches above, loose matches on Subject: below --
2003-05-13 4:33 huasee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox