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

  1. start postgresql server eclipse, ensured contrib being loaded
  2. start debug configuration of type c-attach application , attach postgresql server process.
  3. 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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -