1. 11 12月, 2014 2 次提交
  2. 10 12月, 2014 2 次提交
  3. 08 12月, 2014 1 次提交
  4. 06 12月, 2014 1 次提交
  5. 05 12月, 2014 11 次提交
  6. 04 12月, 2014 10 次提交
  7. 03 12月, 2014 6 次提交
  8. 02 12月, 2014 7 次提交
    • C
      GDB: use gdbserver --server-sdtderr option if available · 71d47611
      Cleber Rosa 提交于
      A new command line option is being added to upstream GDB. This new
      option allows gdbserver's own stderr (but not its inferior process
      stderr) to be redirected to another file.
      
      If that feature is available on the about to be used gdbserver, then
      let's make use of it. This redirects its stderr to /dev/null, because
      avocado itself has no real use for gdbserver's own stderr output.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      71d47611
    • C
      GDB: add implementation of remote protocol · 0c0401b1
      Cleber Rosa 提交于
      GDB talks to targets via a so-called remote protocol. These targets
      can be things like gdbserver, ROM monitors on specific hardware boards,
      or applications that implement the same protocol.
      
      One noteworthy example of application is QEMU, which implements some
      basic GDB Remote commands and also a few extenions of its own.
      
      This initial implementation allows connecting to the remote target,
      sending commands and receive results. The API can certainly grow later
      based on demand.
      
      Changes from v1:
       * Fix a typo in the REMOTE_MAX_PACKET_SIZE comment
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      0c0401b1
    • C
      GDB: introduce a "ready to use" check when instantiating a GDBServer · b9b9dbc8
      Cleber Rosa 提交于
      It turns out that, in some conditions, such as when immediatelly trying
      to communicate with a gdbserver process after it is executed, results in
      failure.
      
      The reason seems to be that gdbserver itself takes "some" time between
      being executed and binding to the TCP port.
      
      While prototyping GDB remote client in pure Python, this kind of race
      condition was found.
      
      Now, by default, there will be a 2 seconds timeout and a explicit check
      for gdbserver's "ready to use" status.
      
      Changes from v1:
       * added documentation for the __init__ method
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      b9b9dbc8
    • L
      Merge branch 'ldoktor-multiplexer' · 7a69ae5b
      Lucas Meneghel Rodrigues 提交于
      7a69ae5b
    • L
      selftests: Speedup functional..multiplex_test · 3d158b95
      Lukáš Doktor 提交于
      multiplex_test uses sleeptest to check it supplies the values correctly.
      This patch uses passtest instead.
      
      For now it uses the same multiplex file and in `test_run_mplex_timeout`
      still uses sleeptest, but there is FIXME message to use envtest once
      it supports params passing (another pull request)
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      3d158b95
    • L
      avocado.core.tree: Use yaml.CLoader when available · 9b1a04dc
      Lukáš Doktor 提交于
      CLoader is C (faster) version of the Loader. In case it's unavailable
      it fall-backs automatically to the default Loader.
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      9b1a04dc
    • L
      avocado.multiplexer: Construct the tree directly from yaml file · 8b7122f5
      Lukáš Doktor 提交于
      Instead of creating OrderedDicts and then converting it into
      tree structure, this modifies the `mapping` constructor to create
      the tree structure directly. This way we only walk through the yaml
      file once.
      
      Also remove the `tree_unittest.TestReadYAML` selftest as it lost it's
      meaning. Valures are checked in the TestTreeNode selftest.
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      8b7122f5