tool chain: update gdb to version 10.2

Issue #4094
This commit is contained in:
Christian Prochaska 2021-05-23 21:33:55 +02:00 committed by Christian Helmuth
parent 933de21339
commit 7b197d54ed
22 changed files with 1627 additions and 1539 deletions

View File

@ -1120,6 +1120,7 @@ _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEmmPKc W
_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEmmPKcm W
_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEmmRKS4_ W
_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEmmRKS4_mm W
_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8capacityEv W
_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm W
_ZNKSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE12find_last_ofEPKwmm W
_ZNKSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE13find_first_ofEPKwmm W
@ -1498,6 +1499,7 @@ _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEmc W
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEOS4_ W
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEPKc W
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEPKcm W
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignERKS4_ W
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignERKS4_mm W
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEmc W
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6insertEN9__gnu_cxx17__normal_iteratorIPKcS4_EEc W

View File

@ -3,13 +3,15 @@ GDB_CONTRIB_DIR = $(call select_from_ports,gdb)/src/noux-pkg/gdb
INC_DIR += $(REP_DIR)/src/lib/gdbserver_libc_support \
$(REP_DIR)/src/lib/gdbserver_platform \
$(REP_DIR)/src/app/gdb_monitor \
$(REP_DIR)/src/app/gdb_monitor/gdbserver \
$(REP_DIR)/src/app/gdb_monitor/gdbsupport \
$(GDB_CONTRIB_DIR)/include \
$(GDB_CONTRIB_DIR) \
$(GDB_CONTRIB_DIR)/gdb \
$(GDB_CONTRIB_DIR)/gdb/common \
$(GDB_CONTRIB_DIR)/gdb/gdbserver \
$(GDB_CONTRIB_DIR)/gdb/gnulib/import \
$(GDB_CONTRIB_DIR)/gdb/regformats \
$(REP_DIR)/src/app/gdb_monitor/gdbserver
$(GDB_CONTRIB_DIR)/gdbserver \
$(GDB_CONTRIB_DIR)/gnulib/import
SRC_CC += gdbserver_platform_helper.cc
@ -22,3 +24,4 @@ LIBS += stdcxx libc
vpath %.cc $(REP_DIR)/src/lib/gdbserver_platform
vpath %.cc $(GDB_CONTRIB_DIR)/gdb
vpath %.cc $(GDB_CONTRIB_DIR)/gdbserver

View File

@ -1,8 +1,8 @@
INC_DIR += $(REP_DIR)/src/lib/gdbserver_platform/spec/x86_32
SRC_CC += arch/i386.cc \
gdbserver/linux-x86-low.cc \
gdbserver/linux-x86-tdesc.cc \
linux-x86-low.cc \
linux-x86-tdesc.cc \
nat/x86-linux.cc \
nat/x86-linux-dregs.cc

View File

@ -2,10 +2,10 @@ INC_DIR += $(REP_DIR)/src/lib/gdbserver_platform/spec/x86_64
SRC_CC += arch/i386.cc \
arch/amd64.cc \
gdbserver/linux-x86-low.cc \
gdbserver/linux-x86-tdesc.cc \
nat/x86-linux.cc \
nat/x86-linux-dregs.cc
nat/x86-linux-dregs.cc \
linux-x86-low.cc \
linux-x86-tdesc.cc
CC_OPT += -fpermissive -Wno-unused-function

View File

@ -22,30 +22,18 @@ _Z16perror_with_namePKc U
_Z16regcache_releasev U
_Z16tdesc_create_regP13tdesc_featurePKciiS2_iS2_ U
_Z16tdesc_named_typePK13tdesc_featurePKc U
_Z17i386_emit_eq_gotoPiS_ T
_Z17i386_emit_ge_gotoPiS_ T
_Z17i386_emit_gt_gotoPiS_ T
_Z17i386_emit_le_gotoPiS_ T
_Z17i386_emit_lt_gotoPiS_ T
_Z17i386_emit_ne_gotoPiS_ T
_Z17iterate_over_lwps6ptid_tPFiP8lwp_infoPvES2_ U
_Z18amd64_emit_eq_gotoPiS_ T
_Z18amd64_emit_ge_gotoPiS_ T
_Z18amd64_emit_gt_gotoPiS_ T
_Z18amd64_emit_le_gotoPiS_ T
_Z18amd64_emit_lt_gotoPiS_ T
_Z18amd64_emit_ne_gotoPiS_ T
_Z17iterate_over_lwps6ptid_tN3gdb13function_viewIFiP8lwp_infoEEE U
_Z18tdesc_add_bitfieldP22tdesc_type_with_fieldsPKcii U
_Z18tdesc_create_flagsP13tdesc_featurePKci U
_Z18tdesc_create_unionP13tdesc_featurePKc U
_Z18x86_low_init_dregsP19x86_debug_reg_state U
_Z19get_thread_regcacheP11thread_infoi U
_Z19initialize_low_archv T
_Z19target_write_memorymPKhl U
_Z19tdesc_create_structP13tdesc_featurePKc U
_Z19tdesc_create_vectorP13tdesc_featurePKcP10tdesc_typei U
_Z19x86_debug_reg_statei T
_Z19x86_linux_regs_infov T
_Z20relocate_instructionPyy U
_Z20relocate_instructionPmm U
_Z20tdesc_create_featureP11target_descPKc U
_Z20x86_linux_new_threadP8lwp_info T
_Z21cannot_fetch_registerPKc T
@ -55,16 +43,16 @@ _Z21genode_store_registerim T
_Z21get_raw_reg_func_addrv U
_Z21lwp_arch_private_infoP8lwp_info U
_Z21tdesc_set_struct_sizeP22tdesc_type_with_fieldsi U
_Z21write_inferior_memoryyPKhi U
_Z21x86_linux_dr_get_addri T
_Z21x86_linux_dr_set_addriy T
_Z22claim_trampoline_spaceyPy U
_Z21x86_linux_dr_set_addrim T
_Z22claim_trampoline_spacemPm U
_Z22find_any_thread_of_pidi U
_Z22genode_child_resourcesv U
_Z22i386_get_ipa_tdesc_idxPK11target_desc T
_Z22set_tdesc_architectureP11target_descPKc U
_Z23amd64_get_ipa_tdesc_idxPK11target_desc T
_Z23copy_target_descriptionP11target_descPKS_ U
_Z23genode_stop_all_threadsv U
_Z23initialize_regsets_infoP12regsets_info U
_Z23supply_register_by_nameP8regcachePKcPKv U
_Z23x86_linux_delete_threadP13arch_lwp_info T
@ -72,30 +60,148 @@ _Z23x86_linux_dr_get_statusv T
_Z24collect_register_by_nameP8regcachePKcPv U
_Z24get_current_thread_statev T
_Z24set_current_thread_stateN6Genode12Thread_stateE T
_Z24x86_dr_insert_watchpointP19x86_debug_reg_state17target_hw_bp_typeyi U
_Z24x86_dr_remove_watchpointP19x86_debug_reg_state17target_hw_bp_typeyi U
_Z24x86_dr_insert_watchpointP19x86_debug_reg_state17target_hw_bp_typemi U
_Z24x86_dr_remove_watchpointP19x86_debug_reg_state17target_hw_bp_typemi U
_Z24x86_linux_dr_get_controlv T
_Z24x86_linux_dr_set_controlm T
_Z25lwp_set_arch_private_infoP8lwp_infoP13arch_lwp_info U
_Z27allocate_target_descriptionv U
_Z27i386_linux_read_descriptionm T
_Z27lwp_debug_registers_changedP8lwp_info T
_Z27x86_dr_stopped_data_addressP19x86_debug_reg_statePy U
_Z27x86_dr_stopped_data_addressP19x86_debug_reg_statePm U
_Z27x86_linux_prepare_to_resumeP8lwp_info T
_Z28amd64_linux_read_descriptionmb T
_Z30i386_create_target_descriptionmb T
_Z30i386_create_target_descriptionmbb T
_Z31amd64_create_target_descriptionmbbb T
_Z31lwp_set_debug_registers_changedP8lwp_infoi T
_Z32x86_linux_update_debug_registersP8lwp_info T
_Z34raw_bkpt_type_to_target_hw_bp_type13raw_bkpt_type U
_Z38have_fast_tracepoint_trampoline_bufferPc U
_Z7warningPKcz U
_Z8paddressy U
_Z8paddressm U
_ZN10x86_target10low_get_pcEP8regcache T
_ZN10x86_target10low_set_pcEP8regcachem T
_ZN10x86_target12low_new_forkEP12process_infoS1_ T
_ZN10x86_target13get_regs_infoEv T
_ZN10x86_target14low_arch_setupEv T
_ZN10x86_target14low_new_threadEP8lwp_info T
_ZN10x86_target15low_new_processEv T
_ZN10x86_target16low_insert_pointE13raw_bkpt_typemiP14raw_breakpoint T
_ZN10x86_target16low_remove_pointE13raw_bkpt_typemiP14raw_breakpoint T
_ZN10x86_target16update_xmltargetEv T
_ZN10x86_target17get_ipa_tdesc_idxEv T
_ZN10x86_target17low_breakpoint_atEm T
_ZN10x86_target17low_delete_threadEP13arch_lwp_info T
_ZN10x86_target17low_siginfo_fixupEP9__siginfoPhi T
_ZN10x86_target18low_delete_processEP17arch_process_info T
_ZN10x86_target18process_qsupportedEN3gdb10array_viewIKPKcEE T
_ZN10x86_target19low_get_thread_areaEiPm T
_ZN10x86_target20supports_tracepointsEv T
_ZN10x86_target21low_prepare_to_resumeEP8lwp_info T
_ZN10x86_target21supports_z_point_typeEc T
_ZN10x86_target23low_decr_pc_after_breakEv T
_ZN10x86_target23sw_breakpoint_from_kindEiPi T
_ZN10x86_target24low_get_syscall_trapinfoEP8regcachePi T
_ZN10x86_target24low_stopped_data_addressEv T
_ZN10x86_target24low_supports_breakpointsEv T
_ZN10x86_target25low_cannot_fetch_registerEi T
_ZN10x86_target25low_cannot_store_registerEi T
_ZN10x86_target25low_stopped_by_watchpointEv T
_ZN10x86_target25supports_fast_tracepointsEv T
_ZN10x86_target26low_supports_catch_syscallEv T
_ZN10x86_target27low_supports_range_steppingEv T
_ZN10x86_target32get_min_fast_tracepoint_insn_lenEv T
_ZN10x86_target32install_fast_tracepoint_jump_padEmmmmmPmS0_S0_PhS0_S0_S0_Pc T
_ZN10x86_target8emit_opsEv T
_ZN11Gdb_monitor21Cpu_session_component10thread_capEm U
_ZN11Gdb_monitor21Cpu_session_component17_setup_native_cpuEv T
_ZN11Gdb_monitor21Cpu_session_component18parent_cpu_sessionEv U
_ZN11Gdb_monitor21Cpu_session_component19_cleanup_native_cpuEv T
_ZN11Gdb_monitor21Cpu_session_component9thread_epEv U
_ZN20linux_process_target11read_memoryEmPhi U
_ZN20linux_process_target11thread_nameE6ptid_t U
_ZN20linux_process_target11unpause_allEb U
_ZN20linux_process_target12insert_pointE13raw_bkpt_typemiP14raw_breakpoint U
_ZN20linux_process_target12multifs_openEiPKcit U
_ZN20linux_process_target12qxfer_osdataEPKcPhPKhmi U
_ZN20linux_process_target12read_offsetsEPmS0_ U
_ZN20linux_process_target12remove_pointE13raw_bkpt_typemiP14raw_breakpoint U
_ZN20linux_process_target12thread_aliveE6ptid_t U
_ZN20linux_process_target12write_memoryEmPKhi U
_ZN20linux_process_target13qxfer_siginfoEPKcPhPKhmi U
_ZN20linux_process_target14core_of_threadE6ptid_t U
_ZN20linux_process_target14multifs_unlinkEiPKc U
_ZN20linux_process_target14start_non_stopEb U
_ZN20linux_process_target14supports_agentEv U
_ZN20linux_process_target14thread_stoppedEP11thread_info U
_ZN20linux_process_target15create_inferiorEPKcRKSt6vectorIPcSaIS3_EE U
_ZN20linux_process_target15fetch_registersEP8regcachei U
_ZN20linux_process_target15get_tls_addressEP11thread_infommPm U
_ZN20linux_process_target15look_up_symbolsEv U
_ZN20linux_process_target15store_registersEP8regcachei U
_ZN20linux_process_target16low_get_next_pcsEP8regcache U
_ZN20linux_process_target16multifs_readlinkEiPKcPcm U
_ZN20linux_process_target16pid_to_exec_fileEi U
_ZN20linux_process_target16supports_multifsEv U
_ZN20linux_process_target17request_interruptEv U
_ZN20linux_process_target17stabilize_threadsEv U
_ZN20linux_process_target17supports_non_stopEv U
_ZN20linux_process_target18low_fetch_registerEP8regcachei U
_ZN20linux_process_target18supports_read_auxvEv U
_ZN20linux_process_target20post_create_inferiorEv U
_ZN20linux_process_target20qxfer_libraries_svr4EPKcPhPKhmi U
_ZN20linux_process_target20stopped_data_addressEv U
_ZN20linux_process_target20supports_exec_eventsEv U
_ZN20linux_process_target20supports_fork_eventsEv U
_ZN20linux_process_target21done_accessing_memoryEv U
_ZN20linux_process_target21stopped_by_watchpointEv U
_ZN20linux_process_target21supports_qxfer_osdataEv U
_ZN20linux_process_target21supports_read_offsetsEv U
_ZN20linux_process_target21supports_vfork_eventsEv U
_ZN20linux_process_target22handle_monitor_commandEPc U
_ZN20linux_process_target22supports_catch_syscallEv U
_ZN20linux_process_target22supports_multi_processEv U
_ZN20linux_process_target22supports_qxfer_siginfoEv U
_ZN20linux_process_target23supports_range_steppingEv U
_ZN20linux_process_target23supports_thread_stoppedEv U
_ZN20linux_process_target24prepare_to_access_memoryEv U
_ZN20linux_process_target24stopped_by_hw_breakpointEv U
_ZN20linux_process_target24stopped_by_sw_breakpointEv U
_ZN20linux_process_target24supports_get_tls_addressEv U
_ZN20linux_process_target25handle_new_gdb_connectionEv U
_ZN20linux_process_target25supports_pid_to_exec_fileEv U
_ZN20linux_process_target26low_supply_ptrace_registerEP8regcacheiPKc U
_ZN20linux_process_target27low_collect_ptrace_registerEP8regcacheiPc U
_ZN20linux_process_target29supports_hardware_single_stepEv U
_ZN20linux_process_target29supports_qxfer_libraries_svr4Ev U
_ZN20linux_process_target30supports_disable_randomizationEv U
_ZN20linux_process_target33supports_stopped_by_hw_breakpointEv U
_ZN20linux_process_target33supports_stopped_by_sw_breakpointEv U
_ZN20linux_process_target4joinEi U
_ZN20linux_process_target4killEP12process_info U
_ZN20linux_process_target4waitE6ptid_tP17target_waitstatusi U
_ZN20linux_process_target5asyncEb U
_ZN20linux_process_target5mournEP12process_info U
_ZN20linux_process_target6attachEm U
_ZN20linux_process_target6detachEP12process_info U
_ZN20linux_process_target6resumeEP13thread_resumem U
_ZN20linux_process_target7read_pcEP8regcache U
_ZN20linux_process_target8write_pcEP8regcachem U
_ZN20linux_process_target9pause_allEb U
_ZN20linux_process_target9read_auxvEmPhj U
_ZN22process_stratum_target11read_btraceEP18btrace_target_infoP6buffer16btrace_read_type U
_ZN22process_stratum_target12read_loadmapEPKcmPhj U
_ZN22process_stratum_target13enable_btraceE6ptid_tPK13btrace_config U
_ZN22process_stratum_target13thread_handleE6ptid_tPPhPi U
_ZN22process_stratum_target14disable_btraceEP18btrace_target_info U
_ZN22process_stratum_target15get_tib_addressE6ptid_tPm U
_ZN22process_stratum_target16read_btrace_confEPK18btrace_target_infoP6buffer U
_ZN22process_stratum_target17hostio_last_errorEPc U
_ZN22process_stratum_target21supports_read_loadmapEv U
_ZN22process_stratum_target23breakpoint_kind_from_pcEPm U
_ZN22process_stratum_target24supports_get_tib_addressEv U
_ZN22process_stratum_target29supports_software_single_stepEv U
_ZN22process_stratum_target34breakpoint_kind_from_current_stateEPm U
_ZN6Genode13Avl_node_baseC2Ev U
_ZN6Genode14Rpc_entrypoint7_manageEPNS_15Rpc_object_baseE U
_ZN6Genode14Rpc_entrypoint9_dissolveEPNS_15Rpc_object_baseE U
@ -105,6 +211,11 @@ _ZN6Genode17Native_capabilityC1Ev U
_ZN6Genode3Log3logEv U
_ZN6Genode3Log8_acquireENS0_4TypeE U
_ZN6Genode3Log8_releaseEv U
_ZN6Genode4Lock4lockEv U
_ZN6Genode4Lock6unlockEv U
_ZN6Genode4LockC1ENS0_5StateE U
_ZN6Genode5Mutex7acquireEv U
_ZN6Genode5Mutex7releaseEv U
_ZN6Genode5Trace6Logger17_evaluate_controlEv U
_ZN6Genode5printERNS_6OutputEPKc U
_ZN6Genode5printERNS_6OutputEPKv U
@ -113,14 +224,16 @@ _ZN6Genode6Thread7_loggerEv U
_ZN6Genode8ipc_callENS_17Native_capabilityERNS_11Msgbuf_baseES2_m U
_ZNK6Genode17Native_capability10local_nameEv U
_ZSt9terminatev U
_ZTI20linux_process_target U
_ZTIN11Gdb_monitor20Cpu_thread_componentE U
_ZTVN10__cxxabiv117__class_type_infoE U
_ZTVN10__cxxabiv120__si_class_type_infoE U
_ZTVN10__cxxabiv121__vmi_class_type_infoE U
_ZdlPv U
_ZdlPvRN6Genode11DeallocatorE U
_ZdlPvm U
_ZnwmRN6Genode9AllocatorE U
__cxa_allocate_exception U
__cxa_atexit U
__cxa_begin_catch U
__cxa_end_catch U
__cxa_get_exception_ptr U
@ -128,22 +241,23 @@ __cxa_pure_virtual U
__cxa_throw U
__dynamic_cast U
__error U
__gnu_Unwind_Find_exidx T
__gxx_personality_v0 U
abort U
amd64_emit_ops D 296
current_insn_ptr U
current_thread U
debug_threads U
dl_unwind_find_exidx W
emit_error U
free U
have_ptrace_getfpxregs B 4
i386_emit_ops D 296
ptrace U
sprintf U
strtok U
strtok_r U
strtoul U
the_low_target D 296
the_target U
the_linux_target D 8
x86_dr_low D 48
xcalloc U
xstrdup U

View File

@ -1 +1 @@
8eddf0d249a22993e57b3242112fb62f503101c9
601cdd5711839f85cd2d151f51d989b678a02efc

View File

@ -1,9 +1,9 @@
LICENSE := GPLv3
VERSION := 8.2.1
VERSION := 10.2
DOWNLOADS := gdb.archive
URL(gdb) := ftp://ftp.fu-berlin.de/gnu/gdb/gdb-$(VERSION).tar.xz
SHA(gdb) := 0a6a432907a03c5c8eaad3c3cffd50c00a40c3a5e3c4039440624bae703f2202
SHA(gdb) := aaa1223d534c9b700a8bec952d9748ee1977513f178727e1bee520ee000b4f29
SIG(gdb) := ${URL(gdb)}.sig
KEY(gdb) := GNU
DIR(gdb) := src/noux-pkg/gdb
@ -20,53 +20,10 @@ default: symlinks
symlinks: $(DOWNLOADS)
$(VERBOSE)ln -s amd64.c ${DIR(gdb)}/gdb/arch/amd64.cc
$(VERBOSE)ln -s i386.c ${DIR(gdb)}/gdb/arch/i386.cc
$(VERBOSE)ln -s agent.c ${DIR(gdb)}/gdb/common/agent.cc
$(VERBOSE)ln -s buffer.c ${DIR(gdb)}/gdb/common/buffer.cc
$(VERBOSE)ln -s cleanups.c ${DIR(gdb)}/gdb/common/cleanups.cc
$(VERBOSE)ln -s common-debug.c ${DIR(gdb)}/gdb/common/common-debug.cc
$(VERBOSE)ln -s common-exceptions.c ${DIR(gdb)}/gdb/common/common-exceptions.cc
$(VERBOSE)ln -s common-utils.c ${DIR(gdb)}/gdb/common/common-utils.cc
$(VERBOSE)ln -s environ.c ${DIR(gdb)}/gdb/common/environ.cc
$(VERBOSE)ln -s errors.c ${DIR(gdb)}/gdb/common/errors.cc
$(VERBOSE)ln -s filestuff.c ${DIR(gdb)}/gdb/common/filestuff.cc
$(VERBOSE)ln -s format.c ${DIR(gdb)}/gdb/common/format.cc
$(VERBOSE)ln -s gdb_tilde_expand.c ${DIR(gdb)}/gdb/common/gdb_tilde_expand.cc
$(VERBOSE)ln -s gdb_vecs.c ${DIR(gdb)}/gdb/common/gdb_vecs.cc
$(VERBOSE)ln -s job-control.c ${DIR(gdb)}/gdb/common/job-control.cc
$(VERBOSE)ln -s pathstuff.c ${DIR(gdb)}/gdb/common/pathstuff.cc
$(VERBOSE)ln -s posix-strerror.c ${DIR(gdb)}/gdb/common/posix-strerror.cc
$(VERBOSE)ln -s print-utils.c ${DIR(gdb)}/gdb/common/print-utils.cc
$(VERBOSE)ln -s ptid.c ${DIR(gdb)}/gdb/common/ptid.cc
$(VERBOSE)ln -s rsp-low.c ${DIR(gdb)}/gdb/common/rsp-low.cc
$(VERBOSE)ln -s signals.c ${DIR(gdb)}/gdb/common/signals.cc
$(VERBOSE)ln -s tdesc.c ${DIR(gdb)}/gdb/common/tdesc.cc
$(VERBOSE)ln -s vec.c ${DIR(gdb)}/gdb/common/vec.cc
$(VERBOSE)ln -s xml-utils.c ${DIR(gdb)}/gdb/common/xml-utils.cc
$(VERBOSE)ln -s ax.c ${DIR(gdb)}/gdb/gdbserver/ax.cc
$(VERBOSE)ln -s debug.c ${DIR(gdb)}/gdb/gdbserver/debug.cc
$(VERBOSE)ln -s dll.c ${DIR(gdb)}/gdb/gdbserver/dll.cc
$(VERBOSE)ln -s event-loop.c ${DIR(gdb)}/gdb/gdbserver/event-loop.cc
$(VERBOSE)ln -s fork-child.c ${DIR(gdb)}/gdb/gdbserver/fork-child.cc
$(VERBOSE)ln -s hostio.c ${DIR(gdb)}/gdb/gdbserver/hostio.cc
$(VERBOSE)ln -s i387-fp.c ${DIR(gdb)}/gdb/gdbserver/i387-fp.cc
$(VERBOSE)ln -s inferiors.c ${DIR(gdb)}/gdb/gdbserver/inferiors.cc
$(VERBOSE)ln -s linux-low.c ${DIR(gdb)}/gdb/gdbserver/linux-low.cc
$(VERBOSE)ln -s linux-x86-low.c ${DIR(gdb)}/gdb/gdbserver/linux-x86-low.cc
$(VERBOSE)ln -s linux-x86-tdesc.c ${DIR(gdb)}/gdb/gdbserver/linux-x86-tdesc.cc
$(VERBOSE)ln -s mem-break.c ${DIR(gdb)}/gdb/gdbserver/mem-break.cc
$(VERBOSE)ln -s notif.c ${DIR(gdb)}/gdb/gdbserver/notif.cc
$(VERBOSE)ln -s regcache.c ${DIR(gdb)}/gdb/gdbserver/regcache.cc
$(VERBOSE)ln -s remote-utils.c ${DIR(gdb)}/gdb/gdbserver/remote-utils.cc
$(VERBOSE)ln -s server.c ${DIR(gdb)}/gdb/gdbserver/server.cc
$(VERBOSE)ln -s symbol.c ${DIR(gdb)}/gdb/gdbserver/symbol.cc
$(VERBOSE)ln -s target.c ${DIR(gdb)}/gdb/gdbserver/target.cc
$(VERBOSE)ln -s tdesc.c ${DIR(gdb)}/gdb/gdbserver/tdesc.cc
$(VERBOSE)ln -s tracepoint.c ${DIR(gdb)}/gdb/gdbserver/tracepoint.cc
$(VERBOSE)ln -s utils.c ${DIR(gdb)}/gdb/gdbserver/utils.cc
$(VERBOSE)ln -s x86-low.c ${DIR(gdb)}/gdb/gdbserver/x86-low.cc
$(VERBOSE)ln -s fork-inferior.c ${DIR(gdb)}/gdb/nat/fork-inferior.cc
$(VERBOSE)ln -s linux-ptrace.c ${DIR(gdb)}/gdb/nat/linux-ptrace.cc
$(VERBOSE)ln -s x86-dregs.c ${DIR(gdb)}/gdb/nat/x86-dregs.cc
$(VERBOSE)ln -s x86-linux.c ${DIR(gdb)}/gdb/nat/x86-linux.cc
$(VERBOSE)ln -s x86-linux-dregs.c ${DIR(gdb)}/gdb/nat/x86-linux-dregs.cc
$(VERBOSE)ln -s waitstatus.c ${DIR(gdb)}/gdb/target/waitstatus.cc
$(VERBOSE)ln -s alloc.c ${DIR(gdb)}/gdb/alloc.cc

View File

@ -20,7 +20,6 @@ if {![have_include "power_on/qemu"] ||
create_boot_directory
import_from_depot [depot_user]/src/[base_src] \
[depot_user]/pkg/[drivers_interactive_pkg] \
[depot_user]/src/nitpicker \
[depot_user]/src/demo \
[depot_user]/src/init \
[depot_user]/src/vfs_pipe
@ -29,6 +28,7 @@ set build_components {
drivers/uart
app/gdb_monitor
test/gdb_monitor
lib/ld server/nitpicker
}
lappend build_components "lib/gdbserver_platform-$::env(KERNEL)"
build $build_components
@ -97,10 +97,14 @@ install_config {
</target>
<preserve name="RAM" quantum="2M"/>
<vfs>
<dir name="dev"> <log/> <terminal/> </dir>
<dir name="dev">
<log/>
<terminal raw="yes"/>
<inline name="rtc">2021-01-01 00:01</inline>
</dir>
<dir name="pipe"> <pipe/> </dir>
</vfs>
<libc stdout="/dev/log" stderr="/dev/log" pipe="/pipe"/>
<libc stdout="/dev/log" stderr="/dev/log" pipe="/pipe" rtc="/dev/rtc"/>
</config>
</start>
@ -124,6 +128,7 @@ build_boot_image {
stdcxx.lib.so libc.lib.so libm.lib.so vfs.lib.so
pc_uart_drv
gdb_monitor gdbserver_platform.lib.so
ld.lib.so nitpicker
}
#
@ -168,7 +173,7 @@ append gdb_cmds {-ex "set interactive-mode auto" }
puts "command: [gdb] debug/ld.lib.so $gdb_cmds"
exec [terminal] -e "bash -lc \"[gdb] debug/ld.lib.so $gdb_cmds\"" &
exec [terminal] -e "bash -lc \'[gdb] debug/ld.lib.so $gdb_cmds\'" &
interact -i [output_spawn_id]

View File

@ -77,10 +77,14 @@ set config {
</target>
<preserve name="RAM" quantum="5M"/>
<vfs>
<dir name="dev"> <log/> <terminal/> </dir>
<dir name="dev">
<log/>
<terminal raw="yes"/>
<inline name="rtc">2021-01-01 00:01</inline>
</dir>
<dir name="pipe"> <pipe/> </dir>
</vfs>
<libc stdout="/dev/log" stderr="/dev/log" pipe="/pipe"/>
<libc stdout="/dev/log" stderr="/dev/log" pipe="/pipe" rtc="/dev/rtc"/>
</config>
</start>
</config>
@ -140,6 +144,7 @@ set gdb_target_binary "test-gdb_monitor"
# sequence of GDB commands to execute at startup
set gdb_cmds ""
append gdb_cmds {-ex "target remote localhost:$local_port" }
append gdb_cmds {-ex "set style enabled off" }
append gdb_cmds [gdb_initial_breakpoint_cmds $gdb_target_binary]
# run GDB
@ -248,10 +253,10 @@ if {![regexp {Breakpoint 4, test_thread_start} $output]} {
send "info threads\n"
run_genode_until {\(gdb\)} 20 $gdb_id
if {![regexp {\* 4 Thread 4 test_thread_start} $output] ||
![regexp { 3 Thread 3} $output] ||
![regexp { 2 Thread 2} $output] ||
![regexp { 1 Thread 1} $output]} {
if {![regexp {\* 4 Thread 1.4 test_thread_start} $output] ||
![regexp { 3 Thread 1.3} $output] ||
![regexp { 2 Thread 1.2} $output] ||
![regexp { 1 Thread 1.1} $output]} {
puts stderr "*** Error: Thread info is not as expected"
exit -1
}

View File

@ -73,10 +73,14 @@ set config {
</target>
<preserve name="RAM" quantum="5M"/>
<vfs>
<dir name="dev"> <log/> <terminal/> </dir>
<dir name="dev">
<log/>
<terminal raw="yes"/>
<inline name="rtc">2021-01-01 00:01</inline>
</dir>
<dir name="pipe"> <pipe/> </dir>
</vfs>
<libc stdout="/dev/log" stderr="/dev/log" pipe="/pipe"/>
<libc stdout="/dev/log" stderr="/dev/log" pipe="/pipe" rtc="/dev/rtc"/>
</config>
</start>
</config>

View File

@ -73,10 +73,14 @@ set config {
</target>
<preserve name="RAM" quantum="5M"/>
<vfs>
<dir name="dev"> <log/> <terminal/> </dir>
<dir name="dev">
<log/>
<terminal raw="yes"/>
<inline name="rtc">2021-01-01 00:01</inline>
</dir>
<dir name="pipe"> <pipe/> </dir>
</vfs>
<libc stdout="/dev/log" stderr="/dev/log" pipe="/pipe"/>
<libc stdout="/dev/log" stderr="/dev/log" pipe="/pipe" rtc="/dev/rtc"/>
</config>
</start>
</config>

View File

@ -6,7 +6,7 @@
*/
/*
* Copyright (C) 2011-2017 Genode Labs GmbH
* Copyright (C) 2011-2021 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU Affero General Public License version 3.
@ -31,8 +31,6 @@
#include "server.h"
#include "linux-low.h"
void linux_detach_one_lwp (struct lwp_info *lwp);
static bool verbose = false;
Genode::Env *genode_env;
@ -302,7 +300,7 @@ pid_t my_waitpid(pid_t pid, int *status, int flags)
if (cc == 1 && c == '\003' && current_thread != NULL) {
/* this causes a SIGINT to be delivered to one of the threads */
(*the_target->request_interrupt)();
the_target->request_interrupt();
continue;
} else {
if (verbose)
@ -591,8 +589,8 @@ void genode_remove_thread(unsigned long lwpid)
{
struct thread_info *thread_info =
find_thread_ptid(ptid_t(GENODE_MAIN_LWPID, lwpid, 0));
struct lwp_info *lwp = get_thread_lwp(thread_info);
linux_detach_one_lwp(lwp);
lwp_info *lwp = get_thread_lwp(thread_info);
the_linux_target->detach_one_lwp(lwp);
}
@ -610,7 +608,7 @@ void genode_resume_all_threads()
}
int genode_detach(int pid)
static int genode_detach(int)
{
genode_resume_all_threads();
@ -618,12 +616,18 @@ int genode_detach(int pid)
}
int genode_kill(int pid)
int linux_process_target::detach(process_info *process)
{
return genode_detach(process->pid);
}
int linux_process_target::kill(process_info *process)
{
/* TODO */
if (verbose) warning(__func__, " not implemented, just detaching instead...");
return genode_detach(pid);
return genode_detach(process->pid);
}
@ -643,9 +647,9 @@ void genode_continue_thread(unsigned long lwpid, int single_step)
}
void genode_fetch_registers(struct regcache *regcache, int regno)
void linux_process_target::fetch_registers(regcache *regcache, int regno)
{
const struct regs_info *regs_info = (*the_low_target.regs_info) ();
const struct regs_info *regs_info = get_regs_info();
unsigned long reg_content = 0;
@ -665,11 +669,11 @@ void genode_fetch_registers(struct regcache *regcache, int regno)
}
void genode_store_registers(struct regcache *regcache, int regno)
void linux_process_target::store_registers(regcache *regcache, int regno)
{
if (verbose) log(__func__, ": regno=", regno);
const struct regs_info *regs_info = (*the_low_target.regs_info) ();
const struct regs_info *regs_info = get_regs_info();
unsigned long reg_content = 0;
@ -714,13 +718,20 @@ int genode_read_memory(CORE_ADDR memaddr, unsigned char *myaddr, int len)
}
int linux_process_target::read_memory(CORE_ADDR memaddr,
unsigned char *myaddr, int len)
{
return genode_read_memory(memaddr, myaddr, len);
}
void genode_write_memory_byte(void *addr, unsigned char value)
{
memory_model().write(addr, value);
}
int genode_write_memory (CORE_ADDR memaddr, const unsigned char *myaddr, int len)
int genode_write_memory(CORE_ADDR memaddr, const unsigned char *myaddr, int len)
{
if (verbose)
log(__func__, "(", Hex(memaddr), ", ", myaddr, ", ", len, ")");
@ -749,3 +760,72 @@ int genode_write_memory (CORE_ADDR memaddr, const unsigned char *myaddr, int len
return 0;
}
int linux_process_target::write_memory(CORE_ADDR memaddr,
const unsigned char *myaddr, int len)
{
return genode_write_memory(memaddr, myaddr, len);
}
LONGEST linux_common_xfer_osdata(char const*, gdb_byte*, ULONGEST, ULONGEST)
{
Genode::error(__func__, " called, not implemented");
return -1;
}
int linux_common_core_of_thread(ptid_t)
{
return 0;
}
bool linux_process_target::supports_qxfer_libraries_svr4()
{
return false;
}
int linux_process_target::qxfer_libraries_svr4(const char *,
unsigned char *,
unsigned const char *,
CORE_ADDR, int)
{
Genode::error(__func__, " called, not implemented");
return -1;
}
char *linux_proc_pid_to_exec_file(int)
{
return nullptr;
}
ssize_t linux_mntns_readlink(pid_t, const char *, char *, size_t)
{
Genode::error(__func__, " called, not implemented");
return -1;
}
int linux_mntns_unlink (pid_t, const char *)
{
Genode::error(__func__, " called, not implemented");
return -1;
}
int linux_mntns_open_cloexec(pid_t, const char *, int, mode_t)
{
Genode::error(__func__, " called, not implemented");
return -1;
}
const char *linux_proc_tid_get_name(ptid_t)
{
return "";
}

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (C) 2011-2017 Genode Labs GmbH
* Copyright (C) 2011-2021 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU Affero General Public License version 3.
@ -32,8 +32,6 @@ void genode_continue_thread(unsigned long lwpid, int single_step);
int genode_kill(int pid);
int genode_detach(int pid);
void genode_fetch_registers(struct regcache *regcache, int regno);
void genode_store_registers(struct regcache *regcache, int regno);
int genode_read_memory(CORE_ADDR memaddr, unsigned char *myaddr, int len);
int genode_write_memory (CORE_ADDR memaddr, const unsigned char *myaddr, int len);

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (C) 2011-2017 Genode Labs GmbH
* Copyright (C) 2011-2021 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU Affero General Public License version 3.
@ -17,6 +17,7 @@
#define HAVE_ARPA_INET_H 1
#define HAVE_ERRNO_H 1
#define HAVE_FCNTL_H 1
#define HAVE_NETDB_H 1
#define HAVE_NETINET_IN_H 1
#define HAVE_NETINET_TCP_H 1
#define HAVE_SIGNAL_H 1

View File

@ -3,13 +3,14 @@ TARGET = gdb_monitor
GDB_CONTRIB_DIR = $(call select_from_ports,gdb)/src/noux-pkg/gdb
INC_DIR += $(GDB_CONTRIB_DIR)/include \
$(GDB_CONTRIB_DIR) \
$(GDB_CONTRIB_DIR)/gdb \
$(GDB_CONTRIB_DIR)/gdb/common \
$(GDB_CONTRIB_DIR)/gdb/gdbserver \
$(GDB_CONTRIB_DIR)/gdb/gnulib/import \
$(GDB_CONTRIB_DIR)/gdb/regformats \
$(GDB_CONTRIB_DIR)/gdbserver \
$(GDB_CONTRIB_DIR)/gnulib/import \
$(REP_DIR)/src/lib/gdbserver_libc_support \
$(PRG_DIR)/gdbserver \
$(PRG_DIR)/gdbsupport \
$(PRG_DIR)
LIBS = stdcxx libc \
@ -18,41 +19,20 @@ LIBS = stdcxx libc \
# libiberty
SRC_C = argv.c \
concat.c \
crc32.c
crc32.c \
xstrdup.c
# gnulib
SRC_C += rawmemchr.c \
strchrnul.c
# gdb
SRC_CC += common/agent.cc \
common/buffer.cc \
common/cleanups.cc \
common/common-debug.cc \
common/common-exceptions.cc \
common/common-utils.cc \
common/environ.cc \
common/errors.cc \
common/filestuff.cc \
common/format.cc \
common/gdb_tilde_expand.cc \
common/gdb_vecs.cc \
common/job-control.cc \
common/pathstuff.cc \
common/posix-strerror.cc \
common/print-utils.cc \
common/ptid.cc \
common/rsp-low.cc \
common/signals.cc \
common/tdesc.cc \
common/vec.cc \
common/xml-utils.cc \
gdbserver/ax.cc \
# gdbserver
SRC_CC += gdbserver/ax.cc \
gdbserver/debug.cc \
gdbserver/dll.cc \
gdbserver/event-loop.cc \
gdbserver/fork-child.cc \
gdbserver/hostio.cc \
gdbserver/hostio-errno.cc \
gdbserver/i387-fp.cc \
gdbserver/inferiors.cc \
gdbserver/linux-low.cc \
@ -66,11 +46,41 @@ SRC_CC += common/agent.cc \
gdbserver/tdesc.cc \
gdbserver/tracepoint.cc \
gdbserver/utils.cc \
gdbserver/x86-low.cc \
nat/fork-inferior.cc \
gdbserver/x86-low.cc
# gdbsupport
SRC_CC += gdbsupport/agent.cc \
gdbsupport/buffer.cc \
gdbsupport/cleanups.cc \
gdbsupport/common-debug.cc \
gdbsupport/common-exceptions.cc \
gdbsupport/common-inferior.cc \
gdbsupport/common-utils.cc \
gdbsupport/environ.cc \
gdbsupport/errors.cc \
gdbsupport/event-loop.cc \
gdbsupport/fileio.cc \
gdbsupport/filestuff.cc \
gdbsupport/format.cc \
gdbsupport/gdb_tilde_expand.cc \
gdbsupport/gdb_vecs.cc \
gdbsupport/job-control.cc \
gdbsupport/netstuff.cc \
gdbsupport/pathstuff.cc \
gdbsupport/print-utils.cc \
gdbsupport/ptid.cc \
gdbsupport/rsp-low.cc \
gdbsupport/safe-strerror.cc \
gdbsupport/signals.cc \
gdbsupport/tdesc.cc \
gdbsupport/xml-utils.cc
# gdb
SRC_CC += nat/fork-inferior.cc \
nat/linux-ptrace.cc \
nat/x86-dregs.cc \
target/waitstatus.cc
target/waitstatus.cc \
alloc.cc
# genode
SRC_CC += genode-low.cc \
@ -80,13 +90,14 @@ SRC_CC += genode-low.cc \
signal_handler_thread.cc \
main.cc
CC_OPT += -DGDBSERVER -DPKGVERSION="\"8.1.1\"" -DREPORT_BUGS_TO="\"\""
CC_OPT += -DGDBSERVER -DPKGVERSION="\"10.2\"" -DREPORT_BUGS_TO="\"\""
CC_OPT += -DHAVE_SYS_WAIT_H -DHAVE_SYS_PTRACE_H -DHAVE_DECL_PTRACE -DHAVE_TERMIOS
CC_OPT += -fpermissive -Wno-unused-function
vpath %.c $(GDB_CONTRIB_DIR)/gdb/gnulib/import
vpath %.c $(GDB_CONTRIB_DIR)/gnulib/import
vpath %.c $(GDB_CONTRIB_DIR)/libiberty
vpath %.cc $(GDB_CONTRIB_DIR)/gdb
vpath %.cc $(GDB_CONTRIB_DIR)
vpath %.cc $(PRG_DIR)/gdbserver
#

View File

@ -8,10 +8,10 @@ Enable software single-stepping on ARM.
1 file changed, 2 insertions(+)
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index cfdfb0b..3afe712 100644
index be342117..8c87f098 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -9289,6 +9289,8 @@ arm_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
@@ -9339,6 +9339,8 @@ arm_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
tdep = XCNEW (struct gdbarch_tdep);
gdbarch = gdbarch_alloc (&info, tdep);

View File

@ -8,10 +8,10 @@ From: Christian Prochaska <christian.prochaska@genode-labs.com>
1 file changed, 2 insertions(+)
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index fe2453c..6c9fdf8 100644
index d97c5629..a6df6fe3 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -8479,7 +8479,9 @@ i386_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
@@ -8573,7 +8573,9 @@ i386_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
set_gdbarch_get_longjmp_target (gdbarch, i386_get_longjmp_target);
/* Call dummy code. */

View File

@ -4,14 +4,14 @@ From: Christian Prochaska <christian.prochaska@genode-labs.com>
---
gdb/amd64-tdep.c | 13 +++++++++++++
gdb/defs.h | 1 +
gdb/amd64-tdep.c | 14 ++++++++++++++
gdb/i386-tdep.c | 5 +++++
gdb/osabi.c | 6 ++++++
4 files changed, 25 insertions(+)
gdb/osabi.h | 1 +
4 files changed, 26 insertions(+)
diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c
index e1f8862..314bf77 100644
index 1d8cfd0b..55eb6f60 100644
--- a/gdb/amd64-tdep.c
+++ b/gdb/amd64-tdep.c
@@ -50,6 +50,7 @@
@ -22,7 +22,7 @@ index e1f8862..314bf77 100644
#include "solib-svr4.h"
/* Note that the AMD64 architecture was previously known as x86-64.
@@ -3296,6 +3297,13 @@ amd64_target_description (uint64_t xcr0, bool segments)
@@ -3359,7 +3360,15 @@ amd64_target_description (uint64_t xcr0, bool segments)
return *tdesc;
}
@ -32,14 +32,16 @@ index e1f8862..314bf77 100644
+ amd64_init_abi (info, gdbarch,
+ amd64_target_description (X86_XSTATE_SSE_MASK, false));
+}
+
void _initialize_amd64_tdep ();
+
void
_initialize_amd64_tdep (void)
_initialize_amd64_tdep ()
{
@@ -3326,6 +3334,11 @@ _initialize_amd64_tdep (void)
selftests::record_xml_tdesc (a.xml, tdesc);
}
#endif /* GDB_SELF_TEST */
@@ -3367,6 +3376,11 @@ _initialize_amd64_tdep ()
amd64_none_init_abi);
gdbarch_register_osabi (bfd_arch_i386, bfd_mach_x64_32, GDB_OSABI_NONE,
amd64_x32_none_init_abi);
+
+ /* Genode */
+ gdbarch_register_osabi(bfd_arch_i386, bfd_mach_x86_64,
@ -48,23 +50,11 @@ index e1f8862..314bf77 100644
}
diff --git a/gdb/defs.h b/gdb/defs.h
index fc42170..6a43bf4 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -495,6 +495,7 @@ enum gdb_osabi
GDB_OSABI_LYNXOS178,
GDB_OSABI_NEWLIB,
GDB_OSABI_SDE,
+ GDB_OSABI_GENODE,
GDB_OSABI_INVALID /* keep this last */
};
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index 18e6e77..fe2453c 100644
index 057f3e3c..d97c5629 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -9051,6 +9051,11 @@ Show Intel Memory Protection Extensions specific variables."),
@@ -9134,6 +9134,11 @@ Show Intel Memory Protection Extensions specific variables."),
gdbarch_register_osabi (bfd_arch_i386, 0, GDB_OSABI_SVR4,
i386_svr4_init_abi);
@ -77,18 +67,18 @@ index 18e6e77..fe2453c 100644
i386_init_reggroups ();
diff --git a/gdb/osabi.c b/gdb/osabi.c
index 7d0540b..a68eea6 100644
index 1a9cdc82..5e7e7731 100644
--- a/gdb/osabi.c
+++ b/gdb/osabi.c
@@ -80,6 +80,7 @@ static const struct osabi_names gdb_osabi_names[] =
{ "LynxOS178", NULL },
@@ -82,6 +82,7 @@ static const struct osabi_names gdb_osabi_names[] =
{ "Newlib", NULL },
{ "SDE", NULL },
{ "PikeOS", NULL },
+ { "Genode", NULL },
{ "<invalid>", NULL }
};
@@ -562,6 +563,11 @@ generic_elf_osabi_sniffer (bfd *abfd)
@@ -564,6 +565,11 @@ generic_elf_osabi_sniffer (bfd *abfd)
bfd_map_over_sections (abfd,
generic_elf_osabi_sniff_abi_tag_sections,
&osabi);
@ -100,3 +90,15 @@ index 7d0540b..a68eea6 100644
break;
case ELFOSABI_FREEBSD:
diff --git a/gdb/osabi.h b/gdb/osabi.h
index c510f99f..06a4eb99 100644
--- a/gdb/osabi.h
+++ b/gdb/osabi.h
@@ -47,6 +47,7 @@ enum gdb_osabi
GDB_OSABI_NEWLIB,
GDB_OSABI_SDE,
GDB_OSABI_PIKEOS,
+ GDB_OSABI_GENODE,
GDB_OSABI_INVALID /* keep this last */
};

File diff suppressed because it is too large Load Diff

View File

@ -5,15 +5,16 @@ From: Christian Prochaska <christian.prochaska@genode-labs.com>
---
gdb/configure | 10 +++++-----
gdb/dwarf-index-write.c | 2 +-
gdb/dwarf2/index-write.c | 2 +-
gnulib/config.in | 2 ++
sim/common/Make-common.in | 2 +-
3 files changed, 7 insertions(+), 7 deletions(-)
4 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/gdb/configure b/gdb/configure
index 28756ed..a3d6fc2 100755
index 03464ae5..6f705fc7 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -6608,11 +6608,11 @@ fi
@@ -6699,11 +6699,11 @@ fi
# configuration.
gdb_host_obs=posix-hdep.o
@ -29,7 +30,7 @@ index 28756ed..a3d6fc2 100755
. $srcdir/configure.host
@@ -13785,7 +13785,7 @@ sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
@@ -14353,7 +14353,7 @@ sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
return 0;
}
_ACEOF
@ -38,11 +39,11 @@ index 28756ed..a3d6fc2 100755
gdb_cv_func_sigsetjmp=yes
else
gdb_cv_func_sigsetjmp=no
diff --git a/gdb/dwarf-index-write.c b/gdb/dwarf-index-write.c
index d283146..55bef80 100644
--- a/gdb/dwarf-index-write.c
+++ b/gdb/dwarf-index-write.c
@@ -705,7 +705,7 @@ public:
diff --git a/gdb/dwarf2/index-write.c b/gdb/dwarf2/index-write.c
index 0079c0fe..376a9151 100644
--- a/gdb/dwarf2/index-write.c
+++ b/gdb/dwarf2/index-write.c
@@ -777,7 +777,7 @@ class debug_names
gdb_assert (m_abbrev_table.empty ());
const size_t name_count = m_name_to_value_set.size ();
m_bucket_table.resize
@ -51,8 +52,28 @@ index d283146..55bef80 100644
m_hash_table.reserve (name_count);
m_name_table_string_offs.reserve (name_count);
m_name_table_entry_offs.reserve (name_count);
diff --git a/gnulib/config.in b/gnulib/config.in
index d8a5e8be..cc1cc9fc 100644
--- a/gnulib/config.in
+++ b/gnulib/config.in
@@ -1192,6 +1192,7 @@
/* Define to 1 to make NetBSD features available. MINIX 3 needs this. */
#undef _NETBSD_SOURCE
+#if 0
/* The _Noreturn keyword of C11. */
#ifndef _Noreturn
# if (defined __cplusplus \
@@ -1220,6 +1221,7 @@
# define _Noreturn
# endif
#endif
+#endif
/* Define to 2 if the system does not provide POSIX.1 features except with
diff --git a/sim/common/Make-common.in b/sim/common/Make-common.in
index 1e61927..6263ece 100644
index 21e1d991..2ea1ab60 100644
--- a/sim/common/Make-common.in
+++ b/sim/common/Make-common.in
@@ -236,7 +236,7 @@ CSEARCH = -I. -I$(srcdir) -I../common -I$(srccom) \

View File

@ -6,12 +6,12 @@ Enable shared library support.
---
gdb/amd64-tdep.c | 4 ++++
gdb/arm-tdep.c | 4 ++++
gdb/configure.tgt | 6 +++++-
gdb/configure.tgt | 7 +++++--
gdb/i386-tdep.c | 4 ++++
4 files changed, 17 insertions(+), 1 deletion(-)
4 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c
index 190e086..e1f8862 100644
index 3a24b0d9..1d8cfd0b 100644
--- a/gdb/amd64-tdep.c
+++ b/gdb/amd64-tdep.c
@@ -50,6 +50,8 @@
@ -23,7 +23,7 @@ index 190e086..e1f8862 100644
/* Note that the AMD64 architecture was previously known as x86-64.
The latter is (forever) engraved into the canonical system name as
returned by config.guess, and used as the name for the AMD64 port
@@ -3056,6 +3058,8 @@ amd64_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch,
@@ -3127,6 +3129,8 @@ amd64_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch,
static const char *const stap_register_indirection_suffixes[] = { ")",
NULL };
@ -33,19 +33,19 @@ index 190e086..e1f8862 100644
floating-point registers. */
tdep->sizeof_fpregset = I387_SIZEOF_FXSAVE;
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index fdfb360..cfdfb0b 100644
index 415f11e1..be342117 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -73,6 +73,8 @@
#include "selftest.h"
@@ -66,6 +66,8 @@
#include "gdbsupport/selftest.h"
#endif
+#include "solib-svr4.h"
+
static int arm_debug;
static bool arm_debug;
/* Macros for setting and testing a bit in a minimal symbol that marks
@@ -9287,6 +9289,8 @@ arm_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
@@ -9337,6 +9339,8 @@ arm_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
tdep = XCNEW (struct gdbarch_tdep);
gdbarch = gdbarch_alloc (&info, tdep);
@ -55,18 +55,19 @@ index fdfb360..cfdfb0b 100644
These are gdbarch discriminators, like the OSABI. */
tdep->arm_abi = arm_abi;
diff --git a/gdb/configure.tgt b/gdb/configure.tgt
index f197160..cbdd010 100644
index a3e11c4b..3756809c 100644
--- a/gdb/configure.tgt
+++ b/gdb/configure.tgt
@@ -180,6 +180,7 @@ arm*-*-symbianelf*)
@@ -189,7 +189,7 @@ arm*-*-symbianelf*)
;;
arm*-*-*)
# Target: ARM embedded system
- gdb_target_obs="arm-pikeos-tdep.o"
+ gdb_target_obs="solib-svr4.o"
gdb_sim=../sim/arm/libsim.a
;;
@@ -698,8 +699,11 @@ x86_64-*-dicos*)
@@ -725,8 +725,11 @@ x86_64-*-dicos*)
dicos-tdep.o i386-dicos-tdep.o amd64-dicos-tdep.o"
;;
x86_64-*-elf*)
@ -80,19 +81,19 @@ index f197160..cbdd010 100644
# Target: GNU/Linux x86-64
gdb_target_obs="amd64-linux-tdep.o ${i386_tobjs} \
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index a6994aa..18e6e77 100644
index c33983b6..057f3e3c 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -65,6 +65,8 @@
#include <ctype.h>
#include <algorithm>
@@ -67,6 +67,8 @@
#include <unordered_set>
#include "producer.h"
+#include "solib-svr4.h"
+
/* Register names. */
static const char *i386_register_names[] =
@@ -8374,6 +8376,8 @@ i386_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
@@ -8465,6 +8467,8 @@ i386_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
tdep = XCNEW (struct gdbarch_tdep);
gdbarch = gdbarch_alloc (&info, tdep);

View File

@ -7,7 +7,9 @@ CONFIGURE_ARGS += --program-prefix=$(PROGRAM_PREFIX) \
# the configure script calls the linker with "-lexpat", which fails
CONFIGURE_ARGS += --without-expat
CPPFLAGS += -DHAVE_LIBEXPAT=1
CFLAGS += -Wno-error=sizeof-pointer-memaccess -Wno-error=unused-value
CFLAGS += -Wno-error=sizeof-pointer-memaccess \
-Wno-error=unused-value \
-Wno-error=overflow
LIBS += stdcxx ncurses expat