[prev in list] [next in list] [prev in thread] [next in thread]
List: gdb-patches
Subject: MI: type prefixes for values
From: ghost () cs ! msu ! su (Vladimir Prus)
Date: 2006-04-28 6:32:00
Message-ID: e2scu2$vvn$1 () sea ! gmane ! org
[Download RAW message or body]
Any comments on the patch I've send two weeks ago? Note that I'm not longer
interested in this patch myself, since I no longer use "--stack-list-frames
--all-values" in KDevelop, but I believe the patch affects the MI support
in Emacs that Nick is working on.
- Volodya
>> - print_frame_args, where it is used to deliberately print
>> only the address of a reference. I'm not entirely sure why.
>>
>> - Languages, to implement value_print - not relevant right now.
>
> It appears that 'common_val_print' has 'deref_ref' parameter which can be
> used to get back the old behaviour. However, then we'll again get no
> output if there's any undereferencable reference.
>
> I attach a patch that addresses this issue -- now, undereferencable
> references don't throw. For dereferencable references the value is printed
> after ":" as it is now.
>
> Changelog:
>
> 2006-04-04 Vladimir Prus <ghost@cs.msu.su>
>
> * c-valprint.c (c_val_print): Explicitly check if a reference
> is dereferencable.
> * valops.c (value_at_maybe): New function
> * value.h (value_at_maybe): Export.
> * mi/mi-cmd-stack.c (list_args_or_locals): Use 'common_val_print',
> instead of 'print_value_value'. Remove code duplication.
>
> Patch is attached.
>
> - Volodya
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MI_stack_list_locals_references.diff
Type: text/x-diff
Size: 4582 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20060428/f64e0947/attachment.bin>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic