mirror of
https://github.com/reactos/reactosdbg.git
synced 2024-11-23 03:39:43 +00:00
Modernize source and object directory checks (#4)
* Use modern output directory name in DbgHelp * Use modern outut directory name in settings dialog * Use CMake file to detect source directory * Use modern symbol file format to detect output directory Co-authored-by: William Kent <wjk@users.noreply.github.com>
This commit is contained in:
parent
bc151df5a7
commit
af9999e73d
@ -344,7 +344,7 @@ namespace DbgHelpAPI
|
||||
IntPtr hProcess;
|
||||
static Random mRandom = new Random();
|
||||
static FileMap mFileMap = new FileMap();
|
||||
string mReactosOutputPath = "output-i386", mReactosSourcePath = ".";
|
||||
string mReactosOutputPath = "output-MinGW-i386", mReactosSourcePath = ".";
|
||||
|
||||
public string ReactosOutputPath
|
||||
{
|
||||
|
@ -6,7 +6,7 @@ namespace DbgHelpAPI
|
||||
{
|
||||
public class FileMap
|
||||
{
|
||||
string []mDirectories = new string [] { "output-i386" };
|
||||
string []mDirectories = new string [] { "output-MinGW-i386" };
|
||||
Dictionary<string, List<string>> mFileByShortName = new Dictionary<string, List<string>>();
|
||||
|
||||
public string GetFilePathFromShortName(string shortname)
|
||||
|
@ -82,21 +82,21 @@ namespace RosDBG
|
||||
get { return this["SourceDirectory"].ToString(); }
|
||||
set
|
||||
{
|
||||
if (!File.Exists(value + "\\ReactOS-generic.rbuild"))
|
||||
if (!File.Exists(value + "\\toolchain-gcc.cmake"))
|
||||
MessageBox.Show("Can not find ReactOS sources in this directory!", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
this["SourceDirectory"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[CategoryAttribute("Directories"), DescriptionAttribute("Directory settings")]
|
||||
[UserScopedSetting,DefaultSettingValue(".\\output-i386"),Editor(typeof(DirectoryEditor), typeof(UITypeEditor))]
|
||||
[UserScopedSetting,DefaultSettingValue(".\\output-MinGW-i386"),Editor(typeof(DirectoryEditor), typeof(UITypeEditor))]
|
||||
public string OutputDirectory
|
||||
{
|
||||
get { return this["OutputDirectory"].ToString(); }
|
||||
set
|
||||
{
|
||||
if (!File.Exists(value + "\\ntoskrnl\\ntoskrnl.nostrip.exe"))
|
||||
MessageBox.Show("Can not find .nostrip files!\nThe Debugger will not work properly without them.\n\nPlease enable building of .nostrip files in RosBE options." , "Warning", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
if (!File.Exists(value + "\\symbols\\ntoskrnl.exe"))
|
||||
MessageBox.Show("Can not find symbol files!\nThe Debugger will not work properly without them.\n\nPlease rebuild with -DSEPARATE_DBG=1." , "Warning", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
this["OutputDirectory"] = value;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user