Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0a4ef62

Browse files
committed
Fix test that wrongly excluded some dumpbin symbols.
Keep the intermediate symbol file rather then blowing it away, for easier debugging.
1 parent0688d84 commit0a4ef62

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎src/tools/msvc/gendef.pl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# Script that generates a .DEF file for all objects in a directory
44
#
5-
# $PostgreSQL: pgsql/src/tools/msvc/gendef.pl,v 1.6 2007/05/03 14:04:03 mha Exp $
5+
# $PostgreSQL: pgsql/src/tools/msvc/gendef.pl,v 1.7 2008/01/31 03:26:14 adunstan Exp $
66
#
77

88
die"Usage: gendef.pl <modulepath>\n"unless ($ARGV[0] =~/\\([^\\]+$)/);
@@ -18,14 +18,16 @@
1818

1919
while (<$ARGV[0]/*.obj>)
2020
{
21+
my$symfile =$_;
22+
$symfile=~s/\.obj$/.sym/i;
2123
print".";
2224
system("dumpbin /symbols /out:symbols.out$_ >NUL") &&die"Could not call dumpbin";
2325
open(F,"<symbols.out") ||die"Could not open symbols.out for$_\n";
2426
while (<F>)
2527
{
2628
s/\(\)//g;
27-
nextunless/^\d/;
2829
my@pieces =split;
30+
nextunless$pieces[0] =~/^[A-F0-9]{3}$/;
2931
nextunless$pieces[6];
3032
nextif ($pieces[2]eq"UNDEF");
3133
nextunless ($pieces[4]eq"External");
@@ -41,7 +43,7 @@
4143
push@def,$pieces[6];
4244
}
4345
close(F);
44-
unlink("symbols.out");
46+
rename("symbols.out",$symfile);
4547
}
4648
print"\n";
4749

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp