ctrace ?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

ctrace ?

Rick Hedin
Does the ctrace tool still work?  When I did make, I got: 

cdx-dev:/home/rhedin/ctrace> make

/usr/bin/lua ctrace.lua < /usr/include/lua.h

/usr/bin/lua: ctrace.lua:86: attempt to index local 'o' (a nil value)

stack traceback:

                ctrace.lua:86: in function 'header'

                ctrace.lua:136: in main chunk

                [C]: ?

make: *** [ctrace.c] Error 1


Perhaps it's out of date, and shouldn't be used?

Reply | Threaded
Open this post in threaded view
|

Re: ctrace ?

Luiz Henrique de Figueiredo
> Does the ctrace tool still work?  When I did make, I got:

I've just tested it and ctrace for Lua 5.2 works on Lua 5.1 just fine
For Lua 5.3, you need to add these lines in ctrace.lua:

["lua_KContext"]="%p",
["lua_KFunction"]="%p",

> /usr/bin/lua ctrace.lua < /usr/include/lua.h
> /usr/bin/lua: ctrace.lua:86: attempt to index local 'o' (a nil value)

Which version of Lua and ctrace are you using?

Reply | Threaded
Open this post in threaded view
|

Re: ctrace ?

Rick Hedin
Hi, Luis. 

(Sitting on a plane at the airport.)

I used the 5.1 version of ctrace.  Lua is 5.1.4. 

The only thing I changed was the location of the includes and the libraries in the make file.

When I get home, I’ll try the 5.2 version.

         Regards, Rick

On Sat, May 25, 2019 at 7:01 AM Luiz Henrique de Figueiredo <[hidden email]> wrote:
> Does the ctrace tool still work?  When I did make, I got:

I've just tested it and ctrace for Lua 5.2 works on Lua 5.1 just fine
For Lua 5.3, you need to add these lines in ctrace.lua:

["lua_KContext"]="%p",
["lua_KFunction"]="%p",

> /usr/bin/lua ctrace.lua < /usr/include/lua.h
> /usr/bin/lua: ctrace.lua:86: attempt to index local 'o' (a nil value)

Which version of Lua and ctrace are you using?

Reply | Threaded
Open this post in threaded view
|

Re: ctrace ?

Luiz Henrique de Figueiredo
> I used the 5.1 version of ctrace.  Lua is 5.1.4.

This should work off the shelf.

> The only thing I changed was the location of the includes and the libraries in the make file.

Please send me ctrace.lua and lua.h in a separate private email message. Thanks.