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, gdb, ARM] Use getters/setters to access ARM branch type


On Tuesday 10 May 2016 16:11:51 Yao Qi wrote:
> Thomas Preudhomme <thomas.preudhomme@foss.arm.com> writes:
> > @@ -8467,7 +8467,8 @@ coff_sym_is_thumb (int val)
> > 
> >  static void
> >  arm_elf_make_msymbol_special(asymbol *sym, struct minimal_symbol *msym)
> >  {
> > 
> > -  if (ARM_SYM_BRANCH_TYPE (&((elf_symbol_type *)sym)->internal_elf_sym)
> > +  elf_symbol_type *elfsym = (elf_symbol_type *) sym;
> 
> We need a blank line here.
> 
> > +  if (ARM_GET_SYM_BRANCH_TYPE
> > (elfsym->internal_elf_sym.st_target_internal)> 
> >        == ST_BRANCH_TO_THUMB)
> >      
> >      MSYMBOL_SET_SPECIAL (msym);
> 
> Patch is OK to me.

Committed with the above changes.

Thanks. Best regards,

Thomas


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