public inbox for frysk-bugzilla@sourceware.org
help / color / mirror / Atom feed
From: "hunt at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: frysk-bugzilla@sourceware.org
Subject: [Bug general/6514] New: Stepping engine is broken
Date: Tue, 13 May 2008 16:16:00 -0000	[thread overview]
Message-ID: <20080513161541.6514.hunt@redhat.com> (raw)

> fhpd p
[0.0] Loaded executable file: /home/hunt/test/p
(fhpd) b main
breakpoint 0 deferred
(fhpd) r
running with this commmand:  /home/hunt/test/p
Attached to process 8605
Running process 8605
(fhpd) Breakpoint 0 main 0x400557
list
[0.0]
     1   #include<stdio.h>
     2   #include<string.h>
     3   
     4   int main(int argc, char *argv[])
     5   {
->   6     char *twofifty = "250";
     7     int j250;
     8     int i250 = atoi(twofifty);
     9     
    10     if ((j250 = atoi(twofifty)) != i250)
    11       {
    12         printf("fubar!\n");
    13         return (1);
    14       }
    15     printf("%s = %d = %d\n", twofifty, i250, j250);
    16     return(0);
    17   }
(fhpd) n
Task stopped at line 8 in file /home/hunt/test/p.c
(fhpd) n
Task stopped at line 8 in file /home/hunt/test/p.c
(fhpd) n
Task stopped at line 10 in file /home/hunt/test/p.c
(fhpd) n
Task stopped at line 10 in file /home/hunt/test/p.c
(fhpd) n
Task stopped at line 10 in file /home/hunt/test/p.c
(fhpd) n
Task stopped at line 15 in file /home/hunt/test/p.c
(fhpd) n
250 = 250 = 250
Task stopped at line 16 in file /home/hunt/test/p.c

-----
Rerun and use "s" step into gives different (also wrong) results

(fhpd) Breakpoint 0 main 0x400557

(fhpd) s
Task stopped at line 8 in file /home/hunt/test/p.c
(fhpd) s
Task stopped at line 8 in file /home/hunt/test/p.c
(fhpd) s
Task stopped at line 10 in file /home/hunt/test/p.c
(fhpd) s
Task stopped at line 10 in file /home/hunt/test/p.c
(fhpd) s
Task stopped at line 15 in file /home/hunt/test/p.c
(fhpd) s
250 = 250 = 250
Task stopped at line 16 in file /home/hunt/test/p.c

-- 
           Summary: Stepping engine is broken
           Product: frysk
           Version: unspecified
            Status: NEW
          Severity: critical
          Priority: P1
         Component: general
        AssignedTo: frysk-bugzilla at sourceware dot org
        ReportedBy: hunt at redhat dot com


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

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


             reply	other threads:[~2008-05-13 16:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-13 16:16 hunt at redhat dot com [this message]
2008-05-27 16:24 ` [Bug general/6514] " cagney at redhat dot com
2008-05-27 16:36 ` cagney at redhat dot com

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=20080513161541.6514.hunt@redhat.com \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=frysk-bugzilla@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: link
Be 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).