How to associate source files with dynamic library

68 views Asked by At

I need to debug Postgres foreign data wrapper mysql_fdw.so. In Clion i try to attach postgres process.

Debugger attached to process 8818

In source code of fdw i try to set break points, but it says no executable code associated with this line.

How can i associate source code? Or can i debug this in another way?

compile commands:

gcc -g3 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -g -ggdb -O0 -fno-omit-frame-pointer  -I/usr/local/mysql/include -g3 -D _MYSQL_LIBNAME=\"libmysqlclient.dylib\" -I. -I./ -I/usr/local/pgsql/include/server -I/usr/local/pgsql/include/internal  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk    -c -o mysql_fdw.o mysql_fdw.c
gcc -g3 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -g -ggdb -O0 -fno-omit-frame-pointer  -bundle -multiply_defined suppress -o mysql_fdw.so connection.o option.o deparse.o mysql_query.o mysql_fdw.o -L/usr/local/pgsql/lib  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk   -Wl,-dead_strip_dylibs   -bundle_loader /usr/local/pgsql/bin/postgres
0

There are 0 answers