Re: [Dpcl-develop] Re: SOT_statment source type
Brought to you by:
dpcl-admin,
dwootton
|
From: Albert F. <al...@us...> - 2005-01-15 01:21:16
|
Steve,
I don't have comments on the context of the SOT_statment, but we were
burned before by the std:: templates in the library header.
The problem is that the libdpcl.a and the tool writer may use different
version of compiler, which means the imprementation of std library may
change (and it did change before)
We use count(), get_xxxx() service functions to avoid the std:: at any
cost.
Albert Feng
Steve Collins <sl...@sg...>
Sent by: dpc...@ww...
01/14/2005 04:22 PM
To
dpc...@ww...
cc
sl...@sg...
Subject
[Dpcl-develop] Re: SOT_statment source type
Actually, upon further review (a football thing), I think John Robb's
idea to parallel 'get_function_list' is the way to go. Bill Hachfeld of
SGI will be writing the DPCL 'mutator' that will use this new
functionality
and he proposes an addition to the DPCL API ('bget_all_statements) that
would
be implemented only at the ModuleObj level and starts in SourceObj.h as
follows:
> >
/*******************************************************************************
> > * Changes for "dpcl/src/lib/include/SourceObj.h"
> >
******************************************************************************/
> >
> > class SourceObj
> > {
> >
> > public:
> >
> > /**
> > * Statement information.
> > *
> > * Structure describing a single source statement. Provides the
source file
> > * name, line number, column number, and address ranges of the
statement.
> > *
> > * @note If it is too difficult to combine disjoint address
ranges for a
> > * single source statement in the DPCL communication
daemon, you
> > * can generate multiple StatementInfo, one for each
disjoint
> > * address range, and I can combine them in the
framework.
> > */
> > struct StatementInfo {
> > std::string file; /**< Source file name. */
> > int line; /**< Source line number. */
> > int column; /**< Source column number. */
> >
> > /** List of address ranges (start/end). */
> > std::vector< std::pair<AisAddress, AisAddress> > ranges;
> >
> > };
> >
> > /**
> > * Get all statements.
> > *
> > * Blocking request to get all of the source statement information
for this
> > * module.
> > *
> > * @param process Process in which the module is located.
> > * @param result List of statement information for this
module.
> > * @return Status of the request.
> > */
> > AisStatus bget_all_statements(const Process& process,
> > std::vector<LineInfo>& result);
> >
> >
Comments more than welcome.
SteveC - SGI Tools
_______________________________________________
Dpcl-develop mailing list
Dpc...@ww...
http://www-124.ibm.com/developerworks/oss/mailman/listinfo/dpcl-develop
|