Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set can-use-hw-watchpoints 0
- set pagination off
- def time_cont
- python import time
- python start = time.time()
- c
- python print (time.time() - start)
- end
- tb main
- r
- b multi
- time_cont
- watch i
- commands
- cont
- end
- watch vet
- commands
- cont
- end
- set can-use-hw-watchpoints 1
- set pagination off
- def time_cont
- python import time
- python start = time.time()
- c
- python print (time.time() - start)
- end
- tb main
- r
- b multi
- c
- watch numb
- watch array
- time_cont
- set can-use-hw-watchpoints 0
- set pagination off
- tb main
- r
- b multi
- c
- python import time
- python start = time.time()
- watch -l numb1
- commands
- c
- end
- watch -l numb2
- commands
- c
- end
- watch -l numb3
- commands
- c
- end
- watch -l numb4
- commands
- c
- end
- watch -l numb5
- commands
- c
- end
- watch -l array
- commands
- python print (time.time() - start)
- end
- c
- RR
- ----
- set can-use-hw-watchpoints 0
- set pagination off
- tb main
- c
- b multi
- c
- python import time
- python start = time.time()
- watch array
- commands
- python print (time.time() - start)
- end
- c
- GDB
- ----
- set can-use-hw-watchpoints 0
- set pagination off
- tb main
- r
- b multi
- c
- python import time
- python start = time.time()
- watch -l array
- commands
- python print (time.time() - start)
- end
- c
- set print array-indexes on
- watch array10x10
- watch var
- watch -l var
- watch *(unsigned int *)addr
- https://stackoverflow.com/questions/3206332/gdb-stops-with-too-many-watchpoints-when-there-is-only-one
- https://stackoverflow.com/questions/3470704/setting-gdb-hardware-watchpoint-how-to-set-software-watchpoint
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement