public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Question about the function "find_pc_sect_partial_function"
@ 2007-11-14  9:39 wangjiong
  0 siblings, 0 replies; 2+ messages in thread
From: wangjiong @ 2007-11-14  9:39 UTC (permalink / raw)
  To: gdb

Dear all:

        I have meet a problem and try to solve it for about two days, but 
it's still there, so wish you help me.

        my gdb version is 6.1.1

        suppose the following program :

         .section .text
        .proc   main
        .global main
         main:
        .BB1_main:   <-- 0x80000100
         ... ...
        ... ...
         .BB2_main:  <-- 0x80000200 
        ... ...
        ... ...

        if I call find_pc_partial_function (0x80000201, &name,&start,&end)
       the name will be .BB2_main and the value of start is 0x80000200 (Is 
this right?)

        then I call find_pc_partial_function (0x80000199, 
&name,&start,&end)
        the name will be main and the value of start is 0x80000100

        if I call find_pc_partial_function (0x80000201, &name,&start,&end) 
again,
        the name will be main and the value of start is 0x80000100. (why?)

        Why in the first step it just gets a label ?
 
 
Wang Jiong 

  tel:2254

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

* Question about the function "find_pc_sect_partial_function"
@ 2007-11-14  9:32 wangjiong
  0 siblings, 0 replies; 2+ messages in thread
From: wangjiong @ 2007-11-14  9:32 UTC (permalink / raw)
  To: gdb

Dear all:

        I have meet a problem and try to solve it for about two days, but 
it still there, so wish you help me.

        my gdb version is 6.1.1

        suppose the following program :

         .section .text
        .proc   main
        .global main
         main:
        .BB1_main:   <--0 0x
         ... ...
        ... ...
         .BB2_main:
        ... ...
        ... ...


 
main#:
.BB1_main:
Wang Jiong 

  tel:2254

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

end of thread, other threads:[~2007-11-14  9:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-14  9:39 Question about the function "find_pc_sect_partial_function" wangjiong
  -- strict thread matches above, loose matches on Subject: below --
2007-11-14  9:32 wangjiong

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