This is the mail archive of the
mailing list for the GDB project.
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”))