Skip to content

Commit

Permalink
Put examples under 'getting started'
Browse files Browse the repository at this point in the history
  • Loading branch information
hainest committed Apr 3, 2024
1 parent 76413e4 commit 83d6f06
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 13 deletions.
16 changes: 16 additions & 0 deletions docs/examples/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Examples
########

.. toctree::
:caption: examples
:name: examples
:hidden:
:maxdepth: 2

symtab-add-type
binary_analysis
cfg
function_disassembly
instrument_function
memory_access
retee
12 changes: 12 additions & 0 deletions docs/examples/symtab-add-type.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. _`example:symtab-add-type`:

Add new user type
#################

New user-defined types can be added to a :cpp:class:`Symtab <SymtabAPI::Symtab>` object. The
following example shows both how to query type information after an
object file is successfully parsed and also add a new structure type.

.. rli:: https://raw.githubusercontent.com/dyninst/examples/master/symtabAPI/addType.cpp
:language: cpp
:linenos:
14 changes: 1 addition & 13 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ Developed by
basics/building
basics/using
basics/first_mutator
examples/index

.. toctree::
:caption: toolkit overviews
Expand All @@ -105,19 +106,6 @@ Developed by
symtabAPI/overview
usertools/DynC/overview

.. toctree::
:caption: examples
:name: examples
:hidden:
:maxdepth: 2

examples/binary_analysis
examples/cfg
examples/function_disassembly
examples/instrument_function
examples/memory_access
examples/retee

.. toctree::
:caption: toolkit api docs
:name: apis
Expand Down

0 comments on commit 83d6f06

Please sign in to comment.