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 2/2] Fix gdb.mi/mi-stack.exp when gcc generates a stack protector


On Sat, Dec 16, 2017 at 2:56 PM, Simon Marchi <simon.marchi@polymtl.ca> wrote:
> I see some failures in the gdb.mi/mi-stack.exp test.  The test runs to
> the callee4 function:
>
>   int callee4 (void)
>   {
>     int A=1;
>     int B=2;
>     int C;
>     int D[3] = {0, 1, 2};
>
>     C = A + B;
>     return 0;
>   }
>
> and expects to be stopped at the A=1 line.  However, when gcc generates
> some stack protection code, it will stop at the { instead, as shown by
> this disassembly (after I did "break callee4" and "run"):

Can't we fix GDB to skip these stack protection code?

-- 
Yao (齐尧)


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