aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorAndrew Stubbs <andrew.stubbs@st.com>2006-02-21 18:22:27 +0000
committerAndrew Stubbs <andrew.stubbs@st.com>2006-02-21 18:22:27 +0000
commit1986bccdb576b7758273dfa5ec8274c6be55f268 (patch)
tree588b071c964fe48831999229b1b9a279cd59c581 /gdb/target.h
parenta6b0a3f3145cd0f1d7d5314e9698c542e4e7b888 (diff)
downloadgdb-1986bccdb576b7758273dfa5ec8274c6be55f268.zip
gdb-1986bccdb576b7758273dfa5ec8274c6be55f268.tar.gz
gdb-1986bccdb576b7758273dfa5ec8274c6be55f268.tar.bz2
2006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
* symfile.c (generic_load): Use buildargv() and tilde_expand() to parse file names with quoting, spaces and tildes properly. (load_command): Quote all special characters before calling target_load() such that buildargv() doesn't break file names. (_initialize_symfile): Mention the load offset in the help for the load command. * remote-sim.c: Include readline.h. (gdbsim_load): Use buildargv and tilde_expand() to parse file names with quoting, spaces and tildes properly. * target.h (target_load): Comment the parameters better. * Makefile.in (remote_sim.o): Add readline.h dependency. testsuite/ * gdb.base/help.exp (help load): Update expected results.
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/gdb/target.h b/gdb/target.h
index 95e5def..b804b05 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -680,7 +680,14 @@ extern void print_section_info (struct target_ops *, bfd *);
/* Load an executable file into the target process. This is expected
to not only bring new code into the target process, but also to
- update GDB's symbol tables to match. */
+ update GDB's symbol tables to match.
+
+ ARG contains command-line arguments, to be broken down with
+ buildargv (). The first non-switch argument is the filename to
+ load, FILE; the second is a number (as parsed by strtoul (..., ...,
+ 0)), which is an offset to apply to the load addresses of FILE's
+ sections. The target may define switches, or other non-switch
+ arguments, as it pleases. */
extern void target_load (char *arg, int from_tty);