fix JIT reader path creation
authorTom Tromey <tromey@redhat.com>
Mon, 6 Jan 2014 21:57:59 +0000 (14:57 -0700)
committerTom Tromey <tromey@redhat.com>
Mon, 6 Jan 2014 21:57:59 +0000 (14:57 -0700)
2014-01-06  Sasha Smundak  <asmundak@google.com>

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

gdb/ChangeLog
gdb/jit.c

index 577c4b0147fc0d1ae144b0e4dce30582bb69621d..37e62f7d007be2b6775d709562a695576f146856 100644 (file)
@@ -1,3 +1,7 @@
+2014-01-06  Sasha Smundak  <asmundak@google.com>
+
+       * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
+
 2014-01-06  Tom Tromey  <tromey@redhat.com>
 
        * doublest.c (convert_doublest_to_floatformat): Use const, not
index 033a3702705c9abad827fbab1db3364225b09c9c..ef6abbfe4cc8fc902b4ae35ba7d45c3cace2866f 100644 (file)
--- 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);