Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi <simark@simark.ca>
To: Luis Machado <luis.machado@linaro.org>, gdb-patches@sourceware.org
Cc: alan.hayward@arm.com, tankut.baris.aktemur@intel.com
Subject: Re: [PATCH 2/2][AArch64] Test handling of additional brk instruction patterns
Date: Tue, 14 Jan 2020 15:37:00 -0000	[thread overview]
Message-ID: <4cd3c522-393c-bff2-7546-868f4b214c56@simark.ca> (raw)
In-Reply-To: <0f4a6a0a-540b-7641-cd3e-2fef07cf3994@linaro.org>

On 2020-01-14 8:30 a.m., Luis Machado wrote:
> The idea behind the test is that GDB will get a SIGTRAP and be able to 
> step over all of the program breakpoints until the inferior exits. We 
> don't count how many of those breakpoints we've hit.
> 
> If GDB gets stuck during "continue" and doesn't hit one of the 
> breakpoints, then we throw a fail. That failure is an indication that 
> something is wrong.

It would just be one more consistency check.  If we put 4 breakpoints in the
file, but get 3 hits, there is something wrong.

Your test verifies well the failure mode that you have encountered today, but
by adding this check, it could catch some other types failure in the future.

> If someone wants to add more breakpoint patterns to the test, the .exp 
> file won't need to be changed.

I don't really think it's a problem to update the .exp file if you're changing
the .c anyway.

> Does that make sense? Or do you think it would be better to have a fixed 
> set of instruction the test is bound to?
I would add it, but it's not necessary, I'll leave that up to you. :)

Simon


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

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-13 17:25 [PATCH 0/2,v2][AArch64]Handle " Luis Machado
2020-01-13 17:25 ` [PATCH 1/2][AArch64] Recognize more program breakpoint patterns Luis Machado
2020-01-13 17:30 ` [PATCH 2/2][AArch64] Test handling of additional brk instruction patterns Luis Machado
2020-01-14  5:03   ` Simon Marchi
2020-01-14 13:45     ` Luis Machado
2020-01-14 15:37       ` Simon Marchi [this message]
     [not found]     ` <BYAPR11MB3030A0EBC8F50F7B7B0F2081C4340@BYAPR11MB3030.namprd11.prod.outlook.com>
2020-01-14 13:59       ` Luis Machado
  -- strict thread matches above, loose matches on Subject: below --
2019-12-23 17:34 [PATCH] [AArch64] Recognize more program breakpoint patterns Luis Machado
2020-01-13 17:03 ` [PATCH 1/2] " Luis Machado
2020-01-13 17:06   ` [PATCH 2/2] [AArch64] Test handling of additional brk instruction patterns Luis Machado

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=4cd3c522-393c-bff2-7546-868f4b214c56@simark.ca \
    --to=simark@simark.ca \
    --cc=alan.hayward@arm.com \
    --cc=gdb-patches@sourceware.org \
    --cc=luis.machado@linaro.org \
    --cc=tankut.baris.aktemur@intel.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