Bug 15651 - set sysroot remote: is not enough for command symbol-file
Summary: set sysroot remote: is not enough for command symbol-file
Status: NEW
Alias: None
Product: gdb
Classification: Unclassified
Component: remote (show other bugs)
Version: unknown
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks: 16622
  Show dependency treegraph
 
Reported: 2013-06-19 19:21 UTC by Jan Kratochvil
Modified: 2015-04-02 12:49 UTC (History)
2 users (show)

See Also:
Host: x86_64-unknown-linux-gnu
Target: x86_64-unknown-linux-gnu
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.