Bug 15651

Summary: set sysroot remote: is not enough for command symbol-file
Product: gdb Reporter: Jan Kratochvil <jan>
Component: remoteAssignee: Not yet assigned to anyone <unassigned>
Status: NEW ---    
Severity: normal CC: gbenson, jan
Priority: P2    
Version: unknown   
Target Milestone: ---   
Host: x86_64-unknown-linux-gnu Target: x86_64-unknown-linux-gnu
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 16622    

Description Jan Kratochvil 2013-06-19 19:21:28 UTC
One usually needs to type more commands than just "set sysroot remote:".

(gdb) set sysroot remote:
(gdb) target extended-remote hostname:port
(gdb) set remote exec-file /path/to/program
(gdb) file /path/to/program - local copy
(gdb) start
 - GDB could download even exec_bfd from remote:.

(gdb) set sysroot remote:
(gdb) target remote hostname:port
(gdb) symbol-file remote:/path/to/program
(gdb) tbreak main
(gdb) continue
(gdb) sharedlibrary
 - why is symbol-file needed here when remote gdbserver already has the file?
(Unrelated bug - "sharedlibrary" command should not be needed there.)

These example come from my experiments in 2012:
  http://people.redhat.com/jkratoch/gdb2012.pdf
Comment 1 Gary Benson 2015-04-02 12:49:39 UTC
As of 599bd15cdae16c5c420c85cf4853fcfd769bce75 "set sysroot remote:" is no longer necessary.