From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10197 invoked by alias); 1 Dec 2013 19:40:11 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 10169 invoked by uid 48); 1 Dec 2013 19:40:11 -0000 From: "psmith at gnu dot org" To: gdb-prs@sourceware.org Subject: [Bug breakpoints/16280] New: Step into an inline function with varargs doesn't stop Date: Sun, 01 Dec 2013 19:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: breakpoints X-Bugzilla-Version: 7.6 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: psmith at gnu dot org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-q4/txt/msg00473.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=16280 Bug ID: 16280 Summary: Step into an inline function with varargs doesn't stop Product: gdb Version: 7.6 Status: NEW Severity: normal Priority: P2 Component: breakpoints Assignee: unassigned at sourceware dot org Reporter: psmith at gnu dot org Created attachment 7311 --> https://sourceware.org/bugzilla/attachment.cgi?id=7311&action=edit Repro case compressed tarball I am using GCC 4.8.1 and GDB 7.6.1 built with Python 2.7.6 on my GNU/Linux system. In a C++ inline function that uses va_list, if I try to step into that inline function it will not stop and just keep running. If I use "next" to skip over the function, that works properly. If I use "si" to step by instructions until I get into the inline function, then I can continue to use normal step/next commands and it works properly. I've also tried this with GCC 4.8.0 / GDB 7.6 / Python 2.7.5, with the same result. Attached is a tar file containing a repro case. Compile it like this: gcc -g -o step main.cpp Step.cpp Now debugging: $ gdb ./step GNU gdb (GDB) 7.6.1 ... Reading symbols from ./step...done. (gdb) l 1 #include "Step.h" 2 3 int main(int argc, const char** argv) 4 { 5 Step step; 6 step.show("hi %s\n", "there"); 7 return 0; 8 } (gdb) br 6 Breakpoint 1 at 0x4006ff: file main.cpp, line 6. (gdb) run Starting program: ./step Breakpoint 1, main (argc=1, argv=0x7fffffffe638) at main.cpp:6 6 step.show("hi %s\n", "there"); (gdb) step hi there [Inferior 1 (process 24724) exited normally] -- You are receiving this mail because: You are on the CC list for the bug.