aa72a572d7693b1645c6aba9543b7451161418e7
[deliverable/binutils-gdb.git] / gdb / tm-sparc.h
1 /* Parameters for target machine of Sun 4, for GDB, the GNU debugger.
2 Copyright (C) 1986, 1987, 1989 Free Software Foundation, Inc.
3 Contributed by Michael Tiemann (tiemann@mcc.com)
4 This file is part of GDB.
5
6 GDB is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 1, or (at your option)
9 any later version.
10
11 GDB is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with GDB; see the file COPYING. If not, write to
18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
19
20 #define TARGET_BYTE_ORDER BIG_ENDIAN
21
22 /* Floating point is IEEE compatible. */
23 #define IEEE_FLOAT
24
25 /* Define this if the C compiler puts an underscore at the front
26 of external names before giving them to the linker. */
27
28 #define NAMES_HAVE_UNDERSCORE
29
30 /* Debugger information will be in DBX format. */
31
32 #define READ_DBX_FORMAT
33
34 /* When passing a structure to a function, Sun cc passes the address
35 in a register, not the structure itself. It (under SunOS4) creates
36 two symbols, so we get a LOC_ARG saying the address is on the stack
37 (a lie, and a serious one since we don't know which register to
38 use), and a LOC_REGISTER saying that the struct is in a register
39 (sort of a lie, but fixable with REG_STRUCT_HAS_ADDR). Gcc version
40 two (as of 1.92) behaves like sun cc, but I don't know how we can
41 distinguish between gcc version 1 and gcc version 2.
42
43 This still doesn't work if the argument is not one passed in a
44 register (i.e. it's the 7th or later argument). */
45 #define REG_STRUCT_HAS_ADDR(gcc_p) (!(gcc_p))
46 #define STRUCT_ARG_SYM_GARBAGE(gcc_p) (!(gcc_p))
47
48 /* If Pcc says that a parameter is a short, it's a short. This is
49 because the parameter does get passed in in a register as an int,
50 but pcc puts it onto the stack frame as a short (not nailing
51 whatever else might be there. I'm not sure that I consider this
52 swift. Sigh.)
53
54 No, don't do this. The problem here is that pcc says that the
55 argument is in the upper half of the word reserved on the stack,
56 but puts it in the lower half. */
57 /* #define BELIEVE_PCC_PROMOTION 1 */
58 /* OK, I've added code to dbxread.c to deal with this case. */
59 #define BELIEVE_PCC_PROMOTION_TYPE
60
61 /* Offset from address of function to start of its code.
62 Zero on most machines. */
63
64 #define FUNCTION_START_OFFSET 0
65
66 /* Advance PC across any function entry prologue instructions
67 to reach some "real" code. */
68
69 #define SKIP_PROLOGUE(pc) \
70 { pc = skip_prologue (pc); }
71 extern CORE_ADDR skip_prologue ();
72
73 /* Immediately after a function call, return the saved pc.
74 Can't go through the frames for this because on some machines
75 the new frame is not set up until the new function executes
76 some instructions. */
77
78 /* On the Sun 4 under SunOS, the compile will leave a fake insn which
79 encodes the structure size being returned. If we detect such
80 a fake insn, step past it. */
81
82 #define PC_ADJUST(pc) ((read_memory_integer (pc + 8, 4) & 0xfffffe00) == 0 ? \
83 pc+12 : pc+8)
84
85 #define SAVED_PC_AFTER_CALL(frame) PC_ADJUST (read_register (RP_REGNUM))
86
87 /* Address of the end of stack space. We get this from the system
88 include files. */
89 #include <sys/types.h>
90 #include <machine/vmparam.h>
91 #define STACK_END_ADDR USRSTACK
92
93 #define INNER_THAN <
94
95 /* Stack has strict alignment. */
96
97 #define STACK_ALIGN(ADDR) (((ADDR)+7)&-8)
98
99 /* Sequence of bytes for breakpoint instruction. */
100
101 #define BREAKPOINT {0x91, 0xd0, 0x20, 0x01}
102
103 /* Amount PC must be decremented by after a breakpoint.
104 This is often the number of bytes in BREAKPOINT
105 but not always. */
106
107 #define DECR_PC_AFTER_BREAK 0
108
109 /* Nonzero if instruction at PC is a return instruction. */
110 /* For SPARC, this is either a "jmpl %o7+8,%g0" or "jmpl %i7+8,%g0".
111
112 Note: this does not work for functions returning structures under SunOS. */
113 #define ABOUT_TO_RETURN(pc) \
114 ((read_memory_integer (pc, 4)|0x00040000) == 0x81c7e008)
115
116 /* Return 1 if P points to an invalid floating point value. */
117
118 #define INVALID_FLOAT(p, len) 0 /* Just a first guess; not checked */
119
120 /* Say how long (ordinary) registers are. */
121
122 #define REGISTER_TYPE long
123
124 /* Number of machine registers */
125
126 #define NUM_REGS 72
127
128 /* Initializer for an array of names of registers.
129 There should be NUM_REGS strings in this initializer. */
130
131 #define REGISTER_NAMES \
132 { "g0", "g1", "g2", "g3", "g4", "g5", "g6", "g7", \
133 "o0", "o1", "o2", "o3", "o4", "o5", "sp", "o7", \
134 "l0", "l1", "l2", "l3", "l4", "l5", "l6", "l7", \
135 "i0", "i1", "i2", "i3", "i4", "i5", "fp", "i7", \
136 \
137 "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", \
138 "f8", "f9", "f10", "f11", "f12", "f13", "f14", "f15", \
139 "f16", "f17", "f18", "f19", "f20", "f21", "f22", "f23", \
140 "f24", "f25", "f26", "f27", "f28", "f29", "f30", "f31", \
141 \
142 "y", "psr", "wim", "tbr", "pc", "npc", "fpsr", "cpsr" };
143
144 /* Register numbers of various important registers.
145 Note that some of these values are "real" register numbers,
146 and correspond to the general registers of the machine,
147 and some are "phony" register numbers which are too large
148 to be actual register numbers as far as the user is concerned
149 but do serve to get the desired values when passed to read_register. */
150
151 #define G0_REGNUM 0 /* %g0 */
152 #define G1_REGNUM 1 /* %g1 */
153 #define O0_REGNUM 8 /* %o0 */
154 #define SP_REGNUM 14 /* Contains address of top of stack, \
155 which is also the bottom of the frame. */
156 #define RP_REGNUM 15 /* Contains return address value, *before* \
157 any windows get switched. */
158 #define O7_REGNUM 15 /* Last local reg not saved on stack frame */
159 #define L0_REGNUM 16 /* First local reg that's saved on stack frame
160 rather than in machine registers */
161 #define I0_REGNUM 24 /* %i0 */
162 #define FP_REGNUM 30 /* Contains address of executing stack frame */
163 #define I7_REGNUM 31 /* Last local reg saved on stack frame */
164 #define FP0_REGNUM 32 /* Floating point register 0 */
165 #define Y_REGNUM 64 /* Temp register for multiplication, etc. */
166 #define PS_REGNUM 65 /* Contains processor status */
167 #define WIM_REGNUM 66 /* Window Invalid Mask (not really supported) */
168 #define TBR_REGNUM 67 /* Trap Base Register (not really supported) */
169 #define PC_REGNUM 68 /* Contains program counter */
170 #define NPC_REGNUM 69 /* Contains next PC */
171 #define FPS_REGNUM 70 /* Floating point status register */
172 #define CPS_REGNUM 71 /* Coprocessor status register */
173
174 /* Total amount of space needed to store our copies of the machine's
175 register state, the array `registers'. */
176 #define REGISTER_BYTES (32*4+32*4+8*4)
177
178 /* Index within `registers' of the first byte of the space for
179 register N. */
180 /* ?? */
181 #define REGISTER_BYTE(N) ((N)*4)
182
183 /* The SPARC processor has register windows. */
184
185 #define HAVE_REGISTER_WINDOWS
186
187 /* Is this register part of the register window system? A yes answer
188 implies that 1) The name of this register will not be the same in
189 other frames, and 2) This register is automatically "saved" (out
190 registers shifting into ins counts) upon subroutine calls and thus
191 there is no need to search more than one stack frame for it. */
192
193 #define REGISTER_IN_WINDOW_P(regnum) \
194 ((regnum) >= 8 && (regnum) < 32)
195
196 /* Number of bytes of storage in the actual machine representation
197 for register N. */
198
199 /* On the SPARC, all regs are 4 bytes. */
200
201 #define REGISTER_RAW_SIZE(N) (4)
202
203 /* Number of bytes of storage in the program's representation
204 for register N. */
205
206 /* On the SPARC, all regs are 4 bytes. */
207
208 #define REGISTER_VIRTUAL_SIZE(N) (4)
209
210 /* Largest value REGISTER_RAW_SIZE can have. */
211
212 #define MAX_REGISTER_RAW_SIZE 8
213
214 /* Largest value REGISTER_VIRTUAL_SIZE can have. */
215
216 #define MAX_REGISTER_VIRTUAL_SIZE 8
217
218 /* Nonzero if register N requires conversion
219 from raw format to virtual format. */
220
221 #define REGISTER_CONVERTIBLE(N) (0)
222
223 /* Convert data from raw format for register REGNUM
224 to virtual format for register REGNUM. */
225
226 #define REGISTER_CONVERT_TO_VIRTUAL(REGNUM,FROM,TO) \
227 { bcopy ((FROM), (TO), 4); }
228
229 /* Convert data from virtual format for register REGNUM
230 to raw format for register REGNUM. */
231
232 #define REGISTER_CONVERT_TO_RAW(REGNUM,FROM,TO) \
233 { bcopy ((FROM), (TO), 4); }
234
235 /* Return the GDB type object for the "standard" data type
236 of data in register N. */
237
238 #define REGISTER_VIRTUAL_TYPE(N) \
239 ((N) < 32 ? builtin_type_int : (N) < 64 ? builtin_type_float : \
240 builtin_type_int)
241
242 /* Writing to %g0 is a noop (not an error or exception or anything like
243 that, however). */
244
245 #define CANNOT_STORE_REGISTER(regno) ((regno) == G0_REGNUM)
246
247 /* Store the address of the place in which to copy the structure the
248 subroutine will return. This is called from call_function. */
249
250 #define STORE_STRUCT_RETURN(ADDR, SP) \
251 { target_write_memory ((SP)+(16*4), (char *)&(ADDR), 4); }
252
253 /* Extract from an array REGBUF containing the (raw) register state
254 a function return value of type TYPE, and copy that, in virtual format,
255 into VALBUF. */
256
257 #define EXTRACT_RETURN_VALUE(TYPE,REGBUF,VALBUF) \
258 { \
259 if (TYPE_CODE (TYPE) == TYPE_CODE_FLT) \
260 { \
261 bcopy (((int *)(REGBUF))+FP0_REGNUM, \
262 (VALBUF), TYPE_LENGTH(TYPE)); \
263 } \
264 else \
265 bcopy (((int *)(REGBUF))+8, (VALBUF), TYPE_LENGTH (TYPE)); \
266 }
267
268 /* Write into appropriate registers a function return value
269 of type TYPE, given in virtual format. */
270 /* On sparc, values are returned in register %o0. */
271 #define STORE_RETURN_VALUE(TYPE,VALBUF) \
272 { \
273 if (TYPE_CODE (TYPE) == TYPE_CODE_FLT) \
274 /* Floating-point values are returned in the register pair */ \
275 /* formed by %f0 and %f1 (doubles are, anyway). */ \
276 write_register_bytes (REGISTER_BYTE (FP0_REGNUM), (VALBUF), \
277 TYPE_LENGTH (TYPE)); \
278 else \
279 /* Other values are returned in register %o0. */ \
280 write_register_bytes (REGISTER_BYTE (O0_REGNUM), (VALBUF), \
281 TYPE_LENGTH (TYPE)); \
282 }
283
284 /* Extract from an array REGBUF containing the (raw) register state
285 the address in which a function should return its structure value,
286 as a CORE_ADDR (or an expression that can be used as one). */
287
288 #define EXTRACT_STRUCT_VALUE_ADDRESS(REGBUF) \
289 (read_memory_integer (((int *)(REGBUF))[SP_REGNUM]+(16*4), 4))
290
291 \f
292 /* Describe the pointer in each stack frame to the previous stack frame
293 (its caller). */
294
295 /* If you're not compiling this on a sun, you'll have to get a copy
296 of <sun4/reg.h> (also known as <machine/reg.h>). */
297 #include <sun4/reg.h>
298
299 #define GET_RWINDOW_REG(FRAME, REG) \
300 (read_memory_integer ((CORE_ADDR)&((struct rwindow *)FRAME)->REG, 4))
301
302 /* FRAME_CHAIN takes a frame's nominal address
303 and produces the frame's chain-pointer.
304
305 FRAME_CHAIN_COMBINE takes the chain pointer and the frame's nominal address
306 and produces the nominal address of the caller frame.
307
308 However, if FRAME_CHAIN_VALID returns zero,
309 it means the given frame is the outermost one and has no caller.
310 In that case, FRAME_CHAIN_COMBINE is not used. */
311
312 /* In the case of the Sun 4, the frame-chain's nominal address
313 is held in the frame pointer register.
314
315 On the Sun4, the frame (in %fp) is %sp for the previous frame.
316 From the previous frame's %sp, we can find the previous frame's
317 %fp: it is in the save area just above the previous frame's %sp.
318
319 If we are setting up an arbitrary frame, we'll need to know where
320 it ends. Hence the following. This part of the frame cache
321 structure should be checked before it is assumed that this frame's
322 bottom is in the stack pointer.
323
324 If there isn't a frame below this one, the bottom of this frame is
325 in the stack pointer.
326
327 If there is a frame below this one, and the frame pointers are
328 identical, it's a leaf frame and the bottoms are the same also.
329
330 Otherwise the bottom of this frame is the top of the next frame. */
331
332 #define EXTRA_FRAME_INFO FRAME_ADDR bottom;
333 #define INIT_EXTRA_FRAME_INFO(fci) \
334 (fci)->bottom = \
335 ((fci)->next ? \
336 ((fci)->frame == (fci)->next_frame ? \
337 (fci)->next->bottom : (fci)->next->frame) : \
338 read_register (SP_REGNUM));
339
340 #define FRAME_CHAIN(thisframe) \
341 GET_RWINDOW_REG ((thisframe)->frame, rw_in[6])
342
343 #define FRAME_CHAIN_VALID(chain, thisframe) \
344 (chain != 0 && (outside_startup_file (FRAME_SAVED_PC (thisframe))))
345
346 #define FRAME_CHAIN_COMBINE(chain, thisframe) (chain)
347
348 /* Define other aspects of the stack frame. */
349
350 /* A macro that tells us whether the function invocation represented
351 by FI does not have a frame on the stack associated with it. If it
352 does not, FRAMELESS is set to 1, else 0. */
353 #define FRAMELESS_FUNCTION_INVOCATION(FI, FRAMELESS) \
354 (FRAMELESS) = frameless_look_for_prologue(FI)
355
356 /* Where is the PC for a specific frame */
357
358 #define FRAME_SAVED_PC(FRAME) frame_saved_pc (FRAME)
359 CORE_ADDR frame_saved_pc ();
360
361 /* If the argument is on the stack, it will be here. */
362 #define FRAME_ARGS_ADDRESS(fi) ((fi)->frame)
363
364 #define FRAME_STRUCT_ARGS_ADDRESS(fi) ((fi)->frame)
365
366 #define FRAME_LOCALS_ADDRESS(fi) ((fi)->frame)
367
368 /* Set VAL to the number of args passed to frame described by FI.
369 Can set VAL to -1, meaning no way to tell. */
370
371 /* We can't tell how many args there are
372 now that the C compiler delays popping them. */
373 #define FRAME_NUM_ARGS(val,fi) (val = -1)
374
375 /* Return number of bytes at start of arglist that are not really args. */
376
377 #define FRAME_ARGS_SKIP 68
378
379 /* Put here the code to store, into a struct frame_saved_regs,
380 the addresses of the saved registers of frame described by FRAME_INFO.
381 The actual code is in sparc-tdep.c so we can debug it sanely. */
382
383 #define FRAME_FIND_SAVED_REGS(fi, frame_saved_regs) \
384 sparc_frame_find_saved_regs ((fi), &(frame_saved_regs))
385 extern void sparc_frame_find_saved_regs ();
386 \f
387 /* Things needed for making the inferior call functions. */
388 /*
389 * First of all, let me give my opinion of what the DUMMY_FRAME
390 * actually looks like.
391 *
392 * | |
393 * | |
394 * + - - - - - - - - - - - - - - - - +<-- fp (level 0)
395 * | |
396 * | |
397 * | |
398 * | |
399 * | Frame of innermost program |
400 * | function |
401 * | |
402 * | |
403 * | |
404 * | |
405 * | |
406 * |---------------------------------|<-- sp (level 0), fp (c)
407 * | |
408 * DUMMY | fp0-31 |
409 * | |
410 * | ------ |<-- fp - 0x80
411 * FRAME | g0-7 |<-- fp - 0xa0
412 * | i0-7 |<-- fp - 0xc0
413 * | other |<-- fp - 0xe0
414 * | ? |
415 * | ? |
416 * |---------------------------------|<-- sp' = fp - 0x140
417 * | |
418 * xcution start | |
419 * sp' + 0x94 -->| CALL_DUMMY (x code) |
420 * | |
421 * | |
422 * |---------------------------------|<-- sp'' = fp - 0x200
423 * | align sp to 8 byte boundary |
424 * | ==> args to fn <== |
425 * Room for | |
426 * i & l's + agg | CALL_DUMMY_STACK_ADJUST = 0x0x44|
427 * |---------------------------------|<-- final sp (variable)
428 * | |
429 * | Where function called will |
430 * | build frame. |
431 * | |
432 * | |
433 *
434 * I understand everything in this picture except what the space
435 * between fp - 0xe0 and fp - 0x140 is used for. Oh, and I don't
436 * understand why there's a large chunk of CALL_DUMMY that never gets
437 * executed (its function is superceeded by PUSH_DUMMY_FRAME; they
438 * are designed to do the same thing).
439 *
440 * PUSH_DUMMY_FRAME saves the registers above sp' and pushes the
441 * register file stack down one.
442 *
443 * call_function then writes CALL_DUMMY, pushes the args onto the
444 * stack, and adjusts the stack pointer.
445 *
446 * run_stack_dummy then starts execution (in the middle of
447 * CALL_DUMMY, as directed by call_function).
448 */
449
450 /* Push an empty stack frame, to record the current PC, etc. */
451
452 #define PUSH_DUMMY_FRAME sparc_push_dummy_frame ()
453 #define POP_FRAME sparc_pop_frame ()
454
455 void sparc_push_dummy_frame (), sparc_pop_frame ();
456 /* This sequence of words is the instructions
457
458 save %sp,-0x140,%sp
459 std %f30,[%fp-0x08]
460 std %f28,[%fp-0x10]
461 std %f26,[%fp-0x18]
462 std %f24,[%fp-0x20]
463 std %f22,[%fp-0x28]
464 std %f20,[%fp-0x30]
465 std %f18,[%fp-0x38]
466 std %f16,[%fp-0x40]
467 std %f14,[%fp-0x48]
468 std %f12,[%fp-0x50]
469 std %f10,[%fp-0x58]
470 std %f8,[%fp-0x60]
471 std %f6,[%fp-0x68]
472 std %f4,[%fp-0x70]
473 std %f2,[%fp-0x78]
474 std %f0,[%fp-0x80]
475 std %g6,[%fp-0x88]
476 std %g4,[%fp-0x90]
477 std %g2,[%fp-0x98]
478 std %g0,[%fp-0xa0]
479 std %i6,[%fp-0xa8]
480 std %i4,[%fp-0xb0]
481 std %i2,[%fp-0xb8]
482 std %i0,[%fp-0xc0]
483 nop ! stcsr [%fp-0xc4]
484 nop ! stfsr [%fp-0xc8]
485 nop ! wr %npc,[%fp-0xcc]
486 nop ! wr %pc,[%fp-0xd0]
487 rd %tbr,%o0
488 st %o0,[%fp-0xd4]
489 rd %wim,%o1
490 st %o0,[%fp-0xd8]
491 rd %psr,%o0
492 st %o0,[%fp-0xdc]
493 rd %y,%o0
494 st %o0,[%fp-0xe0]
495
496 /..* The arguments are pushed at this point by GDB;
497 no code is needed in the dummy for this.
498 The CALL_DUMMY_START_OFFSET gives the position of
499 the following ld instruction. *../
500
501 ld [%sp+0x58],%o5
502 ld [%sp+0x54],%o4
503 ld [%sp+0x50],%o3
504 ld [%sp+0x4c],%o2
505 ld [%sp+0x48],%o1
506 call 0x00000000
507 ld [%sp+0x44],%o0
508 nop
509 ta 1
510 nop
511
512 note that this is 192 bytes, which is a multiple of 8 (not only 4) bytes.
513 note that the `call' insn is a relative, not an absolute call.
514 note that the `nop' at the end is needed to keep the trap from
515 clobbering things (if NPC pointed to garbage instead).
516
517 We actually start executing at the `sethi', since the pushing of the
518 registers (as arguments) is done by PUSH_DUMMY_FRAME. If this were
519 real code, the arguments for the function called by the CALL would be
520 pushed between the list of ST insns and the CALL, and we could allow
521 it to execute through. But the arguments have to be pushed by GDB
522 after the PUSH_DUMMY_FRAME is done, and we cannot allow these ST
523 insns to be performed again, lest the registers saved be taken for
524 arguments. */
525
526 #define CALL_DUMMY { 0x9de3bee0, 0xfd3fbff8, 0xf93fbff0, 0xf53fbfe8, \
527 0xf13fbfe0, 0xed3fbfd8, 0xe93fbfd0, 0xe53fbfc8, \
528 0xe13fbfc0, 0xdd3fbfb8, 0xd93fbfb0, 0xd53fbfa8, \
529 0xd13fbfa0, 0xcd3fbf98, 0xc93fbf90, 0xc53fbf88, \
530 0xc13fbf80, 0xcc3fbf78, 0xc83fbf70, 0xc43fbf68, \
531 0xc03fbf60, 0xfc3fbf58, 0xf83fbf50, 0xf43fbf48, \
532 0xf03fbf40, 0x01000000, 0x01000000, 0x01000000, \
533 0x01000000, 0x91580000, 0xd027bf50, 0x93500000, \
534 0xd027bf4c, 0x91480000, 0xd027bf48, 0x91400000, \
535 0xd027bf44, 0xda03a058, 0xd803a054, 0xd603a050, \
536 0xd403a04c, 0xd203a048, 0x40000000, 0xd003a044, \
537 0x01000000, 0x91d02001, 0x01000000, 0x01000000}
538
539 #define CALL_DUMMY_LENGTH 192
540
541 #define CALL_DUMMY_START_OFFSET 148
542
543 #define CALL_DUMMY_STACK_ADJUST 68
544
545 /* Insert the specified number of args and function address
546 into a call sequence of the above form stored at DUMMYNAME.
547
548 For structs and unions, if the function was compiled with Sun cc,
549 it expects 'unimp' after the call. But gcc doesn't use that
550 (twisted) convention. So leave a nop there for gcc (FIX_CALL_DUMMY
551 can assume it is operating on a pristine CALL_DUMMY, not one that
552 has already been customized for a different function). */
553
554 #define FIX_CALL_DUMMY(dummyname, pc, fun, nargs, args, type, gcc_p) \
555 { \
556 *(int *)((char *) dummyname+168) = (0x40000000|((fun-(pc+168))>>2)); \
557 if (!gcc_p \
558 && (TYPE_CODE (type) == TYPE_CODE_STRUCT \
559 || TYPE_CODE (type) == TYPE_CODE_UNION)) \
560 *(int *)((char *) dummyname+176) = (TYPE_LENGTH (type) & 0x1fff); \
561 }
562
563 \f
564 /* Sparc has no reliable single step ptrace call */
565
566 #define NO_SINGLE_STEP 1
567 extern void single_step ();
568
569 /* We need two arguments (in general) to the "info frame" command.
570 Note that the definition of this macro implies that there exists a
571 function "setup_arbitrary_frame" in mach-dep.c */
572
573 #define FRAME_SPECIFICATION_DYADIC
574
575 /* To print every pair of float registers as a double, we use this hook. */
576
577 #define PRINT_REGISTER_HOOK(regno) \
578 if (((regno) >= FP0_REGNUM) \
579 && ((regno) < FP0_REGNUM + 32) \
580 && (0 == (regno & 1))) { \
581 char doublereg[8]; /* two float regs */ \
582 if (!read_relative_register_raw_bytes (i , doublereg ) \
583 && !read_relative_register_raw_bytes (i+1, doublereg+4)) { \
584 printf("\t"); \
585 print_floating (doublereg, builtin_type_double, stdout); \
586 } \
587 }
588
This page took 0.042986 seconds and 3 git commands to generate.