Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

detecting gdb for msys2 mingw properly #1338

Merged
merged 1 commit into from
Jul 15, 2020

Conversation

lygstate
Copy link
Contributor

In msys2, the gdb path are differ from the compiler path, there is no
x86_64-w64-mingw32-gdb.exe
so we check gdb.exe directly.

 驱动器 C 中的卷是 系统
 卷的序列号是 CAD5-8E95

 C:\CI-Tools\msys64\mingw64\bin 的目录

2020/05/12  17:26            28,160 acountry.exe
2020/06/02  13:08         2,216,448 addr2line.exe
2020/05/12  17:26            26,112 adig.exe
2020/05/12  17:26            20,992 ahost.exe
2020/06/02  13:08         2,242,560 ar.exe
2020/06/02  13:08         2,842,112 as.exe
2020/02/23  19:58            82,432 asn1Coding.exe
2020/02/23  19:58            53,248 asn1Decoding.exe
2020/02/23  19:58            49,664 asn1Parser.exe
2020/06/10  16:44           125,304 broadwayd.exe
2019/12/26  19:32           777,216 brotli.exe
2019/07/15  14:00            45,901 bunzip2.exe
2019/07/15  14:00            45,901 bzcat.exe
2019/07/15  14:00            45,901 bzip2.exe
2019/07/15  14:00            25,566 bzip2recover.exe
2020/06/01  19:25         2,201,600 c++.exe
2020/06/02  13:08         2,210,304 c++filt.exe
2020/06/01  19:25         2,199,040 cc.exe
2020/06/08  15:21           369,854 certtool.exe
2019/12/25  14:45            23,040 chardetect.exe
2020/06/25  17:05           111,414 cjpeg.exe
2020/06/01  19:25         2,200,064 cpp.exe
2020/05/10  03:34         4,902,400 cstool.exe
2020/06/25  16:32           290,280 curl.exe
2020/01/14  14:11           104,448 cwebp.exe
2020/06/25  17:05           105,910 djpeg.exe
2020/06/02  13:08         2,274,816 dlltool.exe
2020/06/02  13:08         1,175,552 dllwrap.exe
2019/12/25  15:29            23,040 doesitcache.exe
2019/10/01  16:00            51,869 dumpsexp.exe
2020/01/14  14:11            88,064 dwebp.exe
2020/06/02  13:08         3,571,200 dwp.exe
2020/06/11  14:09            45,568 easy_install-3.8.exe
2020/06/11  14:09            45,568 easy_install.exe
2019/12/03  13:12            18,432 edit_test.exe
2019/12/03  13:12            20,480 edit_test_dll.exe
2020/06/02  13:08         1,160,192 elfedit.exe
2020/06/09  18:47           115,689 envsubst.exe
2019/11/06  03:15            54,272 fax2ps.exe
2019/11/06  03:15            54,272 fax2tiff.exe
2020/06/17  16:03            31,082 fc-cache.exe
2020/06/17  16:03            27,603 fc-cat.exe
2020/06/17  16:03            23,793 fc-conflist.exe
2020/06/17  16:03            26,669 fc-list.exe
2020/06/17  16:03            27,469 fc-match.exe
2020/06/17  16:03            25,618 fc-pattern.exe
2020/06/17  16:03            25,442 fc-query.exe
2020/06/17  16:03            25,668 fc-scan.exe
2020/06/17  16:03            26,762 fc-validate.exe
2020/03/03  15:24            56,832 fribidi.exe
2020/06/01  19:25         2,201,600 g++.exe
2020/06/01  19:25            64,512 gcc-ar.exe
2020/06/01  19:25            64,512 gcc-nm.exe
2020/06/01  19:25            64,512 gcc-ranlib.exe
2020/06/01  19:25         2,199,040 gcc.exe
2020/06/01  19:25         1,603,584 gcov-tool.exe
2020/06/01  19:25         1,679,360 gcov.exe
2020/05/25  04:56         9,333,248 gdb.exe
2019/04/12  16:45           126,686 gdbmtool.exe
2019/04/12  16:45            34,574 gdbm_dump.exe
2019/04/12  16:45            35,670 gdbm_load.exe
2020/05/25  04:56           366,080 gdbserver.exe
2020/05/25  18:23            23,040 gdbus-codegen.exe
2020/05/25  18:23            47,104 gdbus.exe
2019/10/17  12:46            25,813 gdk-pixbuf-csource.exe
2019/10/17  12:46            23,267 gdk-pixbuf-pixdata.exe
2019/10/17  12:46            28,570 gdk-pixbuf-query-loaders.exe
2019/10/17  12:46            26,830 gdk-pixbuf-thumbnailer.exe
2020/05/28  21:31            82,432 gendef.exe
2020/05/28  21:31           100,352 genidl.exe
2020/05/28  21:31            72,704 genlib.exe
2020/05/28  21:31            55,296 genpeimg.exe
2020/06/09  18:47           115,575 gettext.exe
2020/06/01  19:25         2,201,600 gfortran.exe
2019/06/25  13:58           104,053 gif2rgb.exe
2020/01/14  14:11            74,240 gif2webp.exe
2019/06/25  13:58           108,366 gifbuild.exe
2019/06/25  13:58           103,540 gifclrmp.exe
2019/06/25  13:58            98,329 giffix.exe
2019/06/25  13:58            95,290 giftext.exe
2019/06/25  13:58            71,093 giftool.exe
2020/05/25  18:23            19,968 gio-querymodules.exe
2020/05/25  18:23            76,288 gio.exe
2020/05/25  18:23            44,032 glib-compile-resources.exe
2020/05/25  18:23            49,152 glib-compile-schemas.exe
2020/05/25  18:23            23,040 glib-genmarshal.exe
2020/05/25  18:23            23,040 glib-mkenums.exe
2020/06/01  19:25         2,401,280 gnat.exe
2020/06/01  19:25         3,374,080 gnatbind.exe
2020/06/01  19:25         2,678,784 gnatchop.exe
2020/06/01  19:25         3,389,952 gnatclean.exe
2020/06/01  19:25         2,602,496 gnatdll.exe
2020/06/01  19:25         2,640,896 gnatfind.exe
2020/06/01  19:25         2,311,168 gnatkr.exe
2020/06/01  19:25         2,499,584 gnatlink.exe
2020/06/01  19:25         3,588,608 gnatls.exe
2020/06/01  19:25         3,794,432 gnatmake.exe
2020/06/01  19:25         3,302,400 gnatname.exe
2020/06/01  19:25         3,465,728 gnatprep.exe
2020/06/01  19:25         2,639,360 gnatxref.exe
2020/06/08  15:21           247,897 gnutls-cli-debug.exe
2020/06/08  15:21           275,396 gnutls-cli.exe
2020/06/08  15:21           237,689 gnutls-serv.exe
2020/05/25  18:23            19,456 gobject-query.exe
2020/06/03  00:00            66,606 gpg-error.exe
2020/06/02  13:08         2,281,984 gprof.exe
2020/04/03  22:57            55,296 gr2fonttest.exe
2020/05/25  18:23            23,040 gresource.exe
2020/05/25  18:23            30,720 gsettings.exe
2020/05/25  18:23            19,456 gspawn-win64-helper-console.exe
2020/05/25  18:23            19,456 gspawn-win64-helper.exe
2020/05/25  18:23            23,040 gtester-report.exe
2020/06/10  16:44            37,515 gtk-builder-tool.exe
2020/06/10  16:44            25,818 gtk-encode-symbolic-svg.exe
2020/06/10  16:44            21,651 gtk-launch.exe
2020/06/10  16:44            28,645 gtk-query-immodules-3.0.exe
2020/06/10  16:44            45,847 gtk-query-settings.exe
2020/06/10  16:44            47,291 gtk-update-icon-cache-3.0.exe
2020/06/10  16:44         1,547,792 gtk3-demo-application.exe
2020/06/10  16:44         1,870,801 gtk3-demo.exe
2020/06/10  16:44            75,982 gtk3-icon-browser.exe
2020/06/10  16:44           183,954 gtk3-widget-factory.exe
2020/06/23  19:59           108,884 hb-ot-shape-closure.exe
2020/06/23  19:59           113,518 hb-shape.exe
2020/06/23  19:59           111,482 hb-subset.exe
2020/06/23  19:59           130,748 hb-view.exe
2019/10/01  16:00            51,905 hmac256.exe
2019/05/13  14:18            76,232 iconv.exe
2019/11/18  13:02            95,232 idn2.exe
2020/01/14  14:11           117,760 img2webp.exe
2019/03/18  17:19            30,741 imgcmp.exe
2019/03/18  17:19            25,547 imginfo.exe
2019/03/18  17:19            31,707 jasper.exe
2020/06/25  17:05           135,304 jpegtran.exe
2018/10/03  16:03            25,977 json-glib-format.exe
2018/10/03  16:03            24,544 json-glib-validate.exe
2020/06/02  13:08         2,755,072 ld.bfd.exe
2020/06/02  13:08         2,755,072 ld.exe
2020/06/02  13:08         5,877,760 ld.gold.exe
2020/03/18  15:19            51,712 lzmadec.exe
2020/03/18  15:19            27,136 lzmainfo.exe
2020/02/17  14:27           292,352 mingw32-make.exe
2019/10/01  16:00            53,546 mpicalc.exe
2020/06/09  18:47            38,590 msgattrib.exe
2020/06/09  18:47            37,811 msgcat.exe
2020/06/09  18:47            38,253 msgcmp.exe
2020/06/09  18:47            37,427 msgcomm.exe
2020/06/09  18:47            34,853 msgconv.exe
2020/06/09  18:47            34,872 msgen.exe
2020/06/09  18:47            33,365 msgexec.exe
2020/06/09  18:47            42,489 msgfilter.exe
2020/06/09  18:47            90,943 msgfmt.exe
2020/06/09  18:47           149,411 msggrep.exe
2020/06/09  18:47            63,631 msginit.exe
2020/06/09  18:47            67,316 msgmerge.exe
2020/06/09  18:47            45,168 msgunfmt.exe
2020/06/09  18:47            36,719 msguniq.exe
2020/05/05  15:05            49,152 nettle-hash.exe
2020/05/05  15:05            41,984 nettle-lfib-stream.exe
2020/05/05  15:05            48,640 nettle-pbkdf2.exe
2019/02/18  13:35            47,658 nfs-cat.exe
2019/02/18  13:35            49,423 nfs-ls.exe
2020/06/09  18:47           115,576 ngettext.exe
2020/06/02  13:08         2,228,736 nm.exe
2020/06/02  13:08         2,353,152 objcopy.exe
2020/06/02  13:08         3,519,488 objdump.exe
2020/06/08  15:21           255,014 ocsptool.exe
2020/04/23  15:49           646,144 openssl.exe
2020/04/10  03:57            73,216 p11-kit.exe
2020/06/08  15:21           476,247 p11tool.exe
2019/11/06  03:15            52,224 pal2rgb.exe
2019/07/30  16:07            22,608 pango-list.exe
2019/07/30  16:07           109,172 pango-view.exe
2020/03/10  00:26            74,240 pcregrep.exe
2020/03/10  00:26           126,976 pcretest.exe
2020/02/11  13:58            23,040 pip.exe
2020/02/11  13:58            23,040 pip3.8.exe
2020/02/11  13:58            23,040 pip3.exe
2020/03/09  11:34           106,337 pipx.exe
2020/05/05  15:05            52,736 pkcs1-conv.exe
2017/03/22  14:58           669,355 pkg-config.exe
2019/04/23  17:24            21,684 png-fix-itxt.exe
2019/04/23  17:24           274,878 png2pnm-static.exe
2019/04/23  17:24            26,602 png2pnm.exe
2019/04/23  17:24            80,320 pngfix.exe
2019/04/23  17:24           275,963 pnm2png-static.exe
2019/04/23  17:24            27,475 pnm2png.exe
2019/11/06  03:15            82,944 ppm2tiff.exe
2020/06/08  15:21           123,005 psktool.exe
2019/12/29  06:37            49,152 psl.exe
2020/06/17  14:11            97,280 python.exe
2020/06/17  14:11            97,280 python3.8.exe
2020/06/17  14:11            97,280 python3.exe
2020/06/17  14:11            95,744 python3w.exe
2020/05/25  16:27           125,952 pzstd.exe
2020/06/02  13:08         2,242,560 ranlib.exe
2019/11/06  03:15            56,320 raw2tiff.exe
2020/06/25  17:05            47,282 rdjpgcom.exe
2020/06/02  13:08         1,929,728 readelf.exe
2020/06/09  18:47            31,156 recode-sr-latin.exe
2020/06/08  14:17            33,382 rsvg-convert.exe
2020/05/05  15:05            58,368 sexp-conv.exe
2020/06/02  13:08         2,217,472 size.exe
2020/06/22  16:34         2,288,542 sqlite3.exe
2020/06/22  16:34         1,833,750 sqlite3_analyzer.exe
2020/06/08  15:21           131,155 srptool.exe
2020/06/02  13:08         2,216,448 strings.exe
2020/06/02  13:08         2,353,152 strip.exe
2019/12/23  18:49            79,872 tclsh.exe
2019/12/23  18:49            79,872 tclsh86.exe
2019/11/06  03:15            52,736 tiff2bw.exe
2019/11/06  03:15           105,472 tiff2pdf.exe
2019/11/06  03:15            87,552 tiff2ps.exe
2019/11/06  03:15            52,736 tiff2rgba.exe
2019/11/06  03:15            55,296 tiffcmp.exe
2019/11/06  03:15            72,704 tiffcp.exe
2019/11/06  03:15           167,424 tiffcrop.exe
2019/11/06  03:15            51,712 tiffdither.exe
2019/11/06  03:15            57,344 tiffdump.exe
2019/11/06  03:15            52,736 tiffinfo.exe
2019/11/06  03:15            56,320 tiffmedian.exe
2019/11/06  03:15            48,640 tiffset.exe
2019/11/06  03:15            48,128 tiffsplit.exe
2020/06/25  17:05           114,970 tjbench.exe
2018/08/23  02:08            83,708 trietool-0.2.exe
2018/08/23  02:08            83,708 trietool.exe
2020/04/10  03:57           214,016 trust.exe
2020/03/18  15:19            77,824 unxz.exe
2020/05/10  03:57            59,904 update-mime-database.exe
2020/01/14  14:11            64,000 webpinfo.exe
2020/01/14  14:11            93,696 webpmux.exe
2020/05/28  21:31           486,912 widl.exe
2020/06/02  13:08         2,239,488 windmc.exe
2020/06/02  13:08         2,330,112 windres.exe
2019/12/23  19:31            66,048 wish.exe
2019/12/23  19:31            66,048 wish86.exe
2020/06/25  17:05            47,824 wrjpgcom.exe
2018/01/17  16:54            36,022 x86_64-w64-mingw32-agrep.exe
2020/06/01  19:25         2,201,600 x86_64-w64-mingw32-c++.exe
2020/02/17  19:50           489,984 x86_64-w64-mingw32-captoinfo.exe
2020/02/17  19:50           348,160 x86_64-w64-mingw32-clear.exe
2020/06/26  17:21            64,176 x86_64-w64-mingw32-deflatehd.exe
2020/06/01  19:25         2,201,600 x86_64-w64-mingw32-g++.exe
2020/06/01  19:25         2,199,040 x86_64-w64-mingw32-gcc-10.1.0.exe
2020/06/01  19:25            64,512 x86_64-w64-mingw32-gcc-ar.exe
2020/06/01  19:25            64,512 x86_64-w64-mingw32-gcc-nm.exe
2020/06/01  19:25            64,512 x86_64-w64-mingw32-gcc-ranlib.exe
2020/06/01  19:25         2,199,040 x86_64-w64-mingw32-gcc.exe
2020/06/01  19:25         2,201,600 x86_64-w64-mingw32-gfortran.exe
2020/06/26  17:21            59,734 x86_64-w64-mingw32-inflatehd.exe
2020/02/17  19:50           462,848 x86_64-w64-mingw32-infocmp.exe
2020/02/17  19:50           489,984 x86_64-w64-mingw32-infotocap.exe
2017/03/22  14:58           669,355 x86_64-w64-mingw32-pkg-config.exe
2020/02/17  19:50           356,352 x86_64-w64-mingw32-reset.exe
2020/02/17  19:50           348,160 x86_64-w64-mingw32-tabs.exe
2020/02/17  19:50           489,984 x86_64-w64-mingw32-tic.exe
2020/02/17  19:50           409,600 x86_64-w64-mingw32-toe.exe
2020/02/17  19:50           355,328 x86_64-w64-mingw32-tput.exe
2020/02/17  19:50           356,352 x86_64-w64-mingw32-tset.exe
2020/06/09  18:47           284,923 xgettext.exe
2020/06/08  14:43            52,426 xmlcatalog.exe
2020/06/08  14:43           130,202 xmllint.exe
2019/10/09  15:46            64,747 xmlwf.exe
2020/06/29  16:49            75,606 xxhsum.exe
2020/03/18  15:19            77,824 xz.exe
2020/03/18  15:19            77,824 xzcat.exe
2020/03/18  15:19            51,712 xzdec.exe
2020/06/03  00:00            61,124 yat2m.exe
2020/05/25  16:27           864,768 zstd.exe
             269 个文件    166,397,879 字节
               0 个目录 260,518,604,800 可用字节

This change addresses item #[[put issue number here to generate a link]]

This changes [[visible behavior/performance/documentation/etc.]]

The following changes are proposed:

The purpose of this change

Other Notes/Information

Copy link
Member

@bobbrow bobbrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, with a small question about the slashes replacement.

src/debugger.ts Outdated Show resolved Hide resolved
@bobbrow bobbrow merged commit 8fa4508 into microsoft:develop Jul 15, 2020
@bobbrow
Copy link
Member

bobbrow commented Sep 17, 2020

This is available in 1.4.2

@bobbrow bobbrow added this to the 1.4.2 milestone Sep 17, 2020
@lygstate lygstate deleted the fix-mingw-gdb branch February 16, 2021 05:14
@github-actions github-actions bot locked and limited conversation to collaborators Jan 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants