From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11826 invoked by alias); 24 Feb 2003 16:04:06 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 11819 invoked from network); 24 Feb 2003 16:04:06 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by 172.16.49.205 with SMTP; 24 Feb 2003 16:04:06 -0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158]) by hub.ott.qnx.com (8.9.3/8.9.3) with ESMTP id KAA28690; Mon, 24 Feb 2003 10:52:01 -0500 Received: from catdog ([10.4.2.2]) by smtp.ott.qnx.com (8.8.8/8.6.12) with SMTP id LAA17087; Mon, 24 Feb 2003 11:04:05 -0500 Message-ID: <018601c2dc1e$55a2afd0$0202040a@catdog> From: "Kris Warkentin" To: "Daniel Jacobowitz" , References: <001101c2d9f8$7a7303f0$2a00a8c0@dash> <1030222020400.ZM18826@localhost.localdomain> <004501c2da2b$efdb49d0$2a00a8c0@dash> <20030222061447.GA16602@nevyn.them.org> Subject: Re: patch to allow target defined solib search method Date: Mon, 24 Feb 2003 16:04:00 -0000 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0183_01C2DBF4.6CC38010" X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-SW-Source: 2003-02/txt/msg00583.txt.bz2 This is a multi-part message in MIME format. ------=_NextPart_000_0183_01C2DBF4.6CC38010 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-length: 1266 Here. Now they are unix text files attached with proper formatting. I also put myself in the Write After section instead of the maintainers. Thanks. Kris ----- Original Message ----- From: "Daniel Jacobowitz" To: Sent: Saturday, February 22, 2003 1:14 AM Subject: Re: patch to allow target defined solib search method > On Fri, Feb 21, 2003 at 11:36:15PM -0500, Kris Warkentin wrote: > > Here you go. I chopped up the long lines and used your formatting for the > > ChangeLog. I also added myself to MAINTAINERS at the bottom of the patch. > > Makes sense since I'm the gdb guy at QNX now. Sorry about the missing tabs > > in the ChangeLog. Outlook doesn't DO tabs...I guess Microsoft doesn't > > believe in them. :-P Would it be better if I just attached text files next > > time? > > Please do attach files, if you're forced to use outlook. If you can > use something else, even better. > > Meanwhile, Kevin suggested that you add yourself under Write After > Approval, not as a target maintainer - you'll probably get stuck with > that too, but it should wait until the target is being committed. > > -- > Daniel Jacobowitz > MontaVista Software Debian GNU/Linux Developer > ------=_NextPart_000_0183_01C2DBF4.6CC38010 Content-Type: application/octet-stream; name="solib.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="solib.diff" Content-length: 3027 Index: solib.c=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= RCS file: /cvs/src/src/gdb/solib.c,v=0A= retrieving revision 1.54=0A= diff -u -r1.54 solib.c=0A= --- solib.c 20 Feb 2003 18:25:27 -0000 1.54=0A= +++ solib.c 24 Feb 2003 16:03:28 -0000=0A= @@ -160,6 +160,11 @@=0A= 1, lbasename (in_pathname), O_RDONLY, 0,=0A= &temp_pathname);=0A= =20=0A= + /* If not found, try to use target supplied solib search method */=0A= + if (found_file < 0 && TARGET_SO_FIND_AND_OPEN_SOLIB !=3D NULL)=0A= + found_file =3D TARGET_SO_FIND_AND_OPEN_SOLIB=0A= + (in_pathname, O_RDONLY, &temp_pathname);=0A= +=0A= /* If not found, next search the inferior's $PATH environment variable. = */=0A= if (found_file < 0 && solib_search_path !=3D NULL)=0A= found_file =3D openp (get_in_environ (inferior_environ, "PATH"),=0A= Index: solist.h=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= RCS file: /cvs/src/src/gdb/solist.h,v=0A= retrieving revision 1.7=0A= diff -u -r1.7 solist.h=0A= --- solist.h 21 Oct 2001 19:20:30 -0000 1.7=0A= +++ solist.h 24 Feb 2003 16:03:28 -0000=0A= @@ -99,6 +99,12 @@=0A= /* Determine if PC lies in the dynamic symbol resolution code of=0A= the run time loader */=0A= int (*in_dynsym_resolve_code) (CORE_ADDR pc);=0A= +=0A= + /* Extra hook for finding and opening a solib. Convenience function= =0A= + for remote debuggers finding host libs */=0A= + int (*find_and_open_solib) (char *soname,=0A= + unsigned o_flags, char **temp_pathname);=0A= +=20=20=20=20=0A= };=0A= =20=0A= void free_so (struct so_list *so);=0A= @@ -122,5 +128,7 @@=0A= (current_target_so_ops->open_symbol_file_object)=0A= #define TARGET_SO_IN_DYNSYM_RESOLVE_CODE \=0A= (current_target_so_ops->in_dynsym_resolve_code)=0A= +#define TARGET_SO_FIND_AND_OPEN_SOLIB \=0A= + (current_target_so_ops->find_and_open_solib)=0A= =20=0A= #endif=0A= Index: MAINTAINERS=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= RCS file: /cvs/src/src/gdb/MAINTAINERS,v=0A= retrieving revision 1.224=0A= diff -u -r1.224 MAINTAINERS=0A= --- MAINTAINERS 22 Feb 2003 00:24:11 -0000 1.224=0A= +++ MAINTAINERS 24 Feb 2003 16:03:28 -0000=0A= @@ -391,6 +391,7 @@=0A= Tom Tromey tromey@redhat.com=0A= Corinna Vinschen vinschen@redhat.com=0A= Keith Walker keith.walker@arm.com=0A= +Kris Warkentin kewarken@qnx.com=0A= Jim Wilson wilson@tuliptree.org=0A= Elena Zannoni ezannoni@redhat.com=0A= Eli Zaretskii eliz@gnu.org=0A= ------=_NextPart_000_0183_01C2DBF4.6CC38010 Content-Type: application/octet-stream; name="solib.changelog" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="solib.changelog" Content-length: 278 2003-02-24 Kris Warkentin =0A= * solib.c (solib_open): Call target specific search function after=0A= failing with solib-search-path.=0A= * solist.h (struct target_so_ops): Add find_and_open_solib().=0A= (TARGET_SO_FIND_AND_OPEN_SOLIB): Define.=0A= =0A= ------=_NextPart_000_0183_01C2DBF4.6CC38010--