This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 07/14] add infcall_mmap and gcc_target_options gdbarch methods


On Mon, 19 May 2014 10:26:43 +0200, Agovic, Sanimir wrote:
> We may consider picking the cu die for the current $pc and extract the compiler
> options from DW_AT_producer[1]. But this requires parsing the necessary bits out
> of a string. Adding something like DW_AT_producer_options to dwarf would make
> things more straight forward.
> 
> [1] DW_AT_producer    : [...] -mtune=generic -march=x86-64 -g

This is already done in this patchset.  I expect if one uses the compiled
expressions one is probably using -g non-stripped inferior.

This gdbarch gcc_target_options method is there only as some fallback for
stripped / non-g / old gcc / -gno-record-gcc-switches inferiors.


Jan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]