Commit Graph

10651 Commits

Author SHA1 Message Date
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
gdbadmin d7dfd553d7 *** empty log message *** 2001-11-14 00:00:02 +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
Michael Snyder 760f63305a 2001-11-07 Michael Snyder <msnyder@redhat.com>
* gdb.c++/templates.exp (test_template_breakpoints):
	If we get an overload menu, but it does not match what
	we expect, we still need to issue the "cancel" command.
2001-11-13 18:54:40 +00:00
Jim Blandy 3fe0dc10b4 * gdbint.texinfo (COERCE_FLOAT_TO_DOUBLE): Clarify. 2001-11-13 18:52:53 +00:00
Michael Snyder 3b2a7ae505 2001-11-07 Michael Snyder <msnyder@redhat.com>
* gdb.c++/templates.exp: Replace "void \\*" with "void ?\\*",
	making the whitespace optional.  Argument for "new" may be
	"unsigned" as well as "unsigned int/long".
2001-11-13 18:52:08 +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
gdbadmin 8df934503e *** empty log message *** 2001-11-13 00:00:33 +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
Daniel Jacobowitz 1902c51fa6 * lib/mi-support.exp (mi_run_to_helper): Move comments
outside of gdb_expect.
2001-11-12 19:44:28 +00:00
gdbadmin 514734b62f *** empty log message *** 2001-11-12 00:00:03 +00:00
Daniel Jacobowitz dcf95b4721 * lib/mi-support.exp: (mi_run_to_helper, mi_run_to,
mi_step_to, mi_next_to, mi_continue_to, mi_finish_to,
        mi0_step_to, mi0_next_to, mi0_continue_to, mi0_finish_to,
        mi0_run_to): New functions.
        * gdb.mi/mi-simplerun.exp: Use them.
        * gdb.mi/mi0-simplerun.exp: Likewise.
        * gdb.mi/mi-var-cmd.exp: Likewise.
        * gdb.mi/mi0-var-cmd.exp: Likewise.
2001-11-11 20:11:03 +00:00
Corinna Vinschen 84826df144 Change target name from stormy16 to xstormy16. 2001-11-11 19:58:19 +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
gdbadmin a3cab9a92b *** empty log message *** 2001-11-11 00:00:33 +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
Andrew Cagney 45b074e11d * gdb.asm/asmsrc1.s: Add ``gdbasm_'' prefix to all macros.
* gdb.asm/asmsrc2.s, gdb.asm/d10v.inc: Update.
2001-11-10 17:55:48 +00:00
Andrew Cagney bf50d346c5 * gdb.asm/asm-source.exp: Supress file, instead of skip, when not
implemented.
2001-11-10 02:28:37 +00:00
Andrew Cagney 9383332cc4 * gdb.asm/asm-source.exp: Supress file, instead of skip, when not
implemented.
2001-11-10 01:44:43 +00:00
gdbadmin a73b8fec64 *** empty log message *** 2001-11-10 00:00:37 +00:00
Michael Snyder db62520a00 2001-11-08 Michael Snyder <msnyder@redhat.com>
* gdb.base/callfuncs.exp: Add tests for nested call dummies.
	Add pass/fail message for stop at breakpoint in call dummy function.
2001-11-09 19:14:54 +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
gdbadmin 75aa290a64 *** empty log message *** 2001-11-09 00:00:06 +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
Michael Snyder eef747c069 2001-11-07 Michael Snyder <msnyder@redhat.com>
* gdb.c++/templates.exp: Replace "const &" with "const ?&",
	making the whitespace optional.  Also replace "(void) with
	"((void|)), making the keyword "void" optional.
2001-11-08 19:21:54 +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
Michael Snyder 63f5049969 2001-11-07 Michael Snyder <msnyder@redhat.com>
* gdb.c++/virtfunc.exp: Replace "const &" with "const ?&",
	making the whitespace optional.  Also replace "(void) with
	"((void|)), making the keyword "void" optional.
2001-11-08 19:12:30 +00:00
Michael Snyder 3bf40917fc 2001-11-07 Michael Snyder <msnyder@redhat.com>
* gdb.base/callfuncs.c (t_float_values): This function must
	_not_ be prototyped, and the following function (t_float_values2)
	must be prototyped (if the compiler supports it), so that GDB
	can be tested against both cases.  Usually one case involves
	promotion of float to double, while the other does not.
	* gdb.base/callfwmall.c: Ditto.
2001-11-08 19:08:34 +00:00
Michael Snyder b57034379c 2001-11-07 Michael Snyder <msnyder@redhat.com>
* gdb.asm/asm-source.exp (bt ALL in foo2): Accept a backtrace that
	includes a stack frame for "start".
2001-11-08 19:06:18 +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 274d631f21 2001-10-30 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.

 	* partial-stab.h: Remove file.
2001-11-08 04:58:40 +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
Elena Zannoni 686c918fbf Whoops, forgot to commit this yesterday:
2001-11-06  Elena Zannoni  <ezannoni@redhat.com>

        * mdebugread.c (CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB,
        END_PSYMTAB, SET_NAMESTRING, HANDLE_RBRAC): Delete definitions.
        (parse_partial_symbols): Don't include partial-stab.h any
        more. Don't reuse code in partial-stab.h, include the code
        directly, instead. Simplify code from partial-stab.h eliminating
        ifdef DBXREAD_ONLY code.

        * Makefile.in (mdebugread.o): Remove dependency on partial-stab.h.
2001-11-08 02:59:32 +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
gdbadmin 3a27e00009 *** empty log message *** 2001-11-08 00:00:36 +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
gdbadmin 1262e67cc3 *** empty log message *** 2001-11-07 00:00:02 +00:00
Fred Fish 4dc13854e5 2001-11-06 Fred Fish <fnf@redhat.com>
* complaints.c (info_verbose): Remove unneeded decl, is in defs.h.
	* dbxread.c: Ditto
	* dwarf2read.c: Ditto.
	* dwarfread.c: Ditto.
	* exec.c: Ditto.
	* hpread.c: Ditto.
	* hpread.h: Ditto.
	* mdebugread.c: Ditto.
	* os9kread.c: Ditto.
	* stack.c: Ditto.
	* symfile.c: Ditto.
	* tracepoint.c: Ditto.
2001-11-06 23:38:15 +00:00
Andrew Cagney 7fe4d0d2dc * MAINTAINERS: Update Andrew Cagney's responsibilities. Mention
David Taylor and Nick Duffek in past maintainers.
2001-11-06 22:40:06 +00:00
Elena Zannoni d3119d1ec7 2001-11-06 Elena Zannoni <ezannoni@redhat.com>
* mdebugread.c (CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB,
        END_PSYMTAB, SET_NAMESTRING, HANDLE_RBRAC): Delete definitions.
        (parse_partial_symbols): Don't include partial-stab.h any
        more. Don't reuse code in partial-stab.h, include the code
        directly, instead. Simplify code from partial-stab.h eliminating
        ifdef DBXREAD_ONLY code.

        * Makefile.in (mdebugread.o): Remove dependency on partial-stab.h.
2001-11-06 22:35:25 +00:00
Jim Blandy 3ecc0ae2c0 * s390-nat.c: #include "regcache.h", to get declaration for
`supply_register'.  (The last change already added the dependency
of s390-nat.o on regcache.h.  Oops.)
2001-11-06 22:18:13 +00:00
Jim Blandy e81b020b49 * Makefile.in (ALLDEPFILES): Add s390-tdep.c and s390-nat.c.
(s390-tdep.o, s390-nat.o): New rules.
2001-11-06 21:58:53 +00:00
Jim Blandy 3893775531 Fix typo. 2001-11-06 21:34:00 +00:00
Jim Blandy e2d46a8c2c * gdb/s390-nat.c (s390_register_u_addr): Pass proper arguments to
internal_error.
2001-11-06 21:28:29 +00:00
Andrew Cagney a985cd4128 gdbarch.sh (CALL_DUMMY_LOCATION): Require a value. 2001-11-06 21:20:23 +00:00
Andrew Cagney e6b47f070d Zap another #ifdef INIT_EXTRA_FRAME_INFO 2001-11-06 18:54:11 +00:00
Andrew Cagney 69a0d5f4fa Add predicate for PUSH_RETURN_ADDRESS. 2001-11-06 18:06:00 +00:00
Corinna Vinschen c12260ac38 * arch-utils.c (generic_in_function_epilogue_p): New function.
* arch-utils.h (generic_in_function_epilogue_p): Declare extern.
	* breakpoint.c (watchpoint_check): Add test whether the pc is
	currently in the epilogue of a function.
	* gdbarch.c: Autogenerated from gdbarch.sh.
	* gdbarch.h: Ditto.
	* gdbarch.sh (function_list): Add `in_function_epilogue_p' definition.
2001-11-06 11:02:12 +00:00
Corinna Vinschen 9e5abb068c * gdb.texinfo (gdbarch_in_function_epilogue_p): Add documentation. 2001-11-06 11:01:22 +00:00
Jim Blandy c8ab4e6d75 * gdb.stabs/weird.exp: Delete "p v_comb" test. It assumes that
pointers are 32 bits long, and that offsets of relocs are always
stored in the data (REL-style), and not in the reloc entry itself
(RELA-style).
* gdb.stabs/weird.def (v_comb, v_comb_shared): Remove symbols and
stabs.
2001-11-06 00:31:59 +00:00
Jim Blandy 8114216ba3 * config/s390/s390.mh (NATDEPFILES): Don't split this across
several lines with backslashes; the `sed' command in
configure.in's AC_OUTPUT clause that comments out the NATDEPFILES
assignment doesn't handle lines extended with backslashes.
2001-11-06 00:04:51 +00:00
gdbadmin 1ba7aa49fd *** empty log message *** 2001-11-06 00:00:33 +00:00
Jim Blandy c462020561 * configure.in (AC_OUTPUT): Handle assignments to NATDEPFILES
using `+=' as well as `='.
* configure: Regenerated.
2001-11-05 23:54:49 +00:00
Michael Snyder 3f08ced966 2001-11-01 Michael Snyder <msnyder@redhat.com>
* gdb.c++/cplusfuncs.exp: Fix conflicts between operator names
	and regular expression operators by using quoting.
2001-11-05 23:31:26 +00:00
Michael Snyder 53e8ad3d81 2001-11-01 Michael Snyder <msnyder@redhat.com>
* symtab.c (operator_chars): Allow '*' and '[' to be quoted in
	operator names, to avoid regexp expansion.
	(search_symbols): Alloca buffer is too small, may get clobbered.
2001-11-05 23:27:31 +00:00
Michael Snyder 1c5dfdad97 2001-11-05 Michael Snyder <msnyder@redhat.com>
* gdb.texinfo (info functions): Document use of backslash to
	quote regexp chars in function names such as "operator*()".
2001-11-05 23:26:09 +00:00
Andrew Cagney 5fdff4261c Change INIT_EXTRA_FRAME_INFO() to a function with predicate. 2001-11-05 23:11:31 +00:00
Andrew Cagney f16a1923df * gdbarch.sh (verify_gdbarch): Use a mem_file to accumulate all
error messages.  Print in a single batch.
* gdbarch.c: Regenerate.
2001-11-05 21:34:33 +00:00
gdbadmin 40eb255073 *** empty log message *** 2001-11-05 00:00:32 +00:00
Mark Kettenis 3fb1c83804 * i386-linux-nat.c (GETREGS_SUPPLIES, supply_gregset,
fill_gregset): Add support for "orig_eax" register.
2001-11-04 14:30:42 +00:00
Mark Kettenis 6441c4a026 Add support for "orig_eax" pseudo register on Linux/x86.
* i386-linux-tdep.c: Include "inferior.h".
(i386_linux_register_name, i386_linux_register_byte,
i386_linux_register_raw_size): New functions.
(i386_linux_write_pc): New function.
* config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): New define.
(NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
REGISTER_BYTE, REGISTER_RAW_SIZE): Define to deal with additional
register.
(i386_linux_register_name, i386_linux_register_byte,
i386_linux_register_raw_size): New prototypes.
(TARGET_WRITE_PC): New define.
(i386_linux_write_pc): New prototype.
2001-11-04 14:06:16 +00:00
Mark Kettenis 1a11ba71e2 * i386-tdep.c (i386_register_offset): Renamed from
i386_register_byte.  Made static.
(i386_register_size): Renamed from i386_register_raw_size.  Made
static.
(i386_register_virtual_size): Removed.
(i386_register_byte, i386_register_raw_size,
i386_register_virtual_size): New functions.
(_initialize_i386_tdep): Initialize i386_register_offset instead
of i386_register_byte.  Remove code to initialize
i386_register_virtual_size.
* config/i386/tm-i386.h (REGISTER_BYTE): Redefine to use
i386_register_byte function.
(REGISTER_RAW_SIZE): Redefine to use i386_register_raw_size
function.
(REGISTER_VIRTUAL_SIZE): Redefine to use
i386_register_virtual_size function.
(i386_register_byte, i386_register_raw_size,
i386_register_virtual_size): New functions.
2001-11-04 13:51:48 +00:00
Mark Kettenis 0fc087fe41 * Makefile.in (ALLDEPFILES): Add i387-nat.c.
(i387-nat.o): Add dependencies.
2001-11-04 13:14:43 +00:00
gdbadmin 0001244b9e *** empty log message *** 2001-11-04 00:00:35 +00:00
gdbadmin 56059d66d7 *** empty log message *** 2001-11-03 00:00:35 +00:00
Andrew Cagney 1396e6f1d3 Doco problem with alpha-dec-osf5.1. 2001-11-02 21:59:18 +00:00
Andrew Cagney 5c7dd74823 * utils.c (internal_verror): Restore calls to abort().
Fix PR gdb/219.
2001-11-02 21:46:52 +00:00
Michael Chastain 3559696cf5 2001-11-02 Michael Chastain <mec@shout.net>
* MAINTAINERS: Update my entry.
2001-11-02 15:41:16 +00:00
gdbadmin e3eb7b4206 *** empty log message *** 2001-11-02 00:00:04 +00:00
Michael Snyder cbfa24cd20 2001-10-31 Michael Snyder <msnyder@redhat.com>
* gdb.c++/overload.exp: Select overloadfnarg(void) or overloadfnarg(),
	depending on what the symbol table contains.
	* gdb.c++/derivation.exp: Accept both "foo(void)" and "foo()" in
	the output of the ptype command.  Similarly, accept both "const &"
	and "const&".
2001-11-01 23:41:09 +00:00
Fred Fish 990f9fe3aa Approved by kev@cygnus.com
ChangeLog entry:

	2001-11-01  Fred Fish  <fnf@redhat.com>

	* coff-solib.c (coff_solib_add): Add new readsyms arg.
	* irix5-nat.c (solib_add): Ditto.
	* osfsolib.c (solib_add): Ditto.
	* pa64solib.c (pa64_solib_add): Ditto.
	* pa64solib.c (add_to_solist): Ditto.
	* pa64solib.c (read_dld_descriptor): Ditto.
	* solib.c (solib_add): Ditto.
	* somsolib.c (som_solib_add): Ditto.
	* win32-nat.c (child_solib_add): Ditto.
	* xcoffsolib.c (solib_add): Ditto.

	* coff-solib.h (coff_solib_add): Add new readsyms arg to prototype.
	* pa64solib.c (add_to_solist): Ditto.
	* pa64solib.c (read_dld_descriptor): Ditto.
	* pa64solib.h (pa64_solib_add): Ditto.
	* solib.h (solib_add): Ditto.
	* somsolib.h (som_solib_add): Ditto.
	* config/i386/tm-cygwin.h (child_solib_add): Ditto.

	* coff-solib.c (coff_solib_add):  If readsyms is zero don't read
	symbols but do any other needed work for shared libs.
	* irix5-nat.c: Ditto.
	* osfsolib.c (solib_add): Ditto.
	* solib.c (solib_add): Ditto.
	* win32-nat.c (child_solib_add): Ditto.
	* xcoffsolib.c (solib_add): Ditto.

	* irix5-nat.c (sharedlibrary_command): Pass 1 as readsyms to
	solib_add to force reading of shared library symbols.
	* osfsolib.c (sharedlibrary_command;): Ditto.
	* pa64solib.c (pa64_solib_sharedlibrary_command): Ditto.
	* solib.c (sharedlibrary_command): Ditto.
	* somsolib.c (som_solib_sharedlibrary_command): Ditto.
	* xcoffsolib.c (sharedlibrary_command): Ditto.

	* coff-solib.c (coff_solib_create_inferior_hook): Call solib_add
	unconditionally with auto_solib_add.
	* irix5-nat.c (solib_create_inferior_hook): Ditto.
	* osfsolib.c (solib_create_inferior_hook): Ditto.
	* solib.c (solib_create_inferior_hook): Ditto.
	* solib-osf.c (osf_solib_create_inferior_hook): Ditto.
	* solib-svr4.c (enable_break): Ditto.
	* solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.

	* corelow.c (solib_add_stub): Add auto_solib_add to args passed
	via SOLIB_ADD.
	* sol-thread.c (sol_thread_attach): Ditto.
	* config/rs6000/nm-rs6000.h (SOLIB_ADD): Ditto.

	* infcmd.c (attach_command): Remove auto_solib_add decl.
	Call SOLIB_ADD directly with auto_solib_add.
	* infrun.c (handle_inferior_event): Ditto.

	* coff-solib.h (SOLIB_ADD): Add readsyms arg.
	* pa64solib.h (SOLIB_ADD): Ditto.
	* solib.h (SOLIB_ADD): Ditto.
	* somsolib.h (SOLIB_ADD): Ditto.
	* config/i386/tm-cygwin.h (SOLIB_ADD): Ditto.

	* fork-child.c (clone_and_follow_inferior): Remove unused
	auto_solib_add decl.

	* pa64solib.c (pa64_solib_add): Call add_to_solist with readsyms.
	(read_dld_descriptor): Ditto.
	(pa64_solib_add): Call read_dld_descriptor with	readsyms.
	(pa64_solib_in_dynamic_linker): Ditto.

	* corelow.c (symfile.h): Need this for auto_solib_add declaration.
	* sol-thread.c (symfile.h): Ditto.

Approved by eliz@is.elta.co.il
doc/ChangeLog entry:

	2001-11-01  Fred Fish  <fnf@redhat.com>

	* gdbint.texinfo (SOLIB_ADD): Document additional new
	"readsyms" arg.
2001-11-01 16:17:08 +00:00
Don Howard 070b1dd3c2 Fixed formatting error. 2001-11-01 05:11:19 +00:00
Andrew Cagney 1de2edba33 use xmalloc() and xfree(). 2001-11-01 02:53:05 +00:00
Andrew Cagney 30b28db19b s/value_ptr/struct value */ 2001-11-01 02:37:56 +00:00
Andrew Cagney 72330bd63b Re-indent. 2001-11-01 02:22:21 +00:00
Andrew Cagney d45fc520b1 s/value_ptr/struct value */ 2001-11-01 01:21:35 +00:00
Andrew Cagney 3a1c5313da value_ptr tweeks. 2001-11-01 01:07:35 +00:00
gdbadmin 5b04e9c073 *** empty log message *** 2001-11-01 00:00:33 +00:00
Corinna Vinschen 68e9cc944c * arch-utils.c (generic_in_solib_call_trampoline): New function.
* arch-utils.h (generic_in_solib_call_trampoline): Extern declaration.
	* gdbarch.c: Regenerated from gdbarch.sh.
	* gdbarch.h: Ditto.
	* gdbarch.sh (function_list): Add `IN_SOLIB_CALL_TRAMPOLINE' definition.
	* infrun.c (IN_SOLIB_CALL_TRAMPOLINE): Remove macro.
2001-10-31 23:21:33 +00:00
Andrew Cagney 60e6cc428d From DJ Barrow.
* s390-tdep.c: (s390_gdbarch_init): Don't initialize
find_solib_trampoline_target.
2001-10-31 22:57:46 +00:00
Andrew Cagney 6138715944 * remote-vx.c (net_wait): Fix typo from PIDGET change. 2001-10-31 22:29:21 +00:00
Mark Kettenis fc633446cd * config/i386/tm-i386.h (REGISTER_NAMES): Remove.
(REGISTER_NAME): New define.
(i386_register_name): New prototype.
* i386-tdep.c (i386_register_names): New variable.
(i386_register_name): New function.
* config/i386/tm-i386os9k.h, config/i386/tm-ptx.h,
config/i386/tm-symmetry.h: Undefine REGISTER_NAME instead of
REGISTER_NAMES.
2001-10-31 22:24:06 +00:00
Corinna Vinschen aaa68313b8 * gdb.base/miscexprs.c (main): Add usage of preprocessor
symbol `STORAGE' to allow to choose the storage class of
	the local datastructures.
	* gdb.base/miscexprs.exp: Handle setting a `-DSTORAGE=...'
	compiler directive.
2001-10-31 20:59:22 +00:00
Don Howard b433d00bbc 2001-10-30 Don Howard <dhoward@redhat.com>
* gdb.texinfo: (Command Files) Added documentation for the
	behavior of gdb with input redirected from a file.
2001-10-31 19:20:43 +00:00
Christopher Faylor 3f8ad85b6f * win32-nat.c (register_loaded_dll): Attempt to ensure that the case of the
loaded DLL matches the on-disk case since the debugging API does not seem to
ensure this.  Calculate max name length here.
(handle_load_dll): Move max name length calculation to register_loaded_dll.
2001-10-31 19:05:35 +00:00
Daniel Jacobowitz 433144fbec * arm-linux-nat.c: Include <asm/ptrace.h> explicitly. 2001-10-31 15:56:33 +00:00
Keith Seitz ddc5429238 * wrapper.h (gdb_value_struct_elt): New function.
* wrapper.c (gdb_value_struct_elt): Ditto.
	(do_captured_value_struct_elt): Ditto.
2001-10-31 03:16:04 +00:00
Andrew Cagney 34f47bc431 Update README and NEWS to 5.1. 2001-10-31 02:53:17 +00:00
Michael Snyder 91740388ce 2001-10-30 Michael Snyder <msnyder@redhat.com>
* gdb.base/jump.exp: Allow it to run for all targets.
2001-10-31 02:40:24 +00:00
Andrew Cagney 4536bbc6c7 Fix -W... flags check. 2001-10-31 01:57:04 +00:00
gdbadmin 2d98304df3 *** empty log message *** 2001-10-31 00:00:33 +00:00
Fred Fish c3c057c81f 2001-10-30 Fred Fish <fnf@redhat.com>
* somsolib.c (som_solib_add): A megabyte is 1024*1024 bytes.
	* pa64solib.c (add_to_solist): Ditto.
	* win32-nat.c (_initialize_inftarg): Remove unnecessary
	initialization of auto_solib_add, it defaults to 1.
2001-10-30 17:34:30 +00:00
Fred Fish b7209cb4ed Changes approved by kev@cygnus.com, ezannoni@cygnus.com, eliz@is.elta.co.il.
Changelog:

	2001-10-27  Fred Fish  <fnf@redhat.com>

	* symfile.c (auto_solib_add): Update comment to note that
	this variable is now just used as a boolean to control shlib
	autoloading, and clarify when it is used.
	* symfile.h (auto_solib_add): Ditto.

	* symfile.c (auto_solib_limit): New variable that holds the
	autoloading threshold instead of overloading auto_solib_add.
	* symfile.h (auto_solib_limit): Ditto.

	* irix5-nat.c (_initialize_solib): Change auto-solib-add
	variable from var_zinteger to var_boolean and update help.
	* osfsolib.c (_initialize_solib): Ditto.
	* pa64solib.c (_initialize_pa64_solib): Ditto.
	* solib.c (_initialize_solib): Ditto.
	* somsolib.c (_initialize_som_solib): Ditto.
	* xcoffsolib.c (_initialize_solib): Ditto.

	* pa64solib.c (pa64_solib_total_st_size): Update comment to
	note that the new auto_solib_limit variable is used instead
	of overloading auto_solib_add variable.
	(_initialize_pa64_solib): Ditto.
	* somsolib.c (som_solib_total_st_size): Ditto.
	(_initialize_som_solib): Ditto.

	* pa64solib.c (_initialize_pa64_solib): Add new set/show
	commands for auto-solib-limit variable.
	* somsolib.c (_initialize_som_solib): Ditto

	* pa64solib.c (add_to_solist): Check that auto_solib_add is
	set and use auto_solib_limit as the threshold size instead
	of auto_solib_add.
	* somsolib.c (som_solib_add): Ditto, and also change warning
	text about size threshold exceeded.

  doc/ChangeLog:

	2001-10-28  Fred Fish  <fnf@redhat.com>

	* gdb.texinfo (auto-solib-add): Change docs to match
	implementation change.
	(auto-solib-limit): Add docs for new variable.
2001-10-30 04:05:36 +00:00
gdbadmin 310a798eb8 *** empty log message *** 2001-10-30 00:00:33 +00:00
Mark Kettenis dec66fe5f0 * config/i386/tm-i386v.h: Don't include "regcache.h".
(EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, FRAME_CHAIN,
FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_NUM_ARGS):
Remove macros.  The versions from "tm-i386.h" should work fine
(and in most cases even better).
2001-10-29 23:54:56 +00:00
Mark Kettenis c6ba6f0d51 * i386-tdep.c (i386_extract_return_value): Use
convert_typed_floating to extract floating-point value from
register buffer.
(i386_store_return_value): Use convert_typed_floating to store
floating-point return balue in register buffer
(i386_register_virtual_type): Change type of floating-point
registers to builtin_type_i387_ext.
(i386_register_convert_to_virtual): Use convert_typed_floating to
do the conversion.
(i386_register_convert_to_raw): Likewise.
2001-10-29 23:49:31 +00:00
Mark Kettenis 43686d6411 * doublest.h (convert_typed_floating): New prototype.
* doublest.c (convert_typed_floating): New function.
2001-10-29 23:35:37 +00:00
Corinna Vinschen 1b7c05e765 * gdb.base/call-ar-st.c (print_double_array): Match for loop
with new double_array size.
	(main): Change storage class of all local variables to static.
	Reduce size of double_array to 9.
	* gdb.base/call-ar-st.exp:  Increase timeout value.
	Change expected output for double array to match new size in
	call-ar-st.c.
2001-10-29 18:20:22 +00:00
Corinna Vinschen 36a222619e * gdb.base/ending-run.exp: Create identical output when passing
`step to end of run' case.  Add regular expression branch satisfying
	Stormy16 target.
2001-10-29 18:16:46 +00:00
Mark Kettenis 92b8ae9161 * gdb.base/interrupt.exp: Treat SIGILL similar to SIGSEGV such
that we catch the expected failure under Linux/x86.
2001-10-29 17:38:11 +00:00
Orjan Friberg cb135b8327 2001-10-29 Orjan Friberg <orjanf@axis.com>
* gdb.base/setvar.exp: Escape curly braces.
	* gdb.stabs/weird.exp: Ditto.
2001-10-29 16:24:35 +00:00
gdbadmin aad62413f5 *** empty log message *** 2001-10-29 00:00:32 +00:00
Mark Kettenis 87ffba60fb * doublest.c: Improve comments a bit.
(floatformat_from_length): New function.
(NAN): Define to 0.0 if not already defined.
(extract_floating): Rewrite to use floatformat_from_length.  Warn
instead of error if LEN doesn't match a known floating-point type,
and return NaN (or 0.0 if NaN isn't available) in that case.
(store_floating): Likewise, but zero out the target byte-stream if
LEN doesn't match a known floating-point type.
(extract_typed_floating): Reformat a bit.
(store_typed_floating): Reformat a bit.  Add comment about zeroing
out padding in the target buffer.
* doublest.h (extract_floating, store_floating): Fix comment about
deprecation of these functions.  Add parameter names to prototypes.
2001-10-28 22:06:27 +00:00
Mark Kettenis 4583280ca5 * i387-tdep.c (print_i387_value): Use extract_typed_floating to
convert RAW to a DOUBLEST instead of extract_floating.
2001-10-28 14:07:35 +00:00
Mark Kettenis e371b258f8 * gdbtypes.c (_initialize_gdbtypes): Set floating-point type for
builtin_type_i387_ext to floatformat_i387_ext.
2001-10-28 12:43:12 +00:00
Daniel Jacobowitz 6884aa54f1 * gdb.mi/mi-hack-cli.exp: Remove excess newlines from test strings.
* gdm.mi/mi0-hack-cli.exp: Likewise.
2001-10-28 00:29:50 +00:00
gdbadmin 3f715d031e *** empty log message *** 2001-10-28 00:00:34 +00:00
gdbadmin f0f512a7c5 *** empty log message *** 2001-10-27 00:00:32 +00:00
Daniel Jacobowitz 17fd1ad937 * arm-linux-nat.c (fill_gregset): Do not check register_valid[].
(fill_fpregset): Likewise.
2001-10-26 15:41:17 +00:00
Orjan Friberg fa4e459858 2001-10-26 Orjan Friberg <orjanf@axis.com>
* cris-tdep.c (constraint): Loop through the whole cris_spec_regs
	struct, not just the NUM_SPECREGS first entries.
	(bdap_prefix): Read PC before autoincrement.
2001-10-26 14:54:24 +00:00
Corinna Vinschen 02cc9f49ae * win32-nat.c (DebugSetProcessKillOnExit): New static function
pointer to Windows' DebugSetProcessKillOnExit() function.
        (DebugActiveProcessStop): Ditto for DebugActiveProcessStop().
        (has_detach_ability): New function.
        (child_attach): If system has detach ability, enable it.
        (child_detach): If system has detach ability, actually
        detach from process.
        Change tty output to Linux format.
2001-10-26 09:29:31 +00:00
Andrew Cagney 0398c9aabc Unify stabs/weird messages. 2001-10-26 04:17:45 +00:00
gdbadmin 39374d6e4e *** empty log message *** 2001-10-26 00:00:05 +00:00
gdbadmin 0bfecfb326 *** empty log message *** 2001-10-25 00:00:34 +00:00
Jim Blandy bc873f163f (start_psymtab_common): Revert change accidentally included in last
commit.
2001-10-24 17:13:12 +00:00
Jim Blandy 3973eaddf4 Isolate STABS readers' use of the `textlow' and `texthigh' fields
of `struct partial_symtab' to only a few locations.  This change
is not supposed to affect the way the values are computed, only
where they live.

* dbxread.c (struct symloc): Add `textlow' and `texthigh' fields
to the reader-specific structure.
* mdebugread.c (struct symloc): Same.
* dbxread.c (TEXTLOW, TEXTHIGH): New accessor macros.
* mdebugread.c (TEXTLOW, TEXTHIGH): Same.
* dbxread.c (dbx_symfile_read): After we've built all our partial
symbol tables, set each partial symtab's `textlow' and `texthigh'
fields from our reader-specific structure.
* mdebugread.c (mdebug_build_psymtabs): Same.
* dbxread.c (start_psymtab): Initialize the reader-specific
structure's `textlow' and `texthigh' from the new psymtab's.
* mdebugread.c (parse_partial_symbols, new_psymtab): Same.
* dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab): Use
the reader-specific `textlow' and `texthigh', not the generic
psymtab fields.
* mdebugread.c (parse_lines, parse_partial_symbols,
psymtab_to_symtab_1): Same.
* partial-stab.h: Same.
2001-10-24 17:10:18 +00:00
Andrew Cagney ce4148445e Fix -Wformat for hpux. 2001-10-24 02:53:48 +00:00
Andrew Cagney 8f236061d9 Tweeks for HP/UX and -Werror. 2001-10-24 01:19:12 +00:00
gdbadmin dcb643f1b5 *** empty log message *** 2001-10-24 00:00:34 +00:00
gdbadmin a1675ea138 *** empty log message *** 2001-10-23 00:00:32 +00:00
gdbadmin 31422c4a33 *** empty log message *** 2001-10-22 00:00:05 +00:00
Andrew Cagney d20bf2e81b Don't print ``(MI_OUT)'' at startup. 2001-10-21 19:43:41 +00:00
Andrew Cagney 17732724f3 Update makefile.in dependencies. Add header wrappers. 2001-10-21 19:20:30 +00:00
Andrew Cagney fd0407d670 Add explicit #include of "value.h". 2001-10-21 17:19:38 +00:00
Mark Kettenis 3c2fb7bd58 * infptrace.c (child_xfer_memory): Fix a few coding standards
violations.
2001-10-21 14:53:46 +00:00
Eli Zaretskii c4282e67c1 * config/djgpp/README: Fix a typo and tweak for GDB 5.1. 2001-10-21 14:21:03 +00:00
Andrew Cagney 75c9979e9a s/value_ptr/struct value */ 2001-10-21 01:57:42 +00:00
Andrew Cagney e933e53888 * cp-abi.h, hpacc-abi.c, gnu-v2-abi.c, cp-abi.c: Ditto. 2001-10-21 01:06:25 +00:00
gdbadmin f33a821352 *** empty log message *** 2001-10-21 00:00:35 +00:00
Andrew Cagney 278cd55f78 * breakpoint.h, breakpoint.c: Ditto. 2001-10-20 23:54:29 +00:00
Andrew Cagney c984738146 s/value_ptr/struct value */ 2001-10-20 22:43:26 +00:00
gdbadmin 27e4fc867b *** empty log message *** 2001-10-20 20:00:04 +00:00
Andrew Cagney f1e3ec292f * alpha-nat.c: Include <alpha/coreregs.h> instead of
<machine/reg.h>.
(fetch_osf_core_registers): Define core_reg_mapping in a way that
works on OSF5 as well as previous OSF versions.
2001-10-20 19:32:40 +00:00
Christopher Faylor d66b75d138 Revert previous erroneous checkin. 2001-10-20 05:13:45 +00:00
Christopher Faylor 83413c558c * win32-nat.c (handle_load_dll): Avoid strlwr'ing loaded DLLs or cygwin may not
be able to read them in certain situations.
2001-10-20 05:11:41 +00:00
Andrew Cagney 457174f645 Enable PowerPC simulator on native linux and netbsd. 2001-10-20 00:16:44 +00:00
Andrew Cagney 4bb5d56713 * README: Mention problems with HP/UX. 2001-10-18 04:35:35 +00:00
Andrew Cagney 03dd37c302 Functions to convert to/from CORE_ADDR and a string. Use in Insight. 2001-10-17 20:35:31 +00:00
Jason Molenda 1ba7c32c23 * symtab.c (lookup_block_symbol): Break out of linear search
if we're past the range of possible matches.

Original patch submission, with links to history/background behind it,
here:
	http://sources.redhat.com/ml/gdb-patches/2001-09/msg00120.html
2001-10-17 07:12:57 +00:00
Christopher Faylor 7470a420fc * win32-nat.c (safe_symbol_file_add_stub): Improve logic for avoiding load of
already loaded DLL.
(register_loaded_dll): Convert loaded DLL name to "posix" format or it will
confuse subsequent opening of the filename due to dos paths.
(dll_symbol_command): Pass from_tty parameter to safe_symbol_file_add.
2001-10-16 04:50:21 +00:00
Elena Zannoni 8cc1c88238 2001-10-15 Elena Zannoni <ezannoni@redhat.com>
* symtab.c (lookup_block_symbol): Update comment.
2001-10-16 03:23:35 +00:00
Andrew Cagney 1aa20aa88f * value.h (value_as_address): Rename value_as_pointer.
* eval.c, findvar.c, gnu-v2-abi.c, gnu-v3-abi.c, jv-lang.c,
jv-valprint.c, printcmd.c, stack.c, top.c, valarith.c, valops.c,
values.c: Update.
2001-10-16 01:58:07 +00:00
Andrew Cagney dbbd9c57ff 202001-10-15 Jim Ingham <jingham@inghji.apple.com>
* valarith.c (value_sub): Don't pass a raw type to
value_from_pointer, it has to go through check_typedef first.
2001-10-16 01:19:09 +00:00
Andrew Cagney 73d3c16e21 Provide a valid non-multi-arch default for INTEGER_TO_ADDRESS. 2001-10-15 21:38:44 +00:00
Andrew Cagney fc0c74b114 Add INTEGER_TO_ADDRESS to hadle nasty harvard architectures that do
funnies to integer to address conversions.
2001-10-15 18:18:30 +00:00
Mark Kettenis 3902478264 * config/s390/nm-linux.h: Don't include <signal.h>.
(lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
GET_THREAD_SIGNAL): Remove.
2001-10-14 21:04:05 +00:00
Mark Kettenis dc17571df2 * config/nm-linux.h (struct objfile): Remove forward declaration.
(linuxthreads_new_objfile): Remove prototype.
(linuxthreads_pid_to_str): Remove prototype.
(PREPARE_TO_PROCEED): Redefine in terms of
lin_lwp_prepare_to_proceed.
(struct target_waitstatus): Forward declaration.
(child_wait): New prototype.
(CHILD_WAIT): Define.
(lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
GET_THREAD_SIGNAL): Moved here from arch-specific files.
* config/alpha/nm-linux.h, config/arm/nm-linux.h,
config/ia64/nm-linux.h, config/mips/nm-linux.h,
config/powerpc/nm-linux.h: Don't include <signal.h>.
(lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
GET_THREAD_SIGNAL): Remove.
* config/i386/nm-linux.h: Likewise.
(struct target_waitstatus, child_wait, CHILD_WAIT): Remove.
* config/m68k/linux.mh, config/sparc/linux.mh (NATDEPFILES):
Remove linux-thread.o.  Add proc-service.o, thread-db.o and
lin-lwp.o.
(LOADLIBES): New variable.
2001-10-14 20:59:23 +00:00
Mark Kettenis a14bd2ea89 * config/nm-linux.h (struct objfile): Remove forward declaration.
(linuxthreads_new_objfile): Remove prototype.
(linuxthreads_pid_to_str): Remove prototype.
(PREPARE_TO_PROCEED): Redefine in terms of
lin_lwp_prepare_to_proceed.
(struct target_waitstatus): Forward declaration.
(child_wait): New prototype.
(CHILD_WAIT): Define.
(lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
GET_THREAD_SIGNAL): Moved here from arch-specific files.
* config/alpha/nm-linux.h, config/arm/nm-linux.h,
config/ia64/nm-linux.h, config/mips/nm-linux.h,
config/powerpc/nm-linux.h: Don't include <signal.h>.
(lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
GET_THREAD_SIGNAL): Remove.
* config/i386/nm-linux.h: Likewise.
(struct target_waitstatus, child_wait, CHILD_WAIT): Remove.
* config/m68k/linux.mh, config/sparc/linux.mh (NATDEPFILES):
Remove linux-thread.o.  Add proc-service.o, thread-db.o and
lin-lwp.o.
(LOADLIBES): New variable.
2001-10-14 20:42:07 +00:00
Mark Kettenis 8e4d17db0e * sparc-nat.c (fetch_core_registers): Remove redundant prototype. 2001-10-14 17:15:14 +00:00
Mark Kettenis c987d8c09d * proc-service.c (BUILD_LWP): Redefine in terms of ptid_build. 2001-10-14 11:50:39 +00:00
Mark Kettenis cacab7c477 Fix attaching to cloned processes. This fixes PR gdb/61.
* lin-lwp.c (struct lwp_info): Add new member `cloned'.
(is_cloned) Removed.
(lin_lwp_attach_lwp): Don't call stop_wait_callback.  Instead call
waitpid explicitly.  Mark the LWP as cloned if waitpid fails and
retry with __WCLONE flag.
(lin_lwp_attach): Likewise.  Warn if attaching to a cloned process.
(detach_callback): Replace use of is_cloned with explicit check on
LWP id and process id.
(stop_wait_callback): Replace use of is_cloned with check if LWP
is marked as cloned.
[CHILD_WAIT] (child_wait): New function.
(lin_lwp_wait): Replace use of is_cloned with check if LWP is
marked as cloned.  Mark newly detected LWPs as cloned if detected
by waitpid with __WCLONE flag.
(kill_wait_callback): Replace use of is_cloned with check if LWP
is marked as cloned.
* config/i386/nm-linux.h (struct target_waitstatus): Add forward
declaration.
(child_wait): Add prototype.
(CHILD_WAIT): Define.
2001-10-14 11:30:37 +00:00
Andrew Cagney 5769d3cd7d S/390 31 & 64 bit target and GNU/Linux native support.
Contributed by D.J. Barrow <djbarrow@de.ibm.com> of IBM.
* s390-nat.c, s390-tdep.c: New file.
* config/s390/nm-linux.h, config/s390/s390.mh: New file.
* config/s390/s390.mt, config/s390/s390x.mt: New file.
* config/s390/tm-linux.h, config/s390/tm-s390.h: New file.
* config/s390/xm-linux.h: New file.
* NEWS: Update.
* MAINTAINERS: Update.
2001-10-13 22:13:35 +00:00
Andrew Cagney 83e6b173e7 From 2001-07-09 D.J. Barrow <djbarrow@de.ibm.com>:
* gdbarch.sh: Fixed CALL_DUMMY_BREAKPOINT_OFFSET to check
CALL_DUMMY_BREAKPOINT_OFFSET_P.
* gdbarch.c: Regenerate.
2001-10-13 19:40:31 +00:00
Mark Kettenis 21bf60feee * thread-db.c: Fix a few formatting mistakes. 2001-10-13 15:04:02 +00:00
Corinna Vinschen 03dd63aa03 * gdb.base/maint.exp: Treat $EXEEXT as optional in output. 2001-10-13 08:36:32 +00:00
Christopher Faylor d60dc82aca Fix capitalization. 2001-10-13 04:15:40 +00:00
Christopher Faylor fefd0a378f * win32-nat.c (safe_symbol_file_add_stub): Properly initialize linked list
pointer to beginning rather than one beyond beginning.
2001-10-13 01:20:29 +00:00
Daniel Jacobowitz e88c90f2c5 2001-10-12 Daniel Jacobowitz <drow@mvista.com>
* symtab.h (struct block): (ALL_BLOCK_SYMBOLS): New macro.

        * symtab.c (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
        (make_symbol_completion_list): Likewise.
        (make_symbol_overload_list): Likewise.
        * buildsym.c (finish_block): Likewise.
        * breakpoint.c (get_catch_sals):  Likewise.
        * mdebugread.c (mylookup_symbol): Likewise.
        * objfiles.c (objfile_relocate): Likewise.
        * printcmd.c (print_frame_args): Likewise.
        * stack.c (print_block_frame_locals): Likewise.
        (print_block_frame_labels): Likewise.
        (print_frame_arg_vars): Likewise.
        * symmisc.c (dump_symtab): Likewise.
        * tracepoint.c (add_local_symbols): Likewise.
        (scope_info): Likewise.

2001-10-12  Daniel Jacobowitz  <drow@mvista.com>

        * mi-cmd-stack.c (list_args_or_locals): Use ALL_BLOCK_SYMBOLS.

2001-10-12  Daniel Jacobowitz  <drow@mvista.com>

        * generic/gdbtk-cmds.c (gdb_listfuncs): Use ALL_BLOCK_SYMBOLS.
        * generic/gdbtk-stack.c (gdb_block_vars): Likewise.
        (gdb_get_blocks): Likewise.
        (gdb_get_vars_command): Likewise.
5~
2001-10-12 23:51:30 +00:00
Jim Blandy f4846649b3 * Makefile.in (MAKEHTMLFLAGS): Remove -glossary; the most recent
version of texi2html (1.64) doesn't support this flag any more.
2001-10-12 21:10:07 +00:00
Daniel Jacobowitz 375f3d864b * minsyms.c (msymbol_hash): Use better hash function.
(msymbol_hash_iw): Likewise.  Terminate loop at '(' properly.

        * objfiles.h: Increase MINIMAL_SYMBOL_HASH_SIZE to match modern
        binaries.
2001-10-12 19:07:07 +00:00
Daniel Jacobowitz 5515947148 * printcmd.c (print_frame_args): Move symbol iteration explicitly
inside the func != NULL block.
2001-10-12 17:15:34 +00:00
Fernando Nasser 30ef99d1a8 2001-10-12 Fernando Nasser <fnasser@redhat.com>
* MAINTAINERS (Misc): Add Ian Roxborough as tcl/, tk/ and itcl/
	maintainer.
2001-10-12 15:59:11 +00:00
Christopher Faylor 02e423b9b2 * config/i386/tm-cygwin.h: include tm-i386.h instead of tm-i386v.h. This fixes
errors in "long long" handling for 'finish' and 'return' commands.
* win32-nat.c (safe_symbol_file_add_stub): Avoid adding a shared library if it
has already been loaded.
(safe_symbol_file_add_cleanup): Don't mess with stderr or we won't see any
error messages.
(safe_symbol_file_add): Ditto.
(solib_symbols_add): Make static.  Accept 'from_tty' parameter.  Pass it to
safe_symbol_file_add.
(core_dll_symbols_add): Accomodate extra solib_symbols_add parameter.
(child_solib_add): Ditto.
* win32-nat.c (handle_exception): Don't print "first chance" exceptions.
(get_child_debug_event): Continue from exceptions if !handle_exception.
2001-10-12 04:32:16 +00:00