This is the mail archive of the gdb-prs@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]

[Bug c++/21222] A function with VEX encoded SSE instructions and a particular number of arguments corrupts a value calculated on the stack when stepping through the function


https://sourceware.org/bugzilla/show_bug.cgi?id=21222

--- Comment #18 from Adam Stylinski <kungfujesus06 at gmail dot com> ---
(In reply to Adam Stylinski from comment #17)
> (In reply to Pedro Alves from comment #16)
> > (In reply to Adam Stylinski from comment #15)
> > 
> > > Sure, can you send me a link to the repo?
> > 
> > https://sourceware.org/gdb/current/
> > 
> > > Your workaround seems to be correct, so there's a good chance your fix will
> > > work:
> > 
> > Awesome, that's a very good indication indeed.
> 
> Hmm, getting a build error:
> 
> target-descriptions.c: In member function ‘virtual void
> print_c_tdesc::visit_pre(const target_desc*)’:
> target-descriptions.c:1836:16: error: types may not be defined in a
> for-range-declaration [-Werror]
>      for (const struct bfd_arch_info *compatible : e->compatible)
>                 ^~~~~~

I think I may have fixed this build error, modified the type to be something
that was already declared as a type (const bfd_arch_info_type*).  My guess is
at some point this struct was typedef'd to this and meant to be used this way. 
I'll let you know if this version fixes it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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