* gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
This commit is contained in:
parent
da2d6d3da4
commit
659c9f3a0f
|
@ -1,3 +1,7 @@
|
||||||
|
2012-06-28 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
|
* gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
|
||||||
|
|
||||||
2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
|
2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
* common/buffer.c: Include inttypes.h and stdint.h.
|
* common/buffer.c: Include inttypes.h and stdint.h.
|
||||||
|
|
|
@ -1140,15 +1140,15 @@ lookup_typename (const struct language_defn *language,
|
||||||
const struct block *block, int noerr)
|
const struct block *block, int noerr)
|
||||||
{
|
{
|
||||||
struct symbol *sym;
|
struct symbol *sym;
|
||||||
struct type *tmp;
|
struct type *type;
|
||||||
|
|
||||||
sym = lookup_symbol (name, block, VAR_DOMAIN, 0);
|
sym = lookup_symbol (name, block, VAR_DOMAIN, 0);
|
||||||
if (sym != NULL && SYMBOL_CLASS (sym) == LOC_TYPEDEF)
|
if (sym != NULL && SYMBOL_CLASS (sym) == LOC_TYPEDEF)
|
||||||
return SYMBOL_TYPE (sym);
|
return SYMBOL_TYPE (sym);
|
||||||
|
|
||||||
tmp = language_lookup_primitive_type_by_name (language, gdbarch, name);
|
type = language_lookup_primitive_type_by_name (language, gdbarch, name);
|
||||||
if (tmp)
|
if (type)
|
||||||
return tmp;
|
return type;
|
||||||
|
|
||||||
if (noerr)
|
if (noerr)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue