This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patchv2] Record objfile->original_name as an absolute path
- From: Doug Evans <dje at google dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches <gdb-patches at sourceware dot org>
- Date: Wed, 9 Oct 2013 09:37:14 -0700
- Subject: Re: [patchv2] Record objfile->original_name as an absolute path
- Authentication-results: sourceware.org; auth=none
- References: <yjt2zjr09xqr dot fsf at ruffy dot mtv dot corp dot google dot com> <20130926084713 dot GA11031 at host2 dot jankratochvil dot net> <20131009144629 dot GC27355 at host2 dot jankratochvil dot net>
On Wed, Oct 9, 2013 at 7:46 AM, Jan Kratochvil
<jan.kratochvil@redhat.com> wrote:
> diff --git a/gdb/testsuite/gdb.dwarf2/dwp-symlink.c b/gdb/testsuite/gdb.dwarf2/dwp-symlink.c
> index 5be12fb..a93d5e7 100644
> --- a/gdb/testsuite/gdb.dwarf2/dwp-symlink.c
> +++ b/gdb/testsuite/gdb.dwarf2/dwp-symlink.c
> @@ -15,6 +15,13 @@
> You should have received a copy of the GNU General Public License
> along with this program. If not, see <http://www.gnu.org/licenses/>. */
>
> +/* Cheezy hack to prevent set_initial_language from trying to look up main.
> + We do this so that gdb won't try to open the dwp file when the file is
> + first selected. This gives us a chance to do a chdir before attempting
> + to access the debug info. */
> +asm (".globl main.main");
> +asm ("main.main: .byte 0");
> +
> int
> main (int argc, char **argv)
> {
People are actually ok with this?