This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Fix broken -D option for breakpoint set command
ClosedPublic

Authored by poya on Oct 25 2019, 2:45 AM.

Details

Summary

BreakpointDummyOptionGroup was using g_breakpoint_modify_options rather than g_breakpoint_dummy_options causing the -D option for breakpoint set command to be incorrectly parsed.

Diff Detail

Event Timeline

poya created this revision.Oct 25 2019, 2:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 25 2019, 2:45 AM

Ack, yes. That's definitely wrong. Could you write a test for this to make sure we don't break it in the future. This should fail if you make one target, set a breakpoint with the -D option, then make a second target and check that it has the breakpoint, so it should be pretty easy to write the test? That way I won't break it again...

poya added a comment.Oct 27 2019, 11:33 PM

Sure, I'll try to add a test in test/Shell/Breakpoint once I get the tests up and running on my machine.

poya updated this revision to Diff 227406.Nov 1 2019, 1:53 AM

Added a test

jingham accepted this revision.Nov 1 2019, 10:14 AM

LGTM, thanks!

This revision is now accepted and ready to land.Nov 1 2019, 10:14 AM
poya added a comment.Nov 2 2019, 12:03 AM

No commit access, so would need some assistance getting this change into the repo.

This revision was automatically updated to reflect the committed changes.

No commit access, so would need some assistance getting this change into the repo.

I pushed this (f1539b9db39a59a5e50c065c39e491ba4f890377).