Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Richard Earnshaw <rearnsha@arm.com>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: Richard.Earnshaw@arm.com, gdb-patches@sources.redhat.com
Subject: Re: Infinite loop in make_cv_type
Date: Fri, 22 Feb 2002 11:07:00 -0000	[thread overview]
Message-ID: <200202221906.TAA07621@cam-mail2.cambridge.arm.com> (raw)
In-Reply-To: Your message of "Fri, 22 Feb 2002 18:45:29 GMT." <200202221845.SAA06227@cam-mail2.cambridge.arm.com>

This gets even more bizarre.  I set a some breakpoints, one on 
make_cv_type, and another on dbx_next_symbol_text.  Now at the point of 
making the cv variant for the first time the previous call to 
dbx_next_symbol_text had returned

$736 = 0x509b43 "__comp_ctor::811:_ZNSt14_STL_auto_lockC1ERSt15_STL_mutex_l
ock;2A.;__base_dtor::813=#810,21,812,21;:_ZNSt14_STL_auto_lockD2Ev;2A.;\\"
(top-gdb) 

But going up the stack from make_cv_type we find:

(top-gdb) up
#1  0x000dac20 in read_type (pp=0xefbfca04, objfile=0x297000)
    at /nfs/sun18/work/rearnsha/gnusrc/src/gdb/src/gdb/stabsread.c:2682
2682          type = make_cv_type (TYPE_CONST (type), 1, type,
(top-gdb) p *pp
$737 = 0x509c1d ",21;:_ZNSt14_STL_auto_lockaSERKS_;0A.;\\"

But this is part of the text that is returned by the next call to 
dbx_next_symbol_text...

(top-gdb) c
Continuing.

Breakpoint 12, dbx_next_symbol_text (objfile=0x297000)
    at /nfs/sun18/work/rearnsha/gnusrc/src/gdb/src/gdb/dbxread.c:999
999     }
$738 = 0x509bc6 "__comp_dtor::813:_ZNSt14_STL_auto_lockD1Ev;2A.;operator=::
814=#810,21,812,815=&816=k810,21;:_ZNSt14_STL_auto_lockaSERKS_;0A.;\\"

Any suggestions as to how the stabs reader might be getting ahead of 
itself?  Is there another function that might be returning the stabs 
string?  I don't think dbx_next_symbol_text has ever returned this 
earlier...

R.


  reply	other threads:[~2002-02-22 19:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-22  3:41 Richard Earnshaw
2002-02-22  7:55 ` Daniel Jacobowitz
2002-02-22  9:24   ` Michael Snyder
2002-02-22  9:41     ` Richard Earnshaw
2002-02-22 10:33     ` Daniel Jacobowitz
2002-02-22 10:22   ` Richard Earnshaw
2002-02-22 10:38     ` Daniel Jacobowitz
2002-02-22 10:46       ` Richard Earnshaw
2002-02-22 11:07         ` Richard Earnshaw [this message]
2002-02-22 11:45           ` Richard Earnshaw
2002-02-22 11:52             ` 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=200202221906.TAA07621@cam-mail2.cambridge.arm.com \
    --to=rearnsha@arm.com \
    --cc=Richard.Earnshaw@arm.com \
    --cc=drow@mvista.com \
    --cc=gdb-patches@sources.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