public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Bernd Edlinger <bernd.edlinger@hotmail.de>
To: Andrew Burgess <andrew.burgess@embecosm.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
	Simon Marchi	<simark@simark.ca>
Subject: Re: [PING**3] [PATCH] Fix an issue with the gdb step-over aka. "n" command
Date: Tue, 07 Jan 2020 15:15:00 -0000	[thread overview]
Message-ID: <AM0PR08MB37142449B64AEFEDDF4691E7E43F0@AM0PR08MB3714.eurprd08.prod.outlook.com> (raw)
In-Reply-To: <20200106220925.GU3865@embecosm.com>

On 1/6/20 11:09 PM, Andrew Burgess wrote:
> * Bernd Edlinger <bernd.edlinger@hotmail.de> [2020-01-06 08:14:37 +0000]:
> 
>> Hi,
>>
>> I'd like to ping for this patch again.
>> The latest version (including testcase + changelog) can be found here:
>> https://sourceware.org/ml/gdb-patches/2019-12/msg01052.html
> 
> I think we should investigate tracking the line table is_stmt property
> better, as I suggested in another mail in this thread.
> 

Sure, no problem.
I am fully aware that this is just a workaround.

> I see you've provided some feedback to the patch I posted, I just
> haven't had time to look at it yet, but will try to get to it as soon
> as I can.
> 

Thanks, one additional thought I had about your patch:

I believe that we should also look at implementing the
variable-location-views.

I mean adding a view number to the record_line function.

That would mean adding PC.view in the line table.
That could in theory be used to find out if a location
view is inside a subroutine or in the main program,
even if the PC is the same, using the view number it
would be possible to find that out.

That would allow us to step to the return statement of the
inline function if we are stepping in the inline function
and to step over the whole inline if we want to.

The only part that is really missing for that is
the view number in addition to the PC where the inline
function ends.

Note there is already a view number where the inline
starts:

 <2><918>: Abbrev Number: 43 (DW_TAG_inlined_subroutine)
    <919>   DW_AT_abstract_origin: <0x9b5>
    <91d>   DW_AT_entry_pc    : 0x40117b
    <925>   DW_AT_GNU_entry_view: 0
    <926>   DW_AT_low_pc      : 0x40117b
    <92e>   DW_AT_high_pc     : 0xa
    <936>   DW_AT_call_file   : 1
    <937>   DW_AT_call_line   : 24
    <938>   DW_AT_call_column : 10
    <939>   DW_AT_sibling     : <0x965>


conceptually the subroutine starta at
DW_AT_entry_pc/DW_AT_GNU_entry_view
and ends at DW_AT_high_pc/<end view number>,
but the end view number is not yet specified.
That IMHO is what should be added here.


Bernd.

  reply	other threads:[~2020-01-07 15:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-24 12:17 Bernd Edlinger
2019-12-01 20:47 ` [PING] " Bernd Edlinger
2019-12-14 13:52   ` [PING**2] " Bernd Edlinger
2019-12-30 22:12     ` Andrew Burgess
2020-01-01  9:40       ` Bernd Edlinger
2020-01-06  8:14     ` [PING**3] " Bernd Edlinger
2020-01-06 22:09       ` Andrew Burgess
2020-01-07 15:15         ` Bernd Edlinger [this message]
2019-12-15  1:25 ` Simon Marchi
2019-12-15  8:39   ` Bernd Edlinger
2019-12-19 22:53     ` Bernd Edlinger
2019-12-20  6:13       ` Simon Marchi
2019-12-20 19:57         ` Bernd Edlinger
2019-12-28  8:40         ` Bernd Edlinger

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=AM0PR08MB37142449B64AEFEDDF4691E7E43F0@AM0PR08MB3714.eurprd08.prod.outlook.com \
    --to=bernd.edlinger@hotmail.de \
    --cc=andrew.burgess@embecosm.com \
    --cc=gdb-patches@sourceware.org \
    --cc=simark@simark.ca \
    /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).