public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "pedro at codesourcery dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug breakpoints/10112] do not stop on function Date: Wed, 29 Apr 2009 12:06:00 -0000 [thread overview] Message-ID: <20090429120610.919.qmail@sourceware.org> (raw) In-Reply-To: <20090429113846.10112.dushistov@mail.ru> ------- Additional Comments From pedro at codesourcery dot com 2009-04-29 12:06 ------- Subject: Re: do not stop on function On Wednesday 29 April 2009 12:54:50, dushistov at mail dot ru wrote: > (gdb) info breakpoints > Num Type Disp Enb Address What > 1 breakpoint keep y 0x080483f8 in f at test.c:6 > > (gdb) li f > 1 #include <stdio.h> > 2 > 3 void f(int gwk, double gsec) > 4 { > 5 while (gsec < 0.0) { > 6 gwk--; > > > so as you can see I put breakpoin of "f", but gdb put breakpoint > into while loop, and never happened, because of this example gsec >= 0 Ah, from your original post, I interpreted line 6 as the `while' line... > here simple example: > <<< line 1 > #include <stdio.h> Anyway, this is likely to be a debug info problem. What's your gcc version? I just tried this with gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu3), and gdb 6.8, and it works correctly here: (gdb) b f Breakpoint 1 at 0x4004a8: file pr.c, line 5. (gdb) r Starting program: /home/pedro/test_gdb Breakpoint 1, f (gwk=1322, gsec=555198.9375) at pr.c:5 5 while (gsec < 0.0) { (gdb) Also, please try a recent GDB snapshot. I believe a couple of related issues have been addressed since gdb 6.8 was out. -- http://sourceware.org/bugzilla/show_bug.cgi?id=10112 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
next prev parent reply other threads:[~2009-04-29 12:06 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-04-29 11:38 [Bug breakpoints/10112] New: " dushistov at mail dot ru 2009-04-29 11:48 ` [Bug breakpoints/10112] " pedro at codesourcery dot com 2009-04-29 11:49 ` pedro at codesourcery dot com 2009-04-29 11:54 ` dushistov at mail dot ru 2009-04-29 12:06 ` pedro at codesourcery dot com [this message] 2009-04-29 12:09 ` dushistov at mail dot ru 2009-10-21 18:02 ` dushistov at mail dot ru 2009-10-21 19:27 ` ppluzhnikov at google dot com 2009-10-22 17:13 ` dushistov at mail dot ru 2009-10-22 17:16 ` dushistov at mail dot ru 2009-10-22 17:47 ` ppluzhnikov at google dot com 2010-08-14 2:49 ` pedro at codesourcery dot com [not found] <bug-10112-4717@http.sourceware.org/bugzilla/> 2011-05-23 13:12 ` dushistov at mail dot ru
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=20090429120610.919.qmail@sourceware.org \ --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: linkBe 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).