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

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

[h-e-w] emacsw32+gdb cursor warping


From: Jeremy Greene
Subject: [h-e-w] emacsw32+gdb cursor warping
Date: Thu, 24 Jan 2013 21:58:32 +0000

Running win7, gdb 7.4, latest mingw, msys.

Running gdb in emacs window. Hit a breakpoint, source code and marker of 
breakpoint is shown -- all good.
Then move elsewhere in the source buffer. And then in gdb command buffer 
execute any gdb command, like "p <var>".  This causes the emacs source buffer 
to move back to the breakpoint!! If somewhere a bit far from the breakpoint, 
and trying to look at a bunch of variables, it's not good. I have looked high 
and low for some emacs variable to control this behavior, but haven't found 
one. And I've never seen this happen on any non-windows emacs+gdb.

Anyone know how to disable "emacsw32 cursor warping"?!

Thanks,
 Jeremy

-----Original Message-----
From: Jeremy Greene 
Sent: Thursday, January 24, 2013 12:13 PM
To: 'Eli Zaretskii'
Cc: address@hidden
Subject: RE: [h-e-w] gdb program output problem

Here's the version info -- so it would seem I have the one built for mingw. But 
I will try the latest, thanks.
Btw, I found that describe-variable of gud-marker-acc had, in fact, the tons of 
spaces in it.
So... my level of elisp ability limited me to adding the following at line 1791 
in gdb-mi.el. With that, the worst of the behavior goes away... still adds a 
bunch of spaces, but not a huge number.
  (setq gud-marker-acc "")
I'm sure I'm breaking something else, but at least I can use it.

Jeremy

MSYS /c/> gdb --version
GNU gdb (GDB) 7.4
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/>.


-----Original Message-----
From: Eli Zaretskii [mailto:address@hidden 
Sent: Thursday, January 24, 2013 12:00 PM
To: Jeremy Greene
Cc: address@hidden
Subject: Re: [h-e-w] gdb program output problem

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