File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
testsuite/tests/misc/setup Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 11
11
for name in dir (gdb )
12
12
if name .startswith ('TYPE_CODE_' )
13
13
}
14
+ objfile_filter_true = lambda objfile : True # no-code-coverage
14
15
15
16
16
- def register_pretty_printers (printers , objfile_filter = lambda objfile : True ):
17
+ def register_pretty_printers (printers , objfile_filter = objfile_filter_true ):
17
18
"""
18
19
Register pretty-printers in existing objfiles and register a hook to
19
20
register them in all objfiles that will be loaded.
Original file line number Diff line number Diff line change 16
16
gdb .run_to (gdb .find_loc ('foo.adb' , 'BREAK' ))
17
17
gdb .test ('python import gnatdbg; gnatdbg.setup(globally=False)' , '' )
18
18
gdb .print_expr ('empty_string' , 'Unbounded_String ("")' )
19
+
20
+ # Re-load and re-run foo, just to make sure the new_objfile event is run.
21
+ gdb .kill ()
22
+ gdb .run_to (gdb .find_loc ('foo.adb' , 'BREAK' ))
23
+ gdb .print_expr ('empty_string' , 'Unbounded_String ("")' )
You can’t perform that action at this time.
0 commit comments