On Tue, Sep 14, 2010 at 2:56 AM, mark florisson
<[email protected]> wrote:
> Dear Dag Sverre,
>
> thank you very much for your swift reply and help. Indeed, I noticed
> that the 'c_name' wasn't filled out at that point, so writing a
> transform sounds indeed like the better (and cleaner!) option.
>
> Regarding the line numbers, you can't access these pragmas from the
> Python API in GDB and in fact, it seems that these directives confuse
> gdb: http://paste.pocoo.org/show/261841/ . So I think I'll dig through
> the Cython source and look at the emit_linenums code.

This is because you need the #file as well as #line directive so it
can correctly index into the "source."

> It's good to hear that you are willing to include such a patch. I
> think that indeed, making these changes part of gdb would be nice, but
> I think it should also be possible to install these gdb extensions
> manually (i.e., a separate project, perhaps shipped with Cython
> wouldn't hurt either). But I will definitely have a talk with the gdb
> community, and see if the Cython debugger could be integrated with
> EasierPythonDebugging.

Good debugging tools is an oft requested feature, and would be very
useful. Anything you can do along these lines would be great!

> Yes, I think an official branch would be nice.

Send me a htpasswd file offline, and I'll set you up one.

- Robert
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to