From: Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
To: "Decker, Paul" <Paul.Decker@analog.com>
Cc: GDB <gdb@sources.redhat.com>
Subject: Re: gdb port project
Date: Mon, 25 Apr 2005 13:01:00 -0000 [thread overview]
Message-ID: <426CE3E0.1060505@codito.com> (raw)
In-Reply-To: <E21A9A52FF03B249B20F0DC563DEBB311897855C@nwd2exm3.ad.analog.com>
Hi Paul,
>
> 2. I've searched around for multi-processing support within gdb, and I
> don't see much in the way of supporting debugging multi-processor
> systems. Specifically, if a processor has multiple cores, is there any
> standard convention for gdb to support this?
As of now very minimal. Are they heterogenous or homogenous
cores ? If these are homogenous cores then life should be
slightly simpler since it would be akin to debugging
multiple threads on an SMP machine and you might be able to
get things working by defining the thread specific portions
for the target right. With heterogenous cores there is some
more fun in life :-P
>
> My initial idea was to have the proxy & ice support the multi cores, and
> have the ability of two instances of gdb to be started, the first
> instance would connect over tcp to port n, the second instance would
> connect to the second core on port n+1. This way, 1 to n multi-cores
> could be debugged and controlled. The downside is that there are no
> native multi-processor commands in gdb, for example, a run would cause a
> specific core to start running. There isn't a method of issuing a 'run
> all' or a 'run group' to cause all the cores to or a group of cores to
> start running.
One simple way forward might be to write a small
frontend on top of gdb that issues these parallelizing
commands and does this "process grouping" for you. By
keeping multiple GDB backends separately you can get around
the process grouping issues. Then the extra stuff you need
to do is to roughly implement some sort of IPC between GDB
and the frontend.
cheers
Ramana
---
Ramana Radhakrishnan
GNU Tools
codito ergo sum (www.codito.com)
next prev parent reply other threads:[~2005-04-25 12:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-22 17:30 Decker, Paul
2005-04-25 13:01 ` Ramana Radhakrishnan [this message]
2005-04-25 18:49 ` Daniel Jacobowitz
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=426CE3E0.1060505@codito.com \
--to=ramana.radhakrishnan@codito.com \
--cc=Paul.Decker@analog.com \
--cc=gdb@sources.redhat.com \
/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