This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb 7.3.50-2 crash


On 10/16/2011 7:01 AM, Ken Brown wrote:
gdb 7.3.50-2 crashes with a segfault if a file is loaded and the
following two command lines are sent:

server interpreter mi "-file-list-exec-source-files"
server list

I don't know if it helps, but I've modified the STC from http://cygwin.com/ml/cygwin/2011-10/msg00472.html to apply to the present problem. I had to uncomment the sleep (1) to get it to run properly on my Linux system. I also made the STC run "gdb --annotate=3" even though the crash occurs with just "gdb", because that's how gdb is run by emacs in the situation that led to this bug report.


The STC assumes that you have hello.exe in the current directory.

$ cat > hello.c << EOF
#include <stdio.h>

int
main ()
{
 printf("Hello, world!\n");
 return 0;
}
EOF

$ gcc -g -o hello hello.c

Ken

Attachment: gdbsegv.cc
Description: Text document

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]