X-Git-Url: http://christophe.rhodes.io/gitweb/?p=swankr.git;a=blobdiff_plain;f=swank.R;h=c6a1ec2f0e0afe13d7e90a3910370bbb3dfe49ef;hp=dc5cbd165e7204384d1940a16d6e252ac7b8351d;hb=4bae7a87342e7c464e3f2c474656661325db5951;hpb=21417cc77b6c04eb127db66c620f7b4e38164ace diff --git a/swank.R b/swank.R index dc5cbd1..c6a1ec2 100644 --- a/swank.R +++ b/swank.R @@ -69,7 +69,7 @@ sldbLoop <- function(io, sldbState, id) { debuggerInfoForEmacs <- function(sldbState, from=0, to=NULL) { backtraceForEmacs <- function() { - calls <- sys.calls() + calls <- rev(sys.calls()) if(is.null(to)) to <- length(calls) from <- from+1 calls <- lapply(calls[from:to], { frameNumber <- from-1;