mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:54:41 +08:00
* remote.c (remote_wait): Use strtoul for parsing 'N' message.
Add code to relocate symfile_objfile->sections.
This commit is contained in:
parent
747a632937
commit
cefa23ca43
@ -581,16 +581,16 @@ remote_wait (status)
|
||||
objfile_relocate (symfile_objfile, offs);
|
||||
{
|
||||
struct obj_section *s;
|
||||
bfd *bfd;
|
||||
bfd *abfd;
|
||||
|
||||
bfd = symfile_objfile->obfd;
|
||||
abfd = symfile_objfile->obfd;
|
||||
|
||||
for (s = symfile_objfile->sections;
|
||||
s < symfile_objfile->sections_end; ++s)
|
||||
{
|
||||
flagword flags;
|
||||
|
||||
flags = bfd_get_section_flags (bfd, s->sec_ptr);
|
||||
flags = bfd_get_section_flags (abfd, s->sec_ptr);
|
||||
|
||||
if (flags & SEC_CODE)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user