View previous topic :: View next topic |
Author |
Message |
assente Guru
Joined: 12 Apr 2004 Posts: 570 Location: Torino, italia, New Europe
|
Posted: Thu Apr 29, 2004 6:01 pm Post subject: Anjuta + gdb = ide debugger buggoso |
|
|
Mi piace molto Anjuta come ide, colora/suggerisce la sintassi, numera le righe,...
Ultimamente ho avuto la necessità di provare la funzionalità del debugger e mi pare che non funzioni tanto...
gdb sotto win funzia egregiamente con devc++ che però non c'è anche per Linux...
Code: |
#include <stdio.h>
int i=0;
int main(){
printf("dammi c: ");
scanf("%d",&i);
for(i=i; i<7;i++){
printf("ciao ( %d ) ",i);
}
}
|
Dopo la scanf, sempre passo-passo, il debugger mi liquida con:
Program exited with code 013
Quindi non c'è verso di farlo entrare dentro il ciclo?!
Qualche idea? o Qualche altra alternativa? |
|
Back to top |
|
|
FonderiaDigitale Veteran
Joined: 06 Nov 2003 Posts: 1710 Location: Rome, Italy
|
Posted: Thu Apr 29, 2004 7:33 pm Post subject: |
|
|
Code: | strace -o dump anjuta
tail -n30 dump |
_________________ Come disse un amico, i sistemisti sono un po' come gli artigiani per l'informatica
|
|
Back to top |
|
|
assente Guru
Joined: 12 Apr 2004 Posts: 570 Location: Torino, italia, New Europe
|
Posted: Thu Apr 29, 2004 8:20 pm Post subject: |
|
|
Mi pare normale, l'exit me lo da nella finestra di debug di Anjuta, come se gdb non volesse più continuare a fare l'esecuzione passo-passo
Code: |
ioctl(3, FIONREAD, [0]) = 0
gettimeofday({1083269957, 327482}, NULL) = 0
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, events=POLLIN|POL LPRI}, {fd=10, events=POLLIN}, {fd=12, events=POLLIN|POLLPRI}, {fd=13, event s=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POL LPRI}, {fd=16, events=POLLIN}, {fd=18, events=POLLIN}, {fd=20, events=POLLIN }], 11, 0) = 0
gettimeofday({1083269957, 327599}, NULL) = 0
ioctl(3, FIONREAD, [0]) = 0
gettimeofday({1083269957, 327683}, NULL) = 0
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, events=POLLIN|POL LPRI}, {fd=10, events=POLLIN}, {fd=12, events=POLLIN|POLLPRI}, {fd=13, event s=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POL LPRI}, {fd=16, events=POLLIN}, {fd=18, events=POLLIN}, {fd=20, events=POLLIN }], 11, 99) = 0
gettimeofday({1083269957, 427416}, NULL) = 0
ioctl(3, FIONREAD, [0]) = 0
gettimeofday({1083269957, 427522}, NULL) = 0
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, events=POLLIN|POL LPRI}, {fd=10, events=POLLIN}, {fd=12, events=POLLIN|POLLPRI}, {fd=13, event s=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POL LPRI}, {fd=16, events=POLLIN}, {fd=18, events=POLLIN}, {fd=20, events=POLLIN }], 11, 0) = 0
gettimeofday({1083269957, 427641}, NULL) = 0
ioctl(3, FIONREAD, [0]) = 0
gettimeofday({1083269957, 427792}, NULL) = 0
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, events=POLLIN|POL LPRI}, {fd=10, events=POLLIN}, {fd=12, events=POLLIN|POLLPRI}, {fd=13, event s=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POL LPRI}, {fd=16, events=POLLIN}, {fd=18, events=POLLIN}, {fd=20, events=POLLIN }], 11, 0) = 0
gettimeofday({1083269957, 427907}, NULL) = 0
write(3, "7\4\5\0~\5\200\3\212\1\200\3\0\0\1\0\0\0\0\0008\0\4\0\240"..., 800 ) = 800
ioctl(3, FIONREAD, [0]) = 0
gettimeofday({1083269957, 429978}, NULL) = 0
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, events=POLLIN|POL LPRI}, {fd=10, events=POLLIN}, {fd=12, events=POLLIN|POLLPRI}, {fd=13, event s=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POL LPRI}, {fd=16, events=POLLIN}, {fd=18, events=POLLIN}, {fd=20, events=POLLIN }], 11, 97) = 0
gettimeofday({1083269957, 527463}, NULL) = 0
ioctl(3, FIONREAD, [0]) = 0
gettimeofday({1083269957, 527567}, NULL) = 0
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, events=POLLIN|POL LPRI}, {fd=10, events=POLLIN}, {fd=12, events=POLLIN|POLLPRI}, {fd=13, event s=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POL LPRI}, {fd=16, events=POLLIN}, {fd=18, events=POLLIN}, {fd=20, events=POLLIN }], 11, 0) = 0
gettimeofday({1083269957, 527687}, NULL) = 0
ioctl(3, FIONREAD, [0]) = 0
gettimeofday({1083269957, 527768}, NULL) = 0
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, events=POLLIN|POL LPRI}, {fd=10, events=POLLIN}, {fd=12, events=POLLIN|POLLPRI}, {fd=13, event s=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POL LPRI}, {fd=16, events=POLLIN}, {fd=18, events=POLLIN}, {fd=20, events=POLLIN }], 11, 99) = -1 EINTR (Interrupted system call)
--- SIGINT (Interrupt) @ 0 (0) ---
+++ killed by SIGINT +++
|
|
|
Back to top |
|
|
FonderiaDigitale Veteran
Joined: 06 Nov 2003 Posts: 1710 Location: Rome, Italy
|
Posted: Thu Apr 29, 2004 8:27 pm Post subject: |
|
|
a me pare che venga killato da qualcosa, probabilmente il kernel...
non e' che stava mangiando troppe risorse e il kernel lo ha ucciso per prevenire un crash? _________________ Come disse un amico, i sistemisti sono un po' come gli artigiani per l'informatica
|
|
Back to top |
|
|
assente Guru
Joined: 12 Apr 2004 Posts: 570 Location: Torino, italia, New Europe
|
Posted: Thu Apr 29, 2004 8:34 pm Post subject: |
|
|
a dire la verità sono io ad ucciderlo
Anjuta non si blocca, ma se mando in esecuzione passo passo gdb (che è richiamato da Anjuta) non mi esegue tutto il codice |
|
Back to top |
|
|
FonderiaDigitale Veteran
Joined: 06 Nov 2003 Posts: 1710 Location: Rome, Italy
|
Posted: Thu Apr 29, 2004 8:52 pm Post subject: |
|
|
e allora dillo
che versione di entrambi usi? _________________ Come disse un amico, i sistemisti sono un po' come gli artigiani per l'informatica
|
|
Back to top |
|
|
assente Guru
Joined: 12 Apr 2004 Posts: 570 Location: Torino, italia, New Europe
|
Posted: Thu Apr 29, 2004 9:55 pm Post subject: |
|
|
Anjuta 1.22 e GNU gdb 6.1 succedeva anche con le precedenti |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|