mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-19 13:53:29 +08:00
2011-12-14 Pedro Alves <pedro@codesourcery.com>
* gdb.texinfo (Implementing a Remote Stub): Explain that you should transfer control to the stub in the startup code instead of in main. Mention the need to get past the initial breakpoint.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2011-12-14 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
|
* gdb.texinfo (Implementing a Remote Stub): Explain that you
|
||||||
|
should transfer control to the stub in the startup code instead of
|
||||||
|
in main. Mention the need to get past the initial breakpoint.
|
||||||
|
|
||||||
2011-12-06 Tom Tromey <tromey@redhat.com>
|
2011-12-06 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* gdb.texinfo (Set Breaks): Update for new behavior.
|
* gdb.texinfo (Set Breaks): Update for new behavior.
|
||||||
|
@ -17536,8 +17536,8 @@ subroutines:
|
|||||||
@findex set_debug_traps
|
@findex set_debug_traps
|
||||||
@cindex remote serial stub, initialization
|
@cindex remote serial stub, initialization
|
||||||
This routine arranges for @code{handle_exception} to run when your
|
This routine arranges for @code{handle_exception} to run when your
|
||||||
program stops. You must call this subroutine explicitly near the
|
program stops. You must call this subroutine explicitly in your
|
||||||
beginning of your program.
|
program's startup code.
|
||||||
|
|
||||||
@item handle_exception
|
@item handle_exception
|
||||||
@findex handle_exception
|
@findex handle_exception
|
||||||
@ -17683,13 +17683,22 @@ Make sure you have defined the supporting low-level routines
|
|||||||
@end display
|
@end display
|
||||||
|
|
||||||
@item
|
@item
|
||||||
Insert these lines near the top of your program:
|
Insert these lines in your program's startup code, before the main
|
||||||
|
procedure is called:
|
||||||
|
|
||||||
@smallexample
|
@smallexample
|
||||||
set_debug_traps();
|
set_debug_traps();
|
||||||
breakpoint();
|
breakpoint();
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
|
On some machines, when a breakpoint trap is raised, the hardware
|
||||||
|
automatically makes the PC point to the instruction after the
|
||||||
|
breakpoint. If your machine doesn't do that, you may need to adjust
|
||||||
|
@code{handle_exception} to arrange for it to return to the instruction
|
||||||
|
after the breakpoint on this first invocation, so that your program
|
||||||
|
doesn't keep hitting the initial breakpoint instead of making
|
||||||
|
progress.
|
||||||
|
|
||||||
@item
|
@item
|
||||||
For the 680x0 stub only, you need to provide a variable called
|
For the 680x0 stub only, you need to provide a variable called
|
||||||
@code{exceptionHook}. Normally you just use:
|
@code{exceptionHook}. Normally you just use:
|
||||||
|
Reference in New Issue
Block a user