Giter Club home page Giter Club logo

rdar-29208438's Introduction

rdar://29208438

Status [Radar] (http://openradar.appspot.com/radar?id=4976964230184960) Contact
Donate-Patreon Donate-Gratipay Donate-Paypal

Xcode - Breakpoints don't work with incremental LTO

  • State: Duplicate (closed)
  • Product: Developer Tools
  • Rank: No Value
  • Date: 11-Nov-2016 00:13 AM

Status

Duplicate of 28529594 (closed)

Engineering has determined that your bug report is a duplicate of another issue and will be closed.

The open or closed status of the original bug report your issue was duplicated to appears in the yellow "Duplicate of XXXXXXXX" section of the bug reporter user interface. This section appears near the top of the right column's bug detail view just under the bug number, title, state, product and rank.

If you have any questions or concerns, please update your report directly here: http://bugreport.apple.com/.

Summary

When using incremental link-time optimisation in Xcode, breakpoints won’t trigger...

The program will execute as if no breakpoints were set.

This only happen when LTO is set to incremental.
Targets without LTO or with the old monolithic LTO are not affected.

This is always reproductible, no matter which language is used.

Steps to Reproduce

Attached is an example Xcode project which demonstrates the issue.

It only consist of a main.m file, with a “hello, world”.

Try putting a breakpoint somewhere in the main function.

Now there’re two schemes you need to test:

  • LTO - With link-time optimisation.
    Breakpoint won’t trigger.
  • NO-LTO - Without link-time optimisation. Breakpoint will be hit as expected.

Expected Results

The breakpoint should be hit with both schemes.

Actual Results

Breakpoint is not hit when using the scheme with incremental LTO.

Version

  • macOS Sierra 10.12.2 Beta (16C41B)
  • Xcode version 8.1 (8B62)

Note that the issue is also reproductible with Xcode version 8.2 beta (8C23)

Configuration

The issue always occurs when using incremental LTO.

Repository Infos

Owner:			Jean-David Gadina - XS-Labs
Web:			www.xs-labs.com
Blog:			www.noxeos.com
Twitter:		@macmade
GitHub:			github.com/macmade
LinkedIn:		ch.linkedin.com/in/macmade/
StackOverflow:	stackoverflow.com/users/182676/macmade

rdar-29208438's People

Contributors

macmade avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.