From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F35093858C52; Tue, 21 Mar 2023 18:30:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F35093858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1679423433; bh=uTj2Y+2Malt+RVuvwsCT3qhWQBtKPywcsp3tkCNzTuw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=n/AKOpyHCTHnOHTIyTEGw6PLBbfWnZ72ANXnXUlOHsQNywjrIiTd7geHcMNCqEZtK +wugtS//7Kk80zaZfZey8HNere650SGcy5X2nJHrz4M8z+hF4LpLnCTo7ib5SUCobI +F0mqp7OKttVNiuj3iW0glqG5S+FATBNumbgwCbQ= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug win32/30255] GDB on Windows cannot retrieve a stacktrace when a NULL function pointer is called Date: Tue, 21 Mar 2023 18:30:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: win32 X-Bugzilla-Version: 13.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30255 --- Comment #4 from Tom Tromey --- (In reply to Tom Tromey from comment #3) > I wonder where the unwound PC comes from. Probably right there on the stack: (gdb) x/20xb $sp 0x5ffd68: 0xf1 0x16 0x35 0x8e 0xf7 0x7f 0x00 0x00 (gdb) disassemble $ Dump of assembler code for function a: 0x00007ff78e3516e0 <+0>: push %rbp 0x00007ff78e3516e1 <+1>: mov %rsp,%rbp 0x00007ff78e3516e4 <+4>: sub $0x20,%rsp 0x00007ff78e3516e8 <+8>: mov 0x5951(%rip),%rax # 0x7ff78e357040 0x00007ff78e3516ef <+15>: call *%rax 0x00007ff78e3516f1 <+17>: nop --=20 You are receiving this mail because: You are on the CC list for the bug.=