aboutsummaryrefslogtreecommitdiff
path: root/gdb/config
AgeCommit message (Expand)AuthorFilesLines
2018-01-02Update copyright year range in all GDB filesJoel Brobecker9-9/+9
2018-01-02Yearly rotation of the gdb/ChangeLog fileJoel Brobecker1-0/+1
2017-09-06Correct shell compatibility issue detected with pkgsrc.Kamil Rytarowski1-1/+1
2017-05-06Introduce "gdb/configure.nat" (and delete "gdb/config/*/*.mh" files)Sergio Durigan Junior56-441/+0
2017-04-04Remove support for FreeBSD/alpha.John Baldwin1-6/+0
2017-03-07Remove use of the no longer needed -mminimal-toc option.Peter Bergner1-6/+0
2017-01-04Add native target for FreeBSD/mips.John Baldwin1-0/+3
2017-01-01update copyright year range in GDB filesJoel Brobecker12-12/+12
2017-01-01Rotate GDB main ChangeLog for 2017Joel Brobecker1-0/+1
2016-12-08Hurd, C++: Mach/Hurd headers and MIG stubs are not yet fit for C++Thomas Schwinge1-0/+3
2016-11-23Normalize names of some source filesSimon Marchi31-80/+80
2016-07-01Consolidate x86 debug register code for BSD native targets.John Baldwin6-7/+7
2016-02-02Merge gdb and gdbserver implementations for siginfoWalfred Tedeschi1-1/+1
2016-01-21Fix regression introduced in "break *<EXPR>" by explicit location patches.Joel Brobecker1-0/+2
2016-01-01GDB copyright headers update after running GDB's copyright.py script.Joel Brobecker12-12/+12
2016-01-01Rotate the GDB ChangeLogJoel Brobecker1-0/+1
2015-08-25Move aarch64_linux_prepare_to_resume to nat/aarch64-linux.cYao Qi1-1/+2
2015-07-17Move common aarch64 HW breakpoint/watchpoint code to nat/Yao Qi1-1/+1
2015-07-15Revert the previous 7 commits of: Validate binary before useJan Kratochvil2-2/+2
2015-07-15Create empty nat/linux-maps.[ch] and common/target-utils.[ch]Jan Kratochvil2-2/+2
2015-07-07Native debug arm program by aarch64 GDBYao Qi1-1/+1
2015-07-07New aarch32-linux-nat.cYao Qi1-1/+1
2015-06-10Introduce nat/linux-namespaces.[ch]Gary Benson18-19/+21
2015-03-24Move low-level Linux x86 debug register code to a shared fileGary Benson2-2/+4
2015-03-24Make lwp_info.arch_private handling sharedGary Benson2-2/+2
2015-03-20Remove gdb.hpJan Kratochvil1-2/+2
2015-03-13Remove HPUXJan Kratochvil3-8/+0
2015-03-05Enable rthreads support on OpenBSD/hppaMark Kettenis1-1/+1
2015-01-15Move code to disable ASR to nat/Sergio Durigan Junior18-14/+23
2015-01-14Detect 64-bit-ness in PowerPC Book III-EYao Qi1-1/+1
2015-01-01Update year range in copyright notice of all files owned by the GDB project.Joel Brobecker12-12/+12
2015-01-01Yearly gdb/ChangeLog rotation.Joel Brobecker1-0/+1
2014-12-03Use core regset iterators on Sparc SolarisUlrich Weigand1-1/+1
2014-12-01Use core regset iterators on GNU HurdUlrich Weigand1-1/+1
2014-11-28Remove (dead-code) native core file sniffers on Linux targetsUlrich Weigand3-3/+2
2014-11-19Don't set CC in config/i386/go32.mhYao Qi1-1/+0
2014-10-24Remove Vax Ultrix and VAX BSD supportPedro Alves1-2/+0
2014-10-17Delete Tru64 supportPedro Alves3-45/+0
2014-10-10Delete IRIX supportPedro Alves2-8/+0
2014-09-16Add hardware watchpoint support for x86 GNU Hurd.Samuel Thibault1-1/+2
2014-09-02Rename 32- and 64-bit Intel files from "i386" to "x86"Gary Benson10-10/+10
2014-07-11Move duplicated code into new filesGary Benson2-1/+2
2014-06-19Create nat/i386-dregs.cGary Benson10-10/+10
2014-05-03Enable rthreads support on OpenBSD/powerpc.Mark Kettenis1-1/+1
2014-03-01Enable rhreads support on OpenBSD/i386.Mark Kettenis1-1/+1
2014-03-01Enable rthreads support on OpenBSD/mips64.Mark Kettenis1-1/+1
2014-03-01Enable rthreads support on OpenBSD/amd64.Mark Kettenis1-1/+1
2014-02-28Enable rthreads supports on OpenBSD/sparc64.Mark Kettenis1-0/+5
2014-01-01Update Copyright year range in all files maintained by GDB.Joel Brobecker13-13/+13
2014-01-01Add gdb/ChangeLog-2013 entry in fnchange.lst.Joel Brobecker1-0/+1
> { if (!(p = lock_user_string(ARG(0)))) { /* FIXME - check error code? */ result = -1; } else { result = unlink(p); unlock_user(p, ARG(0), 0); } } break; case HOSTED_STAT: if (use_gdb_syscalls()) { gdb_do_syscall(m68k_semi_cb, "stat,%s,%x", ARG(0), (int)ARG(1), ARG(2)); return; } else { struct stat s; if (!(p = lock_user_string(ARG(0)))) { /* FIXME - check error code? */ result = -1; } else { result = stat(p, &s); unlock_user(p, ARG(0), 0); } if (result == 0) { translate_stat(env, ARG(2), &s); } } break; case HOSTED_FSTAT: if (use_gdb_syscalls()) { gdb_do_syscall(m68k_semi_cb, "fstat,%x,%x", ARG(0), ARG(1)); return; } else { struct stat s; result = fstat(ARG(0), &s); if (result == 0) { translate_stat(env, ARG(1), &s); } } break; case HOSTED_GETTIMEOFDAY: if (use_gdb_syscalls()) { gdb_do_syscall(m68k_semi_cb, "gettimeofday,%x,%x", ARG(0), ARG(1)); return; } else { qemu_timeval tv; struct gdb_timeval *p; result = qemu_gettimeofday(&tv); if (result != 0) { if (!(p = lock_user(VERIFY_WRITE, ARG(0), sizeof(struct gdb_timeval), 0))) { /* FIXME - check error code? */ result = -1; } else { p->tv_sec = cpu_to_be32(tv.tv_sec); p->tv_usec = cpu_to_be64(tv.tv_usec); unlock_user(p, ARG(0), sizeof(struct gdb_timeval)); } } } break; case HOSTED_ISATTY: if (use_gdb_syscalls()) { gdb_do_syscall(m68k_semi_cb, "isatty,%x", ARG(0)); return; } else { result = isatty(ARG(0)); } break; case HOSTED_SYSTEM: if (use_gdb_syscalls()) { gdb_do_syscall(m68k_semi_cb, "system,%s", ARG(0), (int)ARG(1)); return; } else { if (!(p = lock_user_string(ARG(0)))) { /* FIXME - check error code? */ result = -1; } else { result = system(p); unlock_user(p, ARG(0), 0); } } break; case HOSTED_INIT_SIM: #if defined(CONFIG_USER_ONLY) { TaskState *ts = env->opaque; /* Allocate the heap using sbrk. */ if (!ts->heap_limit) { long ret; uint32_t size; uint32_t base; base = do_brk(0); size = SEMIHOSTING_HEAP_SIZE; /* Try a big heap, and reduce the size if that fails. */ for (;;) { ret = do_brk(base + size); if (ret != -1) break; size >>= 1; } ts->heap_limit = base + size; } /* This call may happen before we have writable memory, so return values directly in registers. */ env->dregs[1] = ts->heap_limit; env->aregs[7] = ts->stack_base; } #else /* FIXME: This is wrong for boards where RAM does not start at address zero. */ env->dregs[1] = ram_size; env->aregs[7] = ram_size; #endif return; default: cpu_abort(env, "Unsupported semihosting syscall %d\n", nr); result = 0; } /* FIXME - handle put_user() failure */ put_user_u32(result, args); put_user_u32(errno, args + 4); }