From 73a45c77486bc82475c8d24739d1212ab8d9cfad Mon Sep 17 00:00:00 2001 From: Doug Gilbert Date: Wed, 25 Jan 2012 11:52:29 -0600 Subject: istep breakpoint support Change-Id: I592c617963f810209a9ab76345a8c568d14af62c Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/629 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert --- src/usr/hwpf/plat/fapiPlatUtil.C | 6 ++++++ src/usr/hwpf/test/hwpftest.H | 15 +++++++++++++++ 2 files changed, 21 insertions(+) (limited to 'src/usr/hwpf') diff --git a/src/usr/hwpf/plat/fapiPlatUtil.C b/src/usr/hwpf/plat/fapiPlatUtil.C index 2f155bccd..58b83db0c 100644 --- a/src/usr/hwpf/plat/fapiPlatUtil.C +++ b/src/usr/hwpf/plat/fapiPlatUtil.C @@ -35,6 +35,7 @@ #include #include #include +#include //****************************************************************************** @@ -193,4 +194,9 @@ fapi::ReturnCode fapiUnloadInitFile(const char * i_file, const char *& io_addr, return l_rc; } +void fapiBreakPoint(const fapi::Target & i_target, uint64_t i_info) +{ + INITSERVICE::iStepBreakPoint(i_target, i_info); +} + } diff --git a/src/usr/hwpf/test/hwpftest.H b/src/usr/hwpf/test/hwpftest.H index 4776ea41e..c087ed0ca 100644 --- a/src/usr/hwpf/test/hwpftest.H +++ b/src/usr/hwpf/test/hwpftest.H @@ -622,6 +622,21 @@ public: } } } + + +// // unit test breakpoint +// void testHwpf7() +// { +// fapi::Target fapiTarget; +// FAPI_INF("AT breakpoint"); +// fapiBreakPoint(fapiTarget,__LINE__); +// +// // requires outside hb-istep resume command to continue +// +// FAPI_INF("RESUME from breakpoint"); +// } + + }; #endif -- cgit v1.2.3