[mi] -stack-list-arguments --simple-values

Vladimir Prus vladimir@codesourcery.com
Wed Jul 1 17:34:00 GMT 2009


On Wednesday 01 July 2009 Nick Roberts wrote:

>  > This patch makes -stack-list-arguments --simple-values work.
>  > It looks like --simple-values (and friends) were accepted for
>  > -stack-list-locals, but not for -stack-list-arguments. While
>  > the utility of such human friendly spelling is unclear, for
>  > a machine interface, it's even more confusing having 1/2
>  > of relevant commands accept it.
> 
> It's not immediately clear from the manual that SHOW-VALUES from
> -stack-list-arguments and PRINT-VALUES from -stack-list-locals are related.
> -stack-list-arguments takes three arguments while -stack-list-locals only
> takes -one.  I think it would be nice to have one command,
> -stack-list-locals-and-args say, that lists both the locals and the arguments
> of the current frame:

It would be nice indeed. However, I have not entirely designed how a frontend
should actually work with locals and arguments, so I did not do anything
like that -- just fixed obvious inconsistency between existing commands.

- Volodya



More information about the Gdb-patches mailing list