* win32-nat.c (safe_symbol_file_add_stub): Properly initialize linked list
authorChristopher Faylor <me+cygwin@cgf.cx>
Sat, 13 Oct 2001 01:20:29 +0000 (01:20 +0000)
committerChristopher Faylor <me+cygwin@cgf.cx>
Sat, 13 Oct 2001 01:20:29 +0000 (01:20 +0000)
pointer to beginning rather than one beyond beginning.

gdb/ChangeLog
gdb/win32-nat.c
gdb/windows-nat.c

index d06c21625fd245038b8c5aa345ef788101f447a8..4c49f85cb3b5c867ce17c54f9fced6db36d4153f 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-12  Christopher Faylor  <cgf@redhat.com>
+
+       * win32-nat.c (safe_symbol_file_add_stub): Properly initialize linked
+       list pointer to beginning rather than one beyond beginning.
+
 2001-10-12  Daniel Jacobowitz  <drow@mvista.com>
 
        * symtab.h (struct block): (ALL_BLOCK_SYMBOLS): New macro.
index 82d4c9466080b270116e803059912b6a9f65b923..00c9933e70ed3bbc4e0ffdccb830b73b2271aea2 100644 (file)
@@ -450,7 +450,7 @@ static int
 safe_symbol_file_add_stub (void *argv)
 {
 #define p ((struct safe_symbol_file_add_args *)argv)
-  struct so_stuff *so = solib_start.next;
+  struct so_stuff *so = &solib_start;
 
   while ((so = so->next))
     if (strcasecmp (so->name, p->name) == 0)
index 82d4c9466080b270116e803059912b6a9f65b923..00c9933e70ed3bbc4e0ffdccb830b73b2271aea2 100644 (file)
@@ -450,7 +450,7 @@ static int
 safe_symbol_file_add_stub (void *argv)
 {
 #define p ((struct safe_symbol_file_add_args *)argv)
-  struct so_stuff *so = solib_start.next;
+  struct so_stuff *so = &solib_start;
 
   while ((so = so->next))
     if (strcasecmp (so->name, p->name) == 0)
This page took 0.030366 seconds and 4 git commands to generate.