I need help with deduging

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

I need help with deduging

Doug Stewart-4
I am in ubuntu 16.04 and am compiling a recent version of stable.


I run the following commands

mkdir dbg-octave
cd dbg-octave
/home/doug/octavec4/configure FFLAGS=-g CFLAGS=-g CXXFLAGS=-g  --prefix=/opt/dbg-octave
make -j7

Which I think should compile octave with debug symbols.

then I run Octave with

 sudo ./dbg-octave/run-octave

the dbg wanted me to be in sudo mode
 
Then in octave I ran:
system (sprintf ("gnome-terminal --command 'gdb -p %d'", getpid ()), "async");

this gave me the gdb window.
 I then did a CNTL c  in octave to get the prompt in gdb.
I then type in gdb:

 b liboctinterp.so

then a continue   in gdb.
now back in octave i ran

a = "\t\ta\tb\tc\n"
textscan(a, '%s', 'delimiter', sprintf('\t'))

and expected it to stop when textscan was run. But it did not break (stop) anywhere. It just ran the code without stopping.

What am I missing?
Doug



--
DASCertificate for 206392


_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: I need help with deduging

siko1056
Doug Stewart-4 wrote
> I then type in gdb:
>
>  b liboctinterp.so

Is setting a breakpoint on an entire library possible?  I assume that
something like [1]

break -s file-io.cc -li 1495

would be required to stop inside the textscan function call (I did not test
that one yet).

Kai

[1]
https://sourceware.org/gdb/current/onlinedocs/gdb/Explicit-Locations.html#Explicit-Locations




--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: I need help with deduging

Doug Stewart-4


On Tue, Nov 21, 2017 at 2:47 PM, siko1056 <[hidden email]> wrote:
Doug Stewart-4 wrote
> I then type in gdb:
>
>  b liboctinterp.so

Is setting a breakpoint on an entire library possible?  I assume that
something like [1]

break -s file-io.cc -li 1495

Thanks that worked!!!


 
would be required to stop inside the textscan function call (I did not test
that one yet).

Kai

[1]
https://sourceware.org/gdb/current/onlinedocs/gdb/Explicit-Locations.html#Explicit-Locations




--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave



--
DASCertificate for 206392


_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave