From 68c89f4a437739857ef6fc9627a30ccc69fd8751 Mon Sep 17 00:00:00 2001 From: Jacob Moody Date: Fri, 27 Dec 2024 19:29:34 +0000 Subject: [PATCH] acid: remove outdated 8.out binary default (thanks Tekk) --- sys/man/1/acid | 16 +++++----------- sys/src/cmd/acid/main.c | 6 ++++-- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/sys/man/1/acid b/sys/man/1/acid index 670e65bcd..3cab0ad15 100644 --- a/sys/man/1/acid +++ b/sys/man/1/acid @@ -12,10 +12,7 @@ acid, truss, trump \- debugger .B -m .I machine ] [ -.I pid -] -[ -.I textfile +.I pid | textfile | pid textfile ] .PP .B acid @@ -27,10 +24,7 @@ acid, truss, trump \- debugger .B -l .B trump [ -.I pid -] -[ -.I textfile +.I pid | textfile | pid textfile ] .SH DESCRIPTION .I Acid @@ -38,9 +32,9 @@ is a programmable symbolic debugger. It can inspect one or more processes that share an address space. A program to be debugged may be specified by the process id of a running or defunct process, -or by the name of the program's text file -.RB ( 8.out -by default). +or by the name of the program's text file. Both a pid and a file +may be specified to supply debugging information for a process +ran from a stripped binary. At the prompt, .I acid will store function definitions or print the value of expressions. diff --git a/sys/src/cmd/acid/main.c b/sys/src/cmd/acid/main.c index a69fd2ed7..8f513199b 100644 --- a/sys/src/cmd/acid/main.c +++ b/sys/src/cmd/acid/main.c @@ -23,7 +23,7 @@ void loadmoduleobjtype(void); void usage(void) { - fprint(2, "usage: acid [-kqw] [-l library] [-m machine] [pid] [file]\n"); + fprint(2, "usage: acid [-kqw] [-l library] [-m machine] [pid | textfile | pid textfile]\n"); exits("usage"); } @@ -37,7 +37,7 @@ main(int argc, char *argv[]) argv0 = argv[0]; pid = 0; - aout = "8.out"; + aout = nil; quiet = 1; mtype = 0; @@ -81,6 +81,8 @@ main(int argc, char *argv[]) } aout = argv[0]; } + } else { + usage(); } fmtinstall('x', xfmt);