external/binutils.git
26 years agoWed Dec 3 16:48:20 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
Michael Snyder [Thu, 4 Dec 1997 00:48:56 +0000 (00:48 +0000)]
Wed Dec  3 16:48:20 1997  Michael Snyder  (msnyder@cleaver.cygnus.com)

        * rltty.c: fix typos.

26 years agoMissing change log entry.
Andrew Cagney [Wed, 3 Dec 1997 22:54:44 +0000 (22:54 +0000)]
Missing change log entry.

26 years ago * tracepoint.c: add declaration for x_command
Keith Seitz [Wed, 3 Dec 1997 20:45:12 +0000 (20:45 +0000)]
   * tracepoint.c: add declaration for x_command

       * printcmd.c (x_command): remove static declaration

26 years agoWed Dec 3 12:00:42 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
Michael Snyder [Wed, 3 Dec 1997 20:03:46 +0000 (20:03 +0000)]
Wed Dec  3 12:00:42 1997  Michael Snyder  (msnyder@cleaver.cygnus.com)

        * tracepoint.c (finish_tfind_command): call do_display so that
        auto-displays are updated by tfind.  Also, keep track of frame
        and current-function so that tfind behaves like stepping (only
        show the stack frame if we step into a new function or return).

26 years agofixes for debugging threaded core files. Previously gdb would find the
David Taylor [Wed, 3 Dec 1997 19:30:06 +0000 (19:30 +0000)]
fixes for debugging threaded core files.  Previously gdb would find the
kernel threads but would get errors on each of the user threads that wasn't
currently assigned to a kernel thread.  PR's gdb/13803 (and gdb/13618).

26 years agoAdd v850 directory to keep list
Nick Clifton [Wed, 3 Dec 1997 18:16:22 +0000 (18:16 +0000)]
Add v850 directory to keep list

26 years ago* d10v_sim.h (SEXT56): Define.
Andrew Cagney [Wed, 3 Dec 1997 08:03:33 +0000 (08:03 +0000)]
* d10v_sim.h (SEXT56): Define.
* simops.c (OP_4201): For "rac", sign extend 56 bit value before
it is shifted.
* d10v_sim.h (MAX32, MIN32, MASK32, MASK40): Re-define using
SIGNED64 macro.

26 years agoBrought up to date with respect to the branch
Nick Clifton [Wed, 3 Dec 1997 01:13:08 +0000 (01:13 +0000)]
Brought up to date with respect to the branch

26 years ago * interp.c (sim_resume): Call do_2_short with LEFT_FIRST or
Fred Fish [Tue, 2 Dec 1997 23:13:56 +0000 (23:13 +0000)]
* interp.c (sim_resume): Call do_2_short with LEFT_FIRST or
RIGHT_FIRST, as appropriate, instead of hardcoded ints that
don't match enum values.
PR 13496

26 years agoTue Dec 2 14:53:09 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
Michael Snyder [Tue, 2 Dec 1997 22:55:04 +0000 (22:55 +0000)]
Tue Dec  2 14:53:09 1997  Michael Snyder  (msnyder@cleaver.cygnus.com)

        * tracepoint.c: make "tdump" command handle literal memranges.

26 years agoTue Dec 2 11:34:48 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
Michael Snyder [Tue, 2 Dec 1997 19:36:26 +0000 (19:36 +0000)]
Tue Dec  2 11:34:48 1997  Michael Snyder  (msnyder@cleaver.cygnus.com)

        * tracepoint.c: use "lookup_cmd" to parse actions commands
        (thus allowing unambiguous prefixes and aliases).

26 years agoAdd support for Thumb target
Nick Clifton [Tue, 2 Dec 1997 18:30:35 +0000 (18:30 +0000)]
Add support for Thumb target
Restore underscore at the start of user labels.

26 years agoAdd call to disasm_symaddr()
Nick Clifton [Tue, 2 Dec 1997 18:26:14 +0000 (18:26 +0000)]
Add call to disasm_symaddr()

26 years agoAdd new disassmebler function prototype: disasm_symaddr()
Nick Clifton [Tue, 2 Dec 1997 18:23:55 +0000 (18:23 +0000)]
Add new disassmebler function prototype: disasm_symaddr()
Add new compile time flag: COFFARM

26 years agoTue Dec 2 10:14:15 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
Michael Snyder [Tue, 2 Dec 1997 18:22:16 +0000 (18:22 +0000)]
Tue Dec  2 10:14:15 1997  Michael Snyder  (msnyder@cleaver.cygnus.com)

        * tracepoint.c: move prototype of validate_actionline(), and
        make it consistent with the function declaration.

26 years agoAdd support for displaying disassembled Thumb instrucitons.
Nick Clifton [Tue, 2 Dec 1997 18:20:31 +0000 (18:20 +0000)]
Add support for displaying disassembled Thumb instrucitons.

26 years agoAdd support for Thumb target.
Nick Clifton [Tue, 2 Dec 1997 18:17:13 +0000 (18:17 +0000)]
Add support for Thumb target.

26 years ago * windres.h (ESCAPE_*): Define standard escape sequences.
Ian Lance Taylor [Tue, 2 Dec 1997 18:11:02 +0000 (18:11 +0000)]
* windres.h (ESCAPE_*): Define standard escape sequences.
* rclex.l (handle_quotes): Handle standard escape sequences.  Warn
about an unrecognized escape character.
* windres.c (unicode_print): Print standard escape sequences.
* rcparse.y (acc_event): Initialize $$.next.
* resbin.c (bin_to_res_menuitems): Don't set MENUITEM_POPUP or
MENUITEM_ENDMENU in the menu item flags.
(bin_to_res_accelerators): Allocate a structure (the old code
never worked).
(res_to_bin_accelerator): Correct the test for setting ACC_LAST.
(res_to_bin_dialog): Save the extended style rather than saving
the style twice.  Remove useless shadowing length variable.  Set
the length of control data correctly.
* resrc.c (write_rc_dialog): Don't print the class or menu if the
string length is zero.

26 years agoAdd support for Thumb target
Nick Clifton [Tue, 2 Dec 1997 18:10:44 +0000 (18:10 +0000)]
Add support for Thumb target

26 years agoDisplay nop pseudo ops alongside equivalent disassembly.
Nick Clifton [Tue, 2 Dec 1997 17:56:03 +0000 (17:56 +0000)]
Display nop pseudo ops alongside equivalent disassembly.

26 years ago * configure (GDB_TK): add all-libide to dependency list
Keith Seitz [Tue, 2 Dec 1997 15:52:37 +0000 (15:52 +0000)]
    * configure (GDB_TK): add all-libide to dependency list

        * Makefile.in: remove sanitization for ALL libide references

26 years agoRemove libide from sanitization and allow it to be configured everywhere
Michael Meissner [Tue, 2 Dec 1997 14:39:17 +0000 (14:39 +0000)]
Remove libide from sanitization and allow it to be configured everywhere

26 years agoRemove libide from sanitization and allow it to be configured everywhere
Michael Meissner [Tue, 2 Dec 1997 14:37:22 +0000 (14:37 +0000)]
Remove libide from sanitization and allow it to be configured everywhere

26 years agoFor "sub", compute carry by comparing inputs.
Andrew Cagney [Tue, 2 Dec 1997 07:59:52 +0000 (07:59 +0000)]
For "sub", compute carry by comparing inputs.
Test.

26 years agoFor "msbu", subtract unsigned product from ACC,
Andrew Cagney [Tue, 2 Dec 1997 07:18:53 +0000 (07:18 +0000)]
For "msbu", subtract unsigned product from ACC,
Test.

26 years agoFor "mulxu", store unsigned product in ACC.
Andrew Cagney [Tue, 2 Dec 1997 06:37:09 +0000 (06:37 +0000)]
For "mulxu", store unsigned product in ACC.
Test.

26 years agoTest mv[tf]ac instructions.
Andrew Cagney [Tue, 2 Dec 1997 05:31:33 +0000 (05:31 +0000)]
Test mv[tf]ac instructions.

26 years agoFor MACU add unsigned multiply to accumulator.
Andrew Cagney [Tue, 2 Dec 1997 05:18:27 +0000 (05:18 +0000)]
For MACU add unsigned multiply to accumulator.
Test.

26 years agoMon Dec 1 17:13:53 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
Michael Snyder [Tue, 2 Dec 1997 01:14:40 +0000 (01:14 +0000)]
Mon Dec  1 17:13:53 1997  Michael Snyder  (msnyder@cleaver.cygnus.com)

* tracepoint.c: modify error behavior of the tfind commands.
  Add some comments.

26 years agoFor sub2w, compute carry according to negated addition rules.
Andrew Cagney [Tue, 2 Dec 1997 00:27:27 +0000 (00:27 +0000)]
For sub2w, compute carry according to negated addition rules.
Test.

26 years agoAdded expected failure of tests 1 and 2 for ARM coff targets.
Nick Clifton [Tue, 2 Dec 1997 00:18:48 +0000 (00:18 +0000)]
Added expected failure of tests 1 and 2 for ARM coff targets.

26 years ago remove useless info, add more useful info
Keith Seitz [Mon, 1 Dec 1997 21:07:09 +0000 (21:07 +0000)]
   remove useless info, add more useful info

26 years ago remove useless info
Keith Seitz [Mon, 1 Dec 1997 21:04:52 +0000 (21:04 +0000)]
remove useless info

26 years ago * gdbtk.c: move include of "guitcl.h" back out of IDE ifdef
Keith Seitz [Mon, 1 Dec 1997 20:53:02 +0000 (20:53 +0000)]
   * gdbtk.c: move include of "guitcl.h" back out of IDE ifdef
        (gdbtk_init): move ide_initialize_paths out of IDE ifdef

        * configure.in (TCL_LIBS, CONFIG_DEPS): add IDE libraries for all
        builds
        (CONFIG_OBS): remove tracepoint.o, which should always be included

        * configure: regenerate

        * Makefile.in (install-only): ALWAYS install the new gdbtk
        (REMOTE_OBS): add tracepoint.o

26 years ago * configure: add all-libide to GDB_TK
Keith Seitz [Mon, 1 Dec 1997 20:48:12 +0000 (20:48 +0000)]
    * configure: add all-libide to GDB_TK

        * Makefile.in (all-vmake): remove double dependency on all-libide

        * modules/modules: add libide to gdb's checkout list

        * ChangeLog: tidy up 11/26 entry

26 years agobfd:
Joern Rennecke [Mon, 1 Dec 1997 20:45:03 +0000 (20:45 +0000)]
bfd:
        * coff-sh.c (sh_coff_howtos): Add R_SH_SWITCH8 entry.
        (get_symbol_value): Handle R_SH_SWITCH8.
        (sh_relax_delete_bytes): Likewise.

include:
        * coff/sh.h (R_SH_SWITCH8): New.

gas:
        * config/tc-sh.c (SWITCH_TABLE_CONS): Handle (fix)->fx_size == 1.
        (SWITCH_TABLE): Handle BFD_RELOC_8.
        (md_apply_fix): #ifndef BFD_ASSEMBLER code: Handle fixP->fx_size == 1.
        (coff_reloc_map): Add BFD_RELOC_8_PCREL entry.
        (sh_coff_reloc_mangle): SWITCH_TABLE case: Handle BFD_RELOC_8.
PR 14155

26 years ago * callback.h (CB_SYSCALL): Comment out arg names in prototypes.
Doug Evans [Mon, 1 Dec 1997 19:30:53 +0000 (19:30 +0000)]
* callback.h (CB_SYSCALL): Comment out arg names in prototypes.

26 years agoMon Dec 1 12:25:57 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Ian Lance Taylor [Mon, 1 Dec 1997 17:34:36 +0000 (17:34 +0000)]
Mon Dec  1 12:25:57 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

* m68k-opc.c (btst): Change Dd@s to Dd;b.

* m68k-dis.c (print_insn_arg): Recognize 'm', 'n', 'o', 'p', 'q',
and 'v' as operand types.

26 years ago * m68k-opc.c: Add argument for lpstop. From Olivier Carmona
Ian Lance Taylor [Mon, 1 Dec 1997 17:05:40 +0000 (17:05 +0000)]
* m68k-opc.c: Add argument for lpstop.  From Olivier Carmona
<olivier.carmona@di.epfl.ch>.
* m68k-dis.c (print_insn_m68k): Handle special case of lpstop,
which has a two word opcode with a one word argument.

26 years agoRework sim/common/sim-alu.h to differentiate between direcct
Andrew Cagney [Mon, 1 Dec 1997 06:27:02 +0000 (06:27 +0000)]
Rework sim/common/sim-alu.h to differentiate between direcct
subtraction (involves borrow) and negated addition (involves carry).
Update d30v so that it uses this method.  Add more tests.

26 years ago * Makefile.in: Add rules for cygmon.
Bob Manson [Mon, 1 Dec 1997 02:38:26 +0000 (02:38 +0000)]
* Makefile.in: Add rules for cygmon.

* configure.in: Build cygmon for sparc-elf and sparclite-aout.

26 years agoDelete sim_io_syscalls and sim_io_getstring
Michael Meissner [Sun, 30 Nov 1997 22:42:08 +0000 (22:42 +0000)]
Delete sim_io_syscalls and sim_io_getstring

26 years agoSwitch to using cb_syscall; Fix bug in cb_syscall write
Michael Meissner [Sat, 29 Nov 1997 01:29:20 +0000 (01:29 +0000)]
Switch to using cb_syscall; Fix bug in cb_syscall write

26 years agoFix problems with d30v addc/subb
Michael Meissner [Sat, 29 Nov 1997 01:14:58 +0000 (01:14 +0000)]
Fix problems with d30v addc/subb

26 years ago * gennltvals.sh: Redo syscall support to allow sanitization.
Doug Evans [Fri, 28 Nov 1997 19:18:01 +0000 (19:18 +0000)]
* gennltvals.sh: Redo syscall support to allow sanitization.
* nltvals.def: Regenerated.
And add d30v sanitization.

26 years agoAdd tracepoint.o to gdbtk builds
Michael Meissner [Thu, 27 Nov 1997 15:13:14 +0000 (15:13 +0000)]
Add tracepoint.o to gdbtk builds

26 years agoIf not --enable-ide, do not include ide libs
Michael Meissner [Thu, 27 Nov 1997 14:30:06 +0000 (14:30 +0000)]
If not --enable-ide, do not include ide libs

26 years agoFix typos
Michael Meissner [Thu, 27 Nov 1997 14:10:03 +0000 (14:10 +0000)]
Fix typos

26 years ago * remote-sim.c (gdbsim_cntrl_c): Lose ANSI prototype.
Jeff Law [Thu, 27 Nov 1997 06:01:08 +0000 (06:01 +0000)]
    * remote-sim.c (gdbsim_cntrl_c): Lose ANSI prototype.

26 years agoRemoved leading underscore.....
Nick Clifton [Thu, 27 Nov 1997 01:44:10 +0000 (01:44 +0000)]
Removed leading underscore.....

26 years ago * gdbtk.c (gdb_loc): symtab_to_filename can return NULL
Keith Seitz [Wed, 26 Nov 1997 23:50:45 +0000 (23:50 +0000)]
    * gdbtk.c (gdb_loc): symtab_to_filename can return NULL
        (breakpoint_notify): symtab_to_filename can return NULL
        (gdb_get_breakpoint_info): symtab_to_filename can return NULL

        * tracepoint.c (set_raw_tracepoint): fix typo

26 years ago * tracepoint.c (set_raw_tracepoint): make sure there's a trailing slash on
Keith Seitz [Wed, 26 Nov 1997 22:38:10 +0000 (22:38 +0000)]
    * tracepoint.c (set_raw_tracepoint): make sure there's a trailing slash on
        the directory name

        * Merge (lots) with foundry-971118-build

        * Makefile.in (install-only): install the new gdbtk, not the old

        * top.h: add declaration of get_prompt

        * top.c (get_prompt): new function

        * gdbtk.c (gdbtk_call_command): also run idle hooks for class_trace
        commands
        (gdbtk_init): add new commands "gdb_get_locals", "gdb_get_args",
        "gdb_get_function", "gdb_get_line", "gdb_get_file",
        "gdb_tracepoint_exists", "gdb_get_tracepoint_info", "gdb_actions",
        and "gdb_prompt"
        (gdb_get_vars_command): new function
        (gdb_get_line_command): new function
        (gdb_get_file_command): new function
        (gdb_get_function_command): new function
        (gdb_get_tracepoint_info): new function
        (gdbtk_create_tracepoint): new function
        (gdbtk_delete_tracepoint): new function
        (tracepoint_notify): new function
        (tracepoint_exists): new function
        (gdb_actions_command): new function
        (gdb_tracepoint_exists_command): new function
        (gdb_prompt_command): new function

        * main.tcl: initialize gdbtk_state(readline)

        * console.tcl (invoke): get realine working
        (activate): add prompt argument for readline
        (setprompt): add prompt argument for readline

        * interface.tcl (gdbtk_tcl_readline): hack to get readline working

        * lots: Merge with foundry-971118-build

        * console.tcl (setprompt): get prompt from gdb

        * prefs.tcl (pref_set_defaults): add tracepoint defaults

        * interface.tcl (gdbtk_tcl_tracepoint): new function

        * src.tcl (constructor): set default behavior of left click, make
        a tracepoint dot, too
        (fill_files): "new" function: ripped out of "location"
        (location): use fill_files instead
        (do_bp): add support for tracepoints
        (bp_line): add support for tracepoints
        (set_tracepoint): new function
        (config_win): add "Set tracepoint here" to right-click menu

        * actiondlg.tcl: new file to help with tracepoint data collection actions

        * tracedlg.tcl: new file to help with tracepoints

26 years agoAdd C_THUMBEXT etc.
Nick Clifton [Wed, 26 Nov 1997 22:14:52 +0000 (22:14 +0000)]
Add C_THUMBEXT etc.

26 years ago * Make-common.in (run.o): Depend on remote-sim.h.
Doug Evans [Wed, 26 Nov 1997 22:11:31 +0000 (22:11 +0000)]
* Make-common.in (run.o): Depend on remote-sim.h.
(nrun.o,sim-hload.o,sim-hrw.o): Likewise.
(sim-io.o,sim-reason.o,sim-resume.o): Likewise.

26 years agoFlush writes to stdout, stderr
Michael Meissner [Wed, 26 Nov 1997 21:52:16 +0000 (21:52 +0000)]
Flush writes to stdout, stderr

26 years agoUse names for all prototype arguments
Michael Meissner [Wed, 26 Nov 1997 21:48:58 +0000 (21:48 +0000)]
Use names for all prototype arguments

26 years ago * Makefile.in, configure, configure.in: merge with foundry-971118-build
Keith Seitz [Wed, 26 Nov 1997 21:48:06 +0000 (21:48 +0000)]
    * Makefile.in, configure, configure.in: merge with foundry-971118-build

26 years ago* sim-io.c (sim_io_getstring): Delete unused len2. (sim_io_syscalls):
Andrew Cagney [Wed, 26 Nov 1997 21:35:53 +0000 (21:35 +0000)]
* sim-io.c (sim_io_getstring): Delete unused len2.  (sim_io_syscalls):
Ditto for sys_errno.

26 years agoFreeBSD has (at least for the i386) a little-endian magic number.
Andrew Cagney [Wed, 26 Nov 1997 21:34:05 +0000 (21:34 +0000)]
FreeBSD has (at least for the i386) a little-endian magic number.

26 years agoDelete magic number FIXME.
Doug Evans [Wed, 26 Nov 1997 19:53:26 +0000 (19:53 +0000)]
Delete magic number FIXME.

26 years agoUndo last change. callback.h changed instead.
Doug Evans [Wed, 26 Nov 1997 19:52:34 +0000 (19:52 +0000)]
Undo last change.  callback.h changed instead.
Plus:
* syscall.c (cb_syscall): Test CB_SYSCALL struct magic number.

26 years ago * callback.h (CB_SYSCALL): Change byte count arguments to
Doug Evans [Wed, 26 Nov 1997 19:49:13 +0000 (19:49 +0000)]
* callback.h (CB_SYSCALL): Change byte count arguments to
{read,write}_mem to `int'.  New member `magic'.
(CB_SYSCALL_MAGIC,CB_SYSCALL_INIT): New macros.

26 years ago * syscall.c (cb_syscall, cases stat, fstat): Handle -Wall -Werror.
Doug Evans [Wed, 26 Nov 1997 19:19:58 +0000 (19:19 +0000)]
* syscall.c (cb_syscall, cases stat, fstat): Handle -Wall -Werror.

26 years agoDo no set private flags if building a PE port.
Nick Clifton [Wed, 26 Nov 1997 17:31:53 +0000 (17:31 +0000)]
Do no set private flags if building a PE port.

26 years agoCheck the abbrev offset found in the .debug_info section before using
Andrew Cagney [Wed, 26 Nov 1997 12:35:07 +0000 (12:35 +0000)]
Check the abbrev offset found in the .debug_info section before using
it.

26 years agoFix typo in format argument to sim_io_eprintf.
Andrew Cagney [Wed, 26 Nov 1997 12:07:27 +0000 (12:07 +0000)]
Fix typo in format argument to sim_io_eprintf.

26 years agoMove MDMX instructions which are public knowledge from vr5400.igen
Andrew Cagney [Wed, 26 Nov 1997 11:47:36 +0000 (11:47 +0000)]
Move MDMX instructions which are public knowledge from vr5400.igen
into mdmx.igen (MDMX is MMX on steroids).  Keep the file secret.

26 years agonuke lseek
Michael Meissner [Wed, 26 Nov 1997 01:13:40 +0000 (01:13 +0000)]
nuke lseek

26 years agosanitize-r5900 not v5900
Andrew Cagney [Tue, 25 Nov 1997 22:02:59 +0000 (22:02 +0000)]
sanitize-r5900 not v5900

26 years agoStrip ChangeLog of v850e information
Andrew Cagney [Tue, 25 Nov 1997 22:00:26 +0000 (22:00 +0000)]
Strip ChangeLog of v850e information

26 years agoAdd file alu-n-tst.h
Andrew Cagney [Tue, 25 Nov 1997 21:59:39 +0000 (21:59 +0000)]
Add file alu-n-tst.h

26 years agovr5400 sanitize cleanups
Andrew Cagney [Tue, 25 Nov 1997 21:47:16 +0000 (21:47 +0000)]
vr5400 sanitize cleanups

26 years agoAdd tm-fbsd.h
Andrew Cagney [Tue, 25 Nov 1997 21:44:13 +0000 (21:44 +0000)]
Add tm-fbsd.h

26 years agoDo not complain when trying to merge private data from different formats.
Nick Clifton [Tue, 25 Nov 1997 18:57:03 +0000 (18:57 +0000)]
Do not complain when trying to merge private data from different formats.

26 years agoAdd comment.
Doug Evans [Tue, 25 Nov 1997 18:43:29 +0000 (18:43 +0000)]
Add comment.

26 years ago * Makefile.am (BFD32_BACKENDS): Remove tekhex.lo.
Ian Lance Taylor [Tue, 25 Nov 1997 17:14:09 +0000 (17:14 +0000)]
* Makefile.am (BFD32_BACKENDS): Remove tekhex.lo.
(BFD32_BACKENDS_CFILES): Remove tekhex.c.
* Makefile.in: Rebuild.
* aclocal.m4, configure, src/Makefile.in: Rebuild with current
automake and autoconf.

26 years ago * coff-arm.c (arm_allocate_interworking_sections): Fix typo
Ian Lance Taylor [Tue, 25 Nov 1997 16:27:55 +0000 (16:27 +0000)]
* coff-arm.c (arm_allocate_interworking_sections): Fix typo
(COFF_WITH_PR to COFF_WITH_PE).

26 years ago * callback.h (struct stat): Move forward decl up.
Doug Evans [Tue, 25 Nov 1997 09:39:56 +0000 (09:39 +0000)]
* callback.h (struct stat): Move forward decl up.
(host_callback): Pass stat struct pointer to stat,fstat.
(CB_SYS_nnn): Reorganize.
(CB_SYSCALL): New members p1,p2.
(cb_host_to_target_stat): Delete fourth arg.

26 years ago * callback.c (os_stat): Make 3rd arg a host struct stat ptr.
Doug Evans [Tue, 25 Nov 1997 09:33:34 +0000 (09:33 +0000)]
* callback.c (os_stat): Make 3rd arg a host struct stat ptr.
(os_fstat): Likewise.  Validate fd argument.
(cb_host_to_target_stat): Delete big_p arg.  If HS arg is NULL,
just compute target stat struct length.
* syscall.c: #include "libiberty.h", <sys/types.h>, <sys/stat.h>.
(ENOSYS,ENAMETOOLONG): Provide definitions if missing.
(get_string): Return host errno values so they can be properly
translated later.
(cb_syscall): Likewise.
(cb_syscall, cases open,unlink): Use get_path instead of get_string.
(cb_syscall, case read): Use read_stdin for file descriptor 0.
(cb_syscall, case write): Use write_stderr for file descriptor 2.
(cb_syscall): Add cases for lseek, unlink, stat, fstat, time.
(get_path): New function.

26 years ago * gennltvals.sh: Generate syscall values for d30v.
Doug Evans [Tue, 25 Nov 1997 08:18:57 +0000 (08:18 +0000)]
* gennltvals.sh: Generate syscall values for d30v.
Use libgloss/syscall.h for sparc.
* nltvals.def: Regenerate.

26 years agoFlush ser-go32-para.c, never worked and never used.
Stan Shebs [Tue, 25 Nov 1997 03:25:18 +0000 (03:25 +0000)]
Flush ser-go32-para.c, never worked and never used.

26 years agoHandle case where sizeof long != sizeof int when examining a union.
Andrew Cagney [Tue, 25 Nov 1997 02:28:05 +0000 (02:28 +0000)]
Handle case where sizeof long != sizeof int when examining a union.

26 years agoCut out unused code for PE build.
Nick Clifton [Tue, 25 Nov 1997 02:09:19 +0000 (02:09 +0000)]
Cut out unused code for PE build.

26 years agoAdd sim_io_syscalls to do common system call emulation
Michael Meissner [Mon, 24 Nov 1997 23:59:20 +0000 (23:59 +0000)]
Add sim_io_syscalls to do common system call emulation

26 years agoFix for PE build
Nick Clifton [Mon, 24 Nov 1997 23:51:15 +0000 (23:51 +0000)]
Fix for PE build

26 years ago * cpu.h (TRACE_COND_BR): Use TRACE_BRANCH_P, not TRACE_ALU_P.
Doug Evans [Mon, 24 Nov 1997 22:58:47 +0000 (22:58 +0000)]
* cpu.h (TRACE_COND_BR): Use TRACE_BRANCH_P, not TRACE_ALU_P.

26 years ago * sim-trace.c (trace_option_handler): Set state trace file
Doug Evans [Mon, 24 Nov 1997 22:21:51 +0000 (22:21 +0000)]
* sim-trace.c (trace_option_handler): Set state trace file
for --trace-file in addition to cpu's values.
(trace_vprintf): If cpu == NULL, try state's trace file.

26 years agoMon Nov 24 14:17:02 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
Michael Snyder [Mon, 24 Nov 1997 22:20:34 +0000 (22:20 +0000)]
Mon Nov 24 14:17:02 1997  Michael Snyder  (msnyder@cleaver.cygnus.com)

* infcmd.c: export registers_info, for use by other modules.
* printcmd.c: export output_command, for use by other modules.
* stack.c: export locals_info and args_info, for use by other modules.

26 years agoEntries for .gdbinit additions and sim-model.c option fix.
Doug Evans [Mon, 24 Nov 1997 22:09:12 +0000 (22:09 +0000)]
Entries for .gdbinit additions and sim-model.c option fix.

26 years ago * sim-model.c (model_options): Use '\0' for `shortopt'.
Doug Evans [Mon, 24 Nov 1997 20:43:38 +0000 (20:43 +0000)]
* sim-model.c (model_options): Use '\0' for `shortopt'.

26 years ago * Make-common.in (all): Add .gdbinit.
Doug Evans [Mon, 24 Nov 1997 20:14:35 +0000 (20:14 +0000)]
* Make-common.in (all): Add .gdbinit.
* gdbinit.in: Add dump command.

26 years ago * sim-core.c (sim_core_signal): Fix spelling error in message.
Doug Evans [Mon, 24 Nov 1997 20:11:02 +0000 (20:11 +0000)]
* sim-core.c (sim_core_signal): Fix spelling error in message.
* sim-hrw.c (sim_read): Use read map, not write map.

26 years agoA ton of my most recent changes, mostly to add post-mortem data analysis,
Michael Snyder [Mon, 24 Nov 1997 20:02:28 +0000 (20:02 +0000)]
A ton of my most recent changes, mostly to add post-mortem data analysis,
plus some better error checking and reporting.  Still not publically
visible (not mentioned in the makefile or changelog).

26 years agoSome early changes by Keith Seitz to support the Tcl/Tk GUI.
Michael Snyder [Mon, 24 Nov 1997 19:47:05 +0000 (19:47 +0000)]
Some early changes by Keith Seitz to support the Tcl/Tk GUI.
Note: these files are still not publically visible; just keeping
their history at this point.

26 years agoCreate CVS files tracepoint.c and tracepoint.h. This is new work,
Michael Snyder [Mon, 24 Nov 1997 19:38:44 +0000 (19:38 +0000)]
Create CVS files tracepoint.c and tracepoint.h.  This is new work,
not yet ready for public release, so no changelog entry yet (and I'm
sanitizing the files out).  Just want to get them into the repository
for now, so I can begin keeping their history.  Not checking in the
Makefile change that would cause them to be built and linked.

26 years agoSanitization
Andrew Cagney [Mon, 24 Nov 1997 13:34:52 +0000 (13:34 +0000)]
Sanitization

26 years agoAdd function print_decimal to handle display of long long decimal
Andrew Cagney [Mon, 24 Nov 1997 12:49:38 +0000 (12:49 +0000)]
Add function print_decimal to handle display of long long decimal
values on hosts with long-long but no "%ll".

26 years agoImprove GDB support for FreeBSD host/target.
Andrew Cagney [Mon, 24 Nov 1997 06:50:12 +0000 (06:50 +0000)]
Improve GDB support for FreeBSD host/target.
To configure.in: make PRINTF_HAS_LONG_LONG check more pedantic; check
that SCANF_HAS_LONG_DOUBLE instead of assuming PRINTF_HAS_LONG_DOUBLE
implies it; document.

26 years agoPass architecture from ``set arch MACH'' command into disasembler
Andrew Cagney [Mon, 24 Nov 1997 06:37:01 +0000 (06:37 +0000)]
Pass architecture from ``set arch MACH'' command into disasembler
through tm_print_insn_info.mach argument.
Delete x86 specific set assembler command, subsumed by replaced with
``set arch''

26 years agoHave mips64vr5400-*-elf look like a mips64vr5000.
Andrew Cagney [Mon, 24 Nov 1997 06:31:05 +0000 (06:31 +0000)]
Have mips64vr5400-*-elf look like a mips64vr5000.