StackFrameUtils.h 404 B

1234567891011121314151617181920212223
  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. }