[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | Digital Ladebug debugger |
|
Moderator: | TLE::LUCIA |
|
Created: | Fri Feb 28 1992 |
Last Modified: | Fri Jun 06 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 969 |
Total number of notes: | 3959 |
901.0. "hung on unix 4.0b" by MLNCSC::VOCI () Thu Mar 27 1997 10:56
Hello,
on Digital Unix 4.0, the following program hungs when input is
required.
I see the output "Dammi il numero:", at the next step dxladebug hangs,
I can telnet on the system with no problem, everything else works fine.
If I step through the program with dbx or ladebug (no GUI interface),
everything works fine.
I'm using CDE.
Steps to reproduce the problem:
- choose ladebug from the 'Application Manager - Developers_Toolkit'
- on the window 'Action: Ladebug' don't specify the name and click on
the OK button
- on the window 'Ladebug Debugger' open the 'File' menu and select 'Run
new program', specify the program name (EX: quadrato)
- when you step after the scanf command ladebug hungs
This is the output of 'ps x | grep debug':
7826 ?? I 0:01.61 dtterm -title Ladebug -e
/usr/dt/bin/dtexec -open 3 -ttprocid 3.nLdgD 01 2465 1342177279 1 0 200
16.192.80.55 3_112_1 /bin/sh -c if [ -f /usr/.smdb./OSFLDBGUI*.lk ];
then /usr/bin/X11/dxladebug ; else /usr/bin/show_uninstalled_info
/usr/doc/ladebug_uninstalled_info.txt "Ladebug Debugger";fi
7835 ttyp4 S + 0:00.03 grep debug
7822 ttype IW + 0:00.34 /usr/dt/bin/dtexec -open 3 -ttprocid
3.nLdgD 01 2465 1342177279 1 0 200 16.192.80.55 3_112_1 /bin/sh -c if [
-f /usr/.smdb./OSFLDBGUI*.lk ]; then /usr/bin/X11/dxladebug ; else
/usr/bin/show_uninstalled_info /usr/doc/ladebug_uninstalled_info.txt
"Ladebug Debugger";fi
7830 ttype S + 0:04.74 /usr/bin/X11/dxladebug
7831 ttype IW + 0:00.05 /bin/sh -c if [ -f
/usr/.smdb./OSFLDBGUI*.lk ]; then /usr/bin/X11/dxladebug ; else
/usr/bin/show_uninstalled_info /usr/doc/ladebug_uninstalled_info.txt
"Ladebug Debugger";fi
7836 ttype T 0:10.89 /usr/bin/ladebug -read_only prompt
-apiui /usr/users/gea/linguaggi/c/quadrato
There is no manual workaround than killing the processes.
The variable db_enable in the kernel is set to 0.
Example program:
#include <stdio.h>
#include <math.h>
main()
{
float a=0, b=0;
printf ("Dammi il numero: ");
scanf("%f", &a);
b=pow(a,2.F);
printf(" risultato: %f\n", b);
}
Any idea is wellcome!
Thanks,
Gea
T.R | Title | User | Personal Name | Date | Lines |
---|
901.1 | | PACKED::ALLEN | Christopher Allen, Ladebug, dtn 381-0864 | Thu Mar 27 1997 12:15 | 6 |
| Gea,
Use the -iow option with dxladebug. The debugger will pop up a separate window
in which you do your input and output.
-Chris
|