public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug shlibs/11497] New: Stepping broken
@ 2010-04-13 16:38 andre dot poenitz at nokia dot com
  2010-04-13 16:52 ` [Bug shlibs/11497] " andre dot poenitz at nokia dot com
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: andre dot poenitz at nokia dot com @ 2010-04-13 16:38 UTC (permalink / raw)
  To: gdb-prs

I cannot do a simple 'step' into a function on an arm-linux-gnueabi based device
(Nokia N900) with any recent version of gdb.

Anything coming after 

Author: Joel Brobecker <brobecker@gnat.com>
Date:   Mon Sep 17 19:32:53 2007 +0000

            * solib-svr4.c: Add include of "auxv.h".
            (enable_break): Use the AT_BASE auxiliary entry if available.
            * Makefile.in (solib-svr4.o): Update dependencies.

appears to be broken.

Current CVS head can be made "working" by applying the following patch:
-------------------------------------------------------------------
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
index 8edc889..1524722 100644
--- a/gdb/solib-svr4.c
+++ b/gdb/solib-svr4.c
@@ -1449,7 +1449,7 @@ enable_break (struct svr4_info *info, int from_tty)

       /* If we were not able to find the base address of the loader
          from our so_list, then try using the AT_BASE auxilliary entry.  */
-      if (!load_addr_found)
+      if (0 && !load_addr_found)
         if (target_auxv_search (&current_target, AT_BASE, &load_addr) > 0)
          {
            int addr_bit = gdbarch_addr_bit (target_gdbarch);
-------------------------------------------------------------------

(but this makes startup much slower)

The final problem is that the breakpoint inserted for the stepping is set on an
address that's never hit, possibly due to a relocation problem. The packet
delivered looks like

>&"Packet received: 80340141\n"
>&"Sending packet: $X13c14,4:\\360\\001\\360\\347#e6..."

whereas the "working" version uses different addresses like

>&"Sending packet: $Xa5b8,4:,0K\\342#ab..." 
>&"Packet received: OK\n"
>&"Sending packet: $Xaeb8,4:40\\e\\345#b6..." 
>&"Packet received: OK\n" 
>&"Sending packet: $X4100e77c,4:\\004\\260-\\345#b3..." 
>&"Packet received: OK\n" 
>&"Sending packet: $X41052330,4:\\000@\\240\\341#45..."

Maybe this is some kind of relocation problem?

-- 
           Summary: Stepping broken
           Product: gdb
           Version: 7.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: shlibs
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: andre dot poenitz at nokia dot com
                CC: gdb-prs at sourceware dot org
  GCC host triplet: i386-pc-linux-gnu
GCC target triplet: arm-linux-gnueabi


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

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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2010-04-14 13:56 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-13 16:38 [Bug shlibs/11497] New: Stepping broken andre dot poenitz at nokia dot com
2010-04-13 16:52 ` [Bug shlibs/11497] " andre dot poenitz at nokia dot com
2010-04-13 17:06 ` jan dot kratochvil at redhat dot com
2010-04-13 17:57 ` jan dot kratochvil at redhat dot com
2010-04-14  8:50 ` andre dot poenitz at nokia dot com
2010-04-14 10:57 ` pedro at codesourcery dot com
2010-04-14 12:43 ` pedro at codesourcery dot com
2010-04-14 12:49 ` andre dot poenitz at nokia dot com
2010-04-14 12:50 ` andre dot poenitz at nokia dot com
2010-04-14 12:59 ` andre dot poenitz at nokia dot com
2010-04-14 13:37 ` andre dot poenitz at nokia dot com
2010-04-14 13:43 ` andre dot poenitz at nokia dot com
2010-04-14 13:56 ` andre dot poenitz at nokia dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).