gdb - Debugging shared object in eclipse Juno -
i creating contrib module in postgresql have problem debugging in eclipse juno. following debugging process outlined @ http://wiki.postgresql.org/wiki/working_with_eclipse#debugging_postgresql_from_eclipse
in short
- start postgresql server eclipse, ensured contrib being loaded
- start debug configuration of type c-attach application , attach postgresql server process.
- execute psql command prompt , expect execution stop @ breakpoint in contrib module.
problem breakpoints ignored in contrib module , keep seeing message "detaching after fork child process xxxx".
i have ensured following 1. debug configuration points contrib shared library so. 2. debug configuration points contrib source 3. in preferences debug have added source lookup path pointing contrib module.
note: compiling contrib module outside eclipse, reason cannot drop make file in make view within eclipse.
any pointers regards sameer
solved problem. attaching gdb wrong process i.e postmaster. should attached process id forked postmaster once psql (sql client) connects postgresql instance thanks
Comments
Post a Comment