Giter Site home page Giter Site logo

Comments (3)

milostosic avatar milostosic commented on June 2, 2024 1

Thanks! Just published MTuner v4.7 which includes Rust demangler. Seems to work with your example.

from mtuner.

milostosic avatar milostosic commented on June 2, 2024

Hey, I did a quick & dirty integration of rust-demangle.c to rdebug, but would need some test cases - if you're can provide me with some simple rust programs for testing I could likely add that quickly.

from mtuner.

laundmo avatar laundmo commented on June 2, 2024

Hey, I did a quick & dirty integration of rust-demangle.c to rdebug, but would need some test cases - if you're can provide me with some simple rust programs for testing I could likely add that quickly.

rust-demangling.zip

Here you go: This binary does nothing but constantly reallocate 8 bytes in a uncapped loop without command-line arguments, and if you pass the leak argument it leaks those 8 bytes (never frees them)

there is basically no functions here, but it should work to test demangling (it shows them mangled in my mtuner install)

Code
use std::{env, hint::black_box};
fn main() {
    let args: Vec<_> = env::args().collect();
    if args.len() > 1 && args[1].contains("leak") {
        loop {
            let big: Vec<u8> = vec![0; 8];
            Box::new(black_box(big)).leak();
        }
    } else {
        loop {
            let big: Vec<u8> = vec![0; 8];
            let _ = black_box(big);
        }
    }
}

from mtuner.

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.