aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-11-03 15:09:19 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2021-11-03 15:09:19 -0400
commita1700a3199d31910b87cd7db3c394ddd091cfcde (patch)
treec849dc6bb6965d76fdca8660a1ae62de2c56c30f /sim
parentb44d87d4424324cb7a88b314f3a178694581a831 (diff)
downloadgdb-a1700a3199d31910b87cd7db3c394ddd091cfcde.zip
gdb-a1700a3199d31910b87cd7db3c394ddd091cfcde.tar.gz
gdb-a1700a3199d31910b87cd7db3c394ddd091cfcde.tar.bz2
gdb: fix gnu-nat build
When building gnu-nat.c, we get: CXX gnu-nat.o gnu-nat.c: In member function 'virtual void gnu_nat_target::create_inferior(const char*, const string&, char**, int)': gnu-nat.c:2117:13: error: 'struct inf' has no member named 'target_is_pushed' 2117 | if (!inf->target_is_pushed (this)) | ^~~~~~~~~~~~~~~~ gnu-nat.c:2118:10: error: 'struct inf' has no member named 'push_target' 2118 | inf->push_target (this); | ^~~~~~~~~~~ This is because of a confusion between the generic `struct inferior` variable and the gnu-nat-specific `struct inf` variable. Fix by referring to `inferior`, not `inf`. Adjust the comment on top of `struct inf` to clarify the purpose of that type. Co-Authored-By: Andrea Monaco <andrea.monaco@autistici.org> Change-Id: I2fe2f7f6ef61a38d79860fd262b08835c963fc77
Diffstat (limited to 'sim')
0 files changed, 0 insertions, 0 deletions