mailing-list for TeXmacs Users

Text archives Help


How to run TeXmacs in debug


Chronological Thread 
  • From: Salman Khilji <address@hidden>
  • To: address@hidden
  • Subject: How to run TeXmacs in debug
  • Date: Tue, 3 Jun 2003 20:58:57 -0700
  • Organization: NA

How do I run TeXmacs in debug under Linux? I want to understand some about
the internals and the code.

I compiled the thing in debug under:

~/Downloads/TeXmacs-1.0.1.14-src/

the compilation created a direcory named:

~/Downloads/TeXmacs-1.0.1.14-src/TeXmacs-1.0.1.14

I also noticed that under texmacs is simply a shell script that launches
texmacs.bin. So I did the following:

export
TEXMACS_PATH=/home/salman/Downloads/TeXmacs-1.0.1.14-src/TeXmacs-1.0.1.14

cd /home/salman/Downloads/TeXmacs-1.0.1.14-src/TeXmacs-1.0.1.14/bin

ddd texmacs.bin

This seems to work, but GDB seems to be severely broken in terms of tyring to
display anything at all from the program code. for example there is the
"string" object....can't display it....

and then there is some tfm object referenced at load-tfm.cc:373

gdb/ddd displays useless information like:

<resource_ptr<tex_font_metric_rep>> = {...}
<No data fields>

I did not know how to properly ./configure the source, so I ./configured it
and then manually added -g option to CFLAGS....and CXXFLAGS...and removed
optimization settings from the Makefile manually before I compiled.

Can a developer of TeXmacs give me some pointers? I know there must be a way
to get gdb/ddd recognize the internals of texmacs otherwise it would be
impossible for me to understand it.

Salman





Archive powered by MHonArc 2.6.19.

Top of page