Rafael,

The DebugAgentLib is designed to hook into various fundamental chunks of the 
system. It is not designed to hook into your application. 

So for example the DXE Core consumes the DebugAgentLib, and the default link is 
to point it to a NULL version. If you point the DXE Core at the 
DxeDebugAgentLib.inf instance of the DebugAgentLIb then you should get source 
level debugging in EFI. Note you also have to make sure any libraries the 
DxeDebugAgentLib.inf require also point the the correct ones. 

Andrew Fish

On Aug 30, 2012, at 10:57 AM, Rafael Machado wrote:

> Hi
> 
> We've executed some tests here and now we are able to execute a debug of a 
> windows driver using com1 port. So we can consider that the cable and the 
> serial ports are working correctly.
> 
> Now we're trying to compile the project so the debug can work.
> The problem is that we're not able to compile an application using any of the 
> modules mentioned on the Debugger tool manual:
> 
> SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf 
> SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf 
> SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
> 
> To debug an UEFI Application, shuwld I use another package ?
> 
> Thanks and Regards
> Rafael R. Machado
> 
> 
> 2012/8/29 Tian, Feng <feng.t...@intel.com>
> Now EDKII SourceLevelDebug supports two physical channel: one is serial 
> cable, another is usb debug cable.
> 
>  
> 
> So if you have no EHCI debug port at your target machine, you can try serial 
> port.
> 
>  
> 
> If you want to use the COM2 of target machine, you need override 
> PcdSerialRegisterBase in MdeModulePkg.dec to 0x2F8 that makes you use COM2.
> 
>  
> 
> From: Rafael Machado [mailto:rafaelrodrigues.mach...@gmail.com] 
> Sent: Wednesday, August 29, 2012 10:43 AM
> 
> 
> To: edk2-devel@lists.sourceforge.net
> Subject: Re: [edk2] Intel Degubber Tool
> 
>  
> 
> Hi Feng
> 
>  
> 
> Your understanding of what I was trying to say, main usb port, was correct. I 
> was talking about EHCI usb debug port
> 
> I have one problem here. The problem is that none of the machines I have here 
> have EHCI debug port.
> 
> Now we are trying to debug using the COM2 (com1 is not working on this 
> machine) serial port.
> 
>  
> 
> The strange thing is that windbg is not able to connect to the target 
> machine. Is it possible to debug using com2 serial port or just com1 ?
> 
>  
> 
> PS.: If some one have some time, would it be great for the beginners to have 
> some video about compiling and debugging an uefi application and/or 
> driverusing windbg. Seams to be a really simple task, but for the beginners 
> it's kind of complicated.
> 
>  
> 
> Thanks and Regards
> 
> Rafael R. Machado
> 
>  
> 
> 2012/8/26 Tian, Feng <feng.t...@intel.com>
> 
> I am not quite sure what’s your meaning of “Main USB port”.
> 
>  
> 
> But for usb debug cable, it requires to directly insert into EHCI usb debug 
> port at Target side. You need check your chipset spec to know which port is 
> used as usb debug port. And you can also refer to the user manual, this doc 
> introduces several ways to find out the debug port of target side.
> 
>  
> 
> At host side, it’s not required, you just need to choose any one of usb 2.0 
> ports.
> 
>  
> 
> From: Rafael Machado [mailto:rafaelrodrigues.mach...@gmail.com] 
> Sent: Saturday, August 25, 2012 20:55
> To: edk2-devel@lists.sourceforge.net
> Subject: Re: [edk2] Intel Degubber Tool
> 
>  
> 
> Hi Tian, Feng
> 
>  
> 
> I'm having some problems here to execute the debug.
> 
> I have a question. On the target machine, do I need to use the Main USB port 
> too ?
> 
>  
> 
> Thanks and Regards
> 
> Rafael R. Machado
> 
> 2012/8/23 Tian, Feng <feng.t...@intel.com>
> 
> Did you read the latest UDK Debugger Tools’ user manual? Its section 3.2.4 
> explains this.
> 
>  
> 
> Please raise any issue to me when following these instructions.
> 
>  
> 
> From: Denis Alberto Silverio [mailto:denis.a.silve...@gmail.com] 
> Sent: Friday, August 24, 2012 01:42
> To: edk2-devel@lists.sourceforge.net
> Subject: [edk2] Intel Degubber Tool
> 
>  
> 
> Hi Everybody!
> 
> I´m Learning about Intel Debugger Tool and I would like to know if anyone 
> knows a good tutorial that explains how to use the USB Debug cable, and help 
> me to find the USB debug port. I´m reading Intel debugger tool Manual but i 
> can´t make it work
> 
> Thanks
> 
>  
> 
> -- 
> Dênis Alberto Silverio
> 
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/edk2-devel
> 
>  
> 
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/edk2-devel
> 
>  
> 
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/edk2-devel
> 
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. 
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/edk2-devel

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to