[gdb/aarch64] Updated debug architecture version checks for fbsd

Message ID 20230425142457.755098-1-luis.machado@arm.com
State New
Headers
Series [gdb/aarch64] Updated debug architecture version checks for fbsd |

Commit Message

Luis Machado April 25, 2023, 2:24 p.m. UTC
  There are two new debug architecture version entries.  I updated the
code for Linux, but fbsd also needs updating.

This patch does this, and should be pretty straightforward.

I can't test this on native fbsd, but I'm fairly confident it should
work.

Signed-off-by: Luis Machado <luis.machado@arm.com>
---
 gdb/aarch64-fbsd-nat.c | 2 ++
 1 file changed, 2 insertions(+)
  

Comments

John Baldwin April 25, 2023, 6:18 p.m. UTC | #1
On 4/25/23 7:24 AM, Luis Machado wrote:
> There are two new debug architecture version entries.  I updated the
> code for Linux, but fbsd also needs updating.
> 
> This patch does this, and should be pretty straightforward.
> 
> I can't test this on native fbsd, but I'm fairly confident it should
> work.
> 
> Signed-off-by: Luis Machado <luis.machado@arm.com>

LGTM, thanks!
  
Luis Machado April 26, 2023, 6:01 a.m. UTC | #2
On 4/25/23 19:18, John Baldwin wrote:
> On 4/25/23 7:24 AM, Luis Machado wrote:
>> There are two new debug architecture version entries.  I updated the
>> code for Linux, but fbsd also needs updating.
>>
>> This patch does this, and should be pretty straightforward.
>>
>> I can't test this on native fbsd, but I'm fairly confident it should
>> work.
>>
>> Signed-off-by: Luis Machado <luis.machado@arm.com>
> 
> LGTM, thanks!
> 

Thanks. Pushed now.
  

Patch

diff --git a/gdb/aarch64-fbsd-nat.c b/gdb/aarch64-fbsd-nat.c
index 9dbbaf951f2..709f5162ce0 100644
--- a/gdb/aarch64-fbsd-nat.c
+++ b/gdb/aarch64-fbsd-nat.c
@@ -215,6 +215,8 @@  aarch64_fbsd_nat_target::probe_debug_regs (int pid)
 	    case AARCH64_DEBUG_ARCH_V8_1:
 	    case AARCH64_DEBUG_ARCH_V8_2:
 	    case AARCH64_DEBUG_ARCH_V8_4:
+	    case AARCH64_DEBUG_ARCH_V8_8:
+	    case AARCH64_DEBUG_ARCH_V8_9:
 	      break;
 	    default:
 	      return;