public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: Tom Tromey <tromey@redhat.com>, gdb-patches@sourceware.org
Subject: Re: Crash regression gdb.cp/no-dmgl-verbose.exp: Re: [RFA 2/3] Ada: allow unqualified function names in linespecs
Date: Fri, 27 Jan 2012 05:25:00 -0000	[thread overview]
Message-ID: <20120127051509.GV31383@adacore.com> (raw)
In-Reply-To: <20120127032004.GA3772@host2.jankratochvil.net>

Hi Jan,

> On Thu, 26 Jan 2012 11:21:48 +0100, Jan Kratochvil wrote:
> > 	http://people.redhat.com/jkratoch/no-dmgl-verbose.o.gz
> > 	./gdb -nx no-dmgl-verbose.o -ex "break 'f(std::string)'"
> > 	[...]
> > 	Reading symbols from no-dmgl-verbose.o...done.
> > 	Segmentation fault
> 
> Yes, not a real regression, filed for it PR 13627::
> 	multiple .debug_types per objfile are not supported
> 	http://sourceware.org/bugzilla/show_bug.cgi?id=13627

I'm trying to understand how the patch you quoted could have been
triggering the problem, even if it was already a latent bug. As far
as I can tell, for non-Ada units, the only difference is that
I replaced a call to strcmp_iw_ordered by a call to strcmp_iw.

What if you put strcmp_iw_ordered back in the following hunk?

    @@ -349,6 +360,13 @@ iterate_over_all_matching_symtabs (const char *name,
     {
       struct objfile *objfile;
       struct program_space *pspace;
    +  struct symbol_matcher_data matcher_data;
    +
    +  matcher_data.lookup_name = name;
    +  matcher_data.symbol_name_match_p =
    +    current_language->la_get_symbol_name_match_p != NULL
    +    ? current_language->la_get_symbol_name_match_p (name)
    +    : strcmp_iw;
 
Would that mask the crash? If it did, I would *not* understand why,
but that's the only change of behavior I can see from the patch.
I couldn't find out much from the backtraces themselves...

-- 
Joel

  reply	other threads:[~2012-01-27  5:15 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-14 14:36 [RFC] " Joel Brobecker
2011-12-20 15:24 ` Tom Tromey
2011-12-21 14:08   ` Joel Brobecker
2011-12-23 10:39     ` [commit/Ada 1/3] New function ada-lang.c:should_use_wild_match Joel Brobecker
2011-12-27  4:27       ` Checked in: " Joel Brobecker
2011-12-23 10:39     ` unqualified function names in linespecs in Ada... (try #2) Joel Brobecker
2011-12-23 10:39     ` [RFA 2/3] Ada: allow unqualified function names in linespecs Joel Brobecker
2012-01-12  3:13       ` Joel Brobecker
2012-01-19 15:40       ` Joel Brobecker
2012-01-24 19:41       ` Tom Tromey
2012-01-26  4:23         ` Joel Brobecker
2012-01-26 10:22           ` Crash regression gdb.cp/no-dmgl-verbose.exp: " Jan Kratochvil
2012-01-26 10:55             ` Jan Kratochvil
2012-01-27  5:15             ` Jan Kratochvil
2012-01-27  5:25               ` Joel Brobecker [this message]
2012-01-27 17:09                 ` [patch] Fix the 2012-01-26 regression by la_get_symbol_name_match_p [Re: Crash regression gdb.cp/no-dmgl-verbose.exp] Jan Kratochvil
2012-01-27 19:27                   ` Joel Brobecker
2012-01-27 20:33                     ` [commit] " Jan Kratochvil
2011-12-23 11:01     ` [RFA 3/3] Remove language param from name_matcher in struct quick_symbol_functions Joel Brobecker
2012-01-12  4:30       ` Joel Brobecker
2012-01-19 15:47       ` Joel Brobecker
2012-01-24 19:45       ` Tom Tromey
2012-01-26  4:57         ` Joel Brobecker
2012-01-24 19:17     ` [RFC] allow unqualified function names in linespecs Tom Tromey

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=20120127051509.GV31383@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.kratochvil@redhat.com \
    --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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).