1. Pypy
  2. Untitled project
  3. pypy


Antonio Cuni  committed 4987a52

add the --lldebug0 option, which is like lldebug but in addition compiles C files with -O0, useful when gdb keeps on saying '<optimized out>' when you want to look at a variable

  • Participants
  • Parent commits ce6ebed
  • Branches default

Comments (0)

Files changed (2)

File rpython/config/translationoption.py

View file
  • Ignore whitespace
                "If true, makes an lldebug build", default=False,
+    BoolOption("lldebug0",
+               "If true, makes an lldebug0 build", default=False,
+               cmdline="--lldebug0"),
     OptionDescription("backendopt", "Backend Optimization Options", [
         # control inlining

File rpython/translator/c/genc.py

View file
  • Ignore whitespace
             extra_opts += ['-j', str(self.config.translation.make_jobs)]
         if self.config.translation.lldebug:
             extra_opts += ["lldebug"]
+        elif self.config.translation.lldebug0:
+            extra_opts += ["lldebug0"]
         if shared:
             ('linuxmemchk', '', '$(MAKE) CFLAGS="$(DEBUGFLAGS) -DRPY_ASSERT -DPPY_USE_LINUXMEMCHK" debug_target'),
             ('llsafer', '', '$(MAKE) CFLAGS="-O2 -DRPY_LL_ASSERT" $(TARGET)'),
             ('lldebug', '', '$(MAKE) CFLAGS="$(DEBUGFLAGS) -DRPY_ASSERT -DRPY_LL_ASSERT" debug_target'),
+            ('lldebug0','', '$(MAKE) CFLAGS="-O0 $(DEBUGFLAGS) -DRPY_ASSERT -DRPY_LL_ASSERT" debug_target'),
             ('profile', '', '$(MAKE) CFLAGS="-g -O1 -pg $(CFLAGS) -fno-omit-frame-pointer" LDFLAGS="-pg $(LDFLAGS)" $(TARGET)'),
         if self.has_profopt():