OpenBSD CVS

CVS log for src/usr.bin/ctfconv/ctfstrip


[BACK] Up to [local] / src / usr.bin / ctfconv

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.12 / (download) - annotate - [select for diffs], Tue Oct 15 10:27:25 2019 UTC (4 years, 7 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, HEAD
Changes since 1.11: +11 -4 lines
Diff to previous 1.11 (colored)

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@

Revision 1.11 / (download) - annotate - [select for diffs], Mon May 27 09:31:08 2019 UTC (4 years, 11 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.10: +9 -12 lines
Diff to previous 1.10 (colored)

Use getopts instead of getopt(1)

getopts is a standard shell builtin (POSIX) and lets you handle
whitespace in parameters.  ok mpi@ sunil@

Revision 1.10 / (download) - annotate - [select for diffs], Mon Feb 18 11:05:43 2019 UTC (5 years, 3 months ago) by sunil
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.9: +20 -20 lines
Diff to previous 1.9 (colored)

Using getopt(1) is more idiomatic and consistent with other scripts.

Ok mpi@

Revision 1.9 / (download) - annotate - [select for diffs], Mon Feb 18 11:01:48 2019 UTC (5 years, 3 months ago) by sunil
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

Fix in-place stripping by using correct form of parameter substitution.

Ok mpi@

Revision 1.8 / (download) - annotate - [select for diffs], Tue Aug 15 15:48:10 2017 UTC (6 years, 9 months ago) by jasper
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.7: +6 -6 lines
Diff to previous 1.7 (colored)

proper fix for previous and add missing quotes

from tb@
ok visa@ mpi@

Revision 1.7 / (download) - annotate - [select for diffs], Mon Aug 14 20:09:17 2017 UTC (6 years, 9 months ago) by jasper
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

simplify LABEL extraction; from tb@

Revision 1.6 / (download) - annotate - [select for diffs], Sun Aug 13 15:28:51 2017 UTC (6 years, 9 months ago) by visa
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Fix arguments that are passed to strip(1). In particular,
$INFILE should not appear twice.

OK mpi@, jasper@

Revision 1.5 / (download) - annotate - [select for diffs], Sat Aug 12 19:51:17 2017 UTC (6 years, 9 months ago) by jasper
Branch: MAIN
Changes since 1.4: +6 -6 lines
Diff to previous 1.4 (colored)

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@

Revision 1.4 / (download) - annotate - [select for diffs], Sat Aug 12 16:33:11 2017 UTC (6 years, 9 months ago) by jasper
Branch: MAIN
Changes since 1.3: +26 -13 lines
Diff to previous 1.3 (colored)

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@

Revision 1.3 / (download) - annotate - [select for diffs], Fri Aug 11 15:08:16 2017 UTC (6 years, 9 months ago) by jasper
Branch: MAIN
Changes since 1.2: +12 -6 lines
Diff to previous 1.2 (colored)

- use mktemp to provide the tempfile name and clean it up properly
- set strict posix mode

ok mpi@

Revision 1.2 / (download) - annotate - [select for diffs], Fri Aug 11 14:24:24 2017 UTC (6 years, 9 months ago) by mpi
Branch: MAIN
Changes since 1.1: +16 -0 lines
Diff to previous 1.1 (colored)

CVS Id and license.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Aug 11 14:21:24 2017 UTC (6 years, 9 months ago) by mpi
Branch: MAIN

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@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.