Am 09.10.2013 18:27, schrieb Michael Gius: > Hi List, > > Does anybody have some pointers on how to set breakpoints in gdb to an > exact statement of embedded cpp code in a ecpp file when running tntnet > and loading the webapp as a dynamic library. > During single stepping I can seen the line directives that ecppc inserts > into the source, but how can I address them directly ? > > Let's say I would want to break at line 15 in > https://github.com/maekitalo/tntnet-homepage/blob/master/webapp/howto.ecpp > What would be the sequence of gdb commands to run until there ? > > More general hints on debugging ecpp files are also very welcome. > > Thanks, > Michael Hi,
debugging is really not that easy I guess. I'm not a gdb expert so that I can't really help that much. But I agree, that it would be more than helpful to get some hints, how to use gdb with tntnet. One good thing is, that ecppc generates #line directives so that gdb knows about the ecpp file and you don't need to hassle with the generated cpp. Btw. You can disable generation of #line directives in ecppc using option -L. Sometimes it is helpful to step into the generated code or to get error messages from the compiler, which point to the cpp. Tommi ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk _______________________________________________ Tntnet-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tntnet-general
