Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* remote debugging with m68k-stub
@ 2002-08-14  2:34 Squal
  0 siblings, 0 replies; 4+ messages in thread
From: Squal @ 2002-08-14  2:34 UTC (permalink / raw)
  To: gdb

I'm trying to debug some program with the help of 
the m68k stub file. 
When I start the program in the remote target 
(motorola 68000) the connexion with gdb 
(in the host machine Sparc Sun Solaris) seems 
to be a succes:
	
	(gdb) target remote mark:5000
	Remote debugging using mark:5000
	0x00840007 in ?? ()
	(gdb) bt
	#0  0x00381118 in ?? ()
	#1  0x00010156 in ?? ()
	(gdb)

PS: 0x00840007 and 0x00381118 not corresponding
    to a correct memory acces.
A lot of data packet is send throw the serial link.


After that, I try to continue the program execution
with the continue gdb command: 	

	(gdb) c
	Continuing.
	Can't send signals to this remote system.  
	SIGEMT not sent.
	Program received signal SIGEMT, Emulation trap.
	0x00381118 in ?? ()

In the main function beginning I call the set_debug_traps
function to initialise exceptions address. After, I call
the Breakpoint function (TRAP #1) to connect with gdb.
During the execution the program never return of the
TRAP #1 exception (it stay in the handle_exception function).

I thing the problem can be a bad address reference.

What can I do to resume the program execution ??
If somebody has any idea, thanks to thing to me :-) 

Thanks

Pascal


^ permalink raw reply	[flat|nested] 4+ messages in thread
* remote debugging with m68k-stub
@ 2002-08-07  5:49 Squal
  2002-08-07  7:22 ` Quality Quorum
  2002-08-07  8:17 ` William A. Gatliff
  0 siblings, 2 replies; 4+ messages in thread
From: Squal @ 2002-08-07  5:49 UTC (permalink / raw)
  To: gdb

Hello!

I have done all the remote target gdb instructions:
  - define all the low level routines
  - insert set_debug_traps(); and breakpoints(); at
    the beginning of the program
  - compiling stub and program together

After that, I downloaded my program and the m68k-stub in the target. 
My problem is when I start the program in the remote target, the program
stop and never restart (the halt indicator is set).
Normally, the program will stop at the breakpoint (TRAP #1) and will
continue after gdb be connected to the stub but the program seems to 
be stopped.

Somebody can help me ?

Thanks

Pascal


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-08-14  9:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-14  2:34 remote debugging with m68k-stub Squal
  -- strict thread matches above, loose matches on Subject: below --
2002-08-07  5:49 Squal
2002-08-07  7:22 ` Quality Quorum
2002-08-07  8:17 ` William A. Gatliff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox