Guest User

Untitled

a guest
May 2nd, 2017
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. GNU gdb (GDB) 7.12.1
  2. Copyright (C) 2017 Free Software Foundation, Inc.
  3. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  4. This is free software: you are free to change and redistribute it.
  5. There is NO WARRANTY, to the extent permitted by law. Type "show copying"
  6. and "show warranty" for details.
  7. This GDB was configured as "--host=x86_64-pc-linux-gnu --target=arm-none-eabi".
  8. Type "show configuration" for configuration details.
  9. For bug reporting instructions, please see:
  10. <http://www.gnu.org/software/gdb/bugs/>.
  11. Find the GDB manual and other documentation resources online at:
  12. <http://www.gnu.org/software/gdb/documentation/>.
  13. For help, type "help".
  14. Type "apropos word" to search for commands related to "word"...
  15. Reading symbols from ecfw...done.
  16. (gdb) target extended-remote /dev/ttyACM0
  17. Remote debugging using /dev/ttyACM0
  18. (gdb) monitor swdp_scan
  19. Target voltage: 3.3V
  20. Available Targets:
  21. No. Att Driver
  22. 1 Atmel SAM4S
  23. (gdb) attach 1
  24. Attaching to program: /home/cmp/git/c4puter/ecfw/ecfw, Remote target
  25. 0x00401590 in prvIdleTask (pvParameters=<optimized out>) at FreeRTOS/Source/tasks.c:3166
  26. 3166 if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ tskIDLE_PRIORITY ] ) ) > ( UBaseType_t ) 1 )
  27. (gdb) b commands.rs:454
  28. Breakpoint 1 at 0x41835e: file /home/cmp/git/c4puter/ecfw/ecfw_rust/main/commands.rs, line 454.
  29. (gdb) c
  30. Continuing.
  31. Note: automatically using hardware breakpoints for read-only addresses.
  32.  
  33. Breakpoint 1, ecfw_rust::main::commands::cmd_ls (args=...) at /home/cmp/git/c4puter/ecfw/ecfw_rust/main/commands.rs:456
  34. 456 let path = if args.len() == 2 { args[1] } else { "/" };
  35. (gdb) n
  36. 459 let mut sb = StringBuilder::new();
  37. (gdb)
  38. 460 try!(sb.append(path));
  39. (gdb) p sb
  40. $1 = <optimized out>
  41. (gdb) p path
  42. $2 = &str {data_ptr: 0x200017af <instances+3> "/\000", length: 1}
  43. (gdb) n
  44. 461 let pab = path.as_bytes();
  45. (gdb)
  46. 462 if pab[pab.len() - 1] != '/' as u8 {
  47. (gdb) p pab
  48. $3 = &[u8] {data_ptr: 0x200017af <instances+3> "/\000", length: 1}
  49. (gdb) n
  50. 465 let only_path = sb.len();
  51. (gdb)
  52. 467 let mut dir = try!(drivers::ext4::dir_open(path));
  53. (gdb) p only_path
  54. $4 = 1
  55. (gdb) q
  56. A debugging session is active.
  57.  
  58. Inferior 1 [Remote target] will be detached.
  59.  
  60. Quit anyway? (y or n) y
  61. Detaching from program: /home/cmp/git/c4puter/ecfw/ecfw, Remote target
Advertisement
Add Comment
Please, Sign In to add comment