<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Should I also do any code change like invoking gdbstub_test function call somewhere in execution path in order to see the results?<br><br>Thanks,<br>Andy<br><br>&gt; Date: Fri, 19 Feb 2010 06:31:12 +0000<br>&gt; Subject: Re: [gPXE-devel] gdbstub_test.S<br>&gt; From: stefanha@gmail.com<br>&gt; To: andychen_ca@hotmail.com<br>&gt; CC: gpxe-devel@etherboot.org<br>&gt; <br>&gt; On Thu, Feb 18, 2010 at 10:34 PM, Andy Chen &lt;andychen_ca@hotmail.com&gt; wrote:<br>&gt; &gt; I'm very new in gpxe development and try to learn the coding structure to<br>&gt; &gt; see if I'm able to make contributions.<br>&gt; &gt;<br>&gt; &gt; I'm currently studying with remote debug functions and got stuck on<br>&gt; &gt; tests/gdbstub_test.S and tests/gdbstub_test.gdb.<br>&gt; &gt; Can some one kindly guide me how to compile and use it?<br>&gt; <br>&gt; Remote GDB debugging documentation is here:<br>&gt; http://etherboot.org/wiki/dev/gdbstub.  This is useful for<br>&gt; understanding how to set up remote debugging - you need to know this<br>&gt; in order to run these tests.<br>&gt; <br>&gt; The GDB stub tests perform the commands that gPXE's GDB stub<br>&gt; implements and verify that they succeeded.  If you are changing the<br>&gt; GDB stub code, then this is a useful test to run (and extend with your<br>&gt; new functionality).<br>&gt; <br>&gt; gdbstub_test.S is assembly code that needs to be built into gPXE.  Add<br>&gt; REQUIRE_OBJECT(gdbstub_test) to config/config.c in order to link this<br>&gt; code into your gPXE image.<br>&gt; <br>&gt; gdbstub_test.gdb is a GDB script that needs to be run on the remote<br>&gt; debugging host.  It has comments at the top showing how to use it:<br>&gt; # Test suite for GDB remote debugging<br>&gt; # Run:<br>&gt; #   make bin/gpxe.hd.tmp<br>&gt; #   make<br>&gt; #   gdb<br>&gt; <br>&gt; #   (gdb) target remote :TCPPORT<br>&gt; #   OR<br>&gt; #   (gdb) target remote udp:IP:UDPPORT<br>&gt; <br>&gt; #   (gdb) source tests/gdbstub_test.gdb<br>&gt; <br>&gt; Stefan<br>                                               <br /><hr />Not using Hotmail on your phone? Why not? <a href='http://go.microsoft.com/?linkid=9708120' target='_new'>Get it now.</a></body>
</html>