Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
6de69667
Commit
6de69667
authored
Dec 29, 2020
by
Antoine Kaufmann
Browse files
tracing: constructor for sym map to initialize everything
parent
844fe4cb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
trace/process.h
trace/process.h
+2
-0
trace/sym_map.cpp
trace/sym_map.cpp
+6
-0
No files found.
trace/process.h
View file @
6de69667
...
@@ -17,6 +17,8 @@ class sym_map {
...
@@ -17,6 +17,8 @@ class sym_map {
std
::
map
<
uint64_t
,
std
::
string
>
map
;
std
::
map
<
uint64_t
,
std
::
string
>
map
;
std
::
map
<
uint64_t
,
std
::
string
>
map_ins
;
std
::
map
<
uint64_t
,
std
::
string
>
map_ins
;
sym_map
();
void
add_filter
(
const
std
::
string
&
sym
);
void
add_filter
(
const
std
::
string
&
sym
);
void
load_file
(
const
char
*
path
,
uint64_t
offset
=
0
);
void
load_file
(
const
char
*
path
,
uint64_t
offset
=
0
);
...
...
trace/sym_map.cpp
View file @
6de69667
...
@@ -3,6 +3,12 @@
...
@@ -3,6 +3,12 @@
#include "parser.h"
#include "parser.h"
#include "process.h"
#include "process.h"
sym_map
::
sym_map
()
:
filter_en
(
false
),
insmap_en
(
false
)
{
}
void
sym_map
::
add_filter
(
const
std
::
string
&
sym
)
void
sym_map
::
add_filter
(
const
std
::
string
&
sym
)
{
{
filter_en
=
true
;
filter_en
=
true
;
...
...
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