Commit Graph

4531 Commits

Author SHA1 Message Date
Jason Molenda d951f9e4f9 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
* configure.in: Fix whitespace indentation for --help.
        * configure: Regenerated.
1999-01-05 01:42:38 +00:00
Jason Molenda d7f71863da 1999-01-04 Manuel Bouyer <bouyer@antioche.lip6.fr>
* main.c: Add --write command line option, document -w.
        * gdb.1: Document --write.
1999-01-05 00:50:49 +00:00
Jason Molenda f240337a6f 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
* configure.in: Require autoconf 2.12.1 or higher.
        * doc/configure.in: Ditto.
        * nlm/configure.in: Ditto.
        * rdi-share/configure.in: Ditto.
        * testsuite/configure.in: Ditto.
        * doc/Makefile.in: Don't hardcode $(SHELL).
        * nlm/Makefile.in: Ditto.
        * rdi-share/Makefile.in: Ditto.
        * testsuite/Makefile.in: Ditto.
1999-01-05 00:17:07 +00:00
Stan Shebs 73ec6020e5 Split the ChangeLog by year 1999-01-04 21:06:51 +00:00
Stan Shebs 64aa82eb77 * remote-vx.c (init_vx_ops, init_vx_run_ops): Remove unneeded
inits of new fields, including ref to bogus field.
	(vx_ops, vx_run_ops): Make static.
1999-01-04 21:01:58 +00:00
David Taylor 97bff53b38 delete redundant definition of STARTUP_INFERIOR_TRAPS_EXPECTED. 1999-01-04 20:21:16 +00:00
David Taylor 3e1d3d67b9 change <sys/unistd.h> to <unistd.h> and conditionalize its inclusion. 1999-01-04 20:07:59 +00:00
Stan Shebs 4c49748e82 * corelow.c (core_ops): Don't initialize statically.
(init_core_ops): New function, fills in core_ops.
	(_initialize_corelow): Use it.
1998-12-31 23:28:57 +00:00
Stan Shebs b5c7e12253 Add a sky sanitization, cosmetic changes for consistency 1998-12-31 23:25:34 +00:00
David Taylor 65b07ddca8 all remaining *.c *.h files from hp merge. 1998-12-31 21:58:30 +00:00
Stan Shebs c4b2310000 From J.T. Conklin <jtc@redbacknetworks.com>:
* i386-stub.c: Fix error string in last change.
1998-12-31 01:50:43 +00:00
Jason Molenda adcb1e06ef 1998-12-30 Jason Molenda (jsm@bugshack.cygnus.com)
* utils.c: <readline/readline.h> instead of "readline/readline.h".

        * configure.in (TERM_LIB): Search for the appropriate term library
        on the host system.
        * configure: Regenerated.
        * Makefile.in (TERMCAP): Set based on autoconf check.
        * config/*/*.mh: Don't override TERMCAP setting.
1998-12-31 01:30:52 +00:00
Mark Alexander 1b0df0adcb * value.c (value_virtual_fn_field): Handle the situation where
vtbl is a pointer to a structure instead of a pointer to an array.
1998-12-31 01:29:30 +00:00
David Taylor 4ef1f46773 hp merge changes -- too numerous to mention here; see ChangeLog and
ChangeLog-gdbtk for details.
1998-12-28 23:06:13 +00:00
Per Bothner 0bf2ba41ef * Makefile.in (READLINE_CFLAGS): Search $(READLINE_SRC)/.. rather
than $(READLINE_SRC) so #include <readline/readline.h> will work.
	* top.c:  #include <readline/history.h> instead of "history.h".
	* tracepoint.c:  Likewise.
	* mac-xdep.c:  Likewise.
1998-12-23 23:06:11 +00:00
Andrew Cagney 30ce5223b8 * defs.h (TARGET_FLOAT_FORMAT, TARGET_DOUBLE_FORMAT): Define using
TARGET_BYTE_ORDER and not target_byte_order.
1998-12-23 02:13:37 +00:00
Elena Zannoni 83e2dcc014 Tue Dec 22 10:51:33 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* config/i386/cygwin.mh (TERMCAP): define.
 	(from Chris Faylor, cgf@cygnus.com)
1998-12-22 22:10:23 +00:00
Elena Zannoni 57ac5cfff1 Tue Dec 22 10:51:33 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* top.c: specify directory name for including readline.h

	* tracepoint.c: ditto.

	* utils.c: ditto.
1998-12-22 22:06:48 +00:00
Mark Alexander 4a1b8bb277 Fix for PR 18470:
* value.c (value_virtual_fn_field): Handle the situation where
	vtbl is a pointer to a structure instead of a pointer to an array.
1998-12-21 21:34:39 +00:00
Andrew Cagney 6535b1df92 1998-12-17 J.T. Conklin <jtc@redbacknetworks.com>
* blockframe.c (get_frame_saved_regs): If the saved_regs_addr ptr
is null, ensure that saved registers are copied from the local
variable that was used to obtain them.
1998-12-20 23:04:45 +00:00
Stu Grossman 0e52a532e4 * mips-tdep.c (mips32_heuristic_proc_desc): Clear temp_saved_regs
on restart.  Fixes problem with backtracing through functions that
	use virtual frame pointers.
1998-12-19 17:56:40 +00:00
Andrew Cagney 1fe2e66a01 CARP/vr4xxx:
Rewrite ``set mipsfpu'' command so that it works with the multi-arch
framework.  For vr4111 and vr4121 disable the FPU.
1998-12-18 05:14:06 +00:00
Andrew Cagney 2e64ee9aae CARP:
Pass gdbarch_info by value to the arch init function.
Review doco.
Update mips-tdep.c
1998-12-18 03:21:45 +00:00
Andrew Cagney ff6f2f5786 CARP:
For MIPS, multi-arch MIPS_EABI, MIPS_LAST_FP_ARG_REGNUM,
MIPS_LAST_ARG_REGNUM.
1998-12-16 15:13:55 +00:00
Andrew Cagney 115c338d20 CARP:
Swap the GDB builtin types when ever the architecture changes.
1998-12-16 15:05:19 +00:00
Andrew Cagney dcf46491d8 CARP:
Add multi-arch code!
1998-12-16 15:01:03 +00:00
Andrew Cagney e81bad50a8 * gdbtypes.c (build_gdbtypes): New function.
(_initialize_gdbtypes): Call.
1998-12-16 14:57:08 +00:00
Andrew Cagney 5036d102ed * gdbarch.c (show_architecture): Use TARGET_ARCHITECTURE.
* gdbarch.h, gdbarch.c: Fix typo's. Use struct's in preference to
types.
* gdbarch.h, gdbarch.c (gdbarch_debug): Add ``set archdebug'' to
command set.
1998-12-16 01:17:50 +00:00
Stan Shebs 91e14aa9a7 Fix sanitization mistake, move gdbtk change entries to right place 1998-12-15 19:44:29 +00:00
Andrew Cagney 759181e384 config/mips/tm-*.h: (TARGET_BYTE_ORDER_DEFAULT,
TARGET_BYTE_ORDER_SELECTABLE_P): Replace TARGET_BYTE_ORDER and
TARGET_BYTE_ORDER_SELECTABLE.
1998-12-15 13:35:50 +00:00
Jason Molenda fc5b254aa6 1998-12-14 Anthony Thompson (athompso@cambridge.arm.com)
* remote-rdp.c (rdp_init): Don't discard first character on reset.
        (translate_open_mode): Define table.
        (exec_swi): Handle SWI_Clock.  SWI_Open now handles stdin/stdout.
        SWI_Write returns number of bytes not written.  SWI_Read does the
        same.  SWI_Seek should return success/failure flag.  Fix SWI_Flen.

A patch from PR 15841 for the RDP (Demon) interface.
1998-12-14 23:55:25 +00:00
Stan Shebs 6d2743e5ec 1998-12-14 J.T. Conklin <jtc@redbacknetworks.com>
* config/i386/nbsd.mh, config/m68k/nbsd.mh, config/ns32k/nbsd.mh
	(XDEPFILES): Add ser-tcp.o.
1998-12-14 23:42:19 +00:00
Andrew Cagney f0b5151401 Fix typo TM_PRINT_INSN_INFO -> TARGET_PRINT_INSN_INFO
Move gdbtk stuff to gdbtk file.
1998-12-14 23:17:16 +00:00
Andrew Cagney 456c9134ae Always compile EXTRA_MDEBUG code (even when it is disabled). 1998-12-14 04:54:13 +00:00
Andrew Cagney 14a15da3a5 Fix C-Style in init function. 1998-12-14 03:47:38 +00:00
Andrew Cagney 20dd6c3bb8 * monitor.c (monitor_printable_string): New function to convert a into
a printable representation.
(monitor_error): Call error after converting string into printable
format.
(monitor_printf{,_noecho}): If EXTRA_RDEBUG is defined, convert string
into printable form before printing.
(monitor_expect): Ditto.
(monitor_read_memory{,_single}): Call monitor_error, not error.
(monitor_read_memory): Return immediately if length is 0.
* ppcbug-rom.c (init_ppc_cmds): Fill in dump_registers field, which is
now required.
1998-12-14 03:29:52 +00:00
Andrew Cagney f7e85b1bc1 CARP:
Consolidate the semi-dynamic target system dependant GDB parameters
moving them all into a new file.
1998-12-14 02:37:16 +00:00
Andrew Cagney aaa3c096db CARP:
Re-do TARGET_PRINT_INSN_INFO, TARGET_PRINT_INSN, TARGET_ARCHITECTURE,
TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_SELECTABLE_P,
TARGET_BYTE_ORDER so that they can all be overriden.

Document.

Convert mn10300 and PPC targets.
1998-12-13 23:28:46 +00:00
Andrew Cagney 86a51f415d CARP: Mechanism to replace EXTRA_FRAME_INFO.
Add two pointers (saved_regs, extra_info) to struct frame_info.
Introduce new macro FRAME_INIT_SAVED_REGS which replaces
FRAME_FIND_SAVED_REGS.

Document.

Use in mn10300 and rs6000 targets. Fix side effects on ALPHA, MIPS,
Z8K and SPARC targets.
1998-12-12 02:50:39 +00:00
Jeff Law 0b174df89d * txvu-tdep.c (set_vxtu_prompt): Rename set_prompt. 1998-12-11 22:53:20 +00:00
Fernando Nasser a4c7e96587 1998-12-11 Fernando Nasser <fnasser@cygnus.com>
From J.T. Conklin  <jtc@redbacknetworks.com>:
        * i386-stub.c (handle_exception): Add support for 'P' command.
        (NUMREGS): New macro.
1998-12-11 21:17:56 +00:00
Jason Molenda 852b7d1192 1998-12-11 Jeff Law (law@cygnus.com)
* configure.in (with-sim-gpu2): Do not emit a -L argument without
        an associated pathname.  Link in the math library after the gpu2
        library.

Assumes that libm is around (and doesn't take advantage of the
AC_CHECK_LIB(m) that is already in configure.in), but this is a
minor point and unlikely to cause problems.
1998-12-11 18:47:33 +00:00
Andrew Cagney 8b1773ee6a Fix compiler warnings on FreeBSD. 1998-12-11 01:30:59 +00:00
Andrew Cagney d70a61e74c CARP:
More replace reg_name[] with REGISTER_NAME().
1998-12-10 23:07:24 +00:00
David Taylor 4770ff087a Start of HP merge changes to GDB. 1998-12-10 21:25:43 +00:00
Andrew Cagney 9ddf9aa9be CARP:
Rename REGISTER_NAMES{} -> REGISTER_NAME().
1998-12-10 06:10:03 +00:00
Jim Wilson e351e0fca0 Link with i960 simulator.
* config/i960/mon960.mt (SIM_OBJS, SIM): Define.
1998-12-09 06:54:51 +00:00
Stan Shebs ab796a3d17 * NEWS: Add mentions of newly-added configurations. 1998-12-09 00:51:48 +00:00
Jason Molenda ac95dc5eeb 1998-12-08 Philippe De Muyter <phdm@macqel.be>
* config/xm-aix4.h (SIGWINCH_HANDLER): Function `aix_resize_window'
        must accept a signal number as parameter.
        * config/rs6000/xm-rs6000.h (SIGWINCH_HANDLER): Ditto.
        * utils.c (initialize_utils): Give a parameter to `SIGWINCH_HANDLER'.

        * inferior.h (register_valid): Variable's type is `SIGNED char', not
        `char'.
        * findvar.c (register_valid): Ditto.

        * defs.h (make_cleanup_func): Protect parameter list by `PARAMS'.
        * gdbthread.h (unbind_target_thread_vector): Likewise.
1998-12-09 00:38:46 +00:00
Edith Epstein 09faf0c212 Tue Dec 8 15:09:44 1998 Edith Epstein <eepstein@sophia.cygnus.com>
Merged in m68k-linux patch from Andreas Schwab

        1998-12-01  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>

        * Makefile.in, configure.host, configure.tgt: Add support for
        m68k-linux.
        * config/m68k/linux.mh: New file.
        * config/m68k/linux.mt: New file.
        * config/m68k/nm-linux.h: New file.
        * config/m68k/tm-linux.h: New file.
        * config/m68k/xm-linux.h: New file.
        * gdb/m68klinux-nat.c: New file.
        * gdbserver/low-linux.c: Add support for m68k-linux.
        * gdb/config/m68k/tm-m68k.h (NUM_FREGS): New macro.
1998-12-08 21:57:35 +00:00
Edith Epstein 1994dc7cfc Tue Dec 8 15:09:44 1998 Edith Epstein <eepstein@sophia.cygnus.com>
* config/m68k/tm-m68k.h (NUM_FREGS): m68k-linux patch.
          Added NUM_FREGS macro.

        * config/m68k/xm-linux.h: m68k-linux patch. New file.

        * config/m68k/tm-linux.h: m68k-linux patch. New file.

        * config/m68k/nm-linux.h: m68k-linux patch. New file.

        * config/m68k/linux.mt: m68k-linux patch. New file.

        * config/m68k/linux.mh: m68k-linux patch. New file.

        * gdbserver/low-linux.c: m68k-linux patch. Added an ifdef
          that checks the value of __GLIBC to decide whether or
          not to include sys/reg.h.

        * m68klinux-nat.c: m68k-linux patch. New file. Note
          both m68k-tdep.c and m68klinux-nat.c contain definitions
          for supply_gregset and supply_fpregset. The definitions
          in m68k-tdep.c are valid is USE_PROC_FS is defined. Otherwise,
          the definitions in m68klinux-nat.c will be used. This is a
          bit of a hack. The supply_* routines do not belong in
          *_tdep.c files. But, there are several lynx ports that currently
          depend on these definitions.

        * configure.tgt: m68k-linux patch. Added m68*-*-linux*
          gdb_target.

        * configure.host: m68k-linux patch. Added m68*-*-linux*
          gdb_host.

        * Makefile.in: m68k-linux patch. Added compile line for
          m68klinux-nat.o
1998-12-08 20:41:19 +00:00
Jason Molenda 223a358838 1998-12-07 Jason Molenda (jsm@bugshack.cygnus.com)
* config/i386/xm-cygwin.h: Remove REQUEST_QUIT definition.
        * config/powerpc/xm-cygwin.h: Ditto.

PR 17664.

With this define in place, you can't type "q" to get out of GDB's pager
under Cygwin.
1998-12-07 23:07:17 +00:00
Jim Blandy 0bd416fe37 *** empty log message *** 1998-12-07 20:28:31 +00:00
Jason Molenda edc452d07d 1998-12-03 Jason Molenda (jsm@bugshack.cygnus.com)
* monitor.c (monitor_read_memory): Zero out pattern buffers
        before calling re_search.
        (parse_register_dump): Ditto.

PR 18049.  This bug had existed erratically since I upgraded to
the new gnu-regex.c this last summer.  The problem is mostly in
parse_register_dump; the allocated structure has some random values
in it and there is a flag set in the register_pattern structure by the
gnu-regex library which indicates that the values in the re_registers
should be trusted.

If those arbitrary contents aren't zero, gnu-regex tries to run realloc
on them and we get a core dump on some hosts for some targets when the
moon is just right.
1998-12-04 04:46:18 +00:00
Zdenek Radouch 254ba53622 FR30 updates/checkpoint. 1998-12-03 15:40:00 +00:00
Andrew Cagney 1c3cd1b020 Clean up function return types. Functions not returning values,
functions unnecessarily returning values.
1998-12-03 05:34:25 +00:00
Michael Snyder a9d0b92329 Wed Dec 2 15:11:38 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* m32r-tdep.c (decode_prologue): If no branch or push fp is found,
        but there's a stack adjust, then use that as the end of prologue.
        (m32r_skip_prologue): don't skip past the first line if there is
        line info.  (m32r_virtual_frame_pointer): new function.
        (m32r_fix_call_dummy): no return value needed.
1998-12-03 00:50:54 +00:00
Michael Snyder 55be5ef506 Wed Dec 2 15:11:38 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* tracepoint.c: Move default definition of
        TARGET_VIRTUAL_FRAME_POINTER from here to target.h.
        * target.h: Add default definition of TARGET_VIRTUAL_FRAME_POINTER.
        * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address):
        use TARGET_VIRTUAL_FRAME_POINTER to determine frame pointer.
        (gen_trace_for_expr): new argument, address of tracepoint,
        gets passed to new_agent_expr and added to struct agent_expr.
        (is_nontrivial_conversion): call to new_agent_expr now requires
        a dummy argument.  (agent_command): use get_current_frame() to
        get current PC scope; pass it to gen_trace_for_expr.
        * ax-general.c (new_agent_expr): new argument, address of
        tracepoint; store it in new field of struct agent_expr.
        * ax.h (struct agent_expr): add new field for tracepoint address.
        * ax-gdb.h: change prototypes to match above changes.
1998-12-02 23:22:58 +00:00
Doug Evans 3f235519e6 * config/fr30/tm-fr30.h (INNER_THAN): Add parameters. 1998-12-01 00:05:18 +00:00
Andrew Cagney b696009406 CARP:
Cleanup FRAME_CHAIN_VALID. Replace all macro's with functions.
1998-11-30 10:56:16 +00:00
Andrew Cagney 8743fc885f CARP:
Convert ADDR_BITS_REMOVE to a function.
1998-11-29 07:41:36 +00:00
Andrew Cagney 3a0c96a996 CARP:
Rewrite INNER_THAN so that it takes parameters.
1998-11-28 22:53:04 +00:00
Andrew Cagney 0233186932 CARP:
STEP_SKIPS_DELAY - add STEP_SKIPS_DELAY_P and rewrite use removing
  #ifdef's.
NO_SINGLE_STEP - replace with SOFTWARE_SINGLE_STEP_P +
  SOFTWARE_SINGLE_STEP.  Replace global variable one_stepped with static
  singlestep_breakpoints_inserted_p.  Cleanup infrun.c (scary!).
1998-11-27 23:35:08 +00:00
Andrew Cagney 679ce73102 CARP: Delete ABOUT_TO_RETURN across all targets. 1998-11-26 11:13:01 +00:00
Andrew Cagney 07137a112d * rs6000-tdep.c (rs6000_breakpoint_from_pc): Change big_breakpoint
and little_breakpoint to char[] from char*.
* remote-array.c (array_insert_breakpoint): Change bp_addr to
CORE_ADDR type.
1998-11-26 10:36:45 +00:00
Andrew Cagney c8623080cb CARP: --enable-build-warnings=-Werror: Fix problems stopping GDB being
canadian-crossed to host i386-cygwin.
1998-11-25 22:13:53 +00:00
Andrew Cagney 9ff152f7f5 mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint): Pass
address of bplen.
1998-11-25 09:44:57 +00:00
Gavin Romig-Koch f8c41900fc For top level:
* config.sub (mips64vr4xxx,mips64vr4xxxel): New.


For gcc:
	* config.sub (mips64vr4xxx,mips64vr4xxxel): New.
	* configure.in (mips64vr4xxx,mips64vr4xxxel): New.
	* config/mips/t-vr4xxx: New.
	* config/mips/elfb4xxx.h: New.
	* config/mips/elfl4xxx.h: New.
	* configure: Rebuilt.

For gas:
	* config/tc-mips.c (md_begin): Added mip64vr4xxx as a
	possible CPU_TARGET.

For gdb:
	* configure.tgt: Handle mips64*vr4xxx.

For ld:
	* configure.tgt: Handle mips64*vr4xxx.
1998-11-25 01:10:52 +00:00
Felix Lee 15af627cc0 * procfs.c (procfs_wait): handle syscall events first.
* procfs.c (GDB_GREGSET_TYPE, GDB_FPREGSET_TYPE): new macros.
        * config/sparc/xm-sun4sol2.h: use them.
        * core-sol2.c: don't #undef gregset_t and fpregset_t.
        * sol-thread.c: ditto.
        * sparc-tdep.c: ditto.
1998-11-24 14:51:13 +00:00
Andrew Cagney afcad54a90 CARP: *BREAKPOINT*
Convert mn10300, MIPS and powerpc/rs6000 targets to use
BREAKPOINT_FROM_PC
Delete global variable memory_breakpoint_size.  Use BREAKPOINT_FROM_PC
instead.
1998-11-24 13:49:00 +00:00
Michael Snyder e1dba9c442 Mon Nov 23 11:38:40 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* symfile.c (deduce_language_from_filename): rewrite so as to
        work from a table of filename extensions, modifiable by the user.
        (filename_language_table): new data structure.
        (set_ext_lang_command): new function for new command, "set
        extension-language".  (info_extension_language_command): new
        function for new command "info extension-languages".
        (add_filename_language, init_filename_language_table): new
        support functions for the above.
        * language.c (language_enum): new function.  Support for above.
1998-11-23 19:44:42 +00:00
Andrew Cagney 98760eab33 CARP: Convert macro definitions of USE_STRUCT_CONVENTION into target
specific functions.
1998-11-23 12:35:23 +00:00
Stan Shebs 92fb1f2eba Sat Nov 21 17:15:40 1998 Philippe De Muyter <phdm@macqel.be>
* breakpoint.c (bpstat_stop_status): Do not increment hit_count
	of breakpoint if condition is not true.
1998-11-21 20:16:49 +00:00
Stan Shebs aa8938d581 Sat Nov 21 17:15:40 1998 Philippe De Muyter <phdm@macqel.be>
* coffread.c (coff_symtab_read): Discard C_LABEL's that are not
	function entry points, to avoid getting them in the stack dump
	instead of the actual function.
1998-11-21 19:59:37 +00:00
Stan Shebs 6b29a8b13b * config/m68k/delta68.mh (NAT_FILE): Undo 1998-08-18 change;
without NAT_FILE definition, configure will assume that GDB cannot
 	run native.
	* config/m68k/nm-delta68.h (KERNEL_U_SIZE): New macro.
	* delta68-nat.c (kernel_u_size): New function.
1998-11-21 19:28:44 +00:00
Andrew Cagney 60a98b30b4 CARP:
* buildsym.c (end_symtab): Cleanup PROCESS_LINENUMBER_HOOK.
1998-11-20 00:00:24 +00:00
Geoffrey Noer 6bd87f42ef Thu Nov 19 15:21:04 1998 Geoffrey Noer <noer@cygnus.com>
* rdi-share/host.h: if compiling under Cygwin, make sure new
        preprocessor define is defined.  Define it if not.
        * rdi-share/hostchan.h: ditto
        * rdi-share/aclocal.m4: regenerate
        * rdi-share/configure: regenerate
1998-11-19 23:26:12 +00:00
Geoffrey Noer 2196638d08 Thu Nov 19 15:21:04 1998 Geoffrey Noer <noer@cygnus.com>
* rdi-share/host.h: if compiling under Cygwin, make sure new
        preprocessor define is defined.  Define it if not.
        * rdi-share/aclocal.m4: regenerate
        * rdi-share/configure: regenerate
1998-11-19 23:22:51 +00:00
Geoffrey Noer 94a919180a Thu Nov 19 14:43:44 1998 Geoffrey Noer <noer@cygnus.com>
* configure.in: switch back to checking __CYGWIN32__
        * configure: regenerate
1998-11-19 22:44:42 +00:00
Andrew Cagney a6a070be50 CARP:
* exec.c (exec_file_command): Cleanup. Replace #if
NEED_TEXT_START_END with if().
* config/pa/nm-hppah.h (NEED_TEXT_START_END): Redefine to be 1.
* config/convex/tm-convex.h (NEED_TEXT_START_END): Ditto.
* config/gould/tm-np1.h (NEED_TEXT_START_END): Ditto.
* config/a29k/tm-a29k.h (NEED_TEXT_START_END): Ditto.
1998-11-19 22:04:08 +00:00
Geoffrey Noer 1a443730ce Thu Nov 19 13:06:22 1998 Geoffrey Noer <noer@cygnus.com>
* main.c: Wait until more time has passed before calling
        new cygwin_ funcs, revert back to the cygwin32_ ones for now.
        * win32-nat.c: Ditto.
1998-11-19 21:21:34 +00:00
Andrew Cagney 206e3a8a5c Replace sys_errlist with strerror(). 1998-11-18 04:19:31 +00:00
Michael Snyder 1ba38e79f8 Wed Nov 11 15:47:00 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* procfs.c (proc_set_exec_trap): don't set PR_ASYNC or PR_FORK
        in the child process for UnixWare (causes processes forked by
        the debuggee to hang).
1998-11-18 00:22:45 +00:00
Geoffrey Noer 8adbc73e78 Mon Nov 16 14:17:05 1998 Geoffrey Noer <noer@cygnus.com>
* defs.h: if compiling under Cygwin, define __CYGWIN__ if
        __CYGWIN32__ is defined and __CYGWIN__ isn't for backwards
        compatibility.
1998-11-16 22:17:37 +00:00
Geoffrey Noer d836385e11 Fri Nov 13 00:15:08 1998 Geoffrey Noer <noer@cygnus.com>
Changes to account for name change from cygwin32 to cygwin and
        clean up Win32-related ifdefs.

        * configure.tgt: check for cygwin* instead of cygwin32.
        New cygwin gdb_target variable loses the "32".
        * configure.host: check for cygwin* instead of cygwin32.
        New cygwin gdb_host variable loses the "32".
        * configure.in: test __CYGWIN__ instead of __CYGWIN32__,
        rename gdb_cv_os_cygwin32 variable to drop the "32".  Call
        AM_EXEEXT instead of AC_EXEEXT since that isn't in a released
        autoconf yet.
        * configure: regenerate.

        * main.c: drop "32" from cygwin_ funcs, include sys/cygwin.h
          where
        cygwin path conv protos live, instead of adding a proto here
          for
        them here.
        * {main.c, ser-tcp.c, ser-unix.c, top.c}: check __CYGWIN__
        instead of __CYGWIN32__.
        * source.c: thoughout, check _WIN32 instead of WIN32.

        * config/i386/cygwin32.mh: delete.
        * config/i386/cygwin.mh: new file, was cygwin32.mh.
        * config/i386/cygwin32.mt: delete.
        * config/i386/cygwin.mt: new file, was cygwin32.mt.
        * config/i386/tm-cygwin32.h: delete.
        * config/i386/tm-cygwin.h: new file, was tm-cygwin32.h.
        * config/i386/xm-cygwin32.h: delete.
        * config/i386/xm-cygwin.h: new file, was xm-cygwin32.h.
        * config/i386/xm-windows.h: #include xm-cygwin.h now.
        * config/powerpc/cygwin32.mh: delete.
        * config/powerpc/cygwin.mh: new file, was cygwin32.mh.
        * config/powerpc/cygwin32.mt: delete.
        * config/powerpc/cygwin.mt: new file, was cygwin32.mt.
        * config/powerpc/tm-cygwin32.h: delete.
        * config/powerpc/tm-cygwin.h: new file, was tm-cygwin32.h.
        * config/powerpc/xm-cygwin32.h: delete.
        * config/powerpc/xm-cygwin.h: new file, was xm-cygwin32.h.

        * rdi-share/aclocal.m4: regenerate with aclocal.
        * rdi-share/configure: regenerate with autoconf.
        * rdi-share/{host.h, hostchan.c, hostchan.h, serdrv.c,
        * serpardr.c,
        unixcomm.c}: check __CYGWIN__ instead of __CYGWIN32__.
1998-11-13 08:16:08 +00:00
John Metzler 9ee5984468 * remote.c (remote_get_threadinfo) : Support for remote
multithread debugging.
        (remote_get_threadlist) : get a partial list of threads
        (remote_threadlist_iterator) : Step through all the threads
        (init_remote_threadtests) : Optional builtin unit test commands.

        * thread.c (bind_target_thread_vector) : Implementa a more dynamic
        way of accessing target specific thread info functions than
        FIND_NEW_THREADS.
        (target_thread_info) : Function to get extended thread information.

        * gdbthread.h : Export internal data structures corresponding to
        external detailed thread info response. This is more like a 'ps'
        command than what might be expected of host based threads. This
        is for embedded systems.
1998-11-13 01:23:07 +00:00
Dave Brolley 83da26349f Mon Nov 9 12:00:36 1998 Dave Brolley <brolley@cygnus.com>
* config/fr30/fr30.mt: New file.
	* config/fr30/tm-fr30.h: New file.
1998-11-09 17:02:20 +00:00
Jim Wilson e5fddd378d Patches to fix linux-x-i960-vxworks5.0 build failure.
* remote-vx.c (net_read_registers, net_write_registers, vx_xver_memory,
	vx_resume, vx_attach, vx_detach, vx_kill): Change errno to errno_num.
	* vx-share/xdr_ptrace.c (xdr_ptrace_return): Likewise.
	* vx-share/xdr_ptrace.h (struct ptrace_return): Likewise.
1998-11-06 03:02:44 +00:00
Dave Brolley 7e6c86c2e3 Wed Nov 4 18:44:31 1998 Dave Brolley <brolley@cygnus.com>
* configure.tgt: Add fr30-*-elf*.
1998-11-05 21:20:58 +00:00
Christopher Faylor 3cee93ac7a * top.c (gdb_readline): Allow CRLF line termination on systems
which define CRLF_SOURCE_FILES.
* win32-nat.c: 1) Add thread support, 2) fix ability to attach to
a running process, and 3) implement limited support for cygwin
signals.
(thread_rec): New function.
(child_add_thread): Ditto.
(child_init_thread_list): Ditto.
(child_delete_thread): Ditto.
(do_child_fetch_inferior_registers): Ditto.
(do_child_store_inferior_registers): Ditto.
(handle_output_debug_string): Ditto.
(child_fetch_inferior_registers): Use do_* function to perform
operation.
(child_store_inferior_registers): Ditto.
(child_continue): Ditto.
(child_thread_alive): Ditto.
(cygwin_pid_to_str): Ditto.
(handle_load_dll): Reorganize, add first attempt at reading
dll names from attached processes.  Change info messages to provide
more information when dll is already loaded.
(handle_exception): Changes mandated by new thread-aware structures.
(child_wait): Track thread creation/destruction.  Handle cygwin
signals.
(child_create_inferior): Ditto.
(child_resume): Ditto.
(child_kill_inferior): Ditto.  Close child process handle to avoid a
handle leak.
(child_ops): Fill out child_ops fields that deal with threads.
* config/i386/tm-cygwin32.h: Declare function and macro needed
for converting a cygwin "pid" to a string.
* config/i386/xm-cygwin32.h: define HAVE_SIGSETMASK as 0 since
sigsetmask is not defined in cygwin.
1998-11-05 14:08:48 +00:00
Christopher Faylor 8015bd27ec * win32-nat.c: Remove obsolete PPC conditionals. 1998-11-05 13:41:40 +00:00
Jim Wilson 66393f0e7c Fix mn10200 build failure on redhat 5.0 linux.
* c-exp.y (parse_number): Check TARGET_LONG_LONG_BIT when setting
	high_bit to avoid undefined negative shift.
1998-11-03 20:28:12 +00:00
Geoffrey Noer b93f016bf0 Mon Nov 2 15:26:33 1998 Geoffrey Noer <noer@cygnus.com>
* configure.in: Check cygwin* instead of cygwin32*.
        * configure: regenerate
1998-11-02 23:28:59 +00:00
Michael Snyder 2e7eeba99d Thu Oct 29 10:04:20 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
[Support for trace debugging: registers that were not collected.]
        * remote.c (remote_fetch_registers): accept 'xxxx' in the register
        packet, with the meaning "register value is not available".
        Set register_valid to -1, which will connote "no value available".
        * findvar.c (read_relative_register_raw_bytes): return failure if
        register_valid == -1.  (value_of_register): return failure if
        register_valid == -1.  (read_var_value): return error if
        value_of_register fails for a register variable.
        (value_from_register): return failure if register_valid == -1.
        * eval.c (evaluate_subexp_standard): return error if
        value_of_register fails for a register used in an expression.
        * infcmd.c (do_registers_info): display "value not available"
        for registers for which register_valid == -1.

        * tracepoint.c (set_raw_tracepoint): just save the filename as is
        from the symbol table, rather than trying to prepend the dir name.
        Also save the bfd section.  (tracepoints_info): use the section
        when looking up the function name.
        * tracepoint.h: add section field to tracepoint struct.
1998-10-29 18:07:01 +00:00
Frank Ch. Eigler af3711e6b3 * peripheral part of sky->devo merge
* patch approved by shebs
Wed Oct 28 12:33:52 EST 1998  Frank Ch. Eigler <fche@cygnus.com>
	* configure.in: Accept both -skyb- and -sky- for
	--with-sim-funit/gpu2 options.
	* configure: Rebuilt.
1998-10-28 16:08:03 +00:00
Mark Alexander c0351c0f6d * sparcl-tdep.c (send_resp, sparclite_serial_start,
sparclite_serial_write): Use remote_timeout instead of hardcoded
	two second timeout.
	(download): Fix adjustment of a.out load addresses.
1998-10-28 16:08:02 +00:00
Andrew Cagney b9a9cde40b Unify (well almost) --enable-build-warnings configuration option
across GDB and SIM directories.
1998-10-28 02:01:32 +00:00
Andrew Cagney 63a0e6b527 Replace syserr_list with more portable strerror(). 1998-10-27 03:42:14 +00:00
Andrew Cagney cf9d0fd980 * config/rs6000/aix4.mh (NATDEPFILES): Move xcoffread.o from here.
* config/rs6000/aix4.mt (TDEPFILES): To here.
* rdi-share/unixcomm.c: Provide definitions of SERPORT and PARPORT on
  BSD hosts.
1998-10-26 03:26:00 +00:00
Felix Lee 61e6bcc839 * core-sol2.c: #include <sys/types.h>, for sol2.7 weirdness. 1998-10-17 17:40:35 +00:00
Michael Snyder a93213bcf5 Fri Oct 16 15:31:38 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* m32r-tdep.c (decode_prologue): Return failure if we reach
        the end of the function without finding the end of the prologue.
1998-10-16 22:35:41 +00:00
Jason Molenda 24418cfbac 1998-10-16 Jason Molenda (jsm@bugshack.cygnus.com)
* command.c copying.c copying.awk core-aout.c core-regset.c
          corelow.c dcache.c i386-tdep.c i386v4-nat.c i387-tdep.c
          infcmd.c infptrace.c infrun.c remote.c solib.c symfile.c
          symmisc.c valarith.c: Add prototypes.

        * defs.h: Add prototype for utils.c::do_run_cleanups.

        * gdbtypes.c: Add prototypes.
        (make_pointer_type): Add braces to remove nested if-else ambiguity.
        (make_reference_type): Ditto.

        * printcmd.c (printf_command): Initialize 'f' and 'string' at
        function startup to suppress possibly-used-before-initialized warning.

        * remote-utils.c: Add prototypes.
        (sr_pollchar): Add braces to remove nested if-else ambiguity.

        * ser-tcp.c: Add prototypes.
        (wait_for): Add braces to remove nested if-else ambiguity.
        (tcp_readchar): Ditto.

        * ser-unix.c: Add prototypes.
        (get_tty_state): Don't define errno here.

        (get_tty_state): Don't define errno here.
        (hardwire_readchar): Only define 't' if we are compiling in a Cygwin
        environment.

        * symtab.c: Add prototypes.
        (find_methods): Add braces to remove nested if-else ambiguity.
        (search_symbols): Set 'i' to an initial value to suppress a
        possibly-used-before-initialized warning.

        * valops.c: Add prototypes.
        (value_cast): Set 'eltype2' to an initial value to suppress a
        possibly-used-before-initialized warning.
        (value_of_variable): Add braces to remove nested if-else ambiguity.
        (value_of_this): Ditto.

        * valprint.c: Add prototypes.
        (print_floating): Add braces to remove nested if-else ambiguity.


Looks like a big change, but it is really just a lot of small stuff.

In the cases where GCC was flagging a possible use-before-initialized
warning on variables, it turned out that these were being used properly
but GCC couldn't see that.
1998-10-16 21:45:06 +00:00
Stan Shebs 7bfe11e286 * tm-sp64.h (SETUP_ARBITRARY_FRAME, RAME_SPECIFICATION_DYADIC):
Remove, nevermore used.
1998-10-16 02:53:37 +00:00
Andrew Cagney dd87762571 command.c: Include "wait.h" after, rather than before, <wait.h>.
"wait.h" was defining all WIF* macro's instead of filling in those
that <wait.h> missed.  Stops heaps of warnings from <wait.h>
re-defining WIF*s defined in "wait.h".
1998-10-15 06:59:40 +00:00
Felix Lee 37f58dce03 * sol-thread.c (ps_pstop, etc): simple test for proc_service.h
version didn't work for sol2.6; pushed it to autoconf.
        * configure.in (gdb_cv_proc_service_is_old): new test.
        * acconfig.h (PROC_SERVICE_IS_OLD): new define.
        * configure, config.in: regenerate.
1998-10-14 01:15:01 +00:00
Jason Molenda ad3b8c4a1a 1998-10-13 Jason Molenda (jsm@bugshack.cygnus.com)
* blockframe.c (find_pc_sect_partial_function): Add braces to avoid
        possible nested-if confusion.
        * breakpoint.c (breakpoint_here_p): Ditto.
        (breakpoint_inserted_here_p): Ditto.
        (breakpoint_thread_match): Ditto.

        * gnu-regex.c: Define _REGEX_RE_COMP only if it isn't already defined.
        * gnu-regex.h: Define _REGEX_RE_COMP to pick up old compatability
        prototypes.

        * symtab.h: Add prototype for _initialize_source.
        * value.h: Add prototype for _initialize_value.

        * defs.h: Include sys/types.h or stddef.h to get size_t.
        (make_cleanup): Add make_cleanup_func typedef and switch to using
        a prototype for this function.
        (mfree): Add prototypes for mmalloc, mrealloc, mfree if we aren't
        using mmalloc.

        * ax-gdb.c breakpoint.c coffread.c corelow.c dbxread.c dwarf2read.c
        dwarfread.c elfread.c eval.c exec.c gdbtk-cmds.c gdbtk.c infcmd.c
        infrun.c mipsread.c nlmread.c os9kread.c parse.c printcmd.c symfile.c
        symmisc.c symtab.c thread.c top.c tracepoint.c typeprint.c valops.c:
        Cast parameters passed to make_cleanup to use the new
        make_cleanup_func typedef.


More warning cleanups.  There are still a bunch of places where the first
argument to make_cleanup is not cast to (make_cleanup_func); these are
either due to the function fitting the make_cleanup_func specification
already (e.g. free()) or they are in files that weren't compiled when
I did my make on a Linux native system.  Bwahahaha.  You can see them
like this:

grep make_cleanup\  * | grep -v make_cleanup_func

I'll surely go back and clean up the remaining suspicious calls in
GDB one of these days. :-)
1998-10-14 01:15:00 +00:00
Jason Molenda 6e47b25142 Whoa, somehow this ChangeLog entry didn't get committed along with the
actual changes.  Here is the text:
1998-10-12  Jason Molenda  (jsm@bugshack.cygnus.com)

        * Makefile.in (AWK): Unused; remove.
        * configure.in: Remove unused autoconf checks for MINIX, memcpy,
        poll, select, strings.h.
        * config.in: Regenerated.
        * configure: Regenerated.
1998-10-13 22:18:49 +00:00
Felix Lee bbee94c77c * sol-thread.c (ps_pstop, etc): different solaris versions have
slightly different prototypes in proc_service.h; compensate.
1998-10-13 00:55:20 +00:00
Jason Molenda 1dee2761ad 1998-10-12 Jason Molenda (jsm@bugshack.cygnus.com)
* configure.in: Check for sys/debugreg.h, asm/debugreg.h.
        * i386v-nat.c: Include asm/debugreg.h, sys/debugreg.h if it is not
        present.

This is to work around a conflict where the Linux 2.1.x kernel and glibc
2.0.x are not in sync; including <sys/debugreg.h> will result in an error.
With luck, these losers will get their act together and we can trash
this hack in the near future.
1998-10-13 00:35:48 +00:00
Peter Schauer b0a5badb69 * dwarf2read.c (dwarf2_build_psymtabs_hard): Do not adjust the
address range of a compilation unit without children.

	* mdebugread.c (parse_partial_symbols):  Fix handling of stabs
	continuations, use xmalloc and xrealloc.
1998-10-11 19:54:57 +00:00
Mark Alexander c6d28b22da * rs6000-tdep.c: Don't include tm.h twice. 1998-10-10 01:17:07 +00:00
Keith Seitz d367c7b447 * main.c (main): Remove calls to {pre,post}_add_symbol_hooks.
There should be sufficient information/hooks now to eliminate
        this hack.

        * exec.c (file_command): Add a new hook here to inform ui's
        when the exec file has changed. Adding it here allows the
        ui to be informed after symbol reading.

        * gdbcore.h: Add declaration of file_changed_hook.
1998-10-08 23:04:53 +00:00
Mark Alexander 70423641d9 * rs6000-tdep.c (get_saved_register): Define only if
USE_GENERIC_DUMMY_FRAMES is defined.
1998-10-08 15:59:23 +00:00
Jason Molenda 87feff9dab 1998-10-06 Jason Molenda (jsm@bugshack.cygnus.com)
Eliminate a few warnings from the compiler.
        * breakpoint.h: Add prototype.
        * breakpoint.c (do_enable_breakpoint): cast mem_cnt, i to (void).
        * configure.in: Check if strdup declaration is necessary.
        * configure: Regenerated.
        * defs.h: Add prototypes.
        * gdb_string.h: Only define strdup if necessary.
        * gdbthread.h: Add prototypes.
        * printcmd.c: Add prototyptes.
        (disassemble_command): Remove unused variable 'section'.
        * symtab.c: Add prototypes.
        * symtab.h: Include gnu-regex.h, add prototype.
        * thread.c: Add prototype.
1998-10-06 22:24:40 +00:00
Stan Shebs ee31ae2284 From David Purves <purves@apogee.com>:
* stabsread.c (rs6000_builtin_type): Create a complex float instead
	of an error.
	(read_sun_floating_type): Similarly.
	(read_range_type): Create a complex float if self_subrange is
 	true.
1998-10-06 02:52:31 +00:00
Stu Grossman 242c0d8180 * c-lang.c (emit_char c_printchar c_printstr), c-lang.h (c_printstr)
ch-lang.c (chill_printstr chill_printchar) c-valprint.c (c_val_print)
	ch-valprint.c (chill_val_print) expprint.c (print_subexp) f-lang.c
	(f_printstr f_printchar emit_char) f-valprint.c (f_val_print) jv-lang.c
	(java_printchar java_emit_char) jv-valprint.c (java_value_print
	java_val_print) language.c (unk_lang_printchar unk_lang_printstr
	unk_lang_emit_char) language.h (struct language_defn LA_PRINT_STRING
	LA_EMIT_CHAR) m2-lang.c (m2_printstr m2_printchar emit_char) printcmd.c
	(print_formatted) scm-lang.c (scm_printstr) valprint.c
	(val_print_string) value.h (val_print_string):  Add emit_char routines
	to language_desc struct to allow finer control over language specific
	character output issues.  Add character width arg to printstr routines
	to allow handling of wchar_t/Unicode strings.  Fix c_printstr to handle
	wide characters.  Supply width argument to LA_PRINT_STRING and
	val_print_string.

	* jv-lang.c (java_object_type dynamics_objfile java_link_class_type
	get_dynamics_objfile get_java_object_type) jv-lang.h
	(get_java_object_type):  Make lots of things static.

	* expprint.c (dump_prefix_expression dump_subexp):  Move opcode name
	printing to common routine (op_name).
	* (dump_subexp):  Add support for OP_SCOPE.
1998-10-05 19:42:04 +00:00
Stan Shebs bb9e536843 Search and destroy; kill references to WinGDB bits.
* configure.host (i[3456]86-*-windows): Remove, no longer used.
	* mswin: Remove directory, no longer used.
1998-10-02 23:33:15 +00:00
Fernando Nasser 2d24a02138 Fri Oct 2 18:52:20 1998 Fernando Nasser <fnasser@cygnus.com>
* sol-thread.c: Fixed prototypes and calls to supply_fpregset and
        fill_fpregset
PR 17053
1998-10-02 22:57:12 +00:00
Keith Seitz 80baea8aa5 * remote.c (remote_interrupt): Rewrite to use remote_stop.
(remote_interrupt_twice): Remove. remote_stop now handles it.
        (remote_stop): New function which handles interrupting the
        remote target so that CLUI and GUI use the same core functions
        to achieve the same goal.
        (remote_wait): Change to handle remote_stop properly.
        [interrupted_already]: New static global to help remote_stop.
        [remote_ops, extended_remote_ops]: Add remote_stop for to_stop member.

        * target.c: Rename static function "ignore" to "target_ignore" and
        export it so that gdb can determin if some target vector member is
        actually not defined. Replace all occurances of ignore.

        * target.h: Export target_ignore.
1998-10-02 19:54:42 +00:00
Peter Schauer 47b8a5cef3 * target.c (target_xfer_memory): Handle requests with zero
transfer length right away.

	* values.c (unpack_double):  Set up code, length and signedness of
	type _after_ checking for typedef.
1998-10-02 11:02:00 +00:00
Frank Ch. Eigler 6ee2da947e * Fix for PR 16567, brought over from d30v branch.
Thu Oct  1 15:39:27 EDT 1998 Frank Ch. Eigler <fche@cygnus.com>
	* breakpoint.c (bpstat_stop_status): Do not consider an
	untripped watchpoint as a "hit".
1998-10-01 11:48:25 +00:00
Andrew Cagney c85a8f0003 More replacing "exec" with "executable". 1998-10-01 11:41:41 +00:00
Andrew Cagney b8464c1539 Replace "exec" with "executable" in messages. 1998-10-01 11:19:11 +00:00
Keith Seitz 69da960729 Merge with armelf980813:
* rdi-share/unixcomm.c: If using cygwin32, also use the SERPORT and
        PARPORT defines for win32.
        (Unix_MatchValidSerialDevice): For cygwin32, valid serial port names
        start with "com", not "/dev/tty".
        (Unix_OpenSerial): Do not use O_NONBLOCK on cygwin32.

        * rdi-share/devsw.c (DevSW_Close): Free the device's state (SwitcherState)
        so that the device may be reopened.

        * remote-rdi.c (mywritec): Send all output through gdb's *_unfiltered
        functions, ignoring non-ASCII chars, so that non-tty UI's can snarf
        the output from fputs_hook.
        (mywrite): Ditto.
        (arm_rdi_open): Set inferior_pid.
        (arm_rdi_detach): Pop the target off the target stack so that
        users can attach and detach multiple times.
        (arm_rdi_close): Close the opened device and reset inferior_pid, too.
1998-09-25 19:04:46 +00:00
Jason Molenda 4817b40893 1998-09-24 Jason Molenda (jsm@bugshack.cygnus.com)
* configure.in: Change --enable-warnings to --enable-build-warnings.
        * configure: Updated.
1998-09-25 03:04:03 +00:00
Jason Molenda e3009a74f4 1998-09-24 Jason Molenda (jsm@bugshack.cygnus.com)
* configure.in (WARN_CFLAGS): Add -Wmissing-prototypes.
        * configure: Regenerated.
1998-09-25 01:30:46 +00:00
Jason Molenda ba68ad5701 1998-09-24 Jason Molenda (jsm@bugshack.cygnus.com)
* configure.in: Add --enable-warnings.
        Adjust whitespace of other --with and --enable options so that
        configure --help lines up correctly.
        * aclocal.m4: Ditto.
        * Makefile.in (WARN_CFLAGS): Add.  Set by configure.
        * configure: Regenerated.
1998-09-25 01:27:47 +00:00
Stan Shebs f1f8c637ae * remote-rdi.c: Fix formatting, remove some commented-out code.
(init_rdi_ops): Omit needless initializations.
1998-09-24 22:48:48 +00:00
Andrew Cagney 8456141bb2 Allow full 64 bits of an address to be specified in an `M' or `n' packet.
Add backward compatibility variable `set remoteaddresssize' to handle
regressions.
1998-09-23 08:31:50 +00:00
Andrew Cagney f8059b97e7 * remote.c (_initialize_remote, packet_command, print_packet): Pretty
* print code.
Delete reference to EMC!
1998-09-23 08:12:14 +00:00
Andrew Cagney abf80d3b9c * remote.c (packet_command): Test REMOTE_DESC to determine if remote
connection is open.
1998-09-23 08:06:50 +00:00
Mark Alexander 0ec1e44d3d Patch from Dawn Perchik <dawn@cygnus.com>:
* rs6000-tdep.c (pop_frame): Handle generic dummy frames.
	(push_arguments): Likewise.
	(frame_saved_pc): Likewise.
	(rs6000_frame_chain): Likewise.
	(ppc_push_return_address): New function.
	(get_saved_register): New function.
	* config/powerpc/tm-ppc-eabi.h: Add generic dummy frame macros.
1998-09-23 05:41:38 +00:00
Stu Grossman 7b46dd00e4 * defs.h utils.c (fputc_filtered): New function. Does the obvious...
* jv-lang.c (java_printchar):  Fix output of chars > 0xff.  Fold
	java_emit_char into java_printchar.
	* language.h (PRINT_LITERAL_FORM):  Reformat for readability.
1998-09-22 02:34:38 +00:00
Nick Clifton a63e37257f Support big endian as well as little endian breakpoints. 1998-09-21 21:39:41 +00:00
Ron Unrau 3dc96daa2d * incorporate SKY-B changes (makes dual maintenance easier).
* txvu-tdep.c (check_overlap): new function to guarantee that
          overlays are either mapped or unmapped in their entirety.
        * txvu-tdep.c (compress_blockvector): compress blockvectors correctly
1998-09-21 05:11:13 +00:00
Peter Schauer d2fce7f74c * sol-thread.c (sol_thread_notice_signals): Use PIDGET when
passing pid down to procfs_notice_signals.
1998-09-18 14:57:16 +00:00
Stu Grossman 082a0803b1 * stabsread.c (resolve_symbol_reference): Return 1 on success, 0 on
failure.
	* (define_symbol):  Check return value from resolve_symbol_reference,
	and drop symbol if it fails.
1998-09-16 21:59:01 +00:00
Nick Clifton 9d561e1e94 prevent multiple attempts at closing remote connection. 1998-09-15 21:03:26 +00:00
Andrew Cagney b2d5581361 Use value_at_lazy() to examine memory values. For x/i this is very
important as it stops the specified address being fetched twice -
once by value_at() and once somewhere in the disassembler.
1998-09-15 07:50:31 +00:00
Michael Snyder 4a8051a834 Sun Sep 13 01:34:59 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* blockframe.c (find_pc_sect_partial_function): use bfd section
	  of msymbol for end of section comparison.
1998-09-13 08:37:08 +00:00
Michael Snyder 74c1b0ba6b Fri Sep 11 14:02:49 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* tracepoint.c: clean up several unused variables and such.
1998-09-11 21:03:29 +00:00
Zdenek Radouch 05f1989d85 Fri Sep 11 12:38:34 EDT 1998 Zdenek Radouch (radouch@cygnus.com)
* arm-tdep.c (arm_push_arguments): fixed frame construction
1998-09-11 16:40:04 +00:00
Michael Snyder 6a5c768569 Thu Sep 10 20:51:23 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* mn10300-tdep.c (mn10300_analyze_prologue): guard against NULL.
1998-09-11 03:52:21 +00:00
Stan Shebs d7d7dd1b5a More avoidance of writing documentation in the internals manual.
* dbxread.c (IGNORE_SYMBOL): Remove definition, is never used.
	* os9kread.c: Remove comment mentioning IGNORE_SYMBOL.
1998-09-10 02:58:19 +00:00
Ron Unrau 253ceee6d0 Merges from SKY branch:
* blockframe.c(find_pc_sect_partial_function): look for min syms in
          the same section when trying to guess the end of a function.
        * symfile.c(list_overlays_command): use print_address_numeric
        * remote-sim.c: export simulator_command
        * tm-r5900.h: add COP0 registers
        * txvu-tdep.c: printvector and printvector-order commands
        * tm-txvu.h: add COP0 registers
        * mips-tdep.c: use NUM_CORE_REGS
1998-09-09 17:41:59 +00:00
Jason Molenda fc4109089c 1998-09-08 Jason Molenda (jsm@bugshack.cygnus.com)
* breakpoint.c (bpstat_stop_status):  Declare a bp match if the
        current fp matches the bp->fp OR if the current fp is less than
        the bp->fp if we're looking at a bp_step_resume breakpoint.

PR 15992.

With a bp_step_resume type breakpoint, the frame pointer check exists in
case we recurse and execute the same text section--we want to not stop
there because it would confuse the user.  So gdb checks to see that the
frame pointer matches the one recorded in the breakpoint.

If the current frame pointer is less than the frame pointer recorded in
the breakpoint, then something odd is happened and we should declare that
we're at the breakpoint so that we clear it out.

This happens in Purify instrumented executables on PA systems, at least.
They insert some calls out to Purify code in the function epilogue and
it confuses GDB (which assumes that the frame pointer does not move
around through the entire execution of a function).
1998-09-09 04:16:53 +00:00
Stan Shebs 1f926de145 Cleanup opportunity discovered while updating internals manual.
* symtab.h (struct symtab): Remove EXTRA_SYMTAB_INFO hook,
	not currently used.
	* symfile.c (allocate_symtab): Deprecate use of
	INIT_EXTRA_SYMTAB_INFO here.
1998-09-09 02:48:11 +00:00
Stan Shebs da5328aeaf * README: Update remote debugging and testsuite info. 1998-09-04 22:54:30 +00:00
Mark Alexander 11ac795258 * config/mn10300/tm-mn10300.h (FP_REGNUM): Redefine to be a
pseudo-register, not the same as a3.
	(D2_REGNUM, D3_REGNUM, A2_REGNUM, A3_REGNUM): Define.
	* mn10300-tdep.c (fix_frame_pointer): New function.
	(set_movm_offsets): Use register number macros instead of
	hard-coded constants.
	(mn10300_analyze_prologue): Fix to handle redefinition of FP_REGNUM.
	(mn10300_frame_chain):  Fix to handle redefinition of FP_REGNUM;
	use register number macros instead of hard-coded constants;
	add missing parameter to call of mn10300_analyze_prologue.
	(mn10300_frame_saved_pc): Use register number macros instead of
	hard-coded constants.
1998-09-03 22:59:13 +00:00
Stan Shebs 3fe41381a6 Killed the clone 1998-09-03 21:54:38 +00:00