From: Stan Shebs <shebs@cygnus.com>
To: robert.hoehne@gmx.net
Cc: gdb-patches@cygnus.com
Subject: Re: libgdb (was none)
Date: Thu, 01 Apr 1999 00:00:00 -0000 [thread overview]
Message-ID: <199903102339.PAA21930@andros.cygnus.com> (raw)
In-Reply-To: <199903082231.OAA14675@cygnus.com>
From: Robert Hoehne <robert.hoehne@gmx.net>
Date: Mon, 8 Mar 1999 23:34:05 +0100
I did that already since years in RHIDE and it worked perfectly.
Now I have reviewed the latest gdb sources and saw that the
problem really exists and I'm not happy about this change.
But how is anybody supposed to know what can be changed and what not?
This is a perfect example of why things have to be at least documented.
I had no idea that RHIDE did anything tricky with GDB main files, nor
I imagine did HP or anybody else, so we'll assume that things can be
rearranged or restructured as necessary.
> is that we don't want to get into maintaining GDB with this kind of
> application in mind. If we turn GDB into a library, we should do it
> right --- design an interface that makes sense, document the
> interface, make sure that future changes preserve the boundaries, etc.
> My guess is that that would be more work than we really want to take
> on.
So my question is now: Why does exist there a file called libgdb.texi
in the doc directory?
I just left it there because I thought it would be useful guidance for
anyone wanting to undertake the project, because it *is* a worthwhile
project. However, it seems to have been more misleading than helpful,
so now I'm thinking it should just be whacked out. (Questions about
libgdb come up about twice/year, but nobody does anything to make it
work.)
I know now, that this file describes only an
imaginary library which does not exist, but if there exists such a
description of a libgdb the maintainer of gdb should think also a little
bit about that people, who did the hard job to integrate the gdb functionality
also in other programs even when it is not the described libgdb but a
lib with the same goal.
Propose a structure and the changes to go with it, and I will tell you
if it seems reasonable or not. If it is reasonable, then we can look
at documenting it so future GDB hackers will know what the rules are,
and make any needed changes to support it.
BTW: There is not only an describtion of the imaginary libgdb, but there
is also a target in the Makefile which is called libgdb-files, which creates
a file containing all the names of the object files for the libgdb. So if, main.o
is not part of it, but main.o conatains code which is refered by other
files, than this is a bug.
I thought all the libgdb crud in the makefile was gone, thanks for
pointing it out. I'll delete it if nobody comes up with a good reason
for saving it - incomplete and/or broken code in the source never seems
to do anything except cause confusion and thus waste people's time, so
it's better just to make it go away.
Stan
WARNING: multiple messages have this Message-ID
From: Stan Shebs <shebs@cygnus.com>
To: robert.hoehne@gmx.net
Cc: gdb-patches@cygnus.com
Subject: Re: libgdb (was none)
Date: Wed, 10 Mar 1999 15:39:00 -0000 [thread overview]
Message-ID: <199903102339.PAA21930@andros.cygnus.com> (raw)
Message-ID: <19990310153900.ivfGA8tx0YtOUia7cLE_MRwRfBENQ0J7qRPjiXTwmDY@z> (raw)
In-Reply-To: <199903082231.OAA14675@cygnus.com>
From: Robert Hoehne <robert.hoehne@gmx.net>
Date: Mon, 8 Mar 1999 23:34:05 +0100
I did that already since years in RHIDE and it worked perfectly.
Now I have reviewed the latest gdb sources and saw that the
problem really exists and I'm not happy about this change.
But how is anybody supposed to know what can be changed and what not?
This is a perfect example of why things have to be at least documented.
I had no idea that RHIDE did anything tricky with GDB main files, nor
I imagine did HP or anybody else, so we'll assume that things can be
rearranged or restructured as necessary.
> is that we don't want to get into maintaining GDB with this kind of
> application in mind. If we turn GDB into a library, we should do it
> right --- design an interface that makes sense, document the
> interface, make sure that future changes preserve the boundaries, etc.
> My guess is that that would be more work than we really want to take
> on.
So my question is now: Why does exist there a file called libgdb.texi
in the doc directory?
I just left it there because I thought it would be useful guidance for
anyone wanting to undertake the project, because it *is* a worthwhile
project. However, it seems to have been more misleading than helpful,
so now I'm thinking it should just be whacked out. (Questions about
libgdb come up about twice/year, but nobody does anything to make it
work.)
I know now, that this file describes only an
imaginary library which does not exist, but if there exists such a
description of a libgdb the maintainer of gdb should think also a little
bit about that people, who did the hard job to integrate the gdb functionality
also in other programs even when it is not the described libgdb but a
lib with the same goal.
Propose a structure and the changes to go with it, and I will tell you
if it seems reasonable or not. If it is reasonable, then we can look
at documenting it so future GDB hackers will know what the rules are,
and make any needed changes to support it.
BTW: There is not only an describtion of the imaginary libgdb, but there
is also a target in the Makefile which is called libgdb-files, which creates
a file containing all the names of the object files for the libgdb. So if, main.o
is not part of it, but main.o conatains code which is refered by other
files, than this is a bug.
I thought all the libgdb crud in the makefile was gone, thanks for
pointing it out. I'll delete it if nobody comes up with a good reason
for saving it - incomplete and/or broken code in the source never seems
to do anything except cause confusion and thus waste people's time, so
it's better just to make it go away.
Stan
next prev parent reply other threads:[~1999-04-01 0:00 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-08 7:10 No Subject Andris Pavenis
1999-03-08 11:15 ` none Jim Blandy
1999-04-01 0:00 ` none Jim Blandy
1999-04-01 0:00 ` none Stan Shebs
1999-03-08 13:09 ` none Stan Shebs
1999-03-09 12:54 ` none Robert Hoehne
1999-04-01 0:00 ` none Robert Hoehne
1999-04-01 0:00 ` libgdb (was none) Robert Hoehne
1999-03-08 14:31 ` Robert Hoehne
1999-04-01 0:00 ` Stan Shebs [this message]
1999-03-10 15:39 ` Stan Shebs
1999-03-10 16:29 ` Todd Whitesel
1999-04-01 0:00 ` Todd Whitesel
1999-03-14 4:18 ` Robert Hoehne
1999-04-01 0:00 ` Robert Hoehne
1999-04-01 0:00 ` DJGPP support (was libgdb) Stan Shebs
1999-03-14 14:41 ` Stan Shebs
[not found] ` <99031011141900.03735.cygnus.patches.gdb@hal>
1999-03-10 16:31 ` libgdb.a Andrew Cagney
1999-04-01 0:00 ` libgdb.a Andrew Cagney
1999-04-01 0:00 ` libgdb.a Todd Whitesel
1999-03-10 16:56 ` libgdb.a Todd Whitesel
1999-03-11 12:40 ` libgdb.a Stan Shebs
1999-04-01 0:00 ` libgdb.a Stan Shebs
1999-04-01 0:00 ` libgdb.a Andris Pavenis
1999-03-11 0:27 ` libgdb.a Andris Pavenis
1999-04-01 0:00 ` libgdb.a J.T. Conklin
1999-03-11 14:29 ` libgdb.a J.T. Conklin
1999-04-01 0:00 ` libgdb.a Andris Pavenis
1999-03-10 1:14 ` libgdb.a Andris Pavenis
1999-04-01 0:00 ` No Subject Andris Pavenis
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=199903102339.PAA21930@andros.cygnus.com \
--to=shebs@cygnus.com \
--cc=gdb-patches@cygnus.com \
--cc=robert.hoehne@gmx.net \
/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