diff options
author | Doug Evans <dje@google.com> | 2011-10-11 03:31:59 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2011-10-11 03:31:59 +0000 |
commit | 0838fb575ec286250d500871c0a078e6bd25eacc (patch) | |
tree | b6a69b5f042414edf107215fbb04b954362f0f43 /gdb/objfiles.h | |
parent | 0344e8789041c41c4561cfd54c4b04e512983fb4 (diff) | |
download | gdb-0838fb575ec286250d500871c0a078e6bd25eacc.zip gdb-0838fb575ec286250d500871c0a078e6bd25eacc.tar.gz gdb-0838fb575ec286250d500871c0a078e6bd25eacc.tar.bz2 |
* linux-thread-db.c (thread_db_new_objfile): Only try to load
libthread_db when we load libpthread or the main symbol file.
(thread_db_inferior_created): New function.
(_initialize_thread_db): Attach inferior_created observer.
* linux-nat.c (linux_child_post_attach): Remove call to
check_for_thread_db.
(linux_child_post_startup_inferior): Ditto.
* objfiles.h (OBJF_MAINLINE): Define.
* symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
allocate_objfile when appropriate.
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r-- | gdb/objfiles.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h index bb28dc1..1d24fb9 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -196,7 +196,8 @@ struct objfile CORE_ADDR addr_low; - /* Some flag bits for this objfile. */ + /* Some flag bits for this objfile. + The values are defined by OBJF_*. */ unsigned short flags; @@ -434,6 +435,11 @@ struct objfile #define OBJF_PSYMTABS_READ (1 << 4) +/* Set if this is the main symbol file + (as opposed to symbol file for dynamically loaded code). */ + +#define OBJF_MAINLINE (1 << 5) + /* The object file that contains the runtime common minimal symbols for SunOS4. Note that this objfile has no associated BFD. */ |