From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25675 invoked by alias); 7 Jul 2011 13:47:31 -0000 Received: (qmail 25666 invoked by uid 22791); 7 Jul 2011 13:47:30 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_00,RDNS_NONE,SPF_NEUTRAL,TO_NO_BRKTS_NORDNS X-Spam-Check-By: sourceware.org Received: from Unknown (HELO sauxb.salomon.at) (193.186.16.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 07 Jul 2011 13:47:14 +0000 Received: from servex01.wamas.com (servex01.salomon.at [172.28.2.2]) by sauxb.salomon.at (8.12.10/8.12.10) with ESMTP id p67Dl6JR023900 for ; Thu, 7 Jul 2011 15:47:06 +0200 (METDST) Received: from [172.28.8.166] ([172.28.8.166]) by servex01.wamas.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 7 Jul 2011 15:47:06 +0200 Message-ID: <4E15B8DA.1090906@gentoo.org> Date: Thu, 07 Jul 2011 13:47:00 -0000 From: Markus Duft User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110706 Lightning/1.0b3pre Thunderbird/3.1.10 MIME-Version: 1.0 To: gdb@sourceware.org Subject: Re: binary debugging and generate source of which that running References: <1309985511.4202.15.camel@debian> <1310013482.2302.9.camel@debian> <1310028334.2302.15.camel@debian> <1310030069.2302.19.camel@debian> <4E15A775.1000708@broadcom.com> In-Reply-To: <4E15A775.1000708@broadcom.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-07/txt/msg00051.txt.bz2 On 07/07/11 14:32, Andrew Burgess wrote: > On 07/07/2011 10:14, Mohsen Pahlevanzadeh wrote: >> You suppose my program has 10 functions, and my program in running now >> by gdb, i wanna know when i send signal x y z to my program, myprgram >> call which function, So i need to a command same as list but immediately >> print source of peace of running. > > Maybe "handle" is what you want? > http://sourceware.org/gdb/current/onlinedocs/gdb/Signals.html#Signals > > You can arrange to stop on each signal x, y, and z, then step into the handlers for each as they arrive. As i understood it, he wants to be able to see whats happening as the program executes normally, much like a strace or truss, but printing the according source information. is this correct? Markus > > Andrew >