This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Question about the function "find_pc_sect_partial_function"
- From: wangjiong at sunnorth dot com dot cn
- To: gdb at sourceware dot org
- Date: Wed, 14 Nov 2007 17:39:18 +0800
- Subject: Question about the function "find_pc_sect_partial_function"
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