From fefd0a378f5aff09fb63003bc2a6bb2e2d66ffee Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 13 Oct 2001 01:20:29 +0000 Subject: * win32-nat.c (safe_symbol_file_add_stub): Properly initialize linked list pointer to beginning rather than one beyond beginning. --- gdb/ChangeLog | 5 +++++ gdb/win32-nat.c | 2 +- gdb/windows-nat.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) (limited to 'gdb') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d06c216..4c49f85 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-10-12 Christopher Faylor + + * 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 * symtab.h (struct block): (ALL_BLOCK_SYMBOLS): New macro. diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c index 82d4c94..00c9933 100644 --- a/gdb/win32-nat.c +++ b/gdb/win32-nat.c @@ -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) diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 82d4c94..00c9933 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -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) -- cgit v1.1