[Bug 18965] New: Can't debug with gdbserver on Linux with top of tree lldb

Bug ID 18965
Summary Can’t debug with gdbserver on Linux with top of tree lldb
Product lldb
Version unspecified
Hardware PC
OS Linux
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@cs.uiuc.edu
Reporter spucci@google.com
Classification Unclassified

Created attachment 12140 [details]
tar file containing test directory

If I try to attach to a gdbserver with lldb on Ubuntu 12.04 or Ubuntu 13.10,
lldb attaches to the process, successfully stops the program, but is unable to
display the stack or dump the registers:

  (lldb) bt
  * thread #1: tid = 7330, , stop reason = signal SIGTRAP
    * frame #0: 
  (lldb) register read
  error: invalid frame

The commands I'm using to connect to the gdbserver are:

  platform select remote-linux
  target create --arch x86_64--linux-gnu ./foo
  gdb-remote localhost:2388

Trying without the "platform select" line gives the same results, as does
removing the --arch x86_64--linux-gnu

A test directory is attached to this bug report.  In that test directory, run
the following, *each in its own shell window* :

- make run  # will run executable, which has an infinite loop of sleep(1)
- make gdbserver # will bring up gdbserver, attaching to the executable
- lldb # will execute commands in .lldbinit, attaching to gdbserver

Steve Pucci changed bug 18965

What | Removed | Added |

Comment # 1 on bug 18965 from Steve Pucci

I'm working on this bug.

Steve Pucci changed bug 18965

labath@google.com changed bug 18965

What | Removed | Added |

  • | - | - |
    Status | NEW | RESOLVED |
    CC | | labath@google.com |
    Resolution | — | FIXED |

Comment # 4 on bug 18965 from labath@google.com

this should work now.