This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[RFA] symtab.c (search_symbols) -- fix off by one error


ChangeLog entry:

	* symtab.c (search_symbols): Fix off by one error in test for
	error.

Index: symtab.c
===================================================================
RCS file: /cvs/src/src/gdb/symtab.c,v
retrieving revision 1.28
diff -c -r1.28 symtab.c
*** symtab.c    2001/01/30 02:49:36     1.28
--- symtab.c    2001/02/19 20:55:43
***************
*** 2348,2354 ****
    struct symbol_search *tail;
    struct cleanup *old_chain = NULL;
  
!   if (kind < LABEL_NAMESPACE)
      error ("must search on specific namespace");
  
    ourtype = types[(int) (kind - VARIABLES_NAMESPACE)];
--- 2348,2354 ----
    struct symbol_search *tail;
    struct cleanup *old_chain = NULL;
  
!   if (kind < VARIABLES_NAMESPACE)
      error ("must search on specific namespace");
  
    ourtype = types[(int) (kind - VARIABLES_NAMESPACE)];


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]