From: Jacob Lifshay Date: Wed, 6 Dec 2023 09:09:42 +0000 (-0800) Subject: elf/simple_cases: enable debug info for statically-linked glibc demo X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=34c3e409ed930987838069f189c56246526981d8;p=openpower-isa.git elf/simple_cases: enable debug info for statically-linked glibc demo --- 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)