This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Stabs: constant string, constant boolean


On Tue, Jan 27, 2004 at 09:39:43AM +0100, Daniël Mantione wrote:
> 
> 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.

<plug>

If you're working on new code, why not use dwarf2 instead?

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]