# arm-elf-gdb linux.2.0.x GNU gdb 5.0 Copyright 2000 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-pc-linux-gnu --target=arm-elf"... (gdb) target sim Loaded ROM boot.rom Loaded ROM boot.rom Connected to the simulator. (gdb) load Loading section .text, size 0x77b84 vma 0x2000000 Loading section .rodata, size 0x8ddb vma 0x2077b84 Loading section .data, size 0x8fc8 vma 0x2080a60 Start address 0x2000000 Transfer rate: 4507960 bits in <1 sec. (gdb) run Starting program: /home/davidm/work/latest/linux-2.0.x/linux Found an Atmel AT91F40xxx arm7 processor Atmel AT91 series microcontroller support (c) 2000,2001 Lineo Inc. kernel binary is in RAM -- reserving 643k for the kernel Calibrating delay loop.. ok - 13.00 BogoMIPS Memory: 1372k/2048k available (224k kernel code, 0k reserved, 196k data) Swansea University Computer Society NET3.035 for Linux 2.0 NET3: Unix domain sockets 0.13 for Linux NET3.035. Swansea University Computer Society TCP/IP for NET3.034 IP Protocols: ICMP, UDP, TCP Linux version 2.0.39.uc2 (davidm@moby) (gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(-msep-data patches)) 41 Fri Jun 14 10:54:27 EST 2002 Atmel USART driver version 0.99 ttyS0 at 0xfffd0000 (irq = 2) is a builtin Atmel APB USART ttyS1 at 0xfffcc000 (irq = 3) is a builtin Atmel APB USART Ramdisk driver initialized : 16 ramdisks of 4096K size Blkmem copyright 1998,1999 D. Jeff Dionne Blkmem copyright 1998 Kenneth Albanowski Blkmem 1 disk images: 0: 4000000-B4BB07FF (RO) PPP: version 2.3.8 (demand dialling) TCP compression code copyright 1989 Regents of the University of California PPP line discipline registered. PPP MPPE compression registered SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256). CSLIP: code copyright 1989 Regents of the University of California. VFS: Mounted root (romfs filesystem). Shell invoked to run file: /etc/rc Command: hostname GDB-ARMulator Command: /bin/expand /etc/ramfs.img /dev/ram0 Command: mount -t proc proc /proc Command: mount -t ext2 /dev/ram0 /var Command: mkdir /var/tmp Command: mkdir /var/log Command: mkdir /var/run Command: mkdir /var/lock Command: cat /etc/motd Welcome to ____ _ _ / __| ||_| _ _| | | | _ ____ _ _ _ _ | | | | | | || | _ \| | | |\ \/ / | |_| | |__| || | | | | |_| |/ \ | ___\____|_||_|_| |_|\____|\_/\_/ | | |_| GDB/ARMulator support by For further information check: http://www.uclinux.org/ Execution Finished, Exiting Sash command shell (version 1.1.1) /> ls bin dev etc home lib mnt proc sbin tmp usr var /> ps PID PORT STAT SIZE SHARED %CPU COMMAND 1 S 39K 0K 0.0 init 2 S 7K 0K 0.0 kflushd 3 S 7K 0K 0.0 nfsiod 4 S 7K 0K 0.0 nfsiod 5 S 7K 0K 0.0 nfsiod 6 S 7K 0K 0.0 nfsiod 9 S0 R 140K 0K 0.0 /bin/sh /> Program received signal SIGINT, Interrupt. schedule () at sched.c:421 421 switch (prev->state) { (gdb) list 416 /* move an exhausted RR process to be last.. */ 417 if (!prev->counter && prev->policy == SCHED_RR) { 418 prev->counter = prev->priority; 419 move_last_runqueue(prev); 420 } 421 switch (prev->state) { 422 case TASK_INTERRUPTIBLE: 423 if (prev->signal & ~prev->blocked) 424 goto makerunnable; 425 timeout = prev->timeout; (gdb) break do_IRQ Breakpoint 1 at 0x2001e6c: file irq.c, line 207. (gdb) continue Continuing. Breakpoint 1, do_IRQ (irq=34096528, regs=0x20898e0) at irq.c:207 207 { (gdb) next 208 struct irqaction * action = *(irq + irq_action); (gdb) 211 kstat.interrupts[irq]++; (gdb) list 206 asmlinkage void do_IRQ(int irq, struct pt_regs * regs) 207 { 208 struct irqaction * action = *(irq + irq_action); 209 int do_random = 0; 210 211 kstat.interrupts[irq]++; 212 213 while (action) { 214 do_random |= action->flags; 215 action->handler(irq, action->dev_id, regs); (gdb) delete Delete all breakpoints? (y or n) y (gdb) continue Continuing. /> /> ls bin dev etc home lib mnt proc sbin tmp usr var />