I have no idea then, sorry. P.
On Sun, Nov 15, 2015 at 11:46 AM, Ruby Tahboub <[email protected]> wrote: > Hi Paul, > > I did enable debugging in my postgres: ./configure > --prefix=/usr/local/pgsql2/ CFLAGS="-g -O0" --enable-debug > > The only issue the debugger does not step into anything defined inside > (postgis/gserialized_gist_2d.c or postgis/gserialized_gist_nd.c) but it > steps into other locations. What do you think? > > Here's an example: > > SELECT ST_Intersects(ST_GeographyFromText('SRID=4326;LINESTRING(-43.23456 > 72.4567,-43.23456 72.4568)'), > ST_GeographyFromText('SRID=4326;POINT(-43.23456 72.4567772)')) > > > I placed a breakpoint inside postgres in: > > /src/backend/executor/execQual.c inside function: > ExecMakeFunctionResultNoSets in Line: > > result = FunctionCallInvoke(fcinfo); // as you already know, this is the > postgres macro which invokes functions as the ones defined inside postgis > > The debugger nicely stepped into postgis/geography_inout.c function: > geography_from_text but NOT gserialized_overlaps defined inside > postgis/gserialized_overlaps_nd > > > Thanks, > Ruby > > On Sun, Nov 15, 2015 at 11:36 AM, Paul Ramsey <[email protected]> > wrote: >> >> In addition to building your postgis with debugging (as you have done) >> you need to build your postgresql with debugging on, because the >> ./postgis directory inherits its build configuration from the >> postgresql sources (thanks to pgxs, a mixed blessing). So go back and >> rebuild your postgresql too. >> >> ATB, >> P >> >> On Sat, Nov 14, 2015 at 2:30 PM, Ruby Tahboub <[email protected]> >> wrote: >> > Dear PostGIS-Users, >> > >> > I'm debugging the sources of PostGIS (using Eclipse) for the purpose of >> > understanding how spatial predicates work and how to go about adding new >> > ones. I noticed that I can't step into postgis/gserialized_gist_2d.c, >> > other >> > locations under the same directory e.g., >> > postgis/geography_measurements.c >> > can step into nicely. Could you double check my configurations: >> > >> > CFLAGS="-g3 -O0" ./configure >> > --with-pgconfig=/usr/local/pgsql2/bin/pg_config >> > --with-projdir=/usr/local --enable-debug >> > >> > postgis-2.2.0dev >> > >> > Thanks, >> > Ruby >> > >> > _______________________________________________ >> > postgis-users mailing list >> > [email protected] >> > http://lists.osgeo.org/mailman/listinfo/postgis-users >> _______________________________________________ >> postgis-users mailing list >> [email protected] >> http://lists.osgeo.org/mailman/listinfo/postgis-users > > > > _______________________________________________ > postgis-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/postgis-users _______________________________________________ postgis-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/postgis-users
