🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #1240

What are the prescribed ways to integrate extensions into gdb? Examples?

#1240
From: thomas.elam
Date: Thu, 30 Dec 2004 12:19
121 lines
5883 bytes
This is a multi-part message in MIME format.

------_=_NextPart_001_01C4EE69.D5D4C788
Content-Type: text/plain;
	charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

I have found the following references about extending gdb:

[1] Section 4.2 of the `GDB Internals' document, `UI-Independent =
Output--the ui_out Function':
http://sources.redhat.com/gdb/current/onlinedocs/gdbint_4.html#SEC19

[2] Section 24 of the `Debugging with GDB' document, `The GDB/MI =
Interface':
http://sources.redhat.com/gdb/current/onlinedocs/gdb_25.html#SEC223

[3] Section A of the `GDB Internals' document, `GDB Currently available =
observers':
http://sources.redhat.com/gdb/current/onlinedocs/gdbint_19.html#SEC188



What is the currently prescribed way to integrate extensions into gdb?
I want to link my code in with gdb.  I am interested in adding to gdb:
(1) a full scripting language (not tcl) and (2) a new GUI front-end.
These additions could use the same or different methods of extending =
gdb.
I prefer a machine-oriented interface to gdb, not an interface that
would require me to parse printf output.

Besides the currently prescribed way(s) of extending gdb, is there a
different method planned for the near future -- a method that is
semi-supported now?

Are there some good examples of the extension of GDB (not by starting
GDB as a separate process)?  Is the way Insight extends GDB (1) endorsed
and (2) the most up-to-date way?  Are there other not-to-ancient
programs that link into GDB?  Do they extend GDB in an endorsed ways?
Do they do it in the most up-to-date way?



Regards and thanks.

------_=_NextPart_001_01C4EE69.D5D4C788
Content-Type: text/html;
	charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DWindows-1252">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.6603.0">
<TITLE>What are the prescribed ways to integrate extensions into gdb? =
Examples?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=3D2>I have found the following references about extending =
gdb:<BR>
<BR>
[1] Section 4.2 of the `GDB Internals' document, `UI-Independent =
Output--the ui_out Function':<BR>
<A =
HREF=3D"http://sources.redhat.com/gdb/current/onlinedocs/gdbint_4.html#SE=
C19">http://sources.redhat.com/gdb/current/onlinedocs/gdbint_4.html#SEC19=
</A><BR>
<BR>
[2] Section 24 of the `Debugging with GDB' document, `The GDB/MI =
Interface':<BR>
<A =
HREF=3D"http://sources.redhat.com/gdb/current/onlinedocs/gdb_25.html#SEC2=
23">http://sources.redhat.com/gdb/current/onlinedocs/gdb_25.html#SEC223</=
A><BR>
<BR>
[3] Section A of the `GDB Internals' document, `GDB Currently available =
observers':<BR>
<A =
HREF=3D"http://sources.redhat.com/gdb/current/onlinedocs/gdbint_19.html#S=
EC188">http://sources.redhat.com/gdb/current/onlinedocs/gdbint_19.html#SE=
C188</A><BR>
<BR>
<BR>
<BR>
What is the currently prescribed way to integrate extensions into =
gdb?<BR>
I want to link my code in with gdb.&nbsp; I am interested in adding to =
gdb:<BR>
(1) a full scripting language (not tcl) and (2) a new GUI front-end.<BR>
These additions could use the same or different methods of extending =
gdb.<BR>
I prefer a machine-oriented interface to gdb, not an interface that<BR>
would require me to parse printf output.<BR>
<BR>
Besides the currently prescribed way(s) of extending gdb, is there a<BR>
different method planned for the near future -- a method that is<BR>
semi-supported now?<BR>
<BR>
Are there some good examples of the extension of GDB (not by =
starting<BR>
GDB as a separate process)?&nbsp; Is the way Insight extends GDB (1) =
endorsed<BR>
and (2) the most up-to-date way?&nbsp; Are there other =
not-to-ancient<BR>
programs that link into GDB?&nbsp; Do they extend GDB in an endorsed =
ways?<BR>
Do they do it in the most up-to-date way?<BR>
<BR>
<BR>
<BR>
Regards and thanks.</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C4EE69.D5D4C788--
Technical Details
Message-ID: <mailman.10009.1104411051.27204.bug-gdb@gnu.org>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f5053,c4cc3f04c1edc31b,start
X-Google-Attributes: gidf5053,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
From: <thomas.elam@wipro.com>
Newsgroups: gnu.gdb.bug
Subject: What are the prescribed ways to integrate extensions into gdb?
 Examples?
Date: Thu, 30 Dec 2004 17:49:39 +0530
Lines: 123
Approved: bug-gdb@gnu.org
Message-ID: <mailman.10009.1104411051.27204.bug-gdb@gnu.org>
NNTP-Posting-Host: lists.gnu.org
Mime-Version: 1.0
Content-Type: multipart/alternative;
 boundary="----_=_NextPart_001_01C4EE69.D5D4C788"
X-Trace: news.Stanford.EDU 1104410372 29169 199.232.76.165 (30 Dec 2004 12:39:32 GMT)
X-Complaints-To: news@news.stanford.edu
To: <bug-gdb@gnu.org>
Envelope-to: bug-gdb@gnu.org
X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0
content-class: urn:content-classes:message
Thread-Topic: What are the prescribed ways to integrate extensions into gdb?
 Examples?
Thread-Index: AcTuadXU//DJvUTVTIOX1Uh5/yaJrQ==
X-OriginalArrivalTime: 30 Dec 2004 12:19:10.0041 (UTC)
 FILETIME=[C3FE3490:01C4EE69]
X-BeenThere: bug-gdb@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "Bug reports for GDB, the GNU debugger" <bug-gdb.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-gdb>,
 <mailto:bug-gdb-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-gdb>
List-Post: <mailto:bug-gdb@gnu.org>
List-Help: <mailto:bug-gdb-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-gdb>,
 <mailto:bug-gdb-request@gnu.org?subject=subscribe>