Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Robert Norton" <rnorton@broadcom.com>
To: "Nick Roberts" <nickrob@snap.net.nz>
Cc: gdb@sourceware.org
Subject: RE: Segfault in varobj.c
Date: Fri, 27 Jul 2007 13:07:00 -0000	[thread overview]
Message-ID: <B0D822BFECD50F4991F2516EA50F273C01FEB544@NT-IRVA-0752.brcm.ad.broadcom.com> (raw)
In-Reply-To: <18089.57854.615639.287461@kahikatea.snap.net.nz>

> -----Original Message-----
> From: Nick Roberts [mailto:nickrob@snap.net.nz] 
> Sent: 27 July 2007 13:16
> To: Robert Norton
> Cc: gdb@sourceware.org
> Subject: RE: Segfault in varobj.c
> 
>  > > This is your port of GDB and it's based on an old 
> version of FSF GDB.
>  > > Does it happen with FSF GDB or, at least, your port 
> based on up-to-date
>  > > FSF GDB?
>  > 
>  > The port is based on GDB 6.6.
> 
> By up-to-date I meant GDB in CVS.  Presumably you could merge 
> your changes to
> that.  It may be that the problem has already been solved or 
> no longer exists
> in the repository.

Ah yes, I see there are quite a lot of changes to the varobjs file. In
particular the warning is no longer present. Unfortunately we're not
really in a position to upgrade to fix such a trivial bug, but due to my
analysis below I think the bug might still occur:

Breakpointing in c_type_of_child (now c_describe_child) we end up in the
default case of the switch because the parent has type code
TYPE_CODE_TYPEDEF, so could it be that the switch requires another case
to handle this situation? I'll see if I can come up with a minimal test
binary based on this.

Thanks,

Robert

> -- 
> Nick                                           
> http://www.inet.net.nz/~nickrob
> 
> 


  reply	other threads:[~2007-07-27 12:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-27 11:51 Robert Norton
2007-07-27 12:03 ` Nick Roberts
2007-07-27 12:16   ` Robert Norton
2007-07-27 12:52     ` Nick Roberts
2007-07-27 13:07       ` Robert Norton [this message]
2007-07-27 14:30         ` Daniel Jacobowitz

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=B0D822BFECD50F4991F2516EA50F273C01FEB544@NT-IRVA-0752.brcm.ad.broadcom.com \
    --to=rnorton@broadcom.com \
    --cc=gdb@sourceware.org \
    --cc=nickrob@snap.net.nz \
    /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