Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Status of Ada support in GDB?
@ 2003-02-24  8:40 Andreas Jaeger
  2003-02-24 17:50 ` Joel Brobecker
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Jaeger @ 2003-02-24  8:40 UTC (permalink / raw)
  To: gdb


Trying to debug some Ada problems in GCC I noticed that GDB comes with
Ada support files but does not link them at all, they just seem to be
there for cosmetic :-(

I made some patches to link those files into GDB but still cannot
debug Ada.

So, I have two questions:
- are you interested in my fixes for compilation and/or adding Ada to
  the makefile?

- does anybody care at all about Ada support in GDB?  Since it's
  disabled, I don't see how anybody can use it...


FYI - I'm still fighting with unk_lang_create_fundamental_type, even
if I use set language ada:

$ /usr/src/aj/GDB/build/gdb/gdb ../../gnatmake 
A handler for the OS ABI "GNU/Linux" is not built into this configuration of GDB.  Attempting to continue with the default i386 settingsGNU gdb 2003-02-24-cvs
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...
(gdb) r -c -I../rts -I. -I/cvs/gcc-hammer-3_3-branch/gcc/ada gnatchop --GCC="../../xgcc -B../../ -g      -gnatpg -gnata"
Starting program: /usr/src/aj/build/gcc/misc/gcc/gnatmake -c -I../rts -I. -I/cvs/gcc-hammer-3_3-branch/gcc/ada gnatchop --GCC="../../xgcc -B../../ -g      -gnatpg -gnata"
internal error - unimplemented function unk_lang_create_fundamental_type called.
(gdb) bt
internal error - unimplemented function unk_lang_create_fundamental_type called.
(gdb) set language 
The currently understood settings are:

local or auto    Automatic setting based on source file
ada              Use the Ada language
c                Use the C language
c++              Use the C++ language
asm              Use the Asm language
fortran          Use the Fortran language
java             Use the Java language
modula-2         Use the Modula-2 language
pascal           Use the Pascal language
scheme           Use the Scheme language
(gdb) r
Starting program: /usr/src/aj/build/gcc/misc/gcc/gnatmake -c -I../rts -I. -I/cvs/gcc-hammer-3_3-branch/gcc/ada gnatchop --GCC="../../xgcc -B../../ -g      -gnatpg -gnata"
internal error - unimplemented function unk_lang_create_fundamental_type called.
(gdb) show language 
The current source language is "ada".


Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Status of Ada support in GDB?
  2003-02-24  8:40 Status of Ada support in GDB? Andreas Jaeger
@ 2003-02-24 17:50 ` Joel Brobecker
  2003-02-24 19:24   ` Andreas Jaeger
  2003-02-24 22:46   ` Stephane Carrez
  0 siblings, 2 replies; 6+ messages in thread
From: Joel Brobecker @ 2003-02-24 17:50 UTC (permalink / raw)
  To: Andreas Jaeger; +Cc: gdb

Andreas,

> Trying to debug some Ada problems in GCC I noticed that GDB comes with
> Ada support files but does not link them at all, they just seem to be
> there for cosmetic :-(

Let me explain a bit the history behind these files, and why they are
not linked in yet. 

We, at ACT, are the original authors of these files, and have been
planning on submitting them for inclusion in the FSF tree as soon as
possible. There is no doubt in our minds that this would be beneficial
to everybody: the GDB community, the free software community, the Ada
community, and also ACT itself. So we are trying very hard on our side
to get this done. Unfortunately, due to commercial pressure and lack of
resources, we haven't be able to get this done yet.

So maybe a year ago, ACT made a "code dropping": our sources-du-jour
were made available for download on the sources.redhat.com ftp site.
The hope was that some people might find it useful, while we keep making
progress on cleaning up our code to get it to a state where it would be
acceptable for inclusion.

Somebody outside of ACT actually volunteered to merge these changes into
the FSF tree for us. He started by first sending a new patch that was
this time against the current sources (instead of current against an old
5.1 snapshot). He then checked in the ada-* files, and started cleaning
them up. The plan was for him to (more or less): cleanup these files,
add the bits in the makefiles to compile them in, and then activate
slowly all the ada functionality. Unfortunately, as it often happens,
this volunteer found a day job, and found that he could not spend time
on this task anymore.

So ACT is picking up the task again. We are getting much closer to
having something we can submit, one of our part-time consultant is
working full-time (if I may say so) on it. In the meantime, could you
try using the 5.1.1-based sources that we made available through
sources.redhat.com?

-- 
Joel


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Status of Ada support in GDB?
  2003-02-24 17:50 ` Joel Brobecker
@ 2003-02-24 19:24   ` Andreas Jaeger
  2003-02-25 21:31     ` Joel Brobecker
  2003-02-24 22:46   ` Stephane Carrez
  1 sibling, 1 reply; 6+ messages in thread
From: Andreas Jaeger @ 2003-02-24 19:24 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: gdb


Hi Joel,
 
Joel Brobecker <brobecker@gnat.com> writes:

> Andreas,
>
>> Trying to debug some Ada problems in GCC I noticed that GDB comes with
>> Ada support files but does not link them at all, they just seem to be
>> there for cosmetic :-(
>
> Let me explain a bit the history behind these files, and why they are
> not linked in yet. 

Thanks for the background.

> We, at ACT, are the original authors of these files, and have been
> planning on submitting them for inclusion in the FSF tree as soon as
> possible. There is no doubt in our minds that this would be beneficial
> to everybody: the GDB community, the free software community, the Ada
> community, and also ACT itself. So we are trying very hard on our side
> to get this done. Unfortunately, due to commercial pressure and lack of
> resources, we haven't be able to get this done yet.
>
> So maybe a year ago, ACT made a "code dropping": our sources-du-jour
> were made available for download on the sources.redhat.com ftp site.
> The hope was that some people might find it useful, while we keep making
> progress on cleaning up our code to get it to a state where it would be
> acceptable for inclusion.
>
> Somebody outside of ACT actually volunteered to merge these changes into
> the FSF tree for us. He started by first sending a new patch that was
> this time against the current sources (instead of current against an old
> 5.1 snapshot). He then checked in the ada-* files, and started cleaning
> them up. The plan was for him to (more or less): cleanup these files,
> add the bits in the makefiles to compile them in, and then activate
> slowly all the ada functionality. Unfortunately, as it often happens,
> this volunteer found a day job, and found that he could not spend time
> on this task anymore.
>
> So ACT is picking up the task again. We are getting much closer to
> having something we can submit, one of our part-time consultant is
> working full-time (if I may say so) on it. In the meantime, could you

I'm glad to hear about this commitment!

> try using the 5.1.1-based sources that we made available through
> sources.redhat.com?

I need a gdb to debug problems on x86-64 - and that architecture is
only supported since gdb 5.2, so your 5.1.1 changes will not help me
directly,

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Status of Ada support in GDB?
  2003-02-24 17:50 ` Joel Brobecker
  2003-02-24 19:24   ` Andreas Jaeger
@ 2003-02-24 22:46   ` Stephane Carrez
  1 sibling, 0 replies; 6+ messages in thread
From: Stephane Carrez @ 2003-02-24 22:46 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: Andreas Jaeger, gdb

Hi!

Joel Brobecker wrote:

> Andreas,
> 
> [...] 
>
> So ACT is picking up the task again. We are getting much closer to
> having something we can submit, one of our part-time consultant is
> working full-time (if I may say so) on it. In the meantime, could you
> try using the 5.1.1-based sources that we made available through
> sources.redhat.com?
> 

FYI, gdb 5.1 cannot be used to debug a program compiled by gcc 3.2 when
DWARF2 debugging format is used (which is the default for i386 now if I'm not wrong).
This is because gdb 5.1/5.0 do not support the DW_FORM_strp that gcc now generates.

In the past, a gdb without Ada support could be used to, at least, see the source.
However, we are now in this sad situation where this is no longer possible
because now gdb complains at unknown languages and... stops.

	Stephane

P.S: I'm willing to help if you send patches...

-----------------------------------------------------------------------
         Home                               Office
E-mail: stcarrez@nerim.fr                  Stephane.Carrez@solsoft.fr
WWW:    http://stcarrez.nerim.net          http://www.solsoft.com
         Free the Software!                 Visual Security Policy Management



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Status of Ada support in GDB?
  2003-02-24 19:24   ` Andreas Jaeger
@ 2003-02-25 21:31     ` Joel Brobecker
  2003-02-25 21:39       ` Andrew Cagney
  0 siblings, 1 reply; 6+ messages in thread
From: Joel Brobecker @ 2003-02-25 21:31 UTC (permalink / raw)
  To: Andreas Jaeger; +Cc: gdb

> > try using the 5.1.1-based sources that we made available through
> > sources.redhat.com?
> 
> I need a gdb to debug problems on x86-64 - and that architecture is
> only supported since gdb 5.2, so your 5.1.1 changes will not help me
> directly,

Argh... 

We are currently discussing internally how to give a public access to
our current sources. There are several possible ways that we are
exploring, but hope to be able to have this done soon.

-- 
Joel


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Status of Ada support in GDB?
  2003-02-25 21:31     ` Joel Brobecker
@ 2003-02-25 21:39       ` Andrew Cagney
  0 siblings, 0 replies; 6+ messages in thread
From: Andrew Cagney @ 2003-02-25 21:39 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: Andreas Jaeger, gdb

Another tar ball is quick/cheap :-)

Andrew


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-02-25 21:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-24  8:40 Status of Ada support in GDB? Andreas Jaeger
2003-02-24 17:50 ` Joel Brobecker
2003-02-24 19:24   ` Andreas Jaeger
2003-02-25 21:31     ` Joel Brobecker
2003-02-25 21:39       ` Andrew Cagney
2003-02-24 22:46   ` Stephane Carrez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox