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
|