* 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
1 changed files with 3 additions and 3 deletions
|
@ -581,16 +581,16 @@ remote_wait (status)
|
||||||
objfile_relocate (symfile_objfile, offs);
|
objfile_relocate (symfile_objfile, offs);
|
||||||
{
|
{
|
||||||
struct obj_section *s;
|
struct obj_section *s;
|
||||||
bfd *bfd;
|
bfd *abfd;
|
||||||
|
|
||||||
bfd = symfile_objfile->obfd;
|
abfd = symfile_objfile->obfd;
|
||||||
|
|
||||||
for (s = symfile_objfile->sections;
|
for (s = symfile_objfile->sections;
|
||||||
s < symfile_objfile->sections_end; ++s)
|
s < symfile_objfile->sections_end; ++s)
|
||||||
{
|
{
|
||||||
flagword flags;
|
flagword flags;
|
||||||
|
|
||||||
flags = bfd_get_section_flags (bfd, s->sec_ptr);
|
flags = bfd_get_section_flags (abfd, s->sec_ptr);
|
||||||
|
|
||||||
if (flags & SEC_CODE)
|
if (flags & SEC_CODE)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue