]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/EbcDebugger: Add missing check for symbol not found
authorHao Wu <hao.a.wu@intel.com>
Thu, 24 Nov 2016 02:37:55 +0000 (10:37 +0800)
committerHao Wu <hao.a.wu@intel.com>
Fri, 25 Nov 2016 05:34:21 +0000 (13:34 +0800)
commita8a624d0a45d506f3ac1eab883226cb1cfa71bf6
tree01017a452b8ff4bc91ed4811193a1a6fca144deb
parent12f49354e67df6477a690bf8dd4d919a679da19a
MdeModulePkg/EbcDebugger: Add missing check for symbol not found

In function DebuggerDisplaySymbolAccrodingToAddress(), when variable
'CandidateAddress' (returned by EbdFindSymbolAddress function) equals
(UINTN) -1, it also indicates that the symbol is not found at the given
address.

This commit adds this missing check.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCmdSymbol.c