This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB 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: threads/1871: Cannot access threads at all in x86_64-linux


The following reply was made to PR threads/1871; it has been noted by GNATS.

From: Javier Kohen <jkohen@users.sourceforge.net>
To: gdb-gnats@sources.redhat.com
Cc:  
Subject: Re: threads/1871: Cannot access threads at all in x86_64-linux
Date: Thu, 17 Feb 2005 18:54:52 -0500

 The log. I don't know how to add another attachment.
 
 $ gdb ./foo
 GNU gdb 6.3-debian
 Copyright 2004 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you are
 welcome to change it and/or distribute copies of it under certain 
 conditions.
 Type "show copying" to see the conditions.
 There is absolutely no warranty for GDB.  Type "show warranty" for details.
 This GDB was configured as "x86_64-linux"...Using host libthread_db 
 library "/lib/libthread_db.so.1".
 
 (gdb) r
 Starting program: /tmp/foo
 Hello threaded world
 Hello world
 
 Program exited normally.
 (gdb) break t
 Breakpoint 1 at 0x400594: file foo.c, line 7.
 (gdb) r
 Starting program: /tmp/foo
 
 Program terminated with signal SIGSEGV, Segmentation fault.
 The program no longer exists.
 (gdb) break main
 Breakpoint 2 at 0x4005b2: file foo.c, line 17.
 (gdb) del 1
 (gdb) r
 Starting program: /tmp/foo
 
 Breakpoint 2, main () at foo.c:17
 17              pthread_create(&pt, NULL, t, NULL);
 (gdb) n
 Hello threaded world
 19              printf("Hello world\n");
 (gdb) info threads
 (gdb) thread
 [Current thread is 0 (process 24261)]
 (gdb) The program is running.  Exit anyway? (y or n) y
 
 -- 
 Javier Kohen <jkohen@users.sourceforge.net>
 ICQ: blashyrkh #2361802
 Jabber: jkohen@jabber.org


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