This is the mail archive of the gdb-patches@sourceware.org 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: RFC: partially fix empty DW_OP_piece


On Fri, 14 May 2010 04:03:37 +0200, Tom Tromey wrote:
> The other way is to simply remove val_print entirely and make all of
> printing work using values.  I think this is the route I would prefer.

That could hopefully solve the problem of missing type-associated object
address for DW_OP_push_object_address for the VLA (variable length arrays)
patch.


> @@ -366,6 +366,14 @@ read_pieced_value (struct value *v)
> +	case DWARF_VALUE_OPTIMIZED_OUT:
> +	  /* We just leave the bits empty for now.  This is not ideal
> +	     but gdb currently does not have a nice way to represent
> +	     optimized-out pieces.  */
> +	  warning (_("some bits in computed object were optimized out; "
> +		     "replacing with zeroes"));
> +	  break;

If it would go in I would prefer to at least print the bit/byte range.



Thanks,
Jan


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