From e60be85bce9940fb37fdccfe2ea6c7ffdd5fa6b6 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Wed, 6 Dec 2023 01:09:42 -0800 Subject: [PATCH] elf/simple_cases: enable debug info for statically-linked glibc demo --- src/openpower/test/elf/simple_cases.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/openpower/test/elf/simple_cases.py b/src/openpower/test/elf/simple_cases.py index a79bd34c..cf52a348 100644 --- a/src/openpower/test/elf/simple_cases.py +++ b/src/openpower/test/elf/simple_cases.py @@ -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) -- 2.30.2