2012-03-08 Luis Machado <lgustavo@codesourcery.com>
* ax-gdb.c (gen_fetch): Fail gracefully and use error instead of internal error for unknown/unsupported types.
This commit is contained in:
parent
4bb99ac688
commit
52323be946
|
@ -1,3 +1,8 @@
|
||||||
|
2012-03-08 Luis Machado <lgustavo@codesourcery.com>
|
||||||
|
|
||||||
|
* ax-gdb.c (gen_fetch): Fail gracefully and use error instead
|
||||||
|
of internal error for unknown/unsupported types.
|
||||||
|
|
||||||
2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
|
2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
Fix CU relative vs. absolute DIE offsets.
|
Fix CU relative vs. absolute DIE offsets.
|
||||||
|
|
11
gdb/ax-gdb.c
11
gdb/ax-gdb.c
|
@ -553,12 +553,11 @@ gen_fetch (struct agent_expr *ax, struct type *type)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
/* Either our caller shouldn't have asked us to dereference that
|
/* Our caller requested us to dereference a pointer from an unsupported
|
||||||
pointer (other code's fault), or we're not implementing
|
type. Error out and give callers a chance to handle the failure
|
||||||
something we should be (this code's fault). In any case,
|
gracefully. */
|
||||||
it's a bug the user shouldn't see. */
|
error (_("gen_fetch: Unsupported type code `%s'."),
|
||||||
internal_error (__FILE__, __LINE__,
|
TYPE_NAME (type));
|
||||||
_("gen_fetch: bad type code"));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue