From: Anthony Green Date: Thu, 4 Feb 2010 22:34:07 +0000 (+0000) Subject: Fix prolog analyzer X-Git-Tag: gdb_7_1-2010-02-18-branchpoint~193 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ee73e90d5ecee797674069eec1023257c667449;p=platform%2Fupstream%2Fbinutils.git Fix prolog analyzer --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2b05b9b..1248c2d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-02-04 Anthony Green + + * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis + gracefully. + 2010-02-04 Tom Tromey * valops.c (search_struct_field): Account for diff --git a/gdb/moxie-tdep.c b/gdb/moxie-tdep.c index 548f61b..feeb8ff 100644 --- a/gdb/moxie-tdep.c +++ b/gdb/moxie-tdep.c @@ -174,6 +174,8 @@ moxie_analyze_prologue (CORE_ADDR start_addr, CORE_ADDR end_addr, cache->saved_regs[regnum] = cache->framesize; next_addr += 2; } + else + break; } inst = read_memory_unsigned_integer (next_addr, 2, byte_order);