GDBMIDebugger: prepare new package

git-svn-id: trunk@44104 -
This commit is contained in:
martin 2014-02-16 21:53:24 +00:00
parent 6addfab939
commit bbab31b2c6
7 changed files with 24 additions and 3 deletions

1
.gitattributes vendored
View File

@ -7043,6 +7043,7 @@ packager/globallinks/lazcustforms-1.lpl svneol=native#text/plain
packager/globallinks/lazdaemon-0.9.9.lpl svneol=native#text/plain
packager/globallinks/lazdatadict-0.lpl svneol=native#text/plain
packager/globallinks/lazdbexport-1.lpl svneol=native#text/plain
packager/globallinks/lazdebuggergdbmi-0.1.lpl svneol=native#text/plain
packager/globallinks/lazmouseandkeyinput-0.1.lpl svneol=native#text/plain
packager/globallinks/lazmrumenu-1.lpl svneol=native#text/plain
packager/globallinks/lazopenglcontext-0.0.1.lpl svneol=native#text/plain

View File

@ -2770,7 +2770,7 @@ help:
@$(ECHO) " codetools build package CodeTools, requires lazutils"
@$(ECHO) " lcl build package LCL, requires lazutils"
@$(ECHO) " tools build lazres, svn2revisioninc, updatepofiles, lrstolfm, requires LCL with nogui widgetset"
@$(ECHO) " basecomponents build debuggerintf, lazcontrols, synedit, ideintf for the LCL_PLATFORM, requires lcl"
@$(ECHO) " basecomponents build debuggerintf, lazdebuggergdbmi, lazcontrols, synedit, ideintf for the LCL_PLATFORM, requires lcl"
@$(ECHO) " bigidecomponents build many extra packages for the LCL_PLATFORM, requires basecomponents"
@$(ECHO) " lhelp build lhelp, requires bigidecomponents"
@$(ECHO) " starter build startlazarus, requires basecomponents"
@ -2818,6 +2818,7 @@ lcl:
$(MAKE) -C lcl
basecomponents:
$(MAKE) -C components/debuggerintf
$(MAKE) -C components/lazdebuggergdbmi
$(MAKE) -C components/lazcontrols
$(MAKE) -C components/synedit
$(MAKE) -C components/ideintf
@ -2841,6 +2842,7 @@ lazbuild: registration lazutils codetools
$(MAKE) -C lcl LCL_PLATFORM=nogui
$(MAKE) -C tools
$(MAKE) -C components/debuggerintf LCL_PLATFORM=nogui
$(MAKE) -C components/lazdebuggergdbmi LCL_PLATFORM=nogui
$(MAKE) -C components/lazcontrols LCL_PLATFORM=nogui
$(MAKE) -C components/synedit LCL_PLATFORM=nogui
$(MAKE) -C components/ideintf LCL_PLATFORM=nogui

View File

@ -65,7 +65,7 @@ help:
@$(ECHO) " codetools build package CodeTools, requires lazutils"
@$(ECHO) " lcl build package LCL, requires lazutils"
@$(ECHO) " tools build lazres, svn2revisioninc, updatepofiles, lrstolfm, requires LCL with nogui widgetset"
@$(ECHO) " basecomponents build debuggerintf, lazcontrols, synedit, ideintf for the LCL_PLATFORM, requires lcl"
@$(ECHO) " basecomponents build debuggerintf, lazdebuggergdbmi, lazcontrols, synedit, ideintf for the LCL_PLATFORM, requires lcl"
@$(ECHO) " bigidecomponents build many extra packages for the LCL_PLATFORM, requires basecomponents"
@$(ECHO) " lhelp build lhelp, requires bigidecomponents"
@$(ECHO) " starter build startlazarus, requires basecomponents"
@ -131,6 +131,7 @@ lcl:
# requires lcl
basecomponents:
$(MAKE) -C components/debuggerintf
$(MAKE) -C components/lazdebuggergdbmi
$(MAKE) -C components/lazcontrols
$(MAKE) -C components/synedit
$(MAKE) -C components/ideintf
@ -189,6 +190,7 @@ lazbuild: registration lazutils codetools
$(MAKE) -C lcl LCL_PLATFORM=nogui
$(MAKE) -C tools
$(MAKE) -C components/debuggerintf LCL_PLATFORM=nogui
$(MAKE) -C components/lazdebuggergdbmi LCL_PLATFORM=nogui
$(MAKE) -C components/lazcontrols LCL_PLATFORM=nogui
$(MAKE) -C components/synedit LCL_PLATFORM=nogui
$(MAKE) -C components/ideintf LCL_PLATFORM=nogui

View File

@ -3,11 +3,12 @@
<Package Version="4">
<PathDelim Value="\"/>
<Name Value="LazDebuggerGdbmi"/>
<Author Value="Lazarus Team / Marc Weustink / Martin Friebe"/>
<CompilerOptions>
<Version Value="11"/>
<PathDelim Value="\"/>
<SearchPaths>
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)\"/>
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
</SearchPaths>
<Other>
<CompilerMessages>
@ -16,6 +17,11 @@
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
<Description Value="Debugger for Lazarus IDE.
This debugger uses gdb and is based on gdb's mi interface."/>
<License Value="GPL"/>
<Version Minor="1"/>
<Type Value="RunAndDesignTime"/>
<RequiredPkgs Count="1">
<Item1>

View File

@ -33,6 +33,7 @@ begin
PBuild.Dependencies.Add('synedit');
PBuild.Dependencies.Add('ideintf');
PBuild.Dependencies.Add('debuggerintf');
PBuild.Dependencies.Add('lazdebuggergdbmi');
pbuild.SourcePath.Add('ide');

View File

@ -0,0 +1 @@
$(LazarusDir)/components/lazdebuggergdbmi/lazdebuggergdbmi.pas

View File

@ -115,6 +115,7 @@ type
FFCLPackage: TLazPackage;
FIDEIntfPackage: TLazPackage;
FDebuggerIntfPackage: TLazPackage;
FLazDebuggerGdbmiPackage: TLazPackage;
FItems: TFPList; // unsorted list of TLazPackage
FLazarusBasePackages: TFPList;
FLazUtilsPackage: TLazPackage;
@ -376,6 +377,7 @@ type
property CodeToolsPackage: TLazPackage read FCodeToolsPackage;
property IDEIntfPackage: TLazPackage read FIDEIntfPackage;
property DebuggerIntfPackage: TLazPackage read FDebuggerIntfPackage;
property LazDebuggerGdbmiPackage: TLazPackage read FLazDebuggerGdbmiPackage;
property LazarusBasePackages: TFPList read FLazarusBasePackages;
property DefaultPackage: TLazPackage read FDefaultPackage;// fall back package for buggy/obsoleted stuff
@ -768,6 +770,8 @@ begin
FIDEIntfPackage:=nil
else if CurPkg=DebuggerIntfPackage then
FDebuggerIntfPackage:=nil
else if CurPkg=LazDebuggerGdbmiPackage then
FLazDebuggerGdbmiPackage:=nil
else if CurPkg=SynEditPackage then
FSynEditPackage:=nil
else if CurPkg=LazControlsPackage then
@ -1600,6 +1604,8 @@ begin
end
else if SysUtils.CompareText(APackage.Name,'DebuggerIntf')=0 then
SetBasePackage(FDebuggerIntfPackage)
else if SysUtils.CompareText(APackage.Name,'LazDebuggerGdbmi')=0 then
SetBasePackage(FLazDebuggerGdbmiPackage)
else if SysUtils.CompareText(APackage.Name,'SynEdit')=0 then
SetBasePackage(FSynEditPackage)
else if SysUtils.CompareText(APackage.Name,'LazControls')=0 then
@ -1710,6 +1716,7 @@ begin
LoadLazarusBasePackage('SynEdit');
LoadLazarusBasePackage('IDEIntf');
LoadLazarusBasePackage('DebuggerIntf');
LoadLazarusBasePackage('LazDebuggerGdbmi');
LoadLazarusBasePackage('LazControls');
LoadLazarusBasePackage('CodeTools');
// the default package will be added on demand
@ -1848,6 +1855,7 @@ begin
or (PackageName='synedit')
or (PackageName='ideintf')
or (PackageName='debuggerintf')
or (PackageName='lazdebuggergdbmi')
or (PackageName='codetools')
or (PackageName='lazcontrols');
end;