Re: gdbstub initial code, v3

2010-08-12 Thread Frank Ch. Eigler

oleg wrote:

 [...]
   - It doesn't support all-stop mode.
 Please tell me if this is needed. I hope not, this needs
 a lot of nasty complications :/
 [...]

As opposed to non-stop mode?  I'm pretty sure all-stop will be needed
as that is the common  default gdb usage model.


- FChE



Re: gdbstub initial code, v3

2010-08-12 Thread Roland McGrath
 Indeed, gdb sees that this fd is not pipe/tcp and uses the hardwire
 serial_ops, but hardwire_readchar() doesn't play well with select().
 
 Please teach gdb to use poll/select ?

If it makes it easier, could use:

bash$ nc -l -U /tmp/socket  /proc/ugdb 
(gdb) target remote |nc -U /tmp/socket

for the moment.  Silly of course, but just not to be blocked on cleaning up
gdb's serial-device handling to be more nicely nonblocking.


Thanks,
Roland