This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH v2 0/2] Optzd-out ptr: Error handling improvement
- From: Don Breazeal <donb at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>, <palves at redhat dot com>, <lgustavo at codesourcery dot com>
- Date: Mon, 28 Mar 2016 14:33:38 -0700
- Subject: [PATCH v2 0/2] Optzd-out ptr: Error handling improvement
- Authentication-results: sourceware.org; auth=none
- References: <56CEF1F5 dot 7060307 at redhat dot com>
This patchset is follows up on a patch submitted about a month ago,
which eliminated an error caused by an MI -var-create request for
an optimized-out pointer-to-struct. When 'set print object' is 'on',
GDB tries to obtain the actual type rather than the declared type,
and to do so must dereference the pointer, which is impossible because
it has been optimized out.
The original patch did not include a test; that has now been added.
Patch 1/1: New test for accessing optimized-out pointer-to-struct.
Patch 2/2: The original patch, which eliminates the error when
accessing an optimized-out-pointer.
The fix was regression tested on a PowerPC board with a Linux x86 host,
and the test was tested on native Linux x86_64.
Thanks,
--Don