
With host board local-remote-host.exp and test-case gdb.base/return-nodebug.exp, I run into: ... Executing on host: gcc -fno-stack-protector -fdiagnostics-color=never \ -DTYPE=signed\ char -c -g -o return-nodebug-signed-char0.o \ /home/vries/gdb_versions/devel/src/gdb/testsuite/gdb.base/return-nodebug.c \ (timeout = 300) builtin_spawn [open ...]^M gcc: error: char: No such file or directory ... Avoid the quoting problem by not using spaces in the define. Tested on x86_64-linux.
43 lines
1 KiB
C
43 lines
1 KiB
C
/* This testcase is part of GDB, the GNU debugger.
|
|
|
|
Copyright 2009-2022 Free Software Foundation, Inc.
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
|
|
#ifdef TYPE_NOSPACE_long_long
|
|
#define TYPE long long
|
|
#elif defined TYPE_NOSPACE_signed_char
|
|
#define TYPE signed char
|
|
#else
|
|
#define TYPE TYPE_NOSPACE
|
|
#endif
|
|
|
|
extern TYPE func (void);
|
|
|
|
static void
|
|
marker (void)
|
|
{
|
|
}
|
|
|
|
TYPE t;
|
|
|
|
int
|
|
main (void)
|
|
{
|
|
t = func ();
|
|
|
|
marker ();
|
|
|
|
return 0;
|
|
}
|