6 ; © 1994-1998 Straylight
9 ;----- Licensing note -------------------------------------------------------
11 ; This file is part of Straylight's Sledgehammer debugger.
13 ; Sledgehammer is free software; you can redistribute it and/or modify
14 ; it under the terms of the GNU General Public License as published by
15 ; the Free Software Foundation; either version 2, or (at your option)
18 ; Sledgehammer is distributed in the hope that it will be useful,
19 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
20 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ; GNU General Public License for more details.
23 ; You should have received a copy of the GNU General Public License
24 ; along with Sledgehammer. If not, write to the Free Software Foundation,
25 ; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 ;----- Overview -------------------------------------------------------------
40 ; On entry: R0 == address to set breakpoint
42 ; On exit: May return error
44 ; Use: Sets a breakpoint at the given location, giving it the
45 ; current handle. The address is assumed to be word-aligned,
50 ; --- brkpt_hardBreak ---
52 ; On entry: [R13+4] == return address to stomp on
56 ; Use: Sets an immediate break specified by a SWI call.
58 IMPORT brkpt_hardBreak
60 ; --- brkpt_translate ---
62 ; On entry: R0 == address to translate
64 ; On exit: R0 == the address we are really interested in
66 ; Use: Returns the address given, as if there was no breakpoint
69 IMPORT brkpt_translate
71 ; --- brkpt_remove ---
73 ; On entry: R0 == address of breakpoint
77 ; Use: Removes the break point (if any) at the given address
81 ; --- brkpt_remAll ---
87 ; Use: Removes all the breakpoints currently installed.
93 ; On entry: R0 == address to test for
95 ; On exit: CC if there is no breakpoint here
98 ; Use: Informs the user if there is a breakpint at the address
103 ;----- That's all, folks ----------------------------------------------------