Re: Find the calling function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

"Mulyadi Santosa" <mulyadi.santosa@xxxxxxxxx> writes:

> Grrrrr :)
>
> Peter is right and I forgot one simple fact: Elad might compile his
> kernel without frame pointer being used to mark the start of local
> variables :) hehehe, sorry for that.
>
> Anyway, bottom line, that's just makes you harder to guess where the
> ret addr is. By observing the function prototype, you can get
> approximation where the ret addr lives in stack frame. Looking closer
> on how gdb does it might help you to get a clue...

You can still get it with __builtin_return_address().

	Hannes

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux