Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

breakpoint at line number? #24

Open
wchmb opened this issue Feb 13, 2025 · 2 comments
Open

breakpoint at line number? #24

wchmb opened this issue Feb 13, 2025 · 2 comments

Comments

@wchmb
Copy link

wchmb commented Feb 13, 2025

Hi @gdbinit, thank you for your efforts

Before I found lldbinit, I used to set breakpoints at line numbers like b <filename> :<line-number>

I want to use lldbinit, but I'm unable to set my breaks because the default alias replacement:
ci.HandleCommand("command unalias b", res)

How can I do that? I'm sure others will benefit from my newbie question

@gdbinit
Copy link
Owner

gdbinit commented Feb 22, 2025

You will need to remove the alias or replace with something else so you can use the original alias if you really want the 'b' shortcut.

Otherwise you can use the full command (help break set) and specify the file and line numbers via arguments since 'b' is itself an alias in default lldb.

Or you can improve the lldbinit command associated to the new 'b' alias and support the line breakpoints.

Probably just easier to use the full command for those specific situations. lldbinit is 99,9% built towards binary only debugging so source based support is not very interesting to me.

@wchmb
Copy link
Author

wchmb commented Mar 5, 2025

Thanks. I find lldbinit interesing alongside the code.

If I've enough time to support line breaks, you'd accept PR? or would it be better to fork?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants