[1107] in NetBSD-Development

home help back first fref pref prev next nref lref last post

gdb doesn't work on lola-granola

daemon@ATHENA.MIT.EDU (Salvatore Valente)
Sat Nov 4 05:47:58 1995

Date: Sat, 4 Nov 1995 05:47:17 -0500
To: netbsd-dev@MIT.EDU
From: Salvatore Valente <svalente@MIT.EDU>


The "next" command inside gdb seems to always cause some bad signal to
be sent to the running program.  Here is a screenshot that may
demonstrate the problem better:

  /tmp% cat > hello.c
  main ()
  {
  printf ("hello ");
  printf ("world!\n");
  }
  /tmp% gcc -g hello.c -o hello
  /tmp% gdb hello
  GDB is free software and you are welcome to 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.
  GDB 4.11 (i386-netbsd), Copyright 1993 Free Software Foundation, Inc...
  (gdb) break main
  Breakpoint 1 at 0x16e0: file hello.c, line 3.
  (gdb) run
  Starting program: /tmp/hello 
  Running /mit/svalente/.cshrc.
  Running svalente's .cshrc in non-interactive mode.
  
  Breakpoint 1, main () at hello.c:3
  3       printf ("hello ");
  (gdb) n
  
  Program received signal SIGSEGV (11), Segmentation fault
  0x10057c20 in mbtowc ()

By the way, this works fine on netbsd.dialup.

Have a nice day.
-Sal.

home help back first fref pref prev next nref lref last post