public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* RE: multi-ice-gdb-server - ReadChar Problem..
@ 2006-02-10 11:56 Srinivas Kandagatla
  2006-02-12  8:09 ` Jim Blandy
  0 siblings, 1 reply; 3+ messages in thread
From: Srinivas Kandagatla @ 2006-02-10 11:56 UTC (permalink / raw)
  To: Srinivas Kandagatla, gdb

Hi all,
I found the workaround for this problem.
I want to share this with all of those who encountered this problem.

Just comment the below code in remote-utils.c

#if defined(F_SETFL) && defined (FASYNC)
  save_fcntl_flags = fcntl (remote_desc, F_GETFL, 0);
  save_fcntl_flags |= FASYNC;
#if defined(O_ASYNC)
  save_fcntl_flags |= O_ASYNC;
#endif
  fcntl (remote_desc, F_SETFL, save_fcntl_flags);
  ioctl (remote_desc, FIOASYNC, &enable_async);
  disable_async_io ();
#endif /* FASYNC *

It works.. ....

Happy debugging ....
Regards
Srinivas.Kandagatla
Sr. Software Engineer.
CISC India.


-----Original Message-----
From: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] On Behalf Of
Srinivas Kandagatla
Sent: Friday, February 10, 2006 12:06 PM
To: gdb@sourceware.org
Subject: multi-ice-gdb-server - ReadChar Problem..


Hi All,
Recently I have downloaded multi-ice-gdb-server and managed to compile and
run according to the instructions in
http://ecos.sourceware.org/multi-ice.html after running the below command I
get the errors as shown.
The multi-ice-gdb-server is failing at readchar function.

##"C:\Program Files\ARM\Multi-ICE\multi-ice-gdb-server.exe"
--remote-port 9000 --byte-sex l --config-dialog

GNU Multi-ICE GDB server 1.0


Connected to the Multi-Ice target.

Targeted ARM core: ARM9 0

Target characteristics:
        Hardware?:              YES
        Comms Channel?:         YES
        Endian-ness:            LITTLE
        Single-Step Support:    NO
        Load Size:              32768
        Custom Load?:           NO

No other modules found on debug target.

GDB Server starting on port 9000

Got a connection from localhost

Not a good vector or eCos not running!

putpkt(read): Resource temporarily unavailable

readchar: Resource temporarily unavailable



I Think many people have faced the similar problem. I searched mailing list,
could not get any solution to this.
Does this problem have any workarounds or solutions or suggestions  or some
specific version of CYGWIN to be installed.....
Pl let me know..

I am also working on this ....


Regards
Srinivas.Kandagatla
Sr. Software Engineer.
CISC India.


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

* Re: multi-ice-gdb-server - ReadChar Problem..
  2006-02-10 11:56 multi-ice-gdb-server - ReadChar Problem Srinivas Kandagatla
@ 2006-02-12  8:09 ` Jim Blandy
  0 siblings, 0 replies; 3+ messages in thread
From: Jim Blandy @ 2006-02-12  8:09 UTC (permalink / raw)
  To: Srinivas Kandagatla; +Cc: gdb

Hi --- since this isn't a problem in GDB or gdbserver, are you sure it
wouldn't be more appropriate to report this problem as described here?

http://ecos.sourceware.org/problemreport.html

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

* multi-ice-gdb-server - ReadChar Problem..
@ 2006-02-10  6:37 Srinivas Kandagatla
  0 siblings, 0 replies; 3+ messages in thread
From: Srinivas Kandagatla @ 2006-02-10  6:37 UTC (permalink / raw)
  To: gdb


Hi All,
Recently I have downloaded multi-ice-gdb-server and managed to compile and
run according to the instructions in
http://ecos.sourceware.org/multi-ice.html after running the below command I
get the errors as shown.
The multi-ice-gdb-server is failing at readchar function.

##"C:\Program Files\ARM\Multi-ICE\multi-ice-gdb-server.exe"
--remote-port 9000 --byte-sex l --config-dialog

GNU Multi-ICE GDB server 1.0


Connected to the Multi-Ice target.

Targeted ARM core: ARM9 0

Target characteristics:
        Hardware?:              YES
        Comms Channel?:         YES
        Endian-ness:            LITTLE
        Single-Step Support:    NO
        Load Size:              32768
        Custom Load?:           NO

No other modules found on debug target.

GDB Server starting on port 9000

Got a connection from localhost

Not a good vector or eCos not running!

putpkt(read): Resource temporarily unavailable

readchar: Resource temporarily unavailable



I Think many people have faced the similar problem. I searched mailing list,
could not get any solution to this.
Does this problem have any workarounds or solutions or suggestions  or some
specific version of CYGWIN to be installed.....
Pl let me know..

I am also working on this ....


Regards
Srinivas.Kandagatla
Sr. Software Engineer.
CISC India.


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

end of thread, other threads:[~2006-02-12  8:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-10 11:56 multi-ice-gdb-server - ReadChar Problem Srinivas Kandagatla
2006-02-12  8:09 ` Jim Blandy
  -- strict thread matches above, loose matches on Subject: below --
2006-02-10  6:37 Srinivas Kandagatla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).