public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug breakpoints/10113] New: do not stop on function
@ 2009-04-29 11:38 dushistov at mail dot ru
  2009-04-29 11:49 ` [Bug breakpoints/10113] " pedro at codesourcery dot com
  0 siblings, 1 reply; 2+ messages in thread
From: dushistov at mail dot ru @ 2009-04-29 11:38 UTC (permalink / raw)
  To: gdb-prs

here simple example:

#include <stdio.h>

void f(int gwk, double gsec)
{
        while (gsec < 0.0) {
                gwk--;
                gsec += 604800.0;
        }
        while (gsec >= 604800.0) {
                gwk++;
                gsec -= 604800.0;
        }

        printf("done\n");
}

int main()
{
        f(1322, 555198.9375);
        return 0;
}
-------------------------------------

gcc -ggdb -Wall test.c -o test_gdb && gdb test_gdb
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) br f
Breakpoint 1 at 0x80483f8: file test.c, line 6.
(gdb) r
Starting program: /var/tmp/test_gdb 
f was called

Program exited normally.
(gdb) 

As you can see function "f" was called, but gdb do not stop on it,

-- 
           Summary: do not stop on function
           Product: gdb
           Version: 6.8
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: breakpoints
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: dushistov at mail dot ru
                CC: gdb-prs at sourceware dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=10113

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug breakpoints/10113] do not stop on function
  2009-04-29 11:38 [Bug breakpoints/10113] New: do not stop on function dushistov at mail dot ru
@ 2009-04-29 11:49 ` pedro at codesourcery dot com
  0 siblings, 0 replies; 2+ messages in thread
From: pedro at codesourcery dot com @ 2009-04-29 11:49 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From pedro at codesourcery dot com  2009-04-29 11:49 -------


*** This bug has been marked as a duplicate of 10112 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://sourceware.org/bugzilla/show_bug.cgi?id=10113

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-29 11:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-29 11:38 [Bug breakpoints/10113] New: do not stop on function dushistov at mail dot ru
2009-04-29 11:49 ` [Bug breakpoints/10113] " pedro at codesourcery 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).