[Tech] Gnu Debugger

Massimiliano Masi max@mascanc.net
Mar 12 Giu 2001 12:26:38 CEST


Salve !!!

Ho un problema con gdb.

Sia rpm che compilato correttamente, mi da' questo errore:

max@felicidade:~/NEUMA/Cryppy-0.0.1 > /usr/local/bin/gdb crypt
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) b main
Breakpoint 1 at 0x80488a0: file crypt.c, line 11.
(gdb) ru
Starting program: /home/max/NEUMA/Cryppy-0.0.1/crypt

Breakpoint 1, main (argc=134514848, argv=0x1) at crypt.c:11
11      {
(gdb) s
0x80491c4 in __bb_init_func (blocks=0x804b3d4) at ../../gcc/libgcc2.c:1980
1980    ../../gcc/libgcc2.c: No such file or directory.
(gdb)

e il file crypt contiene semplicemente:

#include <stdio.h>


int main(int argc, char *argv[])
{
  printf("Dimmi la password: ");
}

Come mai???

Lo compilo con

gcc -a -g crypt.c -o crypt

ciao ciao

-- 
Massimiliano Masi - <max@mascanc.net> - ICQ# 92905138

... Anger is a gift - http://www.mascanc.net/~max




Maggiori informazioni sulla lista flug-tech