public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Tom de Vries <tdevries@suse.de>
To: Kevin Buettner <kevinb@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 3/3] [gdb] Fix assertion failure for checkpoint delete 0
Date: Wed, 10 Jan 2024 11:25:05 +0100	[thread overview]
Message-ID: <21c4fbe8-9acb-4a68-a09b-acd1e50af4d9@suse.de> (raw)
In-Reply-To: <20240109222819.42d20c22@f39-zbm-amd>

On 1/10/24 06:28, Kevin Buettner wrote:
> On Mon,  8 Jan 2024 16:25:53 +0100
> Tom de Vries <tdevries@suse.de> wrote:
> 
>> When doing "checkpoint delete 0" we run into an assertion failure:
>> ...
>> +delete checkpoint 0
>> inferior.c:406: internal-error: find_inferior_pid: Assertion `pid != 0' failed.
>> ...
>>
>> Fix this by handling the "pptid == null_ptid" case in
>> delete_checkpoint_command.
>>
>> Tested on x86_64-linux.
>>
>> PR gdb/31209
>> Bug: https://sourceware.org/bugzilla/show_bug.cgi?id
> 
> The Bug URL above is missing an '=31209' at the end.
> 
> Otherwise, LGTM.
> 
> Approved-By: Kevin Buettner <kevinb@redhat.com>

Thanks for the reviews.

The linaro CI found:
...
(gdb) PASS: gdb.base/checkpoint-ns.exp: delete checkpoint 0: checkpoint
restart 1
Switching to Thread 0xfffff7ff7e60 (LWP 146669)
#0  main () at 
/home/tcwg-build/workspace/tcwg_gnu_0/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.base/checkpoint.c:28
28	  char *tmp = &linebuf[0];
(gdb) FAIL: gdb.base/checkpoint-ns.exp: delete checkpoint 0: restart 1
...
so I'll commit shortly with this minor update:
...
-    gdb_test "restart 1" "Switching to process $decimal\r\n.*"
+    gdb_test "restart 1" "Switching to .*"
...

Thanks,
- Tom

      reply	other threads:[~2024-01-10 10:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-08 15:25 [PATCH 0/3] [gdb] Two checkpoint fixes Tom de Vries
2024-01-08 15:25 ` [PATCH 1/3] [gdb] Make variable printed bool in info_checkpoints_command Tom de Vries
2024-01-09 17:54   ` Kevin Buettner
2024-01-08 15:25 ` [PATCH 2/3] [gdb] Fix info checkpoints Tom de Vries
2024-01-09 18:03   ` Kevin Buettner
2024-01-08 15:25 ` [PATCH 3/3] [gdb] Fix assertion failure for checkpoint delete 0 Tom de Vries
2024-01-10  5:28   ` Kevin Buettner
2024-01-10 10:25     ` Tom de Vries [this message]

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=21c4fbe8-9acb-4a68-a09b-acd1e50af4d9@suse.de \
    --to=tdevries@suse.de \
    --cc=gdb-patches@sourceware.org \
    --cc=kevinb@redhat.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).