[gdb]Change open flag

This commit is contained in:
陈豪 2014-09-20 20:53:17 +08:00
parent 2a1e7d56fc
commit dd7fff2b31
1 changed files with 1 additions and 1 deletions

View File

@ -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;