X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/dbfee00a86609283c4633df870692be3db9bc5e4..2da1e58ed0795c3fd3cbd584a2933f3fef6707c8:/.gdbinit diff --git a/.gdbinit b/.gdbinit index daa7ee3..e4db89b 100644 --- a/.gdbinit +++ b/.gdbinit @@ -9,22 +9,22 @@ define mp-print end define mp-printr - call (void)fputs("$arg0 = ", stdout) - if $arg0 == 0 + call (void)fputs("$arg1 = ", stdout) + if $arg1 == 0 call (void)fputs("(null)", stdout) else - if $arg1 == 16 + if $arg0 == 16 call (void)fputs("0x", stdout) else - if $arg1 == 8 - call (void)fputs("0", stdout) + if $arg0 == 8 + call (void)fputs("0", stdout) else - if $arg1 != 10 - call (void)fputs("$arg1", stdout) - end + if $arg0 != 10 + call (void)fputs("$arg0:", stdout) + end end end - call (void)mp_writefile($arg0, stdout, $arg1) + call (void)mp_writefile($arg1, stdout, $arg0) end call (void)putchar('\n') end