Giter VIP home page Giter VIP logo

Comments (8)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Unfortunately, I don't have 64bit windows for now. Are there any suggestion how 
to 
fix _asm error? Just changing from

#if defined(_DEBUG) && defined(_MSC_VER)

to

#if defined(_DEBUG) && defined(_MSC_VER) && !defined(__x86_64__)

works as a quick solution?

Original comment by [email protected] on 18 Feb 2010 at 11:31

from google-glog.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Sorry, that does not do the trick.  The error changes to C4235: nonstandard 
extension 
used: '_asm' keyword not supported on this architecture

Original comment by [email protected] on 7 Apr 2010 at 2:05

from google-glog.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Thanks for your reply! I've just found this page: http://msdn.microsoft.com/en-
us/library/b0084kay(VS.80).aspx

It looks like

#if defined(_DEBUG) && defined(_MSC_VER) && !defined(_M_X64)

should work. Could you check if it works?

Thanks!

Original comment by [email protected] on 7 Apr 2010 at 2:26

from google-glog.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
That did the trick.  Thanks for the quick turn-around.

Original comment by [email protected] on 7 Apr 2010 at 2:44

from google-glog.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Thanks for the report again! I'll commit this change later.

Original comment by [email protected] on 7 Apr 2010 at 2:48

from google-glog.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
'_asm int 3' just triggers a breakpoint: better is to just do this with a call 
to 
DebugBreak(). No need to modify #if line at all.

(I had this line in my working copy so I could do a 64-bit Windows build 
myself. It 
looks like that's the only change besides to the VS projects.)

Original comment by [email protected] on 8 Apr 2010 at 5:19

from google-glog.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
I have also test the __debugbreak(); and it works fine.

Original comment by [email protected] on 7 Feb 2011 at 4:11

from google-glog.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Ping.

The various fixes mentioned here never seem to have actually made it into the 
repository.  As such there are still issues on 64-bit Windows due to _asm.

Is it possible to get logging.cc:1457 updated: _asm int 3 --> __debugbreak()

From this: http://msdn.microsoft.com/en-us/library/f408b4et.aspx it appears 
that it is the cleanest 32/64 agnostic way to invoke a breakpoint.

Thanks!

Original comment by [email protected] on 17 Oct 2013 at 1:34

from google-glog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.