Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GNU gdb (GDB) 7.12.1
- Copyright (C) 2017 Free Software Foundation, Inc.
- License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
- This is free software: you are free to change and redistribute it.
- There is NO WARRANTY, to the extent permitted by law. Type "show copying"
- and "show warranty" for details.
- This GDB was configured as "--host=x86_64-pc-linux-gnu --target=arm-none-eabi".
- Type "show configuration" for configuration details.
- For bug reporting instructions, please see:
- <http://www.gnu.org/software/gdb/bugs/>.
- Find the GDB manual and other documentation resources online at:
- <http://www.gnu.org/software/gdb/documentation/>.
- For help, type "help".
- Type "apropos word" to search for commands related to "word"...
- Reading symbols from ecfw...done.
- (gdb) target extended-remote /dev/ttyACM0
- Remote debugging using /dev/ttyACM0
- (gdb) monitor swdp_scan
- Target voltage: 3.3V
- Available Targets:
- No. Att Driver
- 1 Atmel SAM4S
- (gdb) attach 1
- Attaching to program: /home/cmp/git/c4puter/ecfw/ecfw, Remote target
- 0x00401590 in prvIdleTask (pvParameters=<optimized out>) at FreeRTOS/Source/tasks.c:3166
- 3166 if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ tskIDLE_PRIORITY ] ) ) > ( UBaseType_t ) 1 )
- (gdb) b commands.rs:454
- Breakpoint 1 at 0x41835e: file /home/cmp/git/c4puter/ecfw/ecfw_rust/main/commands.rs, line 454.
- (gdb) c
- Continuing.
- Note: automatically using hardware breakpoints for read-only addresses.
- Breakpoint 1, ecfw_rust::main::commands::cmd_ls (args=...) at /home/cmp/git/c4puter/ecfw/ecfw_rust/main/commands.rs:456
- 456 let path = if args.len() == 2 { args[1] } else { "/" };
- (gdb) n
- 459 let mut sb = StringBuilder::new();
- (gdb)
- 460 try!(sb.append(path));
- (gdb) p sb
- $1 = <optimized out>
- (gdb) p path
- $2 = &str {data_ptr: 0x200017af <instances+3> "/\000", length: 1}
- (gdb) n
- 461 let pab = path.as_bytes();
- (gdb)
- 462 if pab[pab.len() - 1] != '/' as u8 {
- (gdb) p pab
- $3 = &[u8] {data_ptr: 0x200017af <instances+3> "/\000", length: 1}
- (gdb) n
- 465 let only_path = sb.len();
- (gdb)
- 467 let mut dir = try!(drivers::ext4::dir_open(path));
- (gdb) p only_path
- $4 = 1
- (gdb) q
- A debugging session is active.
- Inferior 1 [Remote target] will be detached.
- Quit anyway? (y or n) y
- Detaching from program: /home/cmp/git/c4puter/ecfw/ecfw, Remote target
Advertisement
Add Comment
Please, Sign In to add comment