* ser-go32.c: Lint. (strncasecmp): Removed, now in libiberty.
(go32_readchar): Special handling for faster polling. (async structure): Volatile. * h8300-tdep.c (print_register_hook): Allocate and use the right number bytes for the raw register. * h8500-tdep.c (regoff, frame_find_saved_reg, examine_prologue): deleted. (h8500_register_size, h8500_register_virtual_type, ): Use new way of counting registers. * remote-e7000.c (echo_index): deleted. (expect): Better handling of user interrupts. (expect_prompt): Remove never used log file support. (want, want_nopc): Add support for H8/300H. (fetch_regs_from_dump): Treat \r and \n as whitespace. (e7000_drain): Send an "end" command before waiting for output to stop. (e7000_wait): Cope with H8/300H, better handling of user interrupts. (why_stop, expect_n, sub2_from_pc): New function. * remote-utils.c (gr_load_image): call fflush and QUIT more regularly. * utils.c (notice_quit): New function for polling for user interrupts.
This commit is contained in:
parent
fcf276c495
commit
08c0d7b84f
5 changed files with 155 additions and 298 deletions
|
@ -641,24 +641,24 @@ gr_load_image (args, fromtty)
|
|||
old_cleanups = make_cleanup (bfd_close, abfd);
|
||||
|
||||
QUIT;
|
||||
immediate_quit++;
|
||||
|
||||
if (!bfd_check_format (abfd, bfd_object))
|
||||
error ("It doesn't seem to be an object file.\n");
|
||||
|
||||
for (s = abfd->sections; s; s = s->next)
|
||||
for (s = abfd->sections; s && !quit_flag; s = s->next)
|
||||
{
|
||||
if (bfd_get_section_flags (abfd, s) & SEC_LOAD)
|
||||
{
|
||||
int i;
|
||||
printf_filtered ("%s\t: 0x%4x .. 0x%4x ",
|
||||
s->name, s->vma, s->vma + s->_raw_size);
|
||||
for (i = 0; i < s->_raw_size; i += delta)
|
||||
fflush (stdout);
|
||||
for (i = 0; i < s->_raw_size && !quit_flag; i += delta)
|
||||
{
|
||||
int sub_delta = delta;
|
||||
if (sub_delta > s->_raw_size - i)
|
||||
sub_delta = s->_raw_size - i;
|
||||
|
||||
QUIT;
|
||||
bfd_get_section_contents (abfd, s, buffer, i, sub_delta);
|
||||
target_write_memory (s->vma + i, buffer, sub_delta);
|
||||
printf_filtered ("*");
|
||||
|
@ -667,7 +667,7 @@ gr_load_image (args, fromtty)
|
|||
printf_filtered ("\n");
|
||||
}
|
||||
}
|
||||
immediate_quit--;
|
||||
|
||||
free (buffer);
|
||||
write_pc (bfd_get_start_address (abfd));
|
||||
bfd_close (abfd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue