improve the current debugger autodetection functionality.#153288
improve the current debugger autodetection functionality.#153288Unique-Usman wants to merge 1 commit intorust-lang:mainfrom
Conversation
|
r? @jieyouxu rustbot has assigned @jieyouxu. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
@Kobzol tagging you here. |
CDB: - Add support for overriding via `RUSTC_CDB`. - Derive architecture from the target triple instead of `cfg!(target_arch)`. - Search multiple Windows SDK versions (11, 10, 8.1). - Probe both `ProgramFiles(x86)` and `ProgramFiles`. GDB: - Treat empty `config.gdb` as an explicit opt-out. - Extract validation logic into a `verify_gdb` helper. Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com>
ccd7ce3 to
f88c548
Compare
| let cdb_arch = if cfg!(target_arch = "x86") { | ||
| "x86" | ||
| } else if cfg!(target_arch = "x86_64") { | ||
| if let Some(path) = env::var_os("RUSTC_CDB") { |
There was a problem hiding this comment.
Remark: this isn't the direction I was expecting, see the gsoc zulip thread for discussion.
There was a problem hiding this comment.
Thanks for the review. I will check.
|
Putting this on-hold since IMHO debugger discovery/handling really needs a more cohesive overall design. |
|
@jieyouxu Isn't this change a simple enough improvement? I don't see why we would hold this PR hostage until someone implements a more comprehensive overhaul? |
|
Could you describe a bit more what use-cases does this PR improve? |
Not as is. I disagree with your "hold this PR hostage until someone implements a more comprehensive overhaul" assessment.
|
CDB:
RUSTC_CDB.cfg!(target_arch).ProgramFiles(x86)andProgramFiles.GDB:
config.gdbas an explicit opt-out.verify_gdbhelper.Discussion: