public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Simon Farre <simon.farre.cx@gmail.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH v2] [gdb/infcmd]: Add next-expression command
Date: Thu, 18 May 2023 18:19:58 +0300	[thread overview]
Message-ID: <83jzx5vf8h.fsf@gnu.org> (raw)
In-Reply-To: <20230518144552.67097-1-simon.farre.cx@gmail.com> (message from Simon Farre via Gdb-patches on Thu, 18 May 2023 16:45:52 +0200)

> Cc: Simon Farre <simon.farre.cx@gmail.com>
> Date: Thu, 18 May 2023 16:45:52 +0200
> From: Simon Farre via Gdb-patches <gdb-patches@sourceware.org>
> 
>  gdb/NEWS               |  7 ++++
>  gdb/buildsym-legacy.c  |  4 +-
>  gdb/buildsym-legacy.h  |  2 +-
>  gdb/buildsym.c         |  3 +-
>  gdb/buildsym.h         |  4 +-
>  gdb/coffread.c         |  4 +-
>  gdb/dbxread.c          |  6 +--
>  gdb/doc/gdb.texinfo    | 16 +++++++-
>  gdb/doc/python.texi    |  6 +++
>  gdb/dwarf2/read.c      | 32 ++++++++++-----
>  gdb/gdbthread.h        |  2 +
>  gdb/infcmd.c           | 91 +++++++++++++++++++++++++++++++++++-------
>  gdb/infrun.c           |  8 ++++
>  gdb/mdebugread.c       |  2 +-
>  gdb/python/py-symtab.c | 29 ++++++++++----
>  gdb/stack.c            |  7 ++++
>  gdb/symtab.c           |  1 +
>  gdb/symtab.h           | 22 ++++++++++
>  18 files changed, 201 insertions(+), 45 deletions(-)

Thanks.

> diff --git a/gdb/NEWS b/gdb/NEWS
> index b82114d80b0..38c6f54564b 100644
> --- a/gdb/NEWS
> +++ b/gdb/NEWS
> @@ -3,6 +3,13 @@
>  
>  *** Changes since GDB 13
>  
> +* New commmand "next-expression" ("ne") that steps by expression or statement
> +  on a single source line if debug information is available.
> +
> +* New column attribute of Python type Symtab_and_line to reflect the added
> +  column field on "linetable_entry". Describes what column on the source line
                                      ^^
Two spaces there.

> +  that is being executed. Columns are byte-level coordinates on a source line.
                           ^^
And there.

> --- a/gdb/doc/python.texi
> +++ b/gdb/doc/python.texi
> @@ -5899,6 +5899,12 @@ Indicates the current line number for this object.  This
>  attribute is not writable.
>  @end defvar
>  
> +@defvar Symtab_and_line.column
> +Indicates the current column number for this object.  This
> +attribute is not writeable.  A source-line column is it's byte position
                                                        ^^^^
"its', not "it's".

Reviewed-By: Eli Zaretskii <eliz@gnu.org>

      reply	other threads:[~2023-05-18 15:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-18 14:45 Simon Farre
2023-05-18 15:19 ` Eli Zaretskii [this message]

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=83jzx5vf8h.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=simon.farre.cx@gmail.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).