diff options
author | Michael Snyder <msnyder@vmware.com> | 2010-05-14 18:35:11 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2010-05-14 18:35:11 +0000 |
commit | d7f9d729727b2b85ae3228785762f4d2e6a8742f (patch) | |
tree | 9ea7ff6c431b2a80d33908b5cb436e6545ccbcff /gdb/exec.c | |
parent | 9a619af0d3152e742fbd290baeae96a32f0abf04 (diff) | |
download | gdb-d7f9d729727b2b85ae3228785762f4d2e6a8742f.zip gdb-d7f9d729727b2b85ae3228785762f4d2e6a8742f.tar.gz gdb-d7f9d729727b2b85ae3228785762f4d2e6a8742f.tar.bz2 |
2010-05-14 Michael Snyder <msnyder@vmware.com>
* elfread.c: White space.
* environ.c: White space.
* eval.c: White space.
* event-loop.c: White space.
* event-top.c: White space.
* exceptions.c: White space.
* exec.c: White space.
* expprint.c: White space.
Diffstat (limited to 'gdb/exec.c')
-rw-r--r-- | gdb/exec.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -224,6 +224,7 @@ exec_file_attach (char *filename, int from_tty) if (scratch_chan < 0) { char *exename = alloca (strlen (filename) + 5); + strcat (strcpy (exename, filename), ".exe"); scratch_chan = openp (getenv ("PATH"), OPF_TRY_CWD_FIRST, exename, write_files ? O_RDWR | O_BINARY : O_RDONLY | O_BINARY, @@ -458,6 +459,7 @@ add_target_sections (struct target_section *sections, if (count > 0) { int space = resize_section_table (table, count); + memcpy (table->sections + space, sections, count * sizeof (sections[0])); @@ -477,7 +479,6 @@ void remove_target_sections (bfd *abfd) { struct target_section *src, *dest; - struct target_section_table *table = current_target_sections; dest = table->sections; |