old-cross-binutils/gdb/testsuite/gdb.trace
Robert O'Callahan bcf5c1d96b PR18617 - Incorrect expression bytecode generated for narrowing conversions
The existing code preserves 'from' bits, which is incorrect.  E.g.

 (gdb) maint agent-eval (char)255L
 Scope: 0x4008d6
 Reg mask: 00
   0  const16 255
   3  ext 64
   5  end

'ext 64' should be 'ext 8'; this bytecode evaluates to 255 instead of
the correct result of -1.  The fix is simple.  I ran the entire test
suite on x86-64 and there were no new test failures.

gdb/ChangeLog:
2015-07-08  Robert O'Callahan  <robert@ocallahan.org>

	PR exp/18617
	* ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.

gdb/testsuite/ChangeLog:
2015-07-08  Robert O'Callahan  <robert@ocallahan.org>

	PR exp/18617
	* gdb.trace/ax.exp: Add test.
2015-07-08 10:53:36 +01:00
..
actions-changed.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
actions-changed.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
actions.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
actions.exp Fix gdb.trace/{actions,infotrace,while-stepping}.exp with extended-remote 2015-04-08 10:39:43 +01:00
ax.exp PR18617 - Incorrect expression bytecode generated for narrowing conversions 2015-07-08 10:53:36 +01:00
backtrace.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
change-loc-1.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
change-loc-2.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
change-loc.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
change-loc.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
change-loc.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
circ.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
circ.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
collection.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
collection.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
deltrace.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
disconnected-tracing.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
disconnected-tracing.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
entry-values.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
entry-values.exp Require numeric attributes to specify the form. 2015-01-11 15:45:43 -08:00
ftrace.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
ftrace.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
infotrace.exp Fix gdb.trace/{actions,infotrace,while-stepping}.exp with extended-remote 2015-04-08 10:39:43 +01:00
Makefile.in gdbserver: Fix crash when QTinit is handled with no inferior process attached 2015-02-10 13:49:41 -05:00
mi-trace-frame-collected.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-trace-unavailable.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-traceframe-changed.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-tracepoint-changed.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-tsv-changed.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
no-attach-trace.c gdbserver: Fix crash when QTinit is handled with no inferior process attached 2015-02-10 13:49:41 -05:00
no-attach-trace.exp Fix no-attach-trace.exp with "target remote" / gdbserver 2015-02-20 19:50:36 +00:00
packetlen.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
passc-dyn.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
passcount.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
pending.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
pending.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
pendshr1.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
pendshr2.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
pr16508.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
qtro.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
qtro.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
range-stepping.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
range-stepping.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
read-memory.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
read-memory.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
report.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
save-trace.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
stap-trace.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
stap-trace.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
status-stop.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
status-stop.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
strace.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
strace.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tfile.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tfile.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tfind.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
trace-break.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
trace-break.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
trace-buffer-size.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
trace-buffer-size.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
trace-mt.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
trace-mt.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
trace-unavailable.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tracecmd.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tspeed.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tspeed.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tstatus.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tsv.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
unavailable-dwarf-piece.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
unavailable-dwarf-piece.exp Require numeric attributes to specify the form. 2015-01-11 15:45:43 -08:00
unavailable.cc Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
unavailable.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
while-dyn.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
while-stepping.exp Fix gdb.trace/{actions,infotrace,while-stepping}.exp with extended-remote 2015-04-08 10:39:43 +01:00