public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* the disassembly code by gdb is wrong,what is the reason?
@ 2012-05-31 10:29 Tom Frank
  2012-05-31 10:43 ` Pedro Alves
  2012-06-03  8:49 ` Tom Frank
  0 siblings, 2 replies; 3+ messages in thread
From: Tom Frank @ 2012-05-31 10:29 UTC (permalink / raw)
  To: gdb

I want to debug the linux kernel code when it is setup in realmode
,but gdb can not working right for that,its diassemblely code is
wrong,
and  the instruction address is computed for protect_mode .

how can I do?

thank you!

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: the disassembly code by gdb is wrong,what is the reason?
  2012-05-31 10:29 the disassembly code by gdb is wrong,what is the reason? Tom Frank
@ 2012-05-31 10:43 ` Pedro Alves
  2012-06-03  8:49 ` Tom Frank
  1 sibling, 0 replies; 3+ messages in thread
From: Pedro Alves @ 2012-05-31 10:43 UTC (permalink / raw)
  To: Tom Frank; +Cc: gdb

On 05/31/2012 11:28 AM, Tom Frank wrote:

> I want to debug the linux kernel code when it is setup in realmode
> ,but gdb can not working right for that,its diassemblely code is
> wrong,
> and  the instruction address is computed for protect_mode .
> 
> how can I do?


Try "set architecture i8086".

-- 
Pedro Alves

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: the disassembly code by gdb is wrong,what is the reason?
  2012-05-31 10:29 the disassembly code by gdb is wrong,what is the reason? Tom Frank
  2012-05-31 10:43 ` Pedro Alves
@ 2012-06-03  8:49 ` Tom Frank
  1 sibling, 0 replies; 3+ messages in thread
From: Tom Frank @ 2012-06-03  8:49 UTC (permalink / raw)
  To: gdb

can  gdb trace the sysenter  instruction ?   which cause a system call

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-06-03  8:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-31 10:29 the disassembly code by gdb is wrong,what is the reason? Tom Frank
2012-05-31 10:43 ` Pedro Alves
2012-06-03  8:49 ` Tom Frank

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).