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]

[PATCH v2 0/2] Optzd-out ptr: Error handling improvement


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


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