Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Neo Jia" <neojia@gmail.com>
To: "gdb ml" <gdb@sourceware.org>
Subject: Source a python script to gdb plugin?
Date: Thu, 07 Aug 2008 07:40:00 -0000	[thread overview]
Message-ID: <5d649bdb0808070039o6503e704gc8deac92ada5d2a6@mail.gmail.com> (raw)

hi,

I am going to source the following script through gdb plugin, but it
doesn't work.

#!/usr/bin/python

from ctypes import *
cdll.LoadLibrary("libc.so.6")
libc = CDLL("libc.so.6")
libc.printf("%d\n", 100)

Any suggestions?

Thanks,
Neo

-- 
I would remember that if researchers were not ambitious
probably today we haven't the technology we are using!


             reply	other threads:[~2008-08-07  7:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-07  7:40 Neo Jia [this message]
2008-08-07 14:03 ` Tom Tromey
2008-08-07 17:01   ` Neo Jia
2008-08-07 17:08     ` Paul Pluzhnikov
2008-08-07 17:13       ` Tom Tromey
2008-08-07 19:09         ` Neo Jia
2008-08-07 19:17           ` Tom Tromey
2008-08-07 19:18             ` Neo Jia

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=5d649bdb0808070039o6503e704gc8deac92ada5d2a6@mail.gmail.com \
    --to=neojia@gmail.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