*/
@Test
public void testStackTrace() throws UnsupportedEncodingException
{
// Parse the message
GdbMiParser2 parser = new GdbMiParser2(null);
String messageStr =
"^done," +
"stack=[" +
"frame={" +
"level=\"0\"," +
"addr=\"0x00010734\"," +
"func=\"callee4\"," +
"file=\"../../../devo/gdb/testsuite/gdb.mi/basics.c\"," +
"fullname=\"/home/foo/bar/devo/gdb/testsuite/gdb.mi/basics.c\"," +
"line=\"8\"}," +
"frame={" +
"level=\"1\"," +
"addr=\"0x0001076c\"," +
"func=\"callee3\"," +
"file=\"../../../devo/gdb/testsuite/gdb.mi/basics.c\"," +
"fullname=\"/home/foo/bar/devo/gdb/testsuite/gdb.mi/basics.c\"," +
"line=\"17\"}]\r\n" +
"(gdb)\r\n";
parser.process(messageStr.getBytes("US-ASCII"));
List<GdbMiRecord> records = parser.getRecords();
// Convert the message
GdbMiResultRecord record = (GdbMiResultRecord) records.get(0);
Object object = GdbMiMessageConverter.processRecord(record, "-stack-list-frames");
Assert.assertNotNull(object);