From 0eb42da37ede292c17dbbcf3abca18d4ec8dc9db Mon Sep 17 00:00:00 2001 From: Mark Florisson Date: Tue, 14 Dec 2010 00:45:11 +0100 Subject: [PATCH] Locate C source code properly and lex C source code in listings --- Cython/Debugger/libcython.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cython/Debugger/libcython.py b/Cython/Debugger/libcython.py index d766f565..1a1a4172 100644 --- a/Cython/Debugger/libcython.py +++ b/Cython/Debugger/libcython.py @@ -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, -- 2.26.2