From: Andrew Cagney <ac131313@redhat.com>
To: Jim Blandy <jimb@redhat.com>,
Andrew Batchelor <A.C.Batchelor-99@student.lboro.ac.uk>
Cc: gdb@sources.redhat.com, Sachin Bharadwaj <sachin@multitech.co.in>
Subject: Re: GDB --> Parallel Port --> Target??
Date: Wed, 08 Oct 2003 19:37:00 -0000 [thread overview]
Message-ID: <3F846765.6070403@redhat.com> (raw)
In-Reply-To: <vt2ad8dt3ms.fsf@zenia.home>
[adding Sachin]
> Andrew Batchelor <A.C.Batchelor-99@student.lboro.ac.uk> writes:
>
>
>> Hello,
>>
>> I was wondering how straightforward it would be to write an extension
>> for GDB to use the parallel port to connect to a target instead of the
>> serial port? (Changing only a few files? Many files? Which ones?,
>> etc.)
>>
>> Now I'm not really very familiar with GDB and before I jump in at the
>> deep end, I was wondering if any of you guys could give me any pointers?
>> At the moment I'm just having a read through the User Manual and the
>> Internals Manual and looking at some of the C files that look like they
>> might be of some help - can any of you guys point me in the right
>> direction?
>>
>> Any help or advice you could offer would be much appreciated.
>
>
> Have you tried simply doing "target remote /dev/lpt"? It's worth a
> shot.
FYI, it should just work. For GDB, there should really be no difference
between a serial and parallel character interface.
> If it turns out that doesn't work because the parallel device needs
> special handling, that can be done pretty easily.
> Someone asked about this regarding USB recently:
>
> http://sources.redhat.com/ml/insight/2003-q4/msg00016.html
The correct kernel driver will let GDB talk though to the USB connected
device as if it was a normal serial device.
Of course, if it's the actual USB chip that your trying to communicate
with, things can get a bit messy. While having the USB chip include a
pseudo-serial interface that talked remote-protocol would work, I've
seen implementations that ended up having a debug agent translate remote
protocol into USB primatives.
Andrew
next prev parent reply other threads:[~2003-10-08 19:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-07 10:00 Andrew Batchelor
2003-10-07 16:28 ` Jim Blandy
2003-10-08 13:44 ` Andrew Batchelor
2003-10-08 17:55 ` Jim Blandy
2003-10-10 16:49 ` Andrew Batchelor
2003-10-10 19:32 ` Jim Blandy
2003-10-08 19:37 ` Andrew Cagney [this message]
2003-10-10 16:53 ` Andrew Batchelor
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=3F846765.6070403@redhat.com \
--to=ac131313@redhat.com \
--cc=A.C.Batchelor-99@student.lboro.ac.uk \
--cc=gdb@sources.redhat.com \
--cc=jimb@redhat.com \
--cc=sachin@multitech.co.in \
/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