-
Notifications
You must be signed in to change notification settings - Fork 588
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
wrap rr macros restart and jump in python #3867
Conversation
fixes rr-debugger#3859 warnings during startup
Looks like it is working - CI fails with an unrelated error during build:
|
This commit causes a regression on both Fedora 40 (has A few tests start failing. e.g. |
Can you please give some details on the failure? "Doesn't work" is hardly something I can work with :-/ |
I think the problem is you're having Replace Maybe you need a trailing (On another note, does GitHub Actions not run on Fedora?) p/s: sorry, didn't have time to send a PR myself. |
Sorry -- I didn't have time to debug the issue. I simply reverted the commit and saw the tests working again. Are you able to run the test |
Looking at the "Details" button where this commit was merged it does not seem the CI tests were run at all. @GitMensch
|
Ah, yes, that makes sense: executing |
@user202729 was correct in their analysis. The following diff causes the test to pass again. --- a/src/launch_debugger.cc
+++ b/src/launch_debugger.cc
@@ -50,8 +50,8 @@ static const string& gdb_rr_macros() {
ss << DebuggerExtensionCommandHandler::gdb_macros()
// gdb warns about redefining inbuilt commands, silence that by
// wrapping it in python code
- << "python gdb.execute('define jump\nrr-denied jump\nend')"
- << "python gdb.execute('define restart\nrun c$arg0\nend')"
+ << "python gdb.execute('define jump\\nrr-denied jump\\nend')\n"
+ << "python gdb.execute('define restart\\nrun c$arg0\\nend')\n"
<< "document restart\n"
<< "restart at checkpoint N\n"
<< "checkpoints are created with the 'checkpoint' command\n" |
missing CXX string escape for \n
missing CXX string escape for \n
missing CXX string escape for \n
@GitMensch The commit that you added to GitMensch@9f7c2fc will not work as you need a Nevermind -- I see you added that in GitMensch@fae42c2 -- Cool ! |
Should be fixed with #3869 ... which in the end ended with exactly the diff from above. |
missing CXX string escape for \n
fixes #3859 warnings during startup