Hello,

Thus wrote Andrey Kulikov ([email protected]):

> I'm trying to compile with source level debugging enabled using the 1.0.0a
> distribution and I'm not having any luck at all. ?I would appreciate a clue if
> there is one.
> ...
> I'm unable to build a version that gives me source level debug
> using gdb and I can't figure out why. Anyone?


there's a number of debugging targets in Configure. For OpenSSL-1.0.0a
on Linux i386, you can simply do

./Configure debug-linux-elf-noefence
make clean
make

and you have debug infos enabled

gdb ./apps/openssl
[...]
(gdb) break main
Breakpoint 1 at 0x8049c76: file openssl.c, line 224.
(gdb) run version
Starting program: /home/kaiser/src/openssl-1.0.0a/apps/openssl version

Breakpoint 1, main (Argc=2, Argv=0xbf8b5174) at openssl.c:224
224             char *to_free=NULL;
(gdb) list
219     #define PROG_NAME_SIZE  39
220             char pname[PROG_NAME_SIZE+1];
221             FUNCTION f,*fp;
222             MS_STATIC const char *prompt;
223             MS_STATIC char buf[1024];
224             char *to_free=NULL;
225             int n,i,ret=0;
226             int argc;
227             char **argv,*p;
228             LHASH_OF(FUNCTION) *prog=NULL;
(gdb) quit
The program is running.  Exit anyway? (y or n) y


Best regards,

   Martin
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to