[Lldb-commits] [Diffusion] rL234178: We have an issue where if you use a C function right now that has no prototype…

Ilia K ki.stfu at gmail.com
Thu Apr 9 10:20:19 PDT 2015


Hello @clayborg,

The same thing on my Linux machine:

  1: test_with_dwarf_and_run_command (TestDataFormatterSynthVal.DataFormatterSynthValueTestCase)
     Test using Python synthetic children provider to provide a value. ... (myInt) x = 3
  (myInt) x = 3
  error: call to a function 'myInt::myInt(int)' ('_ZN5myIntC1Ei') that is not present in the target
  error: The expression could not be prepared to run in the target
  FAILURE
  
  ======================================================================
  FAIL: test_with_dwarf_and_run_command (TestDataFormatterSynthVal.DataFormatterSynthValueTestCase)
     Test using Python synthetic children provider to provide a value.
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/home/testuser/build/workspace/LLDB_master_release_Linux/llvm_master/tools/lldb/test/lldbtest.py", line 696, in wrapper
      func(*args, **kwargs)
    File "/home/testuser/build/workspace/LLDB_master_release_Linux/llvm_master/tools/lldb/test/lldbtest.py", line 479, in wrapper
      return func(self, *args, **kwargs)
    File "/home/testuser/build/workspace/LLDB_master_release_Linux/llvm_master/tools/lldb/test/functionalities/data-formatter/data-formatter-synthval/TestDataFormatterSynthVal.py", line 27, in test_with_dwarf_and_run_command
      self.data_formatter_commands()
    File "/home/testuser/build/workspace/LLDB_master_release_Linux/llvm_master/tools/lldb/test/functionalities/data-formatter/data-formatter-synthval/TestDataFormatterSynthVal.py", line 92, in data_formatter_commands
      self.expect("expression struct S { myInt theInt{12}; }; S()", substrs = ['(theInt = 12)'])
    File "/home/testuser/build/workspace/LLDB_master_release_Linux/llvm_master/tools/lldb/test/lldbtest.py", line 2108, in expect
      self.runCmd(str, msg=msg, trace = (True if trace else False), check = not error, inHistory=inHistory)
    File "/home/testuser/build/workspace/LLDB_master_release_Linux/llvm_master/tools/lldb/test/lldbtest.py", line 2034, in runCmd
      msg if msg else CMD_MSG(cmd))
  AssertionError: False is not True : Command 'expression struct S { myInt theInt{12}; }; S()' returns successfully
  Config=x86_64-clang
  ----------------------------------------------------------------------

and

  error: call to a function 'foo::foo(int)' ('_ZN3fooC1Ei') that is not present in the target
  error: The expression could not be prepared to run in the target
  FAILURE
  
  ======================================================================
  FAIL: test_with_dwarf (TestFormatters.ExprFormattersTestCase)
     Test expr + formatters for good interoperability.
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/home/testuser/build/workspace/LLDB_master_release_Linux/llvm_master/tools/lldb/test/lldbtest.py", line 543, in wrapper
      func(*args, **kwargs)
    File "/home/testuser/build/workspace/LLDB_master_release_Linux/llvm_master/tools/lldb/test/lldbtest.py", line 479, in wrapper
      return func(self, *args, **kwargs)
    File "/home/testuser/build/workspace/LLDB_master_release_Linux/llvm_master/tools/lldb/test/expression_command/formatters/TestFormatters.py", line 33, in test_with_dwarf
      self.do_my_test()
    File "/home/testuser/build/workspace/LLDB_master_release_Linux/llvm_master/tools/lldb/test/expression_command/formatters/TestFormatters.py", line 60, in do_my_test
      substrs = ['(int) a = 47', '(bar) b = {', '(int) i = 94', '(baz) b = {', '(int) k = 99'])
    File "/home/testuser/build/workspace/LLDB_master_release_Linux/llvm_master/tools/lldb/test/lldbtest.py", line 2108, in expect
      self.runCmd(str, msg=msg, trace = (True if trace else False), check = not error, inHistory=inHistory)
    File "/home/testuser/build/workspace/LLDB_master_release_Linux/llvm_master/tools/lldb/test/lldbtest.py", line 2034, in runCmd
      msg if msg else CMD_MSG(cmd))
  AssertionError: False is not True : Command 'expression --show-types -- *(new foo(47))' returns successfully
  Config=x86_64-clang
  ----------------------------------------------------------------------

Thanks,
Ilia


USERS
  tberghammer (Auditor)
  ki.stfu (Auditor)

http://reviews.llvm.org/rL234178

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the lldb-commits mailing list