elf/simple_cases: enable debug info for statically-linked glibc demo
authorJacob Lifshay <programmerjake@gmail.com>
Wed, 6 Dec 2023 09:09:42 +0000 (01:09 -0800)
committerJacob Lifshay <programmerjake@gmail.com>
Wed, 13 Dec 2023 00:59:12 +0000 (16:59 -0800)
src/openpower/test/elf/simple_cases.py

index a79bd34c759d6c4dae28d39760f9a695ff9500a7..cf52a34897e0188780ab1214260c3b3ddbfd9b4c 100644 (file)
@@ -96,7 +96,9 @@ class SimpleCases(TestAccumulatorBase):
                       initial_msr=DEFAULT_USER_MSR)
 
     def case_static_glibc(self):
-        compiler_args = '-Os', '-static', '-xc'
+        # we enable debug info because it makes following along in gdb
+        # much easier.
+        compiler_args = '-Os', '-static', '-xc', '-g'
         prog = compile_elf(static_glibc, compiler_args)
         self.add_case(prog, initial_sprs=initial_sprs.copy(),
                       initial_msr=DEFAULT_USER_MSR)