[Lldb-commits] [lldb] r366364 - [docs] Adjust variable formatting table

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 17 12:49:01 PDT 2019


Author: jdevlieghere
Date: Wed Jul 17 12:49:01 2019
New Revision: 366364

URL: http://llvm.org/viewvc/llvm-project?rev=366364&view=rev
Log:
[docs] Adjust variable formatting table

While the in-place hints on valid formats are up to date (e.g. when
choosing an invalid format expr -f nonExisting -- 42), the corresponding
online docs table is not. The formats "address", "hex float",
"instruction" and "void" are missing, and "decimal" refers to an
outdated abbreviation 'i' instead of 'd'.

Patch by: Lukas Böger

Differential revision: https://reviews.llvm.org/D63813

Modified:
    lldb/trunk/docs/use/variable.rst

Modified: lldb/trunk/docs/use/variable.rst
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/docs/use/variable.rst?rev=366364&r1=366363&r2=366364&view=diff
==============================================================================
--- lldb/trunk/docs/use/variable.rst (original)
+++ lldb/trunk/docs/use/variable.rst Wed Jul 17 12:49:01 2019
@@ -197,7 +197,7 @@ pick:
 +-----------------------------------------------+------------------+--------------------------------------------------------------------------+
 | ``c-string``                                  | s                | show this as a 0-terminated C string                                     |
 +-----------------------------------------------+------------------+--------------------------------------------------------------------------+
-| ``decimal``                                   | i                | show this as a signed integer number (this does not perform a cast, it   |
+| ``decimal``                                   | d                | show this as a signed integer number (this does not perform a cast, it   |
 |                                               |                  | simply shows the bytes as  an integer with sign)                         |
 +-----------------------------------------------+------------------+--------------------------------------------------------------------------+
 | ``enumeration``                               | E                | show this as an enumeration, printing the                                |
@@ -239,6 +239,15 @@ pick:
 +-----------------------------------------------+------------------+--------------------------------------------------------------------------+
 | ``character array``                           | a                | show this as a character array                                           |
 +-----------------------------------------------+------------------+--------------------------------------------------------------------------+
+| ``address``                                   | A                | show this as an address target (symbol/file/line + offset), possibly     |
+|                                               |                  | also the string this address is pointing to                              |
++-----------------------------------------------+------------------+--------------------------------------------------------------------------+
+| ``hex float``                                 |                  | show this as hexadecimal floating point                                  |
++-----------------------------------------------+------------------+--------------------------------------------------------------------------+
+| ``instruction``                               | i                | show this as an disassembled opcode                                      |
++-----------------------------------------------+------------------+--------------------------------------------------------------------------+
+| ``void``                                      | v                | don't show anything                                                      |
++-----------------------------------------------+------------------+--------------------------------------------------------------------------+
 
 Type Summary
 ------------




More information about the lldb-commits mailing list