-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add printer format (like /x) in DUEL #8
Comments
I'm not quite sure how to fit it into the language. In duel one can easily print many values of different types, like
or, more practical
So, may be something like
But if it's an operator, then it's not very clear what its precedence and how it applies to expressions, for example:
or even
|
Any news about this enhancement? Today, gdb does not care about the granularity of /x operator: it's all members. At least, such simple granularity is at least necessary in my point of view: I can't easily use dl to review a bunch of pointers. If you are able to define and implement a per-memeber operator, it would be a real plus. Can I help you in something? If you don't have time to implement this, I can try to do a PR, but I have to dive into your the source code, and I certainly will need your support. |
Thanks. It's not a question of time, it, probably, wouldn't need much time to implement. It's just that I don't understand how to fit the concept of these /x formats into duel. Simple |
I tried to dive into your parser, but I start from too far, and I don't really understand where I from where to start. Any hint on how to add a new parser entry? |
There is no need to modify the parser as such. I'd do something like if arg.startswith("/x"):
hex_mode=True
arg=arg[2:] |
IMO, there is a fundamental printing behavior missing here, the support of print format:
Anyway, I can't wait the next bug to really test DUEL, thanks!
The text was updated successfully, but these errors were encountered: