From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1807 invoked by alias); 7 Jul 2011 15:26:59 -0000 Received: (qmail 1798 invoked by uid 22791); 7 Jul 2011 15:26:59 -0000 X-SWARE-Spam-Status: No, hits=0.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_SORBS_WEB X-Spam-Check-By: sourceware.org Received: from smtp.hosting.parsonline.net (HELO smtp.hosting.parsonline.net) (213.217.60.12) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Thu, 07 Jul 2011 15:26:44 +0000 Received: (qmail 55598 invoked from network); 7 Jul 2011 15:46:22 -0000 Received: from exit-node-readme.linuxfire.net (HELO ?127.0.0.1?) (mohsen@pahlevanzadeh.org@190.120.231.235) by 0 with SMTP; 7 Jul 2011 15:46:22 -0000 Subject: Re: binary debugging and generate source of which that running From: Mohsen Pahlevanzadeh To: Andrew Burgess Cc: gdb@sourceware.org In-Reply-To: <4E15A775.1000708@broadcom.com> 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> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-7TeIveQxDHqCoPrm52dW" Date: Thu, 07 Jul 2011 15:26:00 -0000 Message-ID: <1310052373.2313.4.camel@debian> Mime-Version: 1.0 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/msg00056.txt.bz2 --=-7TeIveQxDHqCoPrm52dW Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Content-length: 742 Dear Andrew Please attention to previous email...My mean is not SIG...signal is a message that user emit it. --mohsen On Thu, 2011-07-07 at 13:32 +0100, 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. >=20 > Maybe "handle" is what you want? > http://sourceware.org/gdb/current/onlinedocs/gdb/Signals.html#Signals >=20 > You can arrange to stop on each signal x, y, and z, then step into the=20 > handlers for each as they arrive. >=20 > Andrew >=20 --=-7TeIveQxDHqCoPrm52dW Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-length: 316 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iJwEAAECAAYFAk4V0BUACgkQLL00bYOy4BZdiQP/bs3a+l/aDpwNSoZOjzbIX+se GvzIz93UmI3vLklDJ0AAmZZN3VgDb4RnLRSamVDXU/vs++rZckI/JfhBNYUZysom n1OtQCawBhzAhah0M3JSdngsVrs+cCACYoSZsLLcq82zg1yEmBCXYJXx6aB+LpfV XSlj0aIGF2zR0sMEMS0= =61kK -----END PGP SIGNATURE----- --=-7TeIveQxDHqCoPrm52dW--