ref: 68c89f4a437739857ef6fc9627a30ccc69fd8751
parent: b849349e0cc9e1dac92498b026cd78ddecef5a97
author: Jacob Moody <moody@posixcafe.org>
date: Fri Dec 27 14:29:34 EST 2024
acid: remove outdated 8.out binary default (thanks Tekk)
--- a/sys/man/1/acid
+++ b/sys/man/1/acid
@@ -12,11 +12,8 @@
.B -m
.I machine
] [
-.I pid
+.I pid | textfile | pid textfile
]
-[
-.I textfile
-]
.PP
.B acid
.B -l
@@ -27,11 +24,8 @@
.B -l
.B trump
[
-.I pid
+.I pid | textfile | pid textfile
]
-[
-.I textfile
-]
.SH DESCRIPTION
.I Acid
is a programmable symbolic debugger.
@@ -38,9 +32,9 @@
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.
--- a/sys/src/cmd/acid/main.c
+++ b/sys/src/cmd/acid/main.c
@@ -23,7 +23,7 @@
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 @@
argv0 = argv[0];
pid = 0;
- aout = "8.out";
+ aout = nil;
quiet = 1;
mtype = 0;
@@ -81,6 +81,8 @@
}
aout = argv[0];
}
+ } else {
+ usage();
}
fmtinstall('x', xfmt);
--
⑨