Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tayshawnna Jackson
wine
Commits
c174b3f5
Commit
c174b3f5
authored
12 years ago
by
André Zwing
Committed by
Alexandre Julliard
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
dbghelp: Remove SPARC support.
parent
e7bdde36
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dlls/dbghelp/Makefile.in
+0
-1
0 additions, 1 deletion
dlls/dbghelp/Makefile.in
dlls/dbghelp/cpu_sparc.c
+0
-106
0 additions, 106 deletions
dlls/dbghelp/cpu_sparc.c
dlls/dbghelp/dbghelp.c
+2
-4
2 additions, 4 deletions
dlls/dbghelp/dbghelp.c
with
2 additions
and
111 deletions
dlls/dbghelp/Makefile.in
+
0
−
1
View file @
c174b3f5
...
...
@@ -11,7 +11,6 @@ C_SRCS = \
cpu_arm64.c
\
cpu_i386.c
\
cpu_ppc.c
\
cpu_sparc.c
\
cpu_x86_64.c
\
crc32.c
\
dbghelp.c
\
...
...
This diff is collapsed.
Click to expand it.
dlls/dbghelp/cpu_sparc.c
deleted
100644 → 0
+
0
−
106
View file @
e7bdde36
/*
* File cpu_sparc.c
*
* Copyright (C) 2009-2009, Eric Pouech
* Copyright (C) 2010, Austin English
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include
<assert.h>
#include
"ntstatus.h"
#define WIN32_NO_STATUS
#include
"dbghelp_private.h"
#include
"winternl.h"
#include
"wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
dbghelp
);
static
unsigned
sparc_get_addr
(
HANDLE
hThread
,
const
CONTEXT
*
ctx
,
enum
cpu_addr
ca
,
ADDRESS64
*
addr
)
{
addr
->
Mode
=
AddrModeFlat
;
addr
->
Segment
=
0
;
/* don't need segment */
switch
(
ca
)
{
#ifdef __sparc__
case
cpu_addr_pc
:
addr
->
Offset
=
ctx
->
pc
;
return
TRUE
;
case
cpu_addr_stack
:
addr
->
Offset
=
ctx
->
o6
;
return
TRUE
;
case
cpu_addr_frame
:
addr
->
Offset
=
ctx
->
i6
;
return
TRUE
;
#endif
default:
addr
->
Mode
=
-
1
;
return
FALSE
;
}
}
static
BOOL
sparc_stack_walk
(
struct
cpu_stack_walk
*
csw
,
LPSTACKFRAME64
frame
,
CONTEXT
*
context
)
{
FIXME
(
"not done for Sparc
\n
"
);
return
FALSE
;
}
static
unsigned
sparc_map_dwarf_register
(
unsigned
regno
)
{
if
(
regno
<=
7
)
return
CV_SPARC_G0
+
regno
;
else
if
(
regno
>=
8
&&
regno
<=
15
)
return
CV_SPARC_O0
+
regno
-
8
;
else
if
(
regno
>=
16
&&
regno
<=
23
)
return
CV_SPARC_L0
+
regno
-
16
;
else
if
(
regno
>=
24
&&
regno
<=
31
)
return
CV_SPARC_I0
+
regno
-
24
;
FIXME
(
"Don't know how to map register %d
\n
"
,
regno
);
return
CV_SPARC_NOREG
;
}
static
void
*
sparc_fetch_context_reg
(
CONTEXT
*
ctx
,
unsigned
regno
,
unsigned
*
size
)
{
FIXME
(
"not done for Sparc
\n
"
);
return
NULL
;
}
static
const
char
*
sparc_fetch_regname
(
unsigned
regno
)
{
FIXME
(
"Unknown register %x
\n
"
,
regno
);
return
NULL
;
}
static
BOOL
sparc_fetch_minidump_thread
(
struct
dump_context
*
dc
,
unsigned
index
,
unsigned
flags
,
const
CONTEXT
*
ctx
)
{
FIXME
(
"NIY
\n
"
);
return
FALSE
;
}
static
BOOL
sparc_fetch_minidump_module
(
struct
dump_context
*
dc
,
unsigned
index
,
unsigned
flags
)
{
FIXME
(
"NIY
\n
"
);
return
FALSE
;
}
DECLSPEC_HIDDEN
struct
cpu
cpu_sparc
=
{
IMAGE_FILE_MACHINE_SPARC
,
4
,
CV_REG_NONE
,
/* FIXME */
sparc_get_addr
,
sparc_stack_walk
,
NULL
,
sparc_map_dwarf_register
,
sparc_fetch_context_reg
,
sparc_fetch_regname
,
sparc_fetch_minidump_thread
,
sparc_fetch_minidump_module
,
};
This diff is collapsed.
Click to expand it.
dlls/dbghelp/dbghelp.c
+
2
−
4
View file @
c174b3f5
...
...
@@ -151,9 +151,9 @@ const char* wine_dbgstr_addr(const ADDRESS64* addr)
}
}
extern
struct
cpu
cpu_i386
,
cpu_x86_64
,
cpu_ppc
,
cpu_sparc
,
cpu_arm
,
cpu_arm64
;
extern
struct
cpu
cpu_i386
,
cpu_x86_64
,
cpu_ppc
,
cpu_arm
,
cpu_arm64
;
static
struct
cpu
*
dbghelp_cpus
[]
=
{
&
cpu_i386
,
&
cpu_x86_64
,
&
cpu_ppc
,
&
cpu_sparc
,
&
cpu_arm
,
&
cpu_arm64
,
NULL
};
static
struct
cpu
*
dbghelp_cpus
[]
=
{
&
cpu_i386
,
&
cpu_x86_64
,
&
cpu_ppc
,
&
cpu_arm
,
&
cpu_arm64
,
NULL
};
struct
cpu
*
dbghelp_current_cpu
=
#if defined(__i386__)
&
cpu_i386
...
...
@@ -161,8 +161,6 @@ struct cpu* dbghelp_current_cpu =
&
cpu_x86_64
#elif defined(__powerpc__)
&
cpu_ppc
#elif defined(__sparc__)
&
cpu_sparc
#elif defined(__arm__)
&
cpu_arm
#elif defined(__aarch64__)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment