public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/29921] New: GDB steps into printf() when including "cstdio"
@ 2022-12-20 10:39 abdulrahman.mahmoud75 at gmail dot com
2022-12-20 13:55 ` [Bug gdb/29921] " tromey at sourceware dot org
2022-12-21 12:01 ` abdulrahman.mahmoud75 at gmail dot com
0 siblings, 2 replies; 3+ messages in thread
From: abdulrahman.mahmoud75 at gmail dot com @ 2022-12-20 10:39 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29921
Bug ID: 29921
Summary: GDB steps into printf() when including "cstdio"
Product: gdb
Version: 7.10
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: abdulrahman.mahmoud75 at gmail dot com
Target Milestone: ---
I have noticed that gdb is now able to step into printf function when including
cstdio starting gdb-7.10.
Here is my small app:
#include <cstdio>
int main()
{
printf("test\n");
return 0;
}
when using GDB-7.10 to step in printf the normal behavior that it should stop
at the return line but instead it stops inside the printf function:
"printf (__format=0x409050 "test\n")
at
e:/win64-assert/modeltech/gcc-7.4.0-mingw64vc16/x86_64-w64-mingw32/include/stdio.h:351
351 __builtin_va_list __local_argv; __builtin_va_start( __local_argv,
__format );"
This behavior happens only on Windows.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug gdb/29921] GDB steps into printf() when including "cstdio"
2022-12-20 10:39 [Bug gdb/29921] New: GDB steps into printf() when including "cstdio" abdulrahman.mahmoud75 at gmail dot com
@ 2022-12-20 13:55 ` tromey at sourceware dot org
2022-12-21 12:01 ` abdulrahman.mahmoud75 at gmail dot com
1 sibling, 0 replies; 3+ messages in thread
From: tromey at sourceware dot org @ 2022-12-20 13:55 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29921
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at sourceware dot org
--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
Probably this is not a gdb bug, but rather something to do with
mingw. For example if printf is an inline function then this
could happen. Can you check that?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug gdb/29921] GDB steps into printf() when including "cstdio"
2022-12-20 10:39 [Bug gdb/29921] New: GDB steps into printf() when including "cstdio" abdulrahman.mahmoud75 at gmail dot com
2022-12-20 13:55 ` [Bug gdb/29921] " tromey at sourceware dot org
@ 2022-12-21 12:01 ` abdulrahman.mahmoud75 at gmail dot com
1 sibling, 0 replies; 3+ messages in thread
From: abdulrahman.mahmoud75 at gmail dot com @ 2022-12-21 12:01 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29921
abdulrahman mahmoud <abdulrahman.mahmoud75 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |NOTABUG
--- Comment #2 from abdulrahman mahmoud <abdulrahman.mahmoud75 at gmail dot com> ---
Checking further the mingw headers have a definition for the printf which call
mingw version of printf.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-12-21 12:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-20 10:39 [Bug gdb/29921] New: GDB steps into printf() when including "cstdio" abdulrahman.mahmoud75 at gmail dot com
2022-12-20 13:55 ` [Bug gdb/29921] " tromey at sourceware dot org
2022-12-21 12:01 ` abdulrahman.mahmoud75 at gmail dot com
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).