From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25327 invoked by alias); 31 Oct 2014 06:24:31 -0000 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 Received: (qmail 25312 invoked by uid 89); 31 Oct 2014 06:24:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=4.6 required=5.0 tests=AWL,BAYES_50,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FROM_EXCESS_BASE64,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: smtpbg298.qq.com Received: from smtpbg298.qq.com (HELO smtpbg298.qq.com) (184.105.67.102) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 31 Oct 2014 06:24:25 +0000 X-QQ-FEAT: vWGNCR0VeiTc6DzFPWT9l5wXZ/oqXRm8n+9HzmUGrCTaBilVJsf1j3LdvbXxW KXCRyZLxgOHF0WsAMWeJ+N1laFVNixXuAAfhMwN+svw8Q0O/X2uneaeIn72UlqbHYOcUMAW XVfrzU2I/eP9fwFgEFaXY6HYBPEGgRpxSAusogar6TEXvuOHPkX1O2j5Rz3x X-QQ-SSF: 0000000000000060000000000000000 X-HAS-ATTACH: no X-QQ-BUSINESS-ORIGIN: 2 X-QQ-STYLE: X-QQ-mid: webmail54t1414736659t2738397 From: "=?ISO-8859-1?B?TmFuIFhpYW8=?=" To: "=?ISO-8859-1?B?Z2Ri?=" Subject: How can I uninstall gdb? Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: base64 Date: Fri, 31 Oct 2014 06:24:00 -0000 Message-ID: X-QQ-MIME: TCMime 1.0 by Tencent X-QQ-Mailer: QQMail 2.x X-QQ-SENDSIZE: 520 X-QQ-FName: FCB32F72671344959A72172141BD604D X-QQ-LocalIP: 163.177.66.155 X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg00138.txt.bz2 SGkgYWxsLAoKCUkgaGF2ZSBpbnN0YWxsZWQgdGhlIG5ld2VzdCBnZGIgNy44 LjEgb24gU29sYXJpcy4gQnV0IFdoZW4gSSB3YW50IHRvIHVuaW5zdGFsbCBp dCwgdGhlIG91dHB1dCBpczoKCQoJYmFzaC0zLjIjIG1ha2UgdW5pbnN0YWxs Cgl0aGUgdW5pbnN0YWxsIHRhcmdldCBpcyBub3Qgc3VwcG9ydGVkIGluIHRo aXMgdHJlZQoKCVNvIGhvdyBjYW4gSSB1bmluc3RhbGwgZ2RiPyBUaGFua3Mg dmVyeSBtdWNoIGluIGFkdmFuY2UhCgkKQmVzdCBSZWdhcmRzCk5hbiBYaWFv >From gdb-return-43884-listarch-gdb=sources.redhat.com@sourceware.org Fri Oct 31 11:21:19 2014 Return-Path: Delivered-To: listarch-gdb@sources.redhat.com Received: (qmail 3260 invoked by alias); 31 Oct 2014 11:21:19 -0000 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 Delivered-To: mailing list gdb@sourceware.org Received: (qmail 3192 invoked by uid 89); 31 Oct 2014 11:21:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: sapo.pt Received: from relay4.ptmail.sapo.pt (HELO sapo.pt) (212.55.154.24) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 31 Oct 2014 11:21:16 +0000 Received: (qmail 3428 invoked from network); 31 Oct 2014 11:21:11 -0000 Received: from unknown (HELO php04) (10.134.37.53) by relay4 with SMTP; 31 Oct 2014 11:21:11 -0000 Received: (qmail 26868 invoked by uid 64140); 31 Oct 2014 11:21:11 -0000 Received: from gtDEI-NATgw2.dei.uc.pt (gtDEI-NATgw2.dei.uc.pt [193.137.203.231]) by mail.sapo.pt (Horde Framework) with HTTP; Fri, 31 Oct 2014 11:21:11 +0000 Date: Fri, 31 Oct 2014 11:21:00 -0000 Message-ID: <20141031112111.Horde.qLeRlTVuIYKD4o9N1-bX4A1@mail.sapo.pt> From: joaoandreferro@sapo.pt To: gdb@sourceware.org Cc: Pedro Alves Subject: Re: Doubt using "set" command with registers References: <20141028160156.Horde.uvcacyDQQ900l0BFN1Pemw5@mail.sapo.pt> <545219FB.7030303@redhat.com> In-Reply-To: <545219FB.7030303@redhat.com> User-Agent: Dynamic Internet Messaging Program (DIMP) PTMail 5.3.1 X-PTMail-Version: PTMail 5.3.1 X-PTMail-User: eyJpdiI6IkxjQnM3YjdyQVwvcTFld3N6TGJyd2h3PT0iLCJkIjoiTDYyeE1IQk5tK0h1WEplS2lhT3lUejhyd201MG5NU203QjNpbVVlVzREZz0ifQ== Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg00139.txt.bz2 Content-length: 3094 Citando Pedro Alves : > Hi Jo=C3=A3o, > > On 10/28/2014 04:01 PM, joaoandreferro@sapo.pt wrote: >> Hello all, >> >> I've been using GDB (in fact, conjuged with KGDB) lately to do some >> kernel debugging. I've been testing some GDB commands, and a doubt >> arised while using the "set" command, trying to change the value of >> some registers. I've been able to successfully change the value of all >> the registers provided by the "info registers" command (i. e., in my >> case $eax, $ecx, $edx, $ebx, $esp, $ebp, $esi, $edi, $eip, $eflags, >> $cs, $ss, $ds, $es, $fs and $gs) *except* for $esp, $ss, $fs and $gs. >> Why is it so? I've been making these tests after hitting a hardware >> breakpoint, then I set the values with e. g. "set $es =3D 0xf1c2007c", >> and verifiy the assignemt with "info reg $es". As I've pointed out, it >> works with the majority of the registers, except for that four (in >> this particular case, the first command doesn't output any error, but >> the second command shows me that the registers remain with the initial >> value). By the way, I've started GDB with the -write option (checked >> it inside GDb with the "show write" command). My GDB version is 7.2. >> >> If someone knows something about this situation and can share it with >> me, it would be great. > > I'd guess that it's kgdb itself that is blocking those writes. > > Try "set debug remote 1" before the "set $foo =3D " command. > > Thanks, > Pedro Alves Hello Pedro, Thanks for your answer. I turned "set debug remote 1" on again, and=20=20 strangely, the output tells me that "set-register" is not supported,=20=20 but only when I'm able to change the register value (see the output=20=20 below). First, I've tried with a register which I can successfully=20=20 change the value, and then with another one where I wasn't able to do=20=20 it in the past. Do you know why this behaviour occurs? Meanwhile, I'll=20=20 ask the same in the KGDB mailing list. Like I've mentioned, output=20=20 below: (gdb) info reg $es es 0x7b 123 (gdb) set $es =3D 0x7c Sending packet: $Pd=3D7c000000#ab...Ack Packet received: Packet P (set-register) is NOT supported Sending packet:=20=20 $G14000000ccb59cc00000000067000000089fcbf10c9fcbf1ac309dc00000000079154ac09= 600000060000000680000007b009dc07c000000ffff0000ffff0000#61...Ack Packet received: OK Sending packet: $g#67...Ack Packet received:=20=20 14000000ccb59cc00000000067000000089fcbf10c9fcbf1ac309dc00000000079154ac0960= 0000060000000680000007b009dc07c000000ffff0000ffff0000 (gdb) info reg $es es 0x7c 124 (gdb) info reg $ss ss 0x68 104 (gdb) set $ss =3D 0x69 Sending packet:=20=20 $G14000000ccb59cc00000000067000000089fcbf10c9fcbf1ac309dc00000000079154ac09= 600000060000000690000007b009dc07c000000ffff0000ffff0000#62...Ack Packet received: OK Sending packet: $g#67...Ack Packet received:=20=20 14000000ccb59cc00000000067000000089fcbf10c9fcbf1ac309dc00000000079154ac0960= 0000060000000680000007b009dc07c000000ffff0000ffff0000 (gdb) info reg $ss ss 0x68 104 Best regards, Jo=C3=A3o