This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: avoid creating inter-objfile type pointers
- From: Daniel Jacobowitz <drow at false dot org>
- To: Jim Blandy <jimb at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 4 Nov 2004 10:16:17 -0500
- Subject: Re: RFA: avoid creating inter-objfile type pointers
- References: <vt27jp2ccks.fsf@zenia.home>
On Thu, Nov 04, 2004 at 02:12:19AM -0500, Jim Blandy wrote:
>
> This fixes a bug that causes incorrect output and crashes, and which
> is not caught by the current test suite. A test could be easily added
> to shlib-call.exp to catch this; I'll try to give that a shot in a
> bit.
>
> 2004-11-04 Jim Blandy <jimb@redhat.com>
>
> * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
> prevent cross-objfile references.
> (make_cv_type): Doc fix. Don't create cross-objfile references,
> even for stub types.
> (replace_type): Add assertion to prevent cross-objfile references.
> (check_typedef): Never resolve a stub type by copying over a type
> from another file.
Oopsie. This looks sane to me.
--
Daniel Jacobowitz