diff options
author | Michael Snyder <msnyder@vmware.com> | 2011-01-07 19:36:19 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2011-01-07 19:36:19 +0000 |
commit | 0963b4bd458eab010b3b19c9ffd8eb790f2cd06c (patch) | |
tree | 42dcaac763368854d136093c43a40333b751d391 /gdb/dsrec.c | |
parent | 87973e9f82d516acbf4f484ba56febe17a3b312d (diff) | |
download | gdb-0963b4bd458eab010b3b19c9ffd8eb790f2cd06c.zip gdb-0963b4bd458eab010b3b19c9ffd8eb790f2cd06c.tar.gz gdb-0963b4bd458eab010b3b19c9ffd8eb790f2cd06c.tar.bz2 |
2011-01-07 Michael Snyder <msnyder@vmware.com>
* ada-lang.c: Comment cleanup, mostly periods and spaces.
* ada-lang.h: Ditto.
* ada-tasks.c: Ditto.
* ada-valprint.c: Ditto.
* aix-threads.c: Ditto.
* alpha-linux-nat.c: Ditto.
* alpha-linux-tdep.c: Ditto.
* alpha-mdebug-tdep.c: Ditto.
* alpha-nat.c: Ditto.
* alpha-osf1-tdep.c: Ditto.
* alpha-tdep.c: Ditto.
* alphabsd-nat.c: Ditto.
* alphabsd-tdep.c: Ditto.
* amd64-darwin-tdep.c: Ditto.
* amd64-linux-nat.c: Ditto.
* amd64-linux-tdep.c: Ditto.
* amd64-sol2-tdep.c: Ditto.
* amd64-tdep.c: Ditto.
* amd64-fbsd-tdep.c: Ditto.
* amd64-nbsd-tdep.c: Ditto.
* amd64-obsd-tdep.c: Ditto.
* amd64-linux-nat.c: Ditto.
* amd64-linux-tdep.c: Ditto.
* arm-tdep.c: Ditto.
* arm-tdep.h: Ditto.
* armnbsd-nat.c: Ditto.
* avr-tdep.c: Ditto.
* bfin-tdep.c: Ditto.
* bsd-kvm.c: Ditto.
* c-typeprintc: Ditto.
* c-valprint.c: Ditto.
* coff-pe-read.h: Ditto.
* coffreead.c: Ditto.
* cris-tdep.c: Ditto.
* d-lang.c: Ditto.
* darwin-nat-info.c: Ditto.
* darwin-nat.c: Ditto.
* dbug-rom.c: Ditto.
* dbxread.c: Ditto.
* dcache.c: Ditto.
* dcache.h: Ditto.
* dec-thread.c: Ditto.
* defs.h: Ditto.
* demangle.c: Ditto.
* dicos-tdep.c: Ditto.
* dictionary.c: Ditto.
* dictionary.h: Ditto.
* dink32-rom.c: Ditto.
* disasm.c: Ditto.
* doublest.c: Ditto.
* dsrec.c: Ditto.
* dummy-frame.c: Ditto.
* dwarf2-frame.c: Ditto.
* dwarf2expr.c: Ditto.
* dwarf2loc.c: Ditto.
* dwarf2read.c: Ditto.
* elfread.c: Ditto.
* environ.c: Ditto.
* eval.c: Ditto.
* event-top.h: Ditto.
* exceptions.c: Ditto.
* exceptions.h: Ditto.
* exec.c: Ditto.
* expprint.c: Ditto.
* expression.h: Ditto.
* f-exp.y: Ditto.
* f-lang.c: Ditto.
* f-lang.h: Ditto.
* f-typeprint.c: Ditto.
* f-valprint.c: Ditto.
* fbsd-nat.c: Ditto.
* findvar.c: Ditto.
* fork-child.c: Ditto.
* frame.c: Ditto.
* frame.h: Ditto.
* frv-linux-tdep.c: Ditto.
* frv-tdep.c: Ditto.
* gcore.c: Ditto.
* gdb-stabs.h: Ditto.
* gdb_assert.h: Ditto.
* gdb_string.h: Ditto.
* gdb_thread_db.h: Ditto.
* gdb_wait.h: Ditto.
* gdbarch.sh: Ditto.
* gdbcore.h: Ditto.
* gdbthread.h: Ditto.
* gdbtypes.c: Ditto.
* gdbtypes.h: Ditto.
* gnu-nat.c: Ditto.
* gnu-nat.h: Ditto.
* gnu-v2-abi.c: Ditto.
* gnu-v3-abi.c: Ditto.
* go32-nat.c: Ditto.
* gdbarch.c: Regenerate.
* gdbarch.h: Regenerate.
Diffstat (limited to 'gdb/dsrec.c')
-rw-r--r-- | gdb/dsrec.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/dsrec.c b/gdb/dsrec.c index 736019f..cee2d85 100644 --- a/gdb/dsrec.c +++ b/gdb/dsrec.c @@ -97,7 +97,7 @@ load_srec (struct serial *desc, const char *file, bfd_vma load_offset, /* Both GDB and BFD have mechanisms for printing addresses. In the below, GDB's is used so that the address is consistent with the rest of GDB. BFD's printf_vma() could - have also been used. cagney 1999-09-01 */ + have also been used. cagney 1999-09-01 */ printf_filtered ("%s\t: %s .. %s ", section_name, paddress (target_gdbarch, addr), @@ -135,7 +135,7 @@ load_srec (struct serial *desc, const char *file, bfd_vma load_offset, putchar_unfiltered ('#'); gdb_flush (gdb_stdout); } - } /* Per-packet (or S-record) loop */ + } /* Per-packet (or S-record) loop. */ if (deprecated_ui_load_progress_hook) if (deprecated_ui_load_progress_hook (section_name, @@ -173,7 +173,7 @@ load_srec (struct serial *desc, const char *file, bfd_vma load_offset, } /* - * make_srec -- make an srecord. This writes each line, one at a + * make_srec -- make an srecord. This writes each line, one at a * time, each with it's own header and trailer line. * An srecord looks like this: * @@ -190,9 +190,9 @@ load_srec (struct serial *desc, const char *file, bfd_vma load_offset, * * Where * - length - * is the number of bytes following upto the checksum. Note that - * this is not the number of chars following, since it takes two - * chars to represent a byte. + * is the number of bytes following upto the checksum. Note + * that this is not the number of chars following, since it + * takes two chars to represent a byte. * - type * is one of: * 0) header record @@ -267,7 +267,7 @@ make_srec (char *srec, CORE_ADDR targ_addr, bfd *abfd, asection *sect, bfd_get_section_contents (abfd, sect, binbuf, sectoff, payload_size); } else - payload_size = 0; /* Term or header packets have no payload */ + payload_size = 0; /* Term or header packets have no payload. */ /* Output the header. */ snprintf (srec, (*maxrecsize) + 1, "S%c%02X%0*X", @@ -282,7 +282,7 @@ make_srec (char *srec, CORE_ADDR targ_addr, bfd *abfd, asection *sect, checksum = 0; checksum += (payload_size + addr_size + 1 /* Packet length */ - + (targ_addr & 0xff) /* Address... */ + + (targ_addr & 0xff) /* Address... */ + ((targ_addr >> 8) & 0xff) + ((targ_addr >> 16) & 0xff) + ((targ_addr >> 24) & 0xff)); |