From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26300 invoked by alias); 7 Jul 2011 12:33:18 -0000 Received: (qmail 26290 invoked by uid 22791); 7 Jul 2011 12:33:17 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mms1.broadcom.com (HELO mms1.broadcom.com) (216.31.210.17) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 07 Jul 2011 12:33:03 +0000 Received: from [10.9.200.131] by mms1.broadcom.com with ESMTP (Broadcom SMTP Relay (Email Firewall v6.3.2)); Thu, 07 Jul 2011 05:37:57 -0700 X-Server-Uuid: 02CED230-5797-4B57-9875-D5D2FEE4708A Received: from mail-irva-13.broadcom.com (10.11.16.103) by IRVEXCHHUB01.corp.ad.broadcom.com (10.9.200.131) with Microsoft SMTP Server id 8.2.247.2; Thu, 7 Jul 2011 05:32:54 -0700 Received: from [10.177.73.61] (unknown [10.177.73.61]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 214AE74D03 for ; Thu, 7 Jul 2011 05:32:53 -0700 (PDT) Message-ID: <4E15A775.1000708@broadcom.com> Date: Thu, 07 Jul 2011 12:33:00 -0000 From: "Andrew Burgess" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11 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> In-Reply-To: <1310030069.2302.19.camel@debian> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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/msg00050.txt.bz2 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. Andrew