diff options
author | Lancelot Six <lancelot.six@amd.com> | 2023-08-23 14:50:42 +0000 |
---|---|---|
committer | Lancelot Six <lancelot.six@amd.com> | 2023-08-23 15:38:07 +0000 |
commit | c99853f48cd9132c5a745ad7452d1b0d856f32b8 (patch) | |
tree | 82f18adc928ac25f845efb25b1dc67c15828a75e /gdb | |
parent | 2c9d78274a9a2c70b50246e29bae2acbbe239d2a (diff) | |
download | gdb-c99853f48cd9132c5a745ad7452d1b0d856f32b8.zip gdb-c99853f48cd9132c5a745ad7452d1b0d856f32b8.tar.gz gdb-c99853f48cd9132c5a745ad7452d1b0d856f32b8.tar.bz2 |
gdb: fix build failure in amd-dbgapi-target.c
Since b080fe54fb3 "gdb: add inferior-specific breakpoints", the
breakpoint class has an "inferior" member used to handle
inferior-specific breakpoints. This creates a compilation error
in amd_dbgapi_target_breakpoint::check_status which declares a local
variable "inferior *inf".
Fix this by using "struct inferior *inf" instead.
Change-Id: Icc4dc1ba96c7d3ff9d33f9cb384ffcf64eba26fb
Approved-By: Pedro Alves <pedro@palves.net>
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/amd-dbgapi-target.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/amd-dbgapi-target.c b/gdb/amd-dbgapi-target.c index e90628c..22c269b 100644 --- a/gdb/amd-dbgapi-target.c +++ b/gdb/amd-dbgapi-target.c @@ -398,7 +398,7 @@ amd_dbgapi_target_breakpoint::re_set () void amd_dbgapi_target_breakpoint::check_status (struct bpstat *bs) { - inferior *inf = current_inferior (); + struct inferior *inf = current_inferior (); amd_dbgapi_inferior_info *info = get_amd_dbgapi_inferior_info (inf); amd_dbgapi_status_t status; |