gdb: Fix left shift of negative value.
authorDominik Vogt <vogt@linux.vnet.ibm.com>
Tue, 17 Nov 2015 09:56:32 +0000 (10:56 +0100)
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Tue, 17 Nov 2015 09:56:32 +0000 (10:56 +0100)
commit66c6502d7a457057683f56fd6d606fd9b2da0655
tree522410682e2dd98ce2a28f630d98759eb41a1f34
parent146b80ff180c0490fa920c183d665f536f2a4b0b
gdb: Fix left shift of negative value.

This patch fixes all occurences of left-shifting negative constants in C cod
which is undefined by the C standard.

gdb/ChangeLog:

        * hppa-tdep.c (hppa_sign_extend, hppa_low_hppa_sign_extend)
        (prologue_inst_adjust_sp, hppa_frame_cache): Fix left shift of negative
        value.
        * dwarf2read.c (read_subrange_type): Likewise.
gdb/ChangeLog
gdb/dwarf2read.c
gdb/hppa-tdep.c