This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 2/2] Fix gdb.mi/mi-stack.exp when gcc generates a stack protector
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Simon Marchi <simon dot marchi at polymtl dot ca>
- Cc: GDB Patches <gdb-patches at sourceware dot org>
- Date: Tue, 2 Jan 2018 10:38:23 +0000
- Subject: Re: [PATCH 2/2] Fix gdb.mi/mi-stack.exp when gcc generates a stack protector
- Authentication-results: sourceware.org; auth=none
- References: <20171216145651.13936-1-simon.marchi@polymtl.ca> <20171216145651.13936-2-simon.marchi@polymtl.ca>
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 (齐尧)