diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-10-30 20:21:19 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-10-30 20:21:19 +0000 |
commit | 4d57c5995e45877128cd62ccfa4317ed452652fe (patch) | |
tree | d1845bdb7da496f6d5e0001f57dc870c95fc5d3c /gdb/remote.c | |
parent | df0393e345d833ce177ce889367f148b90268146 (diff) | |
download | gdb-4d57c5995e45877128cd62ccfa4317ed452652fe.zip gdb-4d57c5995e45877128cd62ccfa4317ed452652fe.tar.gz gdb-4d57c5995e45877128cd62ccfa4317ed452652fe.tar.bz2 |
* symfile.c (reread_symbols): When re-reading symbols, do all the
right operations ourself, rather than calling symbol_file_command.
If we re-read something, call clear_symtab_users not just
breakpoint_re_set.
* objfiles.h, objfiles.c (build_objfile_section_table): No longer
static.
* symfile.c (clear_symtab_users): Call clear_pc_function_cache.
* coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c, paread.c
(*_symfile_offsets): Set objfile->num_sections.
* remote.c (remote_wait), symfile.c (syms_from_objfile):
Don't muck with objfile->num_sections now that all the symbol
readers set it.
* elfread.c: Clean up obsolete comment about handling only DWARF.
* paread.c: Remove comment about how we should use an "ordinary"
file format with an hppa suffix. There is nothing ordinary about SOM.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r-- | gdb/remote.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index 189977d..6fffc54 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -228,7 +228,12 @@ int icache; starts. */ serial_t remote_desc = NULL; -#define PBUFSIZ 1024 +/* Having this larger than 400 causes us to be incompatible with m68k-stub.c + and i386-stub.c. Normally, no one would notice because it only matters + for writing large chunks of memory (e.g. in downloads). Also, this needs + to be more than 400 if required to hold the registers (see below, where + we round it up based on REGISTER_BYTES). */ +#define PBUFSIZ 400 /* Maximum number of bytes to read/write at once. The value here is chosen to fill up a packet (the headers account for the 32). */ @@ -560,12 +565,6 @@ remote_wait (pid, status) stuff. (Just what does "text" as seen by the stub mean, anyway?). */ - /* FIXME: Why don't the various symfile_offsets routines - in the sym_fns vectors set this? - (no good reason -kingdon). */ - if (symfile_objfile->num_sections == 0) - symfile_objfile->num_sections = SECT_OFF_MAX; - offs = ((struct section_offsets *) alloca (sizeof (struct section_offsets) + (symfile_objfile->num_sections @@ -798,9 +797,6 @@ remote_write_bytes (memaddr, myaddr, len) int i; char *p; - if (len > PBUFSIZ / 2 - 20) - abort (); - sprintf (buf, "M%x,%x:", memaddr, len); /* We send target system values byte by byte, in increasing byte addresses, |