From: Matt Rice <ratmice@gmail.com>
To: Grigory Tolstolytkin <gtolstolytkin@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: Extending GDB to provide console over telnet
Date: Thu, 29 Sep 2011 12:47:00 -0000 [thread overview]
Message-ID: <CACTLOFp_CrL_8S=0uS87dLBD=ncH1TAhuXLWutTUPJ-LZ_gBcA@mail.gmail.com> (raw)
In-Reply-To: <4E845D53.9090102@gmail.com>
On Thu, Sep 29, 2011 at 4:58 AM, Grigory Tolstolytkin
<gtolstolytkin@gmail.com> wrote:
> Hi,
>
> I'm working on extending gdb functionality and would like to start a
> discussion since it might be useful for other people too.
you can kind of do this purely with python,
below is a link to a python script which (it only writes to the
network, doesn't read..)
I use it to dump the current source location to some port every time
gdb stops (probably using some patches)...
adding this sort of stuff to .gdbinit
python from misc_gdb import twisted_gdb
# listen on port on 8007.
python twisted_gdb.start(8007)
define hook-stop
python twisted_gdb.dumpCurrentLocation()
end
in theory it'd be simple to read data from the client and
gdb.execute() them, though I believe that anything which queries the
user with a yes/no style confirmation, is going to end up with the
default.
https://gitorious.org/misc-gdb-stuff/misc-gdb-stuff/blobs/master/misc_gdb/twisted_gdb.py
next prev parent reply other threads:[~2011-09-29 12:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-29 11:58 Grigory Tolstolytkin
2011-09-29 12:17 ` Kevin Pouget
2011-09-29 12:42 ` Grigory Tolstolytkin
2011-09-29 12:47 ` Matt Rice [this message]
2011-09-30 19:27 ` Jan Kratochvil
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='CACTLOFp_CrL_8S=0uS87dLBD=ncH1TAhuXLWutTUPJ-LZ_gBcA@mail.gmail.com' \
--to=ratmice@gmail.com \
--cc=gdb@sourceware.org \
--cc=gtolstolytkin@gmail.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