mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	gdbstub: Don't check if unsigned int is > 0
This commit is contained in:
		
							parent
							
								
									2850a22359
								
							
						
					
					
						commit
						41ec40e9aa
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -529,7 +529,7 @@ static void ReadRegister() { | ||||||
|         id |= HexCharToValue(command_buffer[2]); |         id |= HexCharToValue(command_buffer[2]); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     if (id >= R0_REGISTER && id <= R15_REGISTER) { |     if (id <= R15_REGISTER) { | ||||||
|         IntToGdbHex(reply, Core::g_app_core->GetReg(id)); |         IntToGdbHex(reply, Core::g_app_core->GetReg(id)); | ||||||
|     } else if (id == CPSR_REGISTER) { |     } else if (id == CPSR_REGISTER) { | ||||||
|         IntToGdbHex(reply, Core::g_app_core->GetCPSR()); |         IntToGdbHex(reply, Core::g_app_core->GetCPSR()); | ||||||
|  | @ -584,7 +584,7 @@ static void WriteRegister() { | ||||||
|         id |= HexCharToValue(command_buffer[2]); |         id |= HexCharToValue(command_buffer[2]); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     if (id >= R0_REGISTER && id <= R15_REGISTER) { |     if (id <= R15_REGISTER) { | ||||||
|         Core::g_app_core->SetReg(id, GdbHexToInt(buffer_ptr)); |         Core::g_app_core->SetReg(id, GdbHexToInt(buffer_ptr)); | ||||||
|     } else if (id == CPSR_REGISTER) { |     } else if (id == CPSR_REGISTER) { | ||||||
|         Core::g_app_core->SetCPSR(GdbHexToInt(buffer_ptr)); |         Core::g_app_core->SetCPSR(GdbHexToInt(buffer_ptr)); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue