This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb ChangeLog arm-linux-tdep.c arm-tdep.c ...
- From: uweigand at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 1 Apr 2011 11:57:03 -0000
- Subject: src/gdb ChangeLog arm-linux-tdep.c arm-tdep.c ...
CVSROOT: /cvs/src
Module name: src
Changes by: uweigand@sourceware.org 2011-04-01 11:57:03
Modified files:
gdb : ChangeLog arm-linux-tdep.c arm-tdep.c
arm-tdep.h
gdb/testsuite : ChangeLog
Added files:
gdb/testsuite/gdb.arch: thumb-singlestep.S thumb-singlestep.exp
Log message:
gdb/
* arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
* arm-tdep.c (arm_override_mode): New global.
(arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
execution mode heuristics.
(thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
second single-step breakpoint if needed, using
arm_insert_single_step_breakpoint.
(arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
ARM execution mode, do not call thumb_get_next_pc_raw.
(arm_get_next_pc): Encode execution mode in return value. Call
either arm_get_next_pc_raw or thumb_get_next_pc_raw.
(arm_insert_single_step_breakpoint): New function.
(arm_software_single_step): Call it.
* arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
argument to return execution mode of sigreturn target.
(arm_linux_syscall_next_pc): Use it.
(arm_linux_copy_svc): Update call.
(arm_linux_software_single_step): Call
arm_insert_single_step_breakpoint.
gdb/testsuite/
* gdb.arch/thumb-singlestep.S: New file.
* gdb.arch/thumb-singlestep.exp: Likewise.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.12887&r2=1.12888
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/arm-linux-tdep.c.diff?cvsroot=src&r1=1.84&r2=1.85
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/arm-tdep.c.diff?cvsroot=src&r1=1.339&r2=1.340
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/arm-tdep.h.diff?cvsroot=src&r1=1.49&r2=1.50
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.2655&r2=1.2656
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.arch/thumb-singlestep.S.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.arch/thumb-singlestep.exp.diff?cvsroot=src&r1=NONE&r2=1.1