Debug info in free build using XP SP1 DDK

Dear Folks,

I work with a team that uses the XP SP1 DDK for development. Unfortunately, the free builds still include the /DEBUG and /DEBUGTYPE:CV switches. Although most of the debugging information goes into the PDB file, we want to keep our binary as small as possible. The only way to change this behavior appears to be to modify makefile.def directly.

I have looked at every documented environment variable and all the options to BUILD, but I cannot find any way of disabling this annoying behavior. If anyone else has solved this problem, please let me know. However, if your suggestion includes “use a later version of the DDK” please do not waste your time or mine: The use of the XP SP1 DDK is mandated by management and is not open for debate.

Thank you,
David

How about stripping the executable(s) you’re building with binplace? Have you looked at that??

Peter
OSR

Say

USE_PDB=1

in your SOURCES file. After this, I never saw any symbol tables within the
binary itself.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From:
To: “Windows System Software Devs Interest List”
Sent: Friday, September 29, 2006 9:16 PM
Subject: [ntdev] Debug info in free build using XP SP1 DDK

> Dear Folks,
>
> I work with a team that uses the XP SP1 DDK for development. Unfortunately,
the free builds still include the /DEBUG and /DEBUGTYPE:CV switches. Although
most of the debugging information goes into the PDB file, we want to keep our
binary as small as possible. The only way to change this behavior appears to
be to modify makefile.def directly.
>
> I have looked at every documented environment variable and all the options to
BUILD, but I cannot find any way of disabling this annoying behavior. If
anyone else has solved this problem, please let me know. However, if your
suggestion includes “use a later version of the DDK” please do not waste your
time or mine: The use of the XP SP1 DDK is mandated by management and is not
open for debate.
>
> Thank you,
> David
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

What and where is binplace?

Will

USE_PDB=1

remove the string that shows up in the driver that has the name of the .PDB file?

C’mon… Did you google it?

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/DevTest_g/hh/DevTest_g/BinPlace_3462b77e-c3e8-4e99-a385-fe59e20b6248.xml.asp

Peter

xxxxx@intergate.com wrote:

Will

USE_PDB=1

remove the string that shows up in the driver that has the name of the .PDB file?

Wouldn’t it have been significantly quicker just to try this, rather
than wait hours for a response from a world-wide mailing list?


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Dear Peter,

xxxxx@osr.com wrote:

C’mon… Did you google it?

No. I looked for it on my hard drive.

If I don’t have it in my development environment, then none of the
other developers do. Another requirement I am working under is that
I cannot use any tools that are not already part of the development
environment.

Thanks

Dear Tim,

Tim Roberts wrote:

xxxxx@intergate.com wrote:

>Will
>
> USE_PDB=1
>
>remove the string that shows up in the driver that has the name of the .PDB file?
>
>

Wouldn’t it have been significantly quicker just to try this, rather
than wait hours for a response from a world-wide mailing list?

I am not in a hurry.

Thanks

> ----------

From: xxxxx@lists.osr.com[SMTP:xxxxx@lists.osr.com] on behalf of Cullen[SMTP:xxxxx@intergate.com]
Reply To: Windows System Software Devs Interest List
Sent: Monday, October 09, 2006 11:48 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Debug info in free build using XP SP1 DDK

If I don’t have it in my development environment, then none of the
other developers do.

I’m sorry to break your unpretentious assumption but I have it in my development environment: WINDDK\3790.1830\bin\x86\binplace.exe for example and similarly in any newer WDK.

Another requirement I am working under is that
I cannot use any tools that are not already part of the development
environment.

But you should be at least allowed to use up-to-date tools. If you’re using XP SP1 DKK as subject indicates, you’re using obsolete tools.

Best regards,

Michal Vodicka
UPEK, Inc.
[xxxxx@upek.com, http://www.upek.com]

You either seem to be missing both Peter’s and Tim’s respective points,
or, more likely you just don’t care. While most of us like to help, we
are not interested in doing your job, particularly when it comes
mindless tedious items like this, and especially if you’re going to be
dick about it.

mm

>> xxxxx@intergate.com 2006-10-09 17:52 >>>
Dear Tim,

Tim Roberts wrote:

xxxxx@intergate.com wrote:

>Will
>
> USE_PDB=1
>
>remove the string that shows up in the driver that has the name of
the .PDB file?
>
>

Wouldn’t it have been significantly quicker just to try this, rather
than wait hours for a response from a world-wide mailing list?

I am not in a hurry.

Thanks


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Dear Michal,

Michal Vodicka wrote:

I’m sorry to break your unpretentious assumption but I have it in my development environment: WINDDK\3790.1830\bin\x86\binplace.exe for example and similarly in any newer WDK.

> Another requirement I am working under is that
> I cannot use any tools that are not already part of the development
> environment.
>
But you should be at least allowed to use up-to-date tools. If you’re using XP SP1 DKK as subject indicates, you’re using obsolete tools.

If you read my original post you would have read this:

> However, if your suggestion includes “use a later version of
> the DDK” please do not waste your time or mine: The use of
> the XP SP1 DDK is mandated by management and is not open for
> debate.

It’s still not open for debate. My boss tells me what to do, not
the other way around.

Best regards,

Michal Vodicka
UPEK, Inc.
[xxxxx@upek.com, http://www.upek.com]

Thanks anyway

Dear Martin,

Martin O’Brien wrote:

You either seem to be missing both Peter’s and Tim’s respective points,
or, more likely you just don’t care. While most of us like to help, we
are not interested in doing your job, particularly when it comes
mindless tedious items like this, and especially if you’re going to be
dick about it.

I can see how you might interpret my response as dickish. I
apologize. I was talking to a co-worker via IM while I was trying
to finish it so I kept it short.

I performed the experiment with USE_PDB=1 and it did not produce the
results I wanted. However, I may have done something wrong, and I
was still interested to see if that approach could achieve the
desired result of removing the name of the .PDB file. If someone
responds in the affirmative, I will be able to ask them exactly what
they did. Also, someone else may have read my question and
responded with a different solution.

In addition, I meant what I said about not being in a hurry. I am
used to posting questions to newsgroups and waiting many days for a
useful response. This is a planet with 24 time zones and some
people may not read these posts for another 12 hours. Some people
may only check this newsgroup every few days or even weeks.

Sorry for sounding dickish
Thanks

No worries. Having just reread my posting this morning, it was not my
finest moment either.

mm

>> xxxxx@intergate.com 2006-10-09 18:57 >>>
Dear Martin,

Martin O’Brien wrote:

You either seem to be missing both Peter’s and Tim’s respective
points,
or, more likely you just don’t care. While most of us like to help,
we
are not interested in doing your job, particularly when it comes
mindless tedious items like this, and especially if you’re going to
be
dick about it.

I can see how you might interpret my response as dickish. I
apologize. I was talking to a co-worker via IM while I was trying
to finish it so I kept it short.

I performed the experiment with USE_PDB=1 and it did not produce the
results I wanted. However, I may have done something wrong, and I
was still interested to see if that approach could achieve the
desired result of removing the name of the .PDB file. If someone
responds in the affirmative, I will be able to ask them exactly what
they did. Also, someone else may have read my question and
responded with a different solution.

In addition, I meant what I said about not being in a hurry. I am
used to posting questions to newsgroups and waiting many days for a
useful response. This is a planet with 24 time zones and some
people may not read these posts for another 12 hours. Some people
may only check this newsgroup every few days or even weeks.

Sorry for sounding dickish
Thanks


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

> Will

USE_PDB=1

remove the string that shows up in the driver that has the name of the .PDB
file?

No. Why is this string bad?

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

Dear Mr. Shatskih,

Maxim S. Shatskih wrote:

> Will
>
> USE_PDB=1
>
> remove the string that shows up in the driver that has the name of the .PDB
file?

No. Why is this string bad?

Does the string have to be bad for me to want it removed?

Anyway, it looks like no one know how to fix this beside the obvious
method of modifying the broken makefile.def.

Thanks

> > No. Why is this string bad?

Does the string have to be bad for me to want it removed?

Dunno. Usually people (including MS themselves) do not object this string to be
present in the production binaries.

I would not spend even 30 minutes of time trying to remove it. Who cares the
pathnames of my project build env?

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

I don’t mind a driver popping out a few information strings at
startup, but there is nothing more irritating than trying to debug a
driver with random free build apps/drivers spamming debug messages
all the time. A couple of wifi adapter drivers come to mind among others.

-z

At 11:53 AM 10/14/2006, you wrote:

> > No. Why is this string bad?
>
> Does the string have to be bad for me to want it removed?

Dunno. Usually people (including MS themselves) do not object this
string to be
present in the production binaries.

I would not spend even 30 minutes of time trying to remove it. Who cares the
pathnames of my project build env?

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

The PDB pathname embedded to the binary is never printed to debug output.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From:
To: “Windows System Software Devs Interest List”
Sent: Sunday, October 15, 2006 3:51 AM
Subject: Re: Re:[ntdev] Debug info in free build using XP SP1 DDK

> I don’t mind a driver popping out a few information strings at
> startup, but there is nothing more irritating than trying to debug a
> driver with random free build apps/drivers spamming debug messages
> all the time. A couple of wifi adapter drivers come to mind among others.
>
> -z
>
> At 11:53 AM 10/14/2006, you wrote:
> > > > No. Why is this string bad?
> > >
> > > Does the string have to be bad for me to want it removed?
> >
> >Dunno. Usually people (including MS themselves) do not object this
> >string to be
> >present in the production binaries.
> >
> >I would not spend even 30 minutes of time trying to remove it. Who cares the
> >pathnames of my project build env?
> >
> >Maxim Shatskih, Windows DDK MVP
> >StorageCraft Corporation
> >xxxxx@storagecraft.com
> >http://www.storagecraft.com
> >
> >
> >—
> >Questions? First check the Kernel Driver FAQ at
> >http://www.osronline.com/article.cfm?id=256
> >
> >To unsubscribe, visit the List Server section of OSR Online at
> >http://www.osronline.com/page.cfm?name=ListServer
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer