Re: determining return address of a function
- From: "Madhav" <madhav.kelkar@xxxxxxxxx>
- Date: 27 Dec 2005 20:17:09 -0800
> > [mkelkar@adrastea cthreads]$ ./a.out
> > 0th function (this function test2) 0x804836a
>
> This is the return address somewhere in test1
>
> > Test2=0x804836c
>
> This is the start of test2
>
> > 1st function ( function test1) 0x804835d
>
> This is the return address somewhere in main
Do you mean to say that when I say __builtin_return_address(1) in
test2( ), it will be the address of the 10th line pasted below?
8 int main(void)
9 {
10 test1();
11}
Please tell me if my understanding is right or wrong.
Thanks,
Madhav.
.
- Follow-Ups:
- Re: determining return address of a function
- From: Enrique Perez-Terron
- Re: determining return address of a function
- References:
- determining return address of a function
- From: Madhav
- determining return address of a function
- Prev by Date: Re: Why can't my serial driver can't keep up?
- Next by Date: Re: stop thread group of a process
- Previous by thread: determining return address of a function
- Next by thread: Re: determining return address of a function
- Index(es):
Relevant Pages
|