dbx crashes when (incorrectly) using .. syntax on vectors
Given code:
[code]#include <vector>
int main() {
std::vector<int> a(2);
return 0;
}[/code]
Compile and run with dbx:
[code]% CC -g t.cc
% dbx -q a.out
(dbx) stop at 3
(2) stop at "t.cc":3
(dbx) run
Running: a.out
(process id 25017)
stopped in main at line 3 in file "t.cc"
3std::vector<int> a(2);
(dbx) p a[0..1]
dbx: internal error: signal SIGSEGV (no mapping at the fault address)
dbx's coredump will appear in /tmp
Abort (core dumped)[/code]
Understand that .. syntax is not supported on c++ vectors, but would appreciate another
errormessage.
version of "/opt/SUNWspro/bin/dbx": Sun Dbx Debugger 7.5 Patch 121023-01 2006/02/09

