This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] add-symbol-file-from-memory command


On Thu, Apr 08, 2004 at 03:27:58PM -0700, Roland McGrath wrote:
> > - Would it work to completely replace
> >   symbol_file_add_with_addrs_or_offsets's 'name' argument with the
> >   abfd argument, and then just use bfd_get_filename?  It looks to me
> >   like the only affect would be that the tilde-expanded, path-searched
> >   filename would appear in messages, which seems like a good thing.
> 
> I don't see any problem with this.  I intentionally did not perturb other
> callers, but it would be a simple change to have them call symfile_bfd_open
> in their args.

I like Jim's suggestion, since the wrong error messages have really
bugged me.  OTOH, this won't fix all of them - "name" is still used in
symfile_bfd_open to print some errors.  But progress...

> > - Since the command isn't something that ordinary users are really
> >   going to want themselves, but is more for the benefit of GDB
> >   developers, should be a 'maint' subcommand?
> 
> I think it's in the same category of usefulness as add-symbol-file.

Me, too.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]