🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Matthieu Herrb Fri, 30 Oct 1992 16:43
bug in gdb 4.7 with long directory search path
#28
Author: Matthieu Herrb
Date: Fri, 30 Oct 1992 16:43
34 lines
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 !"
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads