public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Sasha Smundak <asmundak@google.com>
To: gdb-patches@sourceware.org
Subject: [PATCH] Fix JIT reader path creation
Date: Wed, 18 Dec 2013 21:12:00 -0000	[thread overview]
Message-ID: <20131218211219.D73F7A0F40@sasha2.mtv.corp.google.com> (raw)

Unless the argument of the `jit-reader-load' command is an absolute path, the
JIT reader should be loaded from <jit_reader_dir>/<arg> (the code currently
tries to load it from /<jit_reader_dir> <arg> instead).

Sasha

gdb/Changelog
2013-12-18  Sasha Smundak  <asmundak@google.com>

	* jit.c: (jit_reader_load_command): Fix JIT reader path creation.

diff --git a/gdb/jit.c b/gdb/jit.c
index fde79e5..d216b8a 100644
--- a/gdb/jit.c
+++ b/gdb/jit.c
@@ -214,7 +214,7 @@ jit_reader_load_command (char *args, int from_tty)
   if (IS_ABSOLUTE_PATH (args))
     so_name = xstrdup (args);
   else
-    so_name = xstrprintf ("%s%s%s", SLASH_STRING, jit_reader_dir, args);
+    so_name = xstrprintf ("%s%s%s", jit_reader_dir, SLASH_STRING, args);
   prev_cleanup = make_cleanup (xfree, so_name);
 
   loaded_jit_reader = jit_reader_load (so_name);

             reply	other threads:[~2013-12-18 21:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-18 21:12 Sasha Smundak [this message]
2013-12-20 15:33 ` Tom Tromey
2013-12-20 18:45   ` Alexander Smundak
2014-01-06 21:57     ` Tom Tromey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131218211219.D73F7A0F40@sasha2.mtv.corp.google.com \
    --to=asmundak@google.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).