diff options
author | Tom de Vries <tdevries@suse.de> | 2022-10-14 13:09:50 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2022-10-14 13:09:50 +0200 |
commit | 1e4be05b752cc94019ed12d6d305e13e55530724 (patch) | |
tree | 194f86c0fb404c22f78b92c184bba71ced0d948f /gdb/cli/cli-script.c | |
parent | 2ff50ff02d99b27b6b2069c931f759d86afdbbe2 (diff) | |
download | gdb-1e4be05b752cc94019ed12d6d305e13e55530724.zip gdb-1e4be05b752cc94019ed12d6d305e13e55530724.tar.gz gdb-1e4be05b752cc94019ed12d6d305e13e55530724.tar.bz2 |
[gdb/testsuite] Add cond_wrap proc
Add a new proc cond_wrap, that can be used to replace the repetitive:
...
if { $cond } {
wrap {
<body>
}
} else {
<body>
}
...
with the shorter:
...
cond_wrap $cond wrap {
<body>
}
...
Tested on x86_64-linux.
Diffstat (limited to 'gdb/cli/cli-script.c')
0 files changed, 0 insertions, 0 deletions