This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: m68k remote stub


There's no serious problem - just check your tm-*.h file in GDB
source tree (think it is 'tm-monitor.h') for 'DECR_PC_AFTER_BREAK' macro.
In you case there should be

#define DECR_PC_AFTER_BREAK 2

On Wed, 22 Apr 1998, Raul Hernandez wrote:

> 	Every time that gdb sends a trap #1 and remote program stops,
> the PC is a memory position advanced. 
> 
> 	I can fix it in the remote stub substracting two to the saved
> PC. It works fine when executing steps and nexts, but after the 
> breakpoints gdb in the next instruction send again trap #1. 
>  A solution is to execute "set $pc = $pc - 2" after stops in the 
> breakpoint. Then GDB before sending the trap #1 executes a step and 
> then continue fine.


Good luck!

Alex Baldin
pipen@olvs.miee.ru