Skip to content

perl5db.pl: "c subname" and "b subname" break on first executable line if possible #22379

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

Merged
merged 4 commits into from
Jul 22, 2024

Conversation

tonycoz
Copy link
Contributor

@tonycoz tonycoz commented Jul 4, 2024

Fixes #799

@tonycoz tonycoz marked this pull request as draft July 4, 2024 23:00
@tonycoz tonycoz force-pushed the 799-break-first-sub-line branch from 8c516c3 to 041b13c Compare July 8, 2024 04:36
@tonycoz
Copy link
Contributor Author

tonycoz commented Jul 8, 2024

What I pushed last week was a bit undercooked.

@mauke, thanks for the feedback, I think I've fixed each of the problems you mentioned, and a few more.

@tonycoz tonycoz force-pushed the 799-break-first-sub-line branch from 041b13c to f83b6ee Compare July 9, 2024 00:10
@tonycoz tonycoz force-pushed the 799-break-first-sub-line branch from f83b6ee to 64c8012 Compare July 9, 2024 23:05
@mauke
Copy link
Contributor

mauke commented Jul 9, 2024

Looks good to me.

tonycoz added 4 commits July 16, 2024 10:32
This currently doesn't try to handle "b postpone subname" since that
internally has an offset function that doesn't really work
with this implementation.

This is a partial fix for Perl#799
and just plain fix "b postpone subname", which didn't stop at all
on my postponed sub test code at all as far back at 5.10.

Fixes Perl#799
I've just been looking at the implementation, and there's no
test, so add one.
@tonycoz tonycoz force-pushed the 799-break-first-sub-line branch from 64c8012 to 55eec59 Compare July 16, 2024 06:17
@tonycoz tonycoz marked this pull request as ready for review July 17, 2024 05:00
@tonycoz
Copy link
Contributor Author

tonycoz commented Jul 18, 2024

added b postpone support

@tonycoz tonycoz merged commit fd9c3b2 into Perl:blead Jul 22, 2024
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

Successfully merging this pull request may close these issues.

Debugger: Break gets set on wrong subroutine
2 participants