public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/12909] New: gdb fails to figure out the right symbol of function in which my kernel is currently run.
@ 2011-06-17 15:33 pyxchina at sina dot com
  2011-06-17 15:53 ` [Bug symtab/12909] " pyxchina at sina dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: pyxchina at sina dot com @ 2011-06-17 15:33 UTC (permalink / raw)
  To: gdb-prs

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

           Summary: gdb fails to figure out the right symbol of function
                    in which my kernel is currently run.
           Product: gdb
           Version: 7.2
            Status: NEW
          Severity: normal
          Priority: P2
         Component: symtab
        AssignedTo: unassigned@sourceware.org
        ReportedBy: pyxchina@sina.com


I am learning to write a kernel for qemu-x86.
I defined a struct variable named k_tss in one of my .c files.
I run qemu and connected it with gdb.
Then I typed "break img_entry" and "c"
Qemu stoped at img_entry(),but the gdb promted that it stoped in k_tss().


My OS :  Debian-6.1
My Gcc:  gcc version 4.4.5 (Debian 4.4.5-8)
My Gdb:  GNU gdb (GDB) 7.2-debian
My Qemu: QEMU PC emulator version 0.12.5 (Debian 0.12.5+dfsg-3)

Please turn to attachment for all my kernel sources.

After uncompressing the tarball:

          1, cd into its root directory
          2, type "source config.mk"
          3, type "source debug",then you'll get qemu up and connected to gdb
          4, type "break img_entry" in gdb
          5, type "c"
          6, after the breakpoint is hitted,type "bt" and you'll see the trace
of the stack is not as it really is.All the values are correct and what looks
strange is the symbol resolved from those values.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug symtab/12909] gdb fails to figure out the right symbol of function in which my kernel is currently run.
  2011-06-17 15:33 [Bug symtab/12909] New: gdb fails to figure out the right symbol of function in which my kernel is currently run pyxchina at sina dot com
@ 2011-06-17 15:53 ` pyxchina at sina dot com
  2011-07-06  1:55 ` qiyao at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pyxchina at sina dot com @ 2011-06-17 15:53 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #1 from Patrick Pan <pyxchina at sina dot com> 2011-06-17 15:52:46 UTC ---
Created attachment 5803
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5803
All my kernel sources.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug symtab/12909] gdb fails to figure out the right symbol of function in which my kernel is currently run.
  2011-06-17 15:33 [Bug symtab/12909] New: gdb fails to figure out the right symbol of function in which my kernel is currently run pyxchina at sina dot com
  2011-06-17 15:53 ` [Bug symtab/12909] " pyxchina at sina dot com
@ 2011-07-06  1:55 ` qiyao at gcc dot gnu.org
  2011-07-06  2:35 ` pyxchina at sina dot com
  2011-07-06  2:41 ` qiyao at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: qiyao at gcc dot gnu.org @ 2011-07-06  1:55 UTC (permalink / raw)
  To: gdb-prs

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

Yao Qi <qiyao at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |qiyao at gcc dot gnu.org

--- Comment #2 from Yao Qi <qiyao at gcc dot gnu.org> 2011-07-06 01:54:56 UTC ---
GDB developers may not have qemu installed on their machine, so it is hard to
reproduce this problem as you suggested.  AFAICS, the problem you want to fix
has  nothing to do with qemu, so If you can provide a simple test case, that is
helpful to gdb hackers to understand what is the problem in gdb.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug symtab/12909] gdb fails to figure out the right symbol of function in which my kernel is currently run.
  2011-06-17 15:33 [Bug symtab/12909] New: gdb fails to figure out the right symbol of function in which my kernel is currently run pyxchina at sina dot com
  2011-06-17 15:53 ` [Bug symtab/12909] " pyxchina at sina dot com
  2011-07-06  1:55 ` qiyao at gcc dot gnu.org
@ 2011-07-06  2:35 ` pyxchina at sina dot com
  2011-07-06  2:41 ` qiyao at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: pyxchina at sina dot com @ 2011-07-06  2:35 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #3 from Patrick Pan <pyxchina at sina dot com> 2011-07-06 02:34:37 UTC ---
Hey,man!I really appreciate your patience for fixing this bug. I wonder if you
could beg me a pardon that this 'bug' is entirely resulted from my code,not
gdb's. I've already fixed it and everything has been working well.After
all,thank you for replying to me and wish your a happy hacking :)
--------------------------------
Much as formal systems, 
thanks to their very power, 
are doomed to incompleteness, 
so living beings, 
thanks to their complexity, 
are doomed to perish, 
each in its own unique manner.


              ----DOUGLAS HOFSTADTER

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug symtab/12909] gdb fails to figure out the right symbol of function in which my kernel is currently run.
  2011-06-17 15:33 [Bug symtab/12909] New: gdb fails to figure out the right symbol of function in which my kernel is currently run pyxchina at sina dot com
                   ` (2 preceding siblings ...)
  2011-07-06  2:35 ` pyxchina at sina dot com
@ 2011-07-06  2:41 ` qiyao at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: qiyao at gcc dot gnu.org @ 2011-07-06  2:41 UTC (permalink / raw)
  To: gdb-prs

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

Yao Qi <qiyao at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #4 from Yao Qi <qiyao at gcc dot gnu.org> 2011-07-06 02:41:28 UTC ---
Close this PR.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

end of thread, other threads:[~2011-07-06  2:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-17 15:33 [Bug symtab/12909] New: gdb fails to figure out the right symbol of function in which my kernel is currently run pyxchina at sina dot com
2011-06-17 15:53 ` [Bug symtab/12909] " pyxchina at sina dot com
2011-07-06  1:55 ` qiyao at gcc dot gnu.org
2011-07-06  2:35 ` pyxchina at sina dot com
2011-07-06  2:41 ` qiyao at gcc dot gnu.org

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).