The attached patch for RSB solves the problem of output not being flushed in gdb/sis and run/sis. Note that I would discourage the use of run as it cannot run the SMP tests. I have also experienced some random hangs in rtems-test when using run, but never with sis.
Jiri. On 3/1/19 4:53 PM, Joel Sherrill wrote: > Thank you for being so responsive. > > I suspected a missing flush but had no idea where to look. I hopedyou > would spot the missing line of code quickly and was right. :) > > --joel > > On Thu, Feb 28, 2019 at 1:01 PM Jiri Gaisler <j...@gaisler.se > <mailto:j...@gaisler.se>> wrote: > > I have found the problem, stdout is not flushed when the simulator > stops and it has been invoked by gdb. The run command uses the gdb > interface to call sis, so this is why it happens there too. I will > make a new sis patch (2.13) with some additional (speed) > improvements... > > Jiri. >
diff --git a/rtems/config/tools/rtems-gdb-8.2.1-1.cfg b/rtems/config/tools/rtems-gdb-8.2.1-1.cfg index 2473ee6..3e90826 100644 --- a/rtems/config/tools/rtems-gdb-8.2.1-1.cfg +++ b/rtems/config/tools/rtems-gdb-8.2.1-1.cfg @@ -18,4 +18,7 @@ %patch add gdb https://devel.rtems.org/raw-attachment/ticket/3460/gdb-8.2.1-sis-2.12.patch %hash sha512 gdb-8.2.1-sis-2.12.patch ee321be58c4788580eb16f2e9c7329fddd6d9c22922f22f93a33aaa7ff97804cdf3539de835756109b99b4c975ec68880d438debebe22923c303b565fe2188da +%patch add gdb https://gaisler.se/gdb/gdb-8.2.1-sis-2.13.patch +%hash sha512 gdb-8.2.1-sis-2.13.patch 8239ef23240ef27f64e4deb2a81f91e6d189572fbfd4f5b26e525f2907413f8f09e643fa4ae793616feeeb5db1878a0caa5eea5c9c51ad946ad930adc46e4599 + %include %{_configdir}/gdb-8-1.cfg
_______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel