Remote debugging of gdb in Ubuntu -- warning: cocould not load vsyscall page because no executable was specified solution 1. first install gdbserver apt-get install gdbserver 2. compile the-g program gcc-g test_gdb.c-o test_gdb Source Code as follows: # include "Util. h "void p1 () {int j = 0; char * p; * p = '5'; printf (" % p % c ", p, * p ); do {j ++;} while (j <10);} void p2 () {int j = 0; while (j <20) {j = j + j * j ;}} int main (int argc, char ** argv) {CreateGerneralThread (P1); CreateGerneralThread (p2); while (1) {sleep (1);} return 0;} 3. run the following statement on the server: gdbserver 192.168.110.138: 9002. /test_gdb will show the following sentence tiger @ ubuntu:/mnt/hgfs/e/Lessons/MyExercise/UtilLibs/THREAD $ gdbserver 192.168.115.250: 9002. /test_gdbProcess. /test_gdb created; pid = 23562 Listening on port 9002 execute the following statements on the client: 1. gdb displays the following: [root @ localhost ~] # Gdb GNU gdb (GDB) Fedora (7.3.50.20151122-9. fc16) Copyright (C) 2011 Free Software Foundation, Inc. license GPLv3 +: gnu gpl version 3 or later