[Lldb-commits] [lldb] [lldb][docs] add command to save core file in gdb to lldb command map. (PR #140771)
Ebuka Ezike via lldb-commits
lldb-commits at lists.llvm.org
Tue May 20 10:53:04 PDT 2025
https://github.com/da-viper updated https://github.com/llvm/llvm-project/pull/140771
>From 9e29cc1dd3a7a80fe2935b373b28ba998d2d053b Mon Sep 17 00:00:00 2001
From: Ebuka Ezike <yerimyah1 at gmail.com>
Date: Tue, 20 May 2025 18:41:29 +0100
Subject: [PATCH 1/2] [lldb][docs] add command to save core file in gdb to lldb
command map.
---
lldb/docs/use/map.rst | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/lldb/docs/use/map.rst b/lldb/docs/use/map.rst
index c648b212006e0..7bc878bf149a7 100644
--- a/lldb/docs/use/map.rst
+++ b/lldb/docs/use/map.rst
@@ -1350,6 +1350,17 @@ Dump all symbols in ``a.out`` and ``liba.so``
(lldb) image dump symtab a.out liba.so
+Save current process as a core file
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+.. code-block:: shell
+
+ (gdb) gcore filename
+
+.. code-block:: shell
+
+ (lldb) process save-core filename
+
Miscellaneous
-------------
>From 2bb08efdff842c97efc34965800777b34288a23b Mon Sep 17 00:00:00 2001
From: Ebuka Ezike <yerimyah1 at gmail.com>
Date: Tue, 20 May 2025 18:52:57 +0100
Subject: [PATCH 2/2] Update lldb/docs/use/map.rst
Co-authored-by: Jonas Devlieghere <jonas at devlieghere.com>
---
lldb/docs/use/map.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lldb/docs/use/map.rst b/lldb/docs/use/map.rst
index 7bc878bf149a7..ea166bf8f1e9a 100644
--- a/lldb/docs/use/map.rst
+++ b/lldb/docs/use/map.rst
@@ -1351,7 +1351,7 @@ Dump all symbols in ``a.out`` and ``liba.so``
(lldb) image dump symtab a.out liba.so
Save current process as a core file
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: shell
More information about the lldb-commits
mailing list