title: How to make gdb show the original non-mangling function name on disassembly model?
body: <pre><code>void outputString(const char *str) {
    cout &lt;&lt; "outputString(const char *str) : " &lt;&lt; str &lt;&lt; endl;
  }
  </code></pre>
  
  <p>turns out to be </p>
  
  <pre><code>Dump of assembler code for function _Z12outputStringPKc:  
  0x004013ee &lt;_Z12outputStringPKc+0&gt;: push   ebp  
  0x004013ef &lt;_Z12outputStringPKc+1&gt;: mov    ebp,esp  
  0x004013f1 &lt;_Z12outputStringPKc+3&gt;: sub    esp,0x8  
  0x004013f4 &lt;_Z12outputStringPKc+6&gt;: mov    DWORD PTR [esp+4],0x443000  
  0x004013fc &lt;_Z12outputStringPKc+14&gt;:    mov    DWORD PTR [esp],0x4463c0  
  0x00401403 &lt;_Z12outputStringPKc+21&gt;:    call   0x43f6e8  &lt;_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc&gt;  
  0x00401408 &lt;_Z12outputStringPKc+26&gt;:    mov    edx,DWORD PTR [ebp+8]  
  0x0040140b &lt;_Z12outputStringPKc+29&gt;:    mov    DWORD PTR [esp+4],edx  
  0x0040140f &lt;_Z12outputStringPKc+33&gt;:    mov    DWORD PTR [esp],eax  
  0x00401412 &lt;_Z12outputStringPKc+36&gt;:    call  0x43f6e8 &lt;_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc&gt;  
  0x00401417 &lt;_Z12outputStringPKc+41&gt;:    mov    DWORD PTR [esp+4],0x43e4c8  
  0x0040141f &lt;_Z12outputStringPKc+49&gt;:    mov    DWORD PTR [esp],eax  
  0x00401422 &lt;_Z12outputStringPKc+52&gt;:    call   0x42e170 &lt;_ZNSolsEPFRSoS_E&gt;  
  0x00401427 &lt;_Z12outputStringPKc+57&gt;:    leave  
  0x00401428 &lt;_Z12outputStringPKc+58&gt;:    ret    
  End of assembler dump.
  </code></pre>
  
  <p>All the disassemblies show only the manglinged function names,but its not eaiser for programmer to de-mangling and get the original function names with the bother to typing <code>info symbol address</code> for each mangling name met,so are there any methods that could make gdb show non-mangling function names on assembly model?</p>