Fix code style.

Signed-off-by: Ricky Zhang <rickyzhang@gmail.com>
This commit is contained in:
Ricky Zhang 2017-09-04 08:00:45 -04:00
parent d2bb35ee5a
commit 597ff0666c
No known key found for this signature in database
GPG Key ID: 681AFAEF6CDEDB4C

View File

@ -325,7 +325,7 @@ void break_point_add(void)
BREAK_POINT_SET::iterator it; BREAK_POINT_SET::iterator it;
// Save break point // Save break point
if((it = disabled_break_points.find(address)) == disabled_break_points.end()) if ((it = disabled_break_points.find(address)) == disabled_break_points.end())
active_break_points.insert(address); active_break_points.insert(address);
else { else {
disabled_break_points.erase(it); disabled_break_points.erase(it);
@ -386,7 +386,7 @@ void break_point_disable(void)
{ {
uintptr index; uintptr index;
if(!validate_index(&index, active_break_points)) if (!validate_index(&index, active_break_points))
return; return;
if (0 == index) { if (0 == index) {
@ -414,7 +414,7 @@ void break_point_enable(void)
{ {
uintptr index; uintptr index;
if(!validate_index(&index, disabled_break_points)) if (!validate_index(&index, disabled_break_points))
return; return;
if (0 == index) { if (0 == index) {
@ -526,7 +526,7 @@ void break_point_load(void)
if (!(file = fopen(mon_string, "r"))) if (!(file = fopen(mon_string, "r")))
mon_error("Unable to create file"); mon_error("Unable to create file");
else{ else {
char line_buff[1024]; char line_buff[1024];
bool is_disabled_break_points = false;; bool is_disabled_break_points = false;;