Fix bug in nios2 prologue analysis.
authorSandra Loosemore <sandra@codesourcery.com>
Fri, 23 Aug 2019 15:18:54 +0000 (08:18 -0700)
committerSandra Loosemore <sandra@codesourcery.com>
Fri, 23 Aug 2019 15:18:54 +0000 (08:18 -0700)
commitde8af80891ff0eee61cd219b316e176e9ae88e91
tree86e11f1ea91c9ef4a6228c42c3b9db0b4972d505
parent09f7b0de537d465fc8ed9f9433e348c1bc78aab2
Fix bug in nios2 prologue analysis.

The nios2 prologue analyzer was mistakenly using an unsigned int field
to represent a 32-bit signed value.  This caused problems with an
incorrect conversion being applied to negative values when they were
automatically promoted for addition to a 64-bit CORE_ADDR value.

This patch fixes test failures in gdb.base/large-frame.exp and
gdb.dwarf2/dw2-ref-missing-frame.exp.  Normally the nios2 backend
prefers to use the dwarf2 unwinder so the prologue analyzer is only
invoked if there is no dwarf2 information.

2019-08-23  Sandra Loosemore  <sandra@codesourcery.com>

gdb/
* nios2-tdep.c (struct reg_value): Improve comments.  Make
the offset field signed.
gdb/ChangeLog
gdb/nios2-tdep.c
This page took 0.025891 seconds and 4 git commands to generate.