From: Daniel Jacobowitz <dmj+@andrew.cmu.edu>
To: Elena Zannoni <ezannoni@cygnus.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [rfa] eliminate some annoying mdebug-related symtab crashes
Date: Fri, 20 Jul 2001 18:31:00 -0000 [thread overview]
Message-ID: <20010720183150.A23780@nevyn.them.org> (raw)
In-Reply-To: <15192.59353.70860.131763@krustylu.cygnus.com>
On Fri, Jul 20, 2001 at 10:24:25PM -0400, Elena Zannoni wrote:
> Oh dear, I feel ill. Where is the paper bag, quick! So, the || check
> before calling init_psymbol_list works if the two lists are kind of in
> synch. They are grown/allocated together. They are both zero at
> start, and they get initialized both to the same size in
> init_psymbol_lists.
Exactly.
> Mon Apr 8 23:57:43 1991 John Gilmore (gnu at cygint.cygnus.com)
>
> * dbxread.c (dbx_symfile_read): Initialize psymbol list if this
> is the first symbol read, even if not mainline.
>
> I would think that extend_psymbol_list was introduced afterwards, and
> this broke the logic of Gilmore's change.
>
> So what to do? I am kind of convinced that your patch is
> correct. But..., is there any chance you can run the gdb testsuite
> before and after your changes on a couple of platforms that have at
> least dwarf2 and stabs debug info (I mean separately, not in the same
> objfile)?
I'll try to do this and get back to you about it next week.
> Another alternative would be to insert a call to
> init_psymbol_lists(objfile, NUM_OF_SYMBOLS) somewhere in mdebugread.c.
I didn't do that because I couldn't find a reasonable NUM_OF_SYMBOLS,
but I could just use a hardcoded guess like some of the other symbol
readers do, I suppose. I'd rather fix it as I proposed; I'll run those
testsuites and see what I can turn up.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
next prev parent reply other threads:[~2001-07-20 18:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-09 15:11 Daniel Jacobowitz
[not found] ` <15192.48720.958756.789421@krustylu.cygnus.com>
2001-07-20 15:47 ` Daniel Jacobowitz
2001-07-20 18:25 ` Elena Zannoni
2001-07-20 18:31 ` Daniel Jacobowitz [this message]
2001-07-23 23:54 ` 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=20010720183150.A23780@nevyn.them.org \
--to=dmj+@andrew.cmu.edu \
--cc=ezannoni@cygnus.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