diff options
author | Tom Tromey <tromey@redhat.com> | 2012-02-16 21:07:20 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-02-16 21:07:20 +0000 |
commit | 7dcd53a07458941ccf02e280b42f9d68dfb976b0 (patch) | |
tree | d8826dcdbcc1399f5700f571362fc3c257455006 /gdb/symfile.c | |
parent | 7b5de7eeacf1f08bc31562510bab508ebcaae3ee (diff) | |
download | gdb-7dcd53a07458941ccf02e280b42f9d68dfb976b0.zip gdb-7dcd53a07458941ccf02e280b42f9d68dfb976b0.tar.gz gdb-7dcd53a07458941ccf02e280b42f9d68dfb976b0.tar.bz2 |
* symfile.c (symbol_file_add_main_1): Use inferior's
symfile_flags.
* solib.c (solib_read_symbols): Use inferior's symfile_flags.
* linux-nat.c (linux_child_follow_fork): Set symfile_flags on
inferior.
* infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
inferior.
(follow_exec): Use inferior's symfile_flags.
* inferior.h (struct inferior) <symfile_flags>: New field.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r-- | gdb/symfile.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c index 7529196..11ddfe8 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -1246,14 +1246,17 @@ symbol_file_add_main (char *args, int from_tty) static void symbol_file_add_main_1 (char *args, int from_tty, int flags) { - const int add_flags = SYMFILE_MAINLINE | (from_tty ? SYMFILE_VERBOSE : 0); + const int add_flags = (current_inferior ()->symfile_flags + | SYMFILE_MAINLINE | (from_tty ? SYMFILE_VERBOSE : 0)); + symbol_file_add (args, add_flags, NULL, flags); /* Getting new symbols may change our opinion about what is frameless. */ reinit_frame_cache (); - set_initial_language (); + if ((flags & SYMFILE_NO_READ) == 0) + set_initial_language (); } void |