From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Tom Tromey <tromey@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch] Fix crash on NULL function's TYPE_FIELD_TYPE
Date: Wed, 31 Mar 2010 18:14:00 -0000 [thread overview]
Message-ID: <20100331181439.GA4272@host0.dyn.jankratochvil.net> (raw)
In-Reply-To: <m3mxxpwxql.fsf@fleche.redhat.com>
On Tue, 30 Mar 2010 19:00:34 +0200, Tom Tromey wrote:
> >>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
>
> Jan> 2010-03-30 Jan Kratochvil <jan.kratochvil@redhat.com>
> Jan> Fix crash on reading wrong function declaration DWARF.
> Jan> * dwarf2read.c (read_subroutine_type): New variable void_type.
> Jan> Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
> Jan> more close to their use.
>
> Jan> 2010-03-30 Jan Kratochvil <jan.kratochvil@redhat.com>
> Jan> * gdb.dwarf2/dw2-bad-parameter-type.exp,
> Jan> gdb.dwarf2/dw2-bad-parameter-type.S: New.
[..]
> This is ok.
Checked in:
http://sourceware.org/ml/gdb-cvs/2010-03/msg00302.html
> I'm not super happy about this change, since it seems so ad hoc. Is it
> really only the field type that must be set? Or are there other things
> as well? But at the same time it is hard to see what else we could do.
This function read_subroutine_type really only sets TYPE_FIELD_TYPE.
It also determines the boolean TYPE_FIELD_ARTIFICIAL but it is apparent it can
be set either way and nobody cares much after reading debug info has errored
out.
I understand calling error during debug info reading is very fragile operation
but whether there are / are not bugs in other code regarding such error
recovery / cleanup is outside of the scope of this patch as it can equally
affect also other read_*_type functions IMO.
Thanks,
Jan
prev parent reply other threads:[~2010-03-31 18:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-30 8:38 Jan Kratochvil
2010-03-30 17:00 ` Tom Tromey
2010-03-31 18:14 ` Jan Kratochvil [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100331181439.GA4272@host0.dyn.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=tromey@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox