From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 23 Sep 2002 20:59:53 +0300 From: Sanja Byelkin To: ALT Linux Sisyphus mailing list , Sanja Byelkin Subject: Re: [sisyphus] C++ & gdb Message-ID: <20020923175953.GA9316@sanja.is.com.ua> Mail-Followup-To: Sanja Byelkin , ALT Linux Sisyphus mailing list References: <20020923045044.GC26771@pyro.hopawar.private.net> <20020923123346.GA2607@pyro.hopawar.private.net> <20020923124244.GB937@basalt.office.altlinux.ru> <20020923132831.GA7702@sanja.is.com.ua> <20020923134241.GA11462@basalt.office.altlinux.ru> <20020923135336.GA8162@sanja.is.com.ua> <20020923140006.GA14046@basalt.office.altlinux.ru> <20020923141119.GA8263@sanja.is.com.ua> <20020923144526.GC14540@basalt.office.altlinux.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20020923144526.GC14540@basalt.office.altlinux.ru> User-Agent: Mutt/1.4i Sender: sisyphus-admin@altlinux.ru Errors-To: sisyphus-admin@altlinux.ru X-BeenThere: sisyphus@altlinux.ru X-Mailman-Version: 2.0.13 Precedence: bulk Reply-To: sisyphus@altlinux.ru X-Reply-To: Sanja Byelkin List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Archived-At: List-Archive: =E2=CF=C2=D2=CF=C7=CF =D7=D2=C5=CD=C5=CE=C9 =D3=D5=D4=CF=CB! On Mon, Sep 23, 2002 at 06:45:26PM +0400, Dmitry V. Levin wrote: > On Mon, Sep 23, 2002 at 05:11:19PM +0300, Sanja Byelkin wrote: > > > =F0=CF=DE=C5=CD=D5 =D6=C5? =E4=CF=D3=D4=C1=D4=CF=DE=CE=CF =D0=C5=D2= =C5=CB=CC=C0=DE=C9=D4=D8=D3=D1 =D7 =CE=D5=D6=CE=D9=CA thread (=D3=CD. info = threads > > > =D0=D2=C9 =D0=CF=CC=D5=DE=C5=CE=C9=C9 =D0=D2=C5=D2=D9=D7=C1=CE=C9=D1). > >=20 > > 1. info threads =CE=C9=DE=C5=C7=CF =CE=C5 =CE=C1=C8=CF=C4=C9=D4 > > 2. =CD=CF=D6=CE=CF =D0=CF=C4=D2=CF=C2=CE=C5=C5 =C7=C4=C5 =C9=D3=CB=C1= =D4=D8 >=20 > info gdb, =CE=C1 =D4=C5=CD=D5 "Debugging programs with multiple threads". >=20 > > 3. =D0=CF =D7=CF=D3=D0=CF=CD=C9=CE=C1=CE=C9=D1=CD =CB=C1=CB =CF=CE=CF = =D2=C1=C2=CF=D4=C1=CC=CF =D7 ASP-linux, =C4=C5=CA=D3=D4=D7=C9=D4=C5=CC=D8= =CE=CF gdb > > =D2=C5=C7=D5=CC=D1=D2=CE=CF =D3=CF=CF=C2=DD=C1=CC, =DE=D4=CF =D0=C5=D2= =C5=CB=CC=C0=DE=C1=C5=D4=D3=D1 =CE=C1 thred =D4=C1=CB=CF=CA-=D4=CF =CD=C5= =D3=D4=CE=D9=CA =DC=D4=CF=C7=CF =C4=C5=CC=C1=D4=D8 > > =CE=C5 =C8=CF=DE=C5=D4 - =CF=D3=D4=C1=CC=CF=D3=D8 =D7=D9=D1=D3=CE=C9=D4= =D8 =CB=C1=CB =DA=C1=D3=D4=C1=D7=C9=D4=D8 =CD=C5=D3=D4=CE=D9=CA (=C5=D3=CC= =C9 =D7=CF=CF=C2=DD=C5 =D7=CF=DA=CD=CF=D6=CE=CF :) >=20 > =E4=D5=CD=C1=C0, =DE=D4=CF =D4=C1=CB =D6=C5. Program received signal SIGTRAP, Trace/breakpoint trap. 0x2ac3ef6e in select () from /lib/libc.so.6 (gdb) info threads (gdb)=20 =D4.=C5. =D7=D9=C2=C9=D2=C1=D4=D8 =CE=C5=C9=DA=DE=C5=C7=CF =EB=D2=CF=CD=C5 =D4=CF=C7=CF =D7 =C4=CF=CB=C5 =D3=CB=C1=DA=C1=CE=CF: Whenever GDB stops your program, due to a breakpoint or a signal, it automatically selects the thread where that breakpoint or signal happened. GDB alerts you to the context switch with a message of the form `[Switching to SYSTAG]' to identify the thread. =D4.=C5. =CB=C1=CB-=C2=D9 =D0=C5=D2=C5=CB=CC=C0=DE=C1=D4=D8 =C9 =CE=C5 =CE= =C1=C4=CF - =D3=C1=CD=CF =D0=C5=D2=C5=CB=CC=C0=DE=C9=D4=D8 =C4=CF=CC=D6=CE= =CF. =EB=D2=CF=CD=C5 =D4=CF=C7=CF: Whenever GDB detects a new thread in your program, it displays both GDB's thread number and the target system's identification for the thread with a message in the form =1BNew SYSTAG]'. SYSTAG is a thread identifier whose form varies depending on the particular system. For example, on HP-UX, you see [New thread 2 (system thread 26594)] when GDB notices a new thread. =F1 =D7=C9=C4=C5=CC =DC=D4=C9 =D0=D2=C5=C4=D5=D0=D2=C5=D6=C4=C5=CE=C9=D1 = =D7 gdb-5.1 =C9=DA update=CF=D7 ASPLinux 7.2 =C9 =CE=C5 =D7=C9=D6=D5 =DA=C4=C5=D3=D8. =ED=CF=D6=C5=D4 =C2=D9=D4=D8 SIG32 (=CE=C5 =D0=CF=CD=CE=C0 =D0=CF=D3=D4=CF= =D1=CE=CE=D9=C8 =CD=C1=D4=C0=CB=CF=D7 =CF SIG32 =CF=D4 =CD=CF=C5=C7=CF =D0= =D2=C5=C4=D9=C4=D5=DD=C5=C7=CF=20 =CF=D4=CC=C1=C4=DE=C9=CB=C1) =C9=CC=C9 =C5=DD=C5 =CB=C1=CB=CF=CA=CE=C9=D4= =D8 =D3=C9=C7=CE=C1=CC =CE=C5 =D0=D2=CF=CB=CC=C0=DE=C5=CE =CB=D5=C4=C1 =CE= =C1=C4=CF =D0=CF =D5=CD=CF=CC=DE=C1=CE=C9=C0 =C9=CC=C9 =C5=DD=C5 =DE=C5=C7=CF - =CD=CE=C5 =D3=CB=C1=DA=C1=D4=D8 =D4=D2=D5=C4=CE=CF= - =D1 =CE=C5 =D2=C1=DA=C2=C9=D2=C1=CC=D3=D1 =D7 =D4=CF=CA =CD=C5=D2=C5 =D3= gdb, =CE=CF =CE=C5 =D2=C1=C2=CF=D4=C1=C5=D4. --=20 For technical support contracts, visit https://order.mysql.com/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Mr. Oleksandr Byelkin / /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer /_/ /_/\_, /___/\___\_\___/ Lugansk, Ukraine <___/ www.mysql.com