help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to debug this strange load problem


From: John W. Eaton
Subject: Re: how to debug this strange load problem
Date: Tue, 29 Aug 2006 14:40:55 -0400

On 29-Aug-2006, frank wang wrote:

| Could you specify how to set the flag -ggdb3? Is this in makefile or
| configure?

You can use

  ./configure CXXFLAGS="-ggdb3"
  make

| Also, how can I find the version of libstdc++  and libstdc++?

  ldd full/path/to/octave

will show you something like

        ...
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00002ad07cb99000)
        libc.so.6 => /lib/libc.so.6 (0x00002ad07cd9b000)

Then

  $ ls -l /usr/lib/libstdc++.so.6
  lrwxrwxrwx 1 root root 18 Jul 12 13:11 /usr/lib/libstdc++.so.6 -> 
libstdc++.so.6.0.8
  $ ls -l /lib/libc.so.6
  lrwxrwxrwx 1 root root 13 Jun 28 12:51 /lib/libc.so.6 -> libc-2.3.6.so

| After I build octave with -ggdb3, is this correct procedure to setup the
| debug process?
| 1) run gdb octave
| 2) inside gdb, set break point at the load function
| 3) inside gdb, run
| 
| Could you tell me the file name containing load function source code?

The file is load-save.cc, the function is Fload (the F prefix is a
coding convention, enforced by the DEFUN macro).

BTW, if you do find that the problem is due to a bug in the compiler
or libraries, then we can't help you fix that other than to tell you
to install a newer/different version.  So maybe you should start by
installing the latest GCC?  4.1.0 was the first release in a series
and there has been a bug-fix release since.

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]