From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2205) id 75F3B3858298; Fri, 14 Oct 2022 19:23:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 75F3B3858298 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1665775401; bh=zmnSOdVqMnKSu4VKgY0y5e8jSSPSvIOwArMSLa+8I/4=; h=From:To:Subject:Date:From; b=O/ZY5LtZ77rmG59RXhm4TEBIj/AINoJJcSZgm1OPgSY0Sxhy8345sbbh85kHZjx3P 7rlR/4V/ON2a1/KCT7XG+kl3tUtuR+ojxSAZOSMCi3eJcyr97rCke6cbfOzhbG1aNf jmQ8m38EpLDm7tuvwhR7L3LcWhwy6wPuhQqX8Bcw= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom de Vries To: gdb-cvs@sourceware.org Subject: [binutils-gdb] [gdb/testsuite] Add boards/README X-Act-Checkin: binutils-gdb X-Git-Author: Tom de Vries X-Git-Refname: refs/heads/master X-Git-Oldrev: fb799bba55aea6b769584bf6b17d7040343024e7 X-Git-Newrev: 21bb08785d1647924e3cd37652c7ff48060e4829 Message-Id: <20221014192321.75F3B3858298@sourceware.org> Date: Fri, 14 Oct 2022 19:23:21 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D21bb08785d16= 47924e3cd37652c7ff48060e4829 commit 21bb08785d1647924e3cd37652c7ff48060e4829 Author: Tom de Vries Date: Fri Oct 14 21:22:57 2022 +0200 [gdb/testsuite] Add boards/README =20 Add a file gdb/testsuite/boards/README, to make it easier to get a high= -level overview of the various boards. Diff: --- gdb/testsuite/boards/README | 88 +++++++++++++++++++++++++++++++++++++++++= ++++ 1 file changed, 88 insertions(+) diff --git a/gdb/testsuite/boards/README b/gdb/testsuite/boards/README new file mode 100644 index 00000000000..f3994da365c --- /dev/null +++ b/gdb/testsuite/boards/README @@ -0,0 +1,88 @@ +This is a collection of boards for GDB. + +The file gdb/testsuite/boards/README contains an overview of the boards. = The +idea is to group similar boards together, and have one line to describe a +board. + +# Modify gdb default flags. +readnow.exp + Run gdb with -readnow. + +# Post-process executable. +cc-with-gdb-index.exp + Use gdb to create .gdb_index section. +cc-with-debug-names.exp + Use gdb to create .debug_names section. +cc-with-dwz.exp + Use dwz to compress debug info in executable. +cc-with-dwz-m.exp + Use dwz to compress debug info in executable, optionally moving debug + info to a separate file. +cc-with-gnu-debuglink.exp + Use strip to move the debug info from executable to a separate file, + and add a .gnu_debuglink to it. +cc-with-tweaks.exp + Base board used by all boards in this section, but can be used by + itself, f.i. do more than one type of post-processing. + +# Modify debug_flags. +debug-types.exp + Add -fdebug-types-section. +dwarf64.exp + Add -gdwarf64. +gold.exp + Add -fuse-ld=3Dgold. +gold-gdb-index.exp + Add -fuse-ld=3Dgold -Wl,--gdb-index -ggnu-pubnames +stabs.exp + Add -gstabs+. + +# Test -gsplit-dwarf. +fission.exp + Set debug_flags to -gdwarf-4 -gsplit-dwarf -ggnu-pubnames + -fdebug-types-section -Wl,--gdb-index -fuse-ld=3Dgold. +fission-dwp.exp + As fission.exp, but also post-process executables to generate a .dwp + file. + +# Test various things at the same time. +dwarf4-gdb-index.exp + Set debug_flags to -gdwarf-4 -fdebug-types-section, and post-process + executable using gdb to create .gdb_index section. + +# [is_remote host] =3D=3D 0 && [is_remote target] =3D=3D 0. +native-gdbserver.exp + Test gdbserver using gdb_protocol remote. +native-extended-gdbserver.exp + Test gdbserver using gdb_protocol extended-remote. +native-stdio-gdbserver.exp + Test gdbserver using stdio connection. + +# [is_remote host] =3D=3D 0 && [is_remote target] =3D=3D 1. +remote-gdbserver-on-localhost.exp + Run gdbserver on remote target. +remote-stdio-gdbserver.exp + Run gdbserver on remote target, using stdio connection. + +# [is_remote host] =3D=3D 1 && [is_remote target] =3D=3D 0. +# Note: need to pass the board with --host_board instead of --target_board. +local-remote-host-notty.exp + Run gdb on remote host. +local-remote-host.exp + Run gdb on remote host in pseudo-terminal. + +# [is_remote host] =3D=3D 1 && [is_remote target] =3D=3D 1. +# Note: need to pass the board with both --target_board and --host_board. +local-remote-host-native.exp + Run gdb on remote host, run gdbserver on remote target, with + host =3D=3D target. + +# Target-specific. +simavr.exp + Use simavr as target. + +# Base boards, mostly to be included by other boards, so no individual +# description. +stdio-gdbserver-base.exp +gdbserver-base.exp +local-board.exp