4 Commits
Author SHA1 Message Date
Florian Märkl 1dc244b18a Various fixes and enhancements for C++ libtrace (#14)
* Fix string appending in C++ libtrace

* Fix TraceContainerReader for version 2 (metaframes)

* Replace usage of deprecated std::auto_ptr by std::unique_ptr

* Replace custom auto_vec by just std::vector

* Remove C++ dynamic exception specifications

They are deprecated in C++11 and removed in C++17.
See also C++ Core Guidelines E.30.
2022-01-15 08:22:10 -05:00
feseal 349eede6b0 metaframe (#7)
* updated readme with build and install instructions

* nicer

* fixed repo link

* x86_64 arch detection fix

* Trace container with meta information.

It's pull request must be merget with pull request bpt-trace-PR to bap-pintrace repository.

* Support streams.

This patch adds support for non-seekable devices. It also cleans the
code and simplifies the implementation.

1. Removed any actions from the destructor. A finish member-function
must be called.
2. Removed an overload for a container, there is no need to bloat the
interface.
3. Header is initialized at the creation time.
4. Removed unnecessary instance variables and member functions.

The seek function is no longer called without a purpose. At the finish
procedure, if the device is seekable, we're storing the table of
contents and update an offset in the header. Otherwise, we just skip
it.

* finish the trace in the copytrace.

As now autofinish is disabled.
2016-07-07 08:53:00 -04:00
Ivan Gotovchits 3c29b4f696 This PR is dual to the QEMU PR#7 [1] (#6)
1. The bfd library is removed and merged into frames library.
   Now we have `Frame_arch` and `Frame_mach` modules.

2. piqi files are gathered in the `piqi` folder

3. arch.hpp is renamed to `frame_arch.h`

4. frame reader is now more sloppy and will try to guess architecture
   even if it is slightly miss-specified.

[1]: https://github.com/BinaryAnalysisPlatform/qemu/pull/7/
2016-04-22 14:53:55 -04:00
Dominick DiRenzo 4f0e7968c5 Added libtrace
Change-Id: I496f28d765153df6006ff48d5c2721a7ea1098b0
2014-07-29 14:36:26 -04:00