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

Merge branch 'master' into '6.0/stage' #24

Merged
merged 19 commits into from
Apr 6, 2021
Merged

Merge branch 'master' into '6.0/stage' #24

merged 19 commits into from
Apr 6, 2021

Commits on Apr 2, 2021

  1. docs: add missing css, favicon, and logo files to sdist

    Closes osandov#96.
    
    Signed-off-by: Omar Sandoval <[email protected]>
    osandov committed Apr 2, 2021
    Configuration menu
    Copy the full SHA
    39f17a5 View commit details
    Browse the repository at this point in the history
  2. tests: rename test_type_dies for pytest compatibility

    Signed-off-by: Davide Cavalca <[email protected]>
    davide125 authored and osandov committed Apr 2, 2021
    Configuration menu
    Copy the full SHA
    081d777 View commit details
    Browse the repository at this point in the history
  3. tests: properly escape regexp strings

    Signed-off-by: Davide Cavalca <[email protected]>
    davide125 authored and osandov committed Apr 2, 2021
    Configuration menu
    Copy the full SHA
    7ca1573 View commit details
    Browse the repository at this point in the history
  4. libdrgn: type: fix memcpy() undefined behavior

    It's undefined behavior to pass NULL to memcpy() even if the length is
    zero. See also commit a17215e ("libdrgn: dwarf_index: fix memcpy()
    undefined behavior").
    
    Signed-off-by: Omar Sandoval <[email protected]>
    osandov committed Apr 2, 2021
    Configuration menu
    Copy the full SHA
    c9dc7fd View commit details
    Browse the repository at this point in the history
  5. libdrgn: object: fix UBSan error for uninitialized boolean

    drgn_object_reinit() and drgn_object_copy() can both load from an
    uninitialized little_endian field, causing UBSan errors like:
    
      libdrgn/object.h:105:27: runtime error: load of value 68, which is not a valid value for type '_Bool'
    
    This only happens when little_endian isn't valid for the type and won't
    be used anyways, but it's easy enough to work around.
    
    Signed-off-by: Omar Sandoval <[email protected]>
    osandov committed Apr 2, 2021
    Configuration menu
    Copy the full SHA
    9c31f11 View commit details
    Browse the repository at this point in the history
  6. libdrgn: fix UBSan "applying zero offset to null pointer" errors

    There are a couple of places where we compute `NULL + 0`, which is
    undefined behavior. Add a helper to do this safely.
    
    Signed-off-by: Omar Sandoval <[email protected]>
    osandov committed Apr 2, 2021
    Configuration menu
    Copy the full SHA
    301cc3f View commit details
    Browse the repository at this point in the history
  7. libdrgn: work around Clang __muloti4 for the third time

    See commit 0cb77b3 ("libdrgn: work around Clang __muloti4 again")
    and commit 2dd14ad ("libdrgn: work around "undefined reference to
    '__muloti4'" when using Clang"). These keep sneaking in because I don't
    have an old enough version of Clang lying around.
    
    Signed-off-by: Omar Sandoval <[email protected]>
    osandov committed Apr 2, 2021
    Configuration menu
    Copy the full SHA
    5c86e30 View commit details
    Browse the repository at this point in the history
  8. libdrgn: cfi: don't rely on member containing a flexible array

    Clang enables -Wgnu-variable-sized-type-not-at-end by default, which
    warns for DRGN_CFI_ROW():
    
      arch_x86_64.c:735:27: warning: field 'row' with variable sized type 'struct drgn_cfi_row' not at the end of a struct or class is a GNU extension
            [-Wgnu-variable-sized-type-not-at-end]
              .default_dwarf_cfi_row = DRGN_CFI_ROW(
    
    DRGN_CFI_ROW() is gnarly anyways, so instead of having it expand to a
    pointer expression relying on this GCC extension, make it expand to an
    initializer. Then, we can initialize default_dwarf_cfi_row as a separate
    variable rather than directly in the initializer for struct
    drgn_architecture_info.
    
    This still relies on a GCC extension for static initialization of
    flexible array members, but apparently Clang is okay with that one by
    default (-Wgnu-flexible-array-initializer must be enabled explictly or
    by -Wgnu or -Wpedantic).
    
    Signed-off-by: Omar Sandoval <[email protected]>
    osandov committed Apr 2, 2021
    Configuration menu
    Copy the full SHA
    b772432 View commit details
    Browse the repository at this point in the history
  9. libdrgn: hash_table: remove unused table##_chunk_set_capacity_scale()

    The folly implementation calls this elsewhere, but we only need it in
    table##_chunk_mark_eof(), so it was folded in there.
    
    Signed-off-by: Omar Sandoval <[email protected]>
    osandov committed Apr 2, 2021
    Configuration menu
    Copy the full SHA
    acf722d View commit details
    Browse the repository at this point in the history
  10. libdrgn: hash_table: mark table##_delete_iterator() as unused

    GCC doesn't warn about table##_delete_iterator() being unused because it
    is inline, but Clang does, so add the unused attribute.
    
    Signed-off-by: Omar Sandoval <[email protected]>
    osandov committed Apr 2, 2021
    Configuration menu
    Copy the full SHA
    76d3348 View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2021

  1. CI: test with GCC and Clang

    Everytime I try to build drgn with Clang, there are a few things that
    need fixing. Let's test it so that it stays in good shape.
    
    Signed-off-by: Omar Sandoval <[email protected]>
    osandov committed Apr 3, 2021
    Configuration menu
    Copy the full SHA
    113b270 View commit details
    Browse the repository at this point in the history
  2. CI: build with -Wall -Werror

    This is the documented way that drgn should be built for development, so
    let's enforce it.
    
    Signed-off-by: Omar Sandoval <[email protected]>
    osandov committed Apr 3, 2021
    Configuration menu
    Copy the full SHA
    c7dc814 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'refs/heads/upstream-HEAD' into repo-HEAD

    Delphix Engineering committed Apr 3, 2021
    Configuration menu
    Copy the full SHA
    448200f View commit details
    Browse the repository at this point in the history
  4. Use GPL-3.0-or-later license identifier instead of GPL-3.0+

    Apparently the latter is deprecated and the former is preferred.
    
    Signed-off-by: Omar Sandoval <[email protected]>
    osandov committed Apr 3, 2021
    Configuration menu
    Copy the full SHA
    a4b9d68 View commit details
    Browse the repository at this point in the history
  5. libdrgn: Makefile: remove generated source files from CLEANFILES

    We don't actually want make clean to remove the generated files that are
    included in a distribution tarball, because then the user will need to
    regenerate them, and they might not have the dependencies installed.
    
    Signed-off-by: Omar Sandoval <[email protected]>
    osandov committed Apr 3, 2021
    Configuration menu
    Copy the full SHA
    e7367a4 View commit details
    Browse the repository at this point in the history
  6. drgn 0.0.11

    Signed-off-by: Omar Sandoval <[email protected]>
    osandov committed Apr 3, 2021
    Configuration menu
    Copy the full SHA
    78b4188 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2021

  1. Merge branch 'refs/heads/upstream-HEAD' into repo-HEAD

    Delphix Engineering committed Apr 4, 2021
    Configuration menu
    Copy the full SHA
    9b41fb3 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2021

  1. CI: temporarily disable vmtest

    With the added Clang tests, apparently vmtest is generating excessive
    traffic on Dropbox. Disable it on GitHub Actions until I can work out a
    new solution.
    
    Signed-off-by: Omar Sandoval <[email protected]>
    osandov committed Apr 5, 2021
    Configuration menu
    Copy the full SHA
    7382612 View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2021

  1. Merge branch 'refs/heads/upstream-HEAD' into repo-HEAD

    Delphix Engineering committed Apr 6, 2021
    Configuration menu
    Copy the full SHA
    531720b View commit details
    Browse the repository at this point in the history