Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
316f967d
Commit
316f967d
authored
May 17, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
After-merge fixes.
parent
771d3d82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
dbug/dbug.c
dbug/dbug.c
+14
-8
No files found.
dbug/dbug.c
View file @
316f967d
...
@@ -256,7 +256,7 @@ static void DBUGCloseFile(CODE_STATE *cs, FILE *fp);
...
@@ -256,7 +256,7 @@ static void DBUGCloseFile(CODE_STATE *cs, FILE *fp);
/* Push current debug settings */
/* Push current debug settings */
static
void
PushState
(
CODE_STATE
*
cs
);
static
void
PushState
(
CODE_STATE
*
cs
);
/* Free memory associated with debug state. */
/* Free memory associated with debug state. */
static
void
FreeState
(
struct
state
*
state
);
static
void
FreeState
(
CODE_STATE
*
cs
,
struct
settings
*
state
);
/* Test for tracing enabled */
/* Test for tracing enabled */
static
BOOLEAN
DoTrace
(
CODE_STATE
*
cs
);
static
BOOLEAN
DoTrace
(
CODE_STATE
*
cs
);
...
@@ -744,7 +744,7 @@ void _db_pop_()
...
@@ -744,7 +744,7 @@ void _db_pop_()
if
(
discard
->
next
!=
NULL
)
if
(
discard
->
next
!=
NULL
)
{
{
cs
->
stack
=
discard
->
next
;
cs
->
stack
=
discard
->
next
;
FreeState
(
discard
);
FreeState
(
cs
,
discard
);
}
}
}
}
...
@@ -1432,7 +1432,8 @@ static void PushState(CODE_STATE *cs)
...
@@ -1432,7 +1432,8 @@ static void PushState(CODE_STATE *cs)
*
*
*/
*/
static
void
FreeState
(
static
void
FreeState
(
struct
state
*
state
)
CODE_STATE
*
cs
,
struct
settings
*
state
)
{
{
if
(
!
is_shared
(
state
,
keywords
))
if
(
!
is_shared
(
state
,
keywords
))
FreeList
(
state
->
keywords
);
FreeList
(
state
->
keywords
);
...
@@ -1469,12 +1470,17 @@ struct state *state)
...
@@ -1469,12 +1470,17 @@ struct state *state)
*/
*/
void
_db_end_
()
void
_db_end_
()
{
{
reg1
struct
state
*
discard
;
struct
settings
*
discard
;
while
((
discard
=
stack
)
!=
NULL
)
{
CODE_STATE
*
cs
=
0
;
stack
=
discard
->
next_state
;
FreeState
(
discard
);
get_code_state_or_return
;
while
((
discard
=
cs
->
stack
)
!=
NULL
)
{
if
(
discard
==
&
init_settings
)
break
;
cs
->
stack
=
discard
->
next
;
FreeState
(
cs
,
discard
);
}
}
_db_on_
=
0
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment