gdb connects to qemu.

you may need to specify in gdb some extra information about the
locations of files, for example:
file 
/home/gedare/work/rtems/rtems/b-pc386/i386-rtems4.11/c/pc386/testsuites/samples/hello/hello.exe

if you are repeatedly debugging the same file connecting "remotely" to
qemu, you may like to create a .gdbinit in the directory from which
you call gdb that contains the following:
file $PATHTOEXE
target remote localhost:1234
break Init
c


On Sun, Jul 28, 2013 at 11:30 PM, Sree Harsha Konduri
<[email protected]> wrote:
> There was a small change in the file pc386.in that i made to get qemu to
> connect to gdb, but gdb can't seem to find the rtems kernel binaries.
>
> The change was to add GDBARGS = -s if -G option is specified.
>
> Thanks,
> Sree
>
>
> On Sun, Jul 28, 2013 at 2:56 PM, Joel Sherrill <[email protected]>
> wrote:
>>
>> Then it should start qemu with the right arguments to so it starts in gdb
>> server. You will need to start gdb in another window and attach with a
>> command like target remote :1234... From memory but that should be close.
>>
>> You can always check the qemu docs to get the port number but the
>> simulator is separate from gdb so you need to test it as an external target.
>>
>> Sree harsha <[email protected]> wrote:
>>
>> It is for pc386 to test the globaledf scheduler
>>
>>
>> Sent from my Verizon Wireless 4G LTE Smartphone
>>
>>
>>
>> -------- Original message --------
>> From: Joel Sherrill <[email protected]>
>> Date: 07/28/2013 2:09 PM (GMT-05:00)
>> To: Sree Harsha Konduri <[email protected]>
>> Cc: [email protected]
>> Subject: Re: rtems-testing with gdb option
>>
>>
>> Depends on the simulator if that mode is supported. It is for simulators
>> you run in a separate window from the gdb session.
>>
>> Which simulator?
>>
>> Sree Harsha Konduri <[email protected]> wrote:
>>
>> Hello,
>>
>> The rtems-testing module is provided with a -G option to put the
>> executable to run in gdb mode, but this is not the case when we run it with
>> -G. Is there something i am missing, can someone help me on this?
>>
>> Thanks,
>> Sree
>
>
>
> _______________________________________________
> rtems-devel mailing list
> [email protected]
> http://www.rtems.org/mailman/listinfo/rtems-devel
>
_______________________________________________
rtems-devel mailing list
[email protected]
http://www.rtems.org/mailman/listinfo/rtems-devel

Reply via email to