]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Follow-up for r11729: make the gdbserver regression tests pass again.
authorBart Van Assche <bvanassche@acm.org>
Sun, 8 May 2011 10:10:04 +0000 (10:10 +0000)
committerBart Van Assche <bvanassche@acm.org>
Sun, 8 May 2011 10:10:04 +0000 (10:10 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11730

gdbserver_tests/clean_after_fork.c
gdbserver_tests/mssnapshot.stdoutB.exp
gdbserver_tests/sleepers.c

index 2246bb0ae7d256af7011dd31a4ef60c558e26716..b8a7037fd0c71428cf641f971a15c6e0073c55db 100644 (file)
@@ -3,12 +3,9 @@
 #include <errno.h>
 #include <unistd.h>
 #include <sys/wait.h>
-
 int main()
 {
-   int mem = 0;
-   int pid;
-   
+   int mem = 0, pid;
    pid = fork();
    if (pid == -1) {
       mem = 1;
index 274eab02c49e0290098309ef01d63b1cf4d230d4..0166d554d7aef50e895da37cd3c996a973e71447 100644 (file)
@@ -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";
index b7433ef9c1c3ab41ea0738aea67c86f43f92ca0a..67c374372426e9571ec8ce8b98e0641ed182ab90 100644 (file)
@@ -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)