aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.h
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2009-06-16 18:49:25 +0000
committerPaul Pluzhnikov <ppluzhnikov@google.com>2009-06-16 18:49:25 +0000
commit7eedccfa2afb7a44b513282cb138d85cde1f7f41 (patch)
treeca021f970e20247ff72764df9982ce692250b94d /gdb/symfile.h
parent19ef5c713c0116f2e15fea28168614d7894b613a (diff)
downloadgdb-7eedccfa2afb7a44b513282cb138d85cde1f7f41.zip
gdb-7eedccfa2afb7a44b513282cb138d85cde1f7f41.tar.gz
gdb-7eedccfa2afb7a44b513282cb138d85cde1f7f41.tar.bz2
2009-06-16 Paul Pluzhnikov <ppluzhnikov@google.com>
* solib.c (symbol_add_stub): New FLAGS parameter. (solib_read_symbols): FROM_TTY -> FLAGS, call symbol_add_stub directly. (solib_add): Defer breakpoint_re_set until after all solibs. * bsd-uthread.c (bsd_uthread_solib_loaded): Adjust. * rs6000-nat.c (objfile_symbol_add): Adjust. * symfile.c (syms_from_objfile): Merge parameters into ADD_FLAGS. (new_symfile_objfile): Likewise. (symbol_file_add_with_addrs_or_offsets): Likewise. (symbol_file_add_from_bfd): Likewise. (symbol_file_add): Likewise. * symfile.h (enum symfile_add_flags): New. Adjust prototypes. * symfile-mem.c (symbol_file_add_from_memory): Adjust. * windows-nat.c (safe_symbol_file_add_stub): Adjust. * machoread.c (macho_oso_symfile, macho_symfile_read): Adjust.
Diffstat (limited to 'gdb/symfile.h')
-rw-r--r--gdb/symfile.h24
1 files changed, 20 insertions, 4 deletions
diff --git a/gdb/symfile.h b/gdb/symfile.h
index 5451c28..bba242c 100644
--- a/gdb/symfile.h
+++ b/gdb/symfile.h
@@ -210,18 +210,34 @@ extern int free_named_symtabs (char *);
extern void add_symtab_fns (struct sym_fns *);
+/* This enum encodes bit-flags passed as ADD_FLAGS parameter to
+ syms_from_objfile, symbol_file_add, etc. */
+
+enum symfile_add_flags
+ {
+ /* Be chatty about what you are doing. */
+ SYMFILE_VERBOSE = 1 << 1,
+
+ /* This is the main symbol file (as opposed to symbol file for dynamically
+ loaded code). */
+ SYMFILE_MAINLINE = 1 << 2,
+
+ /* Do not call breakpoint_re_set when adding this symbol file. */
+ SYMFILE_DEFER_BP_RESET = 1 << 3
+ };
+
extern void syms_from_objfile (struct objfile *,
struct section_addr_info *,
- struct section_offsets *, int, int, int);
+ struct section_offsets *, int, int);
-extern void new_symfile_objfile (struct objfile *, int, int);
+extern void new_symfile_objfile (struct objfile *, int);
extern struct objfile *symbol_file_add (char *, int,
- struct section_addr_info *, int, int);
+ struct section_addr_info *, int);
extern struct objfile *symbol_file_add_from_bfd (bfd *, int,
struct section_addr_info *,
- int, int);
+ int);
/* Create a new section_addr_info, with room for NUM_SECTIONS. */