1 Nov 2004 01:01
[commit] Some stray IN_SOLIB_CALL_TRAMPOLINE macros
Andrew Cagney <cagney <at> gnu.org>
2004-11-01 00:01:46 GMT
2004-11-01 00:01:46 GMT
Just FYI, another #define and #undef. Again removed. Andrew
2004-10-31 Andrew Cagney <cagney <at> gnu.org>
* config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
* config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
(in_plt_section): Delete.
Index: config/tm-sysv4.h
===================================================================
RCS file: /cvs/src/src/gdb/config/tm-sysv4.h,v
retrieving revision 1.4
diff -p -u -r1.4 tm-sysv4.h
--- config/tm-sysv4.h 11 Oct 2002 14:02:38 -0000 1.4
+++ config/tm-sysv4.h 31 Oct 2004 23:59:53 -0000
<at> <at> -20,17 +20,6 <at> <at>
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-/* For SVR4 shared libraries, each call to a library routine goes through
- a small piece of trampoline code in the ".plt" section.
- The horribly ugly wait_for_inferior() routine uses this macro to detect
- when we have stepped into one of these fragments.
- We do not use lookup_solib_trampoline_symbol_by_pc, because
- we cannot always find the shared library trampoline symbols
- (e.g. on Irix5). */
-
-#define IN_SOLIB_CALL_TRAMPOLINE(pc, name) in_plt_section((pc), (name))
(Continue reading)
> >
> > Like this perhaps:
> >
> > + ULONGEST mask = (ULONGEST) -1 >> (8 * sizeof (ULONGEST) - bitsize);
>
> Andreas,
>
> I had considered exactly that line, but unfortunately ran across the
> following really irritating provision in the C standard:
>
> "If the value of the right operand is negative or is
> *greater than or equal to* the width of the promoted left
> operand, the behavior is undefined."
>
> [I know why the provision is there, of course: many machines treat a
> shift of wordsize bits as 0, because they mask off bits to the left,
> but it's STILL irritating.]
>
> Now, I presume we will never encounter a bitfield size of 8 * sizeof
> (ULONGEST), but the original code apparently tried to bullet-proof
> against this possibility, so I just went along.
RSS Feed