From 4068a96f4f14ced9e6e5527e785e3dc258ca1448 Mon Sep 17 00:00:00 2001 From: ckudera <32077257+ckudera@users.noreply.github.com> Date: Tue, 11 Oct 2022 16:08:08 +0200 Subject: [PATCH 1/2] Update memory.md Update "show all the mapped area" since `show_mapinfo()` doesn't exist anymore --- docs/memory.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/memory.md b/docs/memory.md index 158846c..0907cda 100644 --- a/docs/memory.md +++ b/docs/memory.md @@ -152,7 +152,7 @@ ql.mem.string(address, "stringwith") ### Show all the mapped area ```python -ql.mem.show_mapinfo() +ql.mem.get_formatted_mapinfo() ``` ### find a free space From d4e44fc7a7633ccf4e121daa2ad362e02bc61066 Mon Sep 17 00:00:00 2001 From: ckudera <32077257+ckudera@users.noreply.github.com> Date: Mon, 24 Oct 2022 08:51:10 +0200 Subject: [PATCH 2/2] Add example to "show all the mapped area" --- docs/memory.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/memory.md b/docs/memory.md index 0907cda..931c810 100644 --- a/docs/memory.md +++ b/docs/memory.md @@ -155,6 +155,12 @@ ql.mem.string(address, "stringwith") ql.mem.get_formatted_mapinfo() ``` +Example: +```python +for info_line in self.ql.mem.get_formatted_mapinfo(): + self.ql.log.error(info_line) +``` + ### find a free space Find a specific free space size. ```python