This is the mail archive of the gdb-prs@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]

[Bug corefiles/11804] Fix -Wl,-z,relro gcore writer (+maybe reader)


------- Additional Comments From rguenth at gcc dot gnu dot org  2010-08-31 12:52 -------
In my gdb copy (7.0 based), the following looks suspicious:

    if (dyn_tag == dyntag)
      {
        /* If requested, try to read the runtime value of this .dynamic
           entry.  */
        if (ptr)
          {
            gdb_byte ptr_buf[8];
            CORE_ADDR ptr_addr;
            int got;

            ptr_addr = dyn_addr + (buf - bufstart) + arch_size / 8;

                                                  ^^^^^^^^^^^^^^^^^

            if (ptr != NULL)
              {
                if (debug_solib)
                  fprintf_unfiltered (gdb_stdlog,
                                      "elf_locate_base: unrelocated ptr addr %s\n",
                                      paddress (target_gdbarch, ptr_addr));


I can see the dynamic section contents just fine at dyn_addr + (buf - bufstart).
OTOH a recent 7.1 tree looks much different (but has the same logic and
also doesn't work for me - but it lost the nice debugging stuff).

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=11804

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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