open-power / pdbg

PowerPC FSI Debugger
Apache License 2.0
17 stars 39 forks source link

When running as a non-root user on the host no useful error is printed #28

Open apopple opened 6 years ago

apopple commented 6 years ago

Running on the host requires access to /sys/kernel/debug/powerpc/scom/* which requires root access. Without it the following error it returned:

alistair@garrison2:~/Source/pdbg$ ./pdbg -p0 getscom 0xf000f
No valid targets found or specified. Try adding -p/-c/-t options to specify a target.
Alternatively run /home/alistair/Source/pdbg/.libs/lt-pdbg -a probe to get a list of all valid targets

It would be nicer if the user was told to run as root.

apopple commented 6 years ago

@RashmicaG any chance you can take a look at this? Thanks!