[PATCH] Allow 'ptype/o' for assembly

Keith Seitz keiths@redhat.com
Tue Nov 8 21:19:57 GMT 2022


On 11/8/22 12:14, Tom Tromey via Gdb-patches wrote:
> PR exp/28359 points out that 'ptype/o' does not work when the current
> language is "asm".
> 

I hesitate to bring this up, but...

Why would the current language matter in this case?
[I understand that the print options are set before
the expression is evaluated...]

Since we have the type of the symbol, couldn't we
simply use that? Maybe it's not worth being so
pedantic?

In any case, it LGTM. I recommend you approve your patch.

Keith



More information about the Gdb-patches mailing list