You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Was testing out lldb in stepping through a simple mean function, and stumbled into this:
Breakpoint 2: where = sourceCpp_57725.so`Rcpp::sugar::Mean<14, true, Rcpp::Vector<14, Rcpp::PreserveStorage> >::get() const + 351 at mean.h:46, address = 0x000000010cf7e79f
(lldb) c
Process 4169 resuming
Process 4169 stopped
thread #1: tid = 0x70d5, 0x000000010cf7e79f sourceCpp_57725.soRcpp::sugar::Mean<14, true, Rcpp::Vector<14, Rcpp::PreserveStorage> >::get(this=<unavailable>) const + 351 at mean.h:46, queue = 'com.apple.main-thread', stop reason = breakpoint 2.1 frame #​0: 0x000000010cf7e79f sourceCpp_57725.soRcpp::sugar::Mean<14, true, Rcpp::Vector<14, Rcpp::PreserveStorage> >::get(this=) const + 351 at mean.h:46
43 for (int i = 0; i < n; i++) {
44 t += input[i] - s;
45 }
-> 46 s += t/n;
47 }
48 return (double)s ;
49 }
(lldb) print s
error: portsrc.o {0x0000c21b}: unhandled type tag 0x0027 (DW_TAG_constant), please file a bug and attach the file at the start of this error message
error: portsrc.o {0x0000dec0}: unhandled type tag 0x0027 (DW_TAG_constant), please file a bug and attach the file at the start of this error message
error: portsrc.o {0x0000699d}: unhandled type tag 0x0027 (DW_TAG_constant), please file a bug and attach the file at the start of this error message
error: warning: Stopped in a C++ method, but 'this' isn't available; pretending we are in a generic context
error: use of undeclared identifier 's'
error: 1 errors parsing expression
This is with git commit 1fe2076d4c88fcf374a1ce8f5486c340cb61a304; lldb was built from sources using
Extended Description
Was testing out
lldb
in stepping through a simple mean function, and stumbled into this:Breakpoint 2: where = sourceCpp_57725.so`Rcpp::sugar::Mean<14, true, Rcpp::Vector<14, Rcpp::PreserveStorage> >::get() const + 351 at mean.h:46, address = 0x000000010cf7e79f
(lldb) c
Process 4169 resuming
Process 4169 stopped
Rcpp::sugar::Mean<14, true, Rcpp::Vector<14, Rcpp::PreserveStorage> >::get(this=<unavailable>) const + 351 at mean.h:46, queue = 'com.apple.main-thread', stop reason = breakpoint 2.1 frame #​0: 0x000000010cf7e79f sourceCpp_57725.so
Rcpp::sugar::Mean<14, true, Rcpp::Vector<14, Rcpp::PreserveStorage> >::get(this=) const + 351 at mean.h:4643 for (int i = 0; i < n; i++) {
44 t += input[i] - s;
45 }
-> 46 s += t/n;
47 }
48 return (double)s ;
49 }
(lldb) print s
error: portsrc.o {0x0000c21b}: unhandled type tag 0x0027 (DW_TAG_constant), please file a bug and attach the file at the start of this error message
error: portsrc.o {0x0000dec0}: unhandled type tag 0x0027 (DW_TAG_constant), please file a bug and attach the file at the start of this error message
error: portsrc.o {0x0000699d}: unhandled type tag 0x0027 (DW_TAG_constant), please file a bug and attach the file at the start of this error message
error: warning: Stopped in a C++ method, but 'this' isn't available; pretending we are in a generic context
error: use of undeclared identifier 's'
error: 1 errors parsing expression
This is with git commit
1fe2076d4c88fcf374a1ce8f5486c340cb61a304
;lldb
was built from sources usingThanks,
Kevin
The text was updated successfully, but these errors were encountered: