This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Handle 64-bit Solaris/x86 ld.so.1
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 17 Sep 2018 11:37:23 -0700
- Subject: Re: [PATCH] Handle 64-bit Solaris/x86 ld.so.1
- References: <yddh8ionqwz.fsf@CeBiTec.Uni-Bielefeld.DE>
Hello Rainer,
> 2018-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
>
> * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
Looks good to me. OK to push, but trying to have the correct
author in the ChangeLog file.
> # HG changeset patch
> # Parent 24bcd64cb0c1824acde40384274e58fa9bf13438
> Handle 64-bit Solaris/x86 ld.so.1
>
> diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
> --- a/gdb/solib-svr4.c
> +++ b/gdb/solib-svr4.c
> @@ -153,8 +153,12 @@ svr4_same_1 (const char *gdb_so_name, co
> && strcmp (inferior_so_name, "/lib/ld.so.1") == 0)
> return 1;
>
> - /* Similarly, we observed the same issue with sparc64, but with
> + /* Similarly, we observed the same issue with amd64 and sparcv9, but with
> different locations. */
> + if (strcmp (gdb_so_name, "/usr/lib/amd64/ld.so.1") == 0
> + && strcmp (inferior_so_name, "/lib/amd64/ld.so.1") == 0)
> + return 1;
> +
> if (strcmp (gdb_so_name, "/usr/lib/sparcv9/ld.so.1") == 0
> && strcmp (inferior_so_name, "/lib/sparcv9/ld.so.1") == 0)
> return 1;
--
Joel