Hi, Bug 13392 is caused by incorrect JMP instruction when offset exceeds integer limit. This patch is to check the offset first to see if it is still within the integer range. Return error if offset exceeds. The changes to test cases is a little mechanical, simply remove kfail, and check the error messages of downloading tracepoints. The test result changes like this, -KFAIL: gdb.trace/change-loc.exp: 1 ftrace: continue to marker 2 (PRMS: gdb/13392) -PASS: gdb.trace/change-loc.exp: 2 ftrace: tstart -KFAIL: gdb.trace/change-loc.exp: 2 ftrace: continue to marker 1 (PRMS: gdb/13392) -PASS: gdb.trace/pending.exp: ftrace works: start trace experiment -KFAIL: gdb.trace/pending.exp: ftrace works: continue to marker (PRMS: gdb/13392) -KFAIL: gdb.trace/pending.exp: ftrace resolved_in_trace: continue to marker 2 (PRMS: gdb/13392) -KFAIL: gdb.trace/pending.exp: ftrace action_resolved: continue to marker 2 (PRMS: gdb/13392) -KFAIL: gdb.trace/pending.exp: ftrace installed_in_trace: continue to marker 2 (PRMS: gdb/13392) Tested on x86_64-linux, OK to apply? -- Yao (齐尧)