DerekSelander / LLDB

A collection of LLDB aliases/regexes and Python scripts to aid in your debugging sessions
GNU General Public License v2.0
1.77k stars 198 forks source link

Change command names #10

Closed cclamb closed 5 years ago

cclamb commented 5 years ago

Would you be opposed to changing some of the command names? I have some name collisions I'd like to avoid. I can make the change and submit a pull request if you're cool with it.

DerekSelander commented 5 years ago

Reluctant to change the names around since they are tied to lessons in the debugging book but I’ll consider making a renaming functionality so you can override the command names

simsong commented 5 years ago

You can create new names and have the old names be aliases for the new names!

DerekSelander commented 5 years ago

You know what, @simsong is right, @cclamb, you can put my script importer at the start of your ~/.lldbinit file. Redeclare my commands to your new desired names, and then declare your custom commands after mine.

So let's say you wanted to change my search command to yay_search, My ~/.lldbinit would look like the following:

command script import /Users/derekselander/lldb_repo/lldb_commands/dslldb.py
command script add -f search.search yay_search

# your custom commands heres