[PATCH 07/14] add infcall_mmap and gcc_target_options gdbarch methods
Jan Kratochvil
jan.kratochvil@redhat.com
Mon May 19 11:15:00 GMT 2014
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
More information about the Gdb-patches
mailing list