

> -----Original Message-----
> From: Dave Page 
> Sent: 21 May 2002 14:39
> To: 'Tom Lane'
> Cc: pgsql-hackers@postgresql.org
> Subject: RE: [HACKERS] More schema queries 
> 
> 
> > Also, you could try setting a breakpoint at
> > RangeVarGetCreationNamespace (in backend/catalog/namespace.c) 
> > to see what it thinks it's doing and what's in 
> > namespace_search_path at the time.
> 
> I'm going to try to do this regardless of the fact it now 
> works - this will be my first play with gdb so it might take 
> me a while but would probably be a useful learning 
> experience. I'll let you know what I find.
> 

Sorry Tom, I know this isn't strictly a PostgreSQL problem, but despite
much time on Google I'm stuck with gdb. I can attach it to the
standalone backend at the relevant point in initdb, and have got it to
break in RangeVarGetCreationNamespace. I can also see the call stack &
registers etc. 

What I cannot do is get it to show me anything useful. I only seem to be
able to step through the assembly code (is it possible to load the C
source?), and more importantly, adding a watch (or print-ing)
namespace_search_path gives: 167839776. Attempting to watch or print
namespaceId gives 'Error: No symbol "namespaceId" in current context.'.

I'd appreciate any pointers you can give me...

Regards, Dave.

Tue, 21 May 2002 16:26:22 +0100
"Dave Page" <dpage@vale-housing.co.uk>
Re: More schema queries 
> What I cannot do is get it to show me anything useful.

It sounds like gdb does not have access to debugging symbol tables.

Firstly, did you compile with -g (configure --enable-debug)?

Secondly, did you point gdb at the postgres executable when you
started it?

			regards, tom lane

Tue, 21 May 2002 11:32:47 -0400
Tom Lane <tgl@sss.pgh.pa.us>
Re: More schema queries 