comp.lang.ada
 help / color / mirror / Atom feed
* gnu-ada, gvd, and linux
@ 2003-03-11 18:55 s. eckloff
  2003-03-11 19:06 ` Preben Randhol
  2003-03-12 21:13 ` s. eckloff
  0 siblings, 2 replies; 16+ messages in thread
From: s. eckloff @ 2003-03-11 18:55 UTC (permalink / raw)


hi,

currently I'm about to debug an ada -prog (gnu-ada) and it got a 
problem in displaying data:

  on entering  "graph display <variable>" (or by clicking at <variable> 
and answering "display <variable>) I get the reply "could not get the 
type of <variable>" and thus no data display window opens.

compilation was done by "gnatmake -g -f  <source>.adb" an on loading 
gvd says "reading symbols from <source>... done".

what did I do wrong?

thanks in advance!

/yours   siegfried


-- 
---
siegfried eckloff, sec-ff@arcor.de   (spam: remove the hyphen ; 
entferne den bindestrich)
---




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

* Re: gnu-ada, gvd, and linux
  2003-03-11 18:55 gnu-ada, gvd, and linux s. eckloff
@ 2003-03-11 19:06 ` Preben Randhol
  2003-03-12  0:01   ` s. eckloff
  2003-03-12 21:13 ` s. eckloff
  1 sibling, 1 reply; 16+ messages in thread
From: Preben Randhol @ 2003-03-11 19:06 UTC (permalink / raw)


s. eckloff wrote:
> hi,
> 
> currently I'm about to debug an ada -prog (gnu-ada) and it got a 
> problem in displaying data:
> 
>   on entering  "graph display <variable>" (or by clicking at <variable> 
> and answering "display <variable>) I get the reply "could not get the 
> type of <variable>" and thus no data display window opens.
> 
> compilation was done by "gnatmake -g -f  <source>.adb" an on loading 
> gvd says "reading symbols from <source>... done".
> 
> what did I do wrong?

The debugger you use is not Ada-aware. Which Linux distribution do you
use and which debugger?

-- 
  ()   Join the worldwide campaign to protect fundamental human rights.
 +||-.
.+--+'
'+||-                                           http://www.amnesty.org/



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

* Re: gnu-ada, gvd, and linux
  2003-03-11 19:06 ` Preben Randhol
@ 2003-03-12  0:01   ` s. eckloff
  2003-03-12  7:47     ` Preben Randhol
  2003-03-12  7:59     ` Pascal Obry
  0 siblings, 2 replies; 16+ messages in thread
From: s. eckloff @ 2003-03-12  0:01 UTC (permalink / raw)


hi,


>>currently I'm about to debug an ada -prog (gnu-ada) and it got a 
>>problem in displaying data:
>>
>>  on entering  "graph display <variable>" (or by clicking at <variable> 
>>and answering "display <variable>) I get the reply "could not get the 
>>type of <variable>" and thus no data display window opens.
>>
>>compilation was done by "gnatmake -g -f  <source>.adb" an on loading 
>>gvd says "reading symbols from <source>... done".
>>
>>what did I do wrong?

> The debugger you use is not Ada-aware. Which Linux distribution do you
> use and which debugger?

the debugger is "gvd" and they say, it's not only ada-aware, but 
completely written in ada... my version is 1.2.5, the latest available.
gnat is 3.13p und I use suse 6.4 (kernel 2.2.14).

\yours    siggi


> 



-- 
---
siegfried eckloff, sec-ff@arcor.de   (spam: remove the hyphen ; 
entferne den bindestrich)
---




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

* Re: gnu-ada, gvd, and linux
  2003-03-12  0:01   ` s. eckloff
@ 2003-03-12  7:47     ` Preben Randhol
  2003-03-12  7:53       ` Preben Randhol
  2003-03-12  7:59     ` Pascal Obry
  1 sibling, 1 reply; 16+ messages in thread
From: Preben Randhol @ 2003-03-12  7:47 UTC (permalink / raw)


s. eckloff wrote:
> 
> the debugger is "gvd" and they say, it's not only ada-aware, but 
> completely written in ada... my version is 1.2.5, the latest available.
> gnat is 3.13p und I use suse 6.4 (kernel 2.2.14).

No your debugger is not gvd that is your front-end. You use gdb. Can you
check which version the gdb package is?

-- 
  ()   Join the worldwide campaign to protect fundamental human rights.
 +||-.
.+--+'
'+||-                                           http://www.amnesty.org/



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

* Re: gnu-ada, gvd, and linux
  2003-03-12  7:47     ` Preben Randhol
@ 2003-03-12  7:53       ` Preben Randhol
  2003-03-12 21:23         ` s. eckloff
  0 siblings, 1 reply; 16+ messages in thread
From: Preben Randhol @ 2003-03-12  7:53 UTC (permalink / raw)


Preben Randhol wrote:
> s. eckloff wrote:
>> 
>> the debugger is "gvd" and they say, it's not only ada-aware, but 
>> completely written in ada... my version is 1.2.5, the latest available.
>> gnat is 3.13p und I use suse 6.4 (kernel 2.2.14).
> 
> No your debugger is not gvd that is your front-end. You use gdb. Can you
> check which version the gdb package is?

Better yet. Check is you have a program called gnatgdb. If you do then
simply do (assuming that the gnatgdb is in /usr/bin):

gvd --debugger=/usr/bin/gnatgdb

-- 
  ()   Join the worldwide campaign to protect fundamental human rights.
 +||-.
.+--+'
'+||-                                           http://www.amnesty.org/



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

* Re: gnu-ada, gvd, and linux
  2003-03-12  0:01   ` s. eckloff
  2003-03-12  7:47     ` Preben Randhol
@ 2003-03-12  7:59     ` Pascal Obry
  2003-03-12 14:09       ` Frode Tenneboe
  1 sibling, 1 reply; 16+ messages in thread
From: Pascal Obry @ 2003-03-12  7:59 UTC (permalink / raw)



"s. eckloff" <secff@arcor.de> writes:

> the debugger is "gvd" and they say, it's not only ada-aware, but completely

GVD is not a debugger. It is a graphical frontend to GDB (also supports some
other debugger). So if your gdb is not ada-aware you won't be able to debug
Ada programs easily.

GVD = GNU Visual Debugger.

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|         http://perso.wanadoo.fr/pascal.obry
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595



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

* Re: gnu-ada, gvd, and linux
  2003-03-12  7:59     ` Pascal Obry
@ 2003-03-12 14:09       ` Frode Tenneboe
  0 siblings, 0 replies; 16+ messages in thread
From: Frode Tenneboe @ 2003-03-12 14:09 UTC (permalink / raw)


Pascal Obry <p.obry@wanadoo.fr> wrote:

> GVD is not a debugger.
         ^^^
> GVD = GNU Visual Debugger.
      ^
I can understand why people get confused... :-)

 -Frode

-- 
^ Frode Tenneb�                    | email: ft@edh.ericsson.se      ^
| Ericsson AS., N-1788 Halden      | Phone: +47 69 21 41 47         |
| with Standard.Disclaimer; use Standard.Disclaimer;                |



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

* Re: gnu-ada, gvd, and linux
  2003-03-11 18:55 gnu-ada, gvd, and linux s. eckloff
  2003-03-11 19:06 ` Preben Randhol
@ 2003-03-12 21:13 ` s. eckloff
  2003-03-12 21:57   ` sk
                     ` (2 more replies)
  1 sibling, 3 replies; 16+ messages in thread
From: s. eckloff @ 2003-03-12 21:13 UTC (permalink / raw)
  To: secff

hello to all of the replyers,

 > compilation was done by "gnatmake -g -f  <source>.adb" an on loading 
 > gvd
 > says "reading symbols from <source>... done".
 >
 > what did I do wrong?
 >

thanks to you all - I wasn't aware of the simple fact, that gdb is just 
a front end. after having downloaded and installed gnat 3.31p I thought 
"all ok" and started to work...

the version of gdb on my system is 4.18 and there is gnatgdb, too, but 
starting gvd by

   gdb --debugger=gnatgdb

gives a message

    the underlying debugger died prematurely. exiting...

invoking gnatgdb alone yields a more exact message:

gnatgdb: /lib/libc.so.6: version 'GLIBC_2.2.3' not found (required by 
gnatgdb)

so the remaining question is: as this lib seems to not be part of the 
download package containing gnat 3.13p - where can I get it from? is 
there something else to take into account?


\thanks a lot!     siggi


> thanks in advance!
> 
> /yours   siegfried
> 
> 



-- 
---
siegfried eckloff, sec-ff@arcor.de   (spam: remove the hyphen ; 
entferne den bindestrich)
---




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

* Re: gnu-ada, gvd, and linux
  2003-03-12  7:53       ` Preben Randhol
@ 2003-03-12 21:23         ` s. eckloff
  0 siblings, 0 replies; 16+ messages in thread
From: s. eckloff @ 2003-03-12 21:23 UTC (permalink / raw)
  To: Preben Randhol

hi,

>>>the debugger is "gvd" and they say, it's not only ada-aware, but 
>>>completely written in ada... my version is 1.2.5, the latest available.
>>>gnat is 3.13p und I use suse 6.4 (kernel 2.2.14).
>>
>>No your debugger is not gvd that is your front-end. You use gdb. Can you
>>check which version the gdb package is?
> 
> 
> Better yet. Check is you have a program called gnatgdb. If you do then
> simply do (assuming that the gnatgdb is in /usr/bin):
> 
> gvd --debugger=/usr/bin/gnatgdb

so I did. may I ask you to follow the "answer to myself", where I wrote 
to all of you what I have found out?

thank you a lot!

\yours   siggi




-- 
---
siegfried eckloff, sec-ff@arcor.de   (spam: remove the hyphen ; 
entferne den bindestrich)
---




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

* Re: gnu-ada, gvd, and linux
  2003-03-12 21:13 ` s. eckloff
@ 2003-03-12 21:57   ` sk
  2003-03-13  1:44     ` s. eckloff
  2003-03-13  1:44     ` s. eckloff
  2003-03-13  2:22   ` Jeffrey Creem
  2003-03-13  8:39   ` Preben Randhol
  2 siblings, 2 replies; 16+ messages in thread
From: sk @ 2003-03-12 21:57 UTC (permalink / raw)
  To: secff, comp.lang.ada mail to news gateway

 > ... /lib/libc.so.6: version 'GLIBC_2.2.3' not found ...

If you are using a typical Linux, GLIBC is part of your
system.

$ ldd --version

Should tell you which GLIBC your system is running.

-- 
-------------------------------------------------
-- Merge vertically for real address
--
--     s n p @ t . o
--      k i e k c c m
-------------------------------------------------




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

* Re: gnu-ada, gvd, and linux
  2003-03-12 21:57   ` sk
@ 2003-03-13  1:44     ` s. eckloff
  2003-03-13  3:06       ` sk
  2003-03-13  1:44     ` s. eckloff
  1 sibling, 1 reply; 16+ messages in thread
From: s. eckloff @ 2003-03-13  1:44 UTC (permalink / raw)
  To: comp.lang.ada mail to news gateway

hi,

>  > ... /lib/libc.so.6: version 'GLIBC_2.2.3' not found ...
[...]
> $ ldd --version
> 
> Should tell you which GLIBC your system is running.

mine is 2.1.3 (I use an elder system, yet). do you recommend putting in 
this lib from a newer system or does this corrupt the current one?

\yours    siggi




-- 
---
siegfried eckloff, sec-ff@arcor.de   (spam: remove the hyphen ; 
entferne den bindestrich)
---




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

* Re: gnu-ada, gvd, and linux
  2003-03-12 21:57   ` sk
  2003-03-13  1:44     ` s. eckloff
@ 2003-03-13  1:44     ` s. eckloff
  1 sibling, 0 replies; 16+ messages in thread
From: s. eckloff @ 2003-03-13  1:44 UTC (permalink / raw)
  To: comp.lang.ada mail to news gateway

hi,

>  > ... /lib/libc.so.6: version 'GLIBC_2.2.3' not found ...
[...]
> $ ldd --version
> 
> Should tell you which GLIBC your system is running.

mine is 2.1.3 (I use an elder system, yet). do you recommend putting in 
this lib from a newer system or does this corrupt the current one?

\yours    siggi




-- 
---
siegfried eckloff, sec-ff@arcor.de   (spam: remove the hyphen ; 
entferne den bindestrich)
---




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

* Re: gnu-ada, gvd, and linux
  2003-03-12 21:13 ` s. eckloff
  2003-03-12 21:57   ` sk
@ 2003-03-13  2:22   ` Jeffrey Creem
  2003-03-13  8:39   ` Preben Randhol
  2 siblings, 0 replies; 16+ messages in thread
From: Jeffrey Creem @ 2003-03-13  2:22 UTC (permalink / raw)


"s. eckloff" <secff@arcor.de> wrote in message
news:3E6FA2EC.4000208@arcor.de...
> hello to all of the replyers,
> the version of gdb on my system is 4.18 and there is gnatgdb, too, but
> starting gvd by
>
>    gdb --debugger=gnatgdb
>
> gives a message
>
>     the underlying debugger died prematurely. exiting...



You can rebuild an Ada aware gdb from source

http://libre.act-europe.fr/GDB/

Tells you how to get the source from cvs.






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

* Re: gnu-ada, gvd, and linux
  2003-03-13  1:44     ` s. eckloff
@ 2003-03-13  3:06       ` sk
  0 siblings, 0 replies; 16+ messages in thread
From: sk @ 2003-03-13  3:06 UTC (permalink / raw)
  To: comp.lang.ada mail to news gateway

Hi,

 > mine is 2.1.3 (I use an elder system, yet). do you recommend putting
 > in this lib from a newer system or does this corrupt the current one?

When I said "GLIBC is part of your system" re-read that as it is a vital
part of your system and one could say that GLIBC *IS* your system. So, I
would be really *REALLY* careful about arbitrarily deciding to install a
new GLIBC.

I less potentially fatal solution could be to follow 
<jeff@thecreems.com> idea of rebuilding gdb against your current
GLIBC if that is possible. At the worst, gdb still doesn't work :-)

I have never tried to build gdb but I have first hand experience
of making a system unstable by building and installing GLIBC
inappropriatly. Not a pleasant experience :-(

-- 
-------------------------------------------------
-- Merge vertically for real address
--
--     s n p @ t . o
--      k i e k c c m
-------------------------------------------------




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

* Re: gnu-ada, gvd, and linux
  2003-03-12 21:13 ` s. eckloff
  2003-03-12 21:57   ` sk
  2003-03-13  2:22   ` Jeffrey Creem
@ 2003-03-13  8:39   ` Preben Randhol
  2003-03-14  1:00     ` siegfried.eckloff
  2 siblings, 1 reply; 16+ messages in thread
From: Preben Randhol @ 2003-03-13  8:39 UTC (permalink / raw)


s. eckloff wrote:
> thanks to you all - I wasn't aware of the simple fact, that gdb is just 
> a front end. after having downloaded and installed gnat 3.31p I thought 
> "all ok" and started to work...

Nonono GVD is the front end, gdb (the debugger) is the back end.

Which Linux distribution do you use?

> the version of gdb on my system is 4.18 and there is gnatgdb, too, but 
> starting gvd by
> 
>    gdb --debugger=gnatgdb

gvd --debugger=gnatgdb

> gives a message
> 
>     the underlying debugger died prematurely. exiting...
> 
> invoking gnatgdb alone yields a more exact message:
> 
> gnatgdb: /lib/libc.so.6: version 'GLIBC_2.2.3' not found (required by 
> gnatgdb)

OK. I guess you are using either Redhat, Suse or sth similar. You can
get 3.14p from here:

ftp://ftp.ada95.com/pub/gnat-3.14p/GNAT-3.14p_rpms.html

-- 
http://www.gulufuture.com/news/kate_adie030310.htm



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

* Re: gnu-ada, gvd, and linux
  2003-03-13  8:39   ` Preben Randhol
@ 2003-03-14  1:00     ` siegfried.eckloff
  0 siblings, 0 replies; 16+ messages in thread
From: siegfried.eckloff @ 2003-03-14  1:00 UTC (permalink / raw)



> Which Linux distribution do you use?

mostly suse 6.4 (kernel 2.2.14)


>>the version of gdb on my system is 4.18 and there is gnatgdb, too, but 
>>starting gvd by
>>
>>   gdb --debugger=gnatgdb
> 
> gvd --debugger=gnatgdb

right - was just a typo, late at night...


> OK. I guess you are using either Redhat, Suse or sth similar. You can
> get 3.14p from here:
> 
> ftp://ftp.ada95.com/pub/gnat-3.14p/GNAT-3.14p_rpms.html

I did so, and I also got gdb 5.3.
the package contained a configure script, which ran ok, but subsequently 
  make ended on errors and no new gdb had been created.

I recorded its output, but as I seem to have ruined my system (it won't 
access no more hosts outside of the lan :-( and this message went out by 
using a different one), I have to care of that at first.

to all: thanks a lot for your help!

I hope I may feel free to continue on this later...

\yours   siggi




-- 
siegfried eckloff  sec ff@arcor.de  (remove the blank)
---




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

end of thread, other threads:[~2003-03-14  1:00 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-11 18:55 gnu-ada, gvd, and linux s. eckloff
2003-03-11 19:06 ` Preben Randhol
2003-03-12  0:01   ` s. eckloff
2003-03-12  7:47     ` Preben Randhol
2003-03-12  7:53       ` Preben Randhol
2003-03-12 21:23         ` s. eckloff
2003-03-12  7:59     ` Pascal Obry
2003-03-12 14:09       ` Frode Tenneboe
2003-03-12 21:13 ` s. eckloff
2003-03-12 21:57   ` sk
2003-03-13  1:44     ` s. eckloff
2003-03-13  3:06       ` sk
2003-03-13  1:44     ` s. eckloff
2003-03-13  2:22   ` Jeffrey Creem
2003-03-13  8:39   ` Preben Randhol
2003-03-14  1:00     ` siegfried.eckloff

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