[Lldb-commits] [PATCH] D108018: [lldb] [gdb-remote] Support QEnvironment fallback to hex-encoded

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 7 05:49:48 PDT 2021


labath accepted this revision.
labath added a comment.
This revision is now accepted and ready to land.

cool



================
Comment at: lldb/test/API/tools/lldb-server/main.cpp:332
+      const char *value = getenv(arg.c_str());
+      printf("%s\n", value ? value : "__unset__");
     } else {
----------------
Printing a quoted this in the case of a null pointer is exactly the opposite of what one would normally expect. It's not a big deal, since we control the inputs, but it may still be better to print `<unset>` or something like that instead...


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D108018/new/

https://reviews.llvm.org/D108018



More information about the lldb-commits mailing list