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

Jon Beniston jon@beniston.com
Mon Sep 25 15:42:00 GMT 2017


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




More information about the Gdb-patches mailing list