This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

serial port conflicts


Hi,

I have implemented a gdb stub for a SH2 target based on "sh-stub.c" from GDB-v3.6 source. Now some basic features like step, break, cont, memory read/write, etc. are tested successfully.

The gdb stub and gdb on host communicate via remote serial protocol. However I have a problem to debug an application program, which accesses the same serial port used by gdb, e.g. I/O functions like "putstring()", "getchar()", etc. In my case, "putstring()" cannot display any message in gdb console, and "getchar()" cannot receive any input.

I guess there is a conflict between gdb and application program to access the same serial port. I'd like to hear any advice on solving this problem.

Thanks in advance!

--
Best Regards,
Min


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