Who's Online
144 user(s) are online (
122 user(s) are browsing
Forums )
Members: 1
Guests: 143
rwo ,
more...
Topic options
View mode
Newest First
Re: GDB
Posted on:
2021/3/22 20:09
#141
Home away from home
Joined: 2007/9/11 12:31Last Login
: Yesterday 8:41
From Russia
Group:
Registered Users
@billyfish
Tried your new commit: just crashes in amigaos_deprecated_xfer_memory() once I set breakpoint and execute test binary :) There is the full log from serial:
< amigaos_init >
</ amigaos_init >
< _initialize_amigaos_nat >
< init_amigaos_ops >
</ init_amigaos_ops >
</ _initialize_amigaos_nat >
< amigaos_can_run >
</ amigaos_can_run >
< amigaos_can_run >
</ amigaos_can_run >
< amigaos_create_inferior >
Shell Process : Creating inferior process : exec_file = / Work / aa / test , args = , env = 0x614C07B0 , from_tty = 1
< AllocateDebugInfo >
</ AllocateDebugInfo >
< Ux2DOS >
</ Ux2DOS >
Shell Process : Getting elf handle for seglist 0x185DAC75
Shell Process : Process created : 0x61A26490
Shell Process : Task : 0x61A26490
Shell Process : Suspending Task
Shell Process : Adding debug hook from 0x61A26490
Shell Process : Added debug hook for 0x61A26490
Shell Process : amigaos target_pushed_count 0
Shell Process : pushing amigaos target
Shell Process : add_thread 1633806608 inf 0x614C0728
</ amigaos_create_inferior >
< amigaos_terminal_ours >
Shell Process : terminal_ours is a STUB
</ amigaos_terminal_ours >
< amigaos_fetch_registers >
Shell Process : inferior_ptid = 0x6161E868
Shell Process : regno = 64 ( pc )
Shell Process : context = 0x6163BFC8 , sp = 0 , pc = 0 , lr = 0
</ amigaos_fetch_registers >
< amigaos_has_execution >
</ amigaos_has_execution >
< amigaos_has_registers >
</ amigaos_has_registers >
< amigaos_has_stack >
</ amigaos_has_stack >
< amigaos_has_memory >
</ amigaos_has_memory >
< amigaos_has_registers >
</ amigaos_has_registers >
< amigaos_has_stack >
</ amigaos_has_stack >
< amigaos_has_memory >
</ amigaos_has_memory >
< amigaos_deprecated_xfer_memory >
Shell Process : amigaos_xfer_memory ( memaddr = 0x010004D4 , myaddr = 0x6161E2F8 , len = 4 , write = 0 , attrib = 0x00000000 , target = 0x61626A4C )
kernel 54.34 ( 5.2.2021 ) AmigaOne X5000 release
Machine model : 9 ( AmigaOne X5000 / 20 )
Dump of context at 0xEFC717C0
Trap type : DSI exception
DSISR : 00000000 DAR : 010004D4
No matching page found
Machine State ( raw ): 0x0002F030
Machine State ( verbose ): [ Critical Ints on ] [ ExtInt on ] [ User ] [ IAT on ] [ DAT on ]
Instruction pointer : in module kernel + 0x00041A70 ( 0x01841A70 )
Crashed process : gdb_751 ( 0x61A29D80 )
DSI verbose error description : Access to address 0x010004D4 not allowed by page protection in user state ( protection violation )
Access was a load operation
Exception Syndrome Register : 0x00000000
0 : 01A65794 6161E120 00000002 6161E2F8 010004D4 00000004 00000004 00000004
8 : 010004D0 00000001 6161E2F4 01A65764 00000794 6162CEC8 61620000 00000001
16 : 00000000 61602838 61620000 61620000 614C0728 01846030 61626A4C 00000000
24 : 6161E2F8 00000004 0224A968 00000000 614CBE14 010004D4 614CA750 6161E2F8
CR : 37555935 XER : A000007E CTR : 00000001 LR : 01841 BD4
Disassembly of crash site :
01841 A60 : 3943FFFC subi r10 , r3 , 4
01841 A64 : 5529F0BE rlwinm r9 , r9 , 30 , 2 , 31
01841 A68 : 39290001 addi r9 , r9 , 1
01841 A6C : 7D2903A6 mtctr r9
>01841 A70 : 85280004 lwzu r9 , 4 ( r8 )
01841 A74 : 952A0004 stwu r9 , 4 ( r10 )
01841 A78 : 4200FFF8 bdnz + 0x1841A70
01841 A7C : 54A507BE rlwinm r5 , r5 , 0 , 30 , 31
01841 A80 : 7C843A14 add r4 , r4 , r7
01841 A84 : 2F850000 cmpwi cr7 , r5 , 0
msr : 0x0002B032
TLB1 ( 64 entries ):
* [ 51 ]: size = 7 tid = 0 TS = 1 epn = 0xFE000000 rpn = 0x0000000F_FE000000 WIMG = 0x5 XXWWRR = 0xF protected
* [ 52 ]: size = 6 tid = 0 TS = 1 epn = 0x01000000 rpn = 0x00000000_01000000 WIMG = 0x0 XXWWRR = 0x5 protected
* [ 53 ]: size = 6 tid = 0 TS = 1 epn = 0x01400000 rpn = 0x00000000_01400000 WIMG = 0x0 XXWWRR = 0x5 protected
* [ 54 ]: size = 6 tid = 0 TS = 1 epn = 0x01800000 rpn = 0x00000000_01800000 WIMG = 0x0 XXWWRR = 0x33 protected
* [ 55 ]: size = 6 tid = 0 TS = 1 epn = 0x01C00000 rpn = 0x00000000_01C00000 WIMG = 0x0 XXWWRR = 0x33 protected
* [ 56 ]: size = 6 tid = 0 TS = 1 epn = 0x02000000 rpn = 0x00000000_02000000 WIMG = 0x0 XXWWRR = 0xF protected
* [ 57 ]: size = 4 tid = 0 TS = 1 epn = 0x02400000 rpn = 0x00000000_02400000 WIMG = 0x0 XXWWRR = 0xF protected
* [ 58 ]: size = 3 tid = 0 TS = 1 epn = 0x02440000 rpn = 0x00000000_02440000 WIMG = 0x0 XXWWRR = 0xF protected
* [ 59 ]: size = 3 tid = 0 TS = 1 epn = 0x02450000 rpn = 0x00000000_02450000 WIMG = 0x0 XXWWRR = 0xF protected
* [ 60 ]: size = 3 tid = 0 TS = 1 epn = 0x02460000 rpn = 0x00000000_02460000 WIMG = 0x0 XXWWRR = 0xF protected
* [ 61 ]: size = 7 tid = 0 TS = 0 epn = 0xFE000000 rpn = 0x0000000F_FE000000 WIMG = 0x5 XXWWRR = 0xF protected
* [ 62 ]: size = A tid = 0 TS = 0 epn = 0x00000000 rpn = 0x00000000_00000000 WIMG = 0x0 XXWWRR = 0x3F protected
* [ 63 ]: size = A tid = 0 TS = 0 epn = 0x40000000 rpn = 0x00000000_40000000 WIMG = 0x0 XXWWRR = 0x3F protected
HAL_MaxTLB = 50 , HAL_NextTLB = 0
MMUCFG = 0x064809C4
mas0 = 0x103F0000
mas1 = 0xC0000A00
mas2 = 0x40000000
mas3 = 0x4000003F
mas4 = 0x00000100
mas5 = 0x00000000
mas6 = 0x00000001
mas7 = 0x00000000
mas8 = 0x00000000
Kernel command line : serial munge debuglevel = 1
Registers pointing to code :
r0 : native kernel module newlib . library . kmod + 0x00008fb4
r9 : module Work : aa / test at 0x00000001 ( section 0 @ 0xFFFFFFDC )
r11 : native kernel module newlib . library . kmod + 0x00008f84
r13 : gdb_751 : symbuf ()+ 0x3d5c ( section 16 @ 0x753C )
r14 : gdb_751 : mi_cmds ()+ 0x4a0 ( section 11 @ 0xFE4 )
r15 : module Work : aa / test at 0x00000001 ( section 0 @ 0xFFFFFFDC )
r18 : gdb_751 : mi_cmds ()+ 0x4a0 ( section 11 @ 0xFE4 )
r19 : gdb_751 : mi_cmds ()+ 0x4a0 ( section 11 @ 0xFE4 )
r21 : native kernel module kernel + 0x00046030
r22 : gdb_751 : amigaos_ops ()+ 0x0 ( section 16 @ 0x10C0 )
r26 : native kernel module kernel + 0x00a4a968
r28 : module gdb_751 at 0x614CBE14 ( section 1 @ 0x4DF0 )
r30 : gdb_751 : __PRETTY_FUNCTION__.26807 ()+ 0x0 ( section 3 @ 0x374C )
ip : native kernel module kernel + 0x00041a70
lr : native kernel module kernel + 0x00041bd4
ctr : module Work : aa / test at 0x00000001 ( section 0 @ 0xFFFFFFDC )
Stack trace :
( 0x6161E120 ) native kernel module kernel + 0x00041a70
( 0x6161E130 ) native kernel module kernel + 0x00041bd4
( 0x6161E140 ) gdb_751 : amigaos_deprecated_xfer_memory ()+ 0x2c4 ( section 1 @ 0x27F30 )
( 0x6161E190 ) gdb_751 : default_xfer_partial ()+ 0x128 ( section 1 @ 0x13AEAC )
( 0x6161E1C0 ) gdb_751 : memory_xfer_partial_1 ()+ 0x1a8 ( section 1 @ 0x13C89C )
( 0x6161E240 ) gdb_751 : target_xfer_partial ()+ 0x230 ( section 1 @ 0x13CFDC )
( 0x6161E290 ) gdb_751 : target_read ()+ 0xc8 ( section 1 @ 0x13C2D4 )
( 0x6161E2E0 ) gdb_751 : target_read_memory ()+ 0x44 ( section 1 @ 0x13C41C )
( 0x6161E2F0 ) gdb_751 : rs6000_skip_main_prologue ()+ 0x30 ( section 1 @ 0x2CF0 )
( 0x6161E320 ) gdb_751 : skip_prologue_sal ()+ 0x418 ( section 1 @ 0xDEAA8 )
( 0x6161E3A0 ) gdb_751 : convert_linespec_to_sals ()+ 0xa58 ( section 1 @ 0xEEEEC )
( 0x6161E480 ) gdb_751 : parse_linespec ()+ 0x314 ( section 1 @ 0xF1244 )
( 0x6161E5F0 ) gdb_751 : decode_line_full ()+ 0x140 ( section 1 @ 0xF1CC8 )
( 0x6161E6D0 ) gdb_751 : decode_linespec_default . isra.49 ()+ 0x50 ( section 1 @ 0x98A20 )
( 0x6161E700 ) gdb_751 : addr_string_to_sals ()+ 0x9c ( section 1 @ 0xA5AF8 )
( 0x6161E830 ) gdb_751 : breakpoint_re_set_default ()+ 0x40 ( section 1 @ 0xA8A88 )
( 0x6161E880 ) gdb_751 : breakpoint_re_set_one ()+ 0x58 ( section 1 @ 0x9457C )
( 0x6161E890 ) gdb_751 : catch_errors ()+ 0x74 ( section 1 @ 0x111F4C )
( 0x6161E8F0 ) gdb_751 : breakpoint_re_set ()+ 0xbc ( section 1 @ 0xA8C40 )
( 0x6161E930 ) gdb_751 : post_create_inferior ()+ 0xec ( section 1 @ 0xF7B00 )
( 0x6161E980 ) gdb_751 : run_command_1 ()+ 0x194 ( section 1 @ 0xF82B4 )
( 0x6161E9E0 ) gdb_751 : execute_command ()+ 0x278 ( section 1 @ 0x1D8EF8 )
( 0x6161EA20 ) gdb_751 : command_handler ()+ 0x84 ( section 1 @ 0x11AF54 )
( 0x6161EA40 ) gdb_751 : command_line_handler ()+ 0x464 ( section 1 @ 0x11B608 )
( 0x6161EA90 ) gdb_751 : rl_callback_read_char ()+ 0x1a8 ( section 1 @ 0x226D58 )
( 0x6161EAD0 ) gdb_751 : rl_callback_read_char_wrapper ()+ 0x10 ( section 1 @ 0x11AFD0 )
( 0x6161EAE0 ) gdb_751 : process_event ()+ 0xb8 ( section 1 @ 0x1198B0 )
( 0x6161EB00 ) gdb_751 : gdb_do_one_event ()+ 0x3a4 ( section 1 @ 0x119D3C )
( 0x6161EB40 ) gdb_751 : start_event_loop ()+ 0x40 ( section 1 @ 0x119F0C )
( 0x6161EB80 ) gdb_751 : captured_command_loop ()+ 0x1c ( section 1 @ 0x1136D4 )
( 0x6161EB90 ) gdb_751 : catch_errors ()+ 0x74 ( section 1 @ 0x111F4C )
( 0x6161EBF0 ) gdb_751 : captured_main ()+ 0xcb4 ( section 1 @ 0x1146F4 )
( 0x6161EC80 ) gdb_751 : catch_errors ()+ 0x74 ( section 1 @ 0x111F4C )
( 0x6161ECE0 ) gdb_751 : gdb_main ()+ 0x34 ( section 1 @ 0x1148A8 )
( 0x6161ECF0 ) gdb_751 : main ()+ 0x30 ( section 1 @ 0x478 )
( 0x6161ED10 ) native kernel module newlib . library . kmod + 0x00002614
( 0x6161ED60 ) native kernel module newlib . library . kmod + 0x00003340
( 0x6161EF10 ) native kernel module newlib . library . kmod + 0x00003864
( 0x6161EF40 ) gdb_751 : _start ()+ 0x1e0 ( section 1 @ 0x1DC )
( 0x6161EF90 ) native kernel module dos . library . kmod + 0x0002a490
( 0x6161EFC0 ) native kernel module kernel + 0x0005c6c8
( 0x6161EFD0 ) native kernel module kernel + 0x0005c740
Disassembly of crash site :
01841 A60 : 3943FFFC subi r10 , r3 , 4
01841 A64 : 5529F0BE rlwinm r9 , r9 , 30 , 2 , 31
01841 A68 : 39290001 addi r9 , r9 , 1
01841 A6C : 7D2903A6 mtctr r9
>01841 A70 : 85280004 lwzu r9 , 4 ( r8 )
01841 A74 : 952A0004 stwu r9 , 4 ( r10 )
01841 A78 : 4200FFF8 bdnz + 0x1841A70
01841 A7C : 54A507BE rlwinm r5 , r5 , 0 , 30 , 31
01841 A80 : 7C843A14 add r4 , r4 , r7
01841 A84 : 2F850000 cmpwi cr7 , r5 , 0
Stack pointer ( 0x6161E120 ) is inside bounds
Redzone is OK ( 4 )
68k register dump
DATA : 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
ADDR : 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Page information :
Page not found
Ready Tasks
IDF0 / FastFileSystem 53.2 ( pri 5 , sigrec 0x20000000 , sigwait 0xA8000100 , masked 0x20000000 )
IDF1 / FastFileSystem 53.2 ( pri 5 , sigrec 0x20000000 , sigwait 0xA8000100 , masked 0x20000000 )
WinFrame 1 Process ( pri 5 , sigrec 0x00800000 , sigwait 0xFF800000 , masked 0x00800000 )
compose . task ( pri 1 , sigrec 0x00000010 , sigwait 0x00000010 , masked 0x00000010 )
Workbench ( pri 1 , sigrec 0x80000100 , sigwait 0x80000000 , masked 0x80000000 )
ScreenBlanker Library . ( pri 1 , sigrec 0x08000100 , sigwait 0xE8001000 , masked 0x08000000 )
dopus_clock ( pri 1 , sigrec 0x40000000 , sigwait 0xC0000000 , masked 0x40000000 )
AmiDock ( pri 0 , sigrec 0x00300100 , sigwait 0x00000100 , masked 0x00000100 )
NotificationServer ( pri 0 , sigrec 0x08000000 , sigwait 0xF8001000 , masked 0x08000000 )
TCP / IP Control ( pri 0 , sigrec 0x40000100 , sigwait 0xF8009080 , masked 0x40000000 )
ELF Collector ( pri 0 , sigrec 0x00000100 , sigwait 0x00000100 , masked 0x00000100 )
hub . usbfd ( pri 0 , sigrec 0x10000000 , sigwait 0x30000000 , masked 0x10000000 )
hub . usbfd ( pri 0 , sigrec 0x10000000 , sigwait 0x30000000 , masked 0x10000000 )
CPUDock_idleTask ( pri - 127 , sigrec 0x00000000 , sigwait 0x40000000 , masked 0x00000000 )
idle . task ( pri - 128 , sigrec 0x00000000 , sigwait 0x00000000 , masked 0x00000000 )
Waiting Tasks
DH1 / NGFileSystem 54.72 ( pri 10 , sigrec 0x00000100 , sigwait 0xF0000000 , masked 0x00000000 )
DH0 / NGFileSystem 54.72 ( pri 10 , sigrec 0x00000100 , sigwait 0xF0000000 , masked 0x00000000 )
DH4 / NGFileSystem 54.72 ( pri 10 , sigrec 0x00000100 , sigwait 0xF0000000 , masked 0x00000000 )
input . device ( pri 20 , sigrec 0x00000000 , sigwait 0x80000000 , masked 0x00000000 )
rx_pm ( pri 100 , sigrec 0x00000000 , sigwait 0x80000001 , masked 0x00000000 )
USB stack ( pri 18 , sigrec 0x00000000 , sigwait 0xF800D000 , masked 0x00000000 )
CON / con - handler 53.82 ( pri 5 , sigrec 0x00000000 , sigwait 0xB0000100 , masked 0x00000000 )
appdir envarc manager ( pri - 50 , sigrec 0x00000000 , sigwait 0x00000100 , masked 0x00000000 )
hid . usbfd ( pri 10 , sigrec 0x00000100 , sigwait 0xE0000000 , masked 0x00000000 )
HID Keyboard ( pri 10 , sigrec 0x00000000 , sigwait 0x90001000 , masked 0x00000000 )
vsata disk changer ( pri 0 , sigrec 0x00000000 , sigwait 0x80000000 , masked 0x00000000 )
serial . device ( pri 1 , sigrec 0x00000000 , sigwait 0x7E000000 , masked 0x00000000 )
ICD1 / CDFileSystem 53.8 ( pri 10 , sigrec 0x00000000 , sigwait 0x00000100 , masked 0x00000000 )
ICD0 / CDFileSystem 53.8 ( pri 10 , sigrec 0x00000000 , sigwait 0x00000100 , masked 0x00000000 )
DH2 / SmartFilesystem 1.293 ( pri 11 , sigrec 0x00000000 , sigwait 0x00000100 , masked 0x00000000 )
DH3 / SmartFilesystem 1.293 ( pri 11 , sigrec 0x00000000 , sigwait 0x00000100 , masked 0x00000000 )
p50x0sata . device Port 0 ( pri 12 , sigrec 0x10000000 , sigwait 0xC0007000 , masked 0x00000000 )
dos_signal_server ( pri - 5 , sigrec 0x00000000 , sigwait 0x0000F000 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
X - Dock ( pri 0 , sigrec 0x00000100 , sigwait 0xFE001000 , masked 0x00000000 )
hid . usbfd ( pri 10 , sigrec 0x00000100 , sigwait 0xE0000000 , masked 0x00000000 )
HID Mouse ( pri 10 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
URL / launch - handler 53.39 ( pri 5 , sigrec 0x00000100 , sigwait 0x80000000 , masked 0x00000000 )
TEXTCLIP / textclip - handler 53.4 ( pri 3 , sigrec 0x00000100 , sigwait 0x80000000 , masked 0x00000000 )
RANDOM / Random - Handler 52.1 ( pri 5 , sigrec 0x00000000 , sigwait 0x00000100 , masked 0x00000000 )
P50x0 Ethernet ( pri 20 , sigrec 0x00000000 , sigwait 0x00001000 , masked 0x00000000 )
Background CLI ( pri 0 , sigrec 0x00000100 , sigwait 0x10001080 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
CON / con - handler 53.82 ( pri 5 , sigrec 0x00000000 , sigwait 0xB0000100 , masked 0x00000000 )
Mounter Task ( pri - 1 , sigrec 0x00000000 , sigwait 0xB0001000 , masked 0x00000000 )
Mounter GUI ( pri 0 , sigrec 0x00000000 , sigwait 0x80007000 , masked 0x00000000 )
Mounter Companion Process ( pri - 1 , sigrec 0x00000000 , sigwait 0x80003000 , masked 0x00000000 )
Workbench DosList Notify ( pri 1 , sigrec 0x00000100 , sigwait 0x00003000 , masked 0x00000000 )
dos_filedir_notify ( pri 5 , sigrec 0x80000000 , sigwait 0x40001000 , masked 0x00000000 )
Background CLI ( pri 0 , sigrec 0x00000100 , sigwait 0x80000000 , masked 0x00000000 )
DH2 / SmartFilesystem 1.293 ( pri 10 , sigrec 0x00000000 , sigwait 0xE0000100 , masked 0x00000000 )
DH3 / SmartFilesystem 1.293 ( pri 10 , sigrec 0x00000000 , sigwait 0xE0000100 , masked 0x00000000 )
RexxMaster ( pri 4 , sigrec 0x00000100 , sigwait 0xC0000000 , masked 0x00000000 )
ContextMenus ( pri 0 , sigrec 0x00000000 , sigwait 0xE0001000 , masked 0x00000000 )
ramlib . support ( pri - 2 , sigrec 0x00000000 , sigwait 0x80005000 , masked 0x00000000 )
ramlib ( pri 1 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
ContextMenus Command Dispatcher ( pri 1 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x80000010 , masked 0x00000000 )
KeymapSwitcher . docky ( pri 0 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
TCP / IP Configuration ( pri 0 , sigrec 0x00000100 , sigwait 0xF8003000 , masked 0x00000000 )
AsyncWB ( pri 0 , sigrec 0x00000100 , sigwait 0xC0001000 , masked 0x00000000 )
select . gadget prefs ( pri 0 , sigrec 0x00000100 , sigwait 0x80001000 , masked 0x00000000 )
RAWBInfo ( pri 0 , sigrec 0x00000100 , sigwait 0x80001000 , masked 0x00000000 )
texteditor . gadget Clipboard Server ( pri 1 , sigrec 0x00000100 , sigwait 0x80000000 , masked 0x00000000 )
FKey ( pri 0 , sigrec 0x00000100 , sigwait 0xC000D000 , masked 0x00000000 )
CON / con - handler 53.82 ( pri 5 , sigrec 0x00000000 , sigwait 0xA0000100 , masked 0x00000000 )
CON / con - handler 53.82 ( pri 5 , sigrec 0x00000000 , sigwait 0xA0000100 , masked 0x00000000 )
ClickToFront ( pri 21 , sigrec 0x00000100 , sigwait 0xE000D000 , masked 0x00000000 )
CON / con - handler 53.82 ( pri 5 , sigrec 0x00000000 , sigwait 0xA0000100 , masked 0x00000000 )
DefIcons ( pri 0 , sigrec 0x00000100 , sigwait 0x80009000 , masked 0x00000000 )
CON / con - handler 53.82 ( pri 5 , sigrec 0x00000000 , sigwait 0xA0000100 , masked 0x00000000 )
CON / con - handler 53.82 ( pri 5 , sigrec 0x00000000 , sigwait 0xA0000100 , masked 0x00000000 )
Workbench Clipboard Server ( pri 1 , sigrec 0x00000100 , sigwait 0x80000000 , masked 0x00000000 )
Background CLI ( pri 0 , sigrec 0x00000100 , sigwait 0x54009000 , masked 0x00000000 )
application . library messageserver ( pri 0 , sigrec 0x00000000 , sigwait 0xC0000000 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x80000000 , sigwait 0x00000010 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
TCP / IP Superserver ( pri 0 , sigrec 0x00000100 , sigwait 0xD0000080 , masked 0x00000000 )
TCP / IP Log ( pri 0 , sigrec 0x00000000 , sigwait 0x80003000 , masked 0x00000000 )
dopus_arbiter ( pri 0 , sigrec 0x00000000 , sigwait 0x00000100 , masked 0x00000000 )
dopus_hotkeez ( pri 1 , sigrec 0x00000000 , sigwait 0xC0000000 , masked 0x00000000 )
▒ IPrefs ▒ ( pri 0 , sigrec 0x00000000 , sigwait 0x0000F000 , masked 0x00000000 )
hid . usbfd ( pri 10 , sigrec 0x00000100 , sigwait 0xE0000000 , masked 0x00000000 )
HID Consumer ( pri 10 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
ConClip ( pri 0 , sigrec 0x00000000 , sigwait 0x80000000 , masked 0x00000000 )
HID Consumer ( pri 10 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
diskimage . device unit 1 ( pri 4 , sigrec 0x00000100 , sigwait 0xC0000000 , masked 0x00000000 )
diskimage . device unit 0 ( pri 4 , sigrec 0x00000100 , sigwait 0xC0000000 , masked 0x00000000 )
diskimage . device unit 5 ( pri 4 , sigrec 0x00000100 , sigwait 0xC0000000 , masked 0x00000000 )
diskimage . device unit 4 ( pri 4 , sigrec 0x00000100 , sigwait 0xC0000000 , masked 0x00000000 )
HID Consumer ( pri 10 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
HID Keyboard ( pri 10 , sigrec 0x00000000 , sigwait 0x90001000 , masked 0x00000000 )
hid . usbfd ( pri 10 , sigrec 0x00000100 , sigwait 0xE0000000 , masked 0x00000000 )
hid . usbfd ( pri 10 , sigrec 0x00000100 , sigwait 0xE0000000 , masked 0x00000000 )
AUDIO / AHI - Handler 6.2 ( pri 5 , sigrec 0x00000000 , sigwait 0x00000100 , masked 0x00000000 )
APPDIR / appdir - handler 54.18 ( pri 5 , sigrec 0x00000100 , sigwait 0x80000000 , masked 0x00000000 )
USB stack Process ( pri 0 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
MassStorage Notifier ( pri 0 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
DST watcher ( pri 0 , sigrec 0x00000000 , sigwait 0xC0000000 , masked 0x00000000 )
NotifyA Server ( pri 1 , sigrec 0x00000000 , sigwait 0xE8001000 , masked 0x00000000 )
string . gadget server ( pri 1 , sigrec 0x00000100 , sigwait 0x40000000 , masked 0x00000000 )
datatypes . library ( pri 1 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
RAM / ram - handler 54.24 ( pri 10 , sigrec 0x00000100 , sigwait 0x80000000 , masked 0x00000000 )
ENV / env - handler 54.18 ( pri 5 , sigrec 0x00000100 , sigwait 0x80000000 , masked 0x00000000 )
CON / con - handler 53.82 ( pri 5 , sigrec 0x00000000 , sigwait 0xA0000100 , masked 0x00000000 )
RAW / con - handler 53.82 ( pri 5 , sigrec 0x00000000 , sigwait 0xA0000100 , masked 0x00000000 )
CON / con - handler 53.82 ( pri 5 , sigrec 0x00000000 , sigwait 0xA0000100 , masked 0x00000000 )
SFS DosList handler ( pri 19 , sigrec 0x00000000 , sigwait 0x80000000 , masked 0x00000000 )
dos_nbmd_process ( pri 5 , sigrec 0x00000000 , sigwait 0x00001100 , masked 0x00000000 )
dos_lock_handler ( pri 5 , sigrec 0x00000000 , sigwait 0x00001100 , masked 0x00000000 )
hub . usbfd ( pri 0 , sigrec 0x00000000 , sigwait 0x30000000 , masked 0x00000000 )
hub . usbfd ( pri 0 , sigrec 0x00000000 , sigwait 0x30000000 , masked 0x00000000 )
p50x0sata . device Port 1 ( pri 12 , sigrec 0x00000000 , sigwait 0xC0007000 , masked 0x00000000 )
DMA2 Channel 4 Handler ( pri 0 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
DMA1 Channel 4 Handler ( pri 0 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
DMA2 Channel 3 Handler ( pri 0 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
DMA1 Channel 3 Handler ( pri 0 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
DMA2 Channel 2 Handler ( pri 0 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
DMA1 Channel 2 Handler ( pri 0 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
DMA2 Channel 1 Handler ( pri 0 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
DMA1 Channel 1 Handler ( pri 0 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
Exec Command and Control ( pri 30 , sigrec 0x00000000 , sigwait 0x80000000 , masked 0x00000000 )
rx_gc ( pri 100 , sigrec 0x00000000 , sigwait 0x80000001 , masked 0x00000000 )
Suspended Tasks
/ Work / aa / test ( pri 0 , sigrec 0x00000000 , sigwait 0x00000000 , masked 0x00000000 )
Re: GDB
Posted on:
2021/3/22 21:33
#142
Just can't stay away
Joined: 2007/2/6 13:57Last Login
: Yesterday 12:00
From Donostia (SPAIN)
Group:
Registered Users
(re)cloned billyfish gdb repo, did a full recompile and now at least works
#SDK:C/gdb helloworld
_initialize_amigaos_nat
[New inferior 0]
GNU gdb (GDB) 7.5.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <
http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "ppc-amigaos".
For bug reporting instructions, please see:
<
http://www.gnu.org/software/gdb/bugs/> ...
Reading symbols from /Devel/SDK/ejemplos/helloworld...done.
(gdb) list
list
target_memory_map ()
target_get_section_table ()
target_get_section_table () for exec
exec:target_xfer_partial (2, (null), 0x5b687498, 0x0, 0x10004d4, 4) = 4, bytes = 3d 20 01 00
target_get_section_table ()
target_get_section_table () for exec
exec:target_xfer_partial (2, (null), 0x5b687568, 0x0, 0x10004d4, 4) = 4, bytes = 3d 20 01 00
1 ;/*
2 ppc-amigaos-gcc helloworld.c -o helloworld -gstabs -Wall
3 quit
4 */
5
6 #include <stdio.h>
7
8 int main(void)
9 {
10 printf("asd\n");
(gdb)
the set "BREAK 10" and "R" and this is serial output:
< amigaos_can_run >
</ amigaos_can_run >
< amigaos_can_run >
</ amigaos_can_run >
< amigaos_create_inferior >
Shell Process : Creating inferior process : exec_file = / Devel / SDK / ejemplos / helloworld , args = , env = 0x5f9b4c80 , from_tty = 1
< AllocateDebugInfo >
</ AllocateDebugInfo >
< Ux2DOS >
</ Ux2DOS >
Shell Process : Getting elf handle for seglist 0x161efc05
[ _impl_AddTask ] Adding Task 0x59b74c70 , / Devel / SDK / ejemplos / helloworld ( 0x5c069c90 )
Shell Process : Process created : 0x59b74c70
Shell Process : Task : 0x59b74c70
Shell Process : Suspending Task
[ _impl_SuspendTask ] Suspending other task / Devel / SDK / ejemplos / helloworld
Shell Process : Adding debug hook from 0x59b74c70
Shell Process : Added debug hook for 0x59b74c70
Shell Process : amigaos target_pushed_count 0
Shell Process : pushing amigaos target
Shell Process : add_thread 1596148000 inf 0x5f9b4bf8
</ amigaos_create_inferior >
< amigaos_terminal_ours >
Shell Process : terminal_ours is a STUB
</ amigaos_terminal_ours >
< amigaos_fetch_registers >
Shell Process : inferior_ptid = 0x5f234878
Shell Process : regno = 64 ( pc )
Shell Process : context = 0x5f945038 , sp = 0 , pc = 0 , lr = 0
</ amigaos_fetch_registers >
< amigaos_has_execution >
</ amigaos_has_execution >
< amigaos_has_registers >
</ amigaos_has_registers >
< amigaos_has_stack >
</ amigaos_has_stack >
< amigaos_has_memory >
</ amigaos_has_memory >
< amigaos_has_registers >
</ amigaos_has_registers >
< amigaos_has_stack >
</ amigaos_has_stack >
< amigaos_has_memory >
</ amigaos_has_memory >
< amigaos_deprecated_xfer_memory >
Shell Process : amigaos_xfer_memory ( memaddr = 0x10004d4 , myaddr = 0x5f234308 , len = 4 , write = 0 , attrib = 0x0 , target = 0x5f92fabc )
</ amigaos_deprecated_xfer_memory >
< amigaos_has_registers >
</ amigaos_has_registers >
< amigaos_has_stack >
</ amigaos_has_stack >
< amigaos_has_memory >
</ amigaos_has_memory >
< amigaos_has_registers >
</ amigaos_has_registers >
< amigaos_has_stack >
</ amigaos_has_stack >
< amigaos_has_memory >
</ amigaos_has_memory >
< amigaos_has_registers >
</ amigaos_has_registers >
< amigaos_has_stack >
</ amigaos_has_stack >
< amigaos_has_memory >
</ amigaos_has_memory >
< amigaos_memory_insert_breakpoint >
Shell Process : Trying to insert breakpoint at 0x10004d4
Shell Process : bp_len is 4
< DoBreakpoint >
Shell Process : current_mem_attr 1024 address_p 0x10004d4 real_address_p 0x10004d4 bp_data_p 0x5f99f078 ( 0 )
Shell Process : writing 188854272 to bp_data_p 0x5f99f078 ( 0 ) meth_start 0x7fe00008
</ DoBreakpoint >
</ amigaos_memory_insert_breakpoint >
< amigaos_has_registers >
</ amigaos_has_registers >
< amigaos_has_stack >
</ amigaos_has_stack >
< amigaos_has_memory >
</ amigaos_has_memory >
< amigaos_can_run >
</ amigaos_can_run >
< amigaos_resume >
Shell Process : amigaos_resume : restarting 0x59b74c70
</ amigaos_resume >
[ _impl_OpenLibrary ] Calling DebuggerHook for / Devel / SDK / ejemplos / helloworld
< amigaos_debug_callback >
/ Devel / SDK / ejemplos / helloworld : amigaos_debug_callback task_p 0x59b74c70 ( process = 0x59b74c70 )
/ Devel / SDK / ejemplos / helloworld : Received DBHMT_OPENLIB ( process = 0x59b74c70 )
/ Devel / SDK / ejemplos / helloworld : amigaos_debug_callback returning 0
</ amigaos_debug_callback >
[ _impl_OpenLibrary ] Calling DebuggerHook for / Devel / SDK / ejemplos / helloworld
< amigaos_debug_callback >
/ Devel / SDK / ejemplos / helloworld : amigaos_debug_callback task_p 0x59b74c70 ( process = 0x59b74c70 )
/ Devel / SDK / ejemplos / helloworld : Received DBHMT_OPENLIB ( process = 0x59b74c70 )
/ Devel / SDK / ejemplos / helloworld : amigaos_debug_callback returning 0
</ amigaos_debug_callback >
< amigaos_can_run >
</ amigaos_can_run >
[ _impl_CloseLibrary ] Calling DebuggerHook for / Devel / SDK / ejemplos / helloworld
< amigaos_debug_callback >
/ Devel / SDK / ejemplos / helloworld : amigaos_debug_callback task_p 0x59b74c70 ( process = 0x59b74c70 )
/ Devel / SDK / ejemplos / helloworld : Received DBHMT_CLOSELIB ( process = 0x59b74c70 )
/ Devel / SDK / ejemplos / helloworld : amigaos_debug_callback returning 0
</ amigaos_debug_callback >
[ _impl_CloseLibrary ] Calling DebuggerHook for / Devel / SDK / ejemplos / helloworld
< amigaos_debug_callback >
/ Devel / SDK / ejemplos / helloworld : amigaos_debug_callback task_p 0x59b74c70 ( process = 0x59b74c70 )
/ Devel / SDK / ejemplos / helloworld : Received DBHMT_CLOSELIB ( process = 0x59b74c70 )
/ Devel / SDK / ejemplos / helloworld : amigaos_debug_callback returning 0
</ amigaos_debug_callback >
[ _impl_RemTask ] Removing 0x59b74c70 ( self ) = / Devel / SDK / ejemplos / helloworld
< amigaos_debug_callback >
reaper . task : amigaos_debug_callback task_p 0x59b74c70 ( process = 0x59b74c70 )
reaper . task : Recieved DBHMT_REMTASK ( process = 0x59b74c70 )
reaper . task : amigaos_debug_callback returning 0
</ amigaos_debug_callback >
< amigaos_wait >
Shell Process : wait ptid = 0x59b74c70 ( ffffffff ), status = 0x5f234888 , kind 0
< is_process_alive >
</ is_process_alive >
Shell Process : Target has exited
</ amigaos_wait >
< amigaos_terminal_ours >
Shell Process : terminal_ours is a STUB
</ amigaos_terminal_ours >
< amigaos_kill_inferior >
< is_process_alive >
</ is_process_alive >
Shell Process : Not Removing debug hook from IDebug 0x6ff9e000 , 0x59b74c70 as process isn '' t alive
Shell Process : Killing 0x59b74c70
< FreeDebugInfo >
< is_process_alive >
</ is_process_alive >
</ FreeDebugInfo >
Shell Process : unpush target
</ amigaos_kill_inferior >
[ _impl_AddTask ] Adding Task 0x5fed2e50 , windowfade . task ( 0x1f411d4 )
[ _impl_AddTask ] Adding Task 0x587ca660 , windowfade . task ( 0x1f411d4 )
[ _impl_RemTask ] Removing 0x5fed2e50 ( self ) = windowfade . task
[ _impl_RemTask ] Removing 0x587ca660 ( self ) = windowfade . task
...
Edited by jabirulo on 2021/3/22 21:51:15
Re: GDB
Posted on:
2021/3/22 21:45
#143
Just can't stay away
Joined: 2007/2/6 13:57Last Login
: Yesterday 12:00
From Donostia (SPAIN)
Group:
Registered Users
Using "FILE" command: gdb) file helloworld file helloworld target_close (0) Load new symbol table from "/Devel/SDK/ejemplos/helloworld"? (y or n) [answered Y; input not from terminal] Reading symbols from /Devel/SDK/ejemplos/helloworld...done. (gdb) list list target_memory_map () target_get_section_table () target_get_section_table () for exec exec:target_xfer_partial (2, (null), 0x572de498, 0x0, 0x10004d4, 4) = 4, bytes = 3d 20 01 00 target_get_section_table () target_get_section_table () for exec exec:target_xfer_partial (2, (null), 0x572de568, 0x0, 0x10004d4, 4) = 4, bytes = 3d 20 01 00 1 ;/* 2 ppc-amigaos-gcc helloworld.c -o helloworld -gstabs -Wall 3 quit 4 */ 5 #include <stdio.h> 6 7 int main(void) 8 { 9 printf("asd\n"); 10 } (gdb) But I didn't press Y/N it just "automagically "answered" Y:: Load new symbol table from "/Devel/SDK/ejemplos/helloworld"? (y or n) [answered Y; input not from terminal]
Re: GDB
Posted on:
2021/3/23 17:44
#144
Just popping in
Joined: 2011/7/20 20:01Last Login
: Yesterday 21:18
From In the sticks
Group:
Registered Users
Thanks guys, I still haven't managed to get the breakpoints working, grr! Roman, can you remember when we did we have breakpoints working? If we did, then that will give me a base to compare to.
The helloworld example doesn't crash for me but the breakpoints don't work. For example
#include <stdio.h>
int main ( void )
{
printf ( "hello world\n" );
return 0 ;
}
Runs without crashing but any breakpoints just get ignored.
I've uploaded some updates which that to deal with the debug messages sent by our hook function. For instance,
#include <stdio.h>
int main ( void )
{
int * i_p = NULL ;
printf ( "here comes the crash...\n" );
/* BOOM! */
* i_p = 9 ;
return 0 ;
}
will now get caught by gdb, though you can't inspect the variables, etc. yet. So that needs adding too. Hopefully the code from
https://github.com/alfkil/Spotless/blo ... r/SimpleDebug/Symbols.cpp will give that to us.
If you look at lines 96-109 of amigaos-nat.c, there are two new flags to adjust which functions get used by our target
/*
* If this is TRUE, then the breakpoint code based upon Spotless
* is used. If this is FALSE, then the breakpoint code based upon
* the old gdb 6.3 port is used instead.
*/
static const BOOL s_use_spotless_breakpoints_flag = FALSE ;
/*
* If this is TRUE, then the memory transfer routine from the old
* gdb 6.3 port is used. If this is FALSE, then the code uses the
* new partial_mem_transfer API with amigaos_xfer_partial ()
* instead.
*/
static const BOOL s_use_deprecated_mem_transfer_flag = TRUE ;
So still more to do but hopefully the breakpoints will work soon!
Re: GDB
Posted on:
2021/3/23 20:04
#145
Home away from home
Joined: 2007/9/11 12:31Last Login
: Yesterday 8:41
From Russia
Group:
Registered Users
@billyfish
Quote:
Roman, can you remember when we did we have breakpoints working? If we did, then that will give me a base to compare to.As far as I can tell, we never have a working breakpoint in our version, we only now reach the point when we start to make it works.
I downloaded now your latest commit at this moment, and rebuild it all from scratch, and tested it on x5000 firstly - still crashes.
Results from serial:
< amigaos_init >
</ amigaos_init >
< _initialize_amigaos_nat >
< init_amigaos_ops >
Shell Process : Using v6.3 breakpoint code
Shell Process : Using deprecated mem transfer code
</ init_amigaos_ops >
</ _initialize_amigaos_nat >
< amigaos_can_run >
</ amigaos_can_run >
< amigaos_can_run >
</ amigaos_can_run >
< amigaos_create_inferior >
Shell Process : Creating inferior process : exec_file = / Work / aa / test , args = , env = 0x610A87C0 , from_tty = 1
< AllocateDebugInfo >
</ AllocateDebugInfo >
< Ux2DOS >
</ Ux2DOS >
Shell Process : Getting elf handle for seglist 0x1882CF41
Shell Process : Process created : 0x60E84360
Shell Process : Task : 0x60E84360
Shell Process : Suspending Task
Shell Process : Adding debug hook from 0x60E84360
Shell Process : Added debug hook for 0x60E84360
Shell Process : amigaos target_pushed_count 0
Shell Process : pushing amigaos target
Shell Process : add_thread 1630521616 inf 0x610A8738
</ amigaos_create_inferior >
< amigaos_terminal_ours >
Shell Process : terminal_ours is a STUB
</ amigaos_terminal_ours >
< amigaos_fetch_registers >
Shell Process : inferior_ptid = 0x612FC868
Shell Process : regno = 64 ( pc )
Shell Process : context = 0x5FBCCFC8 , sp = 0 , pc = 0 , lr = 0
</ amigaos_fetch_registers >
< amigaos_has_execution >
</ amigaos_has_execution >
< amigaos_has_registers >
</ amigaos_has_registers >
< amigaos_has_stack >
</ amigaos_has_stack >
< amigaos_has_memory >
</ amigaos_has_memory >
< amigaos_has_registers >
</ amigaos_has_registers >
< amigaos_has_stack >
</ amigaos_has_stack >
< amigaos_has_memory >
</ amigaos_has_memory >
< amigaos_deprecated_xfer_memory >
Shell Process : amigaos_xfer_memory ( memaddr = 0x010004D4 , myaddr = 0x612FC2F8 , len = 4 , write = 0 , attrib = 0x00000000 , target = 0x5FBB7A4C )
kernel 54.34 ( 5.2.2021 ) AmigaOne X5000 release
Machine model : 9 ( AmigaOne X5000 / 20 )
Dump of context at 0xEFD673E0
Trap type : DSI exception
DSISR : 00000000 DAR : 010004D4
No matching page found
Machine State ( raw ): 0x0002F030
Machine State ( verbose ): [ Critical Ints on ] [ ExtInt on ] [ User ] [ IAT on ] [ DAT on ]
Instruction pointer : in module kernel + 0x00041A70 ( 0x01841A70 )
Crashed process : gdb_751 ( 0x67648DB0 )
DSI verbose error description : Access to address 0x010004D4 not allowed by page protection in user state ( protection violation )
Access was a load operation
Exception Syndrome Register : 0x00000000
0 : 01A65794 612FC120 00000002 612FC2F8 010004D4 00000004 00000004 00000004
8 : 010004D0 00000001 612FC2F4 01A65764 00000794 5FBBDEC8 5FBB0000 00000001
16 : 00000000 61489860 5FBB0000 5FBB0000 610A8738 01846030 5FBB7A4C 00000000
24 : 612FC2F8 00000004 0224A968 00000000 5E845074 010004D4 5E843750 612FC2F8
CR : 37555935 XER : A000007E CTR : 00000001 LR : 01841 BD4
Disassembly of crash site :
01841 A60 : 3943FFFC subi r10 , r3 , 4
01841 A64 : 5529F0BE rlwinm r9 , r9 , 30 , 2 , 31
01841 A68 : 39290001 addi r9 , r9 , 1
01841 A6C : 7D2903A6 mtctr r9
>01841 A70 : 85280004 lwzu r9 , 4 ( r8 )
01841 A74 : 952A0004 stwu r9 , 4 ( r10 )
01841 A78 : 4200FFF8 bdnz + 0x1841A70
01841 A7C : 54A507BE rlwinm r5 , r5 , 0 , 30 , 31
01841 A80 : 7C843A14 add r4 , r4 , r7
01841 A84 : 2F850000 cmpwi cr7 , r5 , 0
msr : 0x0002B032
TLB1 ( 64 entries ):
* [ 51 ]: size = 7 tid = 0 TS = 1 epn = 0xFE000000 rpn = 0x0000000F_FE000000 WIMG = 0x5 XXWWRR = 0xF protected
* [ 52 ]: size = 6 tid = 0 TS = 1 epn = 0x01000000 rpn = 0x00000000_01000000 WIMG = 0x0 XXWWRR = 0x5 protected
* [ 53 ]: size = 6 tid = 0 TS = 1 epn = 0x01400000 rpn = 0x00000000_01400000 WIMG = 0x0 XXWWRR = 0x5 protected
* [ 54 ]: size = 6 tid = 0 TS = 1 epn = 0x01800000 rpn = 0x00000000_01800000 WIMG = 0x0 XXWWRR = 0x33 protected
* [ 55 ]: size = 6 tid = 0 TS = 1 epn = 0x01C00000 rpn = 0x00000000_01C00000 WIMG = 0x0 XXWWRR = 0x33 protected
* [ 56 ]: size = 6 tid = 0 TS = 1 epn = 0x02000000 rpn = 0x00000000_02000000 WIMG = 0x0 XXWWRR = 0xF protected
* [ 57 ]: size = 4 tid = 0 TS = 1 epn = 0x02400000 rpn = 0x00000000_02400000 WIMG = 0x0 XXWWRR = 0xF protected
* [ 58 ]: size = 3 tid = 0 TS = 1 epn = 0x02440000 rpn = 0x00000000_02440000 WIMG = 0x0 XXWWRR = 0xF protected
* [ 59 ]: size = 3 tid = 0 TS = 1 epn = 0x02450000 rpn = 0x00000000_02450000 WIMG = 0x0 XXWWRR = 0xF protected
* [ 60 ]: size = 3 tid = 0 TS = 1 epn = 0x02460000 rpn = 0x00000000_02460000 WIMG = 0x0 XXWWRR = 0xF protected
* [ 61 ]: size = 7 tid = 0 TS = 0 epn = 0xFE000000 rpn = 0x0000000F_FE000000 WIMG = 0x5 XXWWRR = 0xF protected
* [ 62 ]: size = A tid = 0 TS = 0 epn = 0x00000000 rpn = 0x00000000_00000000 WIMG = 0x0 XXWWRR = 0x3F protected
* [ 63 ]: size = A tid = 0 TS = 0 epn = 0x40000000 rpn = 0x00000000_40000000 WIMG = 0x0 XXWWRR = 0x3F protected
HAL_MaxTLB = 50 , HAL_NextTLB = 0
MMUCFG = 0x064809C4
mas0 = 0x103F0000
mas1 = 0xC0000A00
mas2 = 0x40000000
mas3 = 0x4000003F
mas4 = 0x00000100
mas5 = 0x00000000
mas6 = 0x00000001
mas7 = 0x00000000
mas8 = 0x00000000
Kernel command line : serial munge debuglevel = 1
Registers pointing to code :
r0 : native kernel module newlib . library . kmod + 0x00008fb4
r9 : module Work : aa / test at 0x00000001 ( section 0 @ 0xFFFFFFDC )
r11 : native kernel module newlib . library . kmod + 0x00008f84
r13 : gdb_751 : symbuf ()+ 0x3d5c ( section 16 @ 0x753C )
r14 : module gdb_751 at 0x5FBB0000 ( section 3 @ 0xFFFFFFDC )
r15 : module Work : aa / test at 0x00000001 ( section 0 @ 0xFFFFFFDC )
r18 : module gdb_751 at 0x5FBB0000 ( section 3 @ 0xFFFFFFDC )
r19 : module gdb_751 at 0x5FBB0000 ( section 3 @ 0xFFFFFFDC )
r21 : native kernel module kernel + 0x00046030
r22 : gdb_751 : amigaos_ops ()+ 0x0 ( section 16 @ 0x10C0 )
r26 : native kernel module kernel + 0x00a4a968
r28 : module gdb_751 at 0x5E845074 ( section 1 @ 0x5050 )
r30 : gdb_751 : __PRETTY_FUNCTION__.26864 ()+ 0x0 ( section 3 @ 0x374C )
ip : native kernel module kernel + 0x00041a70
lr : native kernel module kernel + 0x00041bd4
ctr : module Work : aa / test at 0x00000001 ( section 0 @ 0xFFFFFFDC )
Stack trace :
( 0x612FC120 ) native kernel module kernel + 0x00041a70
( 0x612FC130 ) native kernel module kernel + 0x00041bd4
( 0x612FC140 ) gdb_751 : amigaos_deprecated_xfer_memory ()+ 0x2c4 ( section 1 @ 0x27964 )
( 0x612FC190 ) gdb_751 : default_xfer_partial ()+ 0x128 ( section 1 @ 0x13B9BC )
( 0x612FC1C0 ) gdb_751 : memory_xfer_partial_1 ()+ 0x1a8 ( section 1 @ 0x13D3AC )
( 0x612FC240 ) gdb_751 : target_xfer_partial ()+ 0x230 ( section 1 @ 0x13DAEC )
( 0x612FC290 ) gdb_751 : target_read ()+ 0xc8 ( section 1 @ 0x13CDE4 )
( 0x612FC2E0 ) gdb_751 : target_read_memory ()+ 0x44 ( section 1 @ 0x13CF2C )
( 0x612FC2F0 ) gdb_751 : rs6000_skip_main_prologue ()+ 0x30 ( section 1 @ 0x2CF0 )
( 0x612FC320 ) gdb_751 : skip_prologue_sal ()+ 0x418 ( section 1 @ 0xDF5B8 )
( 0x612FC3A0 ) gdb_751 : convert_linespec_to_sals ()+ 0xa58 ( section 1 @ 0xEF9FC )
( 0x612FC480 ) gdb_751 : parse_linespec ()+ 0x314 ( section 1 @ 0xF1D54 )
( 0x612FC5F0 ) gdb_751 : decode_line_full ()+ 0x140 ( section 1 @ 0xF27D8 )
( 0x612FC6D0 ) gdb_751 : decode_linespec_default . isra.49 ()+ 0x50 ( section 1 @ 0x99530 )
( 0x612FC700 ) gdb_751 : addr_string_to_sals ()+ 0x9c ( section 1 @ 0xA6608 )
( 0x612FC830 ) gdb_751 : breakpoint_re_set_default ()+ 0x40 ( section 1 @ 0xA9598 )
( 0x612FC880 ) gdb_751 : breakpoint_re_set_one ()+ 0x58 ( section 1 @ 0x9508C )
( 0x612FC890 ) gdb_751 : catch_errors ()+ 0x74 ( section 1 @ 0x112A5C )
( 0x612FC8F0 ) gdb_751 : breakpoint_re_set ()+ 0xbc ( section 1 @ 0xA9750 )
( 0x612FC930 ) gdb_751 : post_create_inferior ()+ 0xec ( section 1 @ 0xF8610 )
( 0x612FC980 ) gdb_751 : run_command_1 ()+ 0x194 ( section 1 @ 0xF8DC4 )
( 0x612FC9E0 ) gdb_751 : execute_command ()+ 0x278 ( section 1 @ 0x1D9A08 )
( 0x612FCA20 ) gdb_751 : command_handler ()+ 0x84 ( section 1 @ 0x11BA64 )
( 0x612FCA40 ) gdb_751 : command_line_handler ()+ 0x464 ( section 1 @ 0x11C118 )
( 0x612FCA90 ) gdb_751 : rl_callback_read_char ()+ 0x1a8 ( section 1 @ 0x227868 )
( 0x612FCAD0 ) gdb_751 : rl_callback_read_char_wrapper ()+ 0x10 ( section 1 @ 0x11BAE0 )
( 0x612FCAE0 ) gdb_751 : process_event ()+ 0xb8 ( section 1 @ 0x11A3C0 )
( 0x612FCB00 ) gdb_751 : gdb_do_one_event ()+ 0x3a4 ( section 1 @ 0x11A84C )
( 0x612FCB40 ) gdb_751 : start_event_loop ()+ 0x40 ( section 1 @ 0x11AA1C )
( 0x612FCB80 ) gdb_751 : captured_command_loop ()+ 0x1c ( section 1 @ 0x1141E4 )
( 0x612FCB90 ) gdb_751 : catch_errors ()+ 0x74 ( section 1 @ 0x112A5C )
( 0x612FCBF0 ) gdb_751 : captured_main ()+ 0xcb4 ( section 1 @ 0x115204 )
( 0x612FCC80 ) gdb_751 : catch_errors ()+ 0x74 ( section 1 @ 0x112A5C )
( 0x612FCCE0 ) gdb_751 : gdb_main ()+ 0x34 ( section 1 @ 0x1153B8 )
( 0x612FCCF0 ) gdb_751 : main ()+ 0x30 ( section 1 @ 0x478 )
( 0x612FCD10 ) native kernel module newlib . library . kmod + 0x00002614
( 0x612FCD60 ) native kernel module newlib . library . kmod + 0x00003340
( 0x612FCF10 ) native kernel module newlib . library . kmod + 0x00003864
( 0x612FCF40 ) gdb_751 : _start ()+ 0x1e0 ( section 1 @ 0x1DC )
( 0x612FCF90 ) native kernel module dos . library . kmod + 0x0002a490
( 0x612FCFC0 ) native kernel module kernel + 0x0005c6c8
( 0x612FCFD0 ) native kernel module kernel + 0x0005c740
Disassembly of crash site :
01841 A60 : 3943FFFC subi r10 , r3 , 4
01841 A64 : 5529F0BE rlwinm r9 , r9 , 30 , 2 , 31
01841 A68 : 39290001 addi r9 , r9 , 1
01841 A6C : 7D2903A6 mtctr r9
>01841 A70 : 85280004 lwzu r9 , 4 ( r8 )
01841 A74 : 952A0004 stwu r9 , 4 ( r10 )
01841 A78 : 4200FFF8 bdnz + 0x1841A70
01841 A7C : 54A507BE rlwinm r5 , r5 , 0 , 30 , 31
01841 A80 : 7C843A14 add r4 , r4 , r7
01841 A84 : 2F850000 cmpwi cr7 , r5 , 0
Stack pointer ( 0x612FC120 ) is inside bounds
Redzone is OK ( 4 )
68k register dump
DATA : 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
ADDR : 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Page information :
Page not found
Ready Tasks
WinFrame 19 Process ( pri 5 , sigrec 0x00800000 , sigwait 0xFF800000 , masked 0x00800000 )
IDF1 / FastFileSystem 53.2 ( pri 5 , sigrec 0x20000000 , sigwait 0xA8000100 , masked 0x20000000 )
IDF0 / FastFileSystem 53.2 ( pri 5 , sigrec 0x20000000 , sigwait 0xA8000100 , masked 0x20000000 )
compose . task ( pri 1 , sigrec 0x00000020 , sigwait 0x00000021 , masked 0x00000020 )
Workbench ( pri 1 , sigrec 0x80000100 , sigwait 0x80000000 , masked 0x80000000 )
ScreenBlanker Library . ( pri 1 , sigrec 0x08000100 , sigwait 0xE8001000 , masked 0x08000000 )
dopus_clock ( pri 1 , sigrec 0x40000000 , sigwait 0xC0000000 , masked 0x40000000 )
AmiDock ( pri 0 , sigrec 0x00300100 , sigwait 0x00000100 , masked 0x00000100 )
NotificationServer ( pri 0 , sigrec 0x08000000 , sigwait 0xF8001000 , masked 0x08000000 )
TCP / IP Control ( pri 0 , sigrec 0x40000100 , sigwait 0xF8009080 , masked 0x40000000 )
ELF Collector ( pri 0 , sigrec 0x00000100 , sigwait 0x00000100 , masked 0x00000100 )
hub . usbfd ( pri 0 , sigrec 0x10000000 , sigwait 0x30000000 , masked 0x10000000 )
hub . usbfd ( pri 0 , sigrec 0x10000000 , sigwait 0x30000000 , masked 0x10000000 )
CPUDock_idleTask ( pri - 127 , sigrec 0x00000000 , sigwait 0x40000000 , masked 0x00000000 )
idle . task ( pri - 128 , sigrec 0x00000000 , sigwait 0x00000000 , masked 0x00000000 )
Waiting Tasks
EHCI Controller Task Unit 1 ( pri 15 , sigrec 0x00000000 , sigwait 0xBE009000 , masked 0x00000000 )
EHCI Controller Task Unit 0 ( pri 15 , sigrec 0x00000000 , sigwait 0xBE009000 , masked 0x00000000 )
USB stack ( pri 18 , sigrec 0x00000000 , sigwait 0xF800D000 , masked 0x00000000 )
rx_pm ( pri 100 , sigrec 0x00000000 , sigwait 0x80000001 , masked 0x00000000 )
CON / con - handler 53.82 ( pri 5 , sigrec 0x00000000 , sigwait 0xB0000100 , masked 0x00000000 )
rx_gc ( pri 100 , sigrec 0x00000000 , sigwait 0x80000001 , masked 0x00000000 )
appdir envarc manager ( pri - 50 , sigrec 0x00000000 , sigwait 0x00000100 , masked 0x00000000 )
hid . usbfd ( pri 10 , sigrec 0x00000100 , sigwait 0xE0000000 , masked 0x00000000 )
HID Keyboard ( pri 10 , sigrec 0x00000000 , sigwait 0x90001000 , masked 0x00000000 )
p50x0sata . device Port 0 ( pri 12 , sigrec 0x10000000 , sigwait 0xC0007000 , masked 0x00000000 )
ICD1 / CDFileSystem 53.8 ( pri 10 , sigrec 0x00000000 , sigwait 0x00000100 , masked 0x00000000 )
ICD0 / CDFileSystem 53.8 ( pri 10 , sigrec 0x00000000 , sigwait 0x00000100 , masked 0x00000000 )
DH2 / SmartFilesystem 1.293 ( pri 11 , sigrec 0x00000000 , sigwait 0x00000100 , masked 0x00000000 )
DH3 / SmartFilesystem 1.293 ( pri 11 , sigrec 0x00000000 , sigwait 0x00000100 , masked 0x00000000 )
serial . device ( pri 1 , sigrec 0x00000000 , sigwait 0x7E000000 , masked 0x00000000 )
dos_signal_server ( pri - 5 , sigrec 0x00000000 , sigwait 0x0000F000 , masked 0x00000000 )
X - Dock ( pri 0 , sigrec 0x00000100 , sigwait 0xFE001000 , masked 0x00000000 )
hid . usbfd ( pri 10 , sigrec 0x00000100 , sigwait 0xE0000000 , masked 0x00000000 )
HID Mouse ( pri 10 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
P50x0 Ethernet ( pri 20 , sigrec 0x00000000 , sigwait 0x00001000 , masked 0x00000000 )
Background CLI ( pri 0 , sigrec 0x00000100 , sigwait 0x10001080 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
dos_filedir_notify ( pri 5 , sigrec 0x80000000 , sigwait 0x40001000 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
TCP / IP Superserver ( pri 0 , sigrec 0x00000100 , sigwait 0xD0000080 , masked 0x00000000 )
TCP / IP Configuration ( pri 0 , sigrec 0x00000100 , sigwait 0xF8003000 , masked 0x00000000 )
ClickToFront ( pri 21 , sigrec 0x00000100 , sigwait 0xE000D000 , masked 0x00000000 )
DirectoryOpus ( pri 0 , sigrec 0x00000000 , sigwait 0x5C009000 , masked 0x00000000 )
DH3 / SmartFilesystem 1.293 ( pri 10 , sigrec 0x00000000 , sigwait 0xE0000100 , masked 0x00000000 )
DH2 / SmartFilesystem 1.293 ( pri 10 , sigrec 0x00000000 , sigwait 0xE0000100 , masked 0x00000000 )
▒ IPrefs ▒ ( pri 0 , sigrec 0x00000000 , sigwait 0x0000F000 , masked 0x00000000 )
ContextMenus ( pri 0 , sigrec 0x04000000 , sigwait 0xE0001000 , masked 0x00000000 )
RexxMaster ( pri 4 , sigrec 0x00000100 , sigwait 0xC0000000 , masked 0x00000000 )
DefIcons ( pri 0 , sigrec 0x00000100 , sigwait 0x80009000 , masked 0x00000000 )
ContextMenus Command Dispatcher ( pri 1 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
URL / launch - handler 53.39 ( pri 5 , sigrec 0x00000100 , sigwait 0x80000000 , masked 0x00000000 )
TEXTCLIP / textclip - handler 53.4 ( pri 3 , sigrec 0x00000100 , sigwait 0x80000000 , masked 0x00000000 )
RANDOM / Random - Handler 52.1 ( pri 5 , sigrec 0x00000000 , sigwait 0x00000100 , masked 0x00000000 )
Mounter Task ( pri - 1 , sigrec 0x00000000 , sigwait 0xB0001000 , masked 0x00000000 )
Mounter GUI ( pri 0 , sigrec 0x00000000 , sigwait 0x80007000 , masked 0x00000000 )
Mounter Companion Process ( pri - 1 , sigrec 0x00000000 , sigwait 0x80003000 , masked 0x00000000 )
Workbench DosList Notify ( pri 1 , sigrec 0x00000100 , sigwait 0x00003000 , masked 0x00000000 )
ramlib . support ( pri - 2 , sigrec 0x00000000 , sigwait 0x80005000 , masked 0x00000000 )
ramlib ( pri 1 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
dopus_arbiter ( pri 0 , sigrec 0x00000000 , sigwait 0x00000100 , masked 0x00000000 )
dopus_hotkeez ( pri 1 , sigrec 0x00000000 , sigwait 0xC0000000 , masked 0x00000000 )
CON / con - handler 53.82 ( pri 5 , sigrec 0x00000000 , sigwait 0xA0000100 , masked 0x00000000 )
FKey ( pri 0 , sigrec 0x00000000 , sigwait 0xC000D000 , masked 0x00000000 )
MUI imagespace screen notify ( pri 1 , sigrec 0x00000100 , sigwait 0xC0001000 , masked 0x00000000 )
TextEditor . mcc clipboard server ( pri 1 , sigrec 0x00000100 , sigwait 0x80000000 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x80000010 , masked 0x00000000 )
KeymapSwitcher . docky ( pri 0 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
select . gadget prefs ( pri 0 , sigrec 0x00000100 , sigwait 0x80001000 , masked 0x00000000 )
AsyncWB ( pri 0 , sigrec 0x00000100 , sigwait 0xC0001000 , masked 0x00000000 )
texteditor . gadget Clipboard Server ( pri 1 , sigrec 0x00000100 , sigwait 0x80000000 , masked 0x00000000 )
RAWBInfo ( pri 0 , sigrec 0x00000100 , sigwait 0x80001000 , masked 0x00000000 )
CON / con - handler 53.82 ( pri 5 , sigrec 0x00000000 , sigwait 0xA0000100 , masked 0x00000000 )
CON / con - handler 53.82 ( pri 5 , sigrec 0x00000000 , sigwait 0xA0000100 , masked 0x00000000 )
CON / con - handler 53.82 ( pri 5 , sigrec 0x00000000 , sigwait 0xA0000100 , masked 0x00000000 )
CON / con - handler 53.82 ( pri 5 , sigrec 0x00000000 , sigwait 0xA0000100 , masked 0x00000000 )
CON / con - handler 53.82 ( pri 5 , sigrec 0x00000000 , sigwait 0xA0000100 , masked 0x00000000 )
application . library messageserver ( pri 0 , sigrec 0x00000000 , sigwait 0xC0000000 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x80000000 , sigwait 0x00000010 , masked 0x00000000 )
Workbench Clipboard Server ( pri 1 , sigrec 0x00000100 , sigwait 0x80000000 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
New Process ( pri 0 , sigrec 0x00000000 , sigwait 0x00000010 , masked 0x00000000 )
TCP / IP Log ( pri 0 , sigrec 0x00000000 , sigwait 0x80003000 , masked 0x00000000 )
hid . usbfd ( pri 10 , sigrec 0x00000100 , sigwait 0xE0000000 , masked 0x00000000 )
HID Consumer ( pri 10 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
ConClip ( pri 0 , sigrec 0x00000000 , sigwait 0x80000000 , masked 0x00000000 )
HID Consumer ( pri 10 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
diskimage . device unit 1 ( pri 4 , sigrec 0x00000100 , sigwait 0xC0000000 , masked 0x00000000 )
diskimage . device unit 0 ( pri 4 , sigrec 0x00000100 , sigwait 0xC0000000 , masked 0x00000000 )
diskimage . device unit 5 ( pri 4 , sigrec 0x00000100 , sigwait 0xC0000000 , masked 0x00000000 )
diskimage . device unit 4 ( pri 4 , sigrec 0x00000100 , sigwait 0xC0000000 , masked 0x00000000 )
HID Consumer ( pri 10 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
HID Keyboard ( pri 10 , sigrec 0x00000000 , sigwait 0x90001000 , masked 0x00000000 )
hid . usbfd ( pri 10 , sigrec 0x00000100 , sigwait 0xE0000000 , masked 0x00000000 )
hid . usbfd ( pri 10 , sigrec 0x00000100 , sigwait 0xE0000000 , masked 0x00000000 )
AUDIO / AHI - Handler 6.2 ( pri 5 , sigrec 0x00000000 , sigwait 0x00000100 , masked 0x00000000 )
USB stack Process ( pri 0 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
APPDIR / appdir - handler 54.18 ( pri 5 , sigrec 0x00000100 , sigwait 0x80000000 , masked 0x00000000 )
MassStorage Notifier ( pri 0 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
DST watcher ( pri 0 , sigrec 0x00000000 , sigwait 0xC0000000 , masked 0x00000000 )
NotifyA Server ( pri 1 , sigrec 0x00000000 , sigwait 0xE8001000 , masked 0x00000000 )
string . gadget server ( pri 1 , sigrec 0x00000100 , sigwait 0x40000000 , masked 0x00000000 )
datatypes . library ( pri 1 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
RAM / ram - handler 54.24 ( pri 10 , sigrec 0x00000100 , sigwait 0x80000000 , masked 0x00000000 )
ENV / env - handler 54.18 ( pri 5 , sigrec 0x00000100 , sigwait 0x80000000 , masked 0x00000000 )
CON / con - handler 53.82 ( pri 5 , sigrec 0x00000000 , sigwait 0xA0000100 , masked 0x00000000 )
RAW / con - handler 53.82 ( pri 5 , sigrec 0x00000000 , sigwait 0xA0000100 , masked 0x00000000 )
CON / con - handler 53.82 ( pri 5 , sigrec 0x00000000 , sigwait 0xA0000100 , masked 0x00000000 )
SFS DosList handler ( pri 19 , sigrec 0x00000000 , sigwait 0x80000000 , masked 0x00000000 )
dos_nbmd_process ( pri 5 , sigrec 0x00000000 , sigwait 0x00001100 , masked 0x00000000 )
dos_lock_handler ( pri 5 , sigrec 0x00000000 , sigwait 0x00001100 , masked 0x00000000 )
hub . usbfd ( pri 0 , sigrec 0x00000000 , sigwait 0x30000000 , masked 0x00000000 )
hub . usbfd ( pri 0 , sigrec 0x00000000 , sigwait 0x30000000 , masked 0x00000000 )
p50x0sata . device Port 1 ( pri 12 , sigrec 0x00000000 , sigwait 0xC0007000 , masked 0x00000000 )
DMA2 Channel 4 Handler ( pri 0 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
DMA1 Channel 4 Handler ( pri 0 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
DMA2 Channel 3 Handler ( pri 0 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
DMA1 Channel 3 Handler ( pri 0 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
DMA2 Channel 2 Handler ( pri 0 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
DMA1 Channel 2 Handler ( pri 0 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
DMA2 Channel 1 Handler ( pri 0 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
DMA1 Channel 1 Handler ( pri 0 , sigrec 0x00000000 , sigwait 0x80001000 , masked 0x00000000 )
Exec Command and Control ( pri 30 , sigrec 0x00000000 , sigwait 0x80000000 , masked 0x00000000 )
Suspended Tasks
/ Work / aa / test ( pri 0 , sigrec 0x00000000 , sigwait 0x00000000 , masked 0x00000000 )
Results from the console:
2 / 0.Work : aa > gdb_751 - q test
_initialize_amigaos_nat
[New inferior 0 ]
Reading symbols from / Work / aa / test ... done .
( gdb ) break 1
break 1
target_memory_map ()
target_get_section_table ()
target_get_section_table () for exec
exec : target_xfer_partial ( 2 , ( null ), 0x612fc038 , 0x0 , 0x10004d4 , 4 ) = 4 , bytes = 3d 20 01 00
target_get_section_table ()
target_get_section_table () for exec
exec : target_xfer_partial ( 2 , ( null ), 0x612fc108 , 0x0 , 0x10004d4 , 4 ) = 4 , bytes = 3d 20 01 00
target_get_section_table ()
target_get_section_table () for exec
exec : target_xfer_partial ( 2 , ( null ), 0x612fc458 , 0x0 , 0x10004d4 , 4 ) = 4 , bytes = 3d 20 01 00
target_get_section_table ()
target_get_section_table () for exec
exec : target_xfer_partial ( 2 , ( null ), 0x612fc6d0 , 0x0 , 0x10004d4 , 4 ) = 4 , bytes =
3d 20 01 00
Breakpoint 1 at 0x10004d4 : file test . c , line 1.
( gdb ) r
r
t : PowerPC PPCBug monitor on port 0
t : PowerPC PPCBug monitor on port 1
t : DINK32 monitor
t : Debug an Amiga process
amigaos_can_run returning 1
t : Remote serial target in gdb - specific protocol
t : Extended remote serial target in gdb - specific protocol
t : Local trace dump file
t : Local core dump file
t : Local exec file
t : Process record and replay target
t : Process record and replay target
Starting program : / Work / aa / test
t : PowerPC PPCBug monitor on port 0
t : PowerPC PPCBug monitor on port 1
t : DINK32 monitor
t : Debug an Amiga process
amigaos_can_run returning 1
t : Remote serial target in gdb - specific protocol
t : Extended remote serial target in gdb - specific protocol
t : Local trace dump file
t : Local core dump file
t : Local exec file
t : Process record and replay target
t : Process record and replay target
[New process 1625834336 ]
target_create_inferior (/ Work / aa / test , , xxx , 1 )
target_terminal_ours ()
target_get_section_table ()
target_get_section_table () for exec
subtask : target_xfer_partial ( 10 , target . xml , 0x5f0f4fc8 , 0x0 , 0x0 , 4095 ) = - 1
target_thread_architecture ( process 1625834336 ) = 0x5e98a010 [ powerpc : common ]
ptid_equal ( null_ptid , ptid ( 1625834336 , 0 , 0 )
pid 1625834336 for ptid ( 1625834336 , 0 , 0 )
get_thread_arch_regcache ( process 1625834336 ) = 0x610a86c8
ptid_equal ( null_ptid , ptid ( 1625834336 , 0 , 0 )
pid 1625834336 for ptid ( 1625834336 , 0 , 0 )
get_thread_arch_regcache ( process 1625834336 ) = 0x610a86c8
target_fetch_registers ( pc ) = 00000000 0x0 0
target_get_section_table ()
target_get_section_table () for exec
subtask : target_xfer_partial ( 11 , ( null ), 0x5f0f5420 , 0x0 , 0x0 , 4095 ) = - 1
target_memory_map ()
<<<< CRASH >>>>
Then tried it on pegasos2. There I didn't have a crash, but after I set breakpoint and hit "run", it then didn't stop on a breakpoint and didn't give me the ability to type things in the terminal (i.e. it didn't finish the executing now as well)
Results from serial:
< amigaos_init >
</ amigaos_init >
< _initialize_amigaos_nat >
< init_amigaos_ops >
Shell Process : Using v6.3 breakpoint code
Shell Process : Using deprecated mem transfer code
</ init_amigaos_ops >
</ _initialize_amigaos_nat >
< amigaos_can_run >
</ amigaos_can_run >
< amigaos_can_run >
</ amigaos_can_run >
< amigaos_create_inferior >
Shell Process : Creating inferior process : exec_file = / RAM Disk / test , args = , env = 0x64E5A2F8 , from_tty = 1
< AllocateDebugInfo >
</ AllocateDebugInfo >
< Ux2DOS >
</ Ux2DOS >
Shell Process : Getting elf handle for seglist 0x194D38D1
Shell Process : Process created : 0x62039020
Shell Process : Task : 0x62039020
Shell Process : Suspending Task
Shell Process : Adding debug hook from 0x62039020
Shell Process : Added debug hook for 0x62039020
Shell Process : amigaos target_pushed_count 0
Shell Process : pushing amigaos target
Shell Process : add_thread 1700079888 inf 0x64E5A280
</ amigaos_create_inferior >
< amigaos_terminal_ours >
Shell Process : terminal_ours is a STUB
</ amigaos_terminal_ours >
< amigaos_fetch_registers >
Shell Process : inferior_ptid = 0x65552868
Shell Process : regno = 64 ( pc )
Shell Process : context = 0x6556FFC8 , sp = 0 , pc = 0 , lr = 0
</ amigaos_fetch_registers >
< amigaos_has_execution >
</ amigaos_has_execution >
< amigaos_has_registers >
</ amigaos_has_registers >
< amigaos_has_stack >
</ amigaos_has_stack >
< amigaos_has_memory >
</ amigaos_has_memory >
< amigaos_has_registers >
</ amigaos_has_registers >
< amigaos_has_stack >
</ amigaos_has_stack >
< amigaos_has_memory >
</ amigaos_has_memory >
< amigaos_deprecated_xfer_memory >
Shell Process : amigaos_xfer_memory ( memaddr = 0x010004D4 , myaddr = 0x655522F8 , len = 4 , write = 0 , attrib = 0x00000000 , target = 0x6555AA4C )
</ amigaos_deprecated_xfer_memory >
< amigaos_has_registers >
</ amigaos_has_registers >
< amigaos_has_stack >
</ amigaos_has_stack >
< amigaos_has_memory >
</ amigaos_has_memory >
< amigaos_has_registers >
</ amigaos_has_registers >
< amigaos_has_stack >
</ amigaos_has_stack >
< amigaos_has_memory >
</ amigaos_has_memory >
< amigaos_has_registers >
</ amigaos_has_registers >
< amigaos_has_stack >
</ amigaos_has_stack >
< amigaos_has_memory >
</ amigaos_has_memory >
< amigaos_memory_insert_breakpoint >
Shell Process : Trying to set breakpoint at 0x010004D4 ( host_addr = 0x010004D4 , code_elf_addr = 0xABADCAFE , code_size = 0xABADCAFE )
< DebugPrintBuffers >
Shell Process : pre - read
Shell Process : src [ 0 ] 0x010004D4 = 0 , dest [ 0 ] 0x64E153B0 = 0
</ DebugPrintBuffers >
< amigaos_deprecated_xfer_memory >
Shell Process : amigaos_xfer_memory ( memaddr = 0x010004D4 , myaddr = 0x64E153B0 , len = 4 , write = 0 , attrib = 0x00000000 , target = 0x6555AA4C )
</ amigaos_deprecated_xfer_memory >
Shell Process : Saved at addr 0x010004D4 the instruction 0x64E153B0
< DebugPrintBuffers >
Shell Process : post - read
Shell Process : src [ 0 ] 0x010004D4 = 0 , dest [ 0 ] 0x64E153B0 = 0
</ DebugPrintBuffers >
Shell Process : Setting breakpoint at addr = 0x010004D4 bp = 0x65553018
< DebugPrintBuffers >
Shell Process : pre - write
Shell Process : src [ 0 ] 0x65553018 = 7D821008 , dest [ 0 ] 0x010004D4 = 0
</ DebugPrintBuffers >
< amigaos_deprecated_xfer_memory >
Shell Process : amigaos_xfer_memory ( memaddr = 0x010004D4 , myaddr = 0x64E15520 , len = 4 , write = 1 , attrib = 0x00000000 , target = 0x6555AA4C )
Shell Process : Writing 0x7D821008 to 0x010004D4 ( was 0x00000000 )
Shell Process : Now is 0x7D821008
</ amigaos_deprecated_xfer_memory >
< DebugPrintBuffers >
Shell Process : post - write
Shell Process : src [ 0 ] 0x65553018 = 7D821008 , dest [ 0 ] 0x010004D4 = 7D821008
</ DebugPrintBuffers >
</ amigaos_memory_insert_breakpoint >
< amigaos_has_registers >
</ amigaos_has_registers >
< amigaos_has_stack >
</ amigaos_has_stack >
< amigaos_has_memory >
</ amigaos_has_memory >
< amigaos_can_run >
</ amigaos_can_run >
< amigaos_resume >
Shell Process : amigaos_resume : restarting 0x62039020
</ amigaos_resume >
< amigaos_debug_callback >
/ RAM Disk / test : amigaos_debug_callback task_p 0x62039020 ( process = 0x62039020 )
/ RAM Disk / test : Received DBHMT_OPENLIB ( process = 0x62039020 )
/ RAM Disk / test : amigaos_debug_callback returning 0
</ amigaos_debug_callback >
< amigaos_debug_callback >
/ RAM Disk / test : amigaos_debug_callback task_p 0x62039020 ( process = 0x62039020 )
/ RAM Disk / test : Received DBHMT_OPENLIB ( process = 0x62039020 )
/ RAM Disk / test : amigaos_debug_callback returning 0
</ amigaos_debug_callback >
< amigaos_can_run >
</ amigaos_can_run >
< amigaos_debug_callback >
/ RAM Disk / test : amigaos_debug_callback task_p 0x62039020 ( process = 0x62039020 )
/ RAM Disk / test : Received DBHMT_CLOSELIB ( process = 0x62039020 )
/ RAM Disk / test : amigaos_debug_callback returning 0
< amigaos_wait >
Shell Process : wait ptid = 0x62039020 ( FFFFFFFF ), status = 0x65552878 , kind 0
< is_process_alive >
Shell Process : is_process_alive for 0x62039020 is returning 1
</ amigaos_debug_callback >
< amigaos_debug_callback >
/ RAM Disk / test : amigaos_debug_callback task_p 0x62039020 ( process = 0x62039020 )
</ is_process_alive >
/ RAM Disk / test : Received DBHMT_CLOSELIB ( process = 0x62039020 )
Shell Process : Waiting for message ( process = 0x62039020 )
/ RAM Disk / test : amigaos_debug_callback returning 0
</ amigaos_debug_callback >
< amigaos_debug_callback >
reaper . task : amigaos_debug_callback task_p 0x62039020 ( process = 0x62039020 )
reaper . task : Recieved DBHMT_REMTASK ( process = 0x62039020 )
reaper . task : amigaos_debug_callback returning 0
</ amigaos_debug_callback >
Results from the console:
4.RAM Disk :> gdb_751_commit_45 - q test
_initialize_amigaos_nat
[New inferior 0 ]
Reading symbols from / RAM Disk / test ... done .
( gdb ) break 1
break 1
target_memory_map ()
target_get_section_table ()
target_get_section_table () for exec
exec : target_xfer_partial ( 2 , ( null ), 0x65552038 , 0x0 , 0x10004d4 , 4 ) = 4 , bytes = 3d 20 01 00
target_get_section_table ()
target_get_section_table () for exec
exec : target_xfer_partial ( 2 , ( null ), 0x65552108 , 0x0 , 0x10004d4 , 4 ) = 4 , bytes = 3d 20 01 00
target_get_section_table ()
target_get_section_table () for exec
exec : target_xfer_partial ( 2 , ( null ), 0x65552458 , 0x0 , 0x10004d4 , 4 ) = 4 , bytes = 3d 20 01 00
target_get_section_table ()
target_get_section_table () for exec
exec : target_xfer_partial ( 2 , ( null ), 0x655526d0 , 0x0 , 0x10004d4 , 4 ) = 4 , bytes =
3d 20 01 00
Breakpoint 1 at 0x10004d4 : file test . c , line 1.
( gdb ) r
r
t : PowerPC PPCBug monitor on port 0
t : PowerPC PPCBug monitor on port 1
t : DINK32 monitor
t : Debug an Amiga process
amigaos_can_run returning 1
t : Remote serial target in gdb - specific protocol
t : Extended remote serial target in gdb - specific protocol
t : Local trace dump file
t : Local core dump file
t : Local exec file
t : Process record and replay target
t : Process record and replay target
Starting program : / RAM Disk / test
t : PowerPC PPCBug monitor on port 0
t : PowerPC PPCBug monitor on port 1
t : DINK32 monitor
t : Debug an Amiga process
amigaos_can_run returning 1
t : Remote serial target in gdb - specific protocol
t : Extended remote serial target in gdb - specific protocol
t : Local trace dump file
t : Local core dump file
t : Local exec file
t : Process record and replay target
t : Process record and replay target
[New process 1644400672 ]
target_create_inferior (/ RAM Disk / test , , xxx , 1 )
target_terminal_ours ()
target_get_section_table ()
target_get_section_table () for exec
subtask : target_xfer_partial ( 10 , target . xml , 0x64e14fc8 , 0x0 , 0x0 , 4095 ) = - 1
target_thread_architecture ( process 1644400672 ) = 0x64e31010 [ powerpc : common ]
ptid_equal ( null_ptid , ptid ( 1644400672 , 0 , 0 )
pid 1644400672 for ptid ( 1644400672 , 0 , 0 )
get_thread_arch_regcache ( process 1644400672 ) = 0x64e59ee0
ptid_equal ( null_ptid , ptid ( 1644400672 , 0 , 0 )
pid 1644400672 for ptid ( 1644400672 , 0 , 0 )
get_thread_arch_regcache ( process 1644400672 ) = 0x64e59ee0
target_fetch_registers ( pc ) = 00000000 0x0 0
target_get_section_table ()
target_get_section_table () for exec
subtask : target_xfer_partial ( 11 , ( null ), 0x64e14fc8 , 0x0 , 0x0 , 4095 ) = - 1
target_memory_map ()
subtask : target_xfer_partial ( 2 , ( null ), 0x655522f8 , 0x0 , 0x10004d4 , 4 ) = 4 , bytes = 00 00 00 00
ptid_equal ( null_ptid , ptid ( 1644400672 , 0 , 0 )
pid 1644400672 for ptid ( 1644400672 , 0 , 0 )
get_thread_arch_regcache ( process 1644400672 ) = 0x64e59ee0
ptid_equal ( null_ptid , ptid ( 1644400672 , 0 , 0 )
pid 1644400672 for ptid ( 1644400672 , 0 , 0 )
get_thread_arch_regcache ( process 1644400672 ) = 0x64e59ee0
subtask : target_xfer_partial ( 2 , ( null ), 0x64e153b0 , 0x0 , 0x10004d4 , 4 ) = 4 , bytes =
00 00 00 00
subtask : target_xfer_partial ( 2 , ( null ), 0x0 , 0x65553018 , 0x10004d4 , 4 ) = 4 , bytes = 7d 82 10 08
target_insert_breakpoint ( 0x010004d4 , xxx ) = 0
ptid_equal ( null_ptid , ptid ( 1644400672 , 0 , 0 )
pid 1644400672 for ptid ( 1644400672 , 0 , 0 )
get_thread_arch_regcache ( process 1644400672 ) = 0x64e59ee0
ptid_equal ( null_ptid , ptid ( 1644400672 , 0 , 0 )
pid 1644400672 for ptid ( 1644400672 , 0 , 0 )
get_thread_arch_regcache ( process 1644400672 ) = 0x64e59ee0
t : PowerPC PPCBug monitor on port 0
t : PowerPC PPCBug monitor on port 1
t : DINK32 monitor
t : Debug an Amiga process
amigaos_can_run returning 1
t : Remote serial target in gdb - specific protocol
t : Extended remote serial target in gdb - specific protocol
t : Local trace dump file
t : Local core dump file
t : Local exec file
t : Process record and replay target
t : Process record and replay target
target_terminal_inferior ()
target_resume (- 1 , continue, 0 )
t : PowerPC PPCBug monitor on port 0
t : PowerPC PPCBug monitor on port 1
t : DINK32 monitor
t : Debug an Amiga process
amigaos_can_run returning 1
t : Remote serial target in gdb - specific protocol
t : Extended remote serial target in gdb - specific protocol
t : Local trace dump file
asdfasdf
t : Local core dump file
t : Local exec file
t : Process record and replay target
t : Process record and replay target
As far as I can see when comparing serial logs from x5000 and pegasos2, x5000 do not like the "amigaos_xfer_memory()" function. It can be that it has an issue, just a crash didn't happen on other than x5000 machines by some luck (maybe that issue indirectly can have impact on non-working breakpoint code?)
Re: GDB
Posted on:
2021/4/1 12:17
#146
Home away from home
Joined: 2007/9/11 12:31Last Login
: Yesterday 8:41
From Russia
Group:
Registered Users
@billyfish Havent time to works on breakpoint stuff ? Maybe have some issues in process which worth to discuss so to progress futher ?
Re: GDB
Posted on:
2021/4/3 15:30
#147
Just popping in
Joined: 2011/7/20 20:01Last Login
: Yesterday 21:18
From In the sticks
Group:
Registered Users
@kas1e
Hi Roman, yeah it's been a bit slow in the last few days but I'm hoping to pick it up again in the next week. Obviously if anyone wants to get involved too, then they're very welcome!
I've been going through the Spotless code too so see how things are done there which hopefully will give some insight into what I'm not doing for the breakpoints to be picked up correctly in GDB.
Re: GDB
Posted on:
2021/5/7 23:48
#148
Just popping in
Joined: 2011/7/20 20:01Last Login
: Yesterday 21:18
From In the sticks
Group:
Registered Users
Sorry for being away from this for a few weeks, work has been crazy, I'll be back on this in thex next few days. As another route into this, I've also been working on getting a version of Alfkil's SimpleDebug code, since it worked for me, ported from C++ to C as a way of getting another debugger working too. One of the lessons I got from our work on GDB is that it helps me actually understand what is going on codewise more easily doing it that way, rather than tinkering at the edges of existing code not necessarily understanding what is going on. This should help the GDB port too and of course I'll make the github repo public. I also plan to add things like a gui to it too.
Re: GDB
Posted on:
2021/5/8 6:13
#149
Home away from home
Joined: 2007/9/11 12:31Last Login
: Yesterday 8:41
From Russia
Group:
Registered Users
@billyfish
Cool, I was in fear you give up :)
As for another debugger that also good, but we surely need GDB, because we only need "to port" things which already done.
Quote:
I also plan to add things like a gui to it too.Do you mean to GDB? Yeah, that will be more or less easy, as it well documented how to make GUIs for GDB, and some of GUIs even already present in (i compile SDL2 fronted based on ncureses, and it works, through with lots of bugs).
What we need now is tracing to work, and it will be already usable.
Re: GDB
Posted on:
2021/5/9 11:05
#150
Home away from home
Joined: 2006/11/26 21:45Last Login
: Yesterday 23:00
From a dying planet
Group:
Registered Users
@billyfish I plan to learn to use and then heavily (ab)use it, once it's done. Thank you for not giving up on GDB.
Re: GDB
Posted on:
2021/5/18 19:43
#151
Just popping in
Joined: 2011/7/20 20:01Last Login
: Yesterday 21:18
From In the sticks
Group:
Registered Users
@Raziel I look forward to it getting (ab)used! Well I still haven't managed to get the breakpoints working yet, something odd is going on. I've used both the old gdb trap instruction and the code that SimpleDebug uses and even though it appears that the breakpoint instructions get written to the memory, the code just happily executes. I've confirmed that the SimpleDebug breakpoint codes in itself so it's a bit of a puzzle. The next thing to check is the memory address that is getting overwritten with the breakpoint to see if it's the same for both programs. On the plus side, the work I've done on adapting SimpleDebug means that we're still closer to having at least one debugger. My plan is still to get gdb behaving properly too but it's good to have options.
Re: GDB
Posted on:
2021/5/19 11:55
#152
Just popping in
Joined: 2012/10/17 20:42Last Login
: Yesterday 13:25
Group:
Registered Users
I guess for breakpoint to work they have to be in memory and not in the processor caches, so caches must be off when setting the breakpoint right?
Re: GDB
Posted on:
2021/5/19 12:12
#153
Just popping in
Joined: 2011/7/20 20:01Last Login
: Yesterday 21:18
From In the sticks
Group:
Registered Users
@Kamelito
That's a good point, I call
IExec -> CacheClearE (( APTR ) address , 0xffffffff , CACRF_ClearI | CACRF_ClearD );
after setting them. It's the same code in both SimpleDebug and gdb, but only works in SimpleDebug at the moment. My next step is to check a few bytes either side of where I'm putting the breakpoint to check whether they are the same in both situations in case I'm somehow writing to the wrong address in gdb.
Re: GDB
Posted on:
2021/5/19 18:16
#154
Just popping in
Joined: 2012/10/17 20:42Last Login
: Yesterday 13:25
Group:
Registered Users
You could maybe try with ClearCacheU and see if it works.
Re: GDB
Posted on:
2021/5/19 21:09
#155
Just can't stay away
Joined: 2009/10/7 1:11Last Login
: 10/27 15:47
From Odense
Group:
Registered Users
@billyfish
Quote:
Sorry for being away from this for a few weeks, work has been crazy, I'll be back on this in thex next few days. As another route into this, I've also been working on getting a version of Alfkil's SimpleDebug code, since it worked for me, ported from C++ to C as a way of getting another debugger working too. One of the lessons I got from our work on GDB is that it helps me actually understand what is going on codewise more easily doing it that way, rather than tinkering at the edges of existing code not necessarily understanding what is going on. This should help the GDB port too and of course I'll make the github repo public. I also plan to add things like a gui to it too. Thanks for taking my code seriously. It is definetely of paedagogical interest if not otherwise. It is also meant as a gift. If I had a machine, I would continue the work myself, but sadly I don't. Good to see the wheels running in here.
Edited by alfkil on 2021/5/22 20:11:42
Re: GDB
Posted on:
2021/5/22 11:36
#156
Just popping in
Joined: 2007/2/10 13:46Last Login
: 11/22 14:35
From Frankfurt / Germany
Group:
Registered Users
@billyfish
Quote:
I guess for breakpoint to work they have to be in memory and not in the processor caches, so caches must be off when setting the breakpoint right? I'm not really into the whole stuff, but having reading the whole thread, and it seems that you are stuck with the problem that your set breakpoints doesn't trigger, i give here my two cents about it. It might be completely wrong are right or something in between, but i hope it it can be taken as brain storm input and you get something from it.
Anyway, might it be that you except for installing the breakpoint, which is a "trap" instruction you even need to install some kind of interrupt handling routine? Because during google
trap instruction on ppc , i found that the execution of a trap instruction raises a program interrupt.
I have no clue how to do it on the Amiga side. I tried to look into the db101 code, to see if there is any code underlining my assumption. But it is way out of my scope. Furthermore i would guess that the kernel has a default interrupt routine for that case, which just does nothing. And thus nothing happens when the code executes your breakpoint.
Re: GDB
Posted on:
2021/5/22 18:51
#157
Just can't stay away
Joined: 2009/10/7 1:11Last Login
: 10/27 15:47
From Odense
Group:
Registered Users
There is an issue on timing related to the setting and clearing of breakpoints. What kasie and billyfish is trying to do is to clear the instruction cache and is hoping, that this will establish a safety point to rely uppon, when execution of the sub-process is re-initiated. Only problem is : We have not established this. Unless we know how to rely and/or not rely on a function like IMMU->CacheClearE(), we have no grounds for assuming, that it works in one way or another. In my initial work with db101 (and Qt as well), I needed to constantly check the minutest details about how the different functions of the system expressed their reliability-matrices. This resulted in a rather large battery of test-apps - all written in c - that might still reside on some harddrive somewhere. This is of course not an attempt to elicit some kind of awe-inflicting "historical value"-argument on my old harddrives. It is rather to say, that if you guys want to make progress, you need to isolate problems, and you need to go small - very small. I'd say, unless you can create a test-application in less than 5 lines for the main() function, and unless you can make that test app absolutely certainty-locked-hammered-and-closure-proven show, that your case is clear as a polished winter morning in your favorite fairytale fantasy - then you still have work to do. Keep going, I know you can fix this.
Edited by alfkil on 2021/5/22 19:25:28 Edited by alfkil on 2021/5/22 19:26:06
Re: GDB
Posted on:
2021/5/22 20:17
#158
Just can't stay away
Joined: 2009/10/7 1:11Last Login
: 10/27 15:47
From Odense
Group:
Registered Users
Btw, you might want to work on this one, instead of having a ReAction frontend in the way :
https://github.com/alfkil/SimpleDebug
Edited by alfkil on 2021/5/22 20:35:03
Re: GDB
Posted on:
2021/5/22 20:22
#159
Just can't stay away
Joined: 2009/10/7 1:11Last Login
: 10/27 15:47
From Odense
Group:
Registered Users
This is status here :
Screenshot
Re: GDB
Posted on:
2021/5/23 12:31
#160
Just popping in
Joined: 2006/11/30 11:59Last Login
: 11/22 18:20
From Lund, Sweden
Group:
Registered Users
@alfkil
Quote:
Thanks for taking my code seriously. It is definetely of paedagogical interest if not otherwise. It is also meant as a gift. If I had a machine, I would continue the work myself, but sadly I don't. Good to see the wheels running in here. Are you saying that you don't have any OS4 hardware? If so, it shouldn't be like that. Someone should fix it.
Currently Active Users Viewing This Thread:
2
(
0 members
and 2 Anonymous Users
)