This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]