From 4dd79c29b4a65ae1ff861c3e9d42f190f6846770 Mon Sep 17 00:00:00 2001 From: Martin Hunt Date: Wed, 3 Jul 2002 20:27:12 +0000 Subject: [PATCH] 2002-07-03 Martin M. Hunt * event-top.c (command_line_handler): Don't read past beginning of buffer. --- gdb/ChangeLog | 4 ++++ gdb/event-top.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 928bf91ea43..e20d22decfd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,6 +1,10 @@ 2002-07-03 Martin M. Hunt + * event-top.c (command_line_handler): Don't read past + beginning of buffer. +2002-07-03 Martin M. Hunt + * varobj.c (struct varobj_root): Change frame from CORE_ADDR to struct frame_id. (varobj_create): Store frame_id for root. diff --git a/gdb/event-top.c b/gdb/event-top.c index 823a3e1f68d..86c658d030e 100644 --- a/gdb/event-top.c +++ b/gdb/event-top.c @@ -683,7 +683,7 @@ command_line_handler (char *rl) xfree (rl); /* Allocated in readline. */ - if (*(p - 1) == '\\') + if (p > linebuffer && *(p - 1) == '\\') { p--; /* Put on top of '\'. */ -- 2.30.2