Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
32 user(s) are online (16 user(s) are browsing Forums)

Members: 0
Guests: 32

more...

Support us!

Headlines

 
  Register To Post  

« 1 ... 5 6 7 (8) 9 10 »
Re: GDB
Home away from home
Home away from home


See User information
@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 ProcessCreating inferior processexec_file = /Work/aa/testargs = , env 0x614C07B0from_tty 1
<AllocateDebugInfo>
</
AllocateDebugInfo>
<
Ux2DOS>
</
Ux2DOS>
Shell ProcessGetting elf handle for seglist 0x185DAC75
Shell Process
Process created0x61A26490
Shell Process
Task0x61A26490
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 Processterminal_ours is a STUB
</amigaos_terminal_ours>
<
amigaos_fetch_registers>
Shell Processinferior_ptid=0x6161E868
Shell Process
regno 64 (pc)
Shell Processcontext 0x6163BFC8sp 0pc 0lr 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 Processamigaos_xfer_memory(memaddr 0x010004D4myaddr 0x6161E2F8len 4write 0attrib 0x00000000target 0x61626A4C)
kernel 54.34 (5.2.2021AmigaOne X5000 release
Machine model
(AmigaOne X5000/20)
Dump of context at 0xEFC717C0
Trap type
DSI exception
DSISR
00000000  DAR010004D4
No matching page found
Machine State 
(raw): 0x0002F030
Machine State 
(verbose): [Critical Ints on] [ExtInt on] [User] [IAT on] [DAT on]
Instruction pointerin module kernel+0x00041A70 (0x01841A70)
Crashed processgdb_751 (0x61A29D80)
DSI verbose error descriptionAccess 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   XERA000007E  CTR00000001  LR: 01841BD4

Disassembly of crash site
:
 01841
A603943FFFC   subi              r10,r3,4
 
01841A645529F0BE   rlwinm            r9,r9,30,2,31
 
01841A6839290001   addi              r9,r9,1
 
01841A6C7D2903A6   mtctr             r9
>01841A7085280004   lwzu              r9,4(r8)
 01841
A74952A0004   stwu              r9,4(r10)
 01841
A784200FFF8   bdnz+             0x1841A70
 
01841A7C54A507BE   rlwinm            r5,r5,0,30,31
 
01841A807C843A14   add               r4,r4,r7
 
01841A842F850000   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 50HAL_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)
r11native kernel module newlib.library.kmod+0x00008f84
r13
gdb_751:symbuf()+0x3d5c (section 16 0x753C)
r14gdb_751:mi_cmds()+0x4a0 (section 11 0xFE4)
r15module Work:aa/test at 0x00000001 (section 0 0xFFFFFFDC)
r18gdb_751:mi_cmds()+0x4a0 (section 11 0xFE4)
r19gdb_751:mi_cmds()+0x4a0 (section 11 0xFE4)
r21native kernel module kernel+0x00046030
r22
gdb_751:amigaos_ops()+0x0 (section 16 0x10C0)
r26native kernel module kernel+0x00a4a968
r28
module gdb_751 at 0x614CBE14 (section 1 0x4DF0)
r30gdb_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:
(
0x6161E120native kernel module kernel+0x00041a70
(0x6161E130native kernel module kernel+0x00041bd4
(0x6161E140gdb_751:amigaos_deprecated_xfer_memory()+0x2c4 (section 1 0x27F30)
(
0x6161E190gdb_751:default_xfer_partial()+0x128 (section 1 0x13AEAC)
(
0x6161E1C0gdb_751:memory_xfer_partial_1()+0x1a8 (section 1 0x13C89C)
(
0x6161E240gdb_751:target_xfer_partial()+0x230 (section 1 0x13CFDC)
(
0x6161E290gdb_751:target_read()+0xc8 (section 1 0x13C2D4)
(
0x6161E2E0gdb_751:target_read_memory()+0x44 (section 1 0x13C41C)
(
0x6161E2F0gdb_751:rs6000_skip_main_prologue()+0x30 (section 1 0x2CF0)
(
0x6161E320gdb_751:skip_prologue_sal()+0x418 (section 1 0xDEAA8)
(
0x6161E3A0gdb_751:convert_linespec_to_sals()+0xa58 (section 1 0xEEEEC)
(
0x6161E480gdb_751:parse_linespec()+0x314 (section 1 0xF1244)
(
0x6161E5F0gdb_751:decode_line_full()+0x140 (section 1 0xF1CC8)
(
0x6161E6D0gdb_751:decode_linespec_default.isra.49()+0x50 (section 1 0x98A20)
(
0x6161E700gdb_751:addr_string_to_sals()+0x9c (section 1 0xA5AF8)
(
0x6161E830gdb_751:breakpoint_re_set_default()+0x40 (section 1 0xA8A88)
(
0x6161E880gdb_751:breakpoint_re_set_one()+0x58 (section 1 0x9457C)
(
0x6161E890gdb_751:catch_errors()+0x74 (section 1 0x111F4C)
(
0x6161E8F0gdb_751:breakpoint_re_set()+0xbc (section 1 0xA8C40)
(
0x6161E930gdb_751:post_create_inferior()+0xec (section 1 0xF7B00)
(
0x6161E980gdb_751:run_command_1()+0x194 (section 1 0xF82B4)
(
0x6161E9E0gdb_751:execute_command()+0x278 (section 1 0x1D8EF8)
(
0x6161EA20gdb_751:command_handler()+0x84 (section 1 0x11AF54)
(
0x6161EA40gdb_751:command_line_handler()+0x464 (section 1 0x11B608)
(
0x6161EA90gdb_751:rl_callback_read_char()+0x1a8 (section 1 0x226D58)
(
0x6161EAD0gdb_751:rl_callback_read_char_wrapper()+0x10 (section 1 0x11AFD0)
(
0x6161EAE0gdb_751:process_event()+0xb8 (section 1 0x1198B0)
(
0x6161EB00gdb_751:gdb_do_one_event()+0x3a4 (section 1 0x119D3C)
(
0x6161EB40gdb_751:start_event_loop()+0x40 (section 1 0x119F0C)
(
0x6161EB80gdb_751:captured_command_loop()+0x1c (section 1 0x1136D4)
(
0x6161EB90gdb_751:catch_errors()+0x74 (section 1 0x111F4C)
(
0x6161EBF0gdb_751:captured_main()+0xcb4 (section 1 0x1146F4)
(
0x6161EC80gdb_751:catch_errors()+0x74 (section 1 0x111F4C)
(
0x6161ECE0gdb_751:gdb_main()+0x34 (section 1 0x1148A8)
(
0x6161ECF0gdb_751:main()+0x30 (section 1 0x478)
(
0x6161ED10native kernel module newlib.library.kmod+0x00002614
(0x6161ED60native kernel module newlib.library.kmod+0x00003340
(0x6161EF10native kernel module newlib.library.kmod+0x00003864
(0x6161EF40gdb_751:_start()+0x1e0 (section 1 0x1DC)
(
0x6161EF90native kernel module dos.library.kmod+0x0002a490
(0x6161EFC0native kernel module kernel+0x0005c6c8
(0x6161EFD0native kernel module kernel+0x0005c740

Disassembly of crash site
:
 01841
A603943FFFC   subi              r10,r3,4
 
01841A645529F0BE   rlwinm            r9,r9,30,2,31
 
01841A6839290001   addi              r9,r9,1
 
01841A6C7D2903A6   mtctr             r9
>01841A7085280004   lwzu              r9,4(r8)
 01841
A74952A0004   stwu              r9,4(r10)
 01841
A784200FFF8   bdnz+             0x1841A70
 
01841A7C54A507BE   rlwinm            r5,r5,0,30,31
 
01841A807C843A14   add               r4,r4,r7
 
01841A842F850000   cmpwi             cr7,r5,0
Stack pointer 
(0x6161E120is 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   5sigrec 0x20000000sigwait 0xA8000100masked 0x20000000)
                    
IDF1/FastFileSystem 53.2  (pri   5sigrec 0x20000000sigwait 0xA8000100masked 0x20000000)
                           
WinFrame 1 Process (pri   5sigrec 0x00800000sigwait 0xFF800000masked 0x00800000)
                                 
compose.task (pri   1sigrec 0x00000010sigwait 0x00000010masked 0x00000010)
                                    
Workbench (pri   1sigrec 0x80000100sigwait 0x80000000masked 0x80000000)
                       
ScreenBlanker Library. (pri   1sigrec 0x08000100sigwait 0xE8001000masked 0x08000000)
                                  
dopus_clock (pri   1sigrec 0x40000000sigwait 0xC0000000masked 0x40000000)
                                      
AmiDock (pri   0sigrec 0x00300100sigwait 0x00000100masked 0x00000100)
                           
NotificationServer (pri   0sigrec 0x08000000sigwait 0xF8001000masked 0x08000000)
                               
TCP/IP Control (pri   0sigrec 0x40000100sigwait 0xF8009080masked 0x40000000)
                                
ELF Collector (pri   0sigrec 0x00000100sigwait 0x00000100masked 0x00000100)
                                    
hub.usbfd (pri   0sigrec 0x10000000sigwait 0x30000000masked 0x10000000)
                                    
hub.usbfd (pri   0sigrec 0x10000000sigwait 0x30000000masked 0x10000000)
                             
CPUDock_idleTask (pri -127sigrec 0x00000000sigwait 0x40000000masked 0x00000000)
                                    
idle.task (pri -128sigrec 0x00000000sigwait 0x00000000masked 0x00000000)

Waiting Tasks
                      DH1
/NGFileSystem 54.72  (pri  10sigrec 0x00000100sigwait 0xF0000000masked 0x00000000)
                      
DH0/NGFileSystem 54.72  (pri  10sigrec 0x00000100sigwait 0xF0000000masked 0x00000000)
                      
DH4/NGFileSystem 54.72  (pri  10sigrec 0x00000100sigwait 0xF0000000masked 0x00000000)
                                 
input.device (pri  20sigrec 0x00000000sigwait 0x80000000masked 0x00000000)
                                        
rx_pm (pri 100sigrec 0x00000000sigwait 0x80000001masked 0x00000000)
                                    
USB stack (pri  18sigrec 0x00000000sigwait 0xF800D000masked 0x00000000)
                       
CON/con-handler 53.82  (pri   5sigrec 0x00000000sigwait 0xB0000100masked 0x00000000)
                        
appdir envarc manager (pri -50sigrec 0x00000000sigwait 0x00000100masked 0x00000000)
                                    
hid.usbfd (pri  10sigrec 0x00000100sigwait 0xE0000000masked 0x00000000)
                                 
HID Keyboard (pri  10sigrec 0x00000000sigwait 0x90001000masked 0x00000000)
                           
vsata disk changer (pri   0sigrec 0x00000000sigwait 0x80000000masked 0x00000000)
                                
serial.device (pri   1sigrec 0x00000000sigwait 0x7E000000masked 0x00000000)
                      
ICD1/CDFileSystem 53.8  (pri  10sigrec 0x00000000sigwait 0x00000100masked 0x00000000)
                      
ICD0/CDFileSystem 53.8  (pri  10sigrec 0x00000000sigwait 0x00000100masked 0x00000000)
                   
DH2/SmartFilesystem 1.293  (pri  11sigrec 0x00000000sigwait 0x00000100masked 0x00000000)
                   
DH3/SmartFilesystem 1.293  (pri  11sigrec 0x00000000sigwait 0x00000100masked 0x00000000)
                      
p50x0sata.device Port 0 (pri  12sigrec 0x10000000sigwait 0xC0007000masked 0x00000000)
                            
dos_signal_server (pri  -5sigrec 0x00000000sigwait 0x0000F000masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                                       
X-Dock (pri   0sigrec 0x00000100sigwait 0xFE001000masked 0x00000000)
                                    
hid.usbfd (pri  10sigrec 0x00000100sigwait 0xE0000000masked 0x00000000)
                                    
HID Mouse (pri  10sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                    
URL/launch-handler 53.39  (pri   5sigrec 0x00000100sigwait 0x80000000masked 0x00000000)
              
TEXTCLIP/textclip-handler 53.4  (pri   3sigrec 0x00000100sigwait 0x80000000masked 0x00000000)
                  
RANDOM/Random-Handler 52.1  (pri   5sigrec 0x00000000sigwait 0x00000100masked 0x00000000)
                               
P50x0 Ethernet (pri  20sigrec 0x00000000sigwait 0x00001000masked 0x00000000)
                               
Background CLI (pri   0sigrec 0x00000100sigwait 0x10001080masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                       
CON/con-handler 53.82  (pri   5sigrec 0x00000000sigwait 0xB0000100masked 0x00000000)
                                 
Mounter Task (pri  -1sigrec 0x00000000sigwait 0xB0001000masked 0x00000000)
                                  
Mounter GUI (pri   0sigrec 0x00000000sigwait 0x80007000masked 0x00000000)
                    
Mounter Companion Process (pri  -1sigrec 0x00000000sigwait 0x80003000masked 0x00000000)
                     
Workbench DosList Notify (pri   1sigrec 0x00000100sigwait 0x00003000masked 0x00000000)
                           
dos_filedir_notify (pri   5sigrec 0x80000000sigwait 0x40001000masked 0x00000000)
                               
Background CLI (pri   0sigrec 0x00000100sigwait 0x80000000masked 0x00000000)
                   
DH2/SmartFilesystem 1.293  (pri  10sigrec 0x00000000sigwait 0xE0000100masked 0x00000000)
                   
DH3/SmartFilesystem 1.293  (pri  10sigrec 0x00000000sigwait 0xE0000100masked 0x00000000)
                                   
RexxMaster (pri   4sigrec 0x00000100sigwait 0xC0000000masked 0x00000000)
                                 
ContextMenus (pri   0sigrec 0x00000000sigwait 0xE0001000masked 0x00000000)
                               
ramlib.support (pri  -2sigrec 0x00000000sigwait 0x80005000masked 0x00000000)
                                       
ramlib (pri   1sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
              
ContextMenus Command Dispatcher (pri   1sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x80000010masked 0x00000000)
                         
KeymapSwitcher.docky (pri   0sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                         
TCP/IP Configuration (pri   0sigrec 0x00000100sigwait 0xF8003000masked 0x00000000)
                                      
AsyncWB (pri   0sigrec 0x00000100sigwait 0xC0001000masked 0x00000000)
                          
select.gadget prefs (pri   0sigrec 0x00000100sigwait 0x80001000masked 0x00000000)
                                     
RAWBInfo (pri   0sigrec 0x00000100sigwait 0x80001000masked 0x00000000)
           
texteditor.gadget Clipboard Server (pri   1sigrec 0x00000100sigwait 0x80000000masked 0x00000000)
                                         
FKey (pri   0sigrec 0x00000100sigwait 0xC000D000masked 0x00000000)
                       
CON/con-handler 53.82  (pri   5sigrec 0x00000000sigwait 0xA0000100masked 0x00000000)
                       
CON/con-handler 53.82  (pri   5sigrec 0x00000000sigwait 0xA0000100masked 0x00000000)
                                 
ClickToFront (pri  21sigrec 0x00000100sigwait 0xE000D000masked 0x00000000)
                       
CON/con-handler 53.82  (pri   5sigrec 0x00000000sigwait 0xA0000100masked 0x00000000)
                                     
DefIcons (pri   0sigrec 0x00000100sigwait 0x80009000masked 0x00000000)
                       
CON/con-handler 53.82  (pri   5sigrec 0x00000000sigwait 0xA0000100masked 0x00000000)
                       
CON/con-handler 53.82  (pri   5sigrec 0x00000000sigwait 0xA0000100masked 0x00000000)
                   
Workbench Clipboard Server (pri   1sigrec 0x00000100sigwait 0x80000000masked 0x00000000)
                               
Background CLI (pri   0sigrec 0x00000100sigwait 0x54009000masked 0x00000000)
            
application.library messageserver (pri   0sigrec 0x00000000sigwait 0xC0000000masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x80000000sigwait 0x00000010masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                           
TCP/IP Superserver (pri   0sigrec 0x00000100sigwait 0xD0000080masked 0x00000000)
                                   
TCP/IP Log (pri   0sigrec 0x00000000sigwait 0x80003000masked 0x00000000)
                                
dopus_arbiter (pri   0sigrec 0x00000000sigwait 0x00000100masked 0x00000000)
                                
dopus_hotkeez (pri   1sigrec 0x00000000sigwait 0xC0000000masked 0x00000000)
                                   
▒ IPrefs ▒ (pri   0sigrec 0x00000000sigwait 0x0000F000masked 0x00000000)
                                    
hid.usbfd (pri  10sigrec 0x00000100sigwait 0xE0000000masked 0x00000000)
                                 
HID Consumer (pri  10sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                                      
ConClip (pri   0sigrec 0x00000000sigwait 0x80000000masked 0x00000000)
                                 
HID Consumer (pri  10sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                      
diskimage.device unit 1 (pri   4sigrec 0x00000100sigwait 0xC0000000masked 0x00000000)
                      
diskimage.device unit 0 (pri   4sigrec 0x00000100sigwait 0xC0000000masked 0x00000000)
                      
diskimage.device unit 5 (pri   4sigrec 0x00000100sigwait 0xC0000000masked 0x00000000)
                      
diskimage.device unit 4 (pri   4sigrec 0x00000100sigwait 0xC0000000masked 0x00000000)
                                 
HID Consumer (pri  10sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                                 
HID Keyboard (pri  10sigrec 0x00000000sigwait 0x90001000masked 0x00000000)
                                    
hid.usbfd (pri  10sigrec 0x00000100sigwait 0xE0000000masked 0x00000000)
                                    
hid.usbfd (pri  10sigrec 0x00000100sigwait 0xE0000000masked 0x00000000)
                       
AUDIO/AHI-Handler 6.2  (pri   5sigrec 0x00000000sigwait 0x00000100masked 0x00000000)
                 
APPDIR/appdir-handler 54.18  (pri   5sigrec 0x00000100sigwait 0x80000000masked 0x00000000)
                            
USB stack Process (pri   0sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                         
MassStorage Notifier (pri   0sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                                  
DST watcher (pri   0sigrec 0x00000000sigwait 0xC0000000masked 0x00000000)
                               
NotifyA Server (pri   1sigrec 0x00000000sigwait 0xE8001000masked 0x00000000)
                         
string.gadget server (pri   1sigrec 0x00000100sigwait 0x40000000masked 0x00000000)
                            
datatypes.library (pri   1sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                       
RAM/ram-handler 54.24  (pri  10sigrec 0x00000100sigwait 0x80000000masked 0x00000000)
                       
ENV/env-handler 54.18  (pri   5sigrec 0x00000100sigwait 0x80000000masked 0x00000000)
                       
CON/con-handler 53.82  (pri   5sigrec 0x00000000sigwait 0xA0000100masked 0x00000000)
                       
RAW/con-handler 53.82  (pri   5sigrec 0x00000000sigwait 0xA0000100masked 0x00000000)
                       
CON/con-handler 53.82  (pri   5sigrec 0x00000000sigwait 0xA0000100masked 0x00000000)
                          
SFS DosList handler (pri  19sigrec 0x00000000sigwait 0x80000000masked 0x00000000)
                             
dos_nbmd_process (pri   5sigrec 0x00000000sigwait 0x00001100masked 0x00000000)
                             
dos_lock_handler (pri   5sigrec 0x00000000sigwait 0x00001100masked 0x00000000)
                                    
hub.usbfd (pri   0sigrec 0x00000000sigwait 0x30000000masked 0x00000000)
                                    
hub.usbfd (pri   0sigrec 0x00000000sigwait 0x30000000masked 0x00000000)
                      
p50x0sata.device Port 1 (pri  12sigrec 0x00000000sigwait 0xC0007000masked 0x00000000)
                       
DMA2 Channel 4 Handler (pri   0sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                       
DMA1 Channel 4 Handler (pri   0sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                       
DMA2 Channel 3 Handler (pri   0sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                       
DMA1 Channel 3 Handler (pri   0sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                       
DMA2 Channel 2 Handler (pri   0sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                       
DMA1 Channel 2 Handler (pri   0sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                       
DMA2 Channel 1 Handler (pri   0sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                       
DMA1 Channel 1 Handler (pri   0sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                     
Exec Command and Control (pri  30sigrec 0x00000000sigwait 0x80000000masked 0x00000000)
                                        
rx_gc (pri 100sigrec 0x00000000sigwait 0x80000001masked 0x00000000)

Suspended Tasks
                                
/Work/aa/test (pri   0sigrec 0x00000000sigwait 0x00000000masked 0x00000000)


Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: GDB
Just can't stay away
Just can't stay away


See User information
(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 ProcessCreating inferior processexec_file = /Devel/SDK/ejemplos/helloworldargs = , env 0x5f9b4c80from_tty 1
<AllocateDebugInfo>
</
AllocateDebugInfo>
<
Ux2DOS>
</
Ux2DOS>
Shell ProcessGetting elf handle for seglist 0x161efc05
[_impl_AddTaskAdding Task 0x59b74c70, /Devel/SDK/ejemplos/helloworld (0x5c069c90)
Shell ProcessProcess created0x59b74c70
Shell Process
Task0x59b74c70
Shell Process
Suspending Task
[_impl_SuspendTaskSuspending 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 Processterminal_ours is a STUB
</amigaos_terminal_ours>
<
amigaos_fetch_registers>
Shell Processinferior_ptid=0x5f234878
Shell Process
regno 64 (pc)
Shell Processcontext 0x5f945038sp 0pc 0lr 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 Processamigaos_xfer_memory(memaddr 0x10004d4myaddr 0x5f234308len 4write 0attrib 0x0target 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 ProcessTrying to insert breakpoint at 0x10004d4
Shell Process
bp_len is 4
<DoBreakpoint>
Shell Processcurrent_mem_attr 1024 address_p 0x10004d4 real_address_p 0x10004d4 bp_data_p 0x5f99f078 (0)
Shell Processwriting 188854272 to bp_data_p 0x5f99f078 (0meth_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 Processamigaos_resumerestarting 0x59b74c70
</amigaos_resume>
[
_impl_OpenLibraryCalling DebuggerHook for /Devel/SDK/ejemplos/helloworld
<amigaos_debug_callback>
/
Devel/SDK/ejemplos/helloworldamigaos_debug_callback task_p 0x59b74c70 (process=0x59b74c70)
/
Devel/SDK/ejemplos/helloworldReceived DBHMT_OPENLIB (process=0x59b74c70)
/
Devel/SDK/ejemplos/helloworldamigaos_debug_callback returning 0
</amigaos_debug_callback>
[
_impl_OpenLibraryCalling DebuggerHook for /Devel/SDK/ejemplos/helloworld
<amigaos_debug_callback>
/
Devel/SDK/ejemplos/helloworldamigaos_debug_callback task_p 0x59b74c70 (process=0x59b74c70)
/
Devel/SDK/ejemplos/helloworldReceived DBHMT_OPENLIB (process=0x59b74c70)
/
Devel/SDK/ejemplos/helloworldamigaos_debug_callback returning 0
</amigaos_debug_callback>
<
amigaos_can_run>
</
amigaos_can_run>
[
_impl_CloseLibraryCalling DebuggerHook for /Devel/SDK/ejemplos/helloworld
<amigaos_debug_callback>
/
Devel/SDK/ejemplos/helloworldamigaos_debug_callback task_p 0x59b74c70 (process=0x59b74c70)
/
Devel/SDK/ejemplos/helloworldReceived DBHMT_CLOSELIB (process=0x59b74c70)
/
Devel/SDK/ejemplos/helloworldamigaos_debug_callback returning 0
</amigaos_debug_callback>
[
_impl_CloseLibraryCalling DebuggerHook for /Devel/SDK/ejemplos/helloworld
<amigaos_debug_callback>
/
Devel/SDK/ejemplos/helloworldamigaos_debug_callback task_p 0x59b74c70 (process=0x59b74c70)
/
Devel/SDK/ejemplos/helloworldReceived DBHMT_CLOSELIB (process=0x59b74c70)
/
Devel/SDK/ejemplos/helloworldamigaos_debug_callback returning 0
</amigaos_debug_callback>
[
_impl_RemTaskRemoving 0x59b74c70 (self) = /Devel/SDK/ejemplos/helloworld
<amigaos_debug_callback>
reaper.taskamigaos_debug_callback task_p 0x59b74c70 (process=0x59b74c70)
reaper.taskRecieved DBHMT_REMTASK (process=0x59b74c70)
reaper.taskamigaos_debug_callback returning 0
</amigaos_debug_callback>
<
amigaos_wait>
Shell Processwait ptid 0x59b74c70 (ffffffff), status 0x5f234888kind 0
<is_process_alive>
</
is_process_alive>
Shell ProcessTarget has exited
</amigaos_wait>
<
amigaos_terminal_ours>
Shell Processterminal_ours is a STUB
</amigaos_terminal_ours>
<
amigaos_kill_inferior>
<
is_process_alive>
</
is_process_alive>
Shell ProcessNot Removing debug hook from IDebug 0x6ff9e0000x59b74c70 as process isn''t alive
Shell Process
Killing 0x59b74c70
<FreeDebugInfo>
<
is_process_alive>
</
is_process_alive>
</
FreeDebugInfo>
Shell Processunpush target
</amigaos_kill_inferior>
[
_impl_AddTaskAdding Task 0x5fed2e50windowfade.task (0x1f411d4)
[
_impl_AddTaskAdding Task 0x587ca660windowfade.task (0x1f411d4)
[
_impl_RemTaskRemoving 0x5fed2e50 (self) = windowfade.task
[_impl_RemTaskRemoving 0x587ca660 (self) = windowfade.task
...


Edited by jabirulo on 2021/3/22 21:51:15
Go to top
Re: GDB
Just can't stay away
Just can't stay away


See User information
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]

Go to top
Re: GDB
Just popping in
Just popping in


See User information
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!

Go to top
Re: GDB
Home away from home
Home away from home


See User information
@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 ProcessUsing 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 ProcessCreating inferior processexec_file = /Work/aa/testargs = , env 0x610A87C0from_tty 1
<AllocateDebugInfo>
</
AllocateDebugInfo>
<
Ux2DOS>
</
Ux2DOS>
Shell ProcessGetting elf handle for seglist 0x1882CF41
Shell Process
Process created0x60E84360
Shell Process
Task0x60E84360
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 Processterminal_ours is a STUB
</amigaos_terminal_ours>
<
amigaos_fetch_registers>
Shell Processinferior_ptid=0x612FC868
Shell Process
regno 64 (pc)
Shell Processcontext 0x5FBCCFC8sp 0pc 0lr 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 Processamigaos_xfer_memory(memaddr 0x010004D4myaddr 0x612FC2F8len 4write 0attrib 0x00000000target 0x5FBB7A4C)
kernel 54.34 (5.2.2021AmigaOne X5000 release
Machine model
(AmigaOne X5000/20)
Dump of context at 0xEFD673E0
Trap type
DSI exception
DSISR
00000000  DAR010004D4
No matching page found
Machine State 
(raw): 0x0002F030
Machine State 
(verbose): [Critical Ints on] [ExtInt on] [User] [IAT on] [DAT on]
Instruction pointerin module kernel+0x00041A70 (0x01841A70)
Crashed processgdb_751 (0x67648DB0)
DSI verbose error descriptionAccess 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   XERA000007E  CTR00000001  LR: 01841BD4

Disassembly of crash site
:
 01841
A603943FFFC   subi              r10,r3,4
 
01841A645529F0BE   rlwinm            r9,r9,30,2,31
 
01841A6839290001   addi              r9,r9,1
 
01841A6C7D2903A6   mtctr             r9
>01841A7085280004   lwzu              r9,4(r8)
 01841
A74952A0004   stwu              r9,4(r10)
 01841
A784200FFF8   bdnz+             0x1841A70
 
01841A7C54A507BE   rlwinm            r5,r5,0,30,31
 
01841A807C843A14   add               r4,r4,r7
 
01841A842F850000   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 50HAL_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)
r11native kernel module newlib.library.kmod+0x00008f84
r13
gdb_751:symbuf()+0x3d5c (section 16 0x753C)
r14module gdb_751 at 0x5FBB0000 (section 3 0xFFFFFFDC)
r15module Work:aa/test at 0x00000001 (section 0 0xFFFFFFDC)
r18module gdb_751 at 0x5FBB0000 (section 3 0xFFFFFFDC)
r19module gdb_751 at 0x5FBB0000 (section 3 0xFFFFFFDC)
r21native kernel module kernel+0x00046030
r22
gdb_751:amigaos_ops()+0x0 (section 16 0x10C0)
r26native kernel module kernel+0x00a4a968
r28
module gdb_751 at 0x5E845074 (section 1 0x5050)
r30gdb_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:
(
0x612FC120native kernel module kernel+0x00041a70
(0x612FC130native kernel module kernel+0x00041bd4
(0x612FC140gdb_751:amigaos_deprecated_xfer_memory()+0x2c4 (section 1 0x27964)
(
0x612FC190gdb_751:default_xfer_partial()+0x128 (section 1 0x13B9BC)
(
0x612FC1C0gdb_751:memory_xfer_partial_1()+0x1a8 (section 1 0x13D3AC)
(
0x612FC240gdb_751:target_xfer_partial()+0x230 (section 1 0x13DAEC)
(
0x612FC290gdb_751:target_read()+0xc8 (section 1 0x13CDE4)
(
0x612FC2E0gdb_751:target_read_memory()+0x44 (section 1 0x13CF2C)
(
0x612FC2F0gdb_751:rs6000_skip_main_prologue()+0x30 (section 1 0x2CF0)
(
0x612FC320gdb_751:skip_prologue_sal()+0x418 (section 1 0xDF5B8)
(
0x612FC3A0gdb_751:convert_linespec_to_sals()+0xa58 (section 1 0xEF9FC)
(
0x612FC480gdb_751:parse_linespec()+0x314 (section 1 0xF1D54)
(
0x612FC5F0gdb_751:decode_line_full()+0x140 (section 1 0xF27D8)
(
0x612FC6D0gdb_751:decode_linespec_default.isra.49()+0x50 (section 1 0x99530)
(
0x612FC700gdb_751:addr_string_to_sals()+0x9c (section 1 0xA6608)
(
0x612FC830gdb_751:breakpoint_re_set_default()+0x40 (section 1 0xA9598)
(
0x612FC880gdb_751:breakpoint_re_set_one()+0x58 (section 1 0x9508C)
(
0x612FC890gdb_751:catch_errors()+0x74 (section 1 0x112A5C)
(
0x612FC8F0gdb_751:breakpoint_re_set()+0xbc (section 1 0xA9750)
(
0x612FC930gdb_751:post_create_inferior()+0xec (section 1 0xF8610)
(
0x612FC980gdb_751:run_command_1()+0x194 (section 1 0xF8DC4)
(
0x612FC9E0gdb_751:execute_command()+0x278 (section 1 0x1D9A08)
(
0x612FCA20gdb_751:command_handler()+0x84 (section 1 0x11BA64)
(
0x612FCA40gdb_751:command_line_handler()+0x464 (section 1 0x11C118)
(
0x612FCA90gdb_751:rl_callback_read_char()+0x1a8 (section 1 0x227868)
(
0x612FCAD0gdb_751:rl_callback_read_char_wrapper()+0x10 (section 1 0x11BAE0)
(
0x612FCAE0gdb_751:process_event()+0xb8 (section 1 0x11A3C0)
(
0x612FCB00gdb_751:gdb_do_one_event()+0x3a4 (section 1 0x11A84C)
(
0x612FCB40gdb_751:start_event_loop()+0x40 (section 1 0x11AA1C)
(
0x612FCB80gdb_751:captured_command_loop()+0x1c (section 1 0x1141E4)
(
0x612FCB90gdb_751:catch_errors()+0x74 (section 1 0x112A5C)
(
0x612FCBF0gdb_751:captured_main()+0xcb4 (section 1 0x115204)
(
0x612FCC80gdb_751:catch_errors()+0x74 (section 1 0x112A5C)
(
0x612FCCE0gdb_751:gdb_main()+0x34 (section 1 0x1153B8)
(
0x612FCCF0gdb_751:main()+0x30 (section 1 0x478)
(
0x612FCD10native kernel module newlib.library.kmod+0x00002614
(0x612FCD60native kernel module newlib.library.kmod+0x00003340
(0x612FCF10native kernel module newlib.library.kmod+0x00003864
(0x612FCF40gdb_751:_start()+0x1e0 (section 1 0x1DC)
(
0x612FCF90native kernel module dos.library.kmod+0x0002a490
(0x612FCFC0native kernel module kernel+0x0005c6c8
(0x612FCFD0native kernel module kernel+0x0005c740

Disassembly of crash site
:
 01841
A603943FFFC   subi              r10,r3,4
 
01841A645529F0BE   rlwinm            r9,r9,30,2,31
 
01841A6839290001   addi              r9,r9,1
 
01841A6C7D2903A6   mtctr             r9
>01841A7085280004   lwzu              r9,4(r8)
 01841
A74952A0004   stwu              r9,4(r10)
 01841
A784200FFF8   bdnz+             0x1841A70
 
01841A7C54A507BE   rlwinm            r5,r5,0,30,31
 
01841A807C843A14   add               r4,r4,r7
 
01841A842F850000   cmpwi             cr7,r5,0
Stack pointer 
(0x612FC120is 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   5sigrec 0x00800000sigwait 0xFF800000masked 0x00800000)
                    
IDF1/FastFileSystem 53.2  (pri   5sigrec 0x20000000sigwait 0xA8000100masked 0x20000000)
                    
IDF0/FastFileSystem 53.2  (pri   5sigrec 0x20000000sigwait 0xA8000100masked 0x20000000)
                                 
compose.task (pri   1sigrec 0x00000020sigwait 0x00000021masked 0x00000020)
                                    
Workbench (pri   1sigrec 0x80000100sigwait 0x80000000masked 0x80000000)
                       
ScreenBlanker Library. (pri   1sigrec 0x08000100sigwait 0xE8001000masked 0x08000000)
                                  
dopus_clock (pri   1sigrec 0x40000000sigwait 0xC0000000masked 0x40000000)
                                      
AmiDock (pri   0sigrec 0x00300100sigwait 0x00000100masked 0x00000100)
                           
NotificationServer (pri   0sigrec 0x08000000sigwait 0xF8001000masked 0x08000000)
                               
TCP/IP Control (pri   0sigrec 0x40000100sigwait 0xF8009080masked 0x40000000)
                                
ELF Collector (pri   0sigrec 0x00000100sigwait 0x00000100masked 0x00000100)
                                    
hub.usbfd (pri   0sigrec 0x10000000sigwait 0x30000000masked 0x10000000)
                                    
hub.usbfd (pri   0sigrec 0x10000000sigwait 0x30000000masked 0x10000000)
                             
CPUDock_idleTask (pri -127sigrec 0x00000000sigwait 0x40000000masked 0x00000000)
                                    
idle.task (pri -128sigrec 0x00000000sigwait 0x00000000masked 0x00000000)

Waiting Tasks
                  EHCI Controller Task Unit 1 
(pri  15sigrec 0x00000000sigwait 0xBE009000masked 0x00000000)
                  
EHCI Controller Task Unit 0 (pri  15sigrec 0x00000000sigwait 0xBE009000masked 0x00000000)
                                    
USB stack (pri  18sigrec 0x00000000sigwait 0xF800D000masked 0x00000000)
                                        
rx_pm (pri 100sigrec 0x00000000sigwait 0x80000001masked 0x00000000)
                       
CON/con-handler 53.82  (pri   5sigrec 0x00000000sigwait 0xB0000100masked 0x00000000)
                                        
rx_gc (pri 100sigrec 0x00000000sigwait 0x80000001masked 0x00000000)
                        
appdir envarc manager (pri -50sigrec 0x00000000sigwait 0x00000100masked 0x00000000)
                                    
hid.usbfd (pri  10sigrec 0x00000100sigwait 0xE0000000masked 0x00000000)
                                 
HID Keyboard (pri  10sigrec 0x00000000sigwait 0x90001000masked 0x00000000)
                      
p50x0sata.device Port 0 (pri  12sigrec 0x10000000sigwait 0xC0007000masked 0x00000000)
                      
ICD1/CDFileSystem 53.8  (pri  10sigrec 0x00000000sigwait 0x00000100masked 0x00000000)
                      
ICD0/CDFileSystem 53.8  (pri  10sigrec 0x00000000sigwait 0x00000100masked 0x00000000)
                   
DH2/SmartFilesystem 1.293  (pri  11sigrec 0x00000000sigwait 0x00000100masked 0x00000000)
                   
DH3/SmartFilesystem 1.293  (pri  11sigrec 0x00000000sigwait 0x00000100masked 0x00000000)
                                
serial.device (pri   1sigrec 0x00000000sigwait 0x7E000000masked 0x00000000)
                            
dos_signal_server (pri  -5sigrec 0x00000000sigwait 0x0000F000masked 0x00000000)
                                       
X-Dock (pri   0sigrec 0x00000100sigwait 0xFE001000masked 0x00000000)
                                    
hid.usbfd (pri  10sigrec 0x00000100sigwait 0xE0000000masked 0x00000000)
                                    
HID Mouse (pri  10sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                               
P50x0 Ethernet (pri  20sigrec 0x00000000sigwait 0x00001000masked 0x00000000)
                               
Background CLI (pri   0sigrec 0x00000100sigwait 0x10001080masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                           
dos_filedir_notify (pri   5sigrec 0x80000000sigwait 0x40001000masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                           
TCP/IP Superserver (pri   0sigrec 0x00000100sigwait 0xD0000080masked 0x00000000)
                         
TCP/IP Configuration (pri   0sigrec 0x00000100sigwait 0xF8003000masked 0x00000000)
                                 
ClickToFront (pri  21sigrec 0x00000100sigwait 0xE000D000masked 0x00000000)
                                
DirectoryOpus (pri   0sigrec 0x00000000sigwait 0x5C009000masked 0x00000000)
                   
DH3/SmartFilesystem 1.293  (pri  10sigrec 0x00000000sigwait 0xE0000100masked 0x00000000)
                   
DH2/SmartFilesystem 1.293  (pri  10sigrec 0x00000000sigwait 0xE0000100masked 0x00000000)
                                   
▒ IPrefs ▒ (pri   0sigrec 0x00000000sigwait 0x0000F000masked 0x00000000)
                                 
ContextMenus (pri   0sigrec 0x04000000sigwait 0xE0001000masked 0x00000000)
                                   
RexxMaster (pri   4sigrec 0x00000100sigwait 0xC0000000masked 0x00000000)
                                     
DefIcons (pri   0sigrec 0x00000100sigwait 0x80009000masked 0x00000000)
              
ContextMenus Command Dispatcher (pri   1sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                    
URL/launch-handler 53.39  (pri   5sigrec 0x00000100sigwait 0x80000000masked 0x00000000)
              
TEXTCLIP/textclip-handler 53.4  (pri   3sigrec 0x00000100sigwait 0x80000000masked 0x00000000)
                  
RANDOM/Random-Handler 52.1  (pri   5sigrec 0x00000000sigwait 0x00000100masked 0x00000000)
                                 
Mounter Task (pri  -1sigrec 0x00000000sigwait 0xB0001000masked 0x00000000)
                                  
Mounter GUI (pri   0sigrec 0x00000000sigwait 0x80007000masked 0x00000000)
                    
Mounter Companion Process (pri  -1sigrec 0x00000000sigwait 0x80003000masked 0x00000000)
                     
Workbench DosList Notify (pri   1sigrec 0x00000100sigwait 0x00003000masked 0x00000000)
                               
ramlib.support (pri  -2sigrec 0x00000000sigwait 0x80005000masked 0x00000000)
                                       
ramlib (pri   1sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                                
dopus_arbiter (pri   0sigrec 0x00000000sigwait 0x00000100masked 0x00000000)
                                
dopus_hotkeez (pri   1sigrec 0x00000000sigwait 0xC0000000masked 0x00000000)
                       
CON/con-handler 53.82  (pri   5sigrec 0x00000000sigwait 0xA0000100masked 0x00000000)
                                         
FKey (pri   0sigrec 0x00000000sigwait 0xC000D000masked 0x00000000)
                 
MUI imagespace screen notify (pri   1sigrec 0x00000100sigwait 0xC0001000masked 0x00000000)
              
TextEditor.mcc clipboard server (pri   1sigrec 0x00000100sigwait 0x80000000masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x80000010masked 0x00000000)
                         
KeymapSwitcher.docky (pri   0sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                          
select.gadget prefs (pri   0sigrec 0x00000100sigwait 0x80001000masked 0x00000000)
                                      
AsyncWB (pri   0sigrec 0x00000100sigwait 0xC0001000masked 0x00000000)
           
texteditor.gadget Clipboard Server (pri   1sigrec 0x00000100sigwait 0x80000000masked 0x00000000)
                                     
RAWBInfo (pri   0sigrec 0x00000100sigwait 0x80001000masked 0x00000000)
                       
CON/con-handler 53.82  (pri   5sigrec 0x00000000sigwait 0xA0000100masked 0x00000000)
                       
CON/con-handler 53.82  (pri   5sigrec 0x00000000sigwait 0xA0000100masked 0x00000000)
                       
CON/con-handler 53.82  (pri   5sigrec 0x00000000sigwait 0xA0000100masked 0x00000000)
                       
CON/con-handler 53.82  (pri   5sigrec 0x00000000sigwait 0xA0000100masked 0x00000000)
                       
CON/con-handler 53.82  (pri   5sigrec 0x00000000sigwait 0xA0000100masked 0x00000000)
            
application.library messageserver (pri   0sigrec 0x00000000sigwait 0xC0000000masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x80000000sigwait 0x00000010masked 0x00000000)
                   
Workbench Clipboard Server (pri   1sigrec 0x00000100sigwait 0x80000000masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                                  New 
Process (pri   0sigrec 0x00000000sigwait 0x00000010masked 0x00000000)
                                   
TCP/IP Log (pri   0sigrec 0x00000000sigwait 0x80003000masked 0x00000000)
                                    
hid.usbfd (pri  10sigrec 0x00000100sigwait 0xE0000000masked 0x00000000)
                                 
HID Consumer (pri  10sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                                      
ConClip (pri   0sigrec 0x00000000sigwait 0x80000000masked 0x00000000)
                                 
HID Consumer (pri  10sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                      
diskimage.device unit 1 (pri   4sigrec 0x00000100sigwait 0xC0000000masked 0x00000000)
                      
diskimage.device unit 0 (pri   4sigrec 0x00000100sigwait 0xC0000000masked 0x00000000)
                      
diskimage.device unit 5 (pri   4sigrec 0x00000100sigwait 0xC0000000masked 0x00000000)
                      
diskimage.device unit 4 (pri   4sigrec 0x00000100sigwait 0xC0000000masked 0x00000000)
                                 
HID Consumer (pri  10sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                                 
HID Keyboard (pri  10sigrec 0x00000000sigwait 0x90001000masked 0x00000000)
                                    
hid.usbfd (pri  10sigrec 0x00000100sigwait 0xE0000000masked 0x00000000)
                                    
hid.usbfd (pri  10sigrec 0x00000100sigwait 0xE0000000masked 0x00000000)
                       
AUDIO/AHI-Handler 6.2  (pri   5sigrec 0x00000000sigwait 0x00000100masked 0x00000000)
                            
USB stack Process (pri   0sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                 
APPDIR/appdir-handler 54.18  (pri   5sigrec 0x00000100sigwait 0x80000000masked 0x00000000)
                         
MassStorage Notifier (pri   0sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                                  
DST watcher (pri   0sigrec 0x00000000sigwait 0xC0000000masked 0x00000000)
                               
NotifyA Server (pri   1sigrec 0x00000000sigwait 0xE8001000masked 0x00000000)
                         
string.gadget server (pri   1sigrec 0x00000100sigwait 0x40000000masked 0x00000000)
                            
datatypes.library (pri   1sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                       
RAM/ram-handler 54.24  (pri  10sigrec 0x00000100sigwait 0x80000000masked 0x00000000)
                       
ENV/env-handler 54.18  (pri   5sigrec 0x00000100sigwait 0x80000000masked 0x00000000)
                       
CON/con-handler 53.82  (pri   5sigrec 0x00000000sigwait 0xA0000100masked 0x00000000)
                       
RAW/con-handler 53.82  (pri   5sigrec 0x00000000sigwait 0xA0000100masked 0x00000000)
                       
CON/con-handler 53.82  (pri   5sigrec 0x00000000sigwait 0xA0000100masked 0x00000000)
                          
SFS DosList handler (pri  19sigrec 0x00000000sigwait 0x80000000masked 0x00000000)
                             
dos_nbmd_process (pri   5sigrec 0x00000000sigwait 0x00001100masked 0x00000000)
                             
dos_lock_handler (pri   5sigrec 0x00000000sigwait 0x00001100masked 0x00000000)
                                    
hub.usbfd (pri   0sigrec 0x00000000sigwait 0x30000000masked 0x00000000)
                                    
hub.usbfd (pri   0sigrec 0x00000000sigwait 0x30000000masked 0x00000000)
                      
p50x0sata.device Port 1 (pri  12sigrec 0x00000000sigwait 0xC0007000masked 0x00000000)
                       
DMA2 Channel 4 Handler (pri   0sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                       
DMA1 Channel 4 Handler (pri   0sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                       
DMA2 Channel 3 Handler (pri   0sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                       
DMA1 Channel 3 Handler (pri   0sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                       
DMA2 Channel 2 Handler (pri   0sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                       
DMA1 Channel 2 Handler (pri   0sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                       
DMA2 Channel 1 Handler (pri   0sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                       
DMA1 Channel 1 Handler (pri   0sigrec 0x00000000sigwait 0x80001000masked 0x00000000)
                     
Exec Command and Control (pri  30sigrec 0x00000000sigwait 0x80000000masked 0x00000000)

Suspended Tasks
                                
/Work/aa/test (pri   0sigrec 0x00000000sigwait 0x00000000masked 0x00000000)


Results from the console:

2/0.Work:aagdb_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), 0x612fc0380x00x10004d44) = 4bytes 3d 20 01 00
target_get_section_table 
()
target_get_section_table () for exec
exec
:target_xfer_partial (2, (null), 0x612fc1080x00x10004d44) = 4bytes 3d 20 01 00
target_get_section_table 
()
target_get_section_table () for exec
exec
:target_xfer_partial (2, (null), 0x612fc4580x00x10004d44) = 4bytes 3d 20 01 00
target_get_section_table 
()
target_get_section_table () for exec
exec
:target_xfer_partial (2, (null), 0x612fc6d00x00x10004d44) = 4bytes =
 
3d 20 01 00
Breakpoint 1 at 0x10004d4
file test.cline 1.
(gdbr
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, , xxx1)
target_terminal_ours ()
target_get_section_table ()
target_get_section_table () for exec
subtask
:target_xfer_partial (10target.xml0x5f0f4fc80x00x04095) = -1
target_thread_architecture 
(process 1625834336) = 0x5e98a010 [powerpc:common]
ptid_equal (null_ptidptid (16258343360,0)
pid 1625834336 for ptid (16258343360,0)
get_thread_arch_regcache (process 1625834336) = 0x610a86c8
ptid_equal 
(null_ptidptid (16258343360,0)
pid 1625834336 for ptid (16258343360,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), 0x5f0f54200x00x04095) = -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 ProcessUsing 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 ProcessCreating inferior processexec_file = /RAM Disk/testargs = , env 0x64E5A2F8from_tty 1
<AllocateDebugInfo>
</
AllocateDebugInfo>
<
Ux2DOS>
</
Ux2DOS>
Shell ProcessGetting elf handle for seglist 0x194D38D1
Shell Process
Process created0x62039020
Shell Process
Task0x62039020
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 Processterminal_ours is a STUB
</amigaos_terminal_ours>
<
amigaos_fetch_registers>
Shell Processinferior_ptid=0x65552868
Shell Process
regno 64 (pc)
Shell Processcontext 0x6556FFC8sp 0pc 0lr 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 Processamigaos_xfer_memory(memaddr 0x010004D4myaddr 0x655522F8len 4write 0attrib 0x00000000target 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 ProcessTrying to set breakpoint at 0x010004D4 (host_addr=0x010004D4code_elf_addr=0xABADCAFEcode_size=0xABADCAFE)
<
DebugPrintBuffers>
Shell Processpre-read
Shell Process
src [00x010004D4 0,  dest [00x64E153B0 0
</DebugPrintBuffers>
<
amigaos_deprecated_xfer_memory>
Shell Processamigaos_xfer_memory(memaddr 0x010004D4myaddr 0x64E153B0len 4write 0attrib 0x00000000target 0x6555AA4C)
</
amigaos_deprecated_xfer_memory>
Shell ProcessSaved at addr 0x010004D4 the instruction 0x64E153B0
<DebugPrintBuffers>
Shell Processpost-read
Shell Process
src [00x010004D4 0,  dest [00x64E153B0 0
</DebugPrintBuffers>
Shell ProcessSetting breakpoint at addr=0x010004D4 bp=0x65553018
<DebugPrintBuffers>
Shell Processpre-write
Shell Process
src [00x65553018 7D821008,  dest [00x010004D4 0
</DebugPrintBuffers>
<
amigaos_deprecated_xfer_memory>
Shell Processamigaos_xfer_memory(memaddr 0x010004D4myaddr 0x64E15520len 4write 1attrib 0x00000000target 0x6555AA4C)
Shell ProcessWriting 0x7D821008 to 0x010004D4 (was 0x00000000)
Shell ProcessNow is 0x7D821008
</amigaos_deprecated_xfer_memory>
<
DebugPrintBuffers>
Shell Processpost-write
Shell Process
src [00x65553018 7D821008,  dest [00x010004D4 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 Processamigaos_resumerestarting 0x62039020
</amigaos_resume>
<
amigaos_debug_callback>
/
RAM Disk/testamigaos_debug_callback task_p 0x62039020 (process=0x62039020)
/
RAM Disk/testReceived DBHMT_OPENLIB (process=0x62039020)
/
RAM Disk/testamigaos_debug_callback returning 0
</amigaos_debug_callback>
<
amigaos_debug_callback>
/
RAM Disk/testamigaos_debug_callback task_p 0x62039020 (process=0x62039020)
/
RAM Disk/testReceived DBHMT_OPENLIB (process=0x62039020)
/
RAM Disk/testamigaos_debug_callback returning 0
</amigaos_debug_callback>
<
amigaos_can_run>
</
amigaos_can_run>
<
amigaos_debug_callback>
/
RAM Disk/testamigaos_debug_callback task_p 0x62039020 (process=0x62039020)
/
RAM Disk/testReceived DBHMT_CLOSELIB (process=0x62039020)
/
RAM Disk/testamigaos_debug_callback returning 0
<amigaos_wait>
Shell Processwait ptid 0x62039020 (FFFFFFFF), status 0x65552878kind 0
<is_process_alive>
Shell Processis_process_alive for 0x62039020 is returning 1
</amigaos_debug_callback>
<
amigaos_debug_callback>
/
RAM Disk/testamigaos_debug_callback task_p 0x62039020 (process=0x62039020)
</
is_process_alive>
/
RAM Disk/testReceived DBHMT_CLOSELIB (process=0x62039020)
Shell ProcessWaiting for message (process=0x62039020)
/
RAM Disk/testamigaos_debug_callback returning 0
</amigaos_debug_callback>
<
amigaos_debug_callback>
reaper.taskamigaos_debug_callback task_p 0x62039020 (process=0x62039020)
reaper.taskRecieved DBHMT_REMTASK (process=0x62039020)
reaper.taskamigaos_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), 0x655520380x00x10004d44) = 4bytes 3d 20 01 00
target_get_section_table 
()
target_get_section_table () for exec
exec
:target_xfer_partial (2, (null), 0x655521080x00x10004d44) = 4bytes 3d 20 01 00
target_get_section_table 
()
target_get_section_table () for exec
exec
:target_xfer_partial (2, (null), 0x655524580x00x10004d44) = 4bytes 3d 20 01 00
target_get_section_table 
()
target_get_section_table () for exec
exec
:target_xfer_partial (2, (null), 0x655526d00x00x10004d44) = 4bytes =
 
3d 20 01 00
Breakpoint 1 at 0x10004d4
file test.cline 1.
(gdbr
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, , xxx1)
target_terminal_ours ()
target_get_section_table ()
target_get_section_table () for exec
subtask
:target_xfer_partial (10target.xml0x64e14fc80x00x04095) = -1
target_thread_architecture 
(process 1644400672) = 0x64e31010 [powerpc:common]
ptid_equal (null_ptidptid (16444006720,0)
pid 1644400672 for ptid (16444006720,0)
get_thread_arch_regcache (process 1644400672) = 0x64e59ee0
ptid_equal 
(null_ptidptid (16444006720,0)
pid 1644400672 for ptid (16444006720,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), 0x64e14fc80x00x04095) = -1
target_memory_map 
()
subtask:target_xfer_partial (2, (null), 0x655522f80x00x10004d44) = 4bytes 00 00 00 00
ptid_equal 
(null_ptidptid (16444006720,0)
pid 1644400672 for ptid (16444006720,0)
get_thread_arch_regcache (process 1644400672) = 0x64e59ee0
ptid_equal 
(null_ptidptid (16444006720,0)
pid 1644400672 for ptid (16444006720,0)
get_thread_arch_regcache (process 1644400672) = 0x64e59ee0
subtask
:target_xfer_partial (2, (null), 0x64e153b00x00x10004d44) = 4bytes =
 
00 00 00 00
subtask
:target_xfer_partial (2, (null), 0x00x655530180x10004d44) = 4bytes 7d 82 10 08
target_insert_breakpoint (0x010004d4xxx) = 0
ptid_equal 
(null_ptidptid (16444006720,0)
pid 1644400672 for ptid (16444006720,0)
get_thread_arch_regcache (process 1644400672) = 0x64e59ee0
ptid_equal 
(null_ptidptid (16444006720,0)
pid 1644400672 for ptid (16444006720,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)
 
tPowerPC 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?)

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: GDB
Home away from home
Home away from home


See User information
@billyfish
Havent time to works on breakpoint stuff ? Maybe have some issues in process which worth to discuss so to progress futher ?

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: GDB
Just popping in
Just popping in


See User information
@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.


Go to top
Re: GDB
Just popping in
Just popping in


See User information
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.

Go to top
Re: GDB
Home away from home
Home away from home


See User information
@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.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: GDB
Home away from home
Home away from home


See User information
@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.

Go to top
Re: GDB
Just popping in
Just popping in


See User information
@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.

Go to top
Re: GDB
Just popping in
Just popping in


See User information
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?

Go to top
Re: GDB
Just popping in
Just popping in


See User information
@Kamelito

That's a good point, I call

IExec->CacheClearE((APTR)address0xffffffffCACRF_ClearICACRF_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.


Go to top
Re: GDB
Just popping in
Just popping in


See User information
You could maybe try with ClearCacheU and see if it works.

Go to top
Re: GDB
Just can't stay away
Just can't stay away


See User information
@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
Go to top
Re: GDB
Just popping in
Just popping in


See User information
@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.

Go to top
Re: GDB
Just can't stay away
Just can't stay away


See User information
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
Go to top
Re: GDB
Just can't stay away
Just can't stay away


See User information
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
Go to top
Re: GDB
Just can't stay away
Just can't stay away


See User information
This is status here :

Screenshot

Go to top
Re: GDB
Just popping in
Just popping in


See User information
@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.

Go to top

  Register To Post
« 1 ... 5 6 7 (8) 9 10 »

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project