This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Fix gdb segv in dw2_find_pc_sect_symtab
- From: Pedro Alves <palves at redhat dot com>
- To: Doug Evans <dje at google dot com>
- Cc: gdb-patches at sourceware dot org, tromey at redhat dot com
- Date: Fri, 25 May 2012 09:58:08 +0100
- Subject: Re: [RFA] Fix gdb segv in dw2_find_pc_sect_symtab
- References: <20120525073937.428851E139F@ruffy2.mtv.corp.google.com>
On 05/25/2012 08:39 AM, Doug Evans wrote:
> Hi.
>
> While testing my search_symbols speedup patch I hit a gdb segv,
> and traced it to the fact that addresses of minsyms can appear
> in psymtabs_addrmap but not appear in the symtab blockvectors.
When can this happen?
>
> This patch fixes this by using the symtab found from
> psymtabs_addrmap if a symtab isn't found in the blockvectors.
>
> Ok to check in?
--
Pedro Alves