summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2017-07-13 13:45:27 +1000
committerAlistair Popple <alistair@popple.id.au>2017-07-13 13:45:27 +1000
commit4b55a9664d33a9ea3bab87e9668c71ac3c3f877d (patch)
tree9e83ac5712f42f4030d1c87e19032e2a0dca2f25 /src
parent7970779cfa59b94923e00b3f2898da0badbd4bcf (diff)
downloadpdbg-4b55a9664d33a9ea3bab87e9668c71ac3c3f877d.tar.gz
pdbg-4b55a9664d33a9ea3bab87e9668c71ac3c3f877d.zip
libpdbg: Add a more complete fake backend
The fake backend we had couldn't be used as src/main.c was missing the option to enable it. It was also missing an implementation of a fake pib so add that too. Signed-off-by: Alistair Popple <alistair@popple.id.au>
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 67b4055..7517cf2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -286,6 +286,8 @@ static bool parse_options(int argc, char *argv[])
backend = KERNEL;
/* TODO: use device node to point at a slave
* other than the first? */
+ } else if (strcmp(optarg, "fake") == 0) {
+ backend = FAKE;
} else
opt_error = true;
break;
OpenPOWER on IntegriCloud