From 2d42f9a81cde0690a52f77350174e1b130a6c93f Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Fri, 21 Dec 2007 07:37:26 +0000 Subject: [PATCH] * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN): Defined to a bigger value or to PATH_MAX when possible. --- gdb/ChangeLog | 5 +++++ gdb/tui/tui-data.h | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 96a8faa3bf..98c262fa1f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-12-21 Denis Pilat + + * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN): Defined to a bigger + value or to PATH_MAX when possible. + 2007-12-20 Joel Brobecker * rs6000-tdep.h: Remove defs.h #include. diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h index 63a5b2594f..3a0c044f5d 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 -- 2.34.1