aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-data.h
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2007-12-21 07:37:26 +0000
committerJoel Brobecker <brobecker@gnat.com>2007-12-21 07:37:26 +0000
commit2d42f9a81cde0690a52f77350174e1b130a6c93f (patch)
tree75aff0cd3b57bc9afe6093e8156d2268eb149c6d /gdb/tui/tui-data.h
parent3463063964aa80cb5630c8330c57f837521b74eb (diff)
downloadgdb-2d42f9a81cde0690a52f77350174e1b130a6c93f.zip
gdb-2d42f9a81cde0690a52f77350174e1b130a6c93f.tar.gz
gdb-2d42f9a81cde0690a52f77350174e1b130a6c93f.tar.bz2
* tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN): Defined to a bigger
value or to PATH_MAX when possible.
Diffstat (limited to 'gdb/tui/tui-data.h')
-rw-r--r--gdb/tui/tui-data.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h
index 63a5b25..3a0c044 100644
--- a/gdb/tui/tui-data.h
+++ b/gdb/tui/tui-data.h
@@ -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