From: Daniel Jacobowitz <drow@false.org>
To: Duane Ellis <duane@duaneellis.com>
Cc: gdb@sourceware.org
Subject: Re: GDB for multiple targets
Date: Tue, 25 Nov 2008 04:06:00 -0000 [thread overview]
Message-ID: <20081125040552.GA30147@caradoc.them.org> (raw)
In-Reply-To: <492B40D9.8050703@duaneellis.com>
On Mon, Nov 24, 2008 at 07:03:37PM -0500, Duane Ellis wrote:
> (1) In the case of OpenOCD - nothing ensures the *openocd.cfg* file
> matches what the *EXE*FILE* says and/or the actual hardware target found
> via jtag. My goal wold be reporting up information so at a minimum some
> warning message could be printed.
Yes, we already do generate such warnings. You have to generate an
architecture element in the description to get that behavior though.
> (2) In the arm micro controller "bare-metal-world" - the OSABI is often
> not used or is generic, example: arm-elf - is a generic widely used
> configuration that does not report the actual OS being used.
arm-elf is not an OSABI, it's a target triplet. The usual OSABI for
it is "none". GDB doesn't support dynamic registration of new OSABIs,
but it could probably be implemented.
> Many embedded debuggers have the ability to display on-chip registers,
> ie: The MicroChip IDE for PIC32 (a mips m4K cpu, via GCC) has displays
> for UART, TIMERS, GPIO.
>
> GDB Front Ends (ie: Eclipse, insight) could also display this type of
> information - if - it had details about the chip.
The way to do this is not by chip name but by the rest of the target
description language. We're already doing that at CodeSourcery.
> (5) One other road block today - is while GDB can fetch this
> information. I know of no command in GDB to pass the "target.xml" up the
> food chain to the front end (ie: eclipse, insight)
>
> Maybe a command like: "targetxmlfetch 'target.xml'" is needed?
>
> (6) Same could be said about the "memorymap.xml"
Right. Patches welcome.
> None of us are *today* in the position to make all of these things
> happen.
I beg to differ. There's no chicken and egg problem. I and others
have spent the past several years adding this sort of feature to GDB
for the same reasons you describe and we're already doing things with
GDB that the GDB of several years ago couldn't come close to.
When you need things that we haven't added already, you're more than
welcome to contribute :-) But please see about an FSF copyright
assignment if you plan to do that; I can help you with that if you
don't have one yet.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2008-11-25 4:06 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-24 16:36 Duane Ellis
2008-11-24 22:03 ` Daniel Jacobowitz
2008-11-25 0:04 ` Duane Ellis
2008-11-25 4:06 ` Daniel Jacobowitz [this message]
2008-11-25 17:48 ` Duane Ellis
2008-11-26 2:51 ` Daniel Jacobowitz
-- strict thread matches above, loose matches on Subject: below --
2008-11-21 17:09 Marc Khouzam
2008-11-21 19:07 ` Michael Snyder
2008-11-22 15:26 ` Ulrich Weigand
2008-12-09 14:42 ` Marc Khouzam
2008-12-09 18:12 ` Ulrich Weigand
2008-12-09 18:40 ` Marc Khouzam
2008-12-09 18:44 ` Ulrich Weigand
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=20081125040552.GA30147@caradoc.them.org \
--to=drow@false.org \
--cc=duane@duaneellis.com \
--cc=gdb@sourceware.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox