|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Nov 2002
Città: Morbegno (SO)
Messaggi: 1410
|
gdb debugging symbols
ho un problema a generare i simboli di debug, che dovrebbe essere una cretinata
Codice:
-<mason@ariel>--<lun 2- 2:07>-$ gdb -<vim>- GNU gdb 6.3 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i486-slackware-linux". (gdb) file /opt/bin/vim Reading symbols from /opt/bin/vim...(no debugging symbols found)...done. Using host libthread_db library "/lib/tls/libthread_db.so.1". per quanto riguarda invece da root Codice:
-<root@ariel>--<lun 2- 2:16>-$ export|grep CFLA -<vim>- CFLAGS='-Os -march=pentium3 -fomit-frame-pointer -pipe -g' visto che non funge, dove sbaglio? dovrebbe essere una cretinata ma non funge.
__________________
e' difficile cio' che non si conosce Tic Tac Andrew Morton, 15/02/2008 LKML:"`tmp' is an awful identifier, and renaming it to `temp' hardly improves it." |
|
|
|
|
|
#2 |
|
Senior Member
Iscritto dal: Apr 2000
Città: Roma
Messaggi: 15625
|
Innanzitutto, ti consiglio di tenere il frame pointer quando compili per debug. Quindi, usa un livello di debug "alto" (ad es. -g3). Infine, verifica che i simboli di debug non vengano "strippati" (-s) in fase di link.
__________________
0: or %edi, %ecx; adc %eax, (%edx); popf; je 0b-22; pop %ebx; fadds 0x56(%ecx); lds 0x56(%ebx), %esp; mov %al, %al andeqs pc, r1, #147456; blpl 0xff8dd280; ldrgtb r4, [r6, #-472]; addgt r5, r8, r3, ror #12 |
|
|
|
|
|
#3 |
|
Senior Member
Iscritto dal: Nov 2002
Città: Morbegno (SO)
Messaggi: 1410
|
risolto thx, lo strippava in fase di installazione
Codice:
cp vim /opt/bin strip /opt/bin/vim
__________________
e' difficile cio' che non si conosce Tic Tac Andrew Morton, 15/02/2008 LKML:"`tmp' is an awful identifier, and renaming it to `temp' hardly improves it." |
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 01:28.



















