This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCHv2] Make "skip" work on inline frames
- From: Bernd Edlinger <bernd dot edlinger at hotmail dot de>
- To: Simon Marchi <simark at simark dot ca>, "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Wed, 30 Oct 2019 20:05:53 +0000
- Subject: Re: [PATCHv2] Make "skip" work on inline frames
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7B2myiQvQau5t1tpy8ZLgLUQAPHAVhSVI3J7ujp03oA=; b=Gs+pDZYuQCAMYQN9HFY9AtXHr/awx95cWgexFfyNOG8R20p3RJ6Yl7iYURHp9Znq1tbsulw5Jiz5+WMxaI/tk2quNsmCMpw59cEWarTxMJOkmSqei1Hft1xUoqa9pVk/lhpftG2vtVogrynW8V2cgOOK9h35kjeCHt0E1fHl0/ob1r/FtATfuOZ2FmIkj1jTrG1qnFUJeh477fRySlHXBV5WS0XgUtQb/byg9E0vwsbgh1FoRl8q6GycYXVlcm74sALQ4JgH+qLcbtFu0JN5kFPBQy3StWn06rjOmg6mWcqMaXeKCVplSTzgPhoJnxdmjE+LAycDVUCy2G9BjnDzFg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JdbsRooQi/CH0g991ORsDpvaGGTM/4n77LJiFYmPjNy+go+ziSRVPhrzV8ACtvBVJkXzg1E8s3pJVXvSezl/+mTVCakimZk70D4c5f+oRajr5eZPlHtpFVdcIbEmihRPYt7unOmRSoetnuYNW7z1/AjDzhBzW7TZG3xd7INHuO4NU/OsX7rnAMQ1N7W65i47jSMZOUj8oCPtr8ND6ywr9Ei2fqRIoPWAhY4+ra58GTO5y/ikZZ11RdbYj5ItZSRbiVNslft0pnK9uLlubmP4IsH9ezlTK07O/U19cKxJ75KaXj4Kxy249mUGW6V0BjrikKbYiHFDw+UwLRaaBrgc/g==
- References: <VI1PR03MB4528B9076FC778EF9C0B8B61E46C0@VI1PR03MB4528.eurprd03.prod.outlook.com> <VI1PR03MB452851603771A9F8A45E74C9E46F0@VI1PR03MB4528.eurprd03.prod.outlook.com> <VI1PR03MB452814244371F04E2848AB68E46E0@VI1PR03MB4528.eurprd03.prod.outlook.com> <8fc93db4-8906-4f4e-53f4-225ebfa0115d@simark.ca>
On 10/27/19 2:52 AM, Simon Marchi wrote:
> On 2019-10-20 2:48 a.m., Bernd Edlinger wrote:
>> On 10/19/19 6:38 AM, Bernd Edlinger wrote:
>>> Hmm,
>>>
>>> I noticed that the patch does not yet handle
>>> the step <count> correctly, the count is decremented
>>> although the inline frame is skipped and should not be
>>> counted...
>>>
>>> Thus I will need to change at least this:
>>>
>>> --- a/gdb/infcmd.c
>>> +++ b/gdb/infcmd.c
>>> @@ -1122,7 +1122,6 @@ prepare_one_step (struct step_command_fsm *sm)
>>> set_running (resume_ptid, 1);
>>>
>>> step_into_inline_frame (tp);
>>> - sm->count--;
>>>
>>> sal = find_frame_sal (frame);
>>> sym = get_frame_function (frame);
>>> @@ -1132,13 +1131,17 @@ prepare_one_step (struct step_command_fsm *sm)
>>>
>>> if (sal.line == 0
>>> || !function_name_is_marked_for_skip (fn, sal))
>>> - return prepare_one_step (sm);
>>> + {
>>> + sm->count--;
>>> + return prepare_one_step (sm);
>>> + }
>>> }
>>>
>>>
>>
>> Attached is an updated patch that fixes this issue,
>> and also adds the following after step_into_inline_frame ():
>>
>> frame = get_current_frame ();
>>
>> That I consider safer, since this function calls reinit_frame_cache ().
>> It was probably just by chance that this did not seem to cause any
>> problems for me.
>>
>>
>> Thanks
>> Bernd.
>
> Hi Bernd,
>
> Sorry for the delay. I'll start looking at this patch, but I first need to play with
> it a bit first and get more familiar with that area of the code.
>
> In the mean time, I looked for your name in the copyright assignment list, and don't find
> it. I think this patch is large enough to warrant one Do you already have one in place?
> If not, please follow instructions here:
>
There should be an assignment on file, although it is signed by my employer
Softing Industrial Automation GmbH on Oct 25 2012 and countersigned by
John Sullivan on Dec 17 2012
The work that is intended to be covered by this assignment is mine.
I am also the maintainer of the GNU Mempool package:
https://www.gnu.org/software/mempool/
so I should be known to gnu.org, but maybe something got lost.
Is this assignment sufficient for contributing to gdb?
Thanks
Bernd.