🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.misc.discuss
Article #63323

Re: Can gdb or dbx debug (trace) assembly source code?

#63323
From: Andreas Schwab
Date: Fri, 10 Feb 1995 12:34
23 lines
1619 bytes
In article <D3KFyH.8xy@kithrup.com>, mrs@kithrup.com (Mike Stump) writes:

|> In article <3h2115$7qf@sparky.cs.nyu.edu>,
|> Salem Reyen <m-sr0069@cs.nyu.edu> wrote:
|>> Can gdb step (trace) through a single assembly line at a time?  How?  

|> Yes.  Type stepi.  You might try `si':


|> define si
|> stepi
|> x/1i $pc
|> end

si is already a synonym for stepi, and you can get the same effect by
setting an auto-display like this:

display/i $pc

There is also nexti aka ni that steps over subroutines.
-- 
Andreas Schwab                                      "And now for something
schwab@issan.informatik.uni-dortmund.de              completely different"
Technical Details
Message-ID: <SCHWAB.95Feb10133425@issan.informatik.uni-dortmund.de>
Path: arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!udel!gatech!howland.reston.ans.net!news.sprintlink.net!EU.net!Germany.EU.net!Informatik.Uni-Dortmund.DE!news
References: <3gndg8$hid@nic.hookup.net> <3h2115$7qf@sparky.cs.nyu.edu> <D3KFyH.8xy@kithrup.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1025b4,94a3898981b34182
X-Google-Attributes: gid1025b4,public
X-Google-ArrivalTime: 1995-02-10 04:34:25 PST
Path: arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!udel!gatech!howland.reston.ans.net!news.sprintlink.net!EU.net!Germany.EU.net!Informatik.Uni-Dortmund.DE!news
From: schwab@issan.informatik.uni-dortmund.de (Andreas Schwab)
Newsgroups: gnu.misc.discuss
Subject: Re: Can gdb or dbx debug (trace) assembly source code?
Date: 10 Feb 1995 12:34:25 GMT
Organization: Dortmund University, Germany
Lines: 23
Message-ID: <SCHWAB.95Feb10133425@issan.informatik.uni-dortmund.de>
References: <3gndg8$hid@nic.hookup.net> <3h2115$7qf@sparky.cs.nyu.edu>
 <D3KFyH.8xy@kithrup.com>
Reply-To: schwab@issan.informatik.uni-dortmund.de
NNTP-Posting-Host: issan.informatik.uni-dortmund.de
In-reply-to: mrs@kithrup.com's message of Mon, 6 Feb 1995 06:42:17 GMT