help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [h-e-w] gdb program output problem


From: Eli Zaretskii
Subject: Re: [h-e-w] gdb program output problem
Date: Thu, 24 Jan 2013 18:59:42 +0200

> From: Jeremy Greene <address@hidden>
> Date: Thu, 24 Jan 2013 16:18:48 +0000
> 
> GNU gdb (GDB) 7.4
> Copyright (C) 2012 Free Software Foundation, Inc.
> 
> Running win7, 64b.
> When I use gdb, to debug a C++ program with simple printf, I get a seemingly 
> random, but often huge, number of spaces before or after the text of the 
> printf.
> Has anyone else seen this? It makes using gdb very difficult to use.
> If I run the program from the msys shell, no spaces.

Could it be that you downloaded an MSYS build of GDB?  What does
"gdb --version" print?  Here it says

  GNU gdb (GDB) 7.5.1
  Copyright (C) 2012 Free Software Foundation, Inc.
  License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  This is free software: you are free to change and redistribute it.
  There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
  and "show warranty" for details.
  This GDB was configured as "i686-pc-mingw32".  <<<<<<<<<<<<<<<<<<<<<<<<
  For bug reporting instructions, please see:
  <http://www.gnu.org/software/gdb/bugs/>.

The marked line indicates that GDB was built for MinGW.

Anyway, 7.4 is an old version, the MinGW site offers 7.5 from here:

  http://sourceforge.net/projects/mingw/files/MinGW/Extension/gdb/GDB-7.5/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]