Thank you, Sean!
I did add the joint command and it compiled alright, I did some tweaking to
the code, moved some of the functions that are used by the joint command in
the joint.c <http://paste.ubuntu.com/1177574/> file (something temporary,
just to see if it works), compiled again and tried to run the command - to
get it to output the same as the old joint command (the one from
/mged/animedit.c) for "joint help". It didn't work. It just exits mged
altogether when I try to enter "joint help" in the mged window. Then I
started debugging it with gdb, set breakpoints:
- in mged.c ~@line 1590 - where the routine void stdin_input() is called
- in mged.c ~@line 1718 - where the actual definition for the routine
stdin_input() is
- in joint.c in the int f_joint() routine (~@line 270 in the second file
from paste.ubuntu.com, the joint.c file).
and I also set 2 catchpoints, since I imagined some routine like _exit
syscall or _exit_group syscall was taking place.
I ran the mged inside gdb and the output can be seen in the
3<http://paste.ubuntu.com/1177587/>link from
paste.ubuntu.com.
Now I am kinda stuck, do you have any idea what the problem might be?
The files are here :
joints.h <http://paste.ubuntu.com/1177572/>
joint.c <http://paste.ubuntu.com/1177574/>
gdb output <http://paste.ubuntu.com/1177587/>
Thank you!
Oana
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
BRL-CAD Developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel