@@ -54,15 +54,6 @@ pub(crate) fn configure_lldb(config: &Config) -> Option<Arc<Config>> {
5454 Some ( Arc :: new ( Config { debugger : Some ( Debugger :: Lldb ) , ..config. clone ( ) } ) )
5555}
5656
57- /// Returns `true` if the given target is an Android target for the
58- /// purposes of GDB testing.
59- pub ( crate ) fn is_android_gdb_target ( target : & str ) -> bool {
60- matches ! (
61- & target[ ..] ,
62- "arm-linux-androideabi" | "armv7-linux-androideabi" | "aarch64-linux-android"
63- )
64- }
65-
6657/// Returns `true` if the given target is a MSVC target for the purposes of CDB testing.
6758fn is_pc_windows_msvc_target ( target : & str ) -> bool {
6859 target. ends_with ( "-pc-windows-msvc" )
@@ -129,35 +120,6 @@ pub(crate) fn extract_cdb_version(full_version_line: &str) -> Option<[u16; 4]> {
129120 Some ( [ major, minor, patch, build] )
130121}
131122
132- pub ( crate ) fn discover_gdb (
133- gdb : Option < String > ,
134- target : & str ,
135- android_cross_path : & Utf8Path ,
136- ) -> Option < Utf8PathBuf > {
137- #[ cfg( not( windows) ) ]
138- const GDB_FALLBACK : & str = "gdb" ;
139- #[ cfg( windows) ]
140- const GDB_FALLBACK : & str = "gdb.exe" ;
141-
142- let fallback_gdb = || {
143- if is_android_gdb_target ( target) {
144- let mut gdb_path = android_cross_path. to_string ( ) ;
145- gdb_path. push_str ( "/bin/gdb" ) ;
146- gdb_path
147- } else {
148- GDB_FALLBACK . to_owned ( )
149- }
150- } ;
151-
152- let gdb = match gdb {
153- None => fallback_gdb ( ) ,
154- Some ( ref s) if s. is_empty ( ) => fallback_gdb ( ) , // may be empty if configure found no gdb
155- Some ( ref s) => s. to_owned ( ) ,
156- } ;
157-
158- Some ( Utf8PathBuf :: from ( gdb) )
159- }
160-
161123pub ( crate ) fn query_gdb_version ( gdb : & Utf8Path ) -> Option < u32 > {
162124 let mut version_line = None ;
163125 if let Ok ( output) = Command :: new ( & gdb) . arg ( "--version" ) . output ( ) {
0 commit comments