How to do single step-in of library calls such as accept()

How to do single step-in of library calls such as accept()

Post by Dath » Tue, 27 Dec 2005 16:04:35



Hi Everyone,
I want to do sigle step into the calls such as socket, accept, bind,
etc... I tried compiling with -g option. Even then i get the following
print on gdb.
****************
Breakpoint 2, 0x0073a8d0 in socket () from /lib/tls/libc.so.6
(gdb) n
Single stepping until exit from function socket,
which has no line number information.
main () at siocgifconf.c:20
****************
How do i do sigle stepping here.
Thanks,
-datha
 
 
 

How to do single step-in of library calls such as accept()

Post by Hans-Juergen Lang » Wed, 28 Dec 2005 20:05:07



> Hi Everyone,
> I want to do sigle step into the calls such as socket, accept, bind,
> etc... I tried compiling with -g option. Even then i get the following
> print on gdb.
> ****************
> Breakpoint 2, 0x0073a8d0 in socket () from /lib/tls/libc.so.6
> (gdb) n
> Single stepping until exit from function socket,
> which has no line number information.
> main () at siocgifconf.c:20
> ****************
> How do i do sigle stepping here.
> Thanks,
> -datha

Hello,

you have to compile the libraries with -g as well and dont strip the
symbols from the new build libraries.

BR
Hans-Juergen Lange

 
 
 

1. getty_ps2.0.7 Still my modem does not accepts dial-ins.

Hi folks,

        I just installed getty_ps2.0.7, and I still can NOT get the
d*mn thing to work.

        I used an example uugetty.config file supplied with the
getty_ps package, and still NO GO.

I can dialout using kermit, and life is good. Dialins however do NOT
work.

getty does a LOOP_BACK through the modem. the RD and SD lights BOTH
light up, and it tries using "Softlanding software" as a login name.

As expected the thing chews hard, and thats about all it does.

Does ANYONE have a clue?

I tried playing with stty crtscts < dev/ttyS0, but NO help there...
maybee I'm not doing it right. (example please)

If anyone has to knowhow to help me, please email me. My machine is on
Internet, and anyone can telnet in if they wish to check out the
problem first hand.

I'm using a ZENITH (pos) 2400 modem.
I AM running on a DELL computer using a 9 -> 25 pin converter, but I
think that should be ok.

Thanx for the help,

        MikeE

2. Open Desktop

3. Security from outside call-ins

4. Remote printers are slow when dsl/gateway is down

5. How To Write SINGLE STEP debugger under SPARC

6. Multia settings

7. How to emulate single step ?

8. remote procedure call question

9. Debugging modules with kgdb - single stepping issues

10. System Call, Library Call and Process Size

11. VmWare Single Stepping

12. [v850] Add v850 support for hardware single-step (via ptrace)

13. need help with UNIX/SPARC/ptrace() single stepping...