From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] disassembler ?
Date: Thu, 23 May 2013 20:53:37 +0200 [thread overview]
Message-ID: <20130523205337.5b0fd82c@lilith> (raw)
In-Reply-To: <CAPKZHbU1wKxJZ82O9v54Lct482o7MfcN4Yq_WniwL-TB8_-cGg@mail.gmail.com>
Hi Brad,
On Thu, 23 May 2013 11:13:53 -0600, Brad Walker <bwalker@musings.com>
wrote:
> Sorry for being delayed on getting back to you on this. Work issues took
> hold.
>
> There were several good questions.
>
> Let me give you some background.
>
> I am working at a start-up. We are building a new processor and system for
> that new processor. So we have hardware work and software work to get
> through.
>
> Part of my reasoning in asking the question about a disassembler is becuase
> there is a reference to BedBug in the manual.
> http://www.denx.de/wiki/view/U-Bootdoc/BedbugEmbeddedDebuggerCommands . As
> well as, the BedBug debugger is in the source code.
>
> So I'm trying to understand at a high level if I can utilize this work to
> help me. Or should I just go and implement this independently.
>
> Why not just use JTAG? We are doing new processor design, so it's not
> defined if the system will even have a JTAG interface. There are lots of
> systems that do not have a JTAG interface.
>
> Why not use use objdump? We are in the process of porting binutils, so I
> currently don't have an objdump to use. I do have a manual disassembly
> routine that we created in h/w design to help us. But, until binutils has
> been ported, there is no objdump.
>
> I think the big issue that is confusing to me is why is BedBug still in
> U-Boot? Should i try and graft my work into BedBug? If so, then I'm happy
> to do the work and contribute it back to the group. But, if not, then I'll
> just go ahead implement the work independently.
>
> Hopefully, this makes sense. Feel free to ask questions.
The way I understand your project, I wonder why you want to disassemble
code at all: if you manage to get U-Boot running on your target with
BedBug support for your CPU enabled, this means you have a working
gcc+binutils, which in turn means you have a toolchain, including an
assembler, that works well enough for bedbug to become pointless.
Compare the bedbug and objdump/gdb options: on the one hand you get a
crude debugger and disassembler that will only run from U-Boot and will
be practically useless for debugging say a Linux kernel or U-Boot
itself; and on the other hand, with objdump you get a disassembler that
will work on just about any binary, and with gdb, you get a debugger
that will debug anything from U-boot to userland apps.
Also, I *very* strongly suggest that you integrate *some* debugging
interface, based on *some* industry standard. Seeing as you're working
on a brand new, untested so far, silicon, such a debugging interface is
an absolute must IMO.
> -brad w.
Amicalement,
--
Albert.
next prev parent reply other threads:[~2013-05-23 18:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-16 16:45 [U-Boot] disassembler ? Brad Walker
2013-05-16 17:18 ` Albert ARIBAUD
2013-05-16 22:15 ` Wolfgang Denk
2013-05-23 17:13 ` Brad Walker
2013-05-23 18:53 ` Albert ARIBAUD [this message]
2013-05-23 19:08 ` Peter Barada
2013-05-23 19:49 ` Albert ARIBAUD
2013-05-23 20:56 ` Peter Barada
2013-05-23 21:09 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130523205337.5b0fd82c@lilith \
--to=albert.u.boot@aribaud.net \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.