public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "ssbssa at sourceware dot org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug mi/15945] gdb.mi/mi-catch-load.exp failed on Windows
Date: Sat, 13 Jan 2024 20:45:53 +0000	[thread overview]
Message-ID: <bug-15945-4717-w39mnfgJNr@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-15945-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=15945

Hannes Domani <ssbssa at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ssbssa at sourceware dot org

--- Comment #1 from Hannes Domani <ssbssa at sourceware dot org> ---
Weird, this succeeds for me with the oldest gdb I have where 'catch-load'
exists, which is 7.6.1:
> (gdb)
> start
> &"start\n"
> ~"Temporary breakpoint 1 at 0x4015e6: file C:/src/repos/binutils-gdb.git/gdb/testsuite/gdb.mi/mi-catch-load.c, line 35.\n"
> =breakpoint-created,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x004015e6",func="main",file="C:/src/repos/binutils-gdb.git/gdb/testsuite/gdb.mi/mi-catch-load.c",fullname="C:\\\\src\\\\repos\\\\binutils-gdb.git\\\\gdb\\\\testsuite\\\\gdb.mi\\\\mi-catch-load.c",line="35",thread-groups=["i1"],times="0",original-location="main"}
> ~"Starting program: C:\\gdb\\build64\\gdb-git-python3\\gdb\\testsuite\\outputs\\gdb.mi\\mi-catch-load/mi-catch-load.exe \n"
> =thread-group-started,id="i1",pid="7164"
> =thread-created,id="1",group-id="i1"
> ~"[New Thread 7164.0x2278]\n"
> ^running
> *running,thread-id="all"
> (gdb)
> =library-loaded,id="C:\\Windows\\system32\\ntdll.dll",target-name="C:\\Windows\\system32\\ntdll.dll",host-name="C:\\Windows\\system32\\ntdll.dll",symbols-loaded="0",thread-group="i1"
> =library-loaded,id="C:\\Windows\\syswow64\\kernel32.dll",target-name="C:\\Windows\\syswow64\\kernel32.dll",host-name="C:\\Windows\\syswow64\\kernel32.dll",symbols-loaded="0",thread-group="i1"
> =library-loaded,id="C:\\Windows\\syswow64\\KernelBase.dll",target-name="C:\\Windows\\syswow64\\KernelBase.dll",host-name="C:\\Windows\\syswow64\\KernelBase.dll",symbols-loaded="0",thread-group="i1"
> =library-loaded,id="C:\\Program Files\\AVAST Software\\Avast\\x86\\aswhook.dll",target-name="C:\\Program Files\\AVAST Software\\Avast\\x86\\aswhook.dll",host-name="C:\\Program Files\\AVAST Software\\Avast\\x86\\aswhook.dll",symbols-loaded="0",thread-group="i1"
> =library-loaded,id="C:\\Windows\\syswow64\\msvcrt.dll",target-name="C:\\Windows\\syswow64\\msvcrt.dll",host-name="C:\\Windows\\syswow64\\msvcrt.dll",symbols-loaded="0",thread-group="i1"
> =breakpoint-modified,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x004015e6",func="main",file="C:/src/repos/binutils-gdb.git/gdb/testsuite/gdb.mi/mi-catch-load.c",fullname="C:\\\\src\\\\repos\\\\binutils-gdb.git\\\\gdb\\\\testsuite\\\\gdb.mi\\\\mi-catch-load.c",line="35",thread-groups=["i1"],times="1",original-location="main"}
> ~"\nTemporary breakpoint "
> ~"1, main () at C:/src/repos/binutils-gdb.git/gdb/testsuite/gdb.mi/mi-catch-load.c:35\n"
> ~"35\t  h = dlopen (libname, RTLD_LAZY);\n"
> *stopped,reason="breakpoint-hit",disp="del",bkptno="1",frame={addr="0x004015e6",func="main",args=[],file="C:/src/repos/binutils-gdb.git/gdb/testsuite/gdb.mi/mi-catch-load.c",fullname="C:\\src\\repos\\binutils-gdb.git\\gdb\\testsuite\\gdb.mi\\mi-catch-load.c",line="35"},thread-id="1",stopped-threads="all"
> =breakpoint-deleted,id="1"
> (gdb)
> 111-gdb-set auto-solib-add on
> 111^done
> (gdb)
> 222-catch-load -t mi-catch-load-so.so
> 222^done,bkpt={number="2",type="catchpoint",disp="del",enabled="y",what="load of library matching mi-catch-load-so.so",catch-type="load",thread-groups=["i1"],times="0"}
> (gdb)
> ~"Catchpoint 2 (load)"
> -exec-continue
> ^running
> *running,thread-id="all"
> (gdb)
> =library-loaded,id="C:\\gdb\\build64\\gdb-git-python3\\gdb\\testsuite\\outputs\\gdb.mi\\mi-catch-load\\mi-catch-load-so.so",target-name="C:\\gdb\\build64\\gdb-git-python3\\gdb\\testsuite\\outputs\\gdb.mi\\mi-catch-load\\mi-catch-load-so.so",host-name="C:\\gdb\\build64\\gdb-git-python3\\gdb\\testsuite\\outputs\\gdb.mi\\mi-catch-load\\mi-catch-load-so.so",symbols-loaded="0",thread-group="i1"
> =breakpoint-modified,bkpt={number="2",type="catchpoint",disp="del",enabled="y",what="load of library matching mi-catch-load-so.so",catch-type="load",thread-groups=["i1"],times="1"}
> *stopped,bkptno="2",disp="del",reason="solib-event",added=[library="C:\\gdb\\build64\\gdb-git-python3\\gdb\\testsuite\\outputs\\gdb.mi\\mi-catch-load\\mi-catch-load-so.so"],frame={addr="0x76fafc62",func="ntdll!ZwMapViewOfSection",args=[],from="C:\\Windows\\system32\\ntdll.dll"},thread-id="1",stopped-threads="all"
> =breakpoint-deleted,id="2"
> (gdb)

I wonder why it didn't work for Yao.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

      parent reply	other threads:[~2024-01-13 20:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-12  0:29 [Bug mi/15945] New: " qiyao at gcc dot gnu.org
2013-09-12  0:30 ` [Bug mi/15945] " qiyao at gcc dot gnu.org
2024-01-13 20:45 ` ssbssa at sourceware dot org [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=bug-15945-4717-w39mnfgJNr@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).