Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce GDB interface #218

Merged
merged 4 commits into from
Nov 11, 2024
Merged

Commits on Oct 26, 2024

  1. Add small ELF parser

    This small ELF parser contains just the bare minimum functions so we
    can load ELF sections without the use of any external library.  This
    module also doesn't allocate dynamic memory.
    
    Signed-off-by: Giuliano Belinassi <[email protected]>
    giulianobelinassi committed Oct 26, 2024
    Configuration menu
    Copy the full SHA
    5844581 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2024

  1. Add small gdb interface

    Livepatch load works but it doesn't modify the addresses because there
    is nothing to interpret the insn_queue.
    
    Signed-off-by: Giuliano Belinassi <[email protected]>
    giulianobelinassi committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    9247740 View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2024

  1. Implement a insnq interpreter on libpulp side

    This commit adds a insnq_interp in libpulp side as a way to trigger a
    livepatch without the `ulp` tool.  This is useful for debugging libpulp
    as for example to use it in valgrind, since we can't run it under
    addrsan.
    
    Signed-off-by: Giuliano Belinassi <[email protected]>
    giulianobelinassi committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    afde580 View commit details
    Browse the repository at this point in the history
  2. Only build and expose the gdb interface when requested

    The gdb interface should be used for debugging libpulp, so applications
    may not want this exposed.
    
    To enable it, build with
    ```
    configure --enable-gdb-interface
    ```
    
    Signed-off-by: Giuliano Belinassi <[email protected]>
    giulianobelinassi committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    b7abdd3 View commit details
    Browse the repository at this point in the history