]> git.proxmox.com Git - mirror_edk2.git/commit
SourceLevelDebugPkg: Fix Serial Port connection cannot be setup
authorRuiyu Ni <ruiyu.ni@intel.com>
Mon, 18 May 2015 05:29:01 +0000 (05:29 +0000)
committerniruiyu <niruiyu@Edk2>
Mon, 18 May 2015 05:29:01 +0000 (05:29 +0000)
commit987a8a64a147ff7f0d813487b995fe7eb5aa5423
treea3a2b0147a8f9e1ae2deefb249a769e398f14acb
parentf3b6e048e2454c4692bcd66c7592aefde14bcfa4
SourceLevelDebugPkg: Fix Serial Port connection cannot be setup

The root cause is SerialPortDebugCommunicationLib returns NULL debug port handle causing the CompressData() doesn't send the compressed data.
The fix doesn't rely on the debug port handle value and uses Send parameter to indicate whether to send the compressed data.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17464 6f19259b-4bc3-4df7-8a09-765794883524
SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c