This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Make name of current file as pst->filename instead of _start_ in AIX
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: sangamesh dot swamy at in dot ibm dot com (Sangamesh Mallayya)
- Cc: gdb-patches at sourceware dot org, Ulrich dot Weigand at de dot ibm dot com (Ulrich Weigand)
- Date: Fri, 21 Oct 2016 17:49:51 +0200 (CEST)
- Subject: Re: [PATCH] Make name of current file as pst->filename instead of _start_ in AIX
- Authentication-results: sourceware.org; auth=none
Sangamesh Mallayya wrote:
> When -qfuncsect xlc or -ffunction-section gcc compiler option is used in
> AIX, each function csect will be associated with each psymtab,
> so each psymtab will have it's corresponding filename entries set.
>
> If the pst filename isn't set then we will be seeing the below output when
> we set a breakpoint.
>
> (gdb) br main
> Breakpoint 1 at 0x10000374: file _start_ , line 18.
>
> With the fix it will be.
>
> (gdb) br main
> Breakpoint 1 at 0x10000518: file test.c, line 24.
>
> Attached patch resolve this issue and correct filename will be set.
This is OK. I've checked the patch in now.
Thanks,
Ulrich
--
Dr. Ulrich Weigand
GNU/Linux compilers and toolchain
Ulrich.Weigand@de.ibm.com