From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15429 invoked by alias); 12 Nov 2013 17:10:47 -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 15406 invoked by uid 89); 12 Nov 2013 17:10:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.6 required=5.0 tests=BAYES_50,RDNS_NONE autolearn=no version=3.3.2 X-HELO: smtp1.ugent.be Received: from Unknown (HELO smtp1.ugent.be) (157.193.71.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 12 Nov 2013 17:10:45 +0000 Received: from localhost (mcheck3.ugent.be [157.193.71.89]) by smtp1.ugent.be (Postfix) with ESMTP id A777D885F; Tue, 12 Nov 2013 18:10:37 +0100 (CET) Received: from smtp1.ugent.be ([IPv6:::ffff:157.193.71.182]) by localhost (mcheck3.UGent.be [::ffff:157.193.43.11]) (amavisd-new, port 10024) with ESMTP id FyTQvu1JHIZx; Tue, 12 Nov 2013 18:10:37 +0100 (CET) Received: from [192.168.182.3] (unknown [109.130.25.104]) (Authenticated sender: jmaebe) by smtp1.ugent.be (Postfix) with ESMTPSA id 5AF228854; Tue, 12 Nov 2013 18:10:37 +0100 (CET) Subject: Re: Feature Request Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Jonas Maebe In-Reply-To: Date: Tue, 12 Nov 2013 17:10:00 -0000 Cc: gdb@sourceware.org Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Mark Manning X-j-chkmail-Enveloppe: 5282610B.007 from unknown/unknown/109.130.25.104/[192.168.182.3]/ X-j-chkmail-Score: MSGID : 5282610B.007 on smtp1.ugent.be : j-chkmail score : X : R=. U=. O=## B=0.000 -> S=0.166 X-j-chkmail-Status: Ham X-IsSubscribed: yes X-SW-Source: 2013-11/txt/msg00046.txt.bz2 On 12 Nov 2013, at 18:02, Mark Manning wrote: > So, I would like to request a feature that will allow GDB to simply > single step opcodes anywhere within the process space owned by the > application being debugged even if there is no debug symbols > associated with it. It already does that. Just use "si" (or "stepi") rather than "step" or "nex= t". It can be useful to have "display/i $pc" active when doing so, so you c= an see what's the next instruction to be executed. Jonas >From gdb-return-42821-listarch-gdb=sources.redhat.com@sourceware.org Tue Nov 12 20:03:19 2013 Return-Path: Delivered-To: listarch-gdb@sources.redhat.com Received: (qmail 8031 invoked by alias); 12 Nov 2013 20:03:18 -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 8020 invoked by uid 89); 12 Nov 2013 20:03:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.6 required=5.0 tests=BAYES_50,RDNS_NONE autolearn=no version=3.3.2 X-HELO: smtp2.ugent.be Received: from Unknown (HELO smtp2.ugent.be) (157.193.49.126) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 12 Nov 2013 20:03:16 +0000 Received: from localhost (mcheck2.ugent.be [157.193.49.249]) by smtp2.ugent.be (Postfix) with ESMTP id B8C5E12C37F for ; Tue, 12 Nov 2013 21:03:08 +0100 (CET) Received: from smtp2.ugent.be ([IPv6:::ffff:157.193.49.126]) by localhost (mcheck2.UGent.be [::ffff:157.193.43.11]) (amavisd-new, port 10024) with ESMTP id JqhdrKtAewUa for ; Tue, 12 Nov 2013 21:03:08 +0100 (CET) Received: from [192.168.1.3] (unknown [109.130.25.41]) (Authenticated sender: jmaebe) by smtp2.ugent.be (Postfix) with ESMTPSA id 79F0712C352 for ; Tue, 12 Nov 2013 21:03:08 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1085) Subject: Re: Feature Request From: Jonas Maebe In-Reply-To: Date: Tue, 12 Nov 2013 20:03:00 -0000 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: GDB Development X-j-chkmail-Enveloppe: 5282897C.000 from unknown/41.25-130-109.adsl-dyn.isp.belgacom.be/109.130.25.41/[192.168.1.3]/ X-j-chkmail-Score: MSGID : 5282897C.000 on smtp2.ugent.be : j-chkmail score : X : R=. U=. O=## B=0.000 -> S=0.166 X-j-chkmail-Status: Ham X-IsSubscribed: yes X-SW-Source: 2013-11/txt/msg00047.txt.bz2 Content-length: 437 On 12 Nov 2013, at 20:59, Mark Manning wrote: > actually no, it wont. it will not execute code that does not have > debug associated with it. ... for example (in ascii art) It's definitely unrelated to whether or not there is debug information for = that code. I debug machine code without associated debug information using = gdb all the time. It is however possible that the size of code sections is = taken into account. Jonas >From gdb-return-42822-listarch-gdb=sources.redhat.com@sourceware.org Tue Nov 12 20:34:51 2013 Return-Path: Delivered-To: listarch-gdb@sources.redhat.com Received: (qmail 2146 invoked by alias); 12 Nov 2013 20:34:51 -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 2135 invoked by uid 89); 12 Nov 2013 20:34:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.6 required=5.0 tests=BAYES_50,RDNS_NONE,URIBL_BLOCKED autolearn=no version=3.3.2 X-HELO: smtp2.ugent.be Received: from Unknown (HELO smtp2.ugent.be) (157.193.49.126) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 12 Nov 2013 20:34:48 +0000 Received: from localhost (mcheck2.ugent.be [157.193.49.249]) by smtp2.ugent.be (Postfix) with ESMTP id 5177912C295 for ; Tue, 12 Nov 2013 21:34:40 +0100 (CET) Received: from smtp2.ugent.be ([IPv6:::ffff:157.193.49.126]) by localhost (mcheck2.UGent.be [::ffff:157.193.43.11]) (amavisd-new, port 10024) with ESMTP id bA6wZ-2G1Z4w for ; Tue, 12 Nov 2013 21:34:40 +0100 (CET) Received: from [192.168.1.3] (unknown [109.130.25.41]) (Authenticated sender: jmaebe) by smtp2.ugent.be (Postfix) with ESMTPSA id D843612C2A8 for ; Tue, 12 Nov 2013 21:34:39 +0100 (CET) From: Jonas Maebe Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Fwd: Feature Request Date: Tue, 12 Nov 2013 20:34:00 -0000 References: To: GDB Development Message-Id: Mime-Version: 1.0 (Apple Message framework v1085) X-j-chkmail-Enveloppe: 528290D7.001 from unknown/41.25-130-109.adsl-dyn.isp.belgacom.be/109.130.25.41/[192.168.1.3]/ X-j-chkmail-Score: MSGID : 528290D7.001 on smtp2.ugent.be : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000 X-j-chkmail-Status: Ham X-IsSubscribed: yes X-SW-Source: 2013-11/txt/msg00048.txt.bz2 Content-length: 1380 From: Mark Manning Date: 12 Nov 2013 21:15:12 GMT+01:00 To: Jonas Maebe Subject: Re: Feature Request yes. for example i just performed the following steps 1: strip my executable 2: gdb the stripped executable 3: set breakpoint at a known location thatn when single stepped will jump to code that was written in during execution prior to hitting the breakpoint 4: single step one opcode. This results in "Can not access address 0". 5: disp /3i $pc. this shows the program counter at the expected code 6: stepi. this gives "can not find bounds of current function" and displaying a disassembly from the program counter shows that nothing was executed. On Tue, Nov 12, 2013 at 3:03 PM, Jonas Maebe wr= ote: >=20 > On 12 Nov 2013, at 20:59, Mark Manning wrote: >=20 >> actually no, it wont. it will not execute code that does not have >> debug associated with it. ... for example (in ascii art) >=20 > It's definitely unrelated to whether or not there is debug information fo= r that code. I debug machine code without associated debug information usin= g gdb all the time. It is however possible that the size of code sections i= s taken into account. >=20 >=20 > Jonas --=20 "When something can be read without effort, great effort has gone into its writing." -- Enrique Jardiel Poncela --