Bug 30933 - FAIL: gdb.ada/file-then-restart.exp: scenario=kill: start second (the program exited) [native-gdbserver]
Summary: FAIL: gdb.ada/file-then-restart.exp: scenario=kill: start second (the program...
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: gdb (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: 15.1
Assignee: Tom Tromey
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-02 18:41 UTC by Simon Marchi
Modified: 2023-10-12 13:50 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Marchi 2023-10-02 18:41:30 UTC
I see these failures when running gdb.ada/file-then-restart.exp with the native-extended-gdbserver board:

FAIL: gdb.ada/file-then-restart.exp: scenario=kill: start second (the program exited)
FAIL: gdb.ada/file-then-restart.exp: scenario=no-kill: start second (the program exited)
Comment 2 Sourceware Commits 2023-10-12 13:45:11 UTC
The master branch has been updated by Tom Tromey <tromey@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=07c833f99c331f9eb77901cdfd143fce5acc8454

commit 07c833f99c331f9eb77901cdfd143fce5acc8454
Author: Tom Tromey <tromey@adacore.com>
Date:   Wed Oct 11 10:20:04 2023 -0600

    Fix test suite failure in file-then-restart.exp
    
    Simon pointed out that the new file-then-restart.exp test fails with
    the extended-remote target board.
    
    The problem is that the test suite doesn't use gdb_file_cmd -- which
    handles things like "set remote exec-file".  This patch changes
    gdb_file_cmd to make the "kill" command optional, and then switches
    the test case to use it.
    
    Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30933
    Approved-By: Simon Marchi <simon.marchi@efficios.com>
Comment 3 Tom Tromey 2023-10-12 13:50:00 UTC
Fixed.