Fri Aug 25 12:11:21 2000 David Taylor <taylor@texas.cygnus.com>

* symtab.c (search_symbols): Fix off by one error in index for
 	initializing variables ourtype, ourtype2, ourtype3, and ourtype4.
	(symtab_symbol_info): fix similar off by one error.

Fri Aug 25 12:03:15 2000  David Taylor  <taylor@texas.cygnus.com>

	* gdbarch.sh (TARGET_ADDR_BIT): New macro for the number
	of bits in gdb's representation of a target address.
	* gdbarch.c, gdbarch.h: Regenerated.
	* gdbtypes.c (build_gdbtypes): Use TARGET_ADDR_BIT instead of
 	TARGET_PTR_BIT when initializing builtin_type_CORE_ADDR.
	* printcmd.c (print_address_numeric): Use TARGET_ADDR_BIT instead
 	of TARGET_PTR_BIT, because we're printing an address, not a pointer.
This commit is contained in:
David Taylor
2000-08-25 20:51:19 +00:00
parent c13b1b775b
commit 52204a0b3a
7 changed files with 97 additions and 17 deletions

View File

@@ -3573,10 +3573,10 @@ search_symbols (regexp, kind, nfiles, files, matches)
if (kind < LABEL_NAMESPACE)
error ("must search on specific namespace");
ourtype = types[(int) (kind - LABEL_NAMESPACE)];
ourtype2 = types2[(int) (kind - LABEL_NAMESPACE)];
ourtype3 = types3[(int) (kind - LABEL_NAMESPACE)];
ourtype4 = types4[(int) (kind - LABEL_NAMESPACE)];
ourtype = types[(int) (kind - VARIABLES_NAMESPACE)];
ourtype2 = types2[(int) (kind - VARIABLES_NAMESPACE)];
ourtype3 = types3[(int) (kind - VARIABLES_NAMESPACE)];
ourtype4 = types4[(int) (kind - VARIABLES_NAMESPACE)];
sr = *matches = NULL;
tail = NULL;
@@ -3903,7 +3903,7 @@ symtab_symbol_info (char *regexp, namespace_enum kind, int from_tty)
printf_filtered (regexp
? "All %ss matching regular expression \"%s\":\n"
: "All defined %ss:\n",
classnames[(int) (kind - LABEL_NAMESPACE - 1)], regexp);
classnames[(int) (kind - VARIABLES_NAMESPACE)], regexp);
for (p = symbols; p != NULL; p = p->next)
{