This is the mail archive of the gdb-patches@sourceware.org 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] Fix a glitch in debugging 32-bit process with 64-bit GDB.


> So, the choices appear to be:
> 
> - leave GDB broken and wait for newer glibc :(

I'm just realizing that this might be a very very visible problem,
if most offsets are negative. Is that the case?

> - do sign extension, but only for N_LSYM and N_PSYM symbols as
>  a heuristic.

It seems to me that this should work without negative effect
(we have to be a little careful because there is a 64bit stabs
extension on Tru64).  After all, values for these types of symbols
are always offsets to some location inside a frame, and I can't see
a frame being that big.

> - pre-scan the objfile to determine highest link address, and
>  do sign extension if that address is (well) below 0x80000000

Seems too much work, IMO.

-- 
Joel


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