Bug 311470 (MONO30048) - FreeBSD style registers are the same in other BSDs
Summary: FreeBSD style registers are the same in other BSDs
Status: RESOLVED FIXED
Alias: MONO30048
Product: Mono: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2002-09-09 17:20 UTC by Julio Merino
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Patch for exception.c (342 bytes, patch)
2002-09-09 17:21 UTC, Thomas Wiest
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:00:56 UTC


---- Reported by jmmv@hispabsd.org 2002-09-09 10:20:34 MST ----

Please fill in this template when reporting a bug, unless you know what you
are doing.
Description of Problem:
The file mono/jit/exception.c access several register names directly, like
'eax'. In NetBSD, those need to be accessed like in FreeBSD, using 'sc_eax'
and similar names. Not doing so results in a compilation failure.

Currently, the file uses an #ifdef check to determine if we are in FreeBSD
or not. This check can be easily extended to also allow __NetBSD__ and
__OpenBSD__, which effectively fixes the problem

Steps to reproduce the problem:
1. Get a NetBSD (or OpenBSD, should be just the same) system and try to
compile exception.c

Actual Results:
Failure to compile exception.c.

Expected Results:


How often does this happen? 


Additional Information:



---- Additional Comments From jmmv@hispabsd.org 2002-09-09 10:21:12 MST ----

Created an attachment (id=164341)
Patch for exception.c




---- Additional Comments From dietmar@ximian.com 2002-09-12 06:58:04 MST ----

patch is in CVS 

Imported an attachment (id=164341)

Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>NetBSD 1.6H (current)</cf_op_sys_details>
Unknown operating system other. Setting to default OS "Other".