This idea came to me as I was debugging the debugger (lol
) plugin. There's usually the construct
cmd << _T("something") << variable << _T("something")
and I was wondering...
Why not store those commands in a hash table? Templated, that is. Like:
myhashtable["breakpoint"] = _T("something {$varname} something")
like it's done with the compiler plugin? In this case, $varname would be one of many predefined variables. (Or even better, store those in an XML file! )
I'm sure this would enable us to add support for other debuggers besides gdb.
What do you think?