X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gdb%2Famd64-windows-nat.c;h=cd9701b6a6bc69628afbab6bffdca328717e82ec;hb=ed34ef5ed3b11141a622e3edfb0c47e790f1fea7;hp=d440de1be1f55ae5aa74f7fd5c784ad4009c7e16;hpb=dc05df573e1aa9dc6e970734e85d22f2f8bc4047;p=platform%2Fupstream%2Fbinutils.git diff --git a/gdb/amd64-windows-nat.c b/gdb/amd64-windows-nat.c index d440de1..cd9701b 100644 --- a/gdb/amd64-windows-nat.c +++ b/gdb/amd64-windows-nat.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2008, 2009 Free Software Foundation, Inc. +/* Copyright (C) 2008-2014 Free Software Foundation, Inc. This file is part of GDB. @@ -17,6 +17,8 @@ #include "defs.h" #include "windows-nat.h" +#include "x86-nat.h" +#include "amd64-tdep.h" #include @@ -85,8 +87,21 @@ static const int mappings[] = }; #undef context_offset +/* segment_register_p_ftype implementation for amd64. */ + +static int +amd64_windows_segment_register_p (int regnum) +{ + return regnum >= AMD64_CS_REGNUM && regnum <= AMD64_GS_REGNUM; +} + +/* -Wmissing-prototypes */ +extern initialize_file_ftype _initialize_amd64_windows_nat; + void _initialize_amd64_windows_nat (void) { windows_set_context_register_offsets (mappings); + windows_set_segment_register_p (amd64_windows_segment_register_p); + x86_set_debug_register_length (8); }