Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Martin Schuchardt <kruemeltee@gmx.de>
To: gdb@sourceware.org
Subject: remote debugging with gdb
Date: Wed, 10 May 2006 13:25:00 -0000	[thread overview]
Message-ID: <44621DE2.9020702@gmx.de> (raw)

Hello to all,

I have a little "big" problem with remote debugging with gdb. I have the 
following situation: I'm implementing an own operating system with the 
help of c++ and assembler (practice at the University). We're building 
the whole system starting with an output on the Screen.
If we compile the complete system we use make. We've got a Makefile and 
Linker-Skripts. After using "make bootdisk.img" we get a file, named 
bootdisk.img (this one has to be a floppy Image which we could use with 
bochs to emulate our self-written OS). But there are some other files 
too, "system" and "system.img". The First one (system) could be the one 
to debug with gdb. The other one's purpose is completely unknown.

Okay ... now to bochs. I've recompiled bochs with "$ ./configure 
--enable-gdb-stub". I've rearranged the position of bss_base, data_base 
and text_base at the linker skript. Now I added the line
"gdbstub: enabled=1, port=1234, text_base=0x10000, data_base=0x20000, 
bss_base=0x30000" at the bochsrc.txt (the currently used Config file of 
bochs).

now I could start bochs and it stops with the line "waiting for gdb to 
connect". So I startet gdb with the file "system". Everything works 
fine. Now I have to connect gdb with bochs. That's why I'm typing 
"target remote localhost:1234" at the gdb command line.

Now I get the following error message:

(gdb) target remote localhost:1234

Remote debugging using localhost:1234
0x0000fff0 in ?? ()
Reply contains invalid hex digit 78

Does anybody know, why I get this reply? Bochs is still waiting for 
connection on localhost:1234. The complete Programm works fine without 
the debugger. (when I disable the debugger, bochs works fine and seems 
to work corrently.

mfg maddin



             reply	other threads:[~2006-05-10 13:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-10 13:25 Martin Schuchardt [this message]
2006-05-10 13:29 ` Daniel Jacobowitz
2006-05-10 17:53   ` Martin Schuchardt
2006-05-10 18:26     ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44621DE2.9020702@gmx.de \
    --to=kruemeltee@gmx.de \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox