Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Luis Machado <luis.machado@linaro.org>
To: Simon Marchi <simark@simark.ca>,
	Scott Linder <scott@scottlinder.com>,
	gdb-patches@sourceware.org
Subject: Re: [PATCH v2] [gdb] Support frames inlined into the outer frame
Date: Mon, 8 Jun 2020 09:00:26 -0300	[thread overview]
Message-ID: <a74e0dd0-aaca-ae95-88f3-0a143bf11648@linaro.org> (raw)
In-Reply-To: <6273d9f5-5c42-620b-daff-c332ab148623@simark.ca>

On 6/4/20 4:23 PM, Simon Marchi wrote:
> On 2020-06-04 12:11 p.m., Simon Marchi wrote:
>> On 2020-03-31 3:18 p.m., Scott Linder wrote:
>>> @@ -763,6 +760,24 @@ frame_id_eq (struct frame_id l, struct frame_id r)
>>>     return eq;
>>>   }
>>>   
>>> +int
>>> +outer_frame_id_p (struct frame_id l)
>>> +{
>>> +  int p;
>>> +
>>> +  /* The artificial_depth can vary so we ignore it when checking if this is
>>> +     an outer_frame_id.  */
>>> +  l.artificial_depth = 0;
>>> +  p = memcmp (&l, &outer_frame_id, sizeof (outer_frame_id));
>>
>> This should be `memcmp (...) == 0`.  Currently, the function returns true when
>> the frame is not an outer frame id, which is the opposite of what it is supposed
>> to do.
>>
>> With this, the test gdb.base/break.exp on AArch64 runs fine.  I will launch a full
>> test run to see if there are any other problems.
>>
>> You can make the new function return "bool" instead of "int", and use true/false instead
>> of zero/non-zero (both in the code and comments).
>>
>> Simon
> 
> With this change, the full test run on AArch64 came out clean.  I'll try a try
> job on the buildbot, but I haven't had much success with it recently.
> 
> Simon
> 

I don't see the same, even with the fixup of memcmp. Though 
gdb.base/break.exp has full passes with the change, the following tests 
internal error with the patch...

gdb.mi/mi-nonstop.exp
gdb.threads/clone-thread_db.exp
gdb.threads/current-lwp-dead.exp
gdb.threads/hand-call-in-threads.exp
gdb.threads/linux-dp.exp
gdb.threads/local-watch-wrong-thread.exp
gdb.threads/queue-signal.exp
gdb.threads/schedlock.exp
gdb.threads/thread_check.exp
gdb.threads/tls.exp

#1  0x0000ffffb7fa1088 in start_thread () from 
/lib/aarch64-linux-gnu/libpthread.so.0
../../../repos/binutils-gdb/gdb/frame.c:551: internal-error: void 
compute_frame_id(frame_info*): Assertion `frame_id_p 
(fi->this_id.value)' failed.

Scott, could you please send a v3 so I can make sure I tested the right 
version? I was initially slightly confused with what version Simon was 
talking about since I had already tested v2.


  reply	other threads:[~2020-06-08 12:00 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-18 20:43 [RFC][PATCH] " scott
2020-03-18 21:17 ` scott
2020-03-18 21:27   ` Simon Marchi
2020-03-18 21:42     ` scott
2020-03-18 21:45       ` Simon Marchi
2020-03-18 22:06         ` Scott Linder
2020-03-18 22:11         ` [PATCH] [gdb] " Scott Linder
2020-03-24 10:22           ` Andrew Burgess
2020-03-30 22:22             ` scott
2020-03-31 19:18               ` [PATCH v2] " Scott Linder
2020-04-03 17:00                 ` Andrew Burgess
2020-04-17 20:41                   ` Scott Linder
2020-04-03 19:37                 ` Luis Machado
2020-04-17 20:51                   ` Scott Linder
2020-06-04 16:11                 ` Simon Marchi
2020-06-04 19:23                   ` Simon Marchi
2020-06-08 12:00                     ` Luis Machado [this message]
2020-06-08 16:01                       ` Simon Marchi
2020-06-08 16:10                         ` Luis Machado
2020-04-02 19:30               ` [PATCH] " Pedro Alves
2020-04-17 20:35                 ` Scott Linder

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=a74e0dd0-aaca-ae95-88f3-0a143bf11648@linaro.org \
    --to=luis.machado@linaro.org \
    --cc=gdb-patches@sourceware.org \
    --cc=scott@scottlinder.com \
    --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