Article View: gnu.gdb.bug
Article #504assembly
From: Phil Romig
Date: Tue, 06 Oct 1992 14:42
Date: Tue, 06 Oct 1992 14:42
20 lines
994 bytes
994 bytes
A couple of quick questions:
1) Is there a better group for how to questions than gdb.bug for gdb?
2) I'm using gdb for assembler debugging (don't as why). I'd like a
way to define a command that will step forward one instruction and
disassemble the instruction at the pc. I think I'm close with:
define sd
stepi
x/i <address of pc>
end
the problem is how to get <address of pc> into the x/i command.
Anyone have any ideas?
thanks
-PHIL-
romig@cse.unl.edu
University of Nebraska, Lincoln
Lincoln, NE
Technical Details
Message-ID:
<1992Oct6.144220.2790@unlinfo.unl.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!think.com!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cse.unl.edu!romigShow Full Headers
Complete Article Headers
Newsgroups: gnu.gdb.bug Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cse.unl.edu!romig From: romig@cse.unl.edu (Phil Romig) Subject: assembly Message-ID: <1992Oct6.144220.2790@unlinfo.unl.edu> Sender: gnulists@ai.mit.edu Organization: University of Nebraska - Lincoln Distribution: gnu Date: Tue, 6 Oct 1992 14:42:20 GMT Approved: bug-gdb@prep.ai.mit.edu Lines: 21