From 3423a493a1b97ee23292fb6a6d16533b9f45894f Mon Sep 17 00:00:00 2001 From: Stanislav Shwartsman Date: Thu, 30 Apr 2009 18:58:44 +0000 Subject: [PATCH] Fix segfailt in 'info ldt' command --- bochs/bx_debug/dbg_main.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bochs/bx_debug/dbg_main.cc b/bochs/bx_debug/dbg_main.cc index 87e2896d9..d7fe5814b 100644 --- a/bochs/bx_debug/dbg_main.cc +++ b/bochs/bx_debug/dbg_main.cc @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: dbg_main.cc,v 1.191 2009-04-25 08:06:32 vruppert Exp $ +// $Id: dbg_main.cc,v 1.192 2009-04-30 18:58:44 sshwarts Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2001 MandrakeSoft S.A. @@ -3000,7 +3000,7 @@ void bx_dbg_info_gdt_command(unsigned from, unsigned to) void bx_dbg_info_ldt_command(unsigned from, unsigned to) { bx_address ldtr_base = SIM->get_param_num("LDTR.base", dbg_cpu_list)->get64(); - Bit32u ldtr_limit = SIM->get_param_num("LDTR.limit", dbg_cpu_list)->get(); + Bit32u ldtr_limit = SIM->get_param_num("LDTR.limit_scaled", dbg_cpu_list)->get(); bx_bool all = 0;