ReactOS.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
List overview
Download
Ros-diffs
November 2008
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
ros-diffs@reactos.org
28 participants
657 discussions
Start a n
N
ew thread
[cgutman] 37341: - Merge r37399 from trunk
by cgutman@svn.reactos.org
Author: cgutman Date: Thu Nov 13 12:54:11 2008 New Revision: 37341 URL:
http://svn.reactos.org/svn/reactos?rev=37341&view=rev
Log: - Merge r37399 from trunk Modified: branches/aicom-network-fixes/drivers/network/ndis/ndis.def branches/aicom-network-fixes/drivers/network/ndis/ndis/stubs.c Modified: branches/aicom-network-fixes/drivers/network/ndis/ndis.def URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
============================================================================== --- branches/aicom-network-fixes/drivers/network/ndis/ndis.def [iso-8859-1] (original) +++ branches/aicom-network-fixes/drivers/network/ndis/ndis.def [iso-8859-1] Thu Nov 13 12:54:11 2008 @@ -233,7 +233,7 @@ NdisReadNetworkAddress@16 NdisReadPciSlotInformation@20 NdisReadPcmciaAttributeMemory@16 -;NdisReEnumerateProtocolBindings ? +NdisReEnumerateProtocolBindings@4 NdisRegisterAdapter@24 NdisRegisterAdapterShutdownHandler@12 NdisRegisterProtocol@16 Modified: branches/aicom-network-fixes/drivers/network/ndis/ndis/stubs.c URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
============================================================================== --- branches/aicom-network-fixes/drivers/network/ndis/ndis/stubs.c [iso-8859-1] (original) +++ branches/aicom-network-fixes/drivers/network/ndis/ndis/stubs.c [iso-8859-1] Thu Nov 13 12:54:11 2008 @@ -1064,6 +1064,12 @@ return NDIS_STATUS_SUCCESS; } - - -/* EOF */ +/* + * @unimplemented + */ +VOID +NTAPI +NdisReEnumerateProtocolBindings(IN NDIS_HANDLE NdisProtocolHandle) +{ + UNIMPLEMENTED; +}
16 years, 1 month
1
0
0
0
[dreimer] 37340: A loooong time ago there was something called Batch. It was a old scripting "language" which you could use for some stuff, but with hacks, so ugly, you would turn to stone if used. Then there was the new shiny Powershell Scripting Language which came from the deep resorts of the Devil GaTeS with great features like a XML parser and more. A great war began for the right to be used in the Glorious Heaven of RosBE. After some salves of XML parse and shrapnels of DeHacking, Batch wa
by dreimer@svn.reactos.org
Author: dreimer Date: Thu Nov 13 12:11:25 2008 New Revision: 37340 URL:
http://svn.reactos.org/svn/reactos?rev=37340&view=rev
Log: A loooong time ago there was something called Batch. It was a old scripting "language" which you could use for some stuff, but with hacks, so ugly, you would turn to stone if used. Then there was the new shiny Powershell Scripting Language which came from the deep resorts of the Devil GaTeS with great features like a XML parser and more. A great war began for the right to be used in the Glorious Heaven of RosBE. After some salves of XML parse and shrapnels of DeHacking, Batch was fainted and vanished. The glorious winner of the war helped to gain worldwide peace and food for the hungry ppl. After a loong live Powershell died and was replaced by PS 2.0. Modified: trunk/tools/RosBE/RosBE-Windows/Powershell/Config.ps1 Modified: trunk/tools/RosBE/RosBE-Windows/Powershell/Config.ps1 URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Powershe…
============================================================================== --- trunk/tools/RosBE/RosBE-Windows/Powershell/Config.ps1 [iso-8859-1] (original) +++ trunk/tools/RosBE/RosBE-Windows/Powershell/Config.ps1 [iso-8859-1] Thu Nov 13 12:11:25 2008 @@ -37,6 +37,7 @@ "Working Configuration File was not found in ReactOS Source Tree." } } + settitle } elseif ($args[0] -eq "update") { "old config.rbuild will be deleted and will be updated with a recent," @@ -49,9 +50,11 @@ copy ".\config.template.rbuild" "$ENV:APPDATA\RosBE\config.rbuild" "Successfully Updated." } + settitle } elseif ($args[0] -ne $null) { "Unknown parameter specified. Try 'help [COMMAND]'." + settitle } # @@ -89,8 +92,14 @@ "" $YESNO = Read-Host "(yes), (no)" if ($YESNO -eq "yes") {del "$ENV:APPDATA\RosBE\*.rbuild" | del ".\config.rbuild" | copy ".\config.template.rbuild" "$ENV:APPDATA\RosBE\config.rbuild"} - } -} + if ($YESNO -eq "no") {settitle} + } +} + +# +# Prepare XML Parser. +# +[xml] $XML = type "$ENV:APPDATA\RosBE\config.rbuild" # # Start with reading settings from config.rbuild and let the user edit them. @@ -98,8 +107,7 @@ "Sub-Architecture to build for." "Default is: none" "" -$SARCH = type "$ENV:APPDATA\RosBE\config.rbuild" | find "SARCH" | find "property name" -"$SARCH = $SARCH:~7,-1" +$SARCH = $xml.group.property | ? { $_.Name -eq "SARCH" } | % { $_.Value} "Right now: $SARCH" $SARCH_CH = Read-Host "(), (xbox)" cls @@ -115,12 +123,11 @@ " VIA: c3, c3-2" " Default is: pentium" "" -$OARCH = type "$ENV:APPDATA\RosBE\config.rbuild" | find "OARCH" | find "property name" -"$OARCH = $OARCH:~7,-1" +$OARCH = $xml.group.property | ? { $_.Name -eq "OARCH" } | % { $_.Value} "Right now: $OARCH" $OARCH_CH = Read-Host if ($OARCH_CH -eq $null) { - $OARCH_CH = "pentium" + $OARCH_CH = $OARCH } cls @@ -131,24 +138,22 @@ "official release builds and debug builds." "warning : 2,3,4,5 is not tested on ReactOS. Change at own risk." "" -$OPTIMIZE = type "$ENV:APPDATA\RosBE\config.rbuild" | find "OPTIMIZE" | find "property name" -"$OPTIMIZE = $OPTIMIZE:~7,-1" +$OPTIMIZE = $xml.group.property | ? { $_.Name -eq "OPTIMIZE" } | % { $_.Value} "Right now: $OPTIMIZE" -OPTIMIZE_CH = Read-Host "(0), (1), (2), (3), (4), (5)" +$OPTIMIZE_CH = Read-Host "(0), (1), (2), (3), (4), (5)" if ($OPTIMIZE_CH -eq $null) { - $OPTIMIZE_CH = 1 + $OPTIMIZE_CH = $OPTIMIZE } cls "Whether to compile in the integrated kernel debugger." "Default is: 1" "" -$KDBG = type "$ENV:APPDATA\RosBE\config.rbuild" | find "KDBG" | find "property name" -"$KDBG = $KDBG:~7,-1" +$KDBG = $xml.group.property | ? { $_.Name -eq "KDBG" } | % { $_.Value} "Right now: $KDBG" $KDBG_CH = Read-Host "(0), (1)" if ($KDBG_CH -eq $null) { - $KDBG_CH = 1 + $KDBG_CH = $KDBG } cls @@ -156,12 +161,11 @@ "performed." "Default is: 1" "" -$DBG = type "$ENV:APPDATA\RosBE\config.rbuild" | find "DBG" | find "property name" | find /V "KDBG" -"$DBG = $DBG:~7,-1" +$DBG = $xml.group.property | ? { $_.Name -eq "DBG" } | % { $_.Value} "Right now: $DBG" $DBG_CH = Read-Host "(0), (1)" if ($KDBG_CH -eq $null) { - $DBG_CH = 1 + $DBG_CH = $DBG } cls @@ -169,12 +173,11 @@ "don't enable this." "Default is: 0" "" -$GDB = type "$ENV:APPDATA\RosBE\config.rbuild" | find "GDB" | find "property name" -"$GDB = $GDB:~7,-1" +$GDB = $xml.group.property | ? { $_.Name -eq "GDB" } | % { $_.Value} "Right now: $GDB" $GDB_CH = Read-Host "(0), (1)" if ($GDB_CH -eq $null) { - $GDB_CH = 0 + $GDB_CH = $GDB } cls @@ -184,12 +187,11 @@ "from the patent owner)." "Default is: 0" "" -$NSWPAT = type "$ENV:APPDATA\RosBE\config.rbuild" | find "NSWPAT" | find "property name" -"$NSWPAT = $NSWPAT:~7,-1" +$NSWPAT = $xml.group.property | ? { $_.Name -eq "NSWPAT" } | % { $_.Value} "Right now: $NSWPAT" $NSWPAT_CH = Read-Host "(0), (1)" if ($NSWPAT_CH -eq $null) { - $NSWPAT_CH = 0 + $NSWPAT_CH = $NSWPAT } cls @@ -201,33 +203,26 @@ "unless you know what you're doing." "Default is: 0" "" -$WINKD = type "$ENV:APPDATA\RosBE\config.rbuild" | find "_WINKD_" | find "property name" -"$WINKD = $WINKD:~7,-1" +$WINKD = $xml.group.property | ? { $_.Name -eq "_WINKD_" } | % { $_.Value} "Right now: $WINKD" $WINKD_CH = Read-Host "(0), (1)" if ($WINKD_CH -eq $null) { - $WINKD_CH = 0 + $WINKD_CH = $WINKD } cls # # Generate a config.rbuild, copy it to the Source Tree and delete temp files. # -'<?xml version="1.0"?>' | out-file "$ENV:TEMP\config.tmp" -'<!DOCTYPE group SYSTEM "tools/rbuild/project.dtd">' | out-file -append "$ENV:TEMP\config.tmp" -'<group>' | out-file -append "$ENV:TEMP\config.tmp" -'<property name="SARCH" value="' + $SARCH_CH + '" />' | out-file -append "$ENV:TEMP\config.tmp" -'<property name="OARCH" value="' + $OARCH_CH + '" />' | out-file -append "$ENV:TEMP\config.tmp" -'<property name="OPTIMIZE" value="' + $OPTIMIZE_CH + '" />' | out-file -append "$ENV:TEMP\config.tmp" -'<property name="KDBG" value="' + $KDBG_CH + '" />' | out-file -append "$ENV:TEMP\config.tmp" -'<property name="DBG" value="' + $DBG_CH + '" />' | out-file -append "$ENV:TEMP\config.tmp" -'<property name="GDB" value="' + $GDB_CH + '" />' | out-file -append "$ENV:TEMP\config.tmp" -'<property name="NSWPAT" value="' + $NSWPAT_CH + '" />' | out-file -append "$ENV:TEMP\config.tmp" -'<property name="_WINKD_" value="' + $WINKD_CH + '" />' | out-file -append "$ENV:TEMP\config.tmp" -'</group^>' | out-file -append "'$ENV:TEMP\config.tmp" - -copy "$ENV:TEMP\config.tmp" "$ENV:APPDATA\RosBE\config.rbuild" -del $ENV:TEMP\config.tmp +$xml.group.property | ? { $_.Name -eq "SARCH" } | % { $_.Value = "$SARCH_CH"} +$xml.group.property | ? { $_.Name -eq "OARCH" } | % { $_.Value = "$OARCH_CH"} +$xml.group.property | ? { $_.Name -eq "OPTIMIZE" } | % { $_.Value = "$OPTIMIZE_CH"} +$xml.group.property | ? { $_.Name -eq "KDBG" } | % { $_.Value = "$KDBG_CH"} +$xml.group.property | ? { $_.Name -eq "DBG" } | % { $_.Value = "$DBG_CH"} +$xml.group.property | ? { $_.Name -eq "GDB" } | % { $_.Value = "$GDB_CH"} +$xml.group.property | ? { $_.Name -eq "NSWPAT" } | % { $_.Value = "$NSWPAT_CH"} +$xml.group.property | ? { $_.Name -eq "_WINKD_" } | % { $_.Value = "$WINKD_CH"} +$xml.save("$ENV:APPDATA\RosBE\config.rbuild") copy "$ENV:APPDATA\RosBE\config.rbuild" ".\config.rbuild" if ($_ROSBE_VERSION -ne $null) { @@ -254,5 +249,6 @@ $GDB = $null $NSWPAT = $null $WINKD = $null +$XML = $null settitle
16 years, 1 month
1
0
0
0
[sginsberg] 37339: - stub out NdisReEnumerateProtocolBindings
by sginsberg@svn.reactos.org
Author: sginsberg Date: Thu Nov 13 10:06:43 2008 New Revision: 37339 URL:
http://svn.reactos.org/svn/reactos?rev=37339&view=rev
Log: - stub out NdisReEnumerateProtocolBindings Modified: trunk/reactos/drivers/network/ndis/ndis.def trunk/reactos/drivers/network/ndis/ndis/stubs.c Modified: trunk/reactos/drivers/network/ndis/ndis.def URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis.…
============================================================================== --- trunk/reactos/drivers/network/ndis/ndis.def [iso-8859-1] (original) +++ trunk/reactos/drivers/network/ndis/ndis.def [iso-8859-1] Thu Nov 13 10:06:43 2008 @@ -233,7 +233,7 @@ NdisReadNetworkAddress@16 NdisReadPciSlotInformation@20 NdisReadPcmciaAttributeMemory@16 -;NdisReEnumerateProtocolBindings ? +NdisReEnumerateProtocolBindings@4 NdisRegisterAdapter@24 NdisRegisterAdapterShutdownHandler@12 NdisRegisterProtocol@16 Modified: trunk/reactos/drivers/network/ndis/ndis/stubs.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/…
============================================================================== --- trunk/reactos/drivers/network/ndis/ndis/stubs.c [iso-8859-1] (original) +++ trunk/reactos/drivers/network/ndis/ndis/stubs.c [iso-8859-1] Thu Nov 13 10:06:43 2008 @@ -1064,6 +1064,12 @@ return NDIS_STATUS_SUCCESS; } - - -/* EOF */ +/* + * @unimplemented + */ +VOID +NTAPI +NdisReEnumerateProtocolBindings(IN NDIS_HANDLE NdisProtocolHandle) +{ + UNIMPLEMENTED; +}
16 years, 1 month
1
0
0
0
[jimtabor] 37338: - Set the right flags for Background and Text color.
by jimtabor@svn.reactos.org
Author: jimtabor Date: Thu Nov 13 09:01:01 2008 New Revision: 37338 URL:
http://svn.reactos.org/svn/reactos?rev=37338&view=rev
Log: - Set the right flags for Background and Text color. Modified: trunk/reactos/dll/win32/gdi32/objects/dc.c trunk/reactos/dll/win32/gdi32/objects/text.c Modified: trunk/reactos/dll/win32/gdi32/objects/dc.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/dc…
============================================================================== --- trunk/reactos/dll/win32/gdi32/objects/dc.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/gdi32/objects/dc.c [iso-8859-1] Thu Nov 13 09:01:01 2008 @@ -1064,7 +1064,7 @@ if ( Dc_Attr->crBackgroundClr != crColor ) { - Dc_Attr->ulDirty_ |= DIRTY_LINE; + Dc_Attr->ulDirty_ |= (DIRTY_BACKGROUND|DIRTY_LINE|DIRTY_FILL); Dc_Attr->crBackgroundClr = crColor; } return OldColor; Modified: trunk/reactos/dll/win32/gdi32/objects/text.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/te…
============================================================================== --- trunk/reactos/dll/win32/gdi32/objects/text.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/gdi32/objects/text.c [iso-8859-1] Thu Nov 13 09:01:01 2008 @@ -617,7 +617,7 @@ if ( Dc_Attr->crForegroundClr != crColor ) { - Dc_Attr->ulDirty_ |= DIRTY_TEXT; + Dc_Attr->ulDirty_ |= (DIRTY_TEXT|DIRTY_LINE|DIRTY_FILL); Dc_Attr->crForegroundClr = crColor; } return OldColor;
16 years, 1 month
1
0
0
0
[greatlrd] 37337: Adding a old test for ddraw, that have lying around for awhile now, small rewrite have been done so it can be compile with reactos
by greatlrd@svn.reactos.org
Author: greatlrd Date: Thu Nov 13 03:43:46 2008 New Revision: 37337 URL:
http://svn.reactos.org/svn/reactos?rev=37337&view=rev
Log: Adding a old test for ddraw, that have lying around for awhile now, small rewrite have been done so it can be compile with reactos Modified: branches/reactx/rostests/apitests/ddrawapi/testlist.c branches/reactx/rostests/apitests/ddrawapi/tests/Test_DirectDrawCreateEx.c Modified: branches/reactx/rostests/apitests/ddrawapi/testlist.c URL:
http://svn.reactos.org/svn/reactos/branches/reactx/rostests/apitests/ddrawa…
============================================================================== --- branches/reactx/rostests/apitests/ddrawapi/testlist.c [iso-8859-1] (original) +++ branches/reactx/rostests/apitests/ddrawapi/testlist.c [iso-8859-1] Thu Nov 13 03:43:46 2008 @@ -3,6 +3,7 @@ #include "ddrawapi.h" void dump_ddrawi_directdraw_int(LPDDRAWI_DIRECTDRAW_INT lpDraw_int); +void dump_ddrawi_directdraw_lcl(LPDDRAWI_DIRECTDRAW_LCL lpDraw_lcl); /* dump all data struct when this is trun onm usefull when u debug ddraw.dll */ #define DUMP_ON 1 @@ -26,7 +27,7 @@ /* The function that gives us the number of tests */ INT NumTests(void) { - return sizeof(TestList) / sizeof(TESTENTRY); + return sizeof(TestList) / sizeof(TESTENTRY); } /* old debug macro and dump data */ @@ -34,11 +35,45 @@ void dump_ddrawi_directdraw_int(LPDDRAWI_DIRECTDRAW_INT lpDraw_int) { - printf("%08lx pIntDirectDraw7->lpVtbl : 0x%p\n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_INT, lpVtbl), lpDraw_int->lpVtbl); - printf("%08lx pIntDirectDraw7->lpLcl : 0x%p\n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_INT, lpLcl), lpDraw_int->lpLcl ); - printf("%08lx pIntDirectDraw7->lpLink : 0x%p\n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_INT, lpLink), lpDraw_int->lpLink ); - printf("%08lx pIntDirectDraw7->dwIntRefCnt : 0x%08lx \n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_INT, dwIntRefCnt), lpDraw_int->dwIntRefCnt ); + printf("%08lx LPVOID pDirectDraw->lpVtbl : 0x%p \n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_INT, lpVtbl), lpDraw_int->lpVtbl); + printf("%08lx LPDDRAWI_DIRECTDRAW_LCL pDirectDraw->lpLcl : 0x%p \n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_INT, lpLcl), lpDraw_int->lpLcl ); + printf("%08lx LPDDRAWI_DIRECTDRAW_INT pDirectDraw->lpLink : 0x%p \n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_INT, lpLink), lpDraw_int->lpLink ); + printf("%08lx DWORD pDirectDraw->dwIntRefCnt : 0x%08lx \n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_INT, dwIntRefCnt), lpDraw_int->dwIntRefCnt ); } + + +void dump_ddrawi_directdraw_lcl(LPDDRAWI_DIRECTDRAW_LCL lpDraw_lcl) +{ + printf("%08lx DWORD lpLcl->lpDDMore : 0x%08lx \n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_LCL, lpDDMore), lpDraw_lcl->lpDDMore); + printf("%08lx LPDDRAWI_DIRECTDRAW_GBL lpLcl->lpGbl : 0x%p \n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_LCL, lpGbl), lpDraw_lcl->lpGbl); + printf("%08lx DWORD lpLcl->dwUnused0 : 0x%08lx \n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_LCL, dwUnused0), lpDraw_lcl->dwUnused0); + printf("%08lx DWORD lpLcl->dwLocalFlags : 0x%08lx \n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_LCL, dwLocalFlags), lpDraw_lcl->dwLocalFlags); + printf("%08lx DWORD lpLcl->dwLocalRefCnt : 0x%08lx \n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_LCL, dwLocalRefCnt), lpDraw_lcl->dwLocalRefCnt); + printf("%08lx DWORD lpLcl->dwProcessId : 0x%08lx \n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_LCL, dwProcessId), lpDraw_lcl->dwProcessId); + printf("%08lx PVOID lpLcl->pUnkOuter : 0x%p \n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_LCL, pUnkOuter), lpDraw_lcl->pUnkOuter); + printf("%08lx DWORD lpLcl->dwObsolete1 : 0x%08lx\n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_LCL, dwObsolete1), lpDraw_lcl->dwObsolete1); + printf("%08lx ULONG_PTR lpLcl->hWnd : 0x%p \n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_LCL, hWnd), (PVOID)lpDraw_lcl->hWnd); + printf("%08lx ULONG_PTR lpLcl->hDC : 0x%p \n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_LCL, hDC), (PVOID) lpDraw_lcl->hDC); + printf("%08lx DWORD lpLcl->dwErrorMode : 0x%08lx \n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_LCL, dwErrorMode), lpDraw_lcl->dwErrorMode); + printf("%08lx LPDDRAWI_DDRAWSURFACE_INT lpLcl->lpPrimary : 0x%p \n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_LCL, lpPrimary), lpDraw_lcl->lpPrimary); + printf("%08lx LPDDRAWI_DDRAWSURFACE_INT lpLcl->lpCB : 0x%p \n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_LCL, lpCB), lpDraw_lcl->lpCB); + printf("%08lx DWORD lpLcl->dwPreferredMode : 0x%08lx \n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_LCL, dwPreferredMode), lpDraw_lcl->dwPreferredMode); + printf("%08lx HINSTANCE lpLcl->hD3DInstance : 0x%p \n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_LCL, hD3DInstance), lpDraw_lcl->hD3DInstance); + printf("%08lx PVOID lpLcl->pD3DIUnknown : 0x%p \n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_LCL, pD3DIUnknown), (PVOID) lpDraw_lcl->pD3DIUnknown); + printf("%08lx LPDDHAL_CALLBACKS lpLcl->lpDDCB : 0x%p \n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_LCL, lpDDCB), lpDraw_lcl->lpDDCB); + printf("%08lx ULONG_PTR lpLcl->hDDVxd : 0x%p \n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_LCL, hDDVxd), (PVOID) lpDraw_lcl->hDDVxd); + printf("%08lx DWORD lpLcl->dwAppHackFlags : 0x%08lx \n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_LCL, dwAppHackFlags), lpDraw_lcl->dwAppHackFlags); + printf("%08lx ULONG_PTR lpLcl->hFocusWnd : 0x%p \n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_LCL, hFocusWnd), (PVOID) lpDraw_lcl->hFocusWnd); + printf("%08lx DWORD lpLcl->dwHotTracking : 0x%08lx \n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_LCL, dwHotTracking), lpDraw_lcl->dwHotTracking); + printf("%08lx DWORD lpLcl->dwIMEState : 0x%08lx \n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_LCL, dwIMEState), lpDraw_lcl->dwIMEState); + printf("%08lx ULONG_PTR lpLcl->hWndPopup : 0x%p \n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_LCL, hWndPopup), (PVOID) lpDraw_lcl->hWndPopup); + printf("%08lx ULONG_PTR lpLcl->hDD : 0x%p \n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_LCL, hDD), (PVOID) lpDraw_lcl->hDD); + printf("%08lx ULONG_PTR lpLcl->hGammaCalibrator : 0x%p \n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_LCL, hGammaCalibrator), (PVOID) lpDraw_lcl->hGammaCalibrator); + printf("%08lx LPDDGAMMACALIBRATORPROC lpLcl->lpGammaCalibrator : 0x%p \n", FIELD_OFFSET(DDRAWI_DIRECTDRAW_LCL, lpGammaCalibrator), lpDraw_lcl->lpGammaCalibrator); +} + + + #endif /* EOF */ Modified: branches/reactx/rostests/apitests/ddrawapi/tests/Test_DirectDrawCreateEx.c URL:
http://svn.reactos.org/svn/reactos/branches/reactx/rostests/apitests/ddrawa…
============================================================================== --- branches/reactx/rostests/apitests/ddrawapi/tests/Test_DirectDrawCreateEx.c [iso-8859-1] (original) +++ branches/reactx/rostests/apitests/ddrawapi/tests/Test_DirectDrawCreateEx.c [iso-8859-1] Thu Nov 13 03:43:46 2008 @@ -19,12 +19,47 @@ RTEST(pIntDirectDraw7->lpLcl != NULL); RTEST(pIntDirectDraw7->lpLink == NULL); RTEST(pIntDirectDraw7->dwIntRefCnt == 1); + + RTEST(pIntDirectDraw7->lpLcl->lpDDMore == 0); + RTEST(pIntDirectDraw7->lpLcl->lpGbl != NULL); + RTEST(pIntDirectDraw7->lpLcl->dwUnused0 == 0); + RTEST(pIntDirectDraw7->lpLcl->dwLocalFlags == DDRAWILCL_DIRECTDRAW7); + RTEST(pIntDirectDraw7->lpLcl->dwLocalRefCnt == 1); + + /* pIntDirectDraw7->lpLcl->dwProcessId call see if we have same ProcessId */ + RTEST(pIntDirectDraw7->lpLcl->dwProcessId != 0); + + RTEST(pIntDirectDraw7->lpLcl->pUnkOuter == NULL); + RTEST(pIntDirectDraw7->lpLcl->dwObsolete1 == 0); + RTEST(pIntDirectDraw7->lpLcl->hWnd == 0); + + /* FIXME vaildate pIntDirectDraw7->lpLcl->hDC */ + RTEST(pIntDirectDraw7->lpLcl->hDC != 0); + + RTEST(pIntDirectDraw7->lpLcl->dwErrorMode == 0); + RTEST(pIntDirectDraw7->lpLcl->lpPrimary == NULL); + RTEST(pIntDirectDraw7->lpLcl->lpCB == NULL); + RTEST(pIntDirectDraw7->lpLcl->dwPreferredMode == 0); + RTEST(pIntDirectDraw7->lpLcl->hD3DInstance == NULL); + RTEST(pIntDirectDraw7->lpLcl->pD3DIUnknown == NULL); + + RTEST(pIntDirectDraw7->lpLcl->lpDDCB != NULL); + //RTEST(pIntDirectDraw7->lpLcl->hDDVxd != -1); fixme + RTEST(pIntDirectDraw7->lpLcl->hFocusWnd == 0); + RTEST(pIntDirectDraw7->lpLcl->dwHotTracking == 0); + RTEST(pIntDirectDraw7->lpLcl->dwIMEState == 0); + + RTEST(pIntDirectDraw7->lpLcl->hWndPopup == 0); + RTEST(pIntDirectDraw7->lpLcl->hDD != 0); + RTEST(pIntDirectDraw7->lpLcl->hGammaCalibrator != 0); + RTEST(pIntDirectDraw7->lpLcl->lpGammaCalibrator != NULL); } #if DUMP_ON if (pIntDirectDraw7 != NULL) { dump_ddrawi_directdraw_int(pIntDirectDraw7); + dump_ddrawi_directdraw_lcl(pIntDirectDraw7->lpLcl); } #endif
16 years, 1 month
1
0
0
0
[dreimer] 37336: Add the last missing commands in a PS1 Version. These DO NOT FULLY work yet. Commited as backup, because of PC formatting needed.
by dreimer@svn.reactos.org
Author: dreimer Date: Thu Nov 13 02:31:17 2008 New Revision: 37336 URL:
http://svn.reactos.org/svn/reactos?rev=37336&view=rev
Log: Add the last missing commands in a PS1 Version. These DO NOT FULLY work yet. Commited as backup, because of PC formatting needed. Added: trunk/tools/RosBE/RosBE-Windows/Powershell/Config.ps1 (with props) trunk/tools/RosBE/RosBE-Windows/Powershell/chdefgcc.ps1 (with props) trunk/tools/RosBE/RosBE-Windows/Powershell/reladdr2line.ps1 (with props) trunk/tools/RosBE/RosBE-Windows/Powershell/sSVN.ps1 (with props) trunk/tools/RosBE/RosBE-Windows/Powershell/scut.ps1 (with props) Modified: trunk/tools/RosBE/RosBE-Windows/Powershell/charch.ps1 trunk/tools/RosBE/RosBE-Windows/Powershell/chdefdir.ps1 trunk/tools/RosBE/RosBE-Windows/Root/Config.cmd trunk/tools/RosBE/RosBE-Windows/Root/reladdr2line.cmd Added: trunk/tools/RosBE/RosBE-Windows/Powershell/Config.ps1 URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Powershe…
============================================================================== --- trunk/tools/RosBE/RosBE-Windows/Powershell/Config.ps1 (added) +++ trunk/tools/RosBE/RosBE-Windows/Powershell/Config.ps1 [iso-8859-1] Thu Nov 13 02:31:17 2008 @@ -1,0 +1,258 @@ +# +# PROJECT: RosBE - ReactOS Build Environment for Windows +# LICENSE: GNU General Public License v2. (see LICENSE.txt) +# FILE: Root/Config.cmd +# PURPOSE: A Basic Config.rbuild Creator for ReactOS. +# COPYRIGHT: Copyright 2007 Daniel Reimer <reimer.daniel(a)freenet.de> +# +# + +$host.ui.RawUI.WindowTitle = "ReactOS Build Configurator" + +function settitle { + if ($_ROSBE_VERSION -ne $null) { + $host.ui.RawUI.WindowTitle = "ReactOS Build Environment $_ROSBE_VERSION" + } + exit +} + +# +# Receive the first Parameter and decide what to do. +# +if ($args[0] -eq "delete") { + "config.rbuild will be permanently deleted. All your settings will be gone." + "Continue?" + $YESNO = Read-Host "(yes), (no)" + if ($YESNO -eq "yes") { + if (Test-Path ".\config.rbuild") { + del ".\config.rbuild" + "Main Configuration File was found and deleted." + } else { + "Main Configuration File was not found in ReactOS Source Tree." + } + if (Test-Path "$ENV:APPDATA\RosBE\config.rbuild") { + del "$ENV:APPDATA\RosBE\config.rbuild" + "Working Configuration File was found and deleted." + } else { + "Working Configuration File was not found in ReactOS Source Tree." + } + } +} +elseif ($args[0] -eq "update") { + "old config.rbuild will be deleted and will be updated with a recent," + "default one. You will need to reconfigure it to your wishes later." + "Continue?" + $YESNO = Read-Host "(yes), (no)" + if ($YESNO -eq "yes") { + del "$_ROSBE_BASEDIR\*.rbuild" + del ".\config.rbuild" + copy ".\config.template.rbuild" "$ENV:APPDATA\RosBE\config.rbuild" + "Successfully Updated." + } +} +elseif ($args[0] -ne $null) { + "Unknown parameter specified. Try 'help [COMMAND]'." +} + +# +# Check if config.rbuild already exists. If not, get a working copy. +# +if (!(Test-Path "$ENV:APPDATA\RosBE\config.rbuild")) { + copy ".\config.template.rbuild" "$ENV:APPDATA\RosBE\config.rbuild" +} + +# +# Help prevent non-useful bug reports/questions. +# +"" +"*** Configurations other than release/debug are not useful for ***" +"*** posting bug reports, and generally not very useful for ***" +"*** IRC/Forum discussion. Please refrain from doing so unless ***" +"*** you are sure about what you are doing. ***" +"" + +$YESNO = Read-Host "(yes), (no)" + +if ($YESNO -eq "no") {settitle} + +# +# Check if config.template.rbuild is newer than config.rbuild, if it is then +# inform the user and offer an update. +# +if (Test-Path ".\config.rbuild") { + if ((gi .\config.template.rbuild).LastWriteTime -gt (gi .\config.rbuild).LastWriteTime) { + "" + "*** config.template.rbuild is newer than working config.rbuild ***" + "*** The Editor cannot continue with this file. Do you wanna ***" + "*** update to the most recent one? You need to reset all your ***" + "*** previously made settings. ***" + "" + $YESNO = Read-Host "(yes), (no)" + if ($YESNO -eq "yes") {del "$ENV:APPDATA\RosBE\*.rbuild" | del ".\config.rbuild" | copy ".\config.template.rbuild" "$ENV:APPDATA\RosBE\config.rbuild"} + } +} + +# +# Start with reading settings from config.rbuild and let the user edit them. +# +"Sub-Architecture to build for." +"Default is: none" +"" +$SARCH = type "$ENV:APPDATA\RosBE\config.rbuild" | find "SARCH" | find "property name" +"$SARCH = $SARCH:~7,-1" +"Right now: $SARCH" +$SARCH_CH = Read-Host "(), (xbox)" +cls + +"Which CPU ReactOS should be optimized for." +"" +"Examples:" +"Intel: i486, i586 / pentium, pentium-mmx, i686 / pentiumpro, pentium2, pentium3" +" pentium3m, pentium-m, pentium4 / pentium4m, prescott, nocona" +" AMD: k6, k6-2 / k6-3, athlon / athlon-tbird, athlon-4 / athlon-xp / athlon-mp" +" k8 / opteron / athlon64 / athlon-fx" +" IDT: winchip-c6, winchip2" +" VIA: c3, c3-2" +" Default is: pentium" +"" +$OARCH = type "$ENV:APPDATA\RosBE\config.rbuild" | find "OARCH" | find "property name" +"$OARCH = $OARCH:~7,-1" +"Right now: $OARCH" +$OARCH_CH = Read-Host +if ($OARCH_CH -eq $null) { + $OARCH_CH = "pentium" +} +cls + +"What level do you want ReactOS to be optimized at." +"This setting does not work if GDB is set." +"0 = off" +"1 = Normal compiling. Recommended. It is the default setting in" +"official release builds and debug builds." +"warning : 2,3,4,5 is not tested on ReactOS. Change at own risk." +"" +$OPTIMIZE = type "$ENV:APPDATA\RosBE\config.rbuild" | find "OPTIMIZE" | find "property name" +"$OPTIMIZE = $OPTIMIZE:~7,-1" +"Right now: $OPTIMIZE" +OPTIMIZE_CH = Read-Host "(0), (1), (2), (3), (4), (5)" +if ($OPTIMIZE_CH -eq $null) { + $OPTIMIZE_CH = 1 +} +cls + +"Whether to compile in the integrated kernel debugger." +"Default is: 1" +"" +$KDBG = type "$ENV:APPDATA\RosBE\config.rbuild" | find "KDBG" | find "property name" +"$KDBG = $KDBG:~7,-1" +"Right now: $KDBG" +$KDBG_CH = Read-Host "(0), (1)" +if ($KDBG_CH -eq $null) { + $KDBG_CH = 1 +} +cls + +"Whether to compile for debugging. No compiler optimizations will be" +"performed." +"Default is: 1" +"" +$DBG = type "$ENV:APPDATA\RosBE\config.rbuild" | find "DBG" | find "property name" | find /V "KDBG" +"$DBG = $DBG:~7,-1" +"Right now: $DBG" +$DBG_CH = Read-Host "(0), (1)" +if ($KDBG_CH -eq $null) { + $DBG_CH = 1 +} +cls + +"Whether to compile for debugging with GDB. If you don't use GDB," +"don't enable this." +"Default is: 0" +"" +$GDB = type "$ENV:APPDATA\RosBE\config.rbuild" | find "GDB" | find "property name" +"$GDB = $GDB:~7,-1" +"Right now: $GDB" +$GDB_CH = Read-Host "(0), (1)" +if ($GDB_CH -eq $null) { + $GDB_CH = 0 +} +cls + +"Whether to compile apps/libs with features covered software patents" +"or not. If you live in a country where software patents are" +"valid/apply, don't enable this (except they/you purchased a license" +"from the patent owner)." +"Default is: 0" +"" +$NSWPAT = type "$ENV:APPDATA\RosBE\config.rbuild" | find "NSWPAT" | find "property name" +"$NSWPAT = $NSWPAT:~7,-1" +"Right now: $NSWPAT" +$NSWPAT_CH = Read-Host "(0), (1)" +if ($NSWPAT_CH -eq $null) { + $NSWPAT_CH = 0 +} +cls + +"Whether to compile with the KD protocol. This will disable support for" +"KDBG as well as rossym and symbol lookups, and allow WinDBG to connect" +"to ReactOS. This is currently not fully working, and requires kdcom" +"from Windows 2003 or TinyKRNL. Booting into debug mode with this flag" +"enabled will result in a failure to enter GUI mode. Do not enable" +"unless you know what you're doing." +"Default is: 0" +"" +$WINKD = type "$ENV:APPDATA\RosBE\config.rbuild" | find "_WINKD_" | find "property name" +"$WINKD = $WINKD:~7,-1" +"Right now: $WINKD" +$WINKD_CH = Read-Host "(0), (1)" +if ($WINKD_CH -eq $null) { + $WINKD_CH = 0 +} +cls + +# +# Generate a config.rbuild, copy it to the Source Tree and delete temp files. +# +'<?xml version="1.0"?>' | out-file "$ENV:TEMP\config.tmp" +'<!DOCTYPE group SYSTEM "tools/rbuild/project.dtd">' | out-file -append "$ENV:TEMP\config.tmp" +'<group>' | out-file -append "$ENV:TEMP\config.tmp" +'<property name="SARCH" value="' + $SARCH_CH + '" />' | out-file -append "$ENV:TEMP\config.tmp" +'<property name="OARCH" value="' + $OARCH_CH + '" />' | out-file -append "$ENV:TEMP\config.tmp" +'<property name="OPTIMIZE" value="' + $OPTIMIZE_CH + '" />' | out-file -append "$ENV:TEMP\config.tmp" +'<property name="KDBG" value="' + $KDBG_CH + '" />' | out-file -append "$ENV:TEMP\config.tmp" +'<property name="DBG" value="' + $DBG_CH + '" />' | out-file -append "$ENV:TEMP\config.tmp" +'<property name="GDB" value="' + $GDB_CH + '" />' | out-file -append "$ENV:TEMP\config.tmp" +'<property name="NSWPAT" value="' + $NSWPAT_CH + '" />' | out-file -append "$ENV:TEMP\config.tmp" +'<property name="_WINKD_" value="' + $WINKD_CH + '" />' | out-file -append "$ENV:TEMP\config.tmp" +'</group^>' | out-file -append "'$ENV:TEMP\config.tmp" + +copy "$ENV:TEMP\config.tmp" "$ENV:APPDATA\RosBE\config.rbuild" +del $ENV:TEMP\config.tmp +copy "$ENV:APPDATA\RosBE\config.rbuild" ".\config.rbuild" + +if ($_ROSBE_VERSION -ne $null) { + $host.ui.RawUI.WindowTitle = "ReactOS Build Environment $_ROSBE_VERSION" +} + +# +# Unload all used Vars. +# +$YESNO = $null +$SARCH_CH = $null +$OARCH_CH = $null +$OPTIMIZE_CH = $null +$KDBG_CH = $null +$DBG_CH = $null +$GDB_CH = $null +$NSWPAT_CH = $null +$WINKD_CH = $null +$SARCH = $null +$OARCH = $null +$OPTIMIZE = $null +$KDBG = $null +$DBG = $null +$GDB = $null +$NSWPAT = $null +$WINKD = $null + +settitle Propchange: trunk/tools/RosBE/RosBE-Windows/Powershell/Config.ps1 ------------------------------------------------------------------------------ svn:eol-style = native Modified: trunk/tools/RosBE/RosBE-Windows/Powershell/charch.ps1 URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Powershe…
============================================================================== --- trunk/tools/RosBE/RosBE-Windows/Powershell/charch.ps1 [iso-8859-1] (original) +++ trunk/tools/RosBE/RosBE-Windows/Powershell/charch.ps1 [iso-8859-1] Thu Nov 13 02:31:17 2008 @@ -19,7 +19,7 @@ function SYSPARAM { IEX "& '$_ROSBE_BASEDIR\rosbe-gcc-env.ps1'" } -if ($args[0] -eq $null) { +if ($args.count -eq 0) { # # If Parameters were set, parse them, if not, ask the user to add them. # Modified: trunk/tools/RosBE/RosBE-Windows/Powershell/chdefdir.ps1 URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Powershe…
============================================================================== --- trunk/tools/RosBE/RosBE-Windows/Powershell/chdefdir.ps1 [iso-8859-1] (original) +++ trunk/tools/RosBE/RosBE-Windows/Powershell/chdefdir.ps1 [iso-8859-1] Thu Nov 13 02:31:17 2008 @@ -14,7 +14,7 @@ # # Parse the command line arguments. # -if ($args[0] -eq $null) { +if ($args.count -eq 0) { # # If Parameters were set, parse them, if not, ask the user to add them. # Added: trunk/tools/RosBE/RosBE-Windows/Powershell/chdefgcc.ps1 URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Powershe…
============================================================================== --- trunk/tools/RosBE/RosBE-Windows/Powershell/chdefgcc.ps1 (added) +++ trunk/tools/RosBE/RosBE-Windows/Powershell/chdefgcc.ps1 [iso-8859-1] Thu Nov 13 02:31:17 2008 @@ -1,0 +1,73 @@ +# +# PROJECT: RosBE - ReactOS Build Environment for Windows +# LICENSE: GNU General Public License v2. (see LICENSE.txt) +# FILE: Root/chdefgcc.cmd +# PURPOSE: Tool to change the current gcc in RosBE. +# COPYRIGHT: Copyright 2007 Daniel Reimer <reimer.daniel(a)freenet.de> +# Peter Ward <dralnix(a)gmail.com> +# + +if ($_ROSBE_MODE -eq "RosBE") { + $host.ui.RawUI.WindowTitle = "Change the current MinGW/GCC Host/Target directory..." +} + +function EOA { + IEX "&'$_ROSBE_BASEDIR\rosbe-gcc-env.cmd' chdefgcc" +} + +function INTERACTIVE { + $_1 = Read-Host "Please enter a MinGW/GCC directory (don't use quotes): " + if ($_1 -eq $null) { + "ERROR: You must enter a MinGW/GCC directory." + } + $_2 = Read-Host "Please specify, if this will be the Target or Host GCC: " + if ($_2 -eq $null) { + "ERROR: You must enter ""target"" or ""host""." + } +} +if ($_ROSBE_VERSION -ne $null) { + $host.ui.RawUI.WindowTitle = "ReactOS Build Environment $_ROSBE_VERSION" +} + +# +# Parse the command line arguments. +# +$_1 = $args[0] +"$_1" +$_1 = IEX "& '$_ROSBE_BASEDIR\Tools\rquote.exe' '$_1'" +$_2 = $args[1] +if ($_1 -eq $null) { + INTERACTIVE +} +if ($_2 -eq $null) { + INTERACTIVE +} + +if (Test-Path "$_ROSBE_BASEDIR\$_1\.") { + $_1 = "$_ROSBE_BASEDIR\$_1" +} elseif (!(Test-Path "$_1\.")) { + "ERROR: The path specified doesn't seem to exist." +} + +if (!(Test-Path "$_1\bin\*gcc.exe")) { + "ERROR: No MinGW/GCC found in the specified path." +} + +if ($_2 -eq "target") { + $_ROSBE_TARGET_MINGWPATH = $_1 + "Target Location: $_ROSBE_TARGET_MINGWPATH" + EOA +} +if ($_2 -eq "host") { + $_ROSBE_HOST_MINGWPATH = $_1 + "Host Location: $_ROSBE_HOST_MINGWPATH" + EOA +} else { + "ERROR: You specified wrong parameters." +} + +# +# Unload all used Vars. +# +$_1 = $null +$_2 = $null Propchange: trunk/tools/RosBE/RosBE-Windows/Powershell/chdefgcc.ps1 ------------------------------------------------------------------------------ svn:eol-style = native Added: trunk/tools/RosBE/RosBE-Windows/Powershell/reladdr2line.ps1 URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Powershe…
============================================================================== --- trunk/tools/RosBE/RosBE-Windows/Powershell/reladdr2line.ps1 (added) +++ trunk/tools/RosBE/RosBE-Windows/Powershell/reladdr2line.ps1 [iso-8859-1] Thu Nov 13 02:31:17 2008 @@ -1,0 +1,85 @@ +# +# PROJECT: RosBE - ReactOS Build Environment for Windows +# LICENSE: GNU General Public License v2. (see LICENSE.txt) +# FILE: Root/reladdr2line.cmd +# PURPOSE: Converts a value to hex and displays it. +# COPYRIGHT: Copyright 2007 Christoph von Wittich <Christoph_vW(a)reactos.org> +# Daniel Reimer <reimer.daniel(a)freenet.de> +# Peter Ward <dralnix(a)gmail.com> +# +# + +$host.ui.RawUI.WindowTitle = "reladdr2line..." + +# +# Check if the user supplied a path, if they didn't look for +# the specified file in the current directory and any +# sub-directories. +# +function CHECKPATH { + IEX "$ '&_ROSBE_BASEDIR\Tools\chkslash.exe' $_1" + if (errorlevel -eq 2) { + $_1 = dir /a:-d /s /b $_1 2>NUL | findstr "$_1" + } +} + +# +# If Parameters were set, parse them, if not, ask the user to add them. +# +function INTERACTIVE { + if ($_1 -eq $null) { + $_1 = Read-Host "Please enter the path/file to be examined: " + CHECKPATH + } + if ($_2 -eq $null) { + $_2 = Read-Host "Please enter the address you would like to analyze: " + } +} + +# +# Receive the Parameters and decide what to do. +# +if ($args[2] -ne $null) { + "ERROR: Too many parameters specified." +} +elseif ($args[0] -ne $null) { + $_1 = $args[0] + CHECKPATH +} +elseif ($args[1] -ne $null) { + $_2 = $args[1] +} +INTERACTIVE + +# +# First get the ImageBase of the File. If its smaller than the given +# Parameter, everything is ok, because it was already added onto the +# adress and can be given directly to raddr2line. If not, add it and +# give the result to raddr2line. +# +if ($_1 -eq $null) { + "ERROR: You must specify a path/file to examine." +} +if ($_2 -eq $null) { + "ERROR: You must specify a address to analyze." +} +$baseaddr = objdump -p $_1 2>NUL | findstr ImageBase +if ($i -lt $_2) { + IEX "& '$_ROSBE_BASEDIR\Tools\raddr2line.exe' '$_1' '$_2'" +} else { + set /a baseaddr+=0x$_2 + $relbase = IEX "'$_ROSBE_BASEDIR\Tools\echoh.exe' $baseaddr" + IEX "& '$_ROSBE_BASEDIR\Tools\raddr2line.exe' '$_1' '$relbase'" +} + +if ($_ROSBE_VERSION -ne $null) { + $host.ui.RawUI.WindowTitle = "ReactOS Build Environment $_ROSBE_VERSION" +} + +# +# Unload all used Vars. +# +$_1 = $null +$_2 = $null +$baseaddr = $null +$relbase = $null Propchange: trunk/tools/RosBE/RosBE-Windows/Powershell/reladdr2line.ps1 ------------------------------------------------------------------------------ svn:eol-style = native Added: trunk/tools/RosBE/RosBE-Windows/Powershell/sSVN.ps1 URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Powershe…
============================================================================== --- trunk/tools/RosBE/RosBE-Windows/Powershell/sSVN.ps1 (added) +++ trunk/tools/RosBE/RosBE-Windows/Powershell/sSVN.ps1 [iso-8859-1] Thu Nov 13 02:31:17 2008 @@ -1,0 +1,96 @@ +# +# PROJECT: RosBE - ReactOS Build Environment for Windows +# LICENSE: GNU General Public License v2. (see LICENSE.txt) +# FILE: Root/sSVN.cmd +# PURPOSE: Integrated SVN Client. +# COPYRIGHT: Copyright 2007 Daniel Reimer <reimer.daniel(a)freenet.de> +# +# + +function UP { + "Local Revision: $OFFSVN" + "Online HEAD Revision: $ONSVN" + "" + if ($OFFSVN -lt $ONSVN) { + "Your tree is not up to date. Do you want to update it?" + $UP = Read-Host "Please enter 'yes' or 'no': " + if ($UP -eq "yes") { + IEX "'$_ROSBE_BASEDIR\ssvn' update" + } + } + if ($OFFSVN -eq $ONSVN) { + "Your tree is up to date." + } +} + +# +# Receive the first parameter and decide what to do. +# +if ($args[0] -eq $null) { + "No parameter specified. Try 'help [COMMAND]'." +} + +# +# These two are directly parsed to svn. +# +elseif ($args[0] -eq "update") { + $host.ui.RawUI.WindowTitle = "SVN Updating..." + "This might take a while, so please be patient." + "" + if ($args[1] -ne $null) { + IEX "'$_ROSBE_BASEDIR\Tools\svn.exe' update -r $args[1]" + } else { + IEX "'$_ROSBE_BASEDIR\Tools\svn.exe' update" + } +} +elseif ($args[0] -eq "cleanup") { + $host.ui.RawUI.WindowTitle = "SVN Cleaning..." + "This might take a while, so please be patient." + "" + IEX "'$_ROSBE_BASEDIR\Tools\svn.exe' cleanup" +} + +# +# Check if the folder is empty. If not, output an error. +# +elseif ($args[0] -eq "create") { + $host.ui.RawUI.WindowTitle = "SVN Creating..." + if (Test-Path ".svn\.") { + "ERROR: Folder already contains a repository." + } else { + dir /b 2>nul | findstr "." >nul + if (errorlevel -eq 1) { + IEX "'$_ROSBE_BASEDIR\Tools\svn.exe' checkout
svn://svn.reactos.org/reactos/trunk/reactos
." + } else { + "ERROR: Folder is not empty. Continuing is dangerous and can cause errors. ABORTED" + } + } +} + +# +# Output the revision of the local and online trees and tell the user if +# its up to date or not. +# +elseif ($args[0] -eq "status") { + $host.ui.RawUI.WindowTitle = "SVN Status" + "This might take a while, so please be patient." + "" + $OFFSVN = IEX "'$_ROSBE_BASEDIR\Tools\svn.exe' info" | find "Revision:" + $ONSVN = IEX "'$_ROSBE_BASEDIR\Tools\svn.exe' info
svn://svn.reactos.org/reactos/trunk/reactos
" | find "Revision:" + UP +} + +elseif ($args[0] -ne $null) { + "Unknown parameter specified. Try 'help ssvn'." +} + +if ($_ROSBE_VERSION -ne $null) { + $host.ui.RawUI.WindowTitle = "ReactOS Build Environment $_ROSBE_VERSION" +} + +# +# Unload all used Vars. +# +$OFFSVN = $null +$ONSVN = $null +$UP = $null Propchange: trunk/tools/RosBE/RosBE-Windows/Powershell/sSVN.ps1 ------------------------------------------------------------------------------ svn:eol-style = native Added: trunk/tools/RosBE/RosBE-Windows/Powershell/scut.ps1 URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Powershe…
============================================================================== --- trunk/tools/RosBE/RosBE-Windows/Powershell/scut.ps1 (added) +++ trunk/tools/RosBE/RosBE-Windows/Powershell/scut.ps1 [iso-8859-1] Thu Nov 13 02:31:17 2008 @@ -1,0 +1,41 @@ +# +# PROJECT: RosBE - ReactOS Build Environment for Windows. +# LICENSE: GNU General Public License v2. (see LICENSE.txt) +# FILE: Root/scut.cmd +# PURPOSE: Manages named shortcuts to ReactOS source directories. +# COPYRIGHT: Copyright 2007 Colin Finck <mail(a)colinfinck.de> +# Daniel Reimer <reimer.daniel(a)freenet.de> +# Peter Ward <dralnix(a)gmail.com> +# + +function paramcall { + $OUT = IEX "'$_ROSBE_BASEDIR\Tools\scut.exe' $args" + + # It's a shortcut name, so change the directory + + if ($OUT -ne "Default") { + if (Test-Path "$OUT\.") { + cd $OUT + $_ROSBE_ROSSOURCEDIR = $OUT + } + } +} + +# Check if the parameter is an scut parameter, which can just be forwarded to the EXE file +if ($args[0] -eq "add") {paramcall} +if ($args[0] -eq "rem") {paramcall} +if ($args[0] -eq "edit") {paramcall} +if ($args[0] -eq "def") {paramcall} +if ($args[0] -eq "list") {paramcall} +if ($args[0] -eq "/?") {paramcall} +if ($args[0] -eq "-h") {paramcall} +if ($args[0] -eq "--help") {paramcall} + +if ($_ROSBE_VERSION -ne $null) { + $host.ui.RawUI.WindowTitle = "ReactOS Build Environment $_ROSBE_VERSION" +} + +# +# Unload all used Vars. +# +$OUT = $null Propchange: trunk/tools/RosBE/RosBE-Windows/Powershell/scut.ps1 ------------------------------------------------------------------------------ svn:eol-style = native Modified: trunk/tools/RosBE/RosBE-Windows/Root/Config.cmd URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/Con…
============================================================================== --- trunk/tools/RosBE/RosBE-Windows/Root/Config.cmd [iso-8859-1] (original) +++ trunk/tools/RosBE/RosBE-Windows/Root/Config.cmd [iso-8859-1] Thu Nov 13 02:31:17 2008 @@ -26,7 +26,6 @@ goto :NOK :CONT - if exist "config.rbuild" ( del "config.rbuild" echo Main Configuration File was found and deleted. @@ -50,7 +49,6 @@ if /i "%YESNO%"=="no" goto :NOK :CONT2 - del "%_ROSBE_BASEDIR%\*.rbuild" del "config.rbuild" copy "config.template.rbuild" "%APPDATA%\RosBE\config.rbuild" Modified: trunk/tools/RosBE/RosBE-Windows/Root/reladdr2line.cmd URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/rel…
============================================================================== --- trunk/tools/RosBE/RosBE-Windows/Root/reladdr2line.cmd [iso-8859-1] (original) +++ trunk/tools/RosBE/RosBE-Windows/Root/reladdr2line.cmd [iso-8859-1] Thu Nov 13 02:31:17 2008 @@ -38,8 +38,6 @@ :: adress and can be given directly to raddr2line. If not, add it and :: give the result to raddr2line. :: - -:RADD2RLINE if "%_1%" == "" ( echo ERROR: You must specify a path/file to examine.
16 years, 1 month
1
0
0
0
[dreimer] 37335: Update 3rd party txt file
by dreimer@svn.reactos.org
Author: dreimer Date: Thu Nov 13 02:26:51 2008 New Revision: 37335 URL:
http://svn.reactos.org/svn/reactos?rev=37335&view=rev
Log: Update 3rd party txt file Modified: trunk/reactos/media/doc/3rd Party Files.txt Modified: trunk/reactos/media/doc/3rd Party Files.txt URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/media/doc/3rd%20Party%20Fi…
============================================================================== --- trunk/reactos/media/doc/3rd Party Files.txt [iso-8859-1] (original) +++ trunk/reactos/media/doc/3rd Party Files.txt [iso-8859-1] Thu Nov 13 02:26:51 2008 @@ -9,7 +9,7 @@ Title: DejaVu Fonts Version: 2.26 -Actual Version: 2.26 +Actual Version: 2.27 Website:
http://dejavu.sourceforge.net
Title: DXTN OpenGL Compression Libs @@ -23,12 +23,12 @@ Website:
http://www.freetype.org
Title: Mesa3D -Version: 7.0.2 -Actual Version: 7.1 +Version: 7.2 +Actual Version: 7.2 Website:
http://www.mesa3d.org
Title: GNU adns -Version: 1.0 REV 1 +Version: 1.0 REV 5 Actual Version: 1.0 REV 5 Website:
http://www.chiark.greenend.org.uk/~ian/adns
|
http://adns.jgaa.com
16 years, 1 month
1
0
0
0
[tkreuzer] 37334: Forgot this one
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Wed Nov 12 22:54:47 2008 New Revision: 37334 URL:
http://svn.reactos.org/svn/reactos?rev=37334&view=rev
Log: Forgot this one Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/ke.h Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/ke.h URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/ke.h [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/ke.h [iso-8859-1] Wed Nov 12 22:54:47 2008 @@ -807,7 +807,7 @@ VOID NTAPI KeRosDumpStackFrames( - PULONG Frame, + PULONG_PTR Frame, ULONG FrameCount );
16 years, 1 month
1
0
0
0
[tkreuzer] 37333: ULONG -> ULONG_PTR in KeRosDumpStackFrames
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Wed Nov 12 22:48:07 2008 New Revision: 37333 URL:
http://svn.reactos.org/svn/reactos?rev=37333&view=rev
Log: ULONG -> ULONG_PTR in KeRosDumpStackFrames Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/ke/bug.c Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/ke/bug.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/ke/bug.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/ke/bug.c [iso-8859-1] Wed Nov 12 22:48:07 2008 @@ -229,7 +229,7 @@ VOID FASTCALL -KeRosDumpStackFrameArray(IN PULONG Frames, +KeRosDumpStackFrameArray(IN PULONG_PTR Frames, IN ULONG FrameCount) { ULONG i; @@ -267,13 +267,13 @@ { /* Print out the module name */ Addr -= (ULONG_PTR)LdrEntry->DllBase; - DbgPrint("<%wZ: %x>\n", &LdrEntry->FullDllName, Addr); + DbgPrint("<%wZ: %p>", &LdrEntry->FullDllName, (PVOID)Addr); } } else { /* Print only the address */ - DbgPrint("<%x>\n", Addr); + DbgPrint("<%p>", (PVOID)Addr); } /* Go to the next frame */ @@ -283,10 +283,10 @@ VOID NTAPI -KeRosDumpStackFrames(IN PULONG Frame OPTIONAL, +KeRosDumpStackFrames(IN PULONG_PTR Frame OPTIONAL, IN ULONG FrameCount OPTIONAL) { - ULONG Frames[32]; + ULONG_PTR Frames[32]; ULONG RealFrameCount; /* If the caller didn't ask, assume 32 frames */
16 years, 1 month
1
0
0
0
[tkreuzer] 37332: Initial Implementations of RtlVirtualUnwind and RtlWalkFrameChain. They are not yet perfect, but unwinding works!
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Wed Nov 12 22:17:53 2008 New Revision: 37332 URL:
http://svn.reactos.org/svn/reactos?rev=37332&view=rev
Log: Initial Implementations of RtlVirtualUnwind and RtlWalkFrameChain. They are not yet perfect, but unwinding works! Modified: branches/ros-amd64-bringup/reactos/lib/rtl/amd64/unwind.c Modified: branches/ros-amd64-bringup/reactos/lib/rtl/amd64/unwind.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/lib/r…
============================================================================== --- branches/ros-amd64-bringup/reactos/lib/rtl/amd64/unwind.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/lib/rtl/amd64/unwind.c [iso-8859-1] Wed Nov 12 22:17:53 2008 @@ -15,6 +15,48 @@ #define UNWIND_HISTORY_TABLE_GLOBAL 1 #define UNWIND_HISTORY_TABLE_LOCAL 2 +#define UWOP_PUSH_NONVOL 0 +#define UWOP_ALLOC_LARGE 1 +#define UWOP_ALLOC_SMALL 2 +#define UWOP_SET_FPREG 3 +#define UWOP_SAVE_NONVOL 4 +#define UWOP_SAVE_NONVOL_FAR 5 +#define UWOP_SAVE_XMM 6 +#define UWOP_SAVE_XMM_FAR 7 +#define UWOP_SAVE_XMM128 8 +#define UWOP_SAVE_XMM128_FAR 9 +#define UWOP_PUSH_MACHFRAME 10 + +typedef unsigned char UBYTE; + +typedef union _UNWIND_CODE +{ + struct + { + UBYTE CodeOffset; + UBYTE UnwindOp:4; + UBYTE OpInfo:4; + }; + USHORT FrameOffset; +} UNWIND_CODE, *PUNWIND_CODE; + +typedef struct _UNWIND_INFO +{ + UBYTE Version:3; + UBYTE Flags:5; + UBYTE SizeOfProlog; + UBYTE CountOfCodes; + UBYTE FrameRegister:4; + UBYTE FrameOffset:4; + UNWIND_CODE UnwindCode[1]; +/* union { + OPTIONAL ULONG ExceptionHandler; + OPTIONAL ULONG FunctionEntry; + }; + OPTIONAL ULONG ExceptionData[]; +*/ +} UNWIND_INFO, *PUNWIND_INFO; + PVOID NTAPI RtlpLookupModuleBase( @@ -119,6 +161,12 @@ return NULL; } +void +FORCEINLINE +SetReg(PCONTEXT Context, UCHAR Reg, ULONG64 Value) +{ + ((PULONG64)(&Context->Rax))[Reg] = Value; +} PEXCEPTION_ROUTINE NTAPI @@ -127,12 +175,126 @@ IN ULONG64 ImageBase, IN ULONG64 ControlPc, IN PRUNTIME_FUNCTION FunctionEntry, - IN OUT PCONTEXT ContextRecord, + IN OUT PCONTEXT Context, OUT PVOID *HandlerData, OUT PULONG64 EstablisherFrame, IN OUT PKNONVOLATILE_CONTEXT_POINTERS ContextPointers) { - UNIMPLEMENTED; + PUNWIND_INFO UnwindInfo; + ULONG CodeOffset; + ULONG i; + UNWIND_CODE UnwindCode; + UCHAR Reg; + + /* Use relative virtual address */ + ControlPc -= ImageBase; + + /* Sanity checks */ + if ( (ControlPc < FunctionEntry->BeginAddress) || + (ControlPc >= FunctionEntry->EndAddress) ) + { + return NULL; + } + + /* Get a pointer to the unwind info */ + UnwindInfo = RVA(ImageBase, FunctionEntry->UnwindData); + + /* Calculate relative offset to function start */ + CodeOffset = ControlPc - FunctionEntry->BeginAddress; + + /* Skip all Ops with an offset greater than the current Offset */ + i = 0; + while (i < UnwindInfo->CountOfCodes && + CodeOffset < UnwindInfo->UnwindCode[i].CodeOffset) + { + UnwindCode = UnwindInfo->UnwindCode[i]; + switch (UnwindCode.UnwindOp) + { + case UWOP_SAVE_NONVOL: + case UWOP_SAVE_XMM: + case UWOP_SAVE_XMM128: + i += 2; + break; + + case UWOP_SAVE_NONVOL_FAR: + case UWOP_SAVE_XMM_FAR: + case UWOP_SAVE_XMM128_FAR: + i += 3; + break; + + case UWOP_ALLOC_LARGE: + i += UnwindCode.OpInfo ? 3 : 2; + break; + + default: + i++; + } + } + + /* Process the left Ops */ + while (i < UnwindInfo->CountOfCodes) + { + UnwindCode = UnwindInfo->UnwindCode[i]; + switch (UnwindCode.UnwindOp) + { + case UWOP_PUSH_NONVOL: + Reg = UnwindCode.OpInfo; + SetReg(Context, Reg, *(DWORD64*)Context->Rsp); + Context->Rsp += sizeof(DWORD64); + i++; + break; + + case UWOP_ALLOC_LARGE: + if (UnwindCode.OpInfo) + { + ULONG Offset = *(ULONG*)(&UnwindInfo->UnwindCode[i+1]); + Context->Rsp += Offset; + i += 3; + } + else + { + USHORT Offset = UnwindInfo->UnwindCode[i+1].FrameOffset; + Context->Rsp += Offset * 8; + i += 2; + } + break; + + case UWOP_ALLOC_SMALL: + Context->Rsp += (UnwindCode.OpInfo + 1) * 8; + i++; + break; + + case UWOP_SET_FPREG: + i++; + break; + + case UWOP_SAVE_NONVOL: + i += 2; + break; + + case UWOP_SAVE_NONVOL_FAR: + i += 3; + break; + + case UWOP_SAVE_XMM: + i += 2; + break; + + case UWOP_SAVE_XMM_FAR: + i += 3; + case UWOP_SAVE_XMM128: + i += 2; + case UWOP_SAVE_XMM128_FAR: + i += 3; + case UWOP_PUSH_MACHFRAME: + i += 1; + } + } + + /* Unwind is finished, pop new Rip from Stack */ + Context->Rip = *(DWORD64*)Context->Rsp; + Context->Rsp += 8; + return 0; } @@ -150,4 +312,63 @@ return; } - +ULONG +NTAPI +RtlWalkFrameChain(OUT PVOID *Callers, + IN ULONG Count, + IN ULONG Flags) +{ + CONTEXT Context; + ULONG64 ControlPc, ImageBase, EstablisherFrame; + ULONG64 StackBegin, StackEnd; + PVOID HandlerData; + INT i; + PRUNTIME_FUNCTION FunctionEntry; +DPRINT1("RtlWalkFrameChain called\n"); + RtlCaptureContext(&Context); + + ControlPc = Context.Rip; + + RtlpGetStackLimits(&StackBegin, &StackEnd); + + /* Check if we want the user-mode stack frame */ + if (Flags == 1) + { + } + + /* Loop the frames */ + for (i = 0; i < Count; i++) + { + /* Lookup the FunctionEntry for the current ControlPc */ + FunctionEntry = RtlLookupFunctionEntry(ControlPc, &ImageBase, NULL); + + /* Is this a leaf function? */ + if (!FunctionEntry) + { + Context.Rip = *(ULONG64*)Context.Rsp; + Context.Rsp += sizeof(ULONG64); + DPRINT1("leaf funtion, new Rip = %p, new Rsp = %p\n", (PVOID)Context.Rip, (PVOID)Context.Rsp); + } + else + { + RtlVirtualUnwind(0, + ImageBase, + ControlPc, + FunctionEntry, + &Context, + &HandlerData, + &EstablisherFrame, + NULL); + DPRINT1("normal funtion, new Rip = %p, new Rsp = %p\n", (PVOID)Context.Rip, (PVOID)Context.Rsp); + } + + ControlPc = Context.Rip; + /* Save this frame */ + + Callers[i] = (PVOID)ControlPc; + + } + + return i; +} +
16 years, 1 month
1
0
0
0
← Newer
1
...
42
43
44
45
46
47
48
...
66
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Results per page:
10
25
50
100
200