summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
author陈豪 <[email protected]>2014-09-20 20:53:17 +0800
committer陈豪 <[email protected]>2014-09-20 20:53:17 +0800
commitdd7fff2b31f3c4af0e6599beb7c662579d6f6740 (patch)
treebbef8d2c9e9b86423a7349de3fe5810ad98bcfff /components
parent2a1e7d56fcca3132ebed9496a46b0794f9bd107c (diff)
[gdb]Change open flag
Diffstat (limited to 'components')
-rw-r--r--components/gdb/hal_stub.c2
1 files changed, 1 insertions, 1 deletions
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;