This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Problem Attaching process to Insight
- From: Aniket Kulkarni <aniket_kulkarni at persistent dot co dot in>
- To: gdb at sources dot redhat dot com
- Date: Mon, 19 Nov 2001 11:18:38 +0530
- Subject: Problem Attaching process to Insight
- Reply-to: aniket_kulkarni at persistent dot co dot in
Hi!
>
> I am running the postgres v.7.1 on under Cygwin on Win NT 4.0. I tried
> to use the gdb (Insight 5.0) to debug the postgres.exe then it gave
> the following problem :
>
> I first started the ipc-deamon and the postmaster
> then started gdb as
> gdb /usr/loca/pgsql/bin/postmaster
>
> Then I started the psql client as
> psql -U postgres
>
> Then I found the pid of the newly forked postmaster (i.e. postgres.exe
> process) and then tried to attach that porcess in the gdb
> On the console window :
>
> (gdb) attach 381
> "/cygdrive/c/WINNT/System32/ntdll.dll": error reading line numbers
>
> "/cygdrive/c/WINNT/system32/KERNEL32.dll": error reading line numbers
>
> "/cygdrive/c/WINNT/System32/advapi32.dll": error reading line numbers
>
> "/cygdrive/c/WINNT/System32/ws2_32.dll": error reading line numbers
>
> "/cygdrive/c/WINNT/system32/WS2HELP.dll": error reading line numbers
>
> "/cygdrive/c/WINNT/system32/msafd.dll": error reading line numbers
>
> "/cygdrive/c/WINNT/System32/wshtcpip.dll": error reading line numbers
>
> "/cygdrive/c/WINNT/system32/WSOCK32.dll": error reading line numbers
>
> "/cygdrive/c/WINNT/system32/WSOCK32.dll": error reading line numbers
>
> [Switching to thread 381.0x171]
>
> Attaching to program `/usr/local/pgsql/bin/postmaster', process 381
>
> After this I put my breakpoint and continue. But when I execute the
> queries, the debugger doesnot stop at the breakpoint
> and client completes the execution.
>
> Can anyone help me
>
> Regards
> Aniket