Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "William A. Gatliff" <bgat@billgatliff.com>
To: Vinayak P Risbud <vinayak@multitech.co.in>, gdb <gdb@sources.redhat.com>
Subject: Re: assembly editing in GDB
Date: Tue, 06 Aug 2002 07:01:00 -0000	[thread overview]
Message-ID: <20020806090101.B30435@saturn.billgatliff.com> (raw)
In-Reply-To: <20020806131101.GA22456@nevyn.them.org>; from drow@mvista.com on Tue, Aug 06, 2002 at 09:11:01AM -0400

One other thing:  if you do this:

(gdb) display/i $pc

then gdb will actually show the asm instruction it's about to run.  :^)

b.g.


As On Tue, Aug 06, 2002 at 09:11:01AM -0400, Daniel Jacobowitz wrote:
> On Tue, Aug 06, 2002 at 11:52:46AM +0530, Vinayak P Risbud wrote:
> >         Can I run and debug, an assembly program in GDB ?
> 
> Sure.
> 
> >         If yes, how can I edit and write the assembly program
> >         in GDB ?
> 
> You can't.  GDB does not have any support for editing or assembling
> code.  You compile the assembly as normal; if you're using the GNU
> tools you can use "gcc -g" and it will generally arrange to put
> line-number information in the object module.
> 
> -- 
> Daniel Jacobowitz                           Carnegie Mellon University
> MontaVista Software                         Debian GNU/Linux Developer

-- 
Bill Gatliff
bgat@billgatliff.com


  reply	other threads:[~2002-08-06 14:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-05 23:23 Vinayak P Risbud
2002-08-06  6:11 ` Daniel Jacobowitz
2002-08-06  7:01   ` William A. Gatliff [this message]
2002-08-06  6:28 ` Carlos O'Donell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020806090101.B30435@saturn.billgatliff.com \
    --to=bgat@billgatliff.com \
    --cc=gdb@sources.redhat.com \
    --cc=vinayak@multitech.co.in \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox