Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
llvm-epi-0.8
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Roger Ferrer
llvm-epi-0.8
Commits
fd4177d9
Commit
fd4177d9
authored
13 years ago
by
Johnny Chen
Browse files
Options
Downloads
Patches
Plain Diff
Check in main.c modified for testing hardware watchpoints on arm architectures.
llvm-svn: 153268
parent
817a7c6f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lldb/test/functionalities/watchpoint/hello_watchpoint/main.c
+6
-0
6 additions, 0 deletions
lldb/test/functionalities/watchpoint/hello_watchpoint/main.c
with
6 additions
and
0 deletions
lldb/test/functionalities/watchpoint/hello_watchpoint/main.c
+
6
−
0
View file @
fd4177d9
...
...
@@ -10,6 +10,8 @@
#include
<stdint.h>
int32_t
global
=
10
;
// Watchpoint variable declaration.
char
gchar1
=
'a'
;
char
gchar2
=
'b'
;
int
main
(
int
argc
,
char
**
argv
)
{
int
local
=
0
;
...
...
@@ -17,8 +19,12 @@ int main(int argc, char** argv) {
printf
(
"about to write to 'global'...
\n
"
);
// Set break point at this line.
// When stopped, watch 'global' for write.
global
=
20
;
gchar1
+=
1
;
gchar2
+=
1
;
local
+=
argc
;
++
local
;
printf
(
"local: %d
\n
"
,
local
);
printf
(
"global=%d
\n
"
,
global
);
printf
(
"gchar1='%c'
\n
"
,
gchar1
);
printf
(
"gchar2='%c'
\n
"
,
gchar2
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment