Browse Source

!16032 [Debugger] Fixing ci alarm on typedef in r1.2

From: @tina_mengting_zhang
Reviewed-by: @john_tzanakakis,@lilongfei15
Signed-off-by: @lilongfei15
pull/16032/MERGE
mindspore-ci-bot Gitee 5 years ago
parent
commit
8fe0e28b48
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      mindspore/ccsrc/debug/debug_services.h

+ 6
- 6
mindspore/ccsrc/debug/debug_services.h View File

@@ -66,12 +66,12 @@ class DebugServices {
RANGE
};

typedef struct condition {
struct condition_t {
CONDITION_TYPE type;
float parameter = 0;
} condition_t;
};

typedef struct parameter {
struct parameter_t {
std::string name;
bool disabled;
double_t value;
@@ -97,9 +97,9 @@ class DebugServices {

hit = condition_check[inequality_type];
}
} parameter_t;
};

typedef struct watchpoint {
struct watchpoint_t {
unsigned int id;
condition_t condition;
std::vector<std::tuple<std::string, bool>> check_node_list;
@@ -165,7 +165,7 @@ class DebugServices {
bool change_condition() const {
return condition.type == CHANGE_TOO_LARGE || condition.type == CHANGE_TOO_SMALL || condition.type == NOT_CHANGED;
}
} watchpoint_t;
};

void AddWatchpoint(unsigned int id, unsigned int watch_condition, float parameter,
const std::vector<std::tuple<std::string, bool>> &check_node_list,


Loading…
Cancel
Save