GithubHelp home page GithubHelp logo

Earlier versions of IDA are not rendering their output using sys.displayhook which products incorrectly formatted output about ida-minsc HOT 4 CLOSED

arizvisa avatar arizvisa commented on July 17, 2024
Earlier versions of IDA are not rendering their output using sys.displayhook which products incorrectly formatted output

from ida-minsc.

Comments (4)

arizvisa avatar arizvisa commented on July 17, 2024

After fucking with this for a bit, I tried an angle where I overwrite sys.stdout and sys.stderr with a pretty lazy implementation that calls into sys.displayhook. This resulted in a recurision issue, so I then re-factored the ui.DisplayHook() implementation to use classmethods instead of being a copy of IDA 6.95's implementation. After the refactor, I then hooked sys.stdout and sys.stderr again so that it directly uses it for formatting, and...it works, but not really.

So print and other functions are processing things before the output hooks receive the object which means that there's no way to get the non-string object in order to determine how to reformat it. This makes complete sense, so I'm not sure why I started hacking away at it instead of stopping to think about it.

Essentially there's a PR sitting in the GH-64 branch, but I'm not sure how I can fix this exactly. I'd need to know exactly what the object that's evaluated returns in order to determine how to render it properly. Ideally this should be being passed to sys.displayhook, but since IDAPython is never ideal..I can't think of any way to get this object. I have some more writing I need to do and thus will sit on thinking about this for a bit, but this might get tagged as a "wontfix".

from ida-minsc.

arizvisa avatar arizvisa commented on July 17, 2024

Tagging this as "wontfix".

from ida-minsc.

arizvisa avatar arizvisa commented on July 17, 2024

Removed the "bug" label.

from ida-minsc.

arizvisa avatar arizvisa commented on July 17, 2024

Closing this issue for now since it's tagged as "wontfix" I'm not really sure how to proceed atm.

from ida-minsc.

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.