2010-05-24 Michael Snyder <msnyder@vmware.com>
[binutils-gdb.git] / gdb / symfile-mem.c
index e336350f9f65c3c4ec4126fe3dd1061d97dacb33..5f58d38dfb686f2abbf37341cd8ef384ccf569c7 100644 (file)
@@ -1,7 +1,8 @@
 /* Reading symbol files from memory.
 
    Copyright (C) 1986, 1987, 1989, 1991, 1994, 1995, 1996, 1998, 2000, 2001,
-   2002, 2003, 2004, 2005, 2007, 2008, 2009 Free Software Foundation, Inc.
+   2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010
+   Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -107,8 +108,8 @@ symbol_file_add_from_memory (struct bfd *templ, CORE_ADDR addr, char *name,
        ++i;
       }
 
-  objf = symbol_file_add_from_bfd (nbfd, from_tty,
-                                   sai, 0, OBJF_SHARED);
+  objf = symbol_file_add_from_bfd (nbfd, from_tty ? SYMFILE_VERBOSE : 0,
+                                   sai, OBJF_SHARED);
 
   /* This might change our ideas about frames already looked at.  */
   reinit_frame_cache ();
@@ -196,8 +197,8 @@ try using the \"file\" command first."));
        }
       args.bfd = bfd;
       args.sysinfo_ehdr = sysinfo_ehdr;
-      args.name = xstrprintf ("system-supplied DSO at 0x%s",
-                paddr_nz (sysinfo_ehdr));
+      args.name = xstrprintf ("system-supplied DSO at %s",
+                             paddress (target_gdbarch, sysinfo_ehdr));
       /* Pass zero for FROM_TTY, because the action of loading the
         vsyscall DSO was not triggered by the user, even if the user
         typed "run" at the TTY.  */