Commit Graph

10737 Commits

Author SHA1 Message Date
Jim Blandy 68c4266554 * Makefile.in (c_lang_h): New variable. Use it in dependency
lists, instead of `c-lang.h' itself.
2001-12-12 14:13:24 +00:00
Fred Fish 74a9bb82c5 Approved by Jim Blandy:
2001-12-11  Fred Fish  <fnf@redhat.com>
	* c-typeprint.c (c_type_print_base): Use type flags access macros
	to test bits.
	* ch-typeprint.c (chill_type_print_base): Ditto.
	* ch-valprint.c (chill_val_print): Ditto.
	* d10v-tdep.c (d10v_pointer_to_address): Ditto.
	* dwarf2read.c (dwarf2_add_member_fn): Ditto.
	* dwarfread.c (read_structure_scope): Ditto.
	* gdbtypes.c (create_range_type): Dittol
	(create_set_type): Ditto.
	(check_typedef): Ditto.
	* jv-typeprint.c (java_type_print_base): Ditto.
	* p-typeprint.c (pascal_type_print_base): Ditto
	* p-valprint.c (pascal_val_print): Ditto.
	* stabsread.c (read_cfront_member_functions): Ditto.
	(read_member_functions): Ditto.
	(cleanup_undefined_types): Ditto.
	* valprint.c (val_print): Ditto.
	* valops.c (hand_function_call): Remove is_prototyped
	variable and just use type flag test macro directly.
2001-12-12 02:11:52 +00:00
Fred Fish e9e79dd9fc Approved by Jim Blandy:
2001-12-11  Fred Fish  <fnf@redhat.com>

	* gdbtypes.c (print_bound_type): New function.
	(recursive_dump_type): Print type struct code values
	TYPE_CODE_BITSTRING, TYPE_CODE_COMPLEX, TYPE_CODE_TEMPLATE,
	and TYPE_CODE_TEMPLATE_ARG.
	(recursive_dump_type): Print type struct members
	upper_bound_type, lower_bound_type, cv_type, and as_type.
	Also always print the tagname member, even when it is NULL.

	* testsuite/gdb.base/maint.exp: Update to match changes in
	type dumping code.
2001-12-12 02:07:12 +00:00
gdbadmin 76f53e4027 *** empty log message *** 2001-12-12 00:00:36 +00:00
Michael Snyder 0e7c5946f3 2001-12-11 Michael Snyder <msnyder@redhat.com>
* d10v-tdep.c (d10v_register_virtual_size): Delete.
	(d10v_gdbarch_init): Use generic_register_virtual_size.
	* rs6000-tdep.c (rs6000_register_virtual_size): Delete.
	(rs6000_gdbarch_init): Use generic_register_virtual_size.
	* x86-64-tdep.c (x86_64_register_virtual_size): Delete.
	(i386_gdbarch_init): Use generic_register_virtual_size.
2001-12-11 22:16:48 +00:00
Michael Snyder ce29138a6e 2001-12-10 Michael Snyder <msnyder@redhat.com>
* arch-utils.c (generic_register_virtual_size): New function.
	* arch-utils.h: Export generic version of register_virtual_size.
	* gdbarch.sh (REGISTER_VIRTUAL_SIZE): Use new function as default.
	* gdbarch.c: Regenerate.
2001-12-11 22:15:55 +00:00
Andrew Cagney 5ae326fa70 Rearange code to supress -Wuninitialized error. 2001-12-11 18:35:38 +00:00
gdbadmin ca45b5982f *** empty log message *** 2001-12-11 00:00:02 +00:00
Fred Fish 0478d61cc2 Approved by Jim Blandy:
2001-12-10  Fred Fish  <fnf@redhat.com>
	* values.c (value_fn_field): Add physname variable.  Use a minimal
	symbol if we don't find a full symbol.  Remove setting of the new
	value's type since that was already done by allocate_value().
	Remove obsolete commented out error call since callees need to
	handle a NULL return, which is possible result not an error.
	* eval.c (evaluate_subexp_standard): Move check for inlined
	functions to precede attempt to dereference a NULL argvec[0].
2001-12-10 23:05:00 +00:00
Fred Fish 9b27852e6d Approved by Jim Blandy:
2001-12-10  Fred Fish  <fnf@redhat.com>
	* arm-linux-tdep.c (skip_hurd_resolver): Use NULL rather than
	zero in args to lookup_minimal_symbol.
	* linespec.c (decode_line_1): Ditto.
	* i386-linux-tdep.c (skip_hurd_resolver): Ditto.
	* minsyms.c (find_stab_function_addr): Ditto.
	* symfile.c (simple_read_overlay_table): Ditto.
	(simple_read_overlay_region_table): Ditto.
2001-12-10 22:04:10 +00:00
Jim Blandy 347dc97d2d * gdb.asm/asm-source.exp (info symbol): Anchor the pattern
matching the entry point symbol's name at the beginning of the
line.
2001-12-10 20:30:00 +00:00
Fred Fish 762a036f9a Approved by Jim Blandy:
2001-12-09  Fred Fish  <fnf@redhat.com>
	* gdbtypes.c (TYPE_FLAG_UNSIGNED, TYPE_FLAG_STUB): Use
	TYPE_UNSIGNED and TYPE_NOSIGN to determine when to print these
	rather than testing the bits directly.
	(TYPE_FLAG_NOSIGN, TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC,
	TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_PROTOTYPED,
	TYPE_FLAG_INCOMPLETE, TYPE_FLAG_CODE_SPACE, TYPE_FLAG_DATA_SPACE,
	TYPE_FLAG_VARARGS): Test for and print these bits as well.
2001-12-10 06:23:21 +00:00
Fred Fish 34a2fedd5a Approved by Jim Blandy:
2001-12-09  Fred Fish  <fnf@redhat.com>
	* gdbtypes.c (build_gdbtypes): For builtin_type_char, pass
	TYPE_FLAG_NOSIGN to init_type() rather than setting it after the
	type is created.
2001-12-10 06:19:51 +00:00
Fred Fish aa468c6030 Approved by Jim Blandy:
2001-12-09  Fred Fish  <fnf@redhat.com>
	* gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_CONST,
	TYPE_VOLATILE, TYPE_INCOMPLETE): Move macros that test the
	bits to location in file where the bits are defined.
	(TYPE_STUB, TYPE_TARGET_STUB, TYPE_STATIC, TYPE_PROTOTYPED,
	TYPE_CODE_SPACE, TYPE_DATA_SPACE): New test macros.
2001-12-10 06:17:01 +00:00
Fred Fish 7e956337e5 Approved by Jim Blandy:
2001-12-09  Fred Fish  <fnf@redhat.com>
	* gdbtypes.c (allocate_stub_method): Replace hand crafted type
	initialization with call to the init_type() function.
2001-12-10 06:13:11 +00:00
Andrew Cagney 46cd78fb46 * arch-utils.c (generic_register_raw_size): New function.
* gdbarch.sh (REGISTER_RAW_SIZE): Use generic_register_raw_size as
the static default.
* gdbarch.c: Regenerate.
* arch-utils.h (generic_register_raw_size): Declare.

* config/mips/tm-mips.h (REGISTER_RAW_SIZE): Delete macro.
* mips-tdep.c (mips_register_raw_size): Make function static.
(mips_gdbarch_init): Initialize register_raw_size.
2001-12-10 04:58:31 +00:00
gdbadmin 4611fbebb1 *** empty log message *** 2001-12-10 00:00:02 +00:00
Fred Fish 2f038fcb08 Approved by Elena Zannoni:
2001-12-08  Fred Fish  <fnf@redhat.com>
	* dwarf2read.c (read_typedef):  Replace hand crafted type
	initialization with a call to the init_type() function, which
	is how the rest of gdb creates types.
2001-12-09 23:17:07 +00:00
Fred Fish 0b3d7c6d24 Approved by Elena Zannoni:
2001-12-09  Fred Fish  <fnf@redhat.com>
	* mdebugread.c (cross_ref): Pass TYPE_FLAG_STUB to init_type()
	rather than setting it after the type is created.
2001-12-09 21:45:26 +00:00
Elena Zannoni 2188cbdd51 2001-12-09 Elena Zannoni <ezannoni@redhat.com>
* config/rs6000/tm-rs6000.h (STAB_REG_TO_REGNUM): Remove
	definition, it is now multiarched.
	* ppc-tdep.h (struct gdbarch_tdep): Move from rs6000-tdep.c.  Add
	fields for special register numbers.
	* rs6000-tdep.c (rs6000_gdbarch_init): Initialize new tdep special
	regnum fields.
	(rs6000_saved_pc_after_call): Use gdbarch_tdep registers fields
	instead of hardcoded macros.
	(branch_dest, rs6000_pop_frame, rs6000_fix_call_dummy,
	ppc_push_return_address, rs6000_frame_saved_pc,
	frame_get_saved_regs, rs6000_frame_chain,
	rs6000_store_return_value): Ditto.
	(rs6000_stab_reg_to_regnum): New function.
	* ppcnbsd-nat.c (fetch_inferior_registers,
	store_inferior_registers, fetch_core_registers): Ditto.
	* ppc-linux-tdep.c (ppc_linux_in_sigtramp,
	ppc_linux_frame_init_saved_regs): Ditto.
	* ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
	fill_gregset): Ditto.
	* ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
	Ditto.
2001-12-09 21:39:53 +00:00
Fred Fish 6edc140fcf Approved by Jim Blandy:
2001-12-08  Fred Fish  <fnf@redhat.com>
	* c-lang.c (c_create_fundamental_type): For FT_CHAR, pass
	TYPE_FLAG_NOSIGN to init_type() rather than setting it after the
	type is created.
2001-12-09 07:32:21 +00:00
Fred Fish 878ac5308a Approved by Jim Blandy:
2001-12-08  Fred Fish  <fnf@redhat.com>
	* dwarf2read.c (TYPE_FLAG_VARARGS): Remove from here.
	* gdbtypes.h (TYPE_FLAG_VARARGS): Add here and change value to
	not collide with other flag bits.
2001-12-09 07:29:46 +00:00
Fred Fish f5ef7c67f8 Approved by Jim Blandy:
2001-12-08  Fred Fish  <fnf@redhat.com>
	* dwarf2read.c (read_base_type): Rename is_unsigned to type_flags.
	For unsigned types set TYPE_FLAG_UNSIGNED and pass it to
	init_type().
2001-12-09 07:26:47 +00:00
gdbadmin 2557de7c29 *** empty log message *** 2001-12-09 00:00:32 +00:00
Daniel Jacobowitz 1e8e5c2ae4 * Makefile.in (cp-valprint.o): Add dependency on $(cp_abi_h). 2001-12-08 20:28:44 +00:00
Jim Blandy fa4baff1b9 * config/s390/s390.mh: Don't use the linux-thread.o module;
thread-db.o, lin-lwp.o, and proc-service.o should work just fine.
2001-12-08 20:08:11 +00:00
Jim Blandy 7aa07d2df5 * config/s390/s390.mh: Don't use the linux-thread.o module;
thread-db.o, lin-lwp.o, and proc-service.o should work just fine.
2001-12-08 19:17:17 +00:00
gdbadmin 93854344cf *** empty log message *** 2001-12-08 00:00:33 +00:00
Andrew Cagney 6b32586447 PROBLEMS. 2001-12-07 23:33:19 +00:00
Daniel Jacobowitz 23abb74e4b * stabsread.c (read_member_functions): Skip member functions which
are duplicates of the callable constructor/destructor.
2001-12-07 23:30:13 +00:00
Jim Blandy 03a013f4d3 * s390-tdep.c (s390_store_return_value): Don't convert float
values to double format when returning them; just return them in
the first half of the FP register, as the ABI specifies.
2001-12-07 22:49:25 +00:00
Daniel Jacobowitz 6a1675750a Fix botched patch. 2001-12-07 22:24:41 +00:00
Daniel Jacobowitz 2abae2c765 Undo accidental commit of a separate patch. 2001-12-07 22:16:43 +00:00
Daniel Jacobowitz 76b2e19d24 * valops.c (hand_function_call): Check for method arguments in
TYPE_ARG_TYPES(), not in TYPE_FIELD ().
2001-12-07 22:14:30 +00:00
Daniel Jacobowitz b9d652ac99 * cp-valprint.c (cp_print_value): Preserve offset if
the virtual base is outside of this object.
2001-12-07 22:13:19 +00:00
Daniel Jacobowitz a02fd225ed * gdbtypes.c (finish_cv_type): New function.
(check_typedef): Remove ``register'' keyword from argument.
        Preserve const and volatile attributes across filling in
        opaque types.
        * gdbtypes.h (finish_cv_type): Add prototype.

        * hp-symtab-read.c (hpread_read_struct_type): Call finish_cv_type.
        * stabsread.c (read_struct_type): Likewise.
        * dwarf2read.c (read_structure_scope): Likewise.  Remove redundant
        assignment to die->type.
2001-12-07 22:11:51 +00:00
Daniel Jacobowitz 5178b9d602 * gdb.c++/classes.exp, gdb.c++/derivation.exp,
gdb.c++/inherit.exp, gdb.c++/method.exp,
        gdb.c++/namespace.exp, gdb.c++/templates.exp,
        gdb.c++/userdef.exp, gdb.c++/virtfunc.exp: Updates for v3 demangler
        and class layout support.
2001-12-07 22:02:23 +00:00
Daniel Jacobowitz af890c5292 * gdb.c++/classes.exp: Add test for static member function.
* gdb.c++/misc.cc: Add class with static member function.
2001-12-07 21:58:19 +00:00
Jim Blandy 8032bf31ff If GDB says it can't find the struct the function returned, report
those tests as `unsupported'.
* gdb.base/call-rt-st.exp (print_struct_call): New function.
Rewrite subsequent tests to use it.
2001-12-07 21:23:47 +00:00
Jim Blandy f2e54a8073 If GDB says it can't find the struct the function returned, report
those tests as `unsupported'.
* gdb.base/structs.exp (call_struct_func): New function.
(do_function_calls): Use call_struct_func to call the functions
returning structs.
2001-12-07 21:21:34 +00:00
Jim Blandy 0bc695097f * gdb.base/callfuncs.exp: The stabs generated by GCC don't tell us
whether functions are prototyped or not, so we can't possibly pass
arguments to t_float_values2 properly.
2001-12-07 21:17:00 +00:00
Jim Blandy f469783692 * printcmd.c (print_scalar_formatted): Compare the length of the
value against the lengths of the target's floating-point types,
not the host's.  Add support for `long double'.
2001-12-07 21:07:59 +00:00
Jim Blandy 7a345fb3e3 * gdb.base/break.exp: (test_next_with_recursion): Don't change the
value of `timeout' for targets other than the mips*tx39-*.
2001-12-07 21:02:31 +00:00
Martin Hunt 0cf3e697e4 2001-12-07 Martin M. Hunt <hunt@redhat.com>
* configure.in: Check for sys/filio.h
	* configure: Rebuild.
	* config.in: Add HAVE_SYS_FILIO_H
	* ser-tcp.c: Conditionally include sys/filio.h.
2001-12-07 17:57:05 +00:00
Andrew Cagney bafdd3b3f6 Cleanup ui-out table impl. Add struct ui_out_table. Rename
curr[ent]_header to next_header.
2001-12-07 17:51:13 +00:00
Andrew Cagney 584e692dda Fix changelog woopsie 2001-12-07 15:36:03 +00:00
Andrew Cagney 1c8649cd5f Zap stray XCALLOC(). 2001-12-07 15:00:59 +00:00
Jiri Smid b6af0555b5 * dwarf2cfi.c: New file.
* dwarf2cfi.h: New file.
* dwarf2read.c (dwarf_frame_offset, dwarf_frame_size): New variables.
(dwarf_eh_frame_offset, dwarf_eh_frame_size): New variables.
(dwarf2_read_section): Change to non static.
(dwarf2_locate_sections): Add .debug_frame and .eh_frame section
recognition.
(FRAME_SECTION, EH_FRAME_SECTION): New define.
* elfread.c (elf_symfile_read): Add call of frame informations build.
* frame.h (frame_info): Add pointer to unwind_context.
* symfile.h (dwarf2_build_frame_info): Add declaration.
* gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Add.
* gdbarch.h, gdbarch.c: Regenerate.
* Makefile.in: Add dwarf2cfi_h, dwarf2cfi.o
* x86-64-tdep.c (i386_gdbarch_init): Initialize target vector to
use debug frame info.
2001-12-07 12:10:15 +00:00
Michael Snyder edb6ede1be 2001-12-06 Michael Snyder <msnyder@redhat.com>
* gdb.asm/asm-source.exp: Add tests for info target, info symbol,
	and detect whether the start symbol has a leading underscore.
2001-12-07 02:50:02 +00:00
gdbadmin 8d3adc59f5 *** empty log message *** 2001-12-07 00:00:33 +00:00
Andrew Cagney ed1801dfff Eliminate global #include of "mmalloc.h". 2001-12-06 20:59:11 +00:00
Andrew Cagney 31e9866ea6 Expand the regcache so that there is space for pseudo-registers. 2001-12-06 20:49:47 +00:00
Jim Blandy 08ea399688 * config/s390/nm-linux.h: Watchpoints are either continuable or
steppable, not both.  The S/390 has continuable watchpoints, so
delete the #definition of HAVE_STEPPABLE_WATCHPOINT.
2001-12-06 16:17:06 +00:00
Pierre Muller 284a190e52 2001-12-04 Pierre Muller <muller@ics.u-strasbg.fr>
* go32-nat.c (go32_fetch_registers): Remove call to register_buffer
	(which is now a static function in regcache.c)
	and use regcache_collect instead.
2001-12-06 08:15:37 +00:00
gdbadmin 978e08c500 *** empty log message *** 2001-12-06 00:00:33 +00:00
Andrew Cagney 09227b3ec8 * target.c (cleanup_target): Do not initialize to_query to
return_zero.
2001-12-05 22:32:57 +00:00
Jim Blandy 12bffad7cc * s390-tdep.c (s390_get_frame_info): Recognize argument register
spills that use the `stm' instruction.
(is_arg_reg): New function.
2001-12-05 22:20:00 +00:00
Keith Walker ae45a35b44 * gdbserver/low-linux.c (arm_register_u_addr): added.
(initialize_arch): added for ARM target.
* config/arm/nm-linux.h (U_REGS_OFFSET) defined.
(REGISTER_U_ADDR) defined.
* config/arm/tm-linux.h (ARM_GNULINUX_TARGET) defined.
2001-12-05 15:11:48 +00:00
Corinna Vinschen 50f6fb4b7a * arm-tdep.c (arm_skip_prologue): Always skip prologue by scanning
the prologue if source is assembler.
2001-12-05 08:36:01 +00:00
Jackie Smith Cashion 02da620696 2001-12-04 Jackie Smith Cashion <jsmith@redhat.com>
* MAINTAINERS (write-after-approval): Add self.

	* d10v-tdep.c (d10v_gdbarch_init): Change size of long long to 8 bytes.

	From Andrew Cagney  <cagney@redhat.com>:
        * d10v-tdep.c (d10v_frame_chain_valid): Check if the caller's PC
        is in the entry function.
        (d10v_use_struct_convention): Store multi-field struct and union
        return values on the stack.
2001-12-05 02:05:04 +00:00
Jim Blandy 7666f43c32 * s390-tdep.c (s390_get_frame_info): Recognize spills of reg
arguments into their stack slots.
2001-12-05 00:20:37 +00:00
Jim Blandy 7286245e1f * s390-tdep.c (s390_get_frame_info): More doc fixes. 2001-12-05 00:07:50 +00:00
gdbadmin e699dc4eb0 *** empty log message *** 2001-12-05 00:00:34 +00:00
Jim Blandy 6df29de21e * s390-tdep.c (s390_get_frame_info): Doc fixes. 2001-12-04 23:51:55 +00:00
Martin Hunt 63b5bc2fef Add note to serial_open. 2001-12-04 21:44:37 +00:00
Michael Snyder ca9efc9063 2001-11-30 Michael Snyder <msnyder@redhat.com>
* gdb.asm/asm-source.exp: Add tests for list, search, finish, return,
	next, info source, info sources, info line, global and static
	variables, and static functions.
	* gdb.asm/common.inc: New macro gdbasm_datavar (default definition).
	* gdb.asm/i386.inc: Override default definition of gdbasm_datavar.
	* gdb.asm/asmsrc1.s: Add a static function and some variables.
	* gdb.asm/asmsrc2.s: Make foo2 call foo3 twice (to test 'next').
	* gdb.asm/d10v.inc (gdbasm_enter): Set up frame pointer.
	(gdbasm_leave): Restore frame pointer.
	(gdbasm_startup): Copy stack set-up from crt0.S.
2001-12-04 19:45:57 +00:00
Jim Blandy 2d842f1359 * gdb.base/completion.exp: Clarify indentation. 2001-12-04 16:18:15 +00:00
Orjan Friberg 2a9ecef2fc 2001-12-04 Orjan Friberg <orjanf@axis.com>
* cris-tdep.c (cris_regnums): Add DCCR_REGNUM for completeness.
	(cris_examine): Add comment about solib prologue parsing.
	(bdap_prefix): Read offset with correct signedness and size.
	(move_to_preg_op): Don't rely on register numbering for register size.
	(none_reg_mode_move_from_preg_op): Ditto.
2001-12-04 10:33:57 +00:00
Orjan Friberg ba5f0d88f3 2001-12-04 Orjan Friberg <orjanf@axis.com>
* solib.c (solib_open): Make path relative if search for absolute path
	failed.  If search for relative path in solib_search_path failed, fall
	back to search for basename only.
2001-12-04 09:34:56 +00:00
Martin Hunt 7c7a201a79 2001-12-03 Martin M. Hunt <hunt@redhat.com>
* serial.h: Add a note to serial_open.

	* ser-tcp.c (tcp_open): Rewrite to use a non-blocking connect.
	Allow UI and CLI to abort connect.  Instead of trying 15 times
	with very long timeouts, just try one connect with a maximum timeout
	of 15 seconds.
2001-12-04 06:12:56 +00:00
gdbadmin f599053f37 *** empty log message *** 2001-12-04 00:00:35 +00:00
Jim Blandy 68550daf9b * gdb.asm/s390.inc (gdbasm_datavar): Use `.long' to create `int'
variables on the S/390, not `.word'.
2001-12-03 21:53:16 +00:00
Kevin Buettner e01e171deb Include solib.h. 2001-12-03 21:17:49 +00:00
Michael Snyder 045f55a687 2001-12-03 Michael Snyder <msnyder@redhat.com>
* symtab.c (search_symbols): Make sure alloca size is big enough.
2001-12-03 19:30:39 +00:00
Andrew Cagney fdce741419 prune m68k targets down to just m68k-elf 2001-12-03 19:21:44 +00:00
Jim Blandy 386e4208fc * s390-tdep.c (s390_get_frame_info): Don't used fextra_info to set
orig_sp if it's not initialized.
2001-12-03 18:48:54 +00:00
Pierre Muller 14e534aa35 2001-11-30 Pierre Muller <muller@ics.u-strasbg.fr>
* findvar.c (locate_var_value): Specify in which register a register
	variable is stored.
2001-12-03 08:41:10 +00:00
Pierre Muller 441532d7b8 2001-11-30 Pierre Muller <muller@ics.u-strasbg.fr>
* win32-nat.c (mappings): Correct position of XMM registers,
	based on FXSAVE instruction structure.
2001-12-03 08:19:01 +00:00
gdbadmin a4cae47f1a *** empty log message *** 2001-12-03 00:00:04 +00:00
Andrew Cagney 753edfefb3 mmalloc() -> xmmalloc() 2001-12-02 22:43:59 +00:00
Andrew Cagney aac7f4eaf2 mfree() -> xmfree(). 2001-12-02 22:38:23 +00:00
Andrew Cagney 4c17829508 mrealloc() -> xmrealloc(). 2001-12-02 22:08:47 +00:00
Andrew Cagney 22797942c4 * i386-tdep.c (i386go32_frame_saved_pc): New function.
* config/i386/tm-go32.h (i386go32_frame_saved_pc): Declare.
(FRAME_SAVED_PC): Redefine to i386go32_frame_saved_pc.
2001-12-02 18:29:08 +00:00
Andrew Cagney 2607059cba Delete HOST_BYTE_ORDER. 2001-12-02 02:57:18 +00:00
gdbadmin d41b701bc0 *** empty log message *** 2001-12-02 00:00:06 +00:00
Andrew Cagney 3680c63822 Zap sony news (m68k) and ISI (m68k) targets. 2001-12-01 23:06:47 +00:00
Andrew Cagney ccb25a8a7d Zap zap. 2001-12-01 22:49:21 +00:00
Andrew Cagney 9b56715048 Zap the ultra series of a29k host and target. 2001-12-01 22:34:11 +00:00
Andrew Cagney 7e24f0b11e Zap Sun's i386i. 2001-12-01 22:19:30 +00:00
Andrew Cagney 1406caf7ab Zap all but ns32k-netbsd NS32k targets and hosts. 2001-12-01 22:02:03 +00:00
Andrew Cagney 5e734e1f9d Zap harris target and host. 2001-12-01 21:11:41 +00:00
Andrew Cagney 7768dd6c95 Zap some older PPC targets. 2001-12-01 21:01:58 +00:00
Andrew Cagney 7bc65f05b2 Zap a29k. 2001-12-01 19:34:37 +00:00
Andrew Cagney 1851bca630 Oops, Delete tic80, really. 2001-12-01 19:17:56 +00:00
Andrew Cagney e2caac1894 Delete tic80 target. 2001-12-01 19:10:00 +00:00
Jim Blandy cd5195a891 Add assembly-source tests for s390-ibm-linux.
* gdb.asm/s390.inc: New file.
* gdb.asm/configure.in, gdb.asm/asm-source.exp: Add clauses for
the S/390 architecture.
* gdb.asm/configure: Regenerated.
2001-12-01 01:13:27 +00:00
Kevin Buettner 6ded7999cd Add cross platform SVR4 shared library support for PowerPC. 2001-12-01 00:25:08 +00:00
gdbadmin 7e74fa0edf *** empty log message *** 2001-12-01 00:00:33 +00:00
Jim Blandy df0cd8c5a7 * gdb.texinfo (Overlays): New chapter, documenting GDB's
overlay support.  Add to top-level menu.
2001-11-30 23:03:09 +00:00
Kevin Buettner a42dd537c4 Define SVR4 link map offset fetcher for Linux/ARM. 2001-11-30 20:27:09 +00:00
Michael Snyder 25d559ca78 Fix typo. 2001-11-30 18:53:06 +00:00
Daniel Jacobowitz 21cfb3b661 * values.c (value_primitive_field): Add embedded_offset to the
address of structure members.
        * gnu-v3-abi.c (gnuv3_rtti_type): Cast to base type before
        attempting to access vtable pointer.  Set using_enc_p if we cast.
        (gnuv3_virtual_fn_field): Call value_cast with structure rather than
        structure pointer.  Cast to base type before attempting to access
        vtable pointer.
2001-11-30 17:47:51 +00:00
Elena Zannoni 16333c4fa1 2001-11-29 Elena Zannoni <ezannoni@redhat.com>
* Makefile.in (ppc-linux-nat.o): Add dependency on ppc-tdep.h.

	* ppc-tdep.h (PPC_GPLAST_REGNUM): Define.

	* ppc-linux-nat.c: Include ppc-tdep.h.
	(ppc_register_u_addr): Don't use the static array regmap[],
	dynamically define the mapping instead.
	(supply_gregset): Ditto.
	(fill_gregset): Ditto.
	(COPY_REG): Delete macro defintion.
	(regmap): Delete array.
2001-11-30 02:14:08 +00:00
gdbadmin c1c829a984 *** empty log message *** 2001-11-30 00:00:06 +00:00
Jim Blandy c8f9d51ce2 Tighten up GDB's support for returning structs by value.
* s390-tdep.c (s390_use_struct_convention): New function.
(s390_gdbarch_init): Register it as the S/390's
USE_STRUCT_CONVENTION method.  Register
generic_cannot_extract_struct_value_address as our
EXTRACT_STRUCT_VALUE_ADDRESS method.
* arch-utils.c (generic_cannot_extract_struct_value_address): New
function.
* arch-utils.h: Add corresponding prototype.
2001-11-29 22:24:42 +00:00
Jim Blandy aead120c3f * values.c (value_being_returned): Make error message a proper
sentence.
2001-11-29 17:37:38 +00:00
Keith Walker a8329558c7 * dwarf2read.c (read_attribute_value): New function to handle DW_FORM_indirect
(read_attribute): uses read_attribute_value
2001-11-29 13:19:06 +00:00
Keith Walker aedf1c5b27 * MAINTAINERS (write-after-approval): Add my entry. 2001-11-29 11:34:03 +00:00
Jim Blandy d0ad30c93c * s390-tdep.c (s390_frame_saved_pc_nofix): If the prologue didn't
save the return address register, assume that the return address
is still in there.
2001-11-29 05:02:37 +00:00
gdbadmin b18d0ba541 *** empty log message *** 2001-11-29 00:00:32 +00:00
Andrew Cagney 54c92070ce clarify obvious fix. 2001-11-28 22:47:30 +00:00
Jim Blandy 62f81eda5c * mn10300-tdep.c (mn10300_analyze_prologue): Doc fixes. 2001-11-28 21:56:40 +00:00
Jim Blandy 5c3cf190c0 * s390-tdep.c: Get frame chains and saved pc values properly from
dummy frames.
(s390_frame_saved_pc_nofix): if `*fi' is a dummy frame, get the
saved PC from the dummy frame's registers.
(s390_frame_chain): Same for the saved SP.
(s390_gdbarch_init): Register `generic_save_dummy_frame_tos' as
the `SAVE_DUMMY_FRAME_TOS' method, so the dummy frame's `top' gets
set correctly.
2001-11-28 03:40:50 +00:00
Jim Blandy 31c4d430c4 * s390-tdep.c (s390_frame_chain): Remember that the SP's element
of the frame's saved_regs array is special.
2001-11-28 03:36:36 +00:00
gdbadmin c0851fd2d2 *** empty log message *** 2001-11-28 00:00:02 +00:00
Jim Blandy b1d4dcac5b * s390-tdep.c (s390_push_dummy_frame): Delete function; it's no
longer used.
2001-11-27 22:48:26 +00:00
Jim Blandy 4ed90530f6 * s390-tdep.c (register_names): Call the general-purpose registers
`r0' -- `r15', and the floating-point registers `f0' -- `f15', to
match the assembly language.
2001-11-27 22:19:55 +00:00
Christopher Faylor 3bccec6316 fix white space. 2001-11-27 05:16:39 +00:00
Christopher Faylor 97da3b2016 * config/i386/tm-cygwin.h: Define HAVE_SSE_REGS if
HAVE_CONTEXT_EXTENDED_REGISTERS is defined.
* win32-nat.c: Define CONTEXT_DEBUGGER_DR that will also include extended
registers if HAVE_SSE_REGS is defined.
(mappings array): Add offset of extended registers.
(thread_rec): Use new CONTEXT_DEBUGGER_DR macro.
2001-11-27 05:15:58 +00:00
Tom Tromey 467d85198f * NEWS: Updated.
* event-loop.c (start_event_loop): Call
	after_char_processing_hook.
	* event-top.h (after_char_processing_hook): Declare.
	* event-top.c (rl_callback_read_char_wrapper): Call
	after_char_processing_hook.
	(after_char_processing_hook): New global.
	* top.c (operate_saved_history): New global.
	(gdb_rl_operate_and_get_next): New function.
	(init_main): Add the operate-and-get-next defun.
	(gdb_rl_operate_and_get_next_completion): New function.
2001-11-27 04:15:09 +00:00
Tom Tromey 88118b3abf * gdb.texinfo (Command Syntax): Document C-o binding. 2001-11-27 04:14:37 +00:00
Tom Tromey c2a727faa2 * NEWS: Update for --args.
* infcmd.c (construct_inferior_arguments): Moved from ...
	* fork-child.c: ... here.
2001-11-27 03:09:44 +00:00
Michael Snyder 756caa3d89 2001-11-21 Michael Snyder <msnyder@redhat.com>
* gdb.asm/sparc.inc: New file.
	* gdb.asm/asm-source.exp: Recognize sparc target.
	* gdb.asm/configure.in: Recognize sparc target.
	* gdb.asm/configure: Regenerate.
2001-11-27 01:29:03 +00:00
Jim Blandy b77b1eb785 * symtab.c (find_pc_sect_line): Revert change of 2001-11-13; add
comment explaining that hand-written assembly code can have line
number info but no debug info for an enclosing function.
2001-11-27 00:03:22 +00:00
gdbadmin b82eaaea7a *** empty log message *** 2001-11-27 00:00:08 +00:00
Fernando Nasser 184d0bc81c 2001-11-26 Fernando Nasser <fnasser@redhat.com>
From 2001-11-12 Jackie Smith Cashion  <jsmith@redhat.com>:
	* gdb.base/callfuncs.c (t_structs_a): Do not return a pointer
	to a local (non-static) variable. Copy tstruct.a to a static buffer
	and return a pointer to that buffer.
	* gdb.base/callfwmall.c (t_structs_a): Ditto.
2001-11-26 21:29:31 +00:00
Christopher Faylor 96565e9166 * gdb.texinfo (Options): Eliminate attempt to explain .gdbinit/gdb.ini use
since it is described in the referenced section.  From Eli Zaretskii
<eliz@is.elta.co.il>
* gdb.texinfo (Command Files): Reword to make gdb.ini requirement clearer when
using DJGPP.
2001-11-26 20:34:56 +00:00
Fernando Nasser d0e6697627 2001-11-26 Fernando Nasser <fnasser@redhat.com>
From 2001-11-12 Jackie Smith Cashion  <jsmith@redhat.com>:
	* gdb.base/callfuncs.c (t_structs_a): Do not return a pointer
	to a local (non-static) variable. Copy tstruct.a to a static buffer
	and return a pointer to that buffer.
	* gdb.base/callfwmall.c (t_structs_a): Ditto.
2001-11-26 19:40:19 +00:00
Jakub Jelinek 7d69eeecda * sparc-nat.c (fetch_inferior_registers): Don't rely
on CORE_ADDR being 32-bit.
	(store_inferior_registers): Likewise.
2001-11-26 16:42:11 +00:00
gdbadmin 870fdb3280 *** empty log message *** 2001-11-26 00:00:02 +00:00
Jim Blandy 03a0cf8a7a * mn10300-tdep.c (mn10300_analyze_prologue): Doc fixes. 2001-11-25 23:43:43 +00:00
Eli Zaretskii c64a283540 * config/djgpp/config.sed: Fix an error in etc/ at "make install"
time on non-LFN systems where standards*.inf* expands to nothing.
2001-11-25 11:32:51 +00:00
Eli Zaretskii 1f5dc6706d * go32-nat.c (save_npx): Avoid a warning from GCC 3.x. 2001-11-25 11:29:31 +00:00
gdbadmin 07700ae600 *** empty log message *** 2001-11-25 00:00:03 +00:00
Fred Fish 93c2c7505f Fix obvious typo (Bourn -> Bourne) 2001-11-24 21:47:51 +00:00
Christopher Faylor d3ff4a77ad * win32-nat.c (struct so_stuff): Add objfile *objfile field needed to be able
to remove the DLL when unloaded.  Remove unused last field.
(handle_unload_dll): New function to handle unloading of DLL.
(solib_symbols_add): Change return type to struct objfile *.
(get_child_debug_event): Call handle_unload_dll function.
2001-11-24 19:00:03 +00:00
Christopher Faylor 2a3d564525 * win32-nat.c (_initialize_check_for_gdb_ini): New function.
* config/i386/xm-cygwin.h: Remove obsolete handling of __CYGWIN32__.
(GDBINIT_FILENAME): Remove.
2001-11-24 18:21:27 +00:00
Mark Kettenis e2334072bd * gdb.asm/configure.in: Fix recognition of ix86 target.
* gdb.asm/configure: Regenerate.
2001-11-24 14:43:57 +00:00
gdbadmin cf938522ea *** empty log message *** 2001-11-24 00:00:02 +00:00
Mark Kettenis eb7cedd985 Add x86 OpenBSD native configuration.
* config/i386/obsd.mt, config/i386/tm-obsd.h, config/i386/obsd.mh,
config/i386/nm-obsd.h: New files.
* configure.host (i[3456]86-*-openbsd*): New host.
* configure.tgt (i[3456]86-*-openbsd*): New target.
* NEWS: Update.
2001-11-23 23:01:54 +00:00
gdbadmin 82e831844a *** empty log message *** 2001-11-23 00:00:03 +00:00
Andrew Cagney 172d914f22 Mention 5.1 release. 2001-11-22 05:52:23 +00:00
Michael Snyder 9a4d72d52a 2001-11-21 Michael Snyder <msnyder@redhat.com>
* gdb.asm/m32r.inc: New file.
	* gdb.asm/asm-source.exp: Recognize m32r target.
	* gdb.asm/configure.in: Recognize m32r target.
	* gdb.asm/configure: Regenerate.
2001-11-22 01:13:10 +00:00
Michael Snyder 017ac23d72 2001-11-20 Michael Snyder <msnyder@redhat.com>
* gdb.asm/i386.inc: New file.
	* gdb.asm/asm-source.exp: Recognize ix86 target.
	* gdb.asm/configure.in: Recognize ix86 target.
	* gdb.asm/configure: Regenerate.
2001-11-22 01:07:24 +00:00
Tom Tromey 552c04a742 Fix for PR gdb/209, PR gdb/156:
* gdbarch.c, gdbarch.h: Rebuilt.
	* gdbarch.sh: Added `construct_inferior_arguments'.
	* cli/cli-decode.h (cmd_list_element): Added pre_show_hook.
	Typo fix.
	* cli/cli-setshow.c (do_setshow_command): Call the pre_show_hook.
	* infcmd.c (_initialize_infcmd): Set sfunc on `set args' command.
	(inferior_argc, inferior_argv): New globals.
	(notice_args_set): New function.
	(set_inferior_args): Clear inferior_argc and inferior_argv.
	(set_inferior_args_vector): New function.
	(get_inferior_args): Handle inferior argument vector.
	(run_command): Use get_inferior_args().
	(notice_args_read): New function.
	(_initialize_infcmd): Don't call set_inferior_args.
	* command.h: Typo fix.
	(cmd_list_element): Added pre_show_hook.
	* main.c (captured_main): Added --args option.
	(print_gdb_help): Document --args.
	* inferior.h (construct_inferior_arguments): Declare.
	(set_inferior_args_vector): Likewise.
	* fork-child.c (construct_inferior_arguments): New function.
2001-11-22 00:23:13 +00:00
Tom Tromey aa26fa3a7e * gdb.texinfo (Invoking GDB): Document --args.
(Mode Options): Likewise.
2001-11-22 00:21:45 +00:00
gdbadmin ba41d0fa86 *** empty log message *** 2001-11-22 00:00:03 +00:00
Jim Blandy 4f8ada0682 * gdbint.texinfo (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
Delete documentation; this macro has been removed from the
sources.
2001-11-21 22:26:48 +00:00
Kevin Buettner da9c7185df Fix two ``attach'' related bugs involving threads. 2001-11-21 21:56:47 +00:00
Jim Blandy 98eedd63d0 * target.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT): Delete
default definition; this is never used.
2001-11-21 02:01:29 +00:00
Michael Snyder a773d1cdf8 2001-11-20 Michael Snyder <msnyder@redhat.com>
* gdb.c++/namespace.exp: Fix quotes in output messages.
2001-11-21 00:13:30 +00:00
Michael Snyder bb632afbec 2001-11-14 Michael Snyder <msnyder@redhat.com>
* gdb.base/code-exprs.exp: New file.  Tests use of the "@code"
	qualifier in a type cast expression, to designate an address
	in the instruction space (Harvard architecture).
2001-11-21 00:12:01 +00:00
gdbadmin 71c7a32578 *** empty log message *** 2001-11-21 00:00:34 +00:00
Keith Seitz 5bbc1a8e41 * varobj.c (c_value_of_child): Release memory for "name" when
finshed using it.
	(c_type_of_child): Likewise.
	(cplus_value_of_child): Isolate the use of name_of_child to
	one case that needs it.
	Release memory for "name" when finished using it.
2001-11-20 18:08:14 +00:00
Keith Seitz 1ad24239ce * top.c (gdb_init): Call init_ui_hook before initializing
the default UI.
2001-11-20 16:54:39 +00:00
Elena Zannoni 4cb0dbef42 2001-11-19 Elena Zannoni <ezannoni@redhat.com>
* config/powerpc/nm-linux.h (ppc_register_u_addr): Add extern
        declaration.
2001-11-20 16:36:44 +00:00
Elena Zannoni f00d375378 2001-11-19 Elena Zannoni <ezannoni@redhat.com>
* ppc-linux-nat.c (COPY_REG): Use regcache_collect instead of
	accessing registers[].
	(fill_fpregset): Ditto.
2001-11-20 16:35:24 +00:00
gdbadmin ee396359a5 *** empty log message *** 2001-11-20 00:00:33 +00:00
Elena Zannoni 8b6f1f3a31 2001-11-19 Elena Zannoni <ezannoni@redhat.com>
* infptrace.c (fetch_register): Dynamically allocate buffer for
	register.
	(store_register): Use regcache_collect, instead of accessing the
	register buffer directly.
2001-11-19 23:59:55 +00:00
Daniel Jacobowitz 479412cd97 * mips-tdep.c (find_proc_desc): Add cur_frame argument. Pass
cur_frame to heuristic_proc_desc.
        (heuristic_proc_desc): Add cur_frame argument.  Do not read SP
        if cur_frame == 0.
        (after_prologue): Pass cur_frame == 0 to find_proc_desc.
        (mips_frame_chain): Pass cur_frame == 1 to find_proc_desc.
        (mips_init_extra_frame_info): Likewise.
2001-11-19 23:15:31 +00:00
Andrew Cagney ab290c52fb * defs.h (return_to_top_level): Comment. 2001-11-19 21:44:46 +00:00
Andrew Cagney 22e0437587 Use ISO C long strings. 2001-11-19 20:18:32 +00:00
Keith Seitz 30c6b1fbe9 * varobj.c (c_value_of_child): Use the wrapper function,
gdb_value_struct_elt.
	(cplus_value_of_child): Likewise.
2001-11-19 19:44:04 +00:00
gdbadmin 4544e9e7ae *** empty log message *** 2001-11-19 00:00:33 +00:00
Andrew Cagney bd1ef5d285 * i386-tdep.c (i386_gdbarch_init): Initialize num_regs.
* config/i386/tm-i386.h (NUM_REGS): Delete.
2001-11-18 22:14:13 +00:00
Kevin Buettner 76fb44f49a * i386-linux-nat.c (fill_gregset): Fix botched regcache_collect()
conversion for I386_LINUX_ORIG_EAX_REGNUM.
2001-11-18 21:38:59 +00:00
Andrew Cagney ed909a0d77 Zap config/i386/tm-embed.h. 2001-11-18 21:28:20 +00:00
Andrew Cagney 4edb848c4e Zap files in gdb/gdbserver/ 2001-11-18 05:09:26 +00:00
Andrew Cagney f87ece4d0b doco more build probs. 2001-11-18 04:43:50 +00:00
Kevin Buettner 8a40674599 * i386-linux-nat.c (fill_gregset): Use regcache_collect() instead
of accessing registers[] directly.
2001-11-18 01:19:47 +00:00
gdbadmin 27758734ec *** empty log message *** 2001-11-18 00:00:02 +00:00
Kevin Buettner 7dd945fa27 * i386-linux-nat.c (fill_gregset): Don't invoke read_register_gen()
when fetching ORIG_EAX.
2001-11-17 23:53:16 +00:00
Daniel Jacobowitz c215244117 * arm-linux-nat.c: Don't include <asm/ptrace.h>.
(fetch_register): Use elf_gregset_t instead of struct pt_regs.
        (fetch_regs): Likewise.
        (store_register): Likewise.
        (store_regs): Likewise.
2001-11-17 20:31:18 +00:00
Daniel Jacobowitz b0677c2eb2 * sparc-linux-nat.c (fill_gregset): Replace read_register_gen
with regcache_collect.
        (fill_fpregset): Likewise.
2001-11-17 20:21:09 +00:00
Daniel Jacobowitz d2b57b9476 * Makefile.in: Add mips-linux-nat.c, mips-linux-tdep.c,
and sparc-linux-nat.c to ALLDEPFILES.  Add dependencies.
        * config/sparc/linux.mh: Add sparc-linux-nat.o to NATDEPFILES.
        * sparc-linux-nat.c: New file, from Mark Kettenis.
2001-11-17 18:38:29 +00:00
Jakub Jelinek 4bdf3d3415 * dwarf2read.c (dwarf_str_buffer): New.
(struct dwarf2_pinfo): Add dwarf_str_buffer and dwarf_str_size.
	(DWARF_STR_BUFFER, DWARF_STR_SIZE): Define.
	(dwarf2_has_info): Clear dwarf_str_offset.
	(dwarf2_build_psymtabs): Read .debug_str section if present.
	(dwarf2_build_psymtabs_hard): Save DWARF_STR_BUFFER and
	DWARF_STR_SIZE.
	(psymtab_to_symtab_1): Restore DWARF_STR_BUFFER and DWARF_STR_SIZE.
	(read_attribute): Handle DW_FORM_strp.
	(read_n_bytes, read_string): Remove HOST_CHAR_BIT != 8
	handling code.
	(read_indirect_string): New.
	(dump_die): Handle DW_FORM_strp.
2001-11-17 00:08:10 +00:00
gdbadmin a2213a3cbe *** empty log message *** 2001-11-17 00:00:02 +00:00
Jim Blandy 20a940cc8c * s390-tdep.c: Tweak argument-passing to match GCC bugs.
(is_float_singleton, is_struct_like, is_float_like): New
functions, that isolate the weirdness.
(is_double_or_float, is_simple_arg, pass_by_copy_ref,
is_double_arg): Use is_struct_like and is_float_like, rather than
testing the type codes ourselves.
(s390_push_arguments): When passing args on the stack, align each
on to a four-byte boundary, regardless of what the type itself
needs.
2001-11-16 21:40:36 +00:00
Ben Harris e5d6381133 2001-11-16 Ben Harris <bjh21@netbsd.org>
* Makefile.in (os9kread.o): Replace $< with autoconf-approved
	$(srcdir)/....
	(procfs.o): Ditto.
	(z8k-tdep.o): Ditto.
2001-11-16 19:53:29 +00:00
Ben Harris 1005d5ef96 2001-11-16 Ben Harris <bjh21@netbsd.org>
* MAINTAINERS (write-after-approval): Add self.
2001-11-16 18:29:27 +00:00
Jim Blandy a1677dfb5e * s390-tdep.c (is_simple_arg): Structs and unions exactly eight
bytes long should be handled as DOUBLE_ARGs; don't recognize them
as SIMPLE_ARGs.
2001-11-16 02:48:30 +00:00
gdbadmin 6150ba3d44 *** empty log message *** 2001-11-16 00:00:32 +00:00
Andrew Cagney ad10f812bf * remote.c (struct packet_reg): Declare.
(struct remote_state): Add fields sizeof_g_packet and g_packet.
(init_remote_state): Initialize sizeof_g_packet and g_packet.
(free_remote_state): Free g_packet.
(packet_reg_from_pnum, packet_reg_by_regnum): New functions.
(remote_wait): Use above instead of gdbarch methods
REGISTER_RAW_SIZE and REGISTER_BYTES.
(remote_async_wait): Ditto.
(remote_fetch_registers, remote_store_registers): Ditto.
(store_register_using_P): Ditto.
2001-11-15 20:58:38 +00:00
Andrew Cagney 9525aa9055 Really zap tty_input from multi-arch swap. 2001-11-15 20:30:41 +00:00
Andrew Cagney 45a1e86678 Correctly handle phex(*,0) and phex_nz(*,0). 2001-11-15 18:35:05 +00:00
Andrew Cagney faf833caca * utils.c (phex_nz): For default case, set str to phex_nz return
value.
2001-11-15 18:24:17 +00:00
Andrew Cagney 193cb69f7b * TODO (register_buffer): Delete.
* regcache.c (register_buffer): Make static.
(regcache_collect): New function.
* regcache.h (register_buffer): Delete declaration.
(regcache_collect): Declare.
* remote.c (store_register_using_P): Rewrite using
regcache_collect.
(remote_store_registers): Ditto.
* go32-nat.c (store_register): Ditto.
2001-11-15 06:43:10 +00:00
Andrew Cagney d01949b65b Move global state variables to ``struct remote_state''. 2001-11-15 05:00:46 +00:00
Andrew Cagney 1ff9c3d6f7 * remote.c: Include "gdb_assert.h".
(tty_input): Wire buffer to 400 bytes.
(readsocket): Check tty_input doesn't overflow.
(build_remote_gdbarch_data, _initialize_remote): Don't multi-arch
tty_input.
2001-11-15 02:56:29 +00:00
Michael Snyder 86884b3733 2001-11-14 Michael Snyder <msnyder@redhat.com>
* d10v-tdep.c (d10v_pointer_to_address): Use new type flag
	TYPE_FLAG_CODE_SPACE to recognize a pointer that has been cast
	into the instruction address space.
	* Makefile.in (doublest.o): Add dependency on gdbtypes.h.
2001-11-15 02:18:46 +00:00
Michael Snyder 4749e309f2 2001-11-13 Michael Snyder <msnyder@redhat.com>
* gdb.base/cvexpr.c, gdb.base/cvexpr.exp: New files.
	Tests for expressions using 'const' and 'volatile'.
2001-11-15 02:16:59 +00:00
Michael Snyder 47663de598 2001-11-14 Michael Snyder <msnyder@redhat.com>
Add address space identifiers to expression language for types.
	* c-exp.y (space_identifier, cv_with_space_id,
	const_or_volatile_or_space_identifier_noopt,
	const_or_volatile_or_space_identifier): New terminals.
	(ptype): Accept const_or_volatile_or_space_identifier.
	(typebase): Accept const_or_volatile_or_space_identifier.
	* c-typeprint.c (c_type_print_cv_qualifier): Rename to
	c_type_print_modifier.  Handle address space modified types.
	* gdbtypes.h (TYPE_FLAG_CODE_SPACE, TYPE_FLAG_DATA_SPACE):
	New type flags.
	(struct type): Add new field as_type for addr-space qualified types.
	(TYPE_AS_TYPE): New macro, retrieves the chain of types that are
	identical to this one except for address-space qualification.
	* gdbtypes.c (alloc_type): Initialize new field 'as_type'.
	(address_space_name_to_int): New function.
	(address_space_int_to_name): New function.
	(make_type_with_address_space): New function.
	(make_cv_type): Handle as_type field of new struct type object.
	* parse.c (check_type_stack_depth): New function.
	(push_type_address_space): New function.
	(follow_types): Handle types with address-space qualifier.
	* parser-defs.h (enum type_pieces): Add enum tp_space_identifier.
2001-11-15 01:55:59 +00:00
gdbadmin 025eb37b39 *** empty log message *** 2001-11-15 00:00:02 +00:00
Jim Blandy 9a1befc916 * s390-tdep.c (s390_pop_frame_regular): On the S/390, the frame
pointer and the SP are often the same, so we can't pop the frame
by setting the SP to the FP; we need to get the old SP from
saved_regs.
2001-11-14 22:34:38 +00:00
Jim Blandy f2c6cfba86 * s390-tdep.c (s390_extract_return_value): Returned `float' values
can simply be copied bitwise from the registers into the value
object's buffer.
2001-11-14 22:29:39 +00:00
Jim Blandy 0902523724 * s390-tdep.c (s390_get_frame_info): Initialize SP's element of
the frame's saved_regs array correctly.
2001-11-14 22:14:11 +00:00
Jim Blandy 0d43edd16b * symfile.c (simple_read_overlay_table): Make sure we can find
both `_novlys' and `_ovly_table' before we try anything else;
print a helpful error message.
(simple_overlay_update): No need to print error message here.
2001-11-14 21:55:21 +00:00
Michael Snyder befc81ac1d 2001-11-14 Michael Snyder <msnyder@redhat.com>
* Makefile.in (doublest.o): Add dependency on gdbtypes.h.
2001-11-14 18:38:01 +00:00
Corinna Vinschen 2505098499 * gdb.asm/asm-sources.exp: Allow defining linker flags. 2001-11-14 16:37:18 +00:00
Andrew Cagney 032758dc55 * arm-tdep.c (arm_register_type): New function.
(arm_register_convertible): Delete.
(arm_register_convert_to_virtual): Delete.
(arm_register_convert_to_raw): Delete.
* config/arm/tm-arm.h (REGISTER_CONVERTIBLE): Delete.
(REGISTER_CONVERT_TO_VIRTUAL): Delete.
(REGISTER_CONVERT_TO_RAW): Delete.
(REGISTER_VIRTUAL_TYPE): Redefine as call to arm_register_type.
(arm_register_type): Declare.
2001-11-14 08:18:33 +00:00