How to gdb openssl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

How to gdb openssl

apex
This post has NOT been accepted by the mailing list yet.
i have try compile the openssl with./config -d .
and was able read debugging symbol in gdb.

However, i have completely no idea to know whether i was success or not ?
And in which way how i can i check i was success??

Say,for example, if i want to generate a random number using openssl ,
rand -base64 6
how can i step and debug in the openssl ?

many thanks.

And once i stop the gdb , it shows
Program received signal SIGINT, Interrupt.
0x00007ffff73e8680 in __read_nocancel () at ../sysdeps/unix/syscall-template.S:84
84 ../sysdeps/unix/syscall-template.S: No such file or directory.

is it normal?


(gdb) info source
Current source file is openssl.c
Compilation directory is /home/apex/jssl/openssl_102/apps
Located in /home/apex/jssl/openssl_102/apps/openssl.c
Contains 696 lines.
Source language is c.
Producer is GNU C11 5.4.0 20160609 -m64 -mtune=generic -march=x86-64 -g -fPIC -fstack-protector-strong.
Compiled with DWARF 2 debugging format.
Does not include preprocessor macro info.

(gdb) info sharedlibrary
From                To                  Syms Read   Shared Object Library
0x00007ffff7dd7ac0  0x00007ffff7df5640  Yes         /lib64/ld-linux-x86-64.so.2
0x00007ffff7b6b910  0x00007ffff7bbd651  Yes         /home/apex/jssl/lib/libssl.so.1.0.0
0x00007ffff7723c00  0x00007ffff78a2f5f  Yes         /home/apex/jssl/lib/libcrypto.so.1.0.0
0x00007ffff73118b0  0x00007ffff7463f14  Yes         /lib/x86_64-linux-gnu/libc.so.6
0x00007ffff70eeda0  0x00007ffff70ef98e  Yes         /lib/x86_64-linux-gnu/libdl.so.2
Loading...