X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fprogspace.h;h=e1fcc3c68d2e00932aaa68bee77f8fc080db2271;hb=234529260a90b6ac6ed38ddac45d6ed15149e8f8;hp=c281648b99bff35a98f0c3e10224a6e34ee99357;hpb=30baf67b6505d903bf678f9a0ba3645eb337ce49;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/progspace.h b/gdb/progspace.h index c281648b99..e1fcc3c68d 100644 --- a/gdb/progspace.h +++ b/gdb/progspace.h @@ -165,6 +165,14 @@ struct program_space return objfiles_safe_range (objfiles_head); } + /* Add OBJFILE to the list of objfiles, putting it just before + BEFORE. If BEFORE is nullptr, it will go at the end of the + list. */ + void add_objfile (struct objfile *objfile, struct objfile *before); + + /* Remove OBJFILE from the list of objfiles. */ + void remove_objfile (struct objfile *objfile); + /* Pointer to next in linked list. */ struct program_space *next = NULL;