This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problem Attaching process to Insight


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]