<div dir="ltr"><div class="im"><div> </div><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">Are all pc386 compiled files supposed to run with qemu emulator?<br>
</blockquote></div>
Nope, they can run on computer just like any other operating system like
 Windows and Linux. You can use GRUB 2 to boot an RTEMS OS + application
 image. But I don't know how they can be debugged in this way.<div class="im"><br><br><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
 If it have to be with qemu, what instructions I should follow?<br></blockquote></div>In
 order to debug your application when it is running on QEMU, you should 
start your QEMU with -s option. This option will launch a GDB server on 
localhost:1234. Then use a debugger interface like kDBG or eclipse to 
remotely debug your running application. For instance, in kDBG you may 
change the debugger in Settings > Global Options menu to 
i386-rtems4.11-gdb and then if you start kdbg like:<br>
kdbg -r <a href="http://127.0.0.1:1234/" target="_blank">127.0.0.1:1234</a> /ELF/version/of/your/application/path/and/name<br>you'll be able to debug your application.<br>Just remember that you must start QEMU before kDBG and introduce the same ELF file to both of them.<br>

<br>Hope it helps,<br>SAeeD<br><br><div class="gmail_quote">On Wed, Aug 29, 2012 at 10:14 PM, Xiaochen Pan <span dir="ltr"><<a href="mailto:panx@seas.upenn.edu" target="_blank">panx@seas.upenn.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear RTEMS developers and users,<br>
<br>
How to use i386-rtems4.11-gdb to debug pc386 compiled exe programs?<br>
<br>
Are all pc386 compiled files supposed to run with qemu emulator? Could they run without qemu? If it have to be with qemu, what instructions I should follow?<br>
<br>
Thank you very much!<br>
<br>
Sincerely,<br>
Xiaochen Pan<br>
_______________________________________________<br>
rtems-users mailing list<br>
<a href="mailto:rtems-users@rtems.org">rtems-users@rtems.org</a><br>
<a href="http://www.rtems.org/mailman/listinfo/rtems-users" target="_blank">http://www.rtems.org/mailman/listinfo/rtems-users</a><br>
</blockquote></div><br></div>