Project

General

Profile

Actions

Bug #3920

closed

Matching for typedef names any parameters wildcard works incorrectly sometimes

Added by Evgeny Novikov almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
High
Category:
-
Start date:
02/06/2013
Due date:
% Done:

0%

Estimated time:
Detected in build:
svn
Platform:
Published in build:

Description

During reimplementing of 43_1a model after #3802 implementation it was noticed that a new version of model doesn't work. In fact this is due to incorrect matching for any parameters wildcard with typedef names. The minimal example I could obtain is
test4.c:

typedef short S;
typedef int I;
static inline void *func(S a, I b)
{
  return a ? &a : &b;
}

test4.aspect:
before: execution(static inline void * func(.., I arg2, ..))
{
  return 0;
}

(it is important that function argument types are typedefs and there is trailing '..' at the end of function signature in pointcut).


Related issues 1 (0 open1 closed)

Blocks C Instrumentation Framework - Feature #3802: Add ability to refer to function argument by its name specified in aspect fileClosedEvgeny Novikov12/14/2012

Actions
Actions

Also available in: Atom PDF