From e8691d4bacbc0a7ac9a64e4f8cb1d98a5b96793e Mon Sep 17 00:00:00 2001 From: jmcmullan Date: Mon, 29 Jun 2015 02:59:42 +0000 Subject: [PATCH] _gdbinit: attempt (yet again) to provide a useful _sysbase_init macro Signed-off-by: Jason S. McMullan git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@50886 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- _gdbinit | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/_gdbinit b/_gdbinit index 12effb6c3d..066374f442 100644 --- a/_gdbinit +++ b/_gdbinit @@ -11,10 +11,7 @@ set follow-fork-mode child # Provides AbsExecBase and SysBase # define _sysbase_init - init-if-undefined $AbsExecBase = 0 - if $AbsExecBase != 0 - set $AbsExecBase = (struct IntExecBase *)$AbsExecBase - end + init-if-undefined $AbsExecBase = *(struct IntExecBase **)&SysBase end document _sysbase_init Initialize $AbsExecBase convenience variables @@ -24,8 +21,6 @@ define _debug_init _sysbase_init init-if-undefined $_debug_DebugBase = 0 - # This is the case for ROM debugging - the user must - # 'set $AbsExecBase = 4', then this kicks in. if $AbsExecBase != 0 && $_debug_DebugBase == 0 set $_debug_DebugBase = (struct DebugBase *)($AbsExecBase->DebugBase) end -- 2.11.4.GIT