diff options
author | Kevin Buettner <kevinb@redhat.com> | 2002-08-16 23:54:19 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2002-08-16 23:54:19 +0000 |
commit | f0c684703a67aff96b180ac92a21255d87324736 (patch) | |
tree | 24755100e2603b53c068dc2b55fd83795b1a019a | |
parent | cbae343b285335085737afcd194cfb76ef3da902 (diff) | |
download | gdb-f0c684703a67aff96b180ac92a21255d87324736.tar.gz |
* i386-tdep.c (get_longjmp_target): Dynamically allocate ``buf''.
-rw-r--r-- | gdb/i386-tdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index b2ddd280675..b8265049f3c 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -858,7 +858,7 @@ i386_pop_frame (void) int get_longjmp_target (CORE_ADDR *pc) { - char buf[TARGET_PTR_BIT / TARGET_CHAR_BIT]; + char *buf = alloca (TARGET_PTR_BIT / TARGET_CHAR_BIT); CORE_ADDR sp, jb_addr; sp = read_register (SP_REGNUM); |