Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Bruce Korb <bruce.korb@gmail.com>
To: Abhijit Halder <abhijit.k.halder@gmail.com>, gdb@sourceware.org
Subject: custom runtime GDB extensions
Date: Sun, 21 Oct 2012 23:35:00 -0000	[thread overview]
Message-ID: <508486C7.4080505@gmail.com> (raw)

Hi,

I don't know exactly why the dlopen of shared objects is disparaged,
because I couldn't find references via Googling.  Anyway, my desire
was to augment GDB with code derived from compiled C code that
converts back and forth between bit masks and bit names.  I didn't
want to convert C to Python and I didn't want to maintain separate
Python code by hand.  So, I wanted wrapper code that could implement
GDB extensions.  I did find references to, "so we don't want C code,
so we'll do it in Python", but no references to the rationale.

So, anyway, thank you, Abhijit.  I've successfully applied your
patch.  Now to my main point:  why not use shared libraries?
I'm working on an open source project that uses many, many bit maps
and it would be convenient to be able to read the bitmaps without
having to refer to header files with series of definitions like:

#define MUMBLE 0x8000000000000000000ULL


             reply	other threads:[~2012-10-21 23:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-21 23:35 Bruce Korb [this message]
2012-10-22 21:01 ` Tom Tromey
2012-10-22 22:01   ` Bruce Korb
2012-10-23 19:10     ` Tom Tromey
2012-10-23 19:42       ` Bruce Korb
2012-10-23 19:49         ` Joel Brobecker
2012-10-23 20:01           ` Bruce Korb
2012-10-23 20:28         ` Tom Tromey
2012-10-23 20:54           ` Bruce Korb
2012-10-23 21:01             ` Tom Tromey

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=508486C7.4080505@gmail.com \
    --to=bruce.korb@gmail.com \
    --cc=abhijit.k.halder@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