From: Bart Van Assche Date: Sun, 8 May 2011 10:10:04 +0000 (+0000) Subject: Follow-up for r11729: make the gdbserver regression tests pass again. X-Git-Tag: svn/VALGRIND_3_7_0~507 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06748356478f6d50cb9f63b0e48aac96e3113edd;p=thirdparty%2Fvalgrind.git Follow-up for r11729: make the gdbserver regression tests pass again. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11730 --- diff --git a/gdbserver_tests/clean_after_fork.c b/gdbserver_tests/clean_after_fork.c index 2246bb0ae7..b8a7037fd0 100644 --- a/gdbserver_tests/clean_after_fork.c +++ b/gdbserver_tests/clean_after_fork.c @@ -3,12 +3,9 @@ #include #include #include - int main() { - int mem = 0; - int pid; - + int mem = 0, pid; pid = fork(); if (pid == -1) { mem = 1; diff --git a/gdbserver_tests/mssnapshot.stdoutB.exp b/gdbserver_tests/mssnapshot.stdoutB.exp index 274eab02c4..0166d554d7 100644 --- a/gdbserver_tests/mssnapshot.stdoutB.exp +++ b/gdbserver_tests/mssnapshot.stdoutB.exp @@ -3,4 +3,4 @@ Remote debugging using | ./vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-mssnapshot Breakpoint 1 at 0x........: file t.c, line 105. Continuing. Breakpoint 1, main (argc=1, argv=0x........) at t.c:105 -105 char *main_name = "main name"; +105 char *main_name __attribute__((unused)) = "main name"; diff --git a/gdbserver_tests/sleepers.c b/gdbserver_tests/sleepers.c index b7433ef9c1..67c3743724 100644 --- a/gdbserver_tests/sleepers.c +++ b/gdbserver_tests/sleepers.c @@ -22,7 +22,6 @@ static pid_t gettid() return getpid(); #endif } - // will be invoked from gdb. static void whoami(char *msg) __attribute__((unused)); static void whoami(char *msg)