Skip to content

Conversation

@xujuntwt95329
Copy link
Collaborator

No description provided.

#include "gdbserver.h"
#include "thread_manager.h"

#define DEBUG_EXECUTION_MEMORY_SIZE 0x85000
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we define it in core/config.h, and use #ifndef..#define..#endif? Since in Embedded system, the memory may be limit, we had better let developer be able to adjust it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I moved it into config.h

BTW, this value is required by lldb, so user shouldn't change it, I leave a comment in config.h as well

@wenyongh wenyongh merged commit 24afd4e into bytecodealliance:main Apr 4, 2022
vickiegpt pushed a commit to vickiegpt/wamr-aot-gc-checkpoint-restore that referenced this pull request May 27, 2024
During debugging, the debug client may request to malloc a memory space
to evaluate the user expressions. If we malloc memory from the linear memory,
it may fail when the thread is in stop status. We preserve a buffer during
creating debug instance, and use a simple bump pointer allocator to serve lldb's
memory request.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants