From: "Nitin Gupta" <nitin.gupta@nevisnetworks.com>
To: <amitkale@emsyssoft.com>, "Andrew Cagney" <cagney@gnu.org>
Cc: <gdb@sources.redhat.com>
Subject: RE: GDB for Multiprocessor Architecture
Date: Fri, 05 Dec 2003 11:01:00 -0000 [thread overview]
Message-ID: <36993D449C7FA647BF43568E0793AB3E32A638@nevis_pune_xchg.pune.nevisnetworks.com> (raw)
>
> Making gdb handle multiple object images will be a lot of
> work. You can do
> something much simpler: Use multiple gdbs.
That could be a very messy task and also in a scenario when multiple
CPUs are running same code image. Also I will have to have more than 100
GDB sessions to accomplish this. Thought about it but seems to be not a
good solution.
>
> You'll have to implement multiplexing of serial connections
> used by them. A
> small program that listens to tcp/ip sockets for gdb
> connections on one side
> and uses the hardware probe on the other.
Well that is what I am trying to work around with. The thing is that GDB
actually needs to understand that there are number of threads running.
I plan to use the existing thread model of GDB where you do
gdb> thr 2
to switch to another thread and do debugging on it.
In my case, I do not have a single code image or you can say a final
executable with thread information to be loaded on the target. There are
CPU specific code images. Like a DSP application has to tum on the DSP
core so it is compiled with the specific cross compiler and assembled
and linked...some management tasks are similarly compiled, assembled and
linked with CPU specific toolchain.
Now there is loader routine that loads these to specific CPUs and based
on profile information, a code image is run on n number of CPUs to get
maximum throughput.
Hereissues with GDB arises. GDB loads symbol information from a file on
the host. Now I do not have just single code image. Can I change and
load the symbol table as and when I want? I can add symbol table for
library files but am not sure about altogether different image file.
Any pointers? Thanks in advance.
Nitin Gupta
next reply other threads:[~2003-12-05 11:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-05 11:01 Nitin Gupta [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-12-04 21:05 Nitin Gupta
2003-12-04 23:05 ` Daniel Jacobowitz
2003-12-03 14:07 Nitin Gupta
2003-12-03 18:28 ` Andrew Cagney
2003-12-05 7:28 ` Amit S. Kale
2003-12-14 3:32 ` Mark
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=36993D449C7FA647BF43568E0793AB3E32A638@nevis_pune_xchg.pune.nevisnetworks.com \
--to=nitin.gupta@nevisnetworks.com \
--cc=amitkale@emsyssoft.com \
--cc=cagney@gnu.org \
--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