Locate C source code properly and lex C source code in listings
authorMark Florisson <markflorisson88@gmail.com>
Mon, 13 Dec 2010 23:45:11 +0000 (00:45 +0100)
committerMark Florisson <markflorisson88@gmail.com>
Mon, 13 Dec 2010 23:45:11 +0000 (00:45 +0100)
Cython/Debugger/libcython.py

index d766f56558b792fef46cdd9b2a46f7da87baa674..1a1a41729ea65f192441ee8694d6c95563093b9a 100644 (file)
@@ -256,7 +256,7 @@ class CythonBase(object):
                 filename = None
                 lineno = 0
             else:
-                filename = symbol_and_line_obj.symtab.filename
+                filename = symbol_and_line_obj.symtab.fullname()
                 lineno = symbol_and_line_obj.line
                 if pygments:
                     lexer = pygments.lexers.CLexer(stripall=False)
@@ -1033,7 +1033,7 @@ class CyList(CythonCommand):
     command_class = gdb.COMMAND_FILES
     completer_class = gdb.COMPLETE_NONE
     
-    @dispatch_on_frame(c_command='list')
+    @dispatch_on_frame(c_command='list')
     def invoke(self, _, from_tty):
         sd, lineno = self.get_source_desc()
         source = sd.get_source(lineno - 5, lineno + 5, mark_line=lineno,