This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Stabs: constant string, constant boolean
- From: Daniël Mantione <daniel at deadlock dot et dot tudelft dot nl>
- To: Ian Lance Taylor <ian at wasabisystems dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Tue, 27 Jan 2004 09:39:43 +0100 (CET)
- Subject: Re: Stabs: constant string, constant boolean
On 26 Jan 2004, Ian Lance Taylor wrote:
> Looking at the code, I see that gdb only supports the 'r', 'i', and
> 'e' types. The 'b', 'c', 's', and 'S' types are documented, but not
> supported.
>
> I note this in the docs:
>
> The boolean, character, string, and set constants are not
> supported by GDB 4.9, but it ignores them.
>
> This is not entirely unreasonable, as the 'b', 'c', 's', and 'S' types
> are short on type information. I think it would normally be better to
> use 'e' instead of 'b' or 'c'. I suppose that 's' and 'S' aren't seen
> as an issue since they won't arise in C.
Thanks for the info, even though that is pretty bad news :(
Constant sets & strings do exist in Pascal, i.e.:
const str1='blablabla';
set1=['b','l','a'];
I know our former team member Pierre Muller contributed some patches to
add Pascal support to gdb, but apparently not to support these...
Alas, Pierre has stopped with Free Pascal development; I'm currently
trying to give some life-support to the debug-info generation he wrote.
Greetings,
Daniël