From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C05223858C54; Sun, 12 Feb 2023 08:17:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C05223858C54 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676189868; bh=i7CFWI4kP2TJWJfh4+tcNPXKQL6yDLFSRt8Vx3QVFVI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YFoRSFmmtzuBevING8xP8BEk3ePKyYSK11buDKeSSjpwPgXSUm1z7lff5AusaClYg A2HAGkDIXA40g2HlwSb6RGEgVRBa1POoTaK6J7Tlm5uoMk0tuYSoFkcN4A9M2IrNrd oV0N2bptoloqxHsa3btGFWKbjohVj98Q9a9QTOlM= From: "stsp at users dot sourceforge.net" To: gdb-prs@sourceware.org Subject: [Bug breakpoints/22921] breakpoint in PLT corrupts function argument in $rcx Date: Sun, 12 Feb 2023 08:17:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: breakpoints X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: stsp at users dot sourceforge.net X-Bugzilla-Status: UNCONFIRMED 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=3D22921 --- Comment #6 from Stas Sergeev --- Thanks! Your test-case doesn't fail here though: +file tst2 +set breakpoint pending on +break apb_magic_func(void*, char const*, int, unsigned int)@plt Function "apb_magic_func(void*, char const*, int, unsigned int)@plt" not defined. Breakpoint 1 (apb_magic_func(void*, char const*, int, unsigned int)@plt) pending. +run This GDB supports auto-downloading debuginfo from the following URLs: https://debuginfod.ubuntu.com=20 Enable debuginfod for this session? (y or [n]) [answered N; input not from terminal] Debuginfod has been disabled. To make this setting permanent, add 'set debuginfod enabled off' to .gdbini= t. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". ALARM ALARM Breakpoint 1, 0x00007ffff7fbb0f0 in apb_magic_func(void*, char const*, int, unsigned int)@plt () from ./libapb.so +shell sleep 1 +continue ALARM PASSED I run "make debug", is this how its supposed to run? --=20 You are receiving this mail because: You are on the CC list for the bug.=