Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* ARM Remote GDB 6.0
@ 2003-11-05 19:30 Chris.Pedley
  2003-11-05 19:38 ` Richard Earnshaw
  2003-11-05 21:32 ` Daniel Jacobowitz
  0 siblings, 2 replies; 3+ messages in thread
From: Chris.Pedley @ 2003-11-05 19:30 UTC (permalink / raw)
  To: gdb

I've just given remote debugging a go with GDB 6.0 in the hope that
multi-threaded remote debugging might now work.  I still can't get it to
work.  I've configured gdb with:
configure --host=i686-linux --build=i686-linux --target=arm-linux

gdbserver has been configured with:
export CC=arm-linux-gcc
configure arm-linux

I get the following trying to run to a breakpoint on a thread called
hello_world:

GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i686-linux --target=arm-linux"...
Setting up the environment for debugging gdb.
.gdbinit:5: Error in sourced command file:
Function "internal_error" not defined.
(gdb) target remote diana:2345
Remote debugging using diana:2345
0x40001780 in ?? ()
(gdb) break hello_world
Breakpoint 1 at 0x85ec: file helloworld.c, line 7.
(gdb) cont
Continuing.

Program received signal SIG32, Real-time event 32.
0x400a4bfc in ?? ()


Most annoyingly of all though, when I quit gdb, gdbserver on the target
side logs me out!

Any ideas what is going on? I'm a bit worried about:
'Function "internal_error" not defined'

Thanks.

--
Chris Pedley,  Graduate Engineer
Intellectual Property Products Division
ARM Ltd, 110 Fulbourn Rd, Cambridge CB1 9NJ UK
Tel : +44 1223 400847     Fax: +44 1223 400410

This e-mail message is intended for the addressee(s) only and may contain
information that is the property of, and/or subject to a confidentiality
agreement between the intended recipient(s), their organisation and/or the
ARM Group of Companies. If you are not an intended recipient of this e-mail
message, you should not read, copy, forward or otherwise distribute or
further disclose the information in it; misuse of the contents of this
e-mail message may violate various laws in your state, country or
jurisdiction. If you have received this e-mail message in error, please
contact the originator of this e-mail message via e-mail and delete all
copies of this message from your computer or network, thank you.





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

* Re: ARM Remote GDB 6.0
  2003-11-05 19:30 ARM Remote GDB 6.0 Chris.Pedley
@ 2003-11-05 19:38 ` Richard Earnshaw
  2003-11-05 21:32 ` Daniel Jacobowitz
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Earnshaw @ 2003-11-05 19:38 UTC (permalink / raw)
  To: Chris.Pedley; +Cc: gdb, Richard.Earnshaw


> 
> Any ideas what is going on? I'm a bit worried about:
> 'Function "internal_error" not defined'
Can't help you on the rest of your problem, but this is nothing to worry 
about.  When gdb starts up it will execute the contents of any .gdbinit 
file in the current directory.  In this case you most likely have a file 
that contains

break internal_error

in it on line 5.  Since the program you are trying to debug here isn't the 
one the script was written for it's trying to set a breakpoint on a 
function that doesn't exist and so generating an error.

R.


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

* Re: ARM Remote GDB 6.0
  2003-11-05 19:30 ARM Remote GDB 6.0 Chris.Pedley
  2003-11-05 19:38 ` Richard Earnshaw
@ 2003-11-05 21:32 ` Daniel Jacobowitz
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel Jacobowitz @ 2003-11-05 21:32 UTC (permalink / raw)
  To: gdb

On Wed, Nov 05, 2003 at 07:30:05PM +0000, Chris.Pedley@arm.com wrote:
> I've just given remote debugging a go with GDB 6.0 in the hope that
> multi-threaded remote debugging might now work.  I still can't get it to
> work.  I've configured gdb with:
> configure --host=i686-linux --build=i686-linux --target=arm-linux
> 
> gdbserver has been configured with:
> export CC=arm-linux-gcc
> configure arm-linux
> 
> I get the following trying to run to a breakpoint on a thread called
> hello_world:
> 
> GNU gdb 6.0
> Copyright 2003 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you
> are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "--host=i686-linux --target=arm-linux"...
> Setting up the environment for debugging gdb.
> .gdbinit:5: Error in sourced command file:
> Function "internal_error" not defined.
> (gdb) target remote diana:2345
> Remote debugging using diana:2345
> 0x40001780 in ?? ()
> (gdb) break hello_world
> Breakpoint 1 at 0x85ec: file helloworld.c, line 7.
> (gdb) cont
> Continuing.
> 
> Program received signal SIG32, Real-time event 32.
> 0x400a4bfc in ?? ()

Please read the archives of this list for more information on what
you're supposed to do to set up remote thread debugging.  You haven't
told GDB where your libraries are.

> Most annoyingly of all though, when I quit gdb, gdbserver on the target
> side logs me out!

I _think_ I fixed this in CVS after 6.0.  I don't remember what the
problem was, though, so I'm not sure.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


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

end of thread, other threads:[~2003-11-05 21:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-05 19:30 ARM Remote GDB 6.0 Chris.Pedley
2003-11-05 19:38 ` Richard Earnshaw
2003-11-05 21:32 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox