python: Provide textual representation for Inferior and Objfile
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.python / py-symtab.exp
index f504362526fdd7b4161cb916bb8557f380d4fa3b..545fe95764a808081cd9268eb43b7880d51345db 100644 (file)
@@ -66,7 +66,8 @@ gdb_test "python print (sal.is_valid())" "True" "test sal.is_valid"
 
 # Test symbol table.
 gdb_test "python print (symtab.filename)" ".*${py_symbol_c}" "test symtab.filename"
-gdb_test "python print (symtab.objfile)" "<gdb.Objfile object at ${hex}>" "test symtab.objfile"
+gdb_test "python print (symtab.objfile)" "<gdb.Objfile filename=${binfile}>" \
+    "test symtab.objfile"
 gdb_test "python print (symtab.fullname())" ".*${full_py_symbol_c}" "test symtab.fullname"
 gdb_test "python print (symtab.is_valid())" "True" "test symtab.is_valid()"
 gdb_test "python print (\"qq\" in global_symbols)" "True" "test qq in global symbols"
This page took 0.068022 seconds and 4 git commands to generate.