From MAILER-DAEMON Mon Dec 03 11:00:41 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TfYRl-0000ya-PS
	for mharc-gdb@gnu.org; Mon, 03 Dec 2012 11:00:41 -0500
Received: from eggs.gnu.org ([208.118.235.92]:60224)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hz50241027@163.com>) id 1TfYRe-0000xj-JV
	for gdb@gnu.org; Mon, 03 Dec 2012 11:00:40 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hz50241027@163.com>) id 1TfYRV-00086J-2A
	for gdb@gnu.org; Mon, 03 Dec 2012 11:00:34 -0500
Received: from mproxyjp5.163.com ([176.34.24.136]:43394)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hz50241027@163.com>) id 1TfYRT-00080J-4p
	for gdb@gnu.org; Mon, 03 Dec 2012 11:00:24 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com;
	s=s110527; h=Received:Date:From:To:Subject:Content-Type:
	MIME-Version:Message-ID; bh=0nZb7oyIJIz76HYM7u1wAmwsRqJKMD5r5Qm1
	xzcPJAs=; b=Rw2dbBohVX4VVGnopqMZIcgAwNQMlITH0cgXqX580a5+RqE5/6X+
	X8PsRvnVh/R/jrxgdalWwfwtv2+5wlkxppJjRO/FDtZAhsdtE8SYmnQp8jpp4yR6
	tuaCIfuIAjvulpDoeEyYaLZ0FxWkVA7aXYzS4pnDnIlwJsC925Gt1eE=
Received: from hz50241027$163.com ( [129.241.141.101] ) by
	ajax-webmail-wmsvr128 (Coremail) ; Mon, 3 Dec 2012 23:44:35 +0800 (CST)
X-Originating-IP: [129.241.141.101]
Date: Mon, 3 Dec 2012 23:44:35 +0800 (CST)
From: hz50241027 <hz50241027@163.com>
To: gdb <gdb@gnu.org>
Subject: Fw:gdb
X-Priority: 3
X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build
	20121107(20462.5035.5036) Copyright (c) 2002-2012 www.mailtech.cn
	163com
X-CM-CTRLDATA: /IvR1WZvb3Rlcl9odG09MzQzNTo4MQ==
Content-Type: multipart/alternative; 
	boundary="----=_Part_6576_648889968.1354549475754"
MIME-Version: 1.0
Message-ID: <11cb13bf.8e7.13b6170b9aa.Coremail.hz50241027@163.com>
X-CM-TRANSID: gMGowEBp+EDkyLxQnDhKAA--.2629W
X-CM-SenderInfo: dk2vijqurqjli6rwjhhfrp/1tbiVgh6Yk9o43jKwwABsy
X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU==
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 176.34.24.136
X-BeenThere: gdb@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Discussion list for gdb, the GNU source debugger." <gdb.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/gdb>,
	<mailto:gdb-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/gdb>
List-Post: <mailto:gdb@gnu.org>
List-Help: <mailto:gdb-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/gdb>,
	<mailto:gdb-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 03 Dec 2012 16:00:40 -0000

------=_Part_6576_648889968.1354549475754
Content-Type: text/plain; charset=GBK
Content-Transfer-Encoding: 7bit




Dear gdb group:
    I am a new user of gdb. I have a stupid problems. When I set breakpoint in my program, it seems that I can only set at the function. When I set in a line of my code, it won't stop.For example, I can set the break point at MatGetOwnershipRange(by break MatGetOwnershipRange), but if I want to stop at  do 10, II=Istart+1,Iend by (break do 10, II=Istart+1,Iend), it won't stop there.
       i1 = 1
       m       = NN
       n       = NN
       five    = 27
       call PetscOptionsGetInt(PETSC_NULL_CHARACTER,'-m',m,flg,ierr)
       call PetscOptionsGetInt(PETSC_NULL_CHARACTER,'-n',n,flg,ierr)
       call MPI_Comm_rank(PETSC_COMM_WORLD,rank,ierr)



       call MatCreate(PETSC_COMM_WORLD,A,ierr)
       call MatSetSizes(A,PETSC_DECIDE,PETSC_DECIDE,n,n,ierr)
       call MatSetType(A, MATAIJ,ierr)
       call MatSetFromOptions(A,ierr)
      call MatMPIAIJSetPreallocation(A,five,PETSC_NULL_INTEGER,five,            &
     &                     PETSC_NULL_INTEGER,ierr)
       call MatSeqAIJSetPreallocation(A,five,PETSC_NULL_INTEGER,ierr)


       call MatGetOwnershipRange(A,Istart,Iend,ierr)


       do 10, II=Istart+1,Iend
         ROW_NUM=SPAI(II+1)-SPAI(II)
             ALLOCATE(NCOL_PERROW(ROW_NUM),VALUE_PERROW(ROW_NUM))
             KVAL_START=SPAI(II)
             KVAL_END=SPAI(II+1)-1
             NCOL_PERROW=SPAJ(KVAL_START:KVAL_END)
             VALUE_PERROW=SPAA(KVAL_START:KVAL_END)
        call  MatSetValues(A,i1,II-1,ROW_NUM,NCOL_PERROW,VALUE_PERROW,INSERT_VALUES,ierr)
             DEALLOCATE(NCOL_PERROW,VALUE_PERROW)
  10   continue

Another problem is that when I stop at MatGetOwnershipRange, I want to see the value of i1 by print i1, it shows No symbol "i1" in current context.




------=_Part_6576_648889968.1354549475754
Content-Type: text/html; charset=GBK
Content-Transfer-Encoding: 7bit

<br><div><br>Dear gdb group:<br>&nbsp;&nbsp;&nbsp; I am a new user of gdb. I have a stupid problems. When I set breakpoint in my program, it seems that I can only set at the function. When I set in a line of my code, it won't stop.For example, I can set the break point at <font color="#f00000">MatGetOwnershipRange</font><font color="#f00000">(by break </font><font color="#f00000">MatGetOwnershipRange</font><font color="#f00000"> </font>), but if I want to stop at&nbsp; <font color="#f00000">do 10, II=Istart+1,Iend</font> by (break <font color="#f00000">do 10, II=Istart+1,Iend</font>), it won't stop there. <br><font color="#000080">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; i1 = 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = NN<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = NN<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; five&nbsp;&nbsp;&nbsp; = 27<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; call PetscOptionsGetInt(PETSC_NULL_CHARACTER,'-m',m,flg,ierr)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; call PetscOptionsGetInt(PETSC_NULL_CHARACTER,'-n',n,flg,ierr)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; call MPI_Comm_rank(PETSC_COMM_WORLD,rank,ierr)<br><br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; call MatCreate(PETSC_COMM_WORLD,A,ierr)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; call MatSetSizes(A,PETSC_DECIDE,PETSC_DECIDE,n,n,ierr)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; call MatSetType(A, MATAIJ,ierr)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; call MatSetFromOptions(A,ierr)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; call MatMPIAIJSetPreallocation(A,five,PETSC_NULL_INTEGER,five,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;<br>&nbsp;&nbsp;&nbsp;&nbsp; &amp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PETSC_NULL_INTEGER,ierr)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; call MatSeqAIJSetPreallocation(A,five,PETSC_NULL_INTEGER,ierr)<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; call MatGetOwnershipRange(A,Istart,Iend,ierr)<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; do 10, II=Istart+1,Iend<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ROW_NUM=SPAI(II+1)-SPAI(II)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ALLOCATE(NCOL_PERROW(ROW_NUM),VALUE_PERROW(ROW_NUM))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; KVAL_START=SPAI(II)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; KVAL_END=SPAI(II+1)-1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NCOL_PERROW=SPAJ(KVAL_START:KVAL_END)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VALUE_PERROW=SPAA(KVAL_START:KVAL_END)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; call&nbsp; MatSetValues(A,i1,II-1,ROW_NUM,NCOL_PERROW,VALUE_PERROW,INSERT_VALUES,ierr)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DEALLOCATE(NCOL_PERROW,VALUE_PERROW)<br>&nbsp; 10&nbsp;&nbsp; continue</font><br><br>Another problem is that when I stop at <font color="#000080">MatGetOwnershipRange, <font color="#000000">I want to see the value of i1 by <font color="#f00000">print i1,<font color="#000000"> it shows</font> No symbol "i1" in current context.</font></font><br></font></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>
------=_Part_6576_648889968.1354549475754--



From MAILER-DAEMON Tue Dec 04 07:11:20 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TfrLM-0008Fd-Mx
	for mharc-gdb@gnu.org; Tue, 04 Dec 2012 07:11:20 -0500
Received: from eggs.gnu.org ([208.118.235.92]:45800)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rejeesh.babu@nestgroup.net>) id 1TfrLD-0008Da-4P
	for gdb@gnu.org; Tue, 04 Dec 2012 07:11:18 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rejeesh.babu@nestgroup.net>) id 1TfrLB-0003IO-5m
	for gdb@gnu.org; Tue, 04 Dec 2012 07:11:11 -0500
Received: from mxout-tvm.nestgroup.net ([115.248.23.134]:58695)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rejeesh.babu@nestgroup.net>) id 1TfrLA-0003I5-8o
	for gdb@gnu.org; Tue, 04 Dec 2012 07:11:09 -0500
Received: from mail-4.tvm.nestgroup.net ([192.168.192.81])
	by mxout-tvm.nestgroup.net (8.13.1/8.13.1) with ESMTP id qB4CJve9016965;
	Tue, 4 Dec 2012 17:49:57 +0530
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01CDD218.5924A0F6"
Subject: Issue using GDB for non-stop multi-core debugging.
Date: Tue, 4 Dec 2012 17:40:27 +0530
Message-ID: <D0124DE0373A744CA8192AFA82C831170C8FCE86@mail-4.tvm.nestgroup.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Issue using GDB for non-stop multi-core debugging.
Thread-Index: Ac3SGFkDHbVp5lz6R96/k/NWccakpA==
From: "Rejeesh S. Babu" <rejeesh.babu@nestgroup.net>
To: <gdb@gnu.org>, <gdb@sourceware.org>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x
X-Received-From: 115.248.23.134
X-BeenThere: gdb@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Discussion list for gdb, the GNU source debugger." <gdb.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/gdb>,
	<mailto:gdb-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/gdb>
List-Post: <mailto:gdb@gnu.org>
List-Help: <mailto:gdb-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/gdb>,
	<mailto:gdb-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 04 Dec 2012 12:11:18 -0000

This is a multi-part message in MIME format.

------_=_NextPart_001_01CDD218.5924A0F6
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi All,

=20

We are using GDB 7.5 (via MI protocol) to debug a remote multi-core
target in non-stop mode. We use custom GDB Server and GDB thread packets
are interpreted as hardware core for multi-core debugging.

=20

Everything is working fine except that step over through a piece of code
which is simultaneously accessed by both cores is failing.

=20

The failing scenario can be explained as below:

=20

1.       Core 0 is halted and core 1 is running before single stepping

2.       When user single step core 0, GDB puts a BP in next location
and run the target

3.       Since core 1 is also executing this piece of code, core 1 takes
this BP (GDB expect core 0 to take BP)

4.       Our custom GDB Server sends the stop notification packet of
core 1=20

5.       Irrespective of the fact that notification packet of core 1 was
send, GDB tries to read register/memory values of core0 (which is
running)

6.       GDB Server respond with error packet and GDB stops functioning

=20

Packets exchanged between GDB and GDB Server for single step :

=20

Sending packet: $m80009000,4#5e...Ack

Packet received: 0800e003

Sending packet: $m80009000,4#5e...Ack

Packet received: 0800e003

Sending packet: $qTStatus#49...Ack

Packet received:=20

Sending packet: $m80009000,4#5e...Ack

Packet received: 0800e003

Sending packet: $m80009000,4#5e...Ack

Packet received: 0800e003

Sending packet: $Z0,8000b024,4#d6...Ack

Packet received: OK

Packet Z0 (software-breakpoint) is supported

Sending packet: $vCont;c:1#13...Ack //GDB run core 1

Packet received: OK

  Notification received: Stop:T05thread:02; //Core 2 is halted=20

stop notification captured

Sending packet: $vStopped#55...Ack

Packet received: OK

Sending packet: $Hg2#e1...Ack

Packet received: OK

Sending packet: $g#67...Ack

Packet received:
00000000008b0010e08f0080020000000800c7cf424cfb231a0000001a00000000000000
000000001a000000000062cfb81962cfa412b97f00ca9a3b00004800020000006476bc80
0000bc80accdbb800000bc808722c73b4337c3336322cf1f00000000d0300577081fc7cf
081fc7cf0000c7cf081fc7cf032387bd24b00080018b00107cf82198d64f000094c40e77
0000800024b00080

Sending packet: $Hg1#e0...Ack //Though Core 2 was halted, GDB is
requesting for Core 1 details

Packet received: E 00

Sending packet: $g#67...Ack

Packet received:
00000000008b0010e08f0080020000000800c7cf424cfb231a0000001a00000000000000
000000001a000000000062cfb81962cfa412b97f00ca9a3b00004800020000006476bc80
0000bc80accdbb800000bc808722c73b4337c3336322cf1f00000000d0300577081fc7cf
081fc7cf0000c7cf081fc7cf032387bd24b00080018b00107cf82198d64f000094c40e77
0000800024b00080

Target is executing.

=20

=20

Is there a way to overcome this limitation? Is there any commands in GDB
to handle such scenarios? Or is there any GDB patch? Or is it because
something is missing in our custom GDB Server?

=20

Any hint to help us progress is highly appreciated.

=20

Thanking in anticipation,

Rejeesh

***** Confidentiality Statement/Disclaimer *****

This message and any attachments is intended for the sole use of the inte=
nded recipient. It may contain confidential information. Any unauthorized=
 use, dissemination or modification is strictly prohibited. If you are no=
t the intended recipient, please notify the sender immediately then delet=
e it from all your systems, and do not copy, use or print. Internet commu=
nications are not secure and it is the responsibility of the recipient to=
 make sure that it is virus/malicious code exempt.
The company/sender cannot be responsible for any unauthorized alterations=
 or modifications made to the contents. If you require any form of confir=
mation of the contents, please contact the company/sender. The company/se=
nder is not liable for any errors or omissions in the content of this mes=
sage.

------_=_NextPart_001_01CDD218.5924A0F6
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-mi=
crosoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:wo=
rd" xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D=
"http://www.w3.org/TR/REC-html40"><head><meta http-equiv=3DContent-Type c=
ontent=3D"text/html; charset=3Dus-ascii"><meta name=3DGenerator content=3D=
"Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
	{mso-style-priority:34;
	margin-top:0in;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:.5in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
=2EMsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
/* List Definitions */
@list l0
	{mso-list-id:1251964507;
	mso-list-type:hybrid;
	mso-list-template-ids:-964028928 67698703 67698713 67698715 67698703 676=
98713 67698715 67698703 67698713 67698715;}
@list l0:level1
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
ol
	{margin-bottom:0in;}
ul
	{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue v=
link=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal>Hi All,<o:p>=
</o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>=
We are using GDB 7.5 (via MI protocol) to debug a remote multi-core targe=
t in non-stop mode. We use custom GDB Server and GDB thread packets are i=
nterpreted as hardware core for multi-core debugging.<o:p></o:p></p><p cl=
ass=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>Everything is w=
orking fine except that step over through a piece of code which is simult=
aneously accessed by both cores is failing.<o:p></o:p></p><p class=3DMsoN=
ormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal><u>The failing scenario c=
an be explained as below</u>:<o:p></o:p></p><p class=3DMsoNormal><o:p>&nb=
sp;</o:p></p><p class=3DMsoListParagraph style=3D'text-indent:-.25in;mso-=
list:l0 level1 lfo1'><![if !supportLists]><span style=3D'mso-list:Ignore'=
>1.<span style=3D'font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp; </span></span><![endif]>Core 0 is halted and core 1 is runnin=
g before single stepping<o:p></o:p></p><p class=3DMsoListParagraph style=3D=
'text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span s=
tyle=3D'mso-list:Ignore'>2.<span style=3D'font:7.0pt "Times New Roman"'>&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><![endif]>When user sin=
gle step core 0, GDB puts a BP in next location and run the target<o:p></=
o:p></p><p class=3DMsoListParagraph style=3D'text-indent:-.25in;mso-list:=
l0 level1 lfo1'><![if !supportLists]><span style=3D'mso-list:Ignore'>3.<s=
pan style=3D'font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp; </span></span><![endif]>Since core 1 is also executing this piece =
of code, core 1 takes this BP (GDB expect core 0 to take BP)<o:p></o:p></=
p><p class=3DMsoListParagraph style=3D'text-indent:-.25in;mso-list:l0 lev=
el1 lfo1'><![if !supportLists]><span style=3D'mso-list:Ignore'>4.<span st=
yle=3D'font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
 </span></span><![endif]>Our custom GDB Server sends the stop notificatio=
n packet of core 1 <o:p></o:p></p><p class=3DMsoListParagraph style=3D'te=
xt-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span styl=
e=3D'mso-list:Ignore'>5.<span style=3D'font:7.0pt "Times New Roman"'>&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><![endif]>Irrespective of =
the fact that notification packet of core 1 was send, GDB tries to read r=
egister/memory values of core0 (which is running)<o:p></o:p></p><p class=3D=
MsoListParagraph style=3D'text-indent:-.25in;mso-list:l0 level1 lfo1'><![=
if !supportLists]><span style=3D'mso-list:Ignore'>6.<span style=3D'font:7=
=2E0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></s=
pan><![endif]>GDB Server respond with error packet and GDB stops function=
ing<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMs=
oNormal><u>Packets exchanged between GDB and GDB Server for single step</=
u> :<o:p></o:p></p><p class=3DMsoNormal><span style=3D'font-family:"Couri=
er New"'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span style=3D'=
font-family:"Courier New"'>Sending packet: $m80009000,4#5e...Ack<o:p></o:=
p></span></p><p class=3DMsoNormal><span style=3D'font-family:"Courier New=
"'>Packet received: 0800e003<o:p></o:p></span></p><p class=3DMsoNormal><s=
pan style=3D'font-family:"Courier New"'>Sending packet: $m80009000,4#5e..=
=2EAck<o:p></o:p></span></p><p class=3DMsoNormal><span style=3D'font-fami=
ly:"Courier New"'>Packet received: 0800e003<o:p></o:p></span></p><p class=
=3DMsoNormal><span style=3D'font-family:"Courier New"'>Sending packet: $q=
TStatus#49...Ack<o:p></o:p></span></p><p class=3DMsoNormal><span style=3D=
'font-family:"Courier New"'>Packet received: <o:p></o:p></span></p><p cla=
ss=3DMsoNormal><span style=3D'font-family:"Courier New"'>Sending packet: =
$m80009000,4#5e...Ack<o:p></o:p></span></p><p class=3DMsoNormal><span sty=
le=3D'font-family:"Courier New"'>Packet received: 0800e003<o:p></o:p></sp=
an></p><p class=3DMsoNormal><span style=3D'font-family:"Courier New"'>Sen=
ding packet: $m80009000,4#5e...Ack<o:p></o:p></span></p><p class=3DMsoNor=
mal><span style=3D'font-family:"Courier New"'>Packet received: 0800e003<o=
:p></o:p></span></p><p class=3DMsoNormal><span style=3D'font-family:"Cour=
ier New"'>Sending packet: $Z0,8000b024,4#d6...Ack<o:p></o:p></span></p><p=
 class=3DMsoNormal><span style=3D'font-family:"Courier New"'>Packet recei=
ved: OK<o:p></o:p></span></p><p class=3DMsoNormal><span style=3D'font-fam=
ily:"Courier New"'>Packet Z0 (software-breakpoint) is supported<o:p></o:p=
></span></p><p class=3DMsoNormal><span style=3D'font-family:"Courier New"=
'>Sending packet: $vCont;c:<span style=3D'color:red'>1</span>#13...Ack <b=
><span style=3D'color:red'>//GDB run core 1</span></b><o:p></o:p></span><=
/p><p class=3DMsoNormal><span style=3D'font-family:"Courier New"'>Packet =
received: OK<o:p></o:p></span></p><p class=3DMsoNormal><span style=3D'fon=
t-family:"Courier New"'>&nbsp; Notification received: Stop:T05thread:0<sp=
an style=3D'color:red'>2</span>; <b><span style=3D'color:red'>//Core 2 is=
 halted </span></b><o:p></o:p></span></p><p class=3DMsoNormal><span style=
=3D'font-family:"Courier New"'>stop notification captured<o:p></o:p></spa=
n></p><p class=3DMsoNormal><span style=3D'font-family:"Courier New"'>Send=
ing packet: $vStopped#55...Ack<o:p></o:p></span></p><p class=3DMsoNormal>=
<span style=3D'font-family:"Courier New"'>Packet received: OK<o:p></o:p><=
/span></p><p class=3DMsoNormal><span style=3D'font-family:"Courier New"'>=
Sending packet: $Hg2#e1...Ack<o:p></o:p></span></p><p class=3DMsoNormal><=
span style=3D'font-family:"Courier New"'>Packet received: OK<o:p></o:p></=
span></p><p class=3DMsoNormal><span style=3D'font-family:"Courier New"'>S=
ending packet: $g#67...Ack<o:p></o:p></span></p><p class=3DMsoNormal><spa=
n style=3D'font-family:"Courier New"'>Packet received: 00000000008b0010e0=
8f0080020000000800c7cf424cfb231a0000001a00000000000000000000001a000000000=
062cfb81962cfa412b97f00ca9a3b00004800020000006476bc800000bc80accdbb800000=
bc808722c73b4337c3336322cf1f00000000d0300577081fc7cf081fc7cf0000c7cf081fc=
7cf032387bd24b00080018b00107cf82198d64f000094c40e770000800024b00080<o:p><=
/o:p></span></p><p class=3DMsoNormal><span style=3D'font-family:"Courier =
New"'>Sending packet: $Hg<span style=3D'color:red'>1</span>#e0...Ack <b><=
span style=3D'color:red'>//Though Core 2 was halted, GDB is requesting fo=
r Core 1 details</span></b><o:p></o:p></span></p><p class=3DMsoNormal><sp=
an style=3D'font-family:"Courier New"'>Packet received: E 00<o:p></o:p></=
span></p><p class=3DMsoNormal><span style=3D'font-family:"Courier New"'>S=
ending packet: $g#67...Ack<o:p></o:p></span></p><p class=3DMsoNormal><spa=
n style=3D'font-family:"Courier New"'>Packet received: 00000000008b0010e0=
8f0080020000000800c7cf424cfb231a0000001a00000000000000000000001a000000000=
062cfb81962cfa412b97f00ca9a3b00004800020000006476bc800000bc80accdbb800000=
bc808722c73b4337c3336322cf1f00000000d0300577081fc7cf081fc7cf0000c7cf081fc=
7cf032387bd24b00080018b00107cf82198d64f000094c40e770000800024b00080<o:p><=
/o:p></span></p><p class=3DMsoNormal><span style=3D'font-family:"Courier =
New"'>Target is executing.<o:p></o:p></span></p><p class=3DMsoNormal><spa=
n style=3D'font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p><p clas=
s=3DMsoNormal><span style=3D'font-family:"Courier New"'><o:p>&nbsp;</o:p>=
</span></p><p class=3DMsoNormal>Is there a way to overcome this limitatio=
n? Is there any commands in GDB to handle such scenarios? Or is there any=
 GDB patch? Or is it because something is missing in our custom GDB Serve=
r?<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMso=
Normal>Any hint to help us progress is highly appreciated.<o:p></o:p></p>=
<p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>Thanking i=
n anticipation,<o:p></o:p></p><p class=3DMsoNormal>Rejeesh<o:p></o:p></p>=
</div><DIV>&nbsp;</DIV>***** Confidentiality Statement/Disclaimer *****<b=
r><br>This message and any attachments is intended for the sole use of th=
e intended recipient. It may contain confidential information. Any unauth=
orized use, dissemination or modification is strictly prohibited. If you =
are not the intended recipient, please notify the sender immediately then=
 delete it from all your systems, and do not copy, use or print. Internet=
 communications are not secure and it is the responsibility of the recipi=
ent to make sure that it is virus/malicious code exempt.<br>The company/s=
ender cannot be responsible for any unauthorized alterations or modificat=
ions made to the contents. If you require any form of confirmation of the=
 contents, please contact the company/sender. The company/sender is not l=
iable for any errors or omissions in the content of this message.</body><=
/html>

------_=_NextPart_001_01CDD218.5924A0F6--


From MAILER-DAEMON Tue Dec 04 07:16:03 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TfrPv-0000Qx-DT
	for mharc-gdb@gnu.org; Tue, 04 Dec 2012 07:16:03 -0500
Received: from eggs.gnu.org ([208.118.235.92]:37564)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rejeesh.babu@nestgroup.net>) id 1TfrPm-0000QQ-Fs
	for gdb@gnu.org; Tue, 04 Dec 2012 07:16:02 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rejeesh.babu@nestgroup.net>) id 1TfrPc-0004Jk-Am
	for gdb@gnu.org; Tue, 04 Dec 2012 07:15:54 -0500
Received: from mxout-tvm.nestgroup.net ([115.248.23.134]:58716)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rejeesh.babu@nestgroup.net>) id 1TfrPb-0004Jg-KK
	for gdb@gnu.org; Tue, 04 Dec 2012 07:15:44 -0500
Received: from mail-4.tvm.nestgroup.net ([192.168.192.81])
	by mxout-tvm.nestgroup.net (8.13.1/8.13.1) with ESMTP id qB4CObeR017015;
	Tue, 4 Dec 2012 17:54:38 +0530
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Subject: Issue using GDB for non-stop multi-core debugging.
Date: Tue, 4 Dec 2012 17:45:08 +0530
Message-ID: <D0124DE0373A744CA8192AFA82C831170C8FCE9B@mail-4.tvm.nestgroup.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Issue using GDB for non-stop multi-core debugging.
Thread-Index: Ac3SGFkDHbVp5lz6R96/k/NWccakpAAAJRrg
From: "Rejeesh S. Babu" <rejeesh.babu@nestgroup.net>
To: <gdb@gnu.org>, <gdb@sourceware.org>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x
X-Received-From: 115.248.23.134
X-BeenThere: gdb@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Discussion list for gdb, the GNU source debugger." <gdb.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/gdb>,
	<mailto:gdb-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/gdb>
List-Post: <mailto:gdb@gnu.org>
List-Help: <mailto:gdb-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/gdb>,
	<mailto:gdb-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 04 Dec 2012 12:16:02 -0000

Hi All,

We are using GDB 7.5 (via MI protocol) to debug a remote multi-core targe=
t in non-stop mode. We use custom GDB Server and GDB thread packets are i=
nterpreted as hardware core for multi-core debugging.

Everything is working fine except that step over through a piece of code =
which is simultaneously accessed by both cores is failing.

The failing scenario can be explained as below:

1. Core 0 is halted and core 1 is running before single stepping
2. When user single step core 0, GDB puts a BP in next location and run t=
he target
3. Since core 1 is also executing this piece of code, core 1 takes this B=
P (GDB expect core 0 to take BP)
4. Our custom GDB Server sends the stop notification packet of core 1=20
5. Irrespective of the fact that notification packet of core 1 was send, =
GDB tries to read register/memory values of core0 (which is running)
6. GDB Server respond with error packet and GDB stops functioning

Packets exchanged between GDB and GDB Server for single step :

Sending packet: $m80009000,4#5e...Ack
Packet received: 0800e003
Sending packet: $m80009000,4#5e...Ack
Packet received: 0800e003
Sending packet: $qTStatus#49...Ack
Packet received:=20
Sending packet: $m80009000,4#5e...Ack
Packet received: 0800e003
Sending packet: $m80009000,4#5e...Ack
Packet received: 0800e003
Sending packet: $Z0,8000b024,4#d6...Ack
Packet received: OK
Packet Z0 (software-breakpoint) is supported
Sending packet: $vCont;c:1#13...Ack //GDB run core 1
Packet received: OK
=A0 Notification received: Stop:T05thread:02; //Core 2 is halted=20
stop notification captured
Sending packet: $vStopped#55...Ack
Packet received: OK
Sending packet: $Hg2#e1...Ack
Packet received: OK
Sending packet: $g#67...Ack
Packet received: 00000000008b0010e08f0080020000000800c7cf424cfb231a000000=
1a00000000000000000000001a000000000062cfb81962cfa412b97f00ca9a3b000048000=
20000006476bc800000bc80accdbb800000bc808722c73b4337c3336322cf1f00000000d0=
300577081fc7cf081fc7cf0000c7cf081fc7cf032387bd24b00080018b00107cf82198d64=
f000094c40e770000800024b00080
Sending packet: $Hg1#e0...Ack //Though Core 2 was halted, GDB is requesti=
ng for Core 1 details
Packet received: E 00
Sending packet: $g#67...Ack
Packet received: 00000000008b0010e08f0080020000000800c7cf424cfb231a000000=
1a00000000000000000000001a000000000062cfb81962cfa412b97f00ca9a3b000048000=
20000006476bc800000bc80accdbb800000bc808722c73b4337c3336322cf1f00000000d0=
300577081fc7cf081fc7cf0000c7cf081fc7cf032387bd24b00080018b00107cf82198d64=
f000094c40e770000800024b00080
Target is executing.


Is there a way to overcome this limitation? Is there any commands in GDB =
to handle such scenarios? Or is there any GDB patch? Or is it because som=
ething is missing in our custom GDB Server?

Any hint to help us progress is highly appreciated.

Thanking in anticipation,
Rejeesh
***** Confidentiality Statement/Disclaimer *****

This message and any attachments is intended for the sole use of the inte=
nded recipient. It may contain confidential information. Any unauthorized=
 use, dissemination or modification is strictly prohibited. If you are no=
t the intended recipient, please notify the sender immediately then delet=
e it from all your systems, and do not copy, use or print. Internet commu=
nications are not secure and it is the responsibility of the recipient to=
 make sure that it is virus/malicious code exempt.
The company/sender cannot be responsible for any unauthorized alterations=
 or modifications made to the contents. If you require any form of confir=
mation of the contents, please contact the company/sender. The company/se=
nder is not liable for any errors or omissions in the content of this mes=
sage.


From MAILER-DAEMON Thu Dec 13 23:58:32 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TjNM0-0001cW-6d
	for mharc-gdb@gnu.org; Thu, 13 Dec 2012 23:58:32 -0500
Received: from eggs.gnu.org ([208.118.235.92]:43459)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bounces@nabble.com>) id 1TjCPk-0006LS-Vv
	for Gdb@gnu.org; Thu, 13 Dec 2012 12:17:48 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bounces@nabble.com>) id 1TjCPg-0001V1-T1
	for Gdb@gnu.org; Thu, 13 Dec 2012 12:17:40 -0500
Received: from sam.nabble.com ([216.139.236.26]:50267)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bounces@nabble.com>) id 1TjCPg-0001Uv-OS
	for Gdb@gnu.org; Thu, 13 Dec 2012 12:17:36 -0500
Received: from telerig.nabble.com ([192.168.236.162])
	by sam.nabble.com with esmtp (Exim 4.72)
	(envelope-from <bounces@nabble.com>) id 1TjCPg-0007Nr-59
	for Gdb@gnu.org; Thu, 13 Dec 2012 09:17:36 -0800
Message-ID: <34794154.post@talk.nabble.com>
Date: Thu, 13 Dec 2012 09:17:36 -0800 (PST)
From: ales88 <alessandro-panzeri@alice.it>
To: Gdb@gnu.org
Subject: Detect a C++ class writing in a memory location
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Nabble-From: alessandro-panzeri@alice.it
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 216.139.236.26
X-Mailman-Approved-At: Thu, 13 Dec 2012 23:58:31 -0500
X-BeenThere: gdb@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Discussion list for gdb, the GNU source debugger." <gdb.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/gdb>,
	<mailto:gdb-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/gdb>
List-Post: <mailto:gdb@gnu.org>
List-Help: <mailto:gdb-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/gdb>,
	<mailto:gdb-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Dec 2012 17:17:48 -0000


I need to know if there is a way in gdb to detect if a function (any
function) of a specific C++ class (represented by a file myClass.cc) access
a specific memory location (let's say 0xffffbc). That will help me a lot.
Thanks.
-- 
View this message in context: http://old.nabble.com/Detect-a-C%2B%2B-class-writing-in-a-memory-location-tp34794154p34794154.html
Sent from the Gnu - gdb - General mailing list archive at Nabble.com.



From MAILER-DAEMON Thu Dec 13 23:58:34 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TjNM2-0001gq-Bq
	for mharc-gdb@gnu.org; Thu, 13 Dec 2012 23:58:34 -0500
Received: from eggs.gnu.org ([208.118.235.92]:43848)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bounces@nabble.com>) id 1TjCQS-0007e9-Dg
	for Gdb@gnu.org; Thu, 13 Dec 2012 12:18:43 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bounces@nabble.com>) id 1TjCQF-0001eq-3A
	for Gdb@gnu.org; Thu, 13 Dec 2012 12:18:24 -0500
Received: from sam.nabble.com ([216.139.236.26]:50307)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bounces@nabble.com>) id 1TjCQE-0001ek-Ss
	for Gdb@gnu.org; Thu, 13 Dec 2012 12:18:10 -0500
Received: from telerig.nabble.com ([192.168.236.162])
	by sam.nabble.com with esmtp (Exim 4.72)
	(envelope-from <bounces@nabble.com>) id 1TjCQE-0007Ql-KS
	for Gdb@gnu.org; Thu, 13 Dec 2012 09:18:10 -0800
Message-ID: <34794154.post@talk.nabble.com>
Date: Thu, 13 Dec 2012 09:18:10 -0800 (PST)
From: ales88 <alessandro-panzeri@alice.it>
To: Gdb@gnu.org
Subject: Detect a C++ class writing in a memory location
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Nabble-From: alessandro-panzeri@alice.it
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 216.139.236.26
X-Mailman-Approved-At: Thu, 13 Dec 2012 23:58:32 -0500
X-BeenThere: gdb@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Discussion list for gdb, the GNU source debugger." <gdb.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/gdb>,
	<mailto:gdb-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/gdb>
List-Post: <mailto:gdb@gnu.org>
List-Help: <mailto:gdb-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/gdb>,
	<mailto:gdb-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Dec 2012 17:18:44 -0000


I need to know if there is a way in gdb to detect if a function (any
function) of a specific C++ class (represented by a file myClass.cc) access
a specific memory location (let's say 0xffffbc). 
That will help me a lot. Thanks.
-- 
View this message in context: http://old.nabble.com/Detect-a-C%2B%2B-class-writing-in-a-memory-location-tp34794154p34794154.html
Sent from the Gnu - gdb - General mailing list archive at Nabble.com.



From MAILER-DAEMON Fri Dec 14 14:14:34 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TjaiQ-0005zs-0u
	for mharc-gdb@gnu.org; Fri, 14 Dec 2012 14:14:34 -0500
Received: from eggs.gnu.org ([208.118.235.92]:33810)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gsmsteve@gmail.com>) id 1TjaiO-0005zk-ES
	for Gdb@gnu.org; Fri, 14 Dec 2012 14:14:33 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gsmsteve@gmail.com>) id 1TjaiN-0007oM-9E
	for Gdb@gnu.org; Fri, 14 Dec 2012 14:14:32 -0500
Received: from mail-ea0-f169.google.com ([209.85.215.169]:45397)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gsmsteve@gmail.com>) id 1TjaiN-0007oF-2Y
	for Gdb@gnu.org; Fri, 14 Dec 2012 14:14:31 -0500
Received: by mail-ea0-f169.google.com with SMTP id a12so1454375eaa.0
	for <Gdb@gnu.org>; Fri, 14 Dec 2012 11:14:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc:content-type;
	bh=A95IQs8MQG6Pmxi3lDVflOWbBzKYSf7CR/+2PjyANK4=;
	b=Wbg2bsZRVKuKQTA30g27Dy8FPrU2XDS2MU0HwuXy4ZXPbS2Md1x1VZjzZ5NYisPJcR
	bLtsi4jWJCSGYDbc65TofPYFAtWKF/czKCuoKd6vqAZYm/FqK5u7QsHhgfppif50rhry
	mnQx7p/smdgYtUZb8rGpkmreQUEU2x5qKTRmn/38mZSGnGEbk6KyyY8xpuH0qV9C2bgP
	NOnv9dERCZh9HRNoGPnOM9wwUvhI0o1g3PJkuRI+7XUMzOP4gRyWGaYlkRJ+LKggkJvM
	U/Ls0br/8Ze94tvuBSj2/dwxjIiD+Q63HM+5TzyNysLYcuvDDt6oC3JkvNgWuBw9GuD0
	saYA==
Received: by 10.14.184.134 with SMTP id s6mr17163953eem.43.1355512469614; Fri,
	14 Dec 2012 11:14:29 -0800 (PST)
MIME-Version: 1.0
Received: by 10.14.200.197 with HTTP; Fri, 14 Dec 2012 11:14:09 -0800 (PST)
In-Reply-To: <34794154.post@talk.nabble.com>
References: <34794154.post@talk.nabble.com>
From: Shumin Guo <gsmsteve@gmail.com>
Date: Fri, 14 Dec 2012 14:14:09 -0500
Message-ID: <CAFA52KT5qr3JWwk7rTq8xsTmzN+eB8tZSLnfjO1WynVWMQwD9w@mail.gmail.com>
Subject: Re: Detect a C++ class writing in a memory location
To: ales88 <alessandro-panzeri@alice.it>
Content-Type: multipart/alternative; boundary=047d7b3a7ff83d6fec04d0d4d761
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 209.85.215.169
Cc: Gdb@gnu.org
X-BeenThere: gdb@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Discussion list for gdb, the GNU source debugger." <gdb.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/gdb>,
	<mailto:gdb-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/gdb>
List-Post: <mailto:gdb@gnu.org>
List-Help: <mailto:gdb-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/gdb>,
	<mailto:gdb-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Dec 2012 19:14:33 -0000

--047d7b3a7ff83d6fec04d0d4d761
Content-Type: text/plain; charset=ISO-8859-1

I think it is achievable with print or info command within gdb.

Thanks,
Shumin



On Thu, Dec 13, 2012 at 12:18 PM, ales88 <alessandro-panzeri@alice.it>wrote:

>
> I need to know if there is a way in gdb to detect if a function (any
> function) of a specific C++ class (represented by a file myClass.cc) access
> a specific memory location (let's say 0xffffbc).
> That will help me a lot. Thanks.
> --
> View this message in context:
> http://old.nabble.com/Detect-a-C%2B%2B-class-writing-in-a-memory-location-tp34794154p34794154.html
> Sent from the Gnu - gdb - General mailing list archive at Nabble.com.
>
>
>

--047d7b3a7ff83d6fec04d0d4d761
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I think it is achievable with print or info command within gdb.<div><br cle=
ar=3D"all"><div>Thanks,<div>Shumin</div></div><br>
<br><br><div class=3D"gmail_quote">On Thu, Dec 13, 2012 at 12:18 PM, ales88=
 <span dir=3D"ltr">&lt;<a href=3D"mailto:alessandro-panzeri@alice.it" targe=
t=3D"_blank">alessandro-panzeri@alice.it</a>&gt;</span> wrote:<br><blockquo=
te class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc so=
lid;padding-left:1ex">

<div class=3D"HOEnZb"><div class=3D"h5"><br>
I need to know if there is a way in gdb to detect if a function (any<br>
function) of a specific C++ class (represented by a file myClass.cc) access=
<br>
a specific memory location (let&#39;s say 0xffffbc).<br>
That will help me a lot. Thanks.<br>
--<br>
View this message in context: <a href=3D"http://old.nabble.com/Detect-a-C%2=
B%2B-class-writing-in-a-memory-location-tp34794154p34794154.html" target=3D=
"_blank">http://old.nabble.com/Detect-a-C%2B%2B-class-writing-in-a-memory-l=
ocation-tp34794154p34794154.html</a><br>


Sent from the Gnu - gdb - General mailing list archive at Nabble.com.<br>
<br>
<br>
</div></div></blockquote></div><br></div>

--047d7b3a7ff83d6fec04d0d4d761--


