This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: recursive user-defined commands and
>>>>> "Selcuk" == Selcuk Kopru <selcuk.kopru@tyazilimevi.com> writes:
Selcuk> Thanks for the reply. I'm making progress but was not able to
Selcuk> solve the problem yet. The following 3 examples didn't work, all
Selcuk> giving "A syntax error in expression, near `)malloc(..."
Selcuk> message:
Selcuk> 1) set variable $myvar = (List<CLECSFeatValue>::LNode**)malloc(10 *
Selcuk> sizeof(List<CLECSFeatValue>::LNode*))
Yes, casts with qualified types often do not work. This is a bug in
GDB.
Sometimes putting single quotes around the type helps.
FWIW, I believe Keith has basically killed this bug on his branch in the
archer repository. He's submitting this patch series now.
Tom