Skip to content
/ bochs Public

Little utility for the Bochs's debugger. Added info tss [idx] command

License

Unknown, LGPL-2.1 licenses found

Licenses found

Unknown
LICENSE
LGPL-2.1
COPYING
Notifications You must be signed in to change notification settings

doste/bochs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

info tss command for the Bochs's debugger.

The code I modified is only in the bx_debug folder but this repo contains all of the Bochs source code so you can just clone it and start using it.

Instructions:

  1. Clone this repo
  2. In the folder where you cloned it, open a terminal and execute: ./configure --enable-debugger --disable-docbook --enable-readline --prefix=$HOME/bochs/ make make install
  3. That's it!

When you are executing some (most certainly kernel) code using Bochs to emulate a x86 machine, if you are using some of the utilities offered by Intel for the task managment, you may want to debug the state of the tasks.

What Bochs by default offers is the command info tss which shows the TSS that is currently loaded in the Task Register.

Example:

alt text

But, what if you wanted to view what's in the others TSSs?

The Bochs's debugger doesn't allow that. You would have to dump the memory corresponding to that segment:

alt text

So, with this little utility I added you now can!

info tss like always: alt text

But now you debug another using the GDT index: alt text

And if you give it an invalid index it will tell you: alt text

Obviously all the credits go to the Bochs developers, I only added a little debugging command.

About

Little utility for the Bochs's debugger. Added info tss [idx] command

Resources

License

Unknown, LGPL-2.1 licenses found

Licenses found

Unknown
LICENSE
LGPL-2.1
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published