This is the mail archive of the gdb-patches@sourceware.org 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]

RE: [PATCH] PR21985: set inferior-tty doesn't work for remote or sim


Hi Simon,

>I have never used the simulator nor remote fileio, so this is a good
pretext
> for me to learn about it.  Would it be possible for you to provide some 
>small programs that I could toy with to test the patch (and how to run
them,
> if you feel really nice :)) ?

For the remote target, you'd need some h/w to connect to. For the simulator
target, you could try the lm32 target, as I know the sim supports it:

lm32-elf-gcc hello.c -g -o test.exe
lm32-elf-gdb test.exe
tar sim
load
run
"Hello World"

For a remote target, it would be something like:

lm32-elf-gdb test.exe
tar rem :1024
load
c
"Hello World"

I'll follow up with an updated patch that addresses your comments.

Thanks,
Jon



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