X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gdb%2Fsymfile-mem.c;h=c7d6d37ec538c51be4c7ff3bc65ad382770cd395;hb=5af949e350b923403600c1da34774b49a77c925c;hp=65f5623eacf90d515e931e8f5a455158ceadb31f;hpb=0dfdb8ba76b1b0dd140c9bd536fed5e8083a55e9;p=external%2Fbinutils.git diff --git a/gdb/symfile-mem.c b/gdb/symfile-mem.c index 65f5623..c7d6d37 100644 --- a/gdb/symfile-mem.c +++ b/gdb/symfile-mem.c @@ -1,7 +1,7 @@ /* Reading symbol files from memory. Copyright (C) 1986, 1987, 1989, 1991, 1994, 1995, 1996, 1998, 2000, 2001, - 2002, 2003, 2004, 2005, 2007 Free Software Foundation, Inc. + 2002, 2003, 2004, 2005, 2007, 2008, 2009 Free Software Foundation, Inc. This file is part of GDB. @@ -107,8 +107,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 +196,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. */ @@ -208,6 +208,10 @@ try using the \"file\" command first.")); } + +/* Provide a prototype to silence -Wmissing-prototypes. */ +extern initialize_file_ftype _initialize_symfile_mem; + void _initialize_symfile_mem (void) {