Bug 426381 - Modules are not displayed when attaching with non-stop enabled
Summary: Modules are not displayed when attaching with non-stop enabled
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf-gdb (show other bugs)
Version: 8.3.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 511419
  Show dependency tree
 
Reported: 2014-01-22 11:51 EST by Marc-André Laperle CLA
Modified: 2020-09-04 15:21 EDT (History)
2 users (show)

See Also:


Attachments
GDB trace in non-stop (57.20 KB, text/plain)
2014-01-22 11:52 EST, Marc-André Laperle CLA
no flags Details
GDB trace in all-stop (57.08 KB, text/plain)
2014-01-22 11:52 EST, Marc-André Laperle CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marc-André Laperle CLA 2014-01-22 11:51:23 EST
Ubuntu 13.10 64-bit
GNU gdb (GDB) 7.6.1-ubuntu

1. Run a program that sleeps for a long time, for example:

#include <unistd.h>

int main() {
    sleep(10000);
    return 0;
}

2. Create a C/C++ attach to application debug configuration for this program. Enable non-stop.
3. Start debugging, select the process from the process dialog to attach. 
4. Once attached, suspend the process. The Modules view is empty.

However, if I type in the gdb console
info sharedlibrary

I get:

From                To                  Syms Read   Shared Object Library
0x00007f5bfd0c83c0  0x00007f5bfd21339f  No          /lib/x86_64-linux-gnu/libc.so.6
0x00007f5bfd471aa0  0x00007f5bfd48c439  No          /lib64/ld-linux-x86-64.so.2

Both modules are displayed if I use all-stop.
Comment 1 Marc-André Laperle CLA 2014-01-22 11:52:00 EST
Created attachment 239234 [details]
GDB trace in non-stop
Comment 2 Marc-André Laperle CLA 2014-01-22 11:52:36 EST
Created attachment 239235 [details]
GDB trace in all-stop