Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Bernd Edlinger <bernd.edlinger@hotmail.de>
To: Andrew Burgess <andrew.burgess@embecosm.com>
Cc: Luis Machado <luis.machado@linaro.org>,
	"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [PATCH v3 2/2] Fix an undefined behavior in record_line
Date: Sun, 5 Apr 2020 02:12:38 +0200	[thread overview]
Message-ID: <AM6PR03MB51703E32513C51E1466CBC23E4C50@AM6PR03MB5170.eurprd03.prod.outlook.com> (raw)
In-Reply-To: <20200404225532.GC3917@embecosm.com>



On 4/5/20 12:55 AM, Andrew Burgess wrote:
> * Bernd Edlinger <bernd.edlinger@hotmail.de> [2020-04-04 18:34:07 +0200]:
> 
>> Okay, I think I see what is wrong.
>>
>>  Line Number Statements:
>>   [0x000000b4]  Extended opcode 2: set Address to 0x73c
>>   [0x000000bf]  Advance Line by 75 to 76
>>   [0x000000c2]  Copy
>>
>> ....
>>
>>   [0x00000129]  Extended opcode 2: set Address to 0x73c
>>   [0x00000134]  Advance Line by 1 to 73
>>   [0x00000136]  Copy
>>   [0x00000137]  Extended opcode 1: End of Sequence
>>
>> so the second line was previously deleted,
>> but now it is a non-is-stmt line.
>> The address is the same,
>>
>> There was previously a discussion that two consecutive line-entries are a
>> rogue method to notify the debugger of where the end of header is.
>> I don't recall in the moment where this code is located.
>> But if someone could point out the place to me, I could
>> probably add code to ignore non-is-stmt lines,
> 
> It's in symtab.c:skip_prologue_using_sal.
> 
>>
>> Andrew, are you already on that target, with one of your patches from
>> yesterday?
> 
> Not really.  The other aarch64 issue only required me to get a target
> started, so I was using the gdbsim.  But this is known to be pretty
> iffy, you'd probably have more luck building QEMU and running against
> that.
> 

Yeah, that is on my wish list since a while.

I have no idea how much work it is, I would also be
happy to have an aarch64 QEMU, for testing my openssl
patches, I heard they emulate the full instruction set.


Maybe not today, but what are the necessary steps?


Thanks
Bernd.

> Thanks,
> Andrew
> 
>>
>>
>> Thanks
>> Bernd.


  reply	other threads:[~2020-04-05  0:12 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-27  3:50 Bernd Edlinger
2020-04-01 16:23 ` Tom Tromey
2020-04-01 16:52   ` Bernd Edlinger
2020-04-01 18:40     ` Bernd Edlinger
2020-04-01 18:53       ` Tom Tromey
2020-04-01 19:01         ` Bernd Edlinger
2020-04-03 22:53 ` Luis Machado
2020-04-04  4:21   ` Bernd Edlinger
2020-04-04  7:06     ` Bernd Edlinger
2020-04-04 13:56       ` Luis Machado
2020-04-04 16:06         ` Bernd Edlinger
2020-04-04 16:22           ` Luis Machado
2020-04-04 16:34             ` Bernd Edlinger
2020-04-04 22:55               ` Andrew Burgess
2020-04-05  0:12                 ` Bernd Edlinger [this message]
2020-04-04 23:03 ` Andrew Burgess
2020-04-06 17:44   ` Andrew Burgess
2020-04-06 18:48     ` 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=AM6PR03MB51703E32513C51E1466CBC23E4C50@AM6PR03MB5170.eurprd03.prod.outlook.com \
    --to=bernd.edlinger@hotmail.de \
    --cc=andrew.burgess@embecosm.com \
    --cc=gdb-patches@sourceware.org \
    --cc=luis.machado@linaro.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