I am trying to debug MongoDB 3.2.7 using GDB.
~/mongodb/mongodb-src-r3.2.7/build/debug/mongo$ gdb mongod
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from mongod...done.
(gdb) break parseArrayOfCoordinates
Function "parseArrayOfCoordinates" not defined.
Make breakpoint pending on future shared library load? (y or [n])
This breakpoint is never hit. I also tried starting mongodb outside of GDB and attaching GDB to the mongod process.. No success there as well.
Am I missing anything here? I greatly appreciate any help.
Thanks in advance.