Skip to content

Commit

Permalink
[observers] new relocate_objfile observer
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Benson committed Nov 16, 2015
1 parent c8b842b commit 21667d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gdb/doc/observer.texi
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ Called with @var{objfile} equal to @code{NULL} to indicate
previously loaded symbol table data has now been invalidated.
@end deftypefun

@deftypefun void relocate_objfile (struct objfile *@var{objfile})
The symbol file specified by @var{objfile} has been relocated.
@end deftypefun

@deftypefun void free_objfile (struct objfile *@var{objfile})
The object file specified by @var{objfile} is about to be freed.
@end deftypefun
Expand Down
3 changes: 3 additions & 0 deletions gdb/objfiles.c
Original file line number Diff line number Diff line change
Expand Up @@ -910,6 +910,9 @@ objfile_relocate1 (struct objfile *objfile,
obj_section_addr (s));
}

/* Notify observers that this objfile has been relocated. */
observer_notify_relocate_objfile (objfile);

/* Data changed. */
return 1;
}
Expand Down

0 comments on commit 21667d1

Please sign in to comment.