Bug 18255 - Generated gdb.env file on windows does not work correctly
Summary: Generated gdb.env file on windows does not work correctly
Status: RESOLVED NORESPONSE
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 4.12.0
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2014-03-07 15:48 UTC by Peter Collins
Modified: 2017-06-27 00:18 UTC (History)
4 users (show)

Tags: bb
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 Peter Collins 2014-03-07 15:48:21 UTC
The _Gdb build target generates the following command on windows: 
"C:\Users\XamarinQA\Documents\Android\ndk\android-ndk-r8d\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\bin\arm-linux-androideabi-gdb.exe" -x "C:\Users\XamarinQA\monodroid-samples\Button\\gdb-symbols\gdb.env"

Unfortunately, the gdb.env file associated with the -x argument does not appear to be properly generated on windows, and results in the following output:
https://gist.github.com/pjcollins/219116770a123ee120ec

Manually editing editing that file to escape the backslashes does appear to serve as a work-around.

Environment:
=== Xamarin Studio ===

Version 4.2.3 (build 59)
Installation UUID: 57343b16-4821-4ef8-aaee-45c5798ab8a7
Runtime:
	Microsoft .NET 4.0.30319.18408
	GTK+ 2.24.22 theme: MS-Windows
	GTK# (2.12.0.0)

=== Xamarin.Android ===
Version: 4.12.0 (Business Edition)
Android SDK: C:\Users\XamarinQA\AppData\Local\Android\android-sdk
	Supported Android versions:
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		3.2   (API level 13)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.2   (API level 17)
		4.3   (API level 18)
		4.4   (API level 19)
Java SDK: C:\Program Files (x86)\Java\jdk1.6.0_39
java version "1.6.0_39"
Java(TM) SE Runtime Environment (build 1.6.0_39-b04)
Java HotSpot(TM) Client VM (build 20.14-b01, mixed mode, sharing)

=== Build Information ===
Release ID: 402030059
828c2a91b515daaac7e57bc69fcfda6178d4ec01
Build date: 2014-02-17 14:52:00Z
Xamarin addins: 3bdcc713bdc4b0c04973f3a31b6d47ad3e205962

=== Operating System ===
Windows 6.1.7601.65536 (64-bit)
Comment 1 Jonathan Pryor 2014-03-07 16:54:06 UTC
> Manually editing editing that file to escape the backslashes

Specifically, the following fails:

    C:\Path\To\gdb.env

This works:

    C:\\Path\\To\\gdb.env

This also works:

    C:/Path/To/gdb.env

(Argh!)
Comment 2 Sadik Ali 2014-03-10 09:59:29 UTC
I have checked this issue on below environments:

XS 4.2.3 (build 60)
Xamarin.Android : 4.12.1
Build Information
Release ID: 402030060
30c4afc300c2a39ec5300851357ce02e49dd217e
Xamarin addins: f8a9589b57c2bfab2ccd73c880e7ad81e3ecf044

I followed below steps:

1. Created an android application.
2. Created folder "gdb-symbols" into project, added file "gdb.env"
3. Opened commend prompt and go to folder "E:\android-ndk-r8d\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\bin"
4. run below command
>>"arm-linux-androideabi-gdb.exe -x C:\Users\Admin\Documents\Projects\SampleAndroidT\SampleAndroidT\\gdb-symbols\gdb.env" Where "SampleAndroidT" is project name.
5. I am getting file not found error message refer screen cast:
Refer screen cast: http://screencast.com/t/mKxxmsy3

My gdb.env file: https://gist.github.com/Sadik1/9465409
Comment 3 Jonathan Pryor 2014-04-25 17:12:58 UTC
Fixed in monodroid/7bf95174
Comment 4 Mohit Kheterpal 2014-06-04 09:47:42 UTC
I have checked this issue and follow the steps mention in comment 2, But I am still getting same issue as shown in screencast : http://screencast.com/t/lPAfQo6ZJFLs

Hence reopening this issue.

Environment info:
=== Xamarin Studio ===

Version 5.1 (build 302)
Installation UUID: 3b924754-5196-440a-b42b-05ebb3a3082e
Runtime:
	Microsoft .NET 4.0.30319.18408
	GTK+ 2.24.22 (MS-Windows theme)
	GTK# 2.12.25

=== Xamarin.Android ===

Version: 4.15.0 (Enterprise Edition)
Android SDK: E:\AndroidSDK
	Supported Android versions:
		1.6   (API level 4)
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		3.2   (API level 13)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.3   (API level 18)
		4.4   (API level 19)
Java SDK: C:\Program Files\Java\jdk1.6.0_31
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing)

=== Build Information ===

Release ID: 501000302
Git revision: 37edec4110ed93f02581f1331d2ff5b38f9a3aa9
Build date: 2014-05-30 12:45:30-04
Xamarin addins: b4105598b2afb41dac2f91a523ce94dbb3f1efdf

=== Operating System ===

Windows 6.1.7601.65536
Comment 5 Jonathan Pryor 2014-08-05 12:26:00 UTC
@Mohit: Does the file exist?

Specifically, C:\Users\Admin\Documents\Projects\SampleAndroidT\SampleAndroidT\gdb-symbols\gdb.env
Comment 6 Chris Hardy [MSFT] 2017-06-26 17:42:20 UTC
Because we have not received a reply to our request for more information we are closing this issue. If you are still encountering this issue, please reopen the ticket with the requested information. Thanks!