<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>> Date: Fri, 19 Feb 2010 06:31:12 +0000<br>> Subject: Re: [gPXE-devel] gdbstub_test.S<br>> From: stefanha@gmail.com<br>> To: andychen_ca@hotmail.com<br>> CC: gpxe-devel@etherboot.org<br>> <br>> On Thu, Feb 18, 2010 at 10:34 PM, Andy Chen <andychen_ca@hotmail.com> wrote:<br>> > I'm very new in gpxe development and try to learn the coding structure to<br>> > see if I'm able to make contributions.<br>> ><br>> > I'm currently studying with remote debug functions and got stuck on<br>> > tests/gdbstub_test.S and tests/gdbstub_test.gdb.<br>> > Can some one kindly guide me how to compile and use it?<br>> <br>> Remote GDB debugging documentation is here:<br>> http://etherboot.org/wiki/dev/gdbstub. This is useful for<br>> understanding how to set up remote debugging - you need to know this<br>> in order to run these tests.<br>> <br>> The GDB stub tests perform the commands that gPXE's GDB stub<br>> implements and verify that they succeeded. If you are changing the<br>> GDB stub code, then this is a useful test to run (and extend with your<br>> new functionality).<br>> <br>> gdbstub_test.S is assembly code that needs to be built into gPXE. Add<br>> REQUIRE_OBJECT(gdbstub_test) to config/config.c in order to link this<br>> code into your gPXE image.<br>> <br>> gdbstub_test.gdb is a GDB script that needs to be run on the remote<br>> debugging host. It has comments at the top showing how to use it:<br>> # Test suite for GDB remote debugging<br>> # Run:<br>> # make bin/gpxe.hd.tmp<br>> # make<br>> # gdb<br>> <br>> # (gdb) target remote :TCPPORT<br>> # OR<br>> # (gdb) target remote udp:IP:UDPPORT<br>> <br>> # (gdb) source tests/gdbstub_test.gdb<br>> <br>> 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>