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][ARM][GDB]: gdb cannot step across CMSE secure entry function code.


On 2019-07-17 2:35 p.m., Alan Hayward wrote:
>> +{
>> + if (sec != NULL && sec->the_bfd_section != NULL
>> +     && sec->the_bfd_section->name != NULL
>> +     && !strcmp (sec->the_bfd_section->name,".gnu.sgstubs”))
> 
> "0 == strcmp” is easier to parse than !strcmp.

Nothing much to add after Alan's review, but I just wanted to note that we have streq for this, e.g.:

  if (streq (sec->the_bfd_section->name, ".gnu.sgstubs”))

Simon


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