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: [RFA/hpux] SEGV when running program using dlopen


> yeah, seems a bit bogus :) i think it works only because export stubs
> normally occur earlier in a file than the real function; but i suppose
> that doesn't have to be the case.

Either that, or the ordering of the symbols in our data structures can
change.

> > AFAIK, it provides some help in debugging by exporting some specified
> > symbols. The only use I know of if with shared libraries...
> 
> ok, thanks. your patch looks good; i'm still wondering if we should have
> unified logic to search for (export|import) stubs... but that's for
> later.

I thought about this too, actually. I think it's a great idea. The
patch will be slightly larger, but I can export the new code into
a function and call that. Might be useful elsewhere, and will make
the code a bit cleaner in any case.

If you prefer, you can also take my patch, adapt it, and do the commit.

-- 
Joel (GMT + 4, so time to sign off)


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