Regression for attach from stdin [Re: [pushed] Re: [PATCH v6 0/2] enable target-async by default]

Jan Kratochvil jan.kratochvil@redhat.com
Tue Jul 1 16:28:00 GMT 2014


On Thu, 29 May 2014 15:44:02 +0200, Pedro Alves wrote:
> I went ahead and pushed this all in, with Eli's comments addressed.

329ea57934a9d4b250a0b417af1ec47bc2d0ceb6 is the first bad commit
commit 329ea57934a9d4b250a0b417af1ec47bc2d0ceb6
Author: Pedro Alves <palves@redhat.com>
Date:   Thu May 29 19:58:57 2014 +0100
    enable target async by default; separate MI and target notions of async

This affects GCC testsuite where guality.exp does not start at all with:
	gdb: took too long to attach


cat >var2.c <<HERE
#include <stdio.h>
volatile int xxx;
int main(void) {
  while (!xxx);
  printf("xxx=%d\n",xxx);
  return 0;
}
HERE
gcc -o var2 var2.c -Wall -g
./var2 &p=$!;sleep 0.1;echo -e "set trace-commands\nattach $p\nset xxx=1\nprint xxx"|gdb -q;kill -9 $p

--->

[1] 31729
(gdb) (gdb) +attach 31729
Attaching to process 31729
+set xxx=1
No symbol table is loaded.  Use the "file" command.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(gdb) Reading symbols from /home/jkratoch/t/var2...done.
Reading symbols from /lib64/libc.so.6...Reading symbols from /usr/lib/debug/usr/lib64/libc-2.19.90.so.debug...done.
done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/usr/lib64/ld-2.19.90.so.debug...done.
done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
0x0000000000400541 in main () at var2.c:4
4	  while (!xxx);
+print xxx
$1 = 0


Jan



More information about the Gdb-patches mailing list