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
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
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
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
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
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
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
Jim Blandy
6df29de21e
* s390-tdep.c (s390_get_frame_info): Doc fixes.
2001-12-04 23:51:55 +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
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
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
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
e2caac1894
Delete tic80 target.
2001-12-01 19:10:00 +00:00
Kevin Buettner
6ded7999cd
Add cross platform SVR4 shared library support for PowerPC.
2001-12-01 00:25:08 +00:00
Kevin Buettner
a42dd537c4
Define SVR4 link map offset fetcher for Linux/ARM.
2001-11-30 20:27:09 +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
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
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
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
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
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
c2a727faa2
* NEWS: Update for --args.
...
* infcmd.c (construct_inferior_arguments): Moved from ...
* fork-child.c: ... here.
2001-11-27 03:09:44 +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
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
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
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
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
Andrew Cagney
172d914f22
Mention 5.1 release.
2001-11-22 05:52:23 +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
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
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
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
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
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
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
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
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
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
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
Elena Zannoni
8b982acfc6
2001-11-13 Elena Zannoni <ezannoni@redhat.com>
...
From Andrew Cagney <cagney@redhat.com>:
* gdbtypes.h (builtin_type_int128, builtin_type_uint128): Declare.
* gdbtypes.c (_initialize_gdbtypes, build_gdbtypes): Initialize
new builtin types.
2001-11-13 19:07:00 +00:00
Jim Blandy
78f8b4242f
* s390-tdep.c: Rewrite inferior function call code. This may
...
break zSeries support; that should be fixed soon.
#include "gdb_assert.h".
(is_integer_like, is_pointer_like, is_simple_arg,
pass_by_copy_ref, extend_simple_arg, is_double_arg, round_up,
round_down, alignment_of): New functions.
(s390_push_arguments): Rewritten to handle passing large arguments
by value, and to make more readable.
2001-11-13 17:47:19 +00:00
Jim Blandy
4c8287ac0c
* s390-tdep.c (s390_pop_frame): Call generic_pop_current_frame, to
...
interact correctly with generic dummy frames.
(s390_pop_frame_regular): Move the guts of the frame-popping code
to here, to be called by generic_pop_current_frame. Use the
frame's saved_regs array; this works for `return' as well as
inferior function calls.
2001-11-13 17:38:49 +00:00
Jim Blandy
0adb2abaa6
* s390-tdep.c (s390_gdbarch_init): Register the function
...
`standard_coerce_float_to_double', since GCC for the S/390 follows
the standard rules for passing floats.
2001-11-13 17:26:46 +00:00
Jim Blandy
641225a400
* valops.c (default_coerce_float_to_double,
...
standard_coerce_float_to_double): Doc fixes.
2001-11-13 16:44:13 +00:00
Jim Blandy
648f4f7985
Patch from Peter Schauer:
...
* symtab.c (find_pc_sect_line): If we can't find the function
containing PC, we certainly won't have line number information for
that location, so return zero immediately.
2001-11-13 16:42:50 +00:00
Andrew Cagney
0cb2e7c50f
Eliminate REGISTER_CONVERTIBLE().
2001-11-13 03:10:35 +00:00
Andrew Cagney
2c10d744f3
Zap REGISTER_CONVERTIBLE from m88k.
2001-11-13 02:39:29 +00:00
Mark Kettenis
226271d3c0
* i386-tdep.h (FPU_REG_RAW_SIZE): Define unconditionally.
...
* i387-nat.c, i387-tdep.c: Unconditionally include "i386-tdep.h".
* config/i386/tm-i386.h (FPU_REG_RAW_SIZE): Removed.
(SIZEOF_FPU_REGS): Don't use FPU_REG_RAW_SIZE here.
2001-11-12 22:27:35 +00:00
Jim Blandy
c263635274
Patch from Andreas Schwab <schwab@suse.de>:
...
* eval.c (evaluate_subexp_standard): Fix memory leak: use alloca
instead of xmalloc.
2001-11-12 21:20:18 +00:00
Jim Blandy
c26e46834f
* corefile.c (write_memory_unsigned_integer,
...
write_memory_signed_integer): New functions.
(write_memory): Move to be with other write_memory_* functions.
* gdbcore.h (write_memory_unsigned_integer,
write_memory_signed_integer): New declarations.
2001-11-12 21:08:04 +00:00
Geoffrey Keating
9aa1fe7eee
* dwarf2read.c (dwarf_decode_lines): Properly deal with
...
unknown standard opcodes.
2001-11-12 20:36:55 +00:00
Andrew Cagney
5b582da3d4
* README (alpha-dec-osf5.1): Mention -DUSE_LDR_ROUTINES.
...
(sparcv9-sun-solars2.8): Mention problem with 64 bit GCC 3.0.x.
(i586-sco-sysv5uw7.1.1): Mention problem with threads.
2001-11-11 18:34:46 +00:00
Andrew Cagney
b18c45ede9
From Mark Kettenis <kettenis@gnu.org>:
...
* breakpoint.c (breakpoint_re_set_one): Don't discard SHLIB
breakpoints when they fail.
2001-11-11 16:39:59 +00:00
Andrew Cagney
3d6d86c64b
s/value_ptr/struct value */
2001-11-10 21:34:56 +00:00
Andrew Cagney
6943961c98
s/value_ptr/struct value */
2001-11-10 20:44:38 +00:00
Andrew Cagney
610510309f
s/value_ptr/struct value */
2001-11-10 20:15:13 +00:00
Jim Blandy
d4d0c21e8f
* s390-tdep.c: Don't use a call dummy.
...
(s390_fix_call_dummy, s390_pc_in_call_dummy): Delete.
(s390_push_return_address): Put the address of the inferior call
breakpoint in r14.
(s390_gdbarch_init):
- Provide trivial definition of s390_call_dummy_words; register it
with the gdbarch appropriately.
- Delete S390x_call_dummy_words.
- Gather inferior-call-related settings into a group.
- Use generic dummy frames.
- Put the inferior call breakpoint at the entry point.
- Use generic gdbarch methods: pc_in_call_dummy_at_entry_point,
generic_push_dummy_frame, generic_fix_call_dummy.
- There is a call dummy breakpoint offset; it's zero.
2001-11-09 19:14:00 +00:00
Jim Blandy
f7aaef7d5b
Typo: s390-nat.c -> s390-tdep.c.
2001-11-09 19:01:13 +00:00
Jim Blandy
01c464e928
* s390-nat.c: (s390_push_arguments): Write a back chain pointer
...
into the dummy frame, to help us get backtraces.
2001-11-09 18:58:14 +00:00
Jim Blandy
f312f05740
* values.c (value_as_address): If VAL is a function or method,
...
just return its address; don't let COERCE_ARRAY convert its
address to a pointer, and then have unpack_long convert it back to
an address.
2001-11-09 16:41:50 +00:00
Pierre Muller
5598ce1171
2001-11-06 Pierre Muller <muller@ics.u-strasbg.fr>
...
* p-lang.c (is_pascal_string_type): New function to determine if a
type is a string type.
* p-lang.h: Add prototype for is_pascal_string_type.
* p-valprint.c (pascal_val_print) : Use is_pascal_string_type function
to display strings nicely.
2001-11-09 09:48:09 +00:00
Pierre Muller
94a716bf57
2001-11-06 Pierre Muller <muller@ics.u-strasbg.fr>
...
* p-exp.y (yylex): Only change case of expression if symbol is found.
Also check for GPC standard name form.
2001-11-09 09:46:40 +00:00
Andrew Cagney
f6a9480ec1
A simple script to indent GDB source code.
2001-11-09 04:00:00 +00:00
Jim Blandy
64f9bb983b
* s390-tdep.c (s390_get_frame_info): Initialize got_load_addr and
...
got_load_len, to placate compiler.
2001-11-08 23:28:36 +00:00
Mark Kettenis
cd3c07fc0b
* i386-tdep.c (i386_gdbarch_init): Fix typo.
2001-11-08 20:26:42 +00:00
Jim Blandy
8001d1e4ef
* s390-tdep.c (s390_gdbarch_init): Use func_frame_chain_valid, not
...
file_frame_chain_valid.
2001-11-08 19:16:10 +00:00
Jim Blandy
8ac0e65a44
* s390-tdep.c (s390_get_frame_info): If the prologue loads r12
...
from the constant pool, but doesn't add in the constant pool's
address to it, then this function probably isn't using r12 as a
GOT pointer, and that load probably wasn't part of the prologue.
2001-11-08 19:06:04 +00:00
Jim Blandy
4c801202fe
* s390-tdep.c (s390_gdbarch_init): Use the default
...
prepare_to_proceed function established by config/nm-linux.h;
don't try to set it to linuxthreads_prepare_to_proceed.
2001-11-08 19:03:54 +00:00
Andrew Cagney
a62cc96ec5
Enable multi-arch for i386.
2001-11-08 18:32:08 +00:00
Andrew Cagney
8ea43c6d5a
Don't update `set architecture'' when
`set disassembly-flavor[sic]''
2001-11-08 18:23:43 +00:00
Elena Zannoni
6a34fd2fd5
2001-11-07 Elena Zannoni <ezannoni@redhat.com>
...
* dbxread.c (set_namestring): New function, replacing the
SET_NAMESTRING macro.
(SET_NAMESTRING, CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE,
CUR_SYMBOL_STRX, DBXREAD_ONLY, START_PSYMTAB, END_PSYMTAB): Delete
definitions.
(read_dbx_symtab): Don't include partial-stab.h any more. Don't
reuse code in partial-stab.h, include the code directly, instead.
* Makefile.in (dbxread.o): Remove dependency on partial-stab.h.
(HFILES_NO_SRCDIR): Remove partial-stab.h.
2001-11-08 04:39:04 +00:00
Andrew Cagney
a72293e2a7
When non-multi-arch, use predefault as the value of a pure-multi-arch
...
method.
2001-11-08 01:33:04 +00:00
Mark Kettenis
8cf03c4c87
* config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Define in
...
terms of NUM_GREGS, NUM_FREGS and NUM_SSE_REGS instead of
hardcoding the register number.
2001-11-08 00:03:52 +00:00
Andrew Cagney
56f127518f
gdbarch.sh provides default for USE_STRUCT_CONVENTION.
2001-11-07 22:42:29 +00:00
Andrew Cagney
a4a7d16f8b
gdbarch.sh (PC_IN_CALL_DUMMY): Require a value.
2001-11-07 04:28:38 +00:00