From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30752 invoked by alias); 7 Jul 2011 15:24:33 -0000 Received: (qmail 30741 invoked by uid 22791); 7 Jul 2011 15:24:32 -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:24:18 +0000 Received: (qmail 55530 invoked from network); 7 Jul 2011 15:43:55 -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:43:55 -0000 Subject: Re: binary debugging and generate source of which that running From: Mohsen Pahlevanzadeh To: Markus Duft Cc: gdb@sourceware.org In-Reply-To: <4E15B8DA.1090906@gentoo.org> 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> <4E15B8DA.1090906@gentoo.org> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-KiqpKrmTDaAWIKepL2AH" Date: Thu, 07 Jul 2011 15:24:00 -0000 Message-ID: <1310052214.2313.2.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/msg00055.txt.bz2 --=-KiqpKrmTDaAWIKepL2AH Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Content-length: 1101 Yes, Of course,For instance, if your program run function myfunc() agains signal OOO, i can see source of myfunc and name of myfunc(), of course, name of function is very important. --mohsen On Thu, 2011-07-07 at 15:47 +0200, Markus Duft wrote: > 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 immediate= ly > >> 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 = handlers for each as they arrive. >=20 > As i understood it, he wants to be able to see whats happening as the pro= gram executes normally, much like a strace or truss, but printing the accor= ding source information. is this correct? >=20 > Markus >=20 > >=20 > > Andrew > >=20 >=20 --=-KiqpKrmTDaAWIKepL2AH 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) iJwEAAECAAYFAk4Vz1sACgkQLL00bYOy4Bbg0gP+J9NsBNuYMl/NpCQVXW2l+waR iYIMd06bZpMRRUo97V0GwSWVeHQQK+Y/uT5kAJOKpf2LrsUBCdzkU+zbKkqGp1Zr e//MaKy6yn50DZbptZ9QOPL9g+fME0YZFlpvfSyYQk855RTaC24DGBhRuAv1B3Hk LF4DH2KeOrjab4ZegIU= =7b/G -----END PGP SIGNATURE----- --=-KiqpKrmTDaAWIKepL2AH--