This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

breakpoints/898: 'Until func' is brooken


>Number:         898
>Category:       breakpoints
>Synopsis:       'Until func' is brooken
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 20 09:58:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     ezannoni@redhat.com
>Release:        unknown-1.0
>Organization:
>Environment:

>Description:
Until <function>
doesn't work.
>How-To-Repeat:
static int x;

    int fun()
    {
        x = 1;
    }

    int main(int ac, char **av)
    {
        x = 3;
        fun();
        x = 3;
        return 0;
    }
(gdb) b main
[...]
(gdb) run
Breakpoint 1, main (ac=1, av=0xbffff964) at bug.c:10
    10          x = 3;
(gdb) until fun
    0x400329cb in __libc_start_main (main=0x80483b0 <main>, argc=1,
        argv=0xbffff964, init=0x8048274 <_init>, fini=0x804840c <_fini>,
        rtld_fini=0x4000ae60 <_dl_fini>, stack_end=0xbffff95c)
        at ../sysdeps/generic/libc-start.c:92
    92      ../sysdeps/generic/libc-start.c: No such file or directory.
    (gdb)

>Fix:
See discussion at:
http://sources.redhat.com/ml/gdb/2002-11/msg00144.html
>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]