From dd7fff2b31f3c4af0e6599beb7c662579d6f6740 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=B1=AA?= <547884940@qq.com> Date: Sat, 20 Sep 2014 20:53:17 +0800 Subject: [PATCH] [gdb]Change open flag --- components/gdb/hal_stub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/gdb/hal_stub.c b/components/gdb/hal_stub.c index 077c4088f7..8cf4a31a51 100644 --- a/components/gdb/hal_stub.c +++ b/components/gdb/hal_stub.c @@ -67,7 +67,7 @@ void gdb_set_device(const char* device_name) } /* open this device and set the new device */ - if (rt_device_open(dev, RT_DEVICE_OFLAG_RDWR) == RT_EOK) + if (rt_device_open(dev, RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_STREAM) == RT_EOK) { gdb_dev = dev; gdb_serial = (struct rt_serial_device *)gdb_dev; -- GitLab