Author Topic: Cannot replace dumpbin.exe?  (Read 4716 times)

anta40

  • Member
  • ***
  • Posts: 293
Cannot replace dumpbin.exe?
« on: August 01, 2012, 10:10:55 PM »
For strange reason, I cannot replace the old dumpbin.exe included in MASM32 with the latest on from VS 2012.

Here are the steps:
1. Check the dumpbin version in C:\masm32\bin
Quote
cd C:\masm32\bin
C:\masm32\bin\dumpbin.exe
Microsoft (R) COFF Binary File Dumper Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

2. OK, it's the old one. Let's replace it with latest one from VS 2012
Quote
erase dumpbin.exe
C:\masm32\bin>copy "C:\Program Files\Microsoft Visual Studio 11.0\VC\bin\dumpbin.exe"

3. Run it
Quote
C:\masm32\bin\dumpbin.exe
Microsoft (R) COFF Binary File Dumper Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

Still the same old version?  :dazzled:

But if I run dumpbin from VS2012 command prompt:
Quote
C:\Program Files\Microsoft Visual Studio 11.0\VC\bin>dumpbin.exe
Microsoft (R) COFF/PE Dumper Version 11.00.50522.1
Copyright (C) Microsoft Corporation.  All rights reserved.

I did this several times, and it didn't change at all. But I successfully replaced the old ml.exe with the latest one (ml.exe v11.00.50522.1)

Ryan

  • Guest
Re: Cannot replace dumpbin.exe?
« Reply #1 on: August 01, 2012, 10:29:21 PM »
If you erased the dumpbin in the masm32\bin directory, it must be pulling it from somewhere else in the path.  Did you verify that the erase and copy were both successful?

sinsi

  • Member
  • *****
  • Posts: 1004
Re: Cannot replace dumpbin.exe?
« Reply #2 on: August 01, 2012, 10:35:41 PM »
Isn't dumpbin just a shell that calls "link /dumpbin"?
Try replacing link.exe as well.
I can walk on water but stagger on beer.

mywan

  • Guest
Re: Cannot replace dumpbin.exe?
« Reply #3 on: August 01, 2012, 10:50:51 PM »
Isn't dumpbin just a shell that calls "link /dumpbin"?
Try replacing link.exe as well.
Yes indeed, it is link.exe that is printing that version number.

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 4925
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Cannot replace dumpbin.exe?
« Reply #4 on: August 01, 2012, 11:20:35 PM »
Dumpbin is just a stub for LINK.EXE, match the Dumpbin version to the linker version and it will work correctly.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :biggrin:

anta40

  • Member
  • ***
  • Posts: 293
Re: Cannot replace dumpbin.exe?
« Reply #5 on: August 01, 2012, 11:25:48 PM »
Isn't dumpbin just a shell that calls "link /dumpbin"?
Try replacing link.exe as well.

Ow I didn't knew that.  :redface:
Yes that works. And don't forget to copy mspdb110.dll as well.

Vortex

  • Member
  • *****
  • Posts: 1725
Re: Cannot replace dumpbin.exe?
« Reply #6 on: August 02, 2012, 03:54:22 AM »
Hi anta40,

You can also try Pelle's podump.exe