public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug breakpoints/15187] New: Dprintf does not work for Eclipse on Ubuntu
@ 2013-02-24 14:03 marc.khouzam at ericsson dot com
  2013-02-27 16:36 ` [Bug breakpoints/15187] Dprintf does not work for Eclipse on 32bit Ubuntu marc.khouzam at ericsson dot com
  2014-04-06  4:12 ` malaperle at gmail dot com
  0 siblings, 2 replies; 3+ messages in thread
From: marc.khouzam at ericsson dot com @ 2013-02-24 14:03 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug breakpoints/15187] Dprintf does not work for Eclipse on 32bit Ubuntu
  2013-02-24 14:03 [Bug breakpoints/15187] New: Dprintf does not work for Eclipse on Ubuntu marc.khouzam at ericsson dot com
@ 2013-02-27 16:36 ` marc.khouzam at ericsson dot com
  2014-04-06  4:12 ` malaperle at gmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: marc.khouzam at ericsson dot com @ 2013-02-27 16:36 UTC (permalink / raw)
  To: gdb-prs

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

Marc Khouzam <marc.khouzam at ericsson dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Dprintf does not work for   |Dprintf does not work for
                   |Eclipse on Ubuntu           |Eclipse on 32bit Ubuntu

--- Comment #1 from Marc Khouzam <marc.khouzam at ericsson dot com> 2013-02-27 16:36:28 UTC ---
The problem does not happen on a 64bit GDB on my 64bit Ubuntu.

I have not tried a 32bit GDB on a 64bit Ubuntu.

-- 
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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug breakpoints/15187] Dprintf does not work for Eclipse on 32bit Ubuntu
  2013-02-24 14:03 [Bug breakpoints/15187] New: Dprintf does not work for Eclipse on Ubuntu marc.khouzam at ericsson dot com
  2013-02-27 16:36 ` [Bug breakpoints/15187] Dprintf does not work for Eclipse on 32bit Ubuntu marc.khouzam at ericsson dot com
@ 2014-04-06  4:12 ` malaperle at gmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: malaperle at gmail dot com @ 2014-04-06  4:12 UTC (permalink / raw)
  To: gdb-prs

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

Marc-Andre Laperle <malaperle at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |malaperle at gmail dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-04-06  4:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-24 14:03 [Bug breakpoints/15187] New: Dprintf does not work for Eclipse on Ubuntu marc.khouzam at ericsson dot com
2013-02-27 16:36 ` [Bug breakpoints/15187] Dprintf does not work for Eclipse on 32bit Ubuntu marc.khouzam at ericsson dot com
2014-04-06  4:12 ` malaperle at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).