From: "Rodrigo Dominguez" <roddomi@hotmail.com>
To: "'Eli Zaretskii'" <eliz@gnu.org>
Cc: <gdb@sourceware.org>
Subject: RE: How to print the current source line number
Date: Fri, 15 May 2009 18:09:00 -0000 [thread overview]
Message-ID: <BAY109-DS6C4A7A0188634DCAB6D1AB95F0@phx.gbl> (raw)
In-Reply-To: <83iqk2qobj.fsf@gnu.org>
Either 'frame' or 'list *$pc' work. Thank you!
> -----Original Message-----
> From: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] On
> Behalf Of Eli Zaretskii
> Sent: Friday, May 15, 2009 1:16 PM
> To: Rodrigo Dominguez
> Cc: gdb@sourceware.org
> Subject: Re: How to print the current source line number
>
> > From: "Rodrigo Dominguez" <roddomi@hotmail.com>
> > Date: Fri, 15 May 2009 11:59:11 -0400
> >
> > How can I print the current source line number in gdb? I have tried
> the
> > 'list' command and it shows the lines around the current line.
> However, this
> > command has "memory" and doesn't show the same lines each time it is
> > executed. Is there a better way to print the current line number? Or
> is
> > there a way to "reset" the memory of the 'line' command so it will
> show the
> > current line centered around the output?
>
> Does
>
> list *$pc
>
> do what you want?
next prev parent reply other threads:[~2009-05-15 18:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-15 15:59 Rodrigo Dominguez
2009-05-15 16:19 ` Joel Brobecker
2009-05-15 17:16 ` Eli Zaretskii
2009-05-15 18:09 ` Rodrigo Dominguez [this message]
2009-05-17 6:49 ` kamaraju kusumanchi
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=BAY109-DS6C4A7A0188634DCAB6D1AB95F0@phx.gbl \
--to=roddomi@hotmail.com \
--cc=eliz@gnu.org \
--cc=gdb@sourceware.org \
/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