summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2018-06-07 16:54:33 +1000
committerAlistair Popple <alistair@popple.id.au>2018-06-15 14:28:51 +1000
commit9c7a77ca5867bcd8d5e8bed32f392326131d9ffe (patch)
tree2bf3d1086a35f5ca0ab652f7c452ed5bc4638a5a
parent3efee1605cc287f213da76d5449bdbb8a324759b (diff)
downloadpdbg-9c7a77ca5867bcd8d5e8bed32f392326131d9ffe.tar.gz
pdbg-9c7a77ca5867bcd8d5e8bed32f392326131d9ffe.zip
Remove htm_* options
These have been marked deprecated for a while and are just taking up room in the help, so let's remove them. The are replaced with "htm core|nest [options]" Signed-off-by: Michael Neuling <mikey@neuling.org>
-rw-r--r--src/htm.c95
-rw-r--r--src/htm.h8
-rw-r--r--src/main.c7
3 files changed, 0 insertions, 110 deletions
diff --git a/src/htm.c b/src/htm.c
index f007354..e5e29f5 100644
--- a/src/htm.c
+++ b/src/htm.c
@@ -380,98 +380,3 @@ int run_htm(int optind, int argc, char *argv[])
return rc;
}
-
-/*
- * Handle the deprecated commands by telling the user what the new
- * command is.
- */
-int run_htm_start(int optind, int argc, char *argv[])
-{
- int i;
-
- fprintf(stderr, "You're running a deprecated command!\n");
- fprintf(stderr, "Please use:\n");
- for (i = 0; i < optind; i++)
- fprintf(stderr, "%s ", argv[i]);
- fprintf(stderr, "htm nest start\n");
-
- return 0;
-}
-
-int run_htm_stop(int optind, int argc, char *argv[])
-{
- int i;
-
- fprintf(stderr, "You're running a deprecated command!\n");
- fprintf(stderr, "Please use:\n");
- for (i = 0; i < optind; i++)
- fprintf(stderr, "%s ", argv[i]);
- fprintf(stderr, "htm nest stop\n");
-
- return 0;
-}
-
-int run_htm_status(int optind, int argc, char *argv[])
-{
- int i;
-
- fprintf(stderr, "You're running a deprecated command!\n");
- fprintf(stderr, "Please use:\n");
- for (i = 0; i < optind; i++)
- fprintf(stderr, "%s ", argv[i]);
- fprintf(stderr, "htm nest status\n");
-
- return 0;
-}
-
-int run_htm_reset(int optind, int argc, char *argv[])
-{
- int i;
-
- fprintf(stderr, "You're running a deprecated command!\n");
- fprintf(stderr, "Please use:\n");
- for (i = 0; i < optind; i++)
- fprintf(stderr, "%s ", argv[i]);
- fprintf(stderr, "htm nest reset\n");
-
- return 0;
-}
-
-int run_htm_dump(int optind, int argc, char *argv[])
-{
- int i;
-
- fprintf(stderr, "You're running a deprecated command!\n");
- fprintf(stderr, "Please use:\n");
- for (i = 0; i < optind; i++)
- fprintf(stderr, "%s ", argv[i]);
- fprintf(stderr, "htm nest dump\n");
-
- return 0;
-}
-
-int run_htm_trace(int optind, int argc, char *argv[])
-{
- int i;
-
- fprintf(stderr, "You're running a deprecated command!\n");
- fprintf(stderr, "Please use:\n");
- for (i = 0; i < optind; i++)
- fprintf(stderr, "%s ", argv[i]);
- fprintf(stderr, "htm nest trace\n");
-
- return 0;
-}
-
-int run_htm_analyse(int optind, int argc, char *argv[])
-{
- int i;
-
- fprintf(stderr, "You're running a deprecated command!\n");
- fprintf(stderr, "Please use:\n");
- for (i = 0; i < optind; i++)
- fprintf(stderr, "%s ", argv[i]);
- fprintf(stderr, "htm nest analyse\n");
-
- return 0;
-}
diff --git a/src/htm.h b/src/htm.h
index f5ffa76..21e7b77 100644
--- a/src/htm.h
+++ b/src/htm.h
@@ -16,12 +16,4 @@
#include <inttypes.h>
#include <stdio.h>
-int run_htm_start(int optind, int argc, char *argv[]);
-int run_htm_stop(int optind, int argc, char *argv[]);
-int run_htm_status(int optind, int argc, char *argv[]);
-int run_htm_reset(int optind, int argc, char *argv[]);
-int run_htm_dump(int optind, int argc, char *argv[]);
-int run_htm_trace(int optind, int argc, char *argv[]);
-int run_htm_analyse(int optind, int argc, char *argv[]);
-
int run_htm(int optind, int argc, char *argv[]);
diff --git a/src/main.c b/src/main.c
index 43e9d0f..cf9a3b2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -100,13 +100,6 @@ static struct action actions[] = {
{ "start", "", "Start thread", &thread_start },
{ "step", "<count>", "Set a thread <count> instructions", &thread_step },
{ "stop", "", "Stop thread", &thread_stop },
- { "htm_start", "", "[deprecated use 'htm nest start'] Start Nest HTM", &run_htm_start },
- { "htm_stop", "", "[deprecated use 'htm nest stop'] Stop Nest HTM", &run_htm_stop },
- { "htm_status", "", "[deprecated use 'htm nest status'] Print the status of HTM", &run_htm_status },
- { "htm_reset", "", "[deprecated use 'htm nest reset'] Reset the HTM facility", &run_htm_reset },
- { "htm_dump", "", "[deprecated use 'htm nest dump'] Dump HTM buffer to file", &run_htm_dump },
- { "htm_trace", "" , "[deprecated use 'htm nest trace'] Configure and start tracing with HTM", &run_htm_trace },
- { "htm_analyse", "", "[derepcated use 'htm nest analyse'] Stop and dump buffer to file", &run_htm_analyse },
{ "htm", "core|nest start|stop|status|reset|dump|trace|analyse", "Hardware Trace Macro", &run_htm },
{ "release", "", "Should be called after pdbg work is finished, to release special wakeups and other resources.", &handle_release},
{ "probe", "", "", &handle_probe },
OpenPOWER on IntegriCloud