mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-18 08:29:30 +00:00
* findvar.c (locate_var_value): Do not call get_frame_arch
with a NULL frame argument.
This commit is contained in:
parent
029a67e44a
commit
5045add04b
@ -1,3 +1,8 @@
|
||||
2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
|
||||
|
||||
* findvar.c (locate_var_value): Do not call get_frame_arch
|
||||
with a NULL frame argument.
|
||||
|
||||
2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
|
||||
|
||||
* frame.h (frame_map_regnum_to_name): Remove prototype.
|
||||
|
@ -660,7 +660,7 @@ address_from_register (struct type *type, int regnum, struct frame_info *frame)
|
||||
struct value *
|
||||
locate_var_value (struct symbol *var, struct frame_info *frame)
|
||||
{
|
||||
struct gdbarch *gdbarch = get_frame_arch (frame);
|
||||
struct gdbarch *gdbarch;
|
||||
CORE_ADDR addr = 0;
|
||||
struct type *type = SYMBOL_TYPE (var);
|
||||
struct value *lazy_value;
|
||||
@ -686,6 +686,8 @@ locate_var_value (struct symbol *var, struct frame_info *frame)
|
||||
switch (VALUE_LVAL (lazy_value))
|
||||
{
|
||||
case lval_register:
|
||||
gdb_assert (frame);
|
||||
gdbarch = get_frame_arch (frame);
|
||||
gdb_assert (gdbarch_register_name
|
||||
(gdbarch, VALUE_REGNUM (lazy_value)) != NULL
|
||||
&& *gdbarch_register_name
|
||||
|
Loading…
x
Reference in New Issue
Block a user