This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/22841] New: (regression) Executable gets not download with remote-stdio-gdbserver.exp board
- From: "c.schwarzgruber.cs at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 13 Feb 2018 07:16:45 +0000
- Subject: [Bug gdb/22841] New: (regression) Executable gets not download with remote-stdio-gdbserver.exp board
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=22841
Bug ID: 22841
Summary: (regression) Executable gets not download with
remote-stdio-gdbserver.exp board
Product: gdb
Version: 8.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: c.schwarzgruber.cs at gmail dot com
Target Milestone: ---
Created attachment 10813
--> https://sourceware.org/bugzilla/attachment.cgi?id=10813&action=edit
Patch
Hey!
Running the test with the board configuration remote-stdio-gdbserver.exp fails,
because the executable does not get downloaded to the target device. This
worked with GDB 8.0.1
Adding this (slightly modified) code from GDB 8.0.1 into
remote-stdio-gdbserver.exp fixes the problem.
```
proc ${board}_download { board host dest } {
return [standard_download $board $host "$dest"]
}
proc ${board}_upload {dest srcfile args} {
return [standard_upload $dest $srcfile $args]
}
proc ${board}_file { dest op args } {
if { $op == "delete" } {
return [remote_exec [get_remote_login] "rm -f $args"]
}
return [eval [list standard_file $dest $op] $args]
}
```
Regards,
Christian
--
You are receiving this mail because:
You are on the CC list for the bug.