Bug 8564 - want to change from ethernet to serial without killing the program being debugged
Summary: want to change from ethernet to serial without killing the program being debu...
Status: RESOLVED WONTFIX
Alias: None
Product: gdb
Classification: Unclassified
Component: remote (show other bugs)
Version: 5.0
: P3 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-19 14:08 UTC by sharma_rohit
Modified: 2022-12-21 16:55 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sharma_rohit 2003-11-19 14:08:00 UTC
[Converted from Gnats 1459]

I am using gdb to debug application on MBX target board. The
size of the application is big and it takes long to download
through serial port. So I am connecting gdb to target 
through ethernet and downloading the application. Now I want 
to switch to serial port for debugging. But on giving the 
command to connect to target through serial port, gdb asks 
me to kill the downloaded program first. Is it possible to 
connect to serial without having to kill the downloaded 
program?

Release:
GNU gdb 5.0

Environment:
--host=i686-pc-linux-gnu --target=powerpc-eabi

How-To-Repeat:
give the command powerpc-eabi-gdb and connect to target 
through ethernet. Now download the application by giving 
load command. Now give the target remote /dev/ttyS0 command.
gdb will prompt to kill the program.
Comment 1 Tom Tromey 2022-12-21 16:55:50 UTC
I think a better way to deal with this kind of thing is to
set up a sysroot locally, then debug the usual way.
If this is still an issue for you, though, please reopen
this bug and we can discuss it.