This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 2/2] Check function is GC'ed
- From: Pedro Alves <palves at redhat dot com>
- To: Yao Qi <yao at codesourcery dot com>, gdb-patches at sourceware dot org
- Date: Wed, 20 Aug 2014 16:40:42 +0100
- Subject: Re: [PATCH 2/2] Check function is GC'ed
- Authentication-results: sourceware.org; auth=none
- References: <53D8A264 dot 1050103 at codesourcery dot com> <1407307813-5321-1-git-send-email-yao at codesourcery dot com> <1407307813-5321-2-git-send-email-yao at codesourcery dot com>
On 08/06/2014 07:50 AM, Yao Qi wrote:
> @@ -17291,7 +17293,12 @@ dwarf_decode_lines_1 (struct line_header *lh, const char *comp_dir,
> case DW_LNE_set_address:
> address = read_address (abfd, line_ptr, cu, &bytes_read);
>
> - if (address == 0 && !dwarf2_per_objfile->has_section_at_zero)
> + if (!decode_for_pst_p)
> + pst = cu->per_cu->v.psymtab;
> +
> + if (address == 0
> + && (!dwarf2_per_objfile->has_section_at_zero
> + || (pst != NULL && pst->textlow > address)))
> {
> /* This line table is for a function which has been
> GCd by the linker. Ignore it. PR gdb/12528 */
Does this still work when we have .gdb_index sections?
ISTR we don't have psymtabs in that case?
Thanks,
Pedro Alves