StackFrameUtils.h 403 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright (c) 2020, Itamar S. <itamar8910@gmail.com>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/Optional.h>
  8. #include <AK/Types.h>
  9. #include <LibDebug/DebugSession.h>
  10. namespace Debug::StackFrameUtils {
  11. struct StackFrameInfo {
  12. FlatPtr return_address;
  13. FlatPtr next_ebp;
  14. };
  15. Optional<StackFrameInfo> get_info(ProcessInspector const&, FlatPtr current_ebp);
  16. }