Skip to content

[BUG] gdb-log: multi-line commands break hichligting and input requests are not highlighted correctly #44

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

Open
GitMensch opened this issue Apr 10, 2025 · 1 comment
Labels
bug Something isn't working postponed Can't work on it right now

Comments

@GitMensch
Copy link
Contributor

Describe the bug
multi-line commands in gdb log are shown with a leading > which breaks its highlighting; also: after the >end the highlighting does not work any more and lastly: gdb prompts are colored, not sure if that's possible but don't highlight those (or using a dark gray) would be useful, at least the free standing " a " should not be colored.

Expected behavior

  • similar highlighting to gdb syntax

log:

  (gdb) continue
  Continuing.
  ^C                                                                                                                                                                                                                                                                                 
  Program received signal SIGINT, Interrupt.
  0x9affb062b0f7 in testme () from /some/lib.so
  (gdb) commands
  Type commands for breakpoint(s) 4, one per line.
  End with a line saying just "end".
  >silent
  >break somefunc
  >end
  (gdb) break test.c:1098
  Breakpoint 5 at 0x7fffb062b0f7: file /tmp/test.c, line 1098.
  (gdb) c
  Continuing.

current highlighting:
Image

as script:

continue
commands
  silent
  break somefunc
end
break test.c:1098
c

Image

@GitMensch GitMensch added the bug Something isn't working label Apr 10, 2025
@pirpyn
Copy link
Owner

pirpyn commented Apr 28, 2025

Sure, i forgot to handle the >.
About the commands info line being rendered as if it was gdb script, i never tought of that.

I don't have the bandwith right now, maybe in a few weeks

@pirpyn pirpyn added the postponed Can't work on it right now label Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working postponed Can't work on it right now
Projects
None yet
Development

No branches or pull requests

2 participants