bug-binutils
[Top][All Lists]
Advanced

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

[Bug gprofng/31121] gprofng does not recognise source in a shared object


From: vladimir.mezentsev at oracle dot com
Subject: [Bug gprofng/31121] gprofng does not recognise source in a shared object
Date: Sat, 09 Dec 2023 04:11:44 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=31121

--- Comment #5 from Vladimir Mezentsev <vladimir.mezentsev at oracle dot com> 
---
What function would you like to see ?

As I can see a part of bin2SD.oct was built with -g.
For example:
% gp-display-src -dis Gbin2SD bin2SD.oct 
Annotated disassembly
---------------------------------------
Source file: /home/robj/CHANGES/DesignOfIIRFilters.C1406/src/bin2SD.cc (not
found)
Object file: bin2SD.oct
Load Object: bin2SD.oct

                <Function: Gbin2SD>
                [ 34]     32c9:  push   %r13
                [ 34]     32cb:  push   %r12
                [ 34]     32cd:  push   %rbp
                [ 34]     32ce:  push   %rbx
                [ 34]     32cf:  sub    $0x58,%rsp
                [ 34]     32d3:  mov    %rdi,%rbx
                [ 34]     32d6:  mov    %esi,%ebp
                [ 34]     32d8:  lea    0x4c(%rsp),%rdx
                [ 34]     32dd:  lea    0x20(%rsp),%rdi
                [ 34]     32e2:  lea    0x1d49(%rip),%rsi        # 0x1d50
                [ 34]     32e9:  call   std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char>
>::basic_string<std::allocator<char> >(char const*, std::allocator<char>
const&) [ 0x3c30, .+0x947]
...


But the other part of bin2SD.oct doesn't have a debug information.
For example:
% gp-display-src -dis 'octave_value::octave_value()' bin2SD.oct 
Annotated disassembly
---------------------------------------
Source file: (unknown)
Object file: bin2SD.oct
Load Object: bin2SD.oct




        <Function: octave_value::octave_value()>
        [?]     3994:  push   %rbx
        [?]     3995:  mov    %rdi,%rbx
        [?]     3998:  call   _ZN12octave_value7nil_repEv@plt [ 0x3160,
.-0x838]
        [?]     399d:  mov    %rax,(%rbx)
        [?]     39a0:  lock addq $0x1,0x8(%rax)
        [?]     39a6:  pop    %rbx
        [?]     39a7:  ret



You can see a list of functions:
% gp-display-src -func bin2SD.oct

Functions sorted in lexicographic order

Load Object: <bin2SD.oct>

    Address                     Size        Name

  0x0000000000003020               496      @plt
  0x0000000000003020               496      @plt
  0x0000000000003912                57      dim_vector::dim_vector()
  0x0000000000003912                57      dim_vector::dim_vector()
  0x0000000000003994                20      octave_value::octave_value()
  0x0000000000003994                20      octave_value::octave_value()
  0x00000000000039a8                76      octave_value::~octave_value()
  0x00000000000039a8                76      octave_value::~octave_value()
  0x0000000000003b7c                67     
octave_value_list::octave_value_list(octave_value_list&&)
  0x0000000000004000               104     
octave_value_list::octave_value_list(long)
  0x0000000000003d7a                69     
octave_value_list::octave_value_list()
  0x0000000000003b7c                67     
octave_value_list::octave_value_list(octave_value_list&&)
  0x0000000000004000               104     
octave_value_list::octave_value_list(long)
  0x0000000000003d7a                69     
octave_value_list::octave_value_list()
  0x0000000000003b0e               110     
Array<std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > >
>::Array(Array<std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > > >&&)
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

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