Rust-gdb issue with paths and specific source file names clashing

I have a source file called src/macros.rs (linter advised not to name it macro.rs)

It turns out, that name also gives me trouble. I'm trying to debug a test in my gdb session with:

EXE=$(cargo test --no-run --message-format json \
         | jq -r 'select(.executable != null) .executable')
rust-gdb --args "$EXE" my_test

The command I issue then is:

list src/macros.rs:1

Unfortunately this barfs a ton of nonsense, because every single src/macros.rs file is searched by GDB. I've tried various ailments such as dir src or set directories src, mentioned in the GDB manual here, but nevertheless the issue remains.

What do rustaceans do when confronted with this issue? GDB just doesn't want to allow me to select that particular file. I will end up renaming the file for now.

I also tried LLDB but I couldnt' figure out what to set target.source-maps to, and it thus refused to list src/macros.rs or any other source file.