Bug 25081 - _Gdb: target remote :9999 can't connect
Summary: _Gdb: target remote :9999 can't connect
Status: RESOLVED NORESPONSE
Alias: None
Product: Android
Classification: Xamarin
Component: Debugger ()
Version: 4.20.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: dean.ellis
URL:
Depends on:
Blocks:
 
Reported: 2014-12-04 14:00 UTC by Jeremy Kolb
Modified: 2015-03-25 11:10 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NORESPONSE

Description Jeremy Kolb 2014-12-04 14:00:43 UTC
I can't seem to use gdb on Windows.



c:\Projects\PointmanOcu\Pointman.Ocu\Pointman.Ocu.Droid>msbuild Pointman.Ocu.Dro
id.csproj /t:_Gdb /p:RunActivity=pointman.ocu.droid.SplashScreen
Microsoft (R) Build Engine version 12.0.31101.0
[Microsoft .NET Framework, version 4.0.30319.18444]
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 12/4/2014 1:58:50 PM.
Project "c:\Projects\PointmanOcu\Pointman.Ocu\Pointman.Ocu.Droid\Pointman.Ocu.D
roid.csproj" on node 1 (_Gdb target(s)).
_SetLatestTargetFrameworkVersion:
    ReferenceAssemblyPaths:
      C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndro
  id\v1.0\
_ResolveMonoAndroidSdks:
  MonoAndroid Tools: C:\Program Files (x86)\MSBuild\Xamarin\Android\
  MonoAndroid Binaries: C:\Program Files (x86)\MSBuild\Xamarin\Android\
  Android Platform API level: 17
  TargetFrameworkVersion: v4.2
  Android NDK: c:\users\jkolb\AppData\Local\Android\android-ndk\
  Android SDK: C:\Users\jkolb\AppData\Local\Android\android-sdk\
  Android SDK Build Tools: C:\Users\jkolb\AppData\Local\Android\android-sdk\bui
  ld-tools\21.1.1\
  Java SDK: C:\Program Files (x86)\Java\jdk1.7.0_71\
_ValidateAndroidPackageProperties:
  GetAndroidPackageName Task
    ManifestFile: c:\Projects\PointmanOcu\Pointman.Ocu\Pointman.Ocu.Droid\Prope
  rties\AndroidManifest.xml
    AssemblyName: Pointman.Ocu.Droid
    PackageName: Pointman.Droid
_PrepGdbConnection:
  "C:\Users\jkolb\AppData\Local\Android\android-sdk\platform-tools\adb"  forwar
  d tcp:9999 tcp:9999
  "C:\Users\jkolb\AppData\Local\Android\android-sdk\platform-tools\adb"  shell
  setprop debug.mono.gdbport 9999
  GetGdbPaths Task
    AndroidNdkDirectory: c:\users\jkolb\AppData\Local\Android\android-ndk\
    GdbPath: c:\users\jkolb\AppData\Local\Android\android-ndk\toolchains\arm-li
  nux-androideabi-4.6\prebuilt\windows-x86_64\bin\arm-linux-androideabi-gdb.exe
    GdbserverPath: c:\users\jkolb\AppData\Local\Android\android-ndk\prebuilt\an
  droid-arm\gdbserver\gdbserver
  AdbTarget-ABI: armeabi-v7a
  "C:\Users\jkolb\AppData\Local\Android\android-sdk\platform-tools\adb"  shell
  touch /storage/emulated/legacy/Android/data/Pointman.Droid/files/.__override_
  _/gdb
  "C:\Users\jkolb\AppData\Local\Android\android-sdk\platform-tools\adb"   push
  "c:\users\jkolb\AppData\Local\Android\android-ndk\prebuilt\android-arm\gdbser
  ver\gdbserver" "/storage/emulated/legacy/Android/data/Pointman.Droid/files/._
  _override__"
  5057 KB/s (393604 bytes in 0.076s)
_Run:
  RunActivity Task
    ManifestFile: obj\Debug\android\AndroidManifest.xml
    PackageName: Pointman.Droid
    ActivityName: pointman.ocu.droid.SplashScreen
_Gdb:
  AndroidGdbSymbolsPath: c:\Projects\PointmanOcu\Pointman.Ocu\Pointman.Ocu.Droi
  d\\gdb-symbols
    PackageOverridePath: /storage/emulated/legacy/Android/data/Pointman.Droid/f
  iles/.__override__
            PackagePath: /data/data/Pointman.Droid
  gdb-bin: c:\users\jkolb\AppData\Local\Android\android-ndk\toolchains\arm-linu
  x-androideabi-4.6\prebuilt\windows-x86_64\bin\arm-linux-androideabi-gdb.exe
  gdb-env: c:\Projects\PointmanOcu\Pointman.Ocu\Pointman.Ocu.Droid\\gdb-symbols
  \gdb.env
  "c:\users\jkolb\AppData\Local\Android\android-ndk\toolchains\arm-linux-androi
  deabi-4.6\prebuilt\windows-x86_64\bin\arm-linux-androideabi-gdb.exe" -x "c:\P
  rojects\PointmanOcu\Pointman.Ocu\Pointman.Ocu.Droid\\gdb-symbols\gdb.env"
Done Building Project "c:\Projects\PointmanOcu\Pointman.Ocu\Pointman.Ocu.Droid\
Pointman.Ocu.Droid.csproj" (_Gdb target(s)).


Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:03.69

c:\Projects\PointmanOcu\Pointman.Ocu\Pointman.Ocu.Droid>"c:\users\jkolb\AppData\
Local\Android\android-ndk\toolchains\arm-linux-androideabi-4.6\prebuilt\windows-
x86_64\bin\arm-linux-androideabi-gdb.exe" -x "c:\Projects\PointmanOcu\Pointman.O
cu\Pointman.Ocu.Droid\\gdb-symbols\gdb.env"
GNU gdb (GDB) 7.3.1-gg2
Copyright (C) 2011 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-mingw32msvc --target=arm-linux-andr
oid".
For bug reporting instructions, please see:
<http://source.android.com/source/report-bugs.html>.
c:\Projects\PointmanOcu\Pointman.Ocu\Pointman.Ocu.Droid\\gdb-symbols\gdb.env:3:
Error in sourced command file:
Remote communication error.  Target disconnected.: No error.
(gdb)




My gdb.env file contains:

set solib-search-path c:/Projects/PointmanOcu/Pointman.Ocu/Pointman.Ocu.Droid/gdb-symbols
file c:/Projects/PointmanOcu/Pointman.Ocu/Pointman.Ocu.Droid/gdb-symbols/app_process
target remote :9999
handle SIGXCPU SIG33 SIG35 SIGPWR nostop noprint
Comment 1 Jeremy Kolb 2014-12-06 09:30:01 UTC
This seems specificy to one of my Samsung Galaxy tablets.  An older one worked fine.

Maybe the port should be configurable?