]> git.ipfire.org Git - thirdparty/gcc.git/commit
bpf: set PREFERRED_DEBUGGING_TYPE to BTF_DEBUG
authorDavid Faust <david.faust@oracle.com>
Wed, 24 Apr 2024 22:01:02 +0000 (15:01 -0700)
committerDavid Faust <david.faust@oracle.com>
Thu, 25 Apr 2024 18:53:29 +0000 (11:53 -0700)
commit1604f7cebc49220e47d584615bcd91b1fdc1267f
treee94f19baf19347d6e9a495f20ba150cfcecd96c6
parentf541757ba4632e204169dd08a5f10c782199af42
bpf: set PREFERRED_DEBUGGING_TYPE to BTF_DEBUG

BTF is the standard debug info used with BPF programs, so it makes sense
to default to BTF rather than DWARF.

gcc/
* config/bpf/bpf.h (PREFERRED_DEBUGGING_TYPE): Set to BTF_DEBUG.

gcc/testsuite/
* gcc.target/bpf/bpf-debug-options-1.c: New test.
* gcc.target/bpf/bpf-debug-options-2.c: Likewise.
* gcc.target/bpf/bpf-debug-options-3.c: Likewise.
* gcc.target/bpf/core-options-4.c: Likewise.
gcc/config/bpf/bpf.h
gcc/testsuite/gcc.target/bpf/bpf-debug-options-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/bpf/bpf-debug-options-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/bpf/bpf-debug-options-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/bpf/core-options-4.c [new file with mode: 0644]