Re: [Qemu-devel] runtime configurable semihosting

2014-11-18 Thread Peter Maydell
On 18 November 2014 16:46, Liviu Ionescu wrote: > > On 18 Nov 2014, at 15:31, Peter Maydell wrote: > >> Sorry, yes, you're right; I should have looked more carefully. >> So we do need a new option; > > or we should fix the parser. if the current keyword is not in > the list, it can be pushed back

Re: [Qemu-devel] runtime configurable semihosting

2014-11-18 Thread Liviu Ionescu
On 18 Nov 2014, at 15:31, Peter Maydell wrote: > Sorry, yes, you're right; I should have looked more carefully. > So we do need a new option; or we should fix the parser. if the current keyword is not in the list, it can be pushed back, and defaults used. > -semihosting-config target=[native|

Re: [Qemu-devel] runtime configurable semihosting

2014-11-18 Thread Peter Maydell
On 13 November 2014 09:44, Liviu Ionescu wrote: > Peter Maydell wrote: >> I took a quick look at the syntax of command options and monitor >> commands, and I would suggest the following: >> >> - extend the option "-semihosting" with an optional >> "target=native|gdb|auto", default auto > > unfortu

Re: [Qemu-devel] runtime configurable semihosting

2014-11-13 Thread Peter Maydell
On 13 November 2014 22:23, Liviu Ionescu wrote: > > On 14 Nov 2014, at 00:16, Peter Maydell wrote: > >> Right, but what does it mean to say 'gdb' that's different from >> 'auto' ? > > auto sends either to gdb or qemu, gdb always sends to gdb, native always to > qemu. > >> What happens in that ca

Re: [Qemu-devel] runtime configurable semihosting

2014-11-13 Thread Liviu Ionescu
On 14 Nov 2014, at 00:16, Peter Maydell wrote: > Right, but what does it mean to say 'gdb' that's different from > 'auto' ? auto sends either to gdb or qemu, gdb always sends to gdb, native always to qemu. > What happens in that case if you don't have a gdb > attached? according to my tests,

Re: [Qemu-devel] runtime configurable semihosting

2014-11-13 Thread Peter Maydell
On 13 November 2014 21:51, Liviu Ionescu wrote: > > On 13 Nov 2014, at 23:38, Peter Maydell wrote: > >> On 13 November 2014 21:23, Liviu Ionescu wrote: > >> ...I'm confused, I think. I thought 'gdb' was an option you added? > > that's correct, but only part of the whole image, in fact I added >

Re: [Qemu-devel] runtime configurable semihosting

2014-11-13 Thread Liviu Ionescu
On 13 Nov 2014, at 23:38, Peter Maydell wrote: > On 13 November 2014 21:23, Liviu Ionescu wrote: > ...I'm confused, I think. I thought 'gdb' was an option you added? that's correct, but only part of the whole image, in fact I added "-semihosting-target auto|native|gdb"; however my patch only

Re: [Qemu-devel] runtime configurable semihosting

2014-11-13 Thread Peter Maydell
On 13 November 2014 21:23, Liviu Ionescu wrote: > > On 13 Nov 2014, at 19:52, Peter Maydell wrote: > >> ... I'm not sure how useful "gdb" is as distinct from >> "auto" (what do you do with the semihosting requests if no >> gdb is connected in this case?). > > well, I also had some doubts about "g

Re: [Qemu-devel] runtime configurable semihosting

2014-11-13 Thread Liviu Ionescu
On 13 Nov 2014, at 23:23, Liviu Ionescu wrote: > ... "gdb", but since I never used this configuration... btw, can anyone suggest how to configure things to test this kind of 'semihosting forwarding'? does the standard GDB support this, or a custom one is required? from the source code I saw

Re: [Qemu-devel] runtime configurable semihosting

2014-11-13 Thread Liviu Ionescu
On 13 Nov 2014, at 19:52, Peter Maydell wrote: > ... I'm not sure how useful "gdb" is as distinct from > "auto" (what do you do with the semihosting requests if no > gdb is connected in this case?). well, I also had some doubts about "gdb", but since I never used this configuration, I preferre

Re: [Qemu-devel] runtime configurable semihosting

2014-11-13 Thread Peter Maydell
On 13 November 2014 17:48, Christopher Covington wrote: > Hi Liviu, > > On 11/12/2014 02:17 PM, Liviu Ionescu wrote: >> >>> semihosting ... be runtime configurable on this, I think. >> >> I took a quick look at the syntax of command options and monitor commands, >> and I would suggest the followi

Re: [Qemu-devel] runtime configurable semihosting

2014-11-13 Thread Christopher Covington
Hi Liviu, On 11/12/2014 02:17 PM, Liviu Ionescu wrote: > >> semihosting ... be runtime configurable on this, I think. > > I took a quick look at the syntax of command options and monitor commands, > and I would suggest the following: > > - extend the option "-semihosting" with an optional "tar

Re: [Qemu-devel] runtime configurable semihosting

2014-11-13 Thread Liviu Ionescu
On 12 Nov 2014, at 21:17, Liviu Ionescu wrote: > >> semihosting ... be runtime configurable on this, I think. > > I took a quick look at the syntax of command options and monitor commands, > and I would suggest the following: > > - extend the option "-semihosting" with an optional "target=na

[Qemu-devel] runtime configurable semihosting

2014-11-12 Thread Liviu Ionescu
> semihosting ... be runtime configurable on this, I think. I took a quick look at the syntax of command options and monitor commands, and I would suggest the following: - extend the option "-semihosting" with an optional "target=native|gdb|auto", default auto - if necessary, add a monitor co