Oct. 15th, 2011 09:04 pm
(no subject)
Let's say, for instance, that you are debugging a program that embeds Lua, and you take a SEGV. Let's say that you'd like to know what was in Lua's head before this happened, too, since it might have been useful. Let's say also, that you're on Solaris, and you have an ancient version of GDB, so you don't have Python, generate-core-file doesn't work, and things like print some_c_function() are likely to kill your session. And, let's say that your bug repros once every 24 hours or so, so risking killing your session isn't something that you want to try.
Well, do I ever have the script for you. It's pretty arcane, but to my knowledge, nobody's done this, so I hope someone will find it useful.
Well, do I ever have the script for you. It's pretty arcane, but to my knowledge, nobody's done this, so I hope someone will find it useful.