* [U-Boot-Users] debugging relocated code
@ 2004-05-25 18:27 Stuart Yoder
2004-05-25 18:49 ` Ho Lee
2004-05-25 19:26 ` Wolfgang Denk
0 siblings, 2 replies; 14+ messages in thread
From: Stuart Yoder @ 2004-05-25 18:27 UTC (permalink / raw)
To: u-boot
What is typically done to debug relocated code with gdb? For example,
u-boot is linked at 0xFFF0000, but then relocates itself to 0x0FF03000.
The debug symbols all reference the linked location. After the
relocation occurs gdb is lost as far as symbolic information goes.
Am I supposed to link the code to the place I know it will end up after
relocation?
Anyone know of a way in gdb to relocate all the symbols?
Thanks,
Stuart Yoder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20040525/134811b6/attachment.htm
^ permalink raw reply [flat|nested] 14+ messages in thread
* [U-Boot-Users] debugging relocated code
2004-05-25 18:27 [U-Boot-Users] debugging relocated code Stuart Yoder
@ 2004-05-25 18:49 ` Ho Lee
2004-05-25 19:26 ` Wolfgang Denk
1 sibling, 0 replies; 14+ messages in thread
From: Ho Lee @ 2004-05-25 18:49 UTC (permalink / raw)
To: u-boot
Message
Hi Stuart,
Try the 'add-symbol-file' command. It relocates symbols to specified address.
In your case, you can relocate symbols by following commands.
gdb> add-symbol-file u-boot 0x0ff03000
gdb> file u-boot
You may find more information in gdb manual.
Sincerely,
Ho
----- Original Message -----
From: Stuart Yoder
To: u-boot-users at lists.sourceforge.net
Sent: Tuesday, May 25, 2004 11:27 AM
Subject: [U-Boot-Users] debugging relocated code
What is typically done to debug relocated code with gdb? For example, u-boot is linked at 0xFFF0000, but then relocates itself to
0x0FF03000. The debug symbols all reference the linked location. After the relocation occurs gdb is lost as far as symbolic
information goes.
Am I supposed to link the code to the place I know it will end up after relocation?
Anyone know of a way in gdb to relocate all the symbols?
Thanks,
Stuart Yoder
^ permalink raw reply [flat|nested] 14+ messages in thread
* [U-Boot-Users] debugging relocated code
@ 2004-05-25 18:58 Kerl, John
2004-05-25 19:29 ` Wolfgang Denk
0 siblings, 1 reply; 14+ messages in thread
From: Kerl, John @ 2004-05-25 18:58 UTC (permalink / raw)
To: u-boot
Herm, could you use ppc-linux-objcopy with --adjust-vma, then point GDB at that modified executable?
-----Original Message-----
From: u-boot-users-admin@lists.sourceforge.net [mailto:u-boot-users-admin at lists.sourceforge.net]On Behalf Of Stuart Yoder
Sent: Tuesday, May 25, 2004 11:28 AM
To: u-boot-users at lists.sourceforge.net
Subject: [U-Boot-Users] debugging relocated code
What is typically done to debug relocated code with gdb? For example, u-boot is linked at 0xFFF0000, but then relocates itself to 0x0FF03000. The debug symbols all reference the linked location. After the relocation occurs gdb is lost as far as symbolic information goes.
Am I supposed to link the code to the place I know it will end up after relocation?
Anyone know of a way in gdb to relocate all the symbols?
Thanks,
Stuart Yoder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20040525/2af460aa/attachment.htm
^ permalink raw reply [flat|nested] 14+ messages in thread
* [U-Boot-Users] debugging relocated code
2004-05-25 18:27 [U-Boot-Users] debugging relocated code Stuart Yoder
2004-05-25 18:49 ` Ho Lee
@ 2004-05-25 19:26 ` Wolfgang Denk
1 sibling, 0 replies; 14+ messages in thread
From: Wolfgang Denk @ 2004-05-25 19:26 UTC (permalink / raw)
To: u-boot
In message <001601c44286$0328e880$2900a8c0@foundation> you wrote:
>
> What is typically done to debug relocated code with gdb? For example,
This requires a two-pass sort of solution. In the first pass, read
the FAQ.
> Anyone know of a way in gdb to relocate all the symbols?
Sure. See http://www.denx.de/twiki/bin/view/DULG/WrongDebugSymbolsAfterRelocation
> ------=_NextPart_000_0017_01C4425C.1A52E080
> Content-Type: text/html;
> charset="us-ascii"
> Content-Transfer-Encoding: quoted-printable
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
And never, never post HTML to this list, please!
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
Is not that the nature of men and women -- that the pleasure is in
the learning of each other?
-- Natira, the High Priestess of Yonada, "For the World is
Hollow and I Have Touched the Sky", stardate 5476.3.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [U-Boot-Users] debugging relocated code
2004-05-25 18:58 Kerl, John
@ 2004-05-25 19:29 ` Wolfgang Denk
0 siblings, 0 replies; 14+ messages in thread
From: Wolfgang Denk @ 2004-05-25 19:29 UTC (permalink / raw)
To: u-boot
In message <E8E581FE5C58614B85A22AF2A495C64909E38D@uschd00mx11usr.AVNET.COM> you wrote:
>
> Herm, could you use ppc-linux-objcopy with --adjust-vma, then point GDB =
> at that modified executable?
No, this will not do any good.
> ------_=_NextPart_001_01C4428A.3D5570E0
> Content-Type: text/html;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Grrrrghhh....
If this continues like that, I will really try to find out how to
configure the mailing list to reject all HTML messages.
Please DON'T send HTML!
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
For every complex problem, there is a solution that is simple, neat,
and wrong. - Mark Twain
^ permalink raw reply [flat|nested] 14+ messages in thread
* [U-Boot-Users] debugging relocated code
@ 2004-05-25 19:35 Kerl, John
2004-05-25 21:47 ` Wolfgang Denk
0 siblings, 1 reply; 14+ messages in thread
From: Kerl, John @ 2004-05-25 19:35 UTC (permalink / raw)
To: u-boot
Wolfgang, you live in an imperfect world. I understand you are
apoplectic. But please understand the rest of us are merely human.
I have configured my mailer to send plain-text message in every way
I know how. If I knew any other flag to set in my mailer, I would
set it. My employer gives me no choice re which mail tool I use.
If anyone out there has any advice re whether M$ Outlook has a hidden,
second, really-send-plain-text flag (other than Format -> Plain text
which I have already set), I'd love to hear about it.
Thanks.
-----Original Message-----
From: wd@denx.de [mailto:wd at denx.de]
Sent: Tuesday, May 25, 2004 12:30 PM
To: Kerl, John
Cc: Stuart Yoder; u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] debugging relocated code
In message <E8E581FE5C58614B85A22AF2A495C64909E38D@uschd00mx11usr.AVNET.COM> you wrote:
>
> Herm, could you use ppc-linux-objcopy with --adjust-vma, then point GDB =
> at that modified executable?
No, this will not do any good.
> ------_=_NextPart_001_01C4428A.3D5570E0
> Content-Type: text/html;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Grrrrghhh....
If this continues like that, I will really try to find out how to
configure the mailing list to reject all HTML messages.
Please DON'T send HTML!
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
For every complex problem, there is a solution that is simple, neat,
and wrong. - Mark Twain
^ permalink raw reply [flat|nested] 14+ messages in thread
* [U-Boot-Users] debugging relocated code
@ 2004-05-25 19:48 Woodruff, Richard
0 siblings, 0 replies; 14+ messages in thread
From: Woodruff, Richard @ 2004-05-25 19:48 UTC (permalink / raw)
To: u-boot
You should be setting it from the main window, not a subsequent one:
Tools->options->[mail format tab] set the compose this message format to
plain text.
The preferences tab from tools->options allow you to set reply styling.
By setting the global you should find that most of your mails end up
correctly....that is not to say every now and thing something strange
doesn't happen. But its more on the order of several months, instead of
every few days.
Regards,
Richard W.
> -----Original Message-----
> From: u-boot-users-admin at lists.sourceforge.net [mailto:u-boot-users-
> admin at lists.sourceforge.net] On Behalf Of Kerl, John
> Sent: Tuesday, May 25, 2004 2:35 PM
> To: wd at denx.de
> Cc: Stuart Yoder; u-boot-users at lists.sourceforge.net
> Subject: RE: [U-Boot-Users] debugging relocated code
>
> Wolfgang, you live in an imperfect world. I understand you are
> apoplectic. But please understand the rest of us are merely human.
> I have configured my mailer to send plain-text message in every way
> I know how. If I knew any other flag to set in my mailer, I would
> set it. My employer gives me no choice re which mail tool I use.
>
> If anyone out there has any advice re whether M$ Outlook has a hidden,
> second, really-send-plain-text flag (other than Format -> Plain text
> which I have already set), I'd love to hear about it.
>
> Thanks.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [U-Boot-Users] debugging relocated code
@ 2004-05-25 19:55 Kerl, John
0 siblings, 0 replies; 14+ messages in thread
From: Kerl, John @ 2004-05-25 19:55 UTC (permalink / raw)
To: u-boot
OK, thanks. I should have clarified. What I've been doing for
months (or years) now is that I've set Tools -> Options -> Mail
Format -> Plain Text. As a result, whenever I send a message,
if I go up to the Format menu, I see that Plain Text is already
set (because of what I did in Tools -> Options).
So, the per-message menu has Plain Text checked; all the mails
I send and receive in this tool appear as plain text; and thirdly,
when I send messages to other accounts (e.g. my academic or home
account) they appear that as nothing more than plain text. So
it baffles me how it is that Wolfgang could be receiving HTML from
me.
For example, I sent a message to my academic account with nothing more
than the single word "test" in the message body. Here is the message
as received at my academic account:
^ permalink raw reply [flat|nested] 14+ messages in thread
* [U-Boot-Users] debugging relocated code
@ 2004-05-25 20:08 Kerl, John
2004-05-25 21:54 ` Wolfgang Denk
0 siblings, 1 reply; 14+ messages in thread
From: Kerl, John @ 2004-05-25 20:08 UTC (permalink / raw)
To: u-boot
All,
Travis has the explanation: the problem happened when an HTML message was
posted to the list, and I (naively! foolishly!) replied to it. Although
my mailer *is* configured for plain text (including this message), by my
replying to a message with HTML content, Outlook overrode my stated preference
and chose to format the response as HTML. (HTML e-mail is contagiuous unless
we take prophylactic measures!)
Nonetheless I am to be faulted for not having re-set the flag back to plain
text. Just a caveat to all the other Outlook users out there. Wolfgang
has done great services to the embedded, Linux and U-Boot communities, and
if HTML e-mail raises his blood pressure to the point where he has a heart
attack, stroke, aneurysm or other fatal calamity, the world would be an
emptier place. :)
-----Original Message-----
From: Travis Sawyer [mailto:tsawyer+u-boot at sandburst.com]
Sent: Tuesday, May 25, 2004 1:02 PM
To: Kerl, John
Subject: RE: [U-Boot-Users] debugging relocated code
John:
The problem is that the 1st message was HTML... outlook keeps the
format.
If replying to an html message, and you want plain text you have to set
it per email.
General settings are overridden by the format of the original email.
(BTDT, but at least I'm M$ free here at work now ;)
-travis
On Tue, 2004-05-25 at 15:35, Kerl, John wrote:
> Wolfgang, you live in an imperfect world. I understand you are
> apoplectic. But please understand the rest of us are merely human.
> I have configured my mailer to send plain-text message in every way
> I know how. If I knew any other flag to set in my mailer, I would
> set it. My employer gives me no choice re which mail tool I use.
>
> If anyone out there has any advice re whether M$ Outlook has a hidden,
> second, really-send-plain-text flag (other than Format -> Plain text
> which I have already set), I'd love to hear about it.
>
> Thanks.
>
>
>
> -----Original Message-----
> From: wd at denx.de [mailto:wd at denx.de]
> Sent: Tuesday, May 25, 2004 12:30 PM
> To: Kerl, John
> Cc: Stuart Yoder; u-boot-users at lists.sourceforge.net
> Subject: Re: [U-Boot-Users] debugging relocated code
>
>
> In message <E8E581FE5C58614B85A22AF2A495C64909E38D@uschd00mx11usr.AVNET.COM> you wrote:
> >
> > Herm, could you use ppc-linux-objcopy with --adjust-vma, then point GDB =
> > at that modified executable?
>
> No, this will not do any good.
>
> > ------_=_NextPart_001_01C4428A.3D5570E0
> > Content-Type: text/html;
> > charset="iso-8859-1"
> > Content-Transfer-Encoding: quoted-printable
> >
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
>
> Grrrrghhh....
>
> If this continues like that, I will really try to find out how to
> configure the mailing list to reject all HTML messages.
>
> Please DON'T send HTML!
>
>
> Best regards,
>
> Wolfgang Denk
^ permalink raw reply [flat|nested] 14+ messages in thread
* [U-Boot-Users] debugging relocated code
@ 2004-05-25 20:23 Rune Torgersen
0 siblings, 0 replies; 14+ messages in thread
From: Rune Torgersen @ 2004-05-25 20:23 UTC (permalink / raw)
To: u-boot
If anyone out there has any advice re whether M$ Outlook has
> a hidden, second, really-send-plain-text flag (other than
> Format -> Plain text which I have already set), I'd love to
> hear about it.
Yep....
Check under Options - Mail Format(same place that has the format as
plain text)
Check the settings under Internet Formats, and set it to convert Rich
Text replies to Plain Text.
That does it for me at least...
^ permalink raw reply [flat|nested] 14+ messages in thread
* [U-Boot-Users] debugging relocated code
@ 2004-05-25 20:27 Kerl, John
0 siblings, 0 replies; 14+ messages in thread
From: Kerl, John @ 2004-05-25 20:27 UTC (permalink / raw)
To: u-boot
No such setting in my version (2K) but thanks for the tip!
-----Original Message-----
From: Rune Torgersen [mailto:runet at innovsys.com]
Sent: Tuesday, May 25, 2004 1:24 PM
To: Kerl, John
Cc: u-boot-users at lists.sourceforge.net
Subject: RE: [U-Boot-Users] debugging relocated code
If anyone out there has any advice re whether M$ Outlook has
> a hidden, second, really-send-plain-text flag (other than
> Format -> Plain text which I have already set), I'd love to
> hear about it.
Yep....
Check under Options - Mail Format(same place that has the format as
plain text)
Check the settings under Internet Formats, and set it to convert Rich
Text replies to Plain Text.
That does it for me at least...
^ permalink raw reply [flat|nested] 14+ messages in thread
* [U-Boot-Users] debugging relocated code
2004-05-25 19:35 Kerl, John
@ 2004-05-25 21:47 ` Wolfgang Denk
0 siblings, 0 replies; 14+ messages in thread
From: Wolfgang Denk @ 2004-05-25 21:47 UTC (permalink / raw)
To: u-boot
In message <E8E581FE5C58614B85A22AF2A495C64909E38F@uschd00mx11usr.AVNET.COM> you wrote:
> Wolfgang, you live in an imperfect world. I understand you are
No, on contrary - _my_ world is 100% Microsoft-free :-D
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
I must follow the people. Am I not their leader? - Benjamin Disraeli
^ permalink raw reply [flat|nested] 14+ messages in thread
* [U-Boot-Users] debugging relocated code
2004-05-25 20:08 Kerl, John
@ 2004-05-25 21:54 ` Wolfgang Denk
0 siblings, 0 replies; 14+ messages in thread
From: Wolfgang Denk @ 2004-05-25 21:54 UTC (permalink / raw)
To: u-boot
In message <E8E581FE5C58614B85A22AF2A495C64909E392@uschd00mx11usr.AVNET.COM> you wrote:
>
> text. Just a caveat to all the other Outlook users out there. Wolfgang
> has done great services to the embedded, Linux and U-Boot communities, and
> if HTML e-mail raises his blood pressure to the point where he has a heart
> attack, stroke, aneurysm or other fatal calamity, the world would be an
> emptier place. :)
Thanks for the friendly words, but there is good reason not to use
HTML. See for example http://www.expita.com/nomime.html (which
happens to suggest some solutions...)
And now we got this sorted out, let's address the nbext topic:
> -----Original Message-----
> From: Travis Sawyer [mailto:tsawyer+u-boot at sandburst.com]
> Sent: Tuesday, May 25, 2004 1:02 PM
> To: Kerl, John
> Subject: RE: [U-Boot-Users] debugging relocated code
[full quote deleted]
Can you please configure your mailer to use proper quoting? :-)
See http://www.usenet.org.uk/ukpost.html#s3
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
Overflow on /dev/null, please empty the bit bucket.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [U-Boot-Users] debugging relocated code
@ 2004-05-25 22:52 Alan J. Luse
0 siblings, 0 replies; 14+ messages in thread
From: Alan J. Luse @ 2004-05-25 22:52 UTC (permalink / raw)
To: u-boot
Wolfgang-
> -----Original Message-----
> From: u-boot-users-admin at lists.sourceforge.net On Behalf Of Wolfgang
Denk
>
> In message
> <E8E581FE5C58614B85A22AF2A495C64909E38F@uschd00mx11usr.AVNET.C
> OM> you wrote:
> > Wolfgang, you live in an imperfect world. I understand you are
>
> No, on contrary - _my_ world is 100% Microsoft-free :-D
>
Congratulations on being Micrsoft free; I am truly jealous. Most of the
rest of as still trying to drag our corporate hosts and clients kicking
and screaming away from their Microsoft addiction :-(
Alan J. Luse
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2004-05-25 22:52 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-25 18:27 [U-Boot-Users] debugging relocated code Stuart Yoder
2004-05-25 18:49 ` Ho Lee
2004-05-25 19:26 ` Wolfgang Denk
-- strict thread matches above, loose matches on Subject: below --
2004-05-25 18:58 Kerl, John
2004-05-25 19:29 ` Wolfgang Denk
2004-05-25 19:35 Kerl, John
2004-05-25 21:47 ` Wolfgang Denk
2004-05-25 19:48 Woodruff, Richard
2004-05-25 19:55 Kerl, John
2004-05-25 20:08 Kerl, John
2004-05-25 21:54 ` Wolfgang Denk
2004-05-25 20:23 Rune Torgersen
2004-05-25 20:27 Kerl, John
2004-05-25 22:52 Alan J. Luse
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.