Article View: gnu.gdb.bug
Article #29bug in gdb 4.7 with long directory search path
From: Matthieu Herrb
Date: Fri, 30 Oct 1992 16:53
Date: Fri, 30 Oct 1992 16:53
34 lines
1520 bytes
1520 bytes
Hi,
In gdb 4.7, the 'show directories' command fails when the directory
search path has more than 255 characters, because of the limitation of
the "printf_filtered" function.
This small bug is making xxgdb loop during his startup.
I found the bug on SunOS 4.1.1 with gcc 2.2.2, but it should append
everywhere.
A fix is included below:
--- source.c~ Tue Oct 6 01:41:51 1992
+++ source.c Fri Oct 30 17:33:06 1992
@@ -200,7 +200,9 @@
char *ignore;
int from_tty;
{
- printf_filtered ("Source directories searched: %s\n", source_path);
+ printf_filtered ("Source directories searched: %s");
+ fputs_filtered(source_path, stdout);
+ printf_filtered("\n", stdout);
}
/* Forget what we learned about line positions in source files,
Matthieu
--
Matthieu Herrb CNRS - LAAS
Matthieu.Herrb@laas.fr 7, avenue du Colonel Roche
31077 Toulouse Cedex - France
"War -- What is it good for ? -- Absolutely nothing !"
Technical Details
Message-ID:
<MATTHIEU.92Oct30175354@hill.laas.fr>Path:
arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!laas.laas.fr!matthieuShow Full Headers
Complete Article Headers
Newsgroups: gnu.gdb.bug Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!laas.laas.fr!matthieu From: matthieu@laas.laas.fr (Matthieu Herrb) Subject: bug in gdb 4.7 with long directory search path Message-ID: <MATTHIEU.92Oct30175354@hill.laas.fr> Sender: gnulists@ai.mit.edu Reply-To: Matthieu.Herrb@laas.laas.fr Organization: LAAS-CNRS Toulouse, France Distribution: gnu Date: Fri, 30 Oct 1992 16:53:54 GMT Approved: bug-gdb@prep.ai.mit.edu Lines: 35