RFC (gdb/mi): -stack-list-locals + REVISED PATCH

Jason Molenda jmolenda@apple.com
Wed Dec 10 22:26:00 GMT 2003


On Dec 10, 2003, at 9:56 AM, Andrew Cagney wrote:

> and then the very mechanical:
>
>   enum print_values print_values;
>
>   if (strcmp (argv[0], "0") == 0
>       || strcmp (argv[0], "no-values") == 0)
>     print_values = PRINT_NO_VALUES;
>   else if (strcmp (argv[0], "1") == 0
>            || strcmp (argv[0], "all-values") == 0)
>     print_values = PRINT_ALL_VALUES;
>   else if (strcmp (argv[0], "simple-values") == 0)
>     print_values = PRINT_SIMPLE_VALUES;
>   else
>     error ("...");


This would be a help for us at Apple, as well.  Right now we have a 
non-standard meaning for -stack-list-locals 2, and the FSF gdb will 
have a different meaning for 2 with this patch going in.  No complaints 
or anything, but it's unpleasant.  If 1 == all-values and there is a 
new 'simple-values' (or whatever) added, we can easily add a 
'apple-values' which are the particular things our GUI wants without 
fear of conflicting.


Jason



More information about the Gdb-patches mailing list