From f02f29e59e6090b0bd5df09432ea1a788b85a8e8 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Tue, 30 Aug 2005 20:50:47 +0000 Subject: [PATCH] Archos: Trap UserBrk in the gdb debugger git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7429 a1c6a512-1295-4272-9138-f99709370657 --- firmware/crt0.S | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/firmware/crt0.S b/firmware/crt0.S index 65577e02b9..4459f2eb15 100644 --- a/firmware/crt0.S +++ b/firmware/crt0.S @@ -360,6 +360,12 @@ vectors: mov.l @(r0,r2),r3 mov.l r3,@(r0,r1) + /* Move the UserBreak vector as well (12) */ + mov #12,r0 + shll2 r0 + mov.l @(r0,r2),r3 + mov.l r3,@(r0,r1) + /* Move the breakpoint trap vector (32) */ mov #32,r0 shll2 r0