Fix reporting the lack of global variables in "target var".
authorJim Ingham <jingham@apple.com>
Tue, 22 Sep 2020 00:26:39 +0000 (17:26 -0700)
committerJim Ingham <jingham@apple.com>
Tue, 22 Sep 2020 00:29:40 +0000 (17:29 -0700)
commit94b0d836a105116220052313df5a58473f706cdf
treeb097aa024345f0a5c9c9e0a6ccf1a42ef49667f4
parent8fdac7cb7abbeeaed016ef9eb7a087458e41e33f
Fix reporting the lack of global variables in "target var".

There was a little thinko which meant when stopped in a frame with
debug information but whose CU didn't have any global variables we
report:

no debug info for frame <N>

This patch fixes that error message to say the intended:

no global variables in current compile unit

<rdar://problem/69086361>
lldb/source/Commands/CommandObjectTarget.cpp
lldb/test/API/functionalities/target_var/no_vars/Makefile [new file with mode: 0644]
lldb/test/API/functionalities/target_var/no_vars/TestTargetVarNoVars.py [new file with mode: 0644]
lldb/test/API/functionalities/target_var/no_vars/main.c [new file with mode: 0644]