8000 breakpoint at line number? · Issue #24 · gdbinit/lldbinit · GitHub
[go: up one dir, main page]

Skip to content

breakpoint at line number? #24

Open

Description

@wchmb

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

Activity

  1. gdbinit commented on Feb 22, 2025

    @gdbinit
    Owner

    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.

  2. wchmb commented on Mar 5, 2025

    @wchmb
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0