This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Avoid shadowing in linux-tdep.c
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Fri, 05 Oct 2018 01:52:55 -0400
- Subject: [binutils-gdb] Avoid shadowing in linux-tdep.c
*** TEST RESULTS FOR COMMIT 3fba72f7612c071f07fc7e65887bd1e8e056e272 ***
Author: Tom Tromey <tom@tromey.com>
Branch: master
Commit: 3fba72f7612c071f07fc7e65887bd1e8e056e272
Avoid shadowing in linux-tdep.c
This is one of the uglier changes to avoid local shadowing. Because
obstack.h uses statement expressions, in some cases a nested obstack
call will result in shadowing. Rather than try to fix obstack.h, this
patch simply works around the one instance of this problem.
gdb/ChangeLog
2018-10-04 Tom Tromey <tom@tromey.com>
* linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
variable "size".