How to step in to libc source code



  • I'm using qtcreator to debugging some code, and I want to step in to libc source. I have no idea how to do it.

    I have libc source code installed use "apt-source libc6-dev", In ddd debugger I can use follow commands and step in to libc
    directory ~/Desktop/Projects/glibc-2.23/malloc
    directory ~/Desktop/Projects/glibc-2.23/stdlib

    I don't know how to do it in qtcreator, please help me.

    many thanks



  • I know how to do it now.
    In qtcreator menu "tools->options->debugger->gdb"
    we put the commands in "Additional Startup Commands" and "Additional Attach Commands",
    then we can simply step in to any library function we want.

    thank you guys to create the amazing IDE.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.