This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: partially fix empty DW_OP_piece
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Sat, 15 May 2010 00:35:21 +0200
- Subject: Re: RFC: partially fix empty DW_OP_piece
- References: <m3vdars0hy.fsf@fleche.redhat.com>
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