Rename opt_debug_dir to opt_debug_info_dir
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 15 Apr 2016 17:18:37 +0000 (13:18 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 3 May 2016 19:42:41 +0000 (15:42 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
converter/babeltrace.c
formats/ctf/ctf.c
include/babeltrace/babeltrace-internal.h
lib/so-info.c
tests/lib/test_so_info.c

index f437f4f4692ca269442cc04241d7a3a0efd4ef8a..2718a46176f9ad6c3340cd73fbd4bcbd53284851 100644 (file)
@@ -105,7 +105,7 @@ enum {
        OPT_CLOCK_GMT,
        OPT_CLOCK_FORCE_CORRELATE,
        OPT_STREAM_INTERSECTION,
-       OPT_DEBUG_DIR,
+       OPT_DEBUG_INFO_DIR,
 };
 
 /*
@@ -137,7 +137,7 @@ static struct poptOption long_options[] = {
        { "clock-force-correlate", 0, POPT_ARG_NONE, NULL, OPT_CLOCK_FORCE_CORRELATE, NULL, NULL },
        { "stream-intersection", 0, POPT_ARG_NONE, NULL, OPT_STREAM_INTERSECTION, NULL, NULL },
 #ifdef ENABLE_DEBUGINFO
-       { "debug-info-dir", 0, POPT_ARG_STRING, NULL, OPT_DEBUG_DIR, NULL, NULL },
+       { "debug-info-dir", 0, POPT_ARG_STRING, NULL, OPT_DEBUG_INFO_DIR, NULL, NULL },
 #endif
        { NULL, 0, 0, NULL, 0, NULL, NULL },
 };
@@ -411,9 +411,9 @@ static int parse_options(int argc, char **argv)
                case OPT_STREAM_INTERSECTION:
                        opt_stream_intersection = 1;
                        break;
-               case OPT_DEBUG_DIR:
-                       opt_debug_dir = (char *) poptGetOptArg(pc);
-                       if (!opt_debug_dir) {
+               case OPT_DEBUG_INFO_DIR:
+                       opt_debug_info_dir = (char *) poptGetOptArg(pc);
+                       if (!opt_debug_info_dir) {
                                ret = -EINVAL;
                                goto end;
                        }
@@ -837,7 +837,7 @@ end:
        free(opt_input_format);
        free(opt_output_format);
        free(opt_output_path);
-       free(opt_debug_dir);
+       free(opt_debug_info_dir);
        g_ptr_array_free(opt_input_paths, TRUE);
        if (partial_error)
                exit(EXIT_FAILURE);
index 8e9670982d994ff5860ab747594c869d3fa41e92..7235d80679fa360dbb95271f1964be9fe4cb1024 100644 (file)
@@ -85,7 +85,7 @@ uint64_t opt_clock_offset;
 uint64_t opt_clock_offset_ns;
 
 extern int yydebug;
-char *opt_debug_dir;
+char *opt_debug_info_dir;
 
 /*
  * TODO: babeltrace_ctf_console_output ensures that we only print
index abe1a7f058ed0673098cbf45f5041e14005fd6c5..9d252c8e6526fdb51bf1833a882099a55dc87da2 100644 (file)
@@ -196,6 +196,6 @@ extern int opt_all_field_names,
 extern uint64_t opt_clock_offset;
 extern uint64_t opt_clock_offset_ns;
 extern int babeltrace_ctf_console_output;
-extern char *opt_debug_dir;
+extern char *opt_debug_info_dir;
 
 #endif
index f1124b34cb76ba557c086f05c6f660e45108d3ee..404425dcf0ba7e98808427f8a4ea28ed9392d367 100644 (file)
@@ -289,7 +289,7 @@ int so_info_set_dwarf_info_build_id(struct so_info *so)
                goto error;
        }
 
-       dbg_dir = opt_debug_dir ? : DEFAULT_DEBUG_DIR;
+       dbg_dir = opt_debug_info_dir ? : DEFAULT_DEBUG_DIR;
 
        dbg_dir_trailing_slash = dbg_dir[strlen(dbg_dir) - 1] == '/';
 
@@ -404,7 +404,7 @@ int so_info_set_dwarf_info_debug_link(struct so_info *so)
                goto error;
        }
 
-       dbg_dir = opt_debug_dir ? : DEFAULT_DEBUG_DIR;
+       dbg_dir = opt_debug_info_dir ? : DEFAULT_DEBUG_DIR;
 
        dir_name = dirname(so->elf_path);
        if (!dir_name) {
index db4f239e5424d9cae8370539c204119d6f56b170..3738cb4311c1007c8a33e6bb99be08f2ce5977b3 100644 (file)
@@ -45,7 +45,7 @@
 #define FUNC_FOO_NAME_ELF "foo+0x24"
 #define BUILD_ID_LEN 20
 
-char *opt_debug_dir;
+char *opt_debug_info_dir;
 
 static
 void test_so_info_build_id(const char *data_dir)
@@ -249,16 +249,16 @@ int main(int argc, char **argv)
        if (argc != 2) {
                return EXIT_FAILURE;
        } else {
-               opt_debug_dir = argv[1];
+               opt_debug_info_dir = argv[1];
        }
 
        ret = so_info_init();
        ok(ret == 0, "so_info_init succesful");
 
-       test_so_info(opt_debug_dir);
-       test_so_info_elf(opt_debug_dir);
-       test_so_info_build_id(opt_debug_dir);
-       test_so_info_debug_link(opt_debug_dir);
+       test_so_info(opt_debug_info_dir);
+       test_so_info_elf(opt_debug_info_dir);
+       test_so_info_build_id(opt_debug_info_dir);
+       test_so_info_debug_link(opt_debug_info_dir);
 
        return EXIT_SUCCESS;
 }
This page took 0.029335 seconds and 4 git commands to generate.