- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.9k
Closed
Labels
A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)Area: Debugging information in compiled programs (DWARF, PDB, etc.)
Description
As noted here, the VecDeque pretty-printer doesn't take into account the ring buffer structure.
Example:
use std::collections::VecDeque;
fn main() {
    let mut deque = VecDeque::new();
    for i in 1..8 {
        deque.push_back(i)
    }
    deque.pop_front();
    deque.push_back(8);
    println!("{:?}", deque);
}
Run gdb with b 10:
(gdb) p deque
$2 = VecDeque<i32>(len: -1, cap: 8)
Metadata
Metadata
Assignees
Labels
A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)Area: Debugging information in compiled programs (DWARF, PDB, etc.)