How to set gdb to follow the child process as well? By typing in set follow-fork-mode child when launched gdb and before running. By default, when a program forks , GDB will continue to debug the parent process and the child process will run unimpeded. If you want to follow the child process instead of the parent process, use the command set follow - fork - mode . Set the debugger response to a program call of fork or vfork . When you want to debug B in another process which is a child process of A, then you have to set this mode.
How to create a symbolic or soft link? syntax: ln [-s] source symbolic link e.g: ln -s src/build/llvm/install/bin ./my_bin How to grep all file exclude a ctag file : tags? alias gnt='grep -rn --exclude="tags"' How to get the current directory of the running script? DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" Bash maintains a number of variables including BASH_SOURCE which is an array of source file pathnames. ${} acts as a kind of quoting for variables. $() acts as a kind of quoting for commands but they're run in their own context. dirname gives you the path portion of the provided argument. cd changes the current directory. pwd gives the current path. && is a logical and but is used in this instanc...
Comments
Post a Comment