public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Re: GDB for powerpc-eabi under cygwin
@ 2000-12-01 13:37 Michael Elizabeth Chastain
  2000-12-04  3:09 ` João Cadamuro Junior
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Elizabeth Chastain @ 2000-12-01 13:37 UTC (permalink / raw)
  To: cadamuro, gdb

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 725 bytes --]

Hello João Cadamuro Junior,

> 1. PowerPC simulator don't work for snapshot 2000-08-16.
> 
> If you compile a simple "Hello Word" for the simulator and try to debug
> it with GDB, you'll be "ejected"...

I ran into the same problem several days ago, and I have analyzed this
bug.  The problem is in sim/ppc/sim_calls.c, functions sim_fetch_register
and sim_store_register.  These functions call the macro REGISTER_NAME,
and a multi-arch change broke REGISTER_NAME in the simulator.

The PowerPC simulator maintainer has sent me a patch to try.  We hope
to fix it in sourceware very soon.

I don't have any help for your other problems, sorry.

Michael Elizabeth Chastain
< mailto:chastain@redhat.com >
"love without fear"

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

* Re: GDB for powerpc-eabi under cygwin
  2000-12-01 13:37 GDB for powerpc-eabi under cygwin Michael Elizabeth Chastain
@ 2000-12-04  3:09 ` João Cadamuro Junior
  0 siblings, 0 replies; 4+ messages in thread
From: João Cadamuro Junior @ 2000-12-04  3:09 UTC (permalink / raw)
  To: Michael Elizabeth Chastain; +Cc: gdb

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 893 bytes --]

Thank you for your informations. About this problem, I'll try some version in
the near future...


Michael Elizabeth Chastain wrote:

> Hello João Cadamuro Junior,
>
> > 1. PowerPC simulator don't work for snapshot 2000-08-16.
> >
> > If you compile a simple "Hello Word" for the simulator and try to debug
> > it with GDB, you'll be "ejected"...
>
> I ran into the same problem several days ago, and I have analyzed this
> bug.  The problem is in sim/ppc/sim_calls.c, functions sim_fetch_register
> and sim_store_register.  These functions call the macro REGISTER_NAME,
> and a multi-arch change broke REGISTER_NAME in the simulator.
>
> The PowerPC simulator maintainer has sent me a patch to try.  We hope
> to fix it in sourceware very soon.
>
> I don't have any help for your other problems, sorry.
>
> Michael Elizabeth Chastain
> < mailto:chastain@redhat.com >
> "love without fear"

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

* Re: GDB for powerpc-eabi under cygwin
  2000-12-01  7:40 João Cadamuro Junior
@ 2000-12-06  3:22 ` João Cadamuro Junior
  0 siblings, 0 replies; 4+ messages in thread
From: João Cadamuro Junior @ 2000-12-06  3:22 UTC (permalink / raw)
  To: gdb

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2346 bytes --]

After "fighting and fighting", I fix the problem in building GDB under cygwin 1.1.6.

Firstly, the problem was cygwin, not GDB. This was discovered when I tried to build the insight-5.0
release and it fail in the same point as 2000-11-30 snapshot.

So, after a number of workarounds without success, I decide to work as a typical Windows user -
remove cygwin and install it all again.

After that, I rebuild all my tools (binutils, cross compiler, libraries and debugger) and ...
works!!! Also the second problem described with breakpoints in the SDS target disappeared (for now
I'm using SDS target for 2 days without seeing the problem again...).

After all, I think I have a corruption in some cygwin upgrade, because since version 1.1.2 I only
upgrade my cygwin installation.

Thank you for all the people who inverst their precious time in taking a look into my problem.
Special thanks to Michael Chastain for the help with the PowerPC simulator, whose problem wasn't
cygwin.

I hope this can help more cygwin users in the future...


Best Regards,

João Cadamuro Junior
LIT / CPDTT / CEFET-PR
URL.: http://www.lit.cpdtt.cefetpr.br


> I have a little questions about debugging powerpc targets and I'll be
> grateful for any help...
>
> I'm using gdb+insight to debug my PowerPC target. The debugger was built
> using option "--target=powerpc-eabi" and under cygwin (Pentium III
> machine with Windows2000 (SP 1) Operating System).
>
> The last successful built for me was 2000-08-16. After this version I
> tryied to build a certain number of snapshots without success.
>
> I have two reasons for build a newer gdb version:
>
> 1. PowerPC simulator don't work for snapshot 2000-08-16.
>
> If you compile a simple "Hello Word" for the simulator and try to debug
> it with GDB, you'll be "ejected"...
>
> 2. Sometimes when the target reports a breakpoint to GDB host with a
> Breakpoint Signal (SDS monitor target...) gdb "eject" me too. The point
> here is that target stop execution, repots the breakpoint signal, and
> GDB crashes receiving this signal. Because this problem is not
> deterministic, I cannot fix it...
>
> With this problems, my last try to build gdb+insight was 2000-11-30
> snapshot, under cygwin-1.1.6 .
>

.............

>
>
> João Cadamuro Junior
> LIT / CPDTT / CEFET-PR
> URL.: http://www.lit.cpdtt.cefetpr.br

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

* GDB for powerpc-eabi under cygwin
@ 2000-12-01  7:40 João Cadamuro Junior
  2000-12-06  3:22 ` João Cadamuro Junior
  0 siblings, 1 reply; 4+ messages in thread
From: João Cadamuro Junior @ 2000-12-01  7:40 UTC (permalink / raw)
  To: gdb

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 6351 bytes --]

Hello GDB,

I have a little questions about debugging powerpc targets and I'll be
grateful for any help...

I'm using gdb+insight to debug my PowerPC target. The debugger was built
using option "--target=powerpc-eabi" and under cygwin (Pentium III
machine with Windows2000 (SP 1) Operating System).

The last successful built for me was 2000-08-16. After this version I
tryied to build a certain number of snapshots without success.

I have two reasons for build a newer gdb version:

1. PowerPC simulator don't work for snapshot 2000-08-16.

If you compile a simple "Hello Word" for the simulator and try to debug
it with GDB, you'll be "ejected"...

2. Sometimes when the target reports a breakpoint to GDB host with a
Breakpoint Signal (SDS monitor target...) gdb "eject" me too. The point
here is that target stop execution, repots the breakpoint signal, and
GDB crashes receiving this signal. Because this problem is not
deterministic, I cannot fix it...

With this problems, my last try to build gdb+insight was 2000-11-30
snapshot, under cygwin-1.1.6 .

Attempting to build it, I get the same errors as reported by earlier
versions, in gdb/gdb directory:

rm -f gdb.exe
gcc -g -O2        -Wl,--subsystem,console -o gdb.exe main.o libgdb.a
../sim/ppc/libsim.a ../bfd/libbfd.a ../readline/libreadline.a
../opcodes/libopcodes.a ./../intl/libintl.a ../libiberty/libiberty.a `if
test -r ../libtermcap/libtermcap.a; then echo
../libtermcap/libtermcap.a; else echo -ltermcap; fi`
../libgui/src/libgui.a -L/tmp/build-ppc/gdb/itcl/itcl/win -litcl30
-L/tmp/build-ppc/gdb/itcl/itk/win -litk30
-L/tmp/build-ppc/gdb/tix/win/tcl8.0 -ltix4180
-L/tmp/build-ppc/gdb/tk/win -ltk80 -L/tmp/build-ppc/gdb/tcl/win
-ltcl80      -lm -lm  ../libiberty/libiberty.a -luser32 -lshell32
-lgdi32 -lcomdlg32 -ladvapi32
../readline/libreadline.a(display.o): In function `rl_redisplay':
/src/gdb/insight+dejagnu-20001130/readline/display.c:695: undefined
reference to `_imp__tputs'
../readline/libreadline.a(display.o): In function `update_line':
/src/gdb/insight+dejagnu-20001130/readline/display.c:952: undefined
reference to `_imp__tputs'
../readline/libreadline.a(display.o): In function
`rl_move_cursor_relative':
/src/gdb/insight+dejagnu-20001130/readline/display.c:1175: undefined
reference to `_imp__tputs'
../readline/libreadline.a(display.o): In function `rl_move_vert':
/src/gdb/insight+dejagnu-20001130/readline/display.c:1225: undefined
reference to `_imp__tputs'
/src/gdb/insight+dejagnu-20001130/readline/display.c:1241: undefined
reference to `_imp__tputs'
../readline/libreadline.a(display.o):/src/gdb/insight+dejagnu-20001130/readline/display.c:1454:
more undefined references to `_imp__tputs' follow
../readline/libreadline.a(display.o): In function `insert_some_chars':
/src/gdb/insight+dejagnu-20001130/readline/display.c:1502: undefined
reference to `_imp__tgoto'
/src/gdb/insight+dejagnu-20001130/readline/display.c:1503: undefined
reference to `_imp__tputs'
/src/gdb/insight+dejagnu-20001130/readline/display.c:1512: undefined
reference to `_imp__tputs'
/src/gdb/insight+dejagnu-20001130/readline/display.c:1519: undefined
reference to `_imp__tputs'
/src/gdb/insight+dejagnu-20001130/readline/display.c:1528: undefined
reference to `_imp__tputs'
../readline/libreadline.a(display.o): In function `delete_chars':
/src/gdb/insight+dejagnu-20001130/readline/display.c:1545: undefined
reference to `_imp__tgoto'
/src/gdb/insight+dejagnu-20001130/readline/display.c:1546: undefined
reference to `_imp__tputs'
/src/gdb/insight+dejagnu-20001130/readline/display.c:1552: undefined
reference to `_imp__tputs'
../readline/libreadline.a(display.o): In function `cr':
/src/gdb/insight+dejagnu-20001130/readline/display.c:1600: undefined
reference to `_imp__tputs'
../readline/libreadline.a(display.o): In function
`rl_redisplay_after_sigwinch':
/src/gdb/insight+dejagnu-20001130/readline/display.c:1650: undefined
reference to `_imp__tputs'
/src/gdb/insight+dejagnu-20001130/readline/display.c:1658: undefined
reference to `_imp__tputs'
../readline/libreadline.a(display.o):/src/gdb/insight+dejagnu-20001130/readline/display.c:1662:
more undefined references to `_imp__tputs' follow
../readline/libreadline.a(terminal.o): In function `rl_get_screen_size':

/src/gdb/insight+dejagnu-20001130/readline/terminal.c:199: undefined
reference to `_imp__tgetnum'
/src/gdb/insight+dejagnu-20001130/readline/terminal.c:215: undefined
reference to `_imp__tgetnum'
../readline/libreadline.a(terminal.o): In function
`get_term_capabilities':
/src/gdb/insight+dejagnu-20001130/readline/terminal.c:309: undefined
reference to `_imp__tgetstr'
../readline/libreadline.a(terminal.o): In function
`rl_init_terminal_io':
/src/gdb/insight+dejagnu-20001130/readline/terminal.c:360: undefined
reference to `_imp__tgetent'
/src/gdb/insight+dejagnu-20001130/readline/terminal.c:419: undefined
reference to `_imp__tgetflag'
/src/gdb/insight+dejagnu-20001130/readline/terminal.c:419: undefined
reference to `_imp__tgetflag'
/src/gdb/insight+dejagnu-20001130/readline/terminal.c:431: undefined
reference to `_imp__tgetflag'
/src/gdb/insight+dejagnu-20001130/readline/terminal.c:431: undefined
reference to `_imp__tgetflag'
../readline/libreadline.a(terminal.o): In function `rl_backspace':
/src/gdb/insight+dejagnu-20001130/readline/terminal.c:528: undefined
reference to `_imp__tputs'
../readline/libreadline.a(terminal.o): In function `ding':
/src/gdb/insight+dejagnu-20001130/readline/terminal.c:566: undefined
reference to `_imp__tputs'
../readline/libreadline.a(terminal.o): In function `rl_enable_meta_key':

/src/gdb/insight+dejagnu-20001130/readline/terminal.c:592: undefined
reference to `_imp__tputs'
../readline/libreadline.a(terminal.o): In function `rl_control_keypad':
/src/gdb/insight+dejagnu-20001130/readline/terminal.c:602: undefined
reference to `_imp__tputs'
/src/gdb/insight+dejagnu-20001130/readline/terminal.c:604: undefined
reference to `_imp__tputs'
collect2: ld returned 1 exit status
make[1]: *** [gdb.exe] Error 1
make[1]: Leaving directory `/tmp/build-ppc/gdb/gdb'
make: *** [all-gdb] Error 2
make: Leaving directory `/tmp/build-ppc/gdb'


Someone has some suggestion to build a newer version, or what's the
problem with my old debugger snapshot version???


Thanks in advance,

João Cadamuro Junior
LIT / CPDTT / CEFET-PR
URL.: http://www.lit.cpdtt.cefetpr.br

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

end of thread, other threads:[~2000-12-06  3:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-01 13:37 GDB for powerpc-eabi under cygwin Michael Elizabeth Chastain
2000-12-04  3:09 ` João Cadamuro Junior
  -- strict thread matches above, loose matches on Subject: below --
2000-12-01  7:40 João Cadamuro Junior
2000-12-06  3:22 ` João Cadamuro Junior

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).