mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-07 06:14:33 +08:00
[gdb]Change open flag
This commit is contained in:
parent
2a1e7d56fc
commit
dd7fff2b31
@ -67,7 +67,7 @@ void gdb_set_device(const char* device_name)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* open this device and set the new device */
|
/* 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_dev = dev;
|
||||||
gdb_serial = (struct rt_serial_device *)gdb_dev;
|
gdb_serial = (struct rt_serial_device *)gdb_dev;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user