home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!chsun!zurich!kor
- From: kor@zurich.spectrospin.ch (Reto Koradi)
- Newsgroups: comp.sys.sgi
- Subject: dbx problem with 4.0.4
- Keywords: dbx
- Message-ID: <170@zurich.spectrospin.ch>
- Date: 23 Jul 92 08:38:23 GMT
- Organization: Spectrospin AG, Fallanden Switzerland
- Lines: 67
-
- I have a problem with dbx that I seem to have since I upgraded my
- PI 4D/35 to IRIX 4.0.4. When I give the 'next' or 'step' command in
- dbx, it ofthen displays the line with the opening brace of the function.
- Another 'next' brings me back to the original line, another one to
- the next line.
-
- The following program 'tt.c' illustrates the problem:
-
- int f(k)
- int k;
- {
- return k + 1;
- }
-
- main ()
- {
- int i = 5;
- i = f(i);
- return 0;
- }
-
- I compile it and start the debugger:
-
- > cc -o tt -g tt.c
- > dbx tt
-
- The debugging session looks like this:
-
- dbx version 2.40 3/7/92 1:12
- Type 'help' for help.
- Reading symbolic information of `tt' . . .
- main:9 9 int i = 5;
- (dbx) stop in main
- Process 0: [2] stop in main
- (dbx) run
- Process 4440 (tt) started
- [2] Process 4440 (tt) stopped at [main:9 ,0x400220]
- 9 int i = 5;
- (dbx) next
- Process 4440 (tt) stopped at [main:10 ,0x400228]
- 10 i = f(i);
- (dbx) next
- Process 4440 (tt) stopped at [main:8? ,0x40022c]
- 8 {
- (dbx) next
- Process 4440 (tt) stopped at [main:10 +0x8,0x400230]
- 10 i = f(i);
- (dbx) next
- Process 4440 (tt) stopped at [main:11 ,0x40023c]
- 11 return 0;
- (dbx) quit
-
- Does anybody have any clue? Fixed in 4.0.5???
-
- Please reply by e-mail, I'm on vacation next week.
-
- Thanks
- Reto
-
- ***************************************************************************
- * _ _ * Industriestr. 26 * We had some good machines, *
- * / */ \ * CH-8117 Faellanden * but they don't work no more. *
- * \ /\ / * * I loved you once, *
- * SPECTROSPIN * Reto Koradi * don't love you anymore. *
- * / \/ \ * phone: 01 825 94 77 * *
- * \_*\_/ * e-mail: kor@spectrospin.ch * (Shriekback: Faded Flowers) *
- ***************************************************************************
-