From ec20fd35447fea2a5da8538260397cea24051db5 Mon Sep 17 00:00:00 2001 From: Arne Döring Date: Sun, 20 Oct 2019 11:52:50 +0200 Subject: fix #12426 (#12462) --- tests/untestable/gdb/gdb_pretty_printer_test.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/untestable/gdb/gdb_pretty_printer_test.py') diff --git a/tests/untestable/gdb/gdb_pretty_printer_test.py b/tests/untestable/gdb/gdb_pretty_printer_test.py index 54af65d9a..f002941ec 100644 --- a/tests/untestable/gdb/gdb_pretty_printer_test.py +++ b/tests/untestable/gdb/gdb_pretty_printer_test.py @@ -22,6 +22,9 @@ outputs = [ ] for i, expected in enumerate(outputs): + functionSymbol = gdb.selected_frame().block().function + assert functionSymbol.line == 21 + if i == 5: # myArray is passed as pointer to int to myDebug. I look up myArray up in the stack gdb.execute("up") -- cgit 1.4.1-2-gfad0