1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-03 06:45:37 -08:00
Commit Graph

12 Commits

Author SHA1 Message Date
mpi
fa44dea1c1 Include the .SUNW_ctf section in bsd.gdb
Once the section has been built from the DWARF symbols also add it to
the debug kernel.  That makes ddb(4) print the correct number of args
in function backtraces in such kernel as well.

While here make comment fit in 80 columns.

ok jasper@
2019-10-15 10:27:25 +00:00
jca
3103aebcd9 Use getopts instead of getopt(1)
getopts is a standard shell builtin (POSIX) and lets you handle
whitespace in parameters.  ok mpi@ sunil@
2019-05-27 09:31:08 +00:00
sunil
027e3329c9 Using getopt(1) is more idiomatic and consistent with other scripts.
Ok mpi@
2019-02-18 11:05:43 +00:00
sunil
76812c958c Fix in-place stripping by using correct form of parameter substitution.
Ok mpi@
2019-02-18 11:01:48 +00:00
jasper
c022478103 proper fix for previous and add missing quotes
from tb@
ok visa@ mpi@
2017-08-15 15:48:10 +00:00
jasper
8d1546d23c simplify LABEL extraction; from tb@ 2017-08-14 20:09:17 +00:00
visa
c1a291db9c Fix arguments that are passed to strip(1). In particular,
$INFILE should not appear twice.

OK mpi@, jasper@
2017-08-13 15:28:51 +00:00
jasper
e4e1d541f2 make this properly portable:
- keep track of the argument inside the for loop to determine INFILE
- replace the builtin [[ with [ and adjust the tests
- use echo instead of the print builtin

from tb@
2017-08-12 19:51:17 +00:00
jasper
d7477b1031 fallback to strip(1) in case ctfconv(1) couldn't handle the file (i.e. when
the input file lacks useful debug sections).
adjust option handling accordingly to pass any flags not handled by
ctfstrip(1) down to strip(1).

help and ok mpi@ tb@
2017-08-12 16:33:11 +00:00
jasper
a34679bf11 - use mktemp to provide the tempfile name and clean it up properly
- set strict posix mode

ok mpi@
2017-08-11 15:08:16 +00:00
mpi
492f109a65 CVS Id and license. 2017-08-11 14:24:24 +00:00
mpi
192095f77f Import a tool for generating CTF data section (SUNW_ctf) based on DWARF
information.

ctfconv(1) support multiple CUs in order to work on binaries.  ctfstrip(1)
works like strip(1) but also insert a .SUNW_ctf section inside a binary.

ok deraadt@, kettenis@, jasper@
2017-08-11 14:21:24 +00:00