Sourceware Bugzilla – Attachment 15266 Details for
Bug 31121
gprofng does not recognise source in a shared object
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Example of a gdb session with bin2SD
bin2SD_gdb_session.txt (text/plain), 3.97 KB, created by
Robert Jenssen
on 2023-12-19 07:08:43 UTC
(
hide
)
Description:
Example of a gdb session with bin2SD
Filename:
MIME Type:
Creator:
Robert Jenssen
Created:
2023-12-19 07:08:43 UTC
Size:
3.97 KB
patch
obsolete
>$ make src/bin2SD.oct >/usr/local/octave-9.0.0/bin/mkoctfile -v -o src/bin2SD.oct -Wall -lgmp -lmpfr src/bin2SD.cc >g++ -c -fPIC -I/usr/local/octave-9.0.0/include/octave-9.0.0/octave/.. -I/usr/local/octave-9.0.0/include/octave-9.0.0/octave -I/usr/local/octave-9.0.0/include -pthread -fopenmp -m64 -march=nehalem -Og -gdwarf-5 -std=c++17 -I/usr/local/octave-9.0.0/include -Wall src/bin2SD.cc -o /tmp/oct-J8dsQ8.o >g++ -I/usr/local/octave-9.0.0/include/octave-9.0.0/octave/.. -I/usr/local/octave-9.0.0/include/octave-9.0.0/octave -I/usr/local/octave-9.0.0/include -pthread -fopenmp -m64 -march=nehalem -Og -gdwarf-5 -std=c++17 -I/usr/local/octave-9.0.0/include -Wall -o src/bin2SD.oct /tmp/oct-J8dsQ8.o -lgmp -lmpfr -shared -Wl,-Bsymbolic -L/usr/local/octave-9.0.0/lib -shared -Wl,-Bsymbolic -L/usr/local/octave-9.0.0/lib >$ gdb /usr/local/octave-9.0.0/bin/octave >GNU gdb (Fedora Linux) 14.1-1.fc39 >Copyright (C) 2023 Free Software Foundation, Inc. >License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> >This is free software: you are free to change and redistribute it. >There is NO WARRANTY, to the extent permitted by law. >Type "show copying" and "show warranty" for details. >This GDB was configured as "x86_64-redhat-linux-gnu". >Type "show configuration" for configuration details. >For bug reporting instructions, please see: ><https://www.gnu.org/software/gdb/bugs/>. >Find the GDB manual and other documentation resources online at: > <http://www.gnu.org/software/gdb/documentation/>. > >For help, type "help". >Type "apropos word" to search for commands related to "word"... >Reading symbols from /usr/local/octave-9.0.0/bin/octave... >(gdb) set args --no-gui -p src -p src/test src/test/bin2SD_test.m >(gdb) b Fbin2SD >Function "Fbin2SD" not defined. >Make breakpoint pending on future shared library load? (y or [n]) y >Breakpoint 1 (Fbin2SD) pending. >(gdb) r >Starting program: /usr/local/octave-9.0.0/bin/octave --no-gui -p src -p src/test src/test/bin2SD_test.m >[Thread debugging using libthread_db enabled] >Using host libthread_db library "/lib64/libthread_db.so.1". >process 11590 is executing new program: /usr/local/octave-9.0.0/libexec/octave/9.0.0/exec/x86_64-pc-linux-gnu/octave-gui >Missing separate debuginfo for /lib64/libqscintilla2_qt6.so.15. >The debuginfo package for this file is probably broken. >[Thread debugging using libthread_db enabled] >Using host libthread_db library "/lib64/libthread_db.so.1". >Missing separate debuginfo for /lib64/libEGL.so.1. >The debuginfo package for this file is probably broken. >[New Thread 0x7fffe0b446c0 (LWP 11593)] >[New Thread 0x7fffdbfff6c0 (LWP 11594)] >[New Thread 0x7fffdaa5b6c0 (LWP 11595)] >[New Thread 0x7fffda25a6c0 (LWP 11596)] >[New Thread 0x7fffd9a596c0 (LWP 11597)] >[New Thread 0x7fffd91f66c0 (LWP 11598)] >[Thread 0x7fffd91f66c0 (LWP 11598) exited] >[New Thread 0x7fffd91f66c0 (LWP 11599)] >[New Thread 0x7fffd886b6c0 (LWP 11600)] >[Thread 0x7fffd91f66c0 (LWP 11599) exited] >[New Thread 0x7fffd91f66c0 (LWP 11601)] >[Thread 0x7fffd886b6c0 (LWP 11600) exited] >[New Thread 0x7fffc3e8b6c0 (LWP 11602)] >[Thread 0x7fffd91f66c0 (LWP 11601) exited] >[Thread 0x7fffc3e8b6c0 (LWP 11602) exited] >[New Thread 0x7fffc3e8b6c0 (LWP 11603)] >[New Thread 0x7fffd91f66c0 (LWP 11604)] > >Using bin2SD octfile >[Switching to Thread 0x7fffc3e8b6c0 (LWP 11603)] > >Thread 12 "QThread" hit Breakpoint 1, Fbin2SD (args=..., nargout=1) > at src/bin2SD.cc:35 >35 { >(gdb) l >30 >31 #include <octave/oct.h> >32 #include <octave/parse.h> >33 >34 DEFUN_DLD(bin2SD, args, nargout, "y=bin2SD(x,nbits,ndigits)") >35 { >36 if (args.length() != 3) >37 { >38 print_usage(); >39 return octave_value_list(); >(gdb) n >36 if (args.length() != 3) >(gdb) >45 if (bit_max_init_done==false) >(gdb) >47 octave_value_list flintmax_retval = octave::feval("flintmax"); >(gdb) > >48 double bit_max = flintmax_retval(0).double_value(true); >(gdb) >49 max_nbits = floor(log2(bit_max)-2); >(gdb) >50 bit_max_init_done=true; >(gdb) >51 } >(gdb) >54 const int64_t nbits = args(1).int64_value(true); >(gdb) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 31121
:
15246
|
15247
|
15248
| 15266 |
15268
|
15269