Re: Using OBJDUMP to get an intermixed source/object listing

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

 



I am not exactly sure but normally if you generated object file with
debugging option, you should be able to see intermixed C code.

So for example, if you created foobar.o using 'gcc -g -c foobar.c',
your way of using objdump should output C code.

HTH.

Ilho <><

On Jan 2, 2008 3:12 PM, Binyamin Dissen <bdissen@xxxxxxxxxxxxxxxxxx> wrote:
> I am attempting to use objdump to get an intermixed source/object listing. It
> is not at all obvious to me what source statements caused the object code in
> the middle of a module.
>
> I issue
>
> make CC:="gcc -g" foobar.o
>
> followed by
>
> objdump --source foobar.o >foobar.debug
>
> but foobar.debug does not have the C statements intermixed.
>
> What am I missing?
>
> --
> Binyamin Dissen <bdissen@xxxxxxxxxxxxxxxxxx>
> http://www.dissensoftware.com
>
> Should you use the mailblocks package and expect a response from me,
> you should preauthorize the dissensoftware.com domain.
>
> I very rarely bother responding to challenge/response systems,
> especially those from irresponsible companies.
>
> --
> To unsubscribe from this list: send an email with
> "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>



-- 
YES, JESUS LOVES YOU, TOO.
For God so loved the world that he gave his one and only Son, that
whoever believes in him shall not perish but have eternal life(John
3:16).

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