Fixed debugger command "dw" address translation, added better help output.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8150 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2004-06-25 00:44:54 +00:00
parent 4910756974
commit 24e8f2c929
+5 -2
View File
@@ -1297,11 +1297,14 @@ display_mem(int argc, char **argv)
int j;
if (argc < 2) {
dprintf("not enough arguments\n");
dprintf("usage: dw/ds/db <address> [num]\n"
"\tdw - 4 bytes\n"
"\tds - 2 bytes\n"
"\tdb - 1 byte\n");
return 0;
}
address = atoul(argv[1]);
address = strtoul(argv[1], NULL, 0);
if (argc >= 3) {
num = -1;