<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }body { font-size: 14px; font-family: "Microsoft YaHei UI"; color: rgb(0, 0, 0); line-height: 1.5; }body { font-family: "Microsoft YaHei UI"; line-height: 1.5; color: rgb(0, 0, 0); font-size: 11pt; }</style></head><body>
 
<div style="FONT-FAMILY: Tahoma"><span></span><div style="font-family: "Microsoft YaHei UI";">Marvin,</div><div style="font-family: "Microsoft YaHei UI";"><span style="background-color: transparent; font-size: 11pt;"><br></span></div><div style="font-family: "Microsoft YaHei UI";"><span style="background-color: transparent; font-size: 11pt;">ImageBase was saved in DR2 to help HOST debugger to locate the image base more easily, even though the HOST debugger could find the image base through searching the DOS image signagure.</span></div><div style="font-family: "Microsoft YaHei UI";"><br></div><div style="font-family: "Microsoft YaHei UI";">The reason choosing DR1 and DR2 to save PDB & ImageBase contexts is just implementation only. And it could co-work with Debug Agent Lib implementation and SIMCS.  I am not sure whether is could co-work with INTEl System Debugging tools or not.</div><div style="font-family: "Microsoft YaHei UI";"><br></div><div style="font-family: "Microsoft YaHei UI";">I don't understand why the new PeCoffLib implementation would break the existing debugging tools?Could you explain it more details?</div></div>
<div><br></div>
<hr style="width: 210px; height: 1px;" align="left" color="#b5c4df" size="1">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>Jeff</div><div>fanjianfeng@byosoft.com.cn</div></div></span></div><blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; margin-right: inherit;"><div> </div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px"><div><b>From:</b> <a href="mailto:mhaeuser@posteo.de">Marvin Häuser</a></div><div><b>Date:</b> 2021-08-01 01:21</div><div><b>To:</b> <a href="mailto:devel@edk2.groups.io">devel@edk2.groups.io</a></div><div><b>CC:</b> <a href="mailto:hao.a.wu@intel.com">Hao A Wu</a></div><div><b>Subject:</b> [edk2-devel] SLDP: Usage of PE library context by debugger?</div></div></div><div><div>Good day everyone,</div>
<div> </div>
<div>While refining the port of SourceLevelDebugPkg to my newly proposed </div>
<div>PeCoffLib rework (RFC upcoming), I noticed that the address of the PE </div>
<div>Image context is written to DR2 [1]. Because the UDK and Intel System </div>
<div>Studio debugging tools are closed source, I cannot verify what happens </div>
<div>to this value. Does the host read the library context and retrieve data </div>
<div>from it? If not, why is its address written to DR2? If so, this would </div>
<div>mean the new PeCoffLib implementation breaks the existing debugging </div>
<div>tools. The following questions would arise:</div>
<div> </div>
<div>1) Which data are retrieved from the context structure? For GDB, I think </div>
<div>only the Image address and symbol file path are required (to load the </div>
<div>symbols), while PDB is saved in DR1 already.</div>
<div>2) Are there any plans to provide detailed documentation of the </div>
<div>host/client communication protocol?</div>
<div>3) Are there any plans to provide an open source debugger, or at least </div>
<div>the EDK II communication protocol portion?</div>
<div> </div>
<div>Thank you for your time!</div>
<div> </div>
<div>Best regards,</div>
<div>Marvin</div>
<div> </div>
<div> </div>
<div>[1] </div>
<div>https://github.com/tianocore/edk2/blob/610bcc69ed3d1e8c016332a1862465d41d95dd6c/SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLib.c#L126</div>
<div> </div>
<div> </div>
<div></div>
<div> </div>
<div> </div>
<div> </div>
</div></blockquote>
</body></html>


 <div width="1" style="color:white;clear:both">_._,_._,_</div> <hr>   Groups.io Links:<p>   You receive all messages sent to this group.    <p> <a target="_blank" href="https://edk2.groups.io/g/devel/message/78482">View/Reply Online (#78482)</a> |    |  <a target="_blank" href="https://groups.io/mt/84574370/1813853">Mute This Topic</a>  | <a href="https://edk2.groups.io/g/devel/post">New Topic</a><br>    <a href="https://edk2.groups.io/g/devel/editsub/1813853">Your Subscription</a> | <a href="mailto:devel+owner@edk2.groups.io">Contact Group Owner</a> |  <a href="https://edk2.groups.io/g/devel/unsub">Unsubscribe</a>  [edk2-devel-archive@redhat.com]<br> <div width="1" style="color:white;clear:both">_._,_._,_</div>