X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Falpha-tdep.c;h=9e4a8d89f19a4511bae8793df0a45d3ba41236a0;hb=0ea5cda8612bd2233f7a2f9d1eba0b62c2e6c015;hp=e5b75d2471af64857725281025588b615ef44314;hpb=744a80590447619c1c58d7d6a6e780ae6bd29777;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/alpha-tdep.c b/gdb/alpha-tdep.c index e5b75d2471..9e4a8d89f1 100644 --- a/gdb/alpha-tdep.c +++ b/gdb/alpha-tdep.c @@ -1,6 +1,6 @@ /* Target-dependent code for the ALPHA architecture, for GDB, the GNU Debugger. - Copyright (C) 1993-2003, 2005-2012 Free Software Foundation, Inc. + Copyright (C) 1993-2014 Free Software Foundation, Inc. This file is part of GDB. @@ -31,7 +31,6 @@ #include "dis-asm.h" #include "symfile.h" #include "objfiles.h" -#include "gdb_string.h" #include "linespec.h" #include "regcache.h" #include "reggroups.h" @@ -517,7 +516,7 @@ alpha_extract_return_value (struct type *valtype, struct regcache *regcache, break; case 32: - regcache_cooked_read_signed (regcache, ALPHA_V0_REGNUM, &l); + regcache_cooked_read_unsigned (regcache, ALPHA_V0_REGNUM, &l); read_memory (l, valbuf, 32); break; @@ -1032,7 +1031,7 @@ static const struct frame_unwind alpha_sigtramp_frame_unwind = { /* Heuristic_proc_start may hunt through the text section for a long time across a 2400 baud serial line. Allows the user to limit this search. */ -static unsigned int heuristic_fence_post = 0; +static int heuristic_fence_post = 0; /* Attempt to locate the start of the function containing PC. We assume that the previous function ends with an about_to_return insn. Not foolproof by @@ -1059,7 +1058,7 @@ alpha_heuristic_proc_start (struct gdbarch *gdbarch, CORE_ADDR pc) if (func) return func; - if (heuristic_fence_post == UINT_MAX + if (heuristic_fence_post == -1 || fence < tdep->vm_min_address) fence = tdep->vm_min_address;