This is the mail archive of the gdb@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: gdb/633: fully qualified pathnames in solib_map_sections() andremote debugging


This leaves only the question of "how".  I don't want to change the
>behavior for a native debugger using the remote protocol; just for
>non-native debuggers.  How should I check for this?  Using configury to
>do it seems contrary to the direction gdbarch is going (i.e. a both
>native and cross debugger in one binary).

This is a target environment thing?  So why not ask the target:

target_getenv()
	-> qGetenv:<STRING>
	<- value

No (although I will get back to qGetenv later... :).  We're discussing
the behavior of the function solib.c:solib_open.  It should vary
depending on whether the current target is native or not, and I don't
know how to figure that out correctly.
There are two approaches: have solib_open() test for a local/remote target; or, add methods to the target vector that allow solib_open() to be written independant of the target.

Adding a local/remote test is going to be easier. Having the code written local/remote independant might be better long term (but runs the risk of making things unnecessarily complex).

enjoy,
Andrew



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