Re: determining return address of a function



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

.



Relevant Pages

  • Re: Junit newbie
    ... > time in junit versus my actual class. ... > iteratively test de/compressing a single byte array with the values ranging ... As to what if test2 requires test1 to pass? ...
    (comp.lang.java.help)
  • Re: semBCreate, SEM_Q_FIFO
    ... The problem is definitely one of context switching and scheduling. ... The two tasks (test1 and test2) were at the same priority. ... next iterations of task1 will be so fast that task1 will finish ...
    (comp.os.vxworks)
  • Re: Changing the local admin password base on the computers OU
    ... You can put the common code of the two IF-bodies in front of them, ... 'Change the local admin pwd for OU TEST1 ... 'Change the local admin pwd for OU TEST2 ... I do not know what it means to test for a computers membership in ...
    (microsoft.public.scripting.vbscript)
  • Re: Validation Options with option List
    ... If you are talking about actual tests (e.g. test1 has several questions, ... test2 has several questions and so on) you can do this. ... > Could you not just add a simple IF test in an adjoining cell ... >> i have set up an validation list option in Excel so i can choose what ...
    (microsoft.public.excel.misc)
  • data comprised of regexs (while loop weirdness)
    ... why do I only see a yes when passing the last data entry (test3) as ... <end code snipet> ...
    (comp.lang.perl.misc)