This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: GDB with Ada doesn't print variables neither works with GPS
- From: Joel Brobecker <brobecker at adacore dot com>
- To: mike tiberium <mike dot tiberium at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Sun, 29 Jul 2007 16:23:07 -0700
- Subject: Re: GDB with Ada doesn't print variables neither works with GPS
- References: <5fd4beb00707291452j430533b1q37f924b63fdc456c@mail.gmail.com> <5fd4beb00707291536k64988989t4d029e4390790ea0@mail.gmail.com>
> It seems I'm unable to print variables properly in GDB when debugging
> an Ada application. This is the best I can get:
>
> (gdb) p /c Hello_String.all
> $1 = (72 'H', 101 'e', 108 'l', 108 'l', 111 'o')
The only thing that you are missing here is the fact that this string
is not printed as a usual string but instead an array of characters.
I suspect that the reason that GDB does not identify your object as
a string is incomplete/incorrect debugging info.
What does ptype Hello_String.all say? It should say "array of
character". If it doesn't then, the GDB output is expected.
For your GPS issues, it's most likely an issue with your kernel
configuration, but I can't help you with that.
--
Joel