Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Restarting gdbserver
@ 2011-01-20  9:25 Leon Pollak
  2011-01-20  9:36 ` Jan Kratochvil
  0 siblings, 1 reply; 14+ messages in thread
From: Leon Pollak @ 2011-01-20  9:25 UTC (permalink / raw)
  To: gdb

Hello, all.

I searched Google and mail list for hours - very strange, but found 
nothing...:-(

I debug remotely gdb <-> gdbserver - totally standard situation...:-)
The target's root FS is NFS on my PC.

To start one debug session I go to the target (via telnet) and start the 
gdbserver manually, then in my IDE start the gdb session. When a change is 
required, I exit the gdb, this kills the gdbserver, make a change, recompile, 
go to telnet, restart gdbserver, connect in IDE, etc.
Very annoying....

I tried to automate the gdbserver restart process by running script which 
loops it, but this is not very reliable, as this means that I am allowed to 
exit the gdb only AFTER I have recompiled the application. Otherwise, 
gdbserver takes the old executable.

All this seems to be VERY standard situation which should be solved for years, 
but how...:-(

Sorry to ask something so primitive.

Thanks a lot ahead.
-- 
Leon


^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: Restarting gdbserver
@ 2011-01-20 14:10 Leon Pollak
  0 siblings, 0 replies; 14+ messages in thread
From: Leon Pollak @ 2011-01-20 14:10 UTC (permalink / raw)
  To: Jan Kratochvil; +Cc: gdb

SORRY PLEASE!!!!!
I forgot the backtrace output:
(gdb) bt
#0  0x400314bc in pthread_cond_wait@@GLIBC_2.4 () from 
/opt/FS/lib/libpthread.so.0
#1  0x00000000 in ?? ()



On Thursday January 20 2011, Jan Kratochvil wrote:
> or also:
> 	gdbserver --multi COMM
> 	using `target extended-remote ...' instead.
WOW!!!!!!!!
How could I not find this!!??
1001 of thanks!
Works fine. I start thegdb with:

set sysroot /opt/FS/
set remote exec-file /common/csu
target extended-remote 192.168.50.4:44000
---
The only one problem left for me is that when stopped/broken, the stack frame 
is not presented as it usually is:

(gdb) frame
#0  0x400314bc in pthread_cond_wait@@GLIBC_2.4 () from 
/opt/FS/lib/libpthread.so.0

And nothing else...:-(

Thousands of thanks ahead for the help...
-- 
Leon


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

end of thread, other threads:[~2011-01-23 18:25 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-20  9:25 Restarting gdbserver Leon Pollak
2011-01-20  9:36 ` Jan Kratochvil
2011-01-20 14:07   ` Leon Pollak
2011-01-20 14:11     ` Jan Kratochvil
2011-01-20 14:55       ` Leon Pollak
2011-01-20 17:29         ` Jan Kratochvil
2011-01-21 22:48           ` Leon Pollak
2011-01-23 13:28             ` Jan Kratochvil
2011-01-23 16:39               ` Leon Pollak
2011-01-23 16:48                 ` Jan Kratochvil
2011-01-23 18:01                   ` Leon Pollak
2011-01-23 18:20                     ` Jan Kratochvil
2011-01-23 18:25                     ` Andreas Schwab
2011-01-20 14:10 Leon Pollak

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