This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Eliminate -var-create error for optzd ptr to struct
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Don Breazeal <donb at codesourcery dot com>
- Cc: <gdb-patches at sourceware dot org>, <qiyaoltc at gmail dot com>
- Date: Mon, 04 Apr 2016 11:41:58 +0100
- Subject: Re: [PATCH] Eliminate -var-create error for optzd ptr to struct
- Authentication-results: sourceware.org; auth=none
- References: <1459526505-19291-1-git-send-email-donb at codesourcery dot com>
Don Breazeal <donb@codesourcery.com> writes:
> Note that we if value_optimized_out throws an error we just assume
> the value is not optimized out. We let value_rtti_indirect_type
> handle any errors, and don't try to duplicate its error handling.
I am wondering why does value_optimized_out have to throw an error?
Can't we catch the error in value_optimized_out thrown by
value_fetch_lazy?
I am not very sure on this idea, but I searched the archive, and didn't
find anything say we can't do that.
--
Yao (éå)