Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | memview: u for basic undo | Jari Vetoniemi | 2018-10-23 |
| | |||
* | memview: make q key quit the program | Jari Vetoniemi | 2018-10-23 |
| | |||
* | memview: store unknown region in named array | Jari Vetoniemi | 2018-10-23 |
| | | | | This makes view referseshes work without special casing | ||
* | memview: Make it possible to follow selections | Jari Vetoniemi | 2018-10-23 |
| | | | | If you think selection is a address and want to go there, press 'f' | ||
* | memview: add memory write feature | Jari Vetoniemi | 2018-10-23 |
| | |||
* | memview: check length of keybindings | Jari Vetoniemi | 2018-10-23 |
| | |||
* | memview: make error prompts go away with any press | Jari Vetoniemi | 2018-10-23 |
| | |||
* | memview: add decimal printing of selection | Jari Vetoniemi | 2018-10-23 |
| | |||
* | memview: draw_error make sure there's space | Jari Vetoniemi | 2018-10-23 |
| | | | | Don't - cur.x if cur.x > screen width | ||
* | memview: Fix region names | Jari Vetoniemi | 2018-10-23 |
| | | | | The old way failed for spaces, this is much better anyways | ||
* | memview: Use FMT(REVERSE) for selections | Jari Vetoniemi | 2018-10-23 |
| | |||
* | memview: consistency in code | Jari Vetoniemi | 2018-10-23 |
| | | | | | Everything else uses "data" instead of "buffer" for array of bytes, so lets not make screen a exception. | ||
* | memview: Reuse input handling for input function | Jari Vetoniemi | 2018-10-23 |
| | | | | | | | | | Also better inputline in general. We are basically reimplementing getline here. There's lots of repeated patterns here we could split into nicer utiliteis, but lets clean later. I want a useful tool as first prioritory. | ||
* | memview: fix uninitialized variable | Jari Vetoniemi | 2018-10-22 |
| | |||
* | memview: Make memview tolerate various term sizes | Jari Vetoniemi | 2018-10-22 |
| | | | | | Kinda ugly, maybe needs better solution sometime. But this is good enough for now. | ||
* | memview: handle errorneus offsets | Jari Vetoniemi | 2018-10-22 |
| | |||
* | memview: fix some bugs in the input() | Jari Vetoniemi | 2018-10-22 |
| | |||
* | memview: Don't use tab for region change | Jari Vetoniemi | 2018-10-22 |
| | | | | Use this later for changing to different views | ||
* | memview: Make it possible to jump to offset with o | Jari Vetoniemi | 2018-10-22 |
| | |||
* | memview: Dont fallback on custom region file fail | Jari Vetoniemi | 2018-10-22 |
| | |||
* | memview: create fake region if in unknown region | Jari Vetoniemi | 2018-10-22 |
| | |||
* | memview: Handle all keys | Jari Vetoniemi | 2018-10-22 |
| | |||
* | memview: ^D quits | Jari Vetoniemi | 2018-10-22 |
| | |||
* | Remove recommendations as it's safety hazard | Jari Vetoniemi | 2018-10-22 |
| | |||
* | Add memview.c | Jari Vetoniemi | 2018-10-22 |
| | |||
* | util.h: off by one in region end | Jari Vetoniemi | 2018-10-22 |
| | |||
* | Split for_each_line_in_file and make more generic | Jari Vetoniemi | 2018-10-22 |
| | |||
* | util.h: make step const | Jari Vetoniemi | 2018-10-21 |
| | |||
* | Make for_each_line_in_file work with non \n stuff | Jari Vetoniemi | 2018-10-21 |
| | |||
* | Nicer makefile | Jari Vetoniemi | 2018-10-21 |
| | |||
* | Make bintrim accept hexdecimal format too | Jari Vetoniemi | 2018-10-21 |
| | |||
* | Give binsearch ability to find all matches | Jari Vetoniemi | 2018-10-21 |
| | |||
* | Add notes about uio | Jari Vetoniemi | 2018-10-21 |
| | |||
* | Refactor io utils, add *-address-rw tools | Jari Vetoniemi | 2018-10-21 |
| | | | | | | | Namespace io_ stuff into mem_io_ to be less likely to collision with anything else. Add io-stream utility for working with streams instead of direct buffers. Add address-rw tools for simple memory read/write, where regions aren't needed. | ||
* | Split region reading to util.h | Jari Vetoniemi | 2018-10-20 |
| | |||
* | Move io.h include to top of the file | Jari Vetoniemi | 2018-10-19 |
| | |||
* | Refactor project, offer uio variant of region-rw | Jari Vetoniemi | 2018-10-19 |
| | |||
* | Add comment about setcap at top of the program | Jari Vetoniemi | 2018-10-19 |
| | |||
* | proc-region-rw: minor consistency edit | Jari Vetoniemi | 2018-10-19 |
| | | | | MODE_MAP is first everywhere else so.. | ||
* | brute-map.bash: drop regions that aren't found | Jari Vetoniemi | 2018-10-18 |
| | |||
* | proc-region-rw: use errx | Jari Vetoniemi | 2018-10-18 |
| | |||
* | Add some tools | Jari Vetoniemi | 2018-10-18 |
| | |||
* | fix read mode | Jari Vetoniemi | 2018-10-18 |
| | |||
* | Nicer cli interface | Jari Vetoniemi | 2018-10-18 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | Remove some behaviour that isn't clear to user, such as if no offset argument is given, write uses the map offsets from regions to write data from file starting from the region's map offset! now write is explicit and does exactly what you would expect. map is provided for remapping regions, that is providing file (such as shared library usually), and it will write contents of it starting from the region map offset for each given region. Assuming maps has this line: `7f392b87e000-7f392b8b9000 r-xp 00017000 08:01 133842 /usr/lib/libncursesw.so.6.1` And we do this: `proc-region-rw <pid> write /usr/lib/libncursesw.so << maps` The contents of /usr/lib/libncursesw.so would be written to 7f392b87e000-7f392b8b9000 (This will most likely cause htop to crash) Now if we do this instead: `proc-region-rw <pid> map /usr/lib/libncursesw.so << maps` The contents of /usr/lib/libncursesw.so _starting from offset 000170000_ would be written to 7f392b87e000-7f392b8b9000. Notice the difference, map function uses the offset information from region, to write contents from the input file, starting from the offset in the region. (This should not crash htop.) | ||
* | Remove cruft from makefile | Jari Vetoniemi | 2018-10-18 |
| | |||
* | Initial commit | Jari Vetoniemi | 2018-10-18 |