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] Handle ObjC OPS in eval.c



+#ifdef GDB_TARGET_IS_HPPA
+           CORE_ADDR tmp;
+           /* code and comment lifted from hppa-tdep.c -- unfortunately
+              there is no builtin function to do this for me. */
+           /* If bit 30 (counting from the left) is on, then addr is the
+              address of the PLT entry for this function, not the address
+              of the function itself.  Bit 31 has meaning too, but only
+              for MPE.  */
+           if (addr & 0x2)
+             addr = (CORE_ADDR) read_memory_unsigned_integer (addr & ~0x3, 4);
+           if (tmp = skip_trampoline_code (addr, 0))
+             addr = tmp;       /* in case of trampoline code */
+#endif

I tried looking at gdbarch, but it's a bit complicated for me so I couldn't understand much. I saw that OP_FUNCALL was using
I recommend disabling the above code (perhaps create a bug report to track this action - you can blame me :-). I don't see Apple objecting and if someone with a PA ever hits problems, they can fix it :-/

Andrew



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