This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 2/3] Make jit-reader-load accept absolute paths to reader shared objects.
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Sanjoy Das <sanjoy at playingwithpointers dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 9 Jan 2013 10:36:32 +0100
- Subject: Re: [PATCH 2/3] Make jit-reader-load accept absolute paths to reader shared objects.
- References: <1352048631-25042-1-git-send-email-sanjoy@playingwithpointers.com> <1352048631-25042-3-git-send-email-sanjoy@playingwithpointers.com>
On Sun, 04 Nov 2012 18:03:50 +0100, Sanjoy Das wrote:
> - so_name = xstrprintf ("%s/%s", jit_reader_dir, args);
> + if (IS_ABSOLUTE_PATH (args))
> + so_name = xstrdup (args);
> + else
> + so_name = xstrprintf ("%s/%s", jit_reader_dir, args);
GDB uses SLASH_STRING; although I see it defined as "/" unconditionally
(therefore even on MinGW).
Jan