From dc81d70a97b942302d126fa2b5041cb2ef4bc01c Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 6 Jan 2014 14:57:59 -0700 Subject: [PATCH] fix JIT reader path creation 2014-01-06 Sasha Smundak * jit.c: (jit_reader_load_command): Fix JIT reader path creation. --- gdb/ChangeLog | 4 ++++ gdb/jit.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 577c4b0147f..37e62f7d007 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2014-01-06 Sasha Smundak + + * jit.c: (jit_reader_load_command): Fix JIT reader path creation. + 2014-01-06 Tom Tromey * doublest.c (convert_doublest_to_floatformat): Use const, not diff --git a/gdb/jit.c b/gdb/jit.c index 033a3702705..ef6abbfe4cc 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); -- 2.30.2