GDBMI. debug ada programs
Vladimir Prus
ghost at cs.msu.su
Mon Jun 19 14:26:44 UTC 2006
On Monday 19 June 2006 08:17, Matt Rogers wrote:
> On Thursday 15 June 2006 03:20, Василий wrote:
> > Hi. I write patch for hiding internals ada variables like this <L23b>,
> > <B56k> ... for example:
> > kdevelop (debugger): REPLY:
> > ^done,locals=[name="icao_code",name="coordinate",name="internal_code",nam
> >e=
> > patch attached.
>
> to me, the patch looks fine, but i'd like to see what our debugger guru
> will say about it.
Looks good to me as well, except that:
- there should be a comment saying this is to hide Ada variables
- the variable will be either the name starts with '<' or ends with '>'.
IIUC, ada variables both start and end with '<', so a better approach is:
bool is_ada_var = val[0] == '<' && val[val.length()-1] == '>';
if (!is_ada_var)
....
Vasily, would you mind adjusting this patch and sending again.
Thanks,
Volodya
More information about the KDevelop-devel
mailing list