hi, i've been trying to get remote debugging working but am running
into problems. i hope someone can recognize what i'm doing wrong since
i'm at a loss.
i followed kwonsk's directions, as best i could. i'm using a recently
received uclinux cd with the following rpm's installed:
i ran into my first problem here where my particular version of this
file does not contain this code:
> 1.3 Patch the kernel for Trap #1 support(breakpoint)
> patch linux/arch/m68knommu/kernel/traps.c
> about line 210?
> add new vector like this
> _ramvec = trap15;
> _ramvec = trap33; <---- added line
> this trap33 is #if 0ed below
also, my version already contained this particular patch:
> delete the line that treat Trap #1 as a Illeagal Instructin Signal
> about line 485?
> case VEC_TRAP1: ----> delete this
> add new VEC_TRAP1 case statement before defalut case
> about line 530?
> case VEC_TRAP1:
> /* kwonsk: is this right? */
> fp->ptregs.pc -= 2;
> sig = SIGTRAP;
> sig = SIGILL;
so i skipped these steps. i recompiled the kernel anyway, installed
it, and continued following the directions.
i swear, i thought i successfully stopped at a breakpoint once, but
the next 'c' command failed. however, after that one so-called
success, i see this same result repeatedly below. i don't understand
the code yet, and esp. not sure where traps are redefined.
please let me know if the problem is obvious to anyone. thanks!
*** START ***
$ ./gdb test3.coff
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
welcome to change it and/or distribute copies of it under certain
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
This GDB was configured as "--host=i586-pc-linux-gnu
(gdb) target remote 192.168.0.1:3000
Remote debugging using 192.168.0.1:3000
0x780058 in text_start ()
2 main(int argc, char * argv)
4 int test = 100;
5 printf("test => %d\n", test);
7 printf("test => %d\n", test);
9 printf("test => %d\n", test);
(gdb) b 4
Breakpoint 1 at 0x78009c: file test3.c, line 4.
Program exited with code 012.
uCsimm login: asdf
# cd /var
# cp /usr/prod/src/test3 .
test => 100
test => 101
test => 102
test => 103
test => 104
# /usr/prod/src/gdbserver :3000 test3
Process test3 created; pid = 21
code at 780058, data at 77a018
Remote debugging using :3000
PC[0078009e] SSP[007cfff8] USP[0077b560] BootstrapSP[0001ffb6]
D0 D1 D2 D3 D4 D5 D6 D7
00000000 ffffffff 00758a70 00758a78 007d0460 0077b580 00000000
A0 A1 A2 A3 A4 A5 A6
0077a0d8 0077a588 00758a70 00758a68 10c9417d 0077a018 0077b564
test => -1
test => 0
test => 1
test => 2
test => 3
Child exited with retcode = a
Child exited with status 0
*** END ***
This message resent by the email@example.com list server http://www.uClinux.com/
This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:38 EST