* language.c (struct op_print unk_op_print_tab): use the enum values
[deliverable/binutils-gdb.git] / gdb / tm-hppa.h
CommitLineData
9f739abd
SG
1/* Parameters for execution on a Hewlett-Packard PA-RISC machine, running
2 HPUX or BSD.
5140562f
JG
3 Copyright 1986, 1987, 1989, 1990, 1991, 1992 Free Software Foundation, Inc.
4
5 Contributed by the Center for Software Science at the
6 University of Utah (pa-gdb-bugs@cs.utah.edu).
7
8This file is part of GDB.
9
10This program is free software; you can redistribute it and/or modify
11it under the terms of the GNU General Public License as published by
12the Free Software Foundation; either version 2 of the License, or
13(at your option) any later version.
14
15This program is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18GNU General Public License for more details.
19
20You should have received a copy of the GNU General Public License
21along with this program; if not, write to the Free Software
22Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
23
24/* Target system byte order. */
25
26#define TARGET_BYTE_ORDER BIG_ENDIAN
27
28/* Get at various relevent fields of an instruction word. */
29
30#define MASK_5 0x1f
31#define MASK_11 0x7ff
32#define MASK_14 0x3fff
33#define MASK_21 0x1fffff
34
35/* This macro gets bit fields using HP's numbering (MSB = 0) */
36
37#define GET_FIELD(X, FROM, TO) \
38 ((X) >> 31 - (TO) & (1 << ((TO) - (FROM) + 1)) - 1)
39
40/* Watch out for NaNs */
41
42#define IEEE_FLOAT
43
733a94e8
SG
44/* When passing a structure to a function, GCC passes the address
45 in a register, not the structure itself. */
46
47#define REG_STRUCT_HAS_ADDR(gcc_p) (1)
48
5140562f
JG
49/* Groan */
50
51#define ARGS_GROW_DOWN
52
53/* Define this if the C compiler puts an underscore at the front
54 of external names before giving them to the linker. */
55
56/* #define NAMES_HAVE_UNDERSCORE */
57
58/* Offset from address of function to start of its code.
59 Zero on most machines. */
60
61#define FUNCTION_START_OFFSET 0
62
63/* Advance PC across any function entry prologue instructions
64 to reach some "real" code. */
65
66/* skip (stw rp, -20(0,sp)); copy 4,1; copy sp, 4; stwm 1,framesize(sp)
67 for gcc, or (stw rp, -20(0,sp); stwm 1, framesize(sp) for hcc */
68
0213d96f 69#define SKIP_PROLOGUE(pc) pc = skip_prologue (pc)
5140562f 70
9f739abd
SG
71/* If PC is in some function-call trampoline code, return the PC
72 where the function itself actually starts. If not, return NULL. */
73
b5c10493 74#define SKIP_TRAMPOLINE_CODE(pc) skip_trampoline_code (pc, NULL)
9f739abd
SG
75
76/* Return non-zero if we are in some sort of a trampoline. */
77
b5c10493 78#define IN_SOLIB_TRAMPOLINE(pc, name) skip_trampoline_code (pc, name)
9f739abd 79
5140562f
JG
80/* Immediately after a function call, return the saved pc.
81 Can't go through the frames for this because on some machines
82 the new frame is not set up until the new function executes
83 some instructions. */
84
85#define SAVED_PC_AFTER_CALL(frame) (read_register (RP_REGNUM) & ~3)
86
87/* Address of end of stack space. Who knows. */
88
89#define STACK_END_ADDR 0x80000000
90
91/* Stack grows upward */
92
93#define INNER_THAN >
94
95
96/* Sequence of bytes for breakpoint instruction. */
97
98/*#define BREAKPOINT {0x00, 0x00, 0x00, 0x00}*/
99#ifdef KERNELDEBUG /* XXX */
100#define BREAKPOINT {0x00, 0x00, 0xa0, 0x00}
101#else
102#define BREAKPOINT {0x00, 0x01, 0x00, 0x04}
103#endif
104
105/* Amount PC must be decremented by after a breakpoint.
106 This is often the number of bytes in BREAKPOINT
107 but not always.
108
109 Not on the PA-RISC */
110
111#define DECR_PC_AFTER_BREAK 0
112
113/* return instruction is bv r0(rp) */
114
115#define ABOUT_TO_RETURN(pc) (read_memory_integer (pc, 4) == 0xE840C000)
116
117/* Return 1 if P points to an invalid floating point value. */
118
119#define INVALID_FLOAT(p, len) 0 /* Just a first guess; not checked */
120
121/* Largest integer type */
122#define LONGEST long
123
124/* Name of the builtin type for the LONGEST type above. */
125#define BUILTIN_TYPE_LONGEST builtin_type_long
126
127/* Say how long (ordinary) registers are. */
128
129#define REGISTER_TYPE long
130
131/* Number of machine registers */
132
133#define NUM_REGS 100
134
135/* Initializer for an array of names of registers.
136 There should be NUM_REGS strings in this initializer. */
137
138#define REGISTER_NAMES \
139 {"flags", "r1", "rp", "r3", "r4", "r5", "r6", "r7", "r8", "r9", \
140 "r10", "r11", "r12", "r13", "r14", "r15", "r16", "r17", "r18", "r19", \
141 "r20", "r21", "r22", "arg3", "arg2", "arg1", "arg0", "dp", "ret0", "ret1", \
142 "sp", "r31", "sar", "pcoqh", "pcsqh", "pcoqt", "pcsqt", \
143 "eiem", "iir", "isr", "ior", "ipsw", "goto", "sr4", "sr0", "sr1", "sr2", \
144 "sr3", "sr5", "sr6", "sr7", "cr0", "cr8", "cr9", "ccr", "cr12", "cr13", \
145 "cr24", "cr25", "cr26", "mpsfu_high", "mpsfu_low", "mpsfu_ovflo", "pad", \
146 "fpsr", "fpe1", "fpe2", "fpe3", "fpe4", "fpe5", "fpe6", "fpe7", \
147 "fp4", "fp5", "fp6", "fp7", "fp8", \
148 "fp9", "fp10", "fp11", "fp12", "fp13", "fp14", "fp15", \
149 "fp16", "fp17", "fp18", "fp19", "fp20", "fp21", "fp22", "fp23", \
150 "fp24", "fp25", "fp26", "fp27", "fp28", "fp29", "fp30", "fp31"}
151
152/* Register numbers of various important registers.
153 Note that some of these values are "real" register numbers,
154 and correspond to the general registers of the machine,
155 and some are "phony" register numbers which are too large
156 to be actual register numbers as far as the user is concerned
157 but do serve to get the desired values when passed to read_register. */
158
9f739abd 159#define FLAGS_REGNUM 0 /* Various status flags */
5140562f
JG
160#define RP_REGNUM 2 /* return pointer */
161#define FP_REGNUM 4 /* Contains address of executing stack */
162 /* frame */
163#define SP_REGNUM 30 /* Contains address of top of stack */
164#define SAR_REGNUM 32 /* shift amount register */
165#define IPSW_REGNUM 41 /* processor status word. ? */
166#define PCOQ_HEAD_REGNUM 33 /* instruction offset queue head */
167#define PCSQ_HEAD_REGNUM 34 /* instruction space queue head */
168#define PCOQ_TAIL_REGNUM 35 /* instruction offset queue tail */
169#define PCSQ_TAIL_REGNUM 36 /* instruction space queue tail */
170#define FP0_REGNUM 64 /* floating point reg. 0 */
171#define FP4_REGNUM 72
172
173/* compatibility with the rest of gdb. */
174#define PC_REGNUM PCOQ_HEAD_REGNUM
175#define NPC_REGNUM PCOQ_TAIL_REGNUM
176
e0ba1d14
JG
177/* When fetching register values from an inferior or a core file,
178 clean them up using this macro. BUF is a char pointer to
179 the raw value of the register in the registers[] array. */
180
181#define CLEAN_UP_REGISTER_VALUE(regno, buf) \
182 do { \
183 if ((regno) == PCOQ_HEAD_REGNUM || (regno) == PCOQ_TAIL_REGNUM) \
184 (buf)[3] &= ~0x3; \
185 } while (0)
186
5140562f
JG
187/* Define DO_REGISTERS_INFO() to do machine-specific formatting
188 of register dumps. */
189
190#define DO_REGISTERS_INFO(_regnum, fp) pa_do_registers_info (_regnum, fp)
191
192/* PA specific macro to see if the current instruction is nullified. */
193#define INSTRUCTION_NULLIFIED ((int)read_register (IPSW_REGNUM) & 0x00200000)
194
195/* Total amount of space needed to store our copies of the machine's
196 register state, the array `registers'. */
197#define REGISTER_BYTES (32 * 4 + 11 * 4 + 8 * 4 + 12 * 4 + 4 + 32 * 8)
198
199/* Index within `registers' of the first byte of the space for
200 register N. */
201
202#define REGISTER_BYTE(N) \
203 ((N) >= FP4_REGNUM ? ((N) - FP4_REGNUM) * 8 + 288 : (N) * 4)
204
205/* Number of bytes of storage in the actual machine representation
206 for register N. On the PA-RISC, all regs are 4 bytes
207 except the floating point regs which are 8 bytes. */
208
209#define REGISTER_RAW_SIZE(N) ((N) < FP4_REGNUM ? 4 : 8)
210
211/* Number of bytes of storage in the program's representation
212 for register N. */
213
214#define REGISTER_VIRTUAL_SIZE(N) REGISTER_RAW_SIZE(N)
215
216/* Largest value REGISTER_RAW_SIZE can have. */
217
218#define MAX_REGISTER_RAW_SIZE 8
219
220/* Largest value REGISTER_VIRTUAL_SIZE can have. */
221
222#define MAX_REGISTER_VIRTUAL_SIZE 8
223
224/* Nonzero if register N requires conversion
225 from raw format to virtual format. */
226
227#define REGISTER_CONVERTIBLE(N) 0
228
229/* Convert data from raw format for register REGNUM
230 to virtual format for register REGNUM. */
231
9f739abd
SG
232#define REGISTER_CONVERT_TO_VIRTUAL(REGNUM, FROM, TO) \
233{ memcpy ((TO), (FROM), (REGNUM) < FP4_REGNUM ? 4 : 8); }
5140562f
JG
234
235/* Convert data from virtual format for register REGNUM
236 to raw format for register REGNUM. */
237
9f739abd
SG
238#define REGISTER_CONVERT_TO_RAW(REGNUM, FROM, TO) \
239{ memcpy ((TO), (FROM), (REGNUM) < FP4_REGNUM ? 4 : 8); }
5140562f
JG
240
241/* Return the GDB type object for the "standard" data type
242 of data in register N. */
243
244#define REGISTER_VIRTUAL_TYPE(N) \
245 ((N) < FP4_REGNUM ? builtin_type_int : builtin_type_double)
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) {write_register (28, (ADDR)); }
251
252/* Extract from an array REGBUF containing the (raw) register state
253 a function return value of type TYPE, and copy that, in virtual format,
254 into VALBUF. */
255
256#define EXTRACT_RETURN_VALUE(TYPE,REGBUF,VALBUF) \
257 bcopy ((REGBUF) + REGISTER_BYTE(TYPE_LENGTH(TYPE) > 4 ? \
258 FP4_REGNUM :28), VALBUF, TYPE_LENGTH (TYPE))
259
260/* Write into appropriate registers a function return value
261 of type TYPE, given in virtual format. */
262
263#define STORE_RETURN_VALUE(TYPE,VALBUF) \
264 write_register_bytes (TYPE_LENGTH(TYPE) > 4 ? FP4_REGNUM :28, \
265 VALBUF, TYPE_LENGTH (TYPE))
266
267/* Extract from an array REGBUF containing the (raw) register state
268 the address in which a function should return its structure value,
269 as a CORE_ADDR (or an expression that can be used as one). */
270
271#define EXTRACT_STRUCT_VALUE_ADDRESS(REGBUF) (*(int *)((REGBUF) + 28))
272
9f739abd
SG
273/*
274 * This macro defines the register numbers (from REGISTER_NAMES) that
275 * are effectively unavailable to the user through ptrace(). It allows
276 * us to include the whole register set in REGISTER_NAMES (inorder to
277 * better support remote debugging). If it is used in
278 * fetch/store_inferior_registers() gdb will not complain about I/O errors
279 * on fetching these registers. If all registers in REGISTER_NAMES
280 * are available, then return false (0).
281 */
282
283#define CANNOT_STORE_REGISTER(regno) \
284 ((regno) == 0) || \
285 ((regno) == PCSQ_HEAD_REGNUM) || \
286 ((regno) >= PCSQ_TAIL_REGNUM && (regno) < IPSW_REGNUM) || \
287 ((regno) > IPSW_REGNUM && (regno) < FP4_REGNUM)
288
b5c10493 289#define INIT_EXTRA_FRAME_INFO(fromleaf, frame) init_extra_frame_info (fromleaf, frame)
5140562f
JG
290
291/* Describe the pointer in each stack frame to the previous stack frame
292 (its caller). */
293
294/* FRAME_CHAIN takes a frame's nominal address
295 and produces the frame's chain-pointer.
296
297 FRAME_CHAIN_COMBINE takes the chain pointer and the frame's nominal address
298 and produces the nominal address of the caller frame.
299
300 However, if FRAME_CHAIN_VALID returns zero,
301 it means the given frame is the outermost one and has no caller.
302 In that case, FRAME_CHAIN_COMBINE is not used. */
303
304/* In the case of the PA-RISC, the frame's nominal address
305 is the address of a 4-byte word containing the calling frame's
306 address (previous FP). */
307
b5c10493 308#define FRAME_CHAIN(thisframe) frame_chain (thisframe)
5140562f
JG
309
310#define FRAME_CHAIN_VALID(chain, thisframe) \
311 frame_chain_valid (chain, thisframe)
312
313#define FRAME_CHAIN_COMBINE(chain, thisframe) (chain)
314
315/* Define other aspects of the stack frame. */
316
317/* A macro that tells us whether the function invocation represented
318 by FI does not have a frame on the stack associated with it. If it
319 does not, FRAMELESS is set to 1, else 0. */
320#define FRAMELESS_FUNCTION_INVOCATION(FI, FRAMELESS) \
321 (FRAMELESS) = frameless_look_for_prologue(FI)
322
323#define FRAME_SAVED_PC(FRAME) frame_saved_pc (FRAME)
324
325#define FRAME_ARGS_ADDRESS(fi) ((fi)->frame)
326
327#define FRAME_LOCALS_ADDRESS(fi) ((fi)->frame)
328/* Set VAL to the number of args passed to frame described by FI.
329 Can set VAL to -1, meaning no way to tell. */
330
331/* We can't tell how many args there are
332 now that the C compiler delays popping them. */
333#define FRAME_NUM_ARGS(val,fi) (val = -1)
334
335/* Return number of bytes at start of arglist that are not really args. */
336
337#define FRAME_ARGS_SKIP 0
338
339/* Put here the code to store, into a struct frame_saved_regs,
340 the addresses of the saved registers of frame described by FRAME_INFO.
341 This includes special registers such as pc and fp saved in special
342 ways in the stack frame. sp is even more special:
343 the address we return for it IS the sp for the next frame. */
344
345/* Deal with dummy functions later. */
346
347#define STW_P(INSN) (((INSN) & 0xfc000000) == 0x68000000)
348#define ADDIL_P(INSN) (((INSN) & 0xfc000000) == 0x28000000)
349#define LDO_P(INSN) (((INSN) & 0xfc00c000) == 0x34000000)
350
5140562f
JG
351#define FRAME_FIND_SAVED_REGS(frame_info, frame_saved_regs) \
352{ register int regnum; \
353 register CORE_ADDR next_addr; \
354 register CORE_ADDR pc; \
355 unsigned this_insn; \
356 unsigned address; \
357 \
358 bzero (&frame_saved_regs, sizeof frame_saved_regs); \
9f739abd
SG
359 if ((frame_info->pc >= (frame_info)->frame \
360 && (frame_info)->pc <= ((frame_info)->frame + CALL_DUMMY_LENGTH \
361 + 32 * 4 + (NUM_REGS - FP0_REGNUM) * 8 \
362 + 6 * 4))) \
5140562f
JG
363 find_dummy_frame_regs ((frame_info), &(frame_saved_regs)); \
364 else \
365 { pc = get_pc_function_start ((frame_info)->pc); \
366 if (read_memory_integer (pc, 4) == 0x6BC23FD9) \
367 { (frame_saved_regs).regs[RP_REGNUM] = (frame_info)->frame - 20;\
368 pc = pc + 4; \
369 } \
370 if (read_memory_integer (pc, 4) != 0x8040241) goto lose; \
371 pc += 8; /* skip "copy 4,1; copy 30, 4" */ \
372 /* skip either "stw 1,0(4);addil L'fsize,30;ldo R'fsize(1),30" \
373 or "stwm 1,fsize(30)" */ \
374 if ((read_memory_integer (pc, 4) & ~MASK_14) == 0x68810000) \
375 pc += 12; \
376 else \
377 pc += 4; \
378 while (1) \
379 { this_insn = read_memory_integer(pc, 4); \
380 if (STW_P (this_insn)) /* stw */ \
381 { regnum = GET_FIELD (this_insn, 11, 15); \
382 if (!regnum) goto lose; \
383 (frame_saved_regs).regs[regnum] = (frame_info)->frame + \
384 extract_14 (this_insn); \
385 pc += 4; \
386 } \
387 else if (ADDIL_P (this_insn)) /* addil */ \
388 { int next_insn; \
389 next_insn = read_memory_integer(pc + 4, 4); \
390 if (STW_P (next_insn)) /* stw */ \
391 { regnum = GET_FIELD (this_insn, 6, 10); \
392 if (!regnum) goto lose; \
393 (frame_saved_regs).regs[regnum] = (frame_info)->frame +\
394 (extract_21 (this_insn) << 11) + extract_14 (next_insn);\
395 pc += 8; \
396 } \
397 else \
398 break; \
399 } \
400 else \
401 { pc += 4; \
402 break; \
403 } \
404 } \
405 this_insn = read_memory_integer (pc, 4); \
406 if (LDO_P (this_insn)) \
407 { next_addr = (frame_info)->frame + extract_14 (this_insn); \
408 pc += 4; \
409 } \
410 else if (ADDIL_P (this_insn)) \
411 { next_addr = (frame_info)->frame + (extract_21 (this_insn) << 11)\
412 + extract_14 (read_memory_integer (pc + 4, 4)); \
413 pc += 8; \
414 } \
415 while (1) \
416 { this_insn = read_memory_integer (pc, 4); \
417 if ((this_insn & 0xfc001fe0) == 0x2c001220) /* fstds,ma */ \
418 { regnum = GET_FIELD (this_insn, 27, 31); \
419 (frame_saved_regs).regs[regnum + FP0_REGNUM] = next_addr; \
420 next_addr += 8; \
9f739abd 421 pc += 4; \
5140562f
JG
422 } \
423 else \
424 break; \
425 } \
426 lose: \
427 (frame_saved_regs).regs[FP_REGNUM] = (frame_info)->frame; \
428 (frame_saved_regs).regs[SP_REGNUM] = (frame_info)->frame -4; \
429 }}
430\f
431/* Things needed for making the inferior call functions. */
432
433/* Push an empty stack frame, to record the current PC, etc. */
434
9f739abd 435#define PUSH_DUMMY_FRAME push_dummy_frame ()
5140562f
JG
436
437/* Discard from the stack the innermost frame,
438 restoring all saved registers. */
9f739abd 439#define POP_FRAME hp_pop_frame ()
5140562f
JG
440
441/* This sequence of words is the instructions
442
443; Call stack frame has already been built by gdb. Since we could be calling
444; a varargs function, and we do not have the benefit of a stub to put things in
445; the right place, we load the first 4 word of arguments into both the general
446; and fp registers.
447call_dummy
448 ldw -36(sp), arg0
449 ldw -40(sp), arg1
450 ldw -44(sp), arg2
451 ldw -48(sp), arg3
452 ldo -36(sp), r1
453 fldws 0(0, r1), fr4
454 fldds -4(0, r1), fr5
455 fldws -8(0, r1), fr6
456 fldds -12(0, r1), fr7
457 ldil 0, r22 ; target will be placed here.
458 ldo 0(r22), r22
459 ldsid (0,r22), r3
460 ldil 0, r1 ; _sr4export will be placed here.
461 ldo 0(r1), r1
9f739abd
SG
462 ldsid (0,r1), r19
463 combt,=,n r3, r19, text_space ; If target is in data space, do a
5140562f
JG
464 ble 0(sr5, r22) ; "normal" procedure call
465 copy r31, r2
466 break 4, 8
9f739abd
SG
467 mtsp r21, sr0
468 ble,n 0(sr0, r22)
5140562f
JG
469text_space ; Otherwise, go through _sr4export,
470 ble (sr4, r1) ; which will return back here.
471 stw 31,-24(r30)
472 break 4, 8
9f739abd
SG
473 mtsp r21, sr0
474 ble,n 0(sr0, r22)
5140562f
JG
475
476 The dummy decides if the target is in text space or data space. If
477 it's in data space, there's no problem because the target can
478 return back to the dummy. However, if the target is in text space,
479 the dummy calls the secret, undocumented routine _sr4export, which
480 calls a function in text space and can return to any space. Instead
481 of including fake instructions to represent saved registers, we
482 know that the frame is associated with the call dummy and treat it
483 specially. */
484
9f739abd
SG
485#define CALL_DUMMY {0x4BDA3FB9, 0x4BD93FB1, 0x4BD83FA9, 0x4BD73FA1,\
486 0x37C13FB9, 0x24201004, 0x2C391005, 0x24311006,\
487 0x2C291007, 0x22C00000, 0x36D60000, 0x02C010A3,\
488 0x20200000, 0x34210000, 0x002010b3, 0x82632022,\
489 0xe6c06000, 0x081f0242, 0x00010004, 0x00151820,\
490 0xe6c00002, 0xe4202000, 0x6bdf3fd1, 0x00010004,\
491 0x00151820, 0xe6c00002}
5140562f 492
9f739abd 493#define CALL_DUMMY_LENGTH 104
5140562f 494#define CALL_DUMMY_START_OFFSET 0
9f739abd
SG
495
496/*
497 * Insert the specified number of args and function address
498 * into a call sequence of the above form stored at DUMMYNAME.
499 *
500 * On the hppa we need to call the stack dummy through $$dyncall.
501 * Therefore our version of FIX_CALL_DUMMY takes an extra argument,
502 * real_pc, which is the location where gdb should start up the
503 * inferior to do the function call.
504 */
505
506#define FIX_CALL_DUMMY(dummyname, pc, real_pc, fun, nargs, args, type, gcc_p) \
507{ \
508 CORE_ADDR dyncall_addr = 0, sr4export_addr = 0; \
509 \
510 if (!dyncall_addr) \
511 { \
5140562f 512 struct minimal_symbol *msymbol; \
9f739abd 513 msymbol = lookup_minimal_symbol ("$$dyncall", (struct objfile *) NULL);\
b8ef8163
SG
514 if (msymbol == NULL) \
515 error ("Can't find an address for $$dyncall trampoline"); \
9f739abd 516 else \
b8ef8163 517 dyncall_addr = SYMBOL_VALUE_ADDRESS (msymbol); \
5140562f 518 msymbol = lookup_minimal_symbol ("_sr4export", (struct objfile *) NULL);\
b8ef8163 519 if (msymbol == NULL) \
9f739abd
SG
520 error ("Can't find an address for _sr4export trampoline"); \
521 else \
b8ef8163 522 sr4export_addr = SYMBOL_VALUE_ADDRESS (msymbol); \
9f739abd
SG
523 } \
524 dummyname[9] = deposit_21 (fun >> 11, dummyname[9]); \
525 dummyname[10] = deposit_14 (fun & MASK_11, dummyname[10]); \
526 dummyname[12] = deposit_21 (sr4export_addr >> 11, \
527 dummyname[12]); \
528 dummyname[13] = deposit_14 (sr4export_addr & MASK_11, \
529 dummyname[13]); \
530 write_register (22, pc); \
531 real_pc = dyncall_addr; \
5140562f
JG
532}
533
e0ba1d14
JG
534#define PUSH_ARGUMENTS(nargs, args, sp, struct_return, struct_addr) \
535 sp = hp_push_arguments(nargs, args, sp, struct_return, struct_addr)
536
e0ba1d14
JG
537/* Symbol files have two symbol tables. Rather than do this right,
538 like the ELF symbol reading code, massive hackery was added
539 to dbxread.c and partial-stab.h. This flag turns on that
540 hackery, which should all go away FIXME FIXME FIXME FIXME now. */
541
542#define GDB_TARGET_IS_HPPA
9f739abd 543
0213d96f
SG
544#define BELIEVE_PCC_PROMOTION 1
545
9f739abd
SG
546/*
547 * Unwind table and descriptor.
548 */
549
550struct unwind_table_entry {
551 unsigned int region_start;
552 unsigned int region_end;
553
554 unsigned int Cannot_unwind : 1;
555 unsigned int Millicode : 1;
556 unsigned int Millicode_save_sr0 : 1;
557 unsigned int Region_description : 2;
558 unsigned int reserverd1 : 1;
559 unsigned int Entry_SR : 1;
560 unsigned int Entry_FR : 4; /* number saved */
561 unsigned int Entry_GR : 5; /* number saved */
562 unsigned int Args_stored : 1;
563 unsigned int Variable_Frame : 1;
564 unsigned int Separate_Package_Body : 1;
565 unsigned int Frame_Extension_Millicode:1;
566 unsigned int Stack_Overflow_Check : 1;
567 unsigned int Two_Instruction_SP_Increment:1;
568 unsigned int Ada_Region : 1;
569 unsigned int reserved2 : 4;
570 unsigned int Save_SP : 1;
571 unsigned int Save_RP : 1;
572 unsigned int Save_MRP_in_frame : 1;
573 unsigned int extn_ptr_defined : 1;
574 unsigned int Cleanup_defined : 1;
575
576 unsigned int MPE_XL_interrupt_marker: 1;
577 unsigned int HP_UX_interrupt_marker: 1;
578 unsigned int Large_frame : 1;
579 unsigned int reserved4 : 2;
580 unsigned int Total_frame_size : 27;
581};
fa9265e5
SG
582
583/* Info about the unwind table associated with an object file. This is hung
584 off of the objfile->obj_private pointer, and is allocated in the objfile's
585 psymbol obstack. This allows us to have unique unwind info for each
586 executable and shared library that we are debugging. */
587
588struct obj_unwind_info {
589 struct unwind_table_entry *table; /* Pointer to unwind info */
590 struct unwind_table_entry *cache; /* Pointer to last entry we found */
591 int last; /* Index of last entry */
592};
593
594#define OBJ_UNWIND_INFO(obj) ((struct obj_unwind_info *)obj->obj_private)
This page took 0.070268 seconds and 4 git commands to generate.