* tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN): Defined to a bigger
authorJoel Brobecker <brobecker@gnat.com>
Fri, 21 Dec 2007 07:37:26 +0000 (07:37 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Fri, 21 Dec 2007 07:37:26 +0000 (07:37 +0000)
        value or to PATH_MAX when possible.

gdb/ChangeLog
gdb/tui/tui-data.h

index 96a8faa3bf02948fdb6be308ac50fea87711c160..98c262fa1ff3309243081e0a364317bf79c11cde 100644 (file)
@@ -1,3 +1,8 @@
+2007-12-21 Denis Pilat <denis.pilat@st.com>
+
+       * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN): Defined to a bigger
+       value or to PATH_MAX when possible.
+
 2007-12-20  Joel Brobecker  <brobecker@adacore.com>
 
        * rs6000-tdep.h: Remove defs.h #include.
index 63a5b2594fd0802e50c44cdbf321d5f6a69bdee4..3a0c044f5d90648ce004037671a5cf433ad85e13 100644 (file)
@@ -195,8 +195,11 @@ struct tui_command_element
   char *line;
 };
 
-
-#define MAX_LOCATOR_ELEMENT_LEN        100
+#ifdef PATH_MAX
+# define MAX_LOCATOR_ELEMENT_LEN        PATH_MAX
+#else
+# define MAX_LOCATOR_ELEMENT_LEN        1024
+#endif
 
 /* Elements in the locator window content.  */
 struct tui_locator_element