From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 77F4681EF3 for ; Wed, 16 Nov 2016 03:33:50 -0800 (PST) Received: by mail-wm0-x244.google.com with SMTP id m203so10086700wma.3 for ; Wed, 16 Nov 2016 03:33:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akeo-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=1408DCsxLbFCKvo8LUo1rwgPvEHRH6uz5fsZeOQCZ3g=; b=J7OoqDAebEG25oAZA+poVsft5LguQNE9CLKee60vF7tWu8xi4SYswqt6wqw0wvDpiw RWLxGjXPsoCfrMruBFd118w118P99c7cJqy/UT5D5LmrvLgt1TUUK16l54i5ifJqhpmR 5IgUxSVBMB793g/d1wQ2iOQ4WjI97/TIUNVJmsctwUJTIwyToYDD08hQ5qp4cpq0ubH/ OwUI55F8vyYNTE/1yBtThYy6e90ktbk9dxol9guqvYCRXfpm929gIzht7y2KoqNi5Jc4 3c4BLMlXhC/PNcehdkz58WPK4O96Vsi6PCGKC+Y71y8DlTKbLKXwrwK3BlcRqQILoF8y h5eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=1408DCsxLbFCKvo8LUo1rwgPvEHRH6uz5fsZeOQCZ3g=; b=iaOulnlbM0FJZ+85+yZxxV5bl5pCFoAEaNSIG/jFTeFpy6VmUNiDcPJdF8aIAqAizr puepmKO4xxUCWpLLhPS5mrlb+yespAbsieexXMG81wuJlb4MPLnCRIoDyrPVn8Yts9xe 0pT2075up+q5htjWOOqeeoWSxBiR+CJsL0w/guOOhWv+g/QAXLdFVxKXgb81bh0DaHTg MemzQrS7WcfBcLHeGYfILcwg0rzcd4i+cBf4uG9z/SI+vvCXN92NR+FyFaICL+98XqTS eguMjMqlL6lzAT7kRMSGTrV6H9Ou3ma9nDEeZWc5G8W6xXYqNQeSTnRjRNLvG3swvx8s pnxg== X-Gm-Message-State: ABUngvflPtr81tCVkuUFDKEFfcG7Loq78ZxzSxkA0XjwVuLm8cLZz1Vv/idR8B21Hdra1Q== X-Received: by 10.194.193.100 with SMTP id hn4mr1946878wjc.77.1479296033817; Wed, 16 Nov 2016 03:33:53 -0800 (PST) Received: from localhost.localdomain ([84.203.51.0]) by smtp.gmail.com with ESMTPSA id v2sm40020458wja.41.2016.11.16.03.33.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 16 Nov 2016 03:33:53 -0800 (PST) From: Pete Batard To: edk2-devel@lists.01.org Date: Wed, 16 Nov 2016 11:33:36 +0000 Message-Id: <20161116113339.11472-1-pete@akeo.ie> X-Mailer: git-send-email 2.9.3.windows.2 Subject: [PATCH v3 0/3] MdeModulePkg/EbcDxe: add EBC Debugger X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Nov 2016 11:33:50 -0000 This is a slightly updated re-post of the patch series to add the EBC Debugger. Changes from v2 are minimal, and take into account Jiewen's remarks about moving some VM related macros into EbcVmTest.h, as well as one removal of copy/paste leftovers in the comments of EbcDebuggerExtra.uni. I'm hoping this version can be considered for review and integration. For reference, a github branch with these changes can be found at: https://github.com/pbatard/edk2/tree/EbcDebugger_v3 Regards, /Pete Pete Batard (3): MdeModulePkg/EbcDxe: prepare support for EBC Debugger MdeModulePkg/EbcDxe: add EBC Debugger MdeModulePkg/EbcDxe: reorganize EBC header definitions MdeModulePkg/Include/Protocol/EbcVmTest.h | 49 + MdeModulePkg/MdeModulePkg.dsc | 3 +- MdeModulePkg/Universal/EbcDxe/AArch64/EbcSupport.c | 3 + MdeModulePkg/Universal/EbcDxe/EbcDebugger.inf | 120 + MdeModulePkg/Universal/EbcDxe/EbcDebugger.uni | 19 + MdeModulePkg/Universal/EbcDxe/EbcDebugger/Edb.c | 659 +++++ MdeModulePkg/Universal/EbcDxe/EbcDebugger/Edb.h | 58 + .../Universal/EbcDxe/EbcDebugger/EdbCmdBranch.c | 336 +++ .../Universal/EbcDxe/EbcDebugger/EdbCmdBreak.c | 327 +++ .../EbcDxe/EbcDebugger/EdbCmdBreakpoint.c | 614 +++++ .../Universal/EbcDxe/EbcDebugger/EdbCmdExtIo.c | 219 ++ .../Universal/EbcDxe/EbcDebugger/EdbCmdExtPci.c | 186 ++ .../Universal/EbcDxe/EbcDebugger/EdbCmdGo.c | 93 + .../Universal/EbcDxe/EbcDebugger/EdbCmdHelp.c | 86 + .../Universal/EbcDxe/EbcDebugger/EdbCmdMemory.c | 683 +++++ .../Universal/EbcDxe/EbcDebugger/EdbCmdQuit.c | 50 + .../Universal/EbcDxe/EbcDebugger/EdbCmdRegister.c | 136 + .../Universal/EbcDxe/EbcDebugger/EdbCmdScope.c | 123 + .../Universal/EbcDxe/EbcDebugger/EdbCmdStep.c | 198 ++ .../Universal/EbcDxe/EbcDebugger/EdbCmdSymbol.c | 952 +++++++ .../Universal/EbcDxe/EbcDebugger/EdbCommand.c | 680 +++++ .../Universal/EbcDxe/EbcDebugger/EdbCommand.h | 106 + .../Universal/EbcDxe/EbcDebugger/EdbCommon.h | 251 ++ .../Universal/EbcDxe/EbcDebugger/EdbDisasm.c | 1907 ++++++++++++++ .../Universal/EbcDxe/EbcDebugger/EdbDisasm.h | 42 + .../EbcDxe/EbcDebugger/EdbDisasmSupport.c | 1461 +++++++++++ .../EbcDxe/EbcDebugger/EdbDisasmSupport.h | 241 ++ .../Universal/EbcDxe/EbcDebugger/EdbHook.c | 1003 ++++++++ .../Universal/EbcDxe/EbcDebugger/EdbHook.h | 27 + .../Universal/EbcDxe/EbcDebugger/EdbSupport.h | 240 ++ .../Universal/EbcDxe/EbcDebugger/EdbSupportFile.c | 415 +++ .../EbcDxe/EbcDebugger/EdbSupportString.c | 991 ++++++++ .../Universal/EbcDxe/EbcDebugger/EdbSupportUI.c | 708 ++++++ .../Universal/EbcDxe/EbcDebugger/EdbSymbol.c | 2669 ++++++++++++++++++++ .../Universal/EbcDxe/EbcDebugger/EdbSymbol.h | 128 + MdeModulePkg/Universal/EbcDxe/EbcDebuggerExtra.uni | 17 + MdeModulePkg/Universal/EbcDxe/EbcDebuggerHook.c | 156 ++ MdeModulePkg/Universal/EbcDxe/EbcDebuggerHook.h | 136 + MdeModulePkg/Universal/EbcDxe/EbcDxe.inf | 4 +- MdeModulePkg/Universal/EbcDxe/EbcExecute.c | 39 + MdeModulePkg/Universal/EbcDxe/EbcExecute.h | 198 -- MdeModulePkg/Universal/EbcDxe/EbcInt.c | 6 + MdeModulePkg/Universal/EbcDxe/EbcInt.h | 29 - MdeModulePkg/Universal/EbcDxe/Ia32/EbcSupport.c | 7 +- MdeModulePkg/Universal/EbcDxe/Ipf/EbcSupport.c | 9 +- MdeModulePkg/Universal/EbcDxe/X64/EbcSupport.c | 7 +- MdePkg/Include/Protocol/Ebc.h | 161 ++ 47 files changed, 16317 insertions(+), 235 deletions(-) create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger.inf create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger.uni create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger/Edb.c create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger/Edb.h create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCmdBranch.c create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCmdBreak.c create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCmdBreakpoint.c create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCmdExtIo.c create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCmdExtPci.c create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCmdGo.c create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCmdHelp.c create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCmdMemory.c create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCmdQuit.c create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCmdRegister.c create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCmdScope.c create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCmdStep.c create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCmdSymbol.c create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCommand.c create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCommand.h create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCommon.h create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbDisasm.c create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbDisasm.h create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbDisasmSupport.c create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbDisasmSupport.h create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbHook.c create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbHook.h create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbSupport.h create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbSupportFile.c create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbSupportString.c create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbSupportUI.c create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbSymbol.c create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbSymbol.h create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebuggerExtra.uni create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebuggerHook.c create mode 100644 MdeModulePkg/Universal/EbcDxe/EbcDebuggerHook.h -- 2.9.3.windows.2