aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorLuis Machado <lgustavo@codesourcery.com>2017-02-13 07:29:30 -0600
committerLuis Machado <lgustavo@codesourcery.com>2017-02-13 07:29:30 -0600
commit5cf30ebf64d3c6da961094c615a94d2f1682a478 (patch)
tree803ac25d3d10a00b7bd49481a37f578d02f1b899 /gdb/symfile.c
parentbf5f525c8908b03f4892433baa707310b0b9959d (diff)
downloadgdb-5cf30ebf64d3c6da961094c615a94d2f1682a478.zip
gdb-5cf30ebf64d3c6da961094c615a94d2f1682a478.tar.gz
gdb-5cf30ebf64d3c6da961094c615a94d2f1682a478.tar.bz2
Improve load command's help text
This fairly obvious patch adds usage text to the load command's help text. Originally it did not have usage and mentioned things like FILE and OFFSET without explaining how those should be passed in the command. gdb/ChangeLog: 2017-02-13 Luis Machado <lgustavo@codesourcery.com> * symfile (_initialize_symfile): Add usage text to the load command's help text. gdb/doc/ChangeLog: 2017-02-13 Luis Machado <lgustavo@codesourcery.com> * gdb.texinfo (Target Commands): Document the optional offset argument for the load command.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index f31075d..f2528fc 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -3927,7 +3927,10 @@ that lies within the boundaries of this symbol file in memory."),
c = add_cmd ("load", class_files, load_command, _("\
Dynamically load FILE into the running program, and record its symbols\n\
for access from GDB.\n\
-A load OFFSET may also be given."), &cmdlist);
+An optional load OFFSET may also be given as a literal address.\n\
+When OFFSET is provided, FILE must also be provided. FILE can be provided\n\
+on its own.\n\
+Usage: load [FILE] [OFFSET]"), &cmdlist);
set_cmd_completer (c, filename_completer);
add_prefix_cmd ("overlay", class_support, overlay_command,