This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [PATCH] PR21985: set inferior-tty doesn't work for remote or sim
- From: "Jon Beniston" <jon at beniston dot com>
- To: "'Simon Marchi'" <simon dot marchi at polymtl dot ca>
- Cc: <gdb-patches at sourceware dot org>
- Date: Mon, 25 Sep 2017 16:42:27 +0100
- Subject: RE: [PATCH] PR21985: set inferior-tty doesn't work for remote or sim
- Authentication-results: sourceware.org; auth=none
- References: <00f001d31a99$7080bd00$51823700$@beniston.com> <e869bfa86e8c7a00c40e05f75636a2ca@polymtl.ca>
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