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

PrintPoint fail with syntax error. #31

Closed
epasveer opened this issue Feb 11, 2022 · 4 comments · Fixed by #277
Closed

PrintPoint fail with syntax error. #31

epasveer opened this issue Feb 11, 2022 · 4 comments · Fixed by #277
Assignees
Labels
bug Something isn't working

Comments

@epasveer
Copy link
Owner

Setting a PrintPoint fails.

Loop %d of %d\n
K L1

Error Message:

breakpoint-modified,bkpt={number="2",type="dprintf",disp="keep",enabled="y",addr="0x00007ffff5c3f8c4",func="cfftx",file="sssMathlib.f",fullname="/home/erniep/Development/Peak/src/Core/Math/sssMathlib.f",line="1073",thread-groups=["i1"],times="1",script={"call (void) printf ("Loop %d of %d\
",K,L1)"},original-location="-source /home/erniep/Development/Peak/src/Core/Math/sssMathlib.f -line 1073"}
Invalid character '"' in expression.
@epasveer
Copy link
Owner Author

Might be related to Fortran source files. Seems to work with C/C++ files.

@epasveer epasveer self-assigned this Feb 15, 2022
@epasveer
Copy link
Owner Author

Definitely related to Fortran code. C/C++ files are fine. Will work on this later. I might need to submit a bug report to gnu/gdb.

@epasveer
Copy link
Owner Author

Here's a recent link on using dprintf. It may help.

https://abstractexpr.com/2024/03/03/dynamic-printf-debugging-with-gdb/

@epasveer epasveer pinned this issue Dec 8, 2024
@epasveer epasveer added the bug Something isn't working label Dec 9, 2024
@epasveer epasveer linked a pull request Dec 23, 2024 that will close this issue
@epasveer
Copy link
Owner Author

Call style printpoints don't support Fortran. Use gdb style printpoints.

@epasveer epasveer unpinned this issue Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant