Skip to content

Instantly share code, notes, and snippets.

@matthijskooijman
Created October 8, 2015 16:19
Show Gist options
  • Save matthijskooijman/d313771e14021fa64914 to your computer and use it in GitHub Desktop.
Save matthijskooijman/d313771e14021fa64914 to your computer and use it in GitHub Desktop.
2015/10/08 18:15:33 {
2015/10/08 18:15:33 "class": "thread-group-added",
2015/10/08 18:15:33 "payload": {
2015/10/08 18:15:33 "id": "i1"
2015/10/08 18:15:33 },
2015/10/08 18:15:33 "type": "notify"
2015/10/08 18:15:33 }
2015/10/08 18:15:33 Open On-Chip Debugger 0.9.0-gd4b7679 (2014-10-03-00:26)
2015/10/08 18:15:33 Licensed under GNU GPL v2
2015/10/08 18:15:33 For bug reports, read
2015/10/08 18:15:33 http://openocd.org/doc/doxygen/bugs.html
2015/10/08 18:15:33 Info : only one transport option; autoselect 'swd'
2015/10/08 18:15:33 adapter speed: 500 kHz
2015/10/08 18:15:33 adapter_nsrst_delay: 100
2015/10/08 18:15:33 cortex_m reset_config sysresetreq
2015/10/08 18:15:33 Info : CMSIS-DAP: SWD Supported
2015/10/08 18:15:33 Info : CMSIS-DAP: Interface Initialised (SWD)
2015/10/08 18:15:33 Info : CMSIS-DAP: FW Version = 02.01.0157
2015/10/08 18:15:33 Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 1
2015/10/08 18:15:33 Info : CMSIS-DAP: Interface ready
2015/10/08 18:15:33 Info : clock speed 500 kHz
2015/10/08 18:15:33 Info : SWD IDCODE 0x0bc11477
2015/10/08 18:15:33 Info : at91samd21g18.cpu: hardware has 4 breakpoints, 2 watchpoints
2015/10/08 18:15:33 Info : accepting 'gdb' connection from pipe
2015/10/08 18:15:33 Info : SAMD MCU: SAMD21G18A (256KB Flash, 32KB RAM)
2015/10/08 18:15:33 undefined debug reason 7 - target needs reset
2015/10/08 18:15:33 {
2015/10/08 18:15:33 "class": "thread-group-started",
2015/10/08 18:15:33 "payload": {
2015/10/08 18:15:33 "id": "i1",
2015/10/08 18:15:33 "pid": "42000"
2015/10/08 18:15:33 },
2015/10/08 18:15:33 "type": "notify"
2015/10/08 18:15:33 }
2015/10/08 18:15:33 {
2015/10/08 18:15:33 "class": "thread-created",
2015/10/08 18:15:33 "payload": {
2015/10/08 18:15:33 "group-id": "i1",
2015/10/08 18:15:33 "id": "1"
2015/10/08 18:15:33 },
2015/10/08 18:15:33 "type": "notify"
2015/10/08 18:15:33 }
2015/10/08 18:15:34 Stopped at StringAdditionOperator.ino:41
2015/10/08 18:15:34 41 Serial.println(stringThree); // prints " You added 123456789"
>>> break-insert loop
2015/10/08 18:15:42 {
2015/10/08 18:15:42 "bkpt": {
2015/10/08 18:15:42 "addr": "0x00002112",
2015/10/08 18:15:42 "disp": "keep",
2015/10/08 18:15:42 "enabled": "y",
2015/10/08 18:15:42 "file": "/home/matthijs/docs/Electronics/Arduino/Arduino-1.5/build/linux/work/examples/08.Strings/StringAdditionOperator/StringAdditionOperator.ino",
2015/10/08 18:15:42 "fullname": "/home/matthijs/docs/Electronics/Arduino/Arduino-1.5/build/linux/work/examples/08.Strings/StringAdditionOperator/StringAdditionOperator.ino",
2015/10/08 18:15:42 "func": "loop()",
2015/10/08 18:15:42 "line": "36",
2015/10/08 18:15:42 "number": "1",
2015/10/08 18:15:42 "original-location": "loop",
2015/10/08 18:15:42 "thread-groups": [
2015/10/08 18:15:42 "i1"
2015/10/08 18:15:42 ],
2015/10/08 18:15:42 "times": "0",
2015/10/08 18:15:42 "type": "breakpoint"
2015/10/08 18:15:42 }
2015/10/08 18:15:42 }
>>> interpreter-exec console "monitor reset halt"
2015/10/08 18:15:57 target state: halted
2015/10/08 18:15:57 target halted due to debug-request, current mode: Thread
2015/10/08 18:15:57 xPSR: 0x01000000 pc: 0x00000858 msp: 0x200023a0
2015/10/08 18:15:57 {
2015/10/08 18:15:57 "payload": "target state: halted\n",
2015/10/08 18:15:57 "type": "target"
2015/10/08 18:15:57 }
2015/10/08 18:15:57 {
2015/10/08 18:15:57 "payload": "target halted due to debug-request, current mode: Thread \n",
2015/10/08 18:15:57 "type": "target"
2015/10/08 18:15:57 }
2015/10/08 18:15:57 {
2015/10/08 18:15:57 "payload": "xPSR: 0x01000000 pc: 0x00000858 msp: 0x200023a0\n",
2015/10/08 18:15:57 "type": "target"
2015/10/08 18:15:57 }
>>> exec-continue
2015/10/08 18:16:01 Note: automatically using hardware breakpoints for read-only addresses.
2015/10/08 18:16:01 Running...
2015/10/08 18:16:02 {
2015/10/08 18:16:02 "class": "breakpoint-modified",
2015/10/08 18:16:02 "payload": {
2015/10/08 18:16:02 "bkpt": {
2015/10/08 18:16:02 "addr": "0x00002112",
2015/10/08 18:16:02 "disp": "keep",
2015/10/08 18:16:02 "enabled": "y",
2015/10/08 18:16:02 "file": "/home/matthijs/docs/Electronics/Arduino/Arduino-1.5/build/linux/work/examples/08.Strings/StringAdditionOperator/StringAdditionOperator.ino",
2015/10/08 18:16:02 "fullname": "/home/matthijs/docs/Electronics/Arduino/Arduino-1.5/build/linux/work/examples/08.Strings/StringAdditionOperator/StringAdditionOperator.ino",
2015/10/08 18:16:02 "func": "loop()",
2015/10/08 18:16:02 "line": "36",
2015/10/08 18:16:02 "number": "1",
2015/10/08 18:16:02 "original-location": "loop",
2015/10/08 18:16:02 "thread-groups": [
2015/10/08 18:16:02 "i1"
2015/10/08 18:16:02 ],
2015/10/08 18:16:02 "times": "1",
2015/10/08 18:16:02 "type": "breakpoint"
2015/10/08 18:16:02 }
2015/10/08 18:16:02 },
2015/10/08 18:16:02 "type": "notify"
2015/10/08 18:16:02 }
2015/10/08 18:16:02 breakpoint-hit
2015/10/08 18:16:02 Stopped at StringAdditionOperator.ino:36
2015/10/08 18:16:02 36 stringThree = stringOne + 123;
>>> var-create - @ stringThree
2015/10/08 18:16:15 {
2015/10/08 18:16:15 "has_more": "0",
2015/10/08 18:16:15 "name": "var1",
2015/10/08 18:16:15 "numchild": "1",
2015/10/08 18:16:15 "type": "String",
2015/10/08 18:16:15 "value": "{...}"
2015/10/08 18:16:15 }
>>> exec-next
2015/10/08 18:16:31 Running...
2015/10/08 18:16:31 end-stepping-range
2015/10/08 18:16:31 Stopped at StringAdditionOperator.ino:34
2015/10/08 18:16:31 34 void loop() {
>>> exec-next
2015/10/08 18:16:36 Running...
2015/10/08 18:16:36 end-stepping-range
2015/10/08 18:16:36 Stopped at StringAdditionOperator.ino:36
2015/10/08 18:16:36 36 stringThree = stringOne + 123;
>>> exec-next
2015/10/08 18:16:44 Running...
2015/10/08 18:16:45 end-stepping-range
2015/10/08 18:16:45 Stopped at StringAdditionOperator.ino:37
2015/10/08 18:16:45 37 Serial.println(stringThree); // prints "stringThree = 123"
>>> var-update --all-values *
2015/10/08 18:16:51 {
2015/10/08 18:16:51 "changelist": []
2015/10/08 18:16:51 }
>>> var-list-children var1
2015/10/08 18:17:07 {
2015/10/08 18:17:07 "children": [
2015/10/08 18:17:07 {
2015/10/08 18:17:07 "child": {
2015/10/08 18:17:07 "exp": "protected",
2015/10/08 18:17:07 "name": "var1.protected",
2015/10/08 18:17:07 "numchild": "3"
2015/10/08 18:17:07 }
2015/10/08 18:17:07 }
2015/10/08 18:17:07 ],
2015/10/08 18:17:07 "has_more": "0",
2015/10/08 18:17:07 "numchild": "1"
2015/10/08 18:17:07 }
>>> var-list-children var1.protected
2015/10/08 18:17:13 {
2015/10/08 18:17:13 "children": [
2015/10/08 18:17:13 {
2015/10/08 18:17:13 "child": {
2015/10/08 18:17:13 "exp": "buffer",
2015/10/08 18:17:13 "name": "var1.protected.buffer",
2015/10/08 18:17:13 "numchild": "1",
2015/10/08 18:17:13 "type": "char *"
2015/10/08 18:17:13 }
2015/10/08 18:17:13 },
2015/10/08 18:17:13 {
2015/10/08 18:17:13 "child": {
2015/10/08 18:17:13 "exp": "capacity",
2015/10/08 18:17:13 "name": "var1.protected.capacity",
2015/10/08 18:17:13 "numchild": "0",
2015/10/08 18:17:13 "type": "unsigned int"
2015/10/08 18:17:13 }
2015/10/08 18:17:13 },
2015/10/08 18:17:13 {
2015/10/08 18:17:13 "child": {
2015/10/08 18:17:13 "exp": "len",
2015/10/08 18:17:13 "name": "var1.protected.len",
2015/10/08 18:17:13 "numchild": "0",
2015/10/08 18:17:13 "type": "unsigned int"
2015/10/08 18:17:13 }
2015/10/08 18:17:13 }
2015/10/08 18:17:13 ],
2015/10/08 18:17:13 "has_more": "0",
2015/10/08 18:17:13 "numchild": "3"
2015/10/08 18:17:13 }
>>> var-update --all-values *
2015/10/08 18:17:18 {
2015/10/08 18:17:18 "changelist": []
2015/10/08 18:17:18 }
>>> exec-next
2015/10/08 18:17:22 Running...
2015/10/08 18:17:22 end-stepping-range
2015/10/08 18:17:22 Stopped at StringAdditionOperator.ino:40
2015/10/08 18:17:22 40 stringThree = stringOne + 123456789;
>>> exec-next
2015/10/08 18:17:24 Running...
2015/10/08 18:17:25 end-stepping-range
2015/10/08 18:17:25 Stopped at StringAdditionOperator.ino:41
2015/10/08 18:17:25 41 Serial.println(stringThree); // prints " You added 123456789"
>>> var-update --all-values *
2015/10/08 18:17:29 {
2015/10/08 18:17:29 "changelist": [
2015/10/08 18:17:29 {
2015/10/08 18:17:29 "has_more": "0",
2015/10/08 18:17:29 "in_scope": "true",
2015/10/08 18:17:29 "name": "var1.protected.buffer",
2015/10/08 18:17:29 "type_changed": "false",
2015/10/08 18:17:29 "value": "0x200006b0 \"stringThree = 123456789\""
2015/10/08 18:17:29 },
2015/10/08 18:17:29 {
2015/10/08 18:17:29 "has_more": "0",
2015/10/08 18:17:29 "in_scope": "true",
2015/10/08 18:17:29 "name": "var1.protected.capacity",
2015/10/08 18:17:29 "type_changed": "false",
2015/10/08 18:17:29 "value": "23"
2015/10/08 18:17:29 },
2015/10/08 18:17:29 {
2015/10/08 18:17:29 "has_more": "0",
2015/10/08 18:17:29 "in_scope": "true",
2015/10/08 18:17:29 "name": "var1.protected.len",
2015/10/08 18:17:29 "type_changed": "false",
2015/10/08 18:17:29 "value": "23"
2015/10/08 18:17:29 }
2015/10/08 18:17:29 ]
2015/10/08 18:17:29 }
>>> exec-next
2015/10/08 18:17:33 Running...
2015/10/08 18:17:33 end-stepping-range
2015/10/08 18:17:33 Stopped at StringAdditionOperator.ino:44
2015/10/08 18:17:33 44 stringThree = stringOne + 'A';
>>> var-update --all-values *
2015/10/08 18:17:36 {
2015/10/08 18:17:36 "changelist": []
2015/10/08 18:17:36 }
>>> exec-next
2015/10/08 18:17:39 Running...
2015/10/08 18:17:40 end-stepping-range
2015/10/08 18:17:40 Stopped at StringAdditionOperator.ino:45
2015/10/08 18:17:40 45 Serial.println(stringThree); // prints "You added A"
>>> var-update --all-values *
2015/10/08 18:17:44 {
2015/10/08 18:17:44 "changelist": [
2015/10/08 18:17:44 {
2015/10/08 18:17:44 "has_more": "0",
2015/10/08 18:17:44 "in_scope": "true",
2015/10/08 18:17:44 "name": "var1.protected.buffer",
2015/10/08 18:17:44 "type_changed": "false",
2015/10/08 18:17:44 "value": "0x200006b0 \"stringThree = A\""
2015/10/08 18:17:44 },
2015/10/08 18:17:44 {
2015/10/08 18:17:44 "has_more": "0",
2015/10/08 18:17:44 "in_scope": "true",
2015/10/08 18:17:44 "name": "var1.protected.len",
2015/10/08 18:17:44 "type_changed": "false",
2015/10/08 18:17:44 "value": "15"
2015/10/08 18:17:44 }
2015/10/08 18:17:44 ]
2015/10/08 18:17:44 }
>>> exec-next
2015/10/08 18:18:11 Running...
2015/10/08 18:18:11 end-stepping-range
2015/10/08 18:18:11 Stopped at StringAdditionOperator.ino:48
2015/10/08 18:18:11 48 stringThree = stringOne + "abc";
>>> var-update --all-values *
2015/10/08 18:18:15 {
2015/10/08 18:18:15 "changelist": []
2015/10/08 18:18:15 }
>>> exec-next
2015/10/08 18:18:19 Running...
2015/10/08 18:18:21 end-stepping-range
2015/10/08 18:18:21 Stopped at StringAdditionOperator.ino:49
2015/10/08 18:18:21 49 Serial.println(stringThree); // prints "You added abc"
>>> var-update --all-values *
2015/10/08 18:18:25 {
2015/10/08 18:18:25 "changelist": [
2015/10/08 18:18:25 {
2015/10/08 18:18:25 "has_more": "0",
2015/10/08 18:18:25 "in_scope": "true",
2015/10/08 18:18:25 "name": "var1.protected.buffer",
2015/10/08 18:18:25 "type_changed": "false",
2015/10/08 18:18:25 "value": "0x200006b0 \"stringThree = abc\""
2015/10/08 18:18:25 },
2015/10/08 18:18:25 {
2015/10/08 18:18:25 "has_more": "0",
2015/10/08 18:18:25 "in_scope": "true",
2015/10/08 18:18:25 "name": "var1.protected.len",
2015/10/08 18:18:25 "type_changed": "false",
2015/10/08 18:18:25 "value": "17"
2015/10/08 18:18:25 }
2015/10/08 18:18:25 ]
2015/10/08 18:18:25 }
2015/10/08 18:18:31 EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment