This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug breakpoints/15187] New: Dprintf does not work for Eclipse onUbuntu


http://sourceware.org/bugzilla/show_bug.cgi?id=15187

             Bug #: 15187
           Summary: Dprintf does not work for Eclipse on Ubuntu
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: breakpoints
        AssignedTo: unassigned@sourceware.org
        ReportedBy: marc.khouzam@ericsson.com
    Classification: Unclassified


In Eclipse, the dprintf-style that makes sense is either 'call' or 'agent'. 
This is because in Eclipse, we separate the output from gdb and the one from
the inferior by having a gdb console and a different inferior console.  We use
-inferior-tty-set to achieve this on Linux.  For Windows we don't have that
automatically, but users are encouraged to use "set new-console on".  If we
want dprintf to look like a real printf, its output needs to be shown in the
inferior console, so it requires GDB to send it to the same tty, which is why
we need to use the "call" mode. 

The "call" style will call 'printf' in the inferior.  With GDB 7.5, GDB cannot
call an inferior method on Ubuntu, as explained here:
  http://sourceware.org/ml/gdb-patches/2012-07/msg00037.html

I think this is a serious limitation for eclipse/dprintf since Ubuntu is a very
popular platform.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]