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 > > * 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