Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
59 user(s) are online (30 user(s) are browsing Forums)

Members: 0
Guests: 59

more...

Support us!

Headlines

Report message:*
 

Re: GDB

Subject: Re: GDB
by jabirulo on 2021/3/22 21:33:37

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


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project