[lldb-dev] Command Aliases
"C. Bergström"
cbergstrom at pathscale.com
Tue Oct 22 18:37:23 PDT 2013
On 10/23/13 08:11 AM, jingham at apple.com wrote:
> On Oct 22, 2013, at 6:03 PM, C. Bergström <cbergstrom at pathscale.com> wrote:
>
>> On 10/23/13 07:53 AM, Michael Sartain wrote:
>>> I'd really like to add aliases for the following commands from gdb:
>> Two points from the peanut gallery
>>
>> 1) You won't be the only one wanting this - /* wtf they reinvented the wheel here... */
>> Multiword alias is one way to solve it - another might be a gdb-compat mode
>>
>> 2) Having a gdb compatible interface means being able to run the gdb testsuite - which afaik has a much superior DWARF testsuite than what's currently available to lldb
> Remember that a gdb compatibility mode sufficient for usefully running the gdb testsuite would mean compatibility in the details of the output printing, not just the command input. Even when working in gdb itself, you have to be very careful touching anything that affects output or you will cause massive testsuite failures (I speak from experience...) Implementing this in lldb would not be a simple task. The amount of effort it would require would be much more productively spent adding test cases to the extant test suite.
I speak from experience as well - I know precisely what you're talking
about, but is it really *that* bad? It's too bad this couldn't have been
a goal from the start. c'est la vie
More information about the lldb-dev
mailing list