Giter VIP home page Giter VIP logo

remote-bl602's People

Contributors

lupyuen avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

remote-bl602's Issues

Consider demangling c++ symbols

cat /dev/ttyUSB0 | tee /tmp/test.log &

I'm being lazy and not testing this code, but by inspection, I'm not sure it does the right thing with demangling C++ symbols in the stack trace. Just running the collection of test.log through riscv64...-c++-filt (or doing it in a later pass over the file) should get you constructor and destructor call as well as operator overloads.

It's a matter of taste where to insert that filter. Doing it here means the output you see on the terminal will be unpleasant. It may be easier to insert it at the uses down around L131 or 140.

If this script needs to be faster, you can probably harvest the symbol table from riscv64...objdump -t (print symbols) or the more common riscv64...nm - that has a zillion options of its own. That should be less expensive than passing over a full disassembly. It may not be an issue if you're running this on a "big" computer and not the BL602 itself.

script may be easier to wrangle than cat on a serial port. There tends to be fewer flushing issues as cat normally buffers data on write in large (page or so) chunks. script has special flags for writing to pipes.

Yay for tackling an underserved problem in that project. The top-of-tree was frequently broken when I tried to be involved.

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.