blob: 9d4149ebf6ca17348d80f27d2b3161f92ce4bb6b [file] [log] [blame]
Fri Dec 29 16:30:58 1995 Stan Shebs <>
* symfile.c (find_sym_fns): Add PowerMac to xcoff file recognition
Fri Dec 22 11:05:59 1995 Michael Meissner <>
* (gdb_host): Add support for DG/UX running on x86 as
a host.
(all x86 targets and hosts): Add support for pentium-pro machines.
* configure: Rebuild.
* config/i386/ New file for DG/UX running on x86 host.
Thu Dec 21 19:09:20 1995 Rob Savoye <>
* remote-array.c (array_wait): Poll the keyboard along with the
serial port so users can tpye at the target while their
application is running.
Thu Dec 21 11:58:52 1995 Michael Meissner <>
* (ppcbug-rom.o, srec.o): Add dependencies.
* monitor.c (monitor_debug): Take prefix, and suffix arguments.
Print trailing newline after the suffix.
(monitor_printf{,_noecho}): Change monitor_debug calls.
(monitor_printf): Call monitor_expect instead of trying to do the
expect processing locally so that if there is extra junk, it
doesn't hang things up.
(readchar): If MO_HANDLE_NL is set, handle \r\n pairs and convert
them to a single \r. Use monitor_debug to print out byte read.
* monitor.h (MO_HANDLE_NL): Add new flag.
* ppcbug-rom.c (ppcbug_ops{1,2}): Split into two ops, one that
uses lo 0 to load, and the other that uses lo 1. Set flag
(ppcbug_open{0,1}): Clone and split to handle ppcbug_ops{1,2}.
(_initialize_ppcbug_rom): Set up both ppcbug_open{0,1}.
Wed Dec 20 10:54:41 1995 Fred Fish <>
* defs.h: Delete extraneous whitespace at end of file.
* symfile.h: Move #include of demangle.h outside conditional.
* objfiles.h (struct objstats, OBJSTAT, OBJSTATS): New struct and
macros to hold per-objfile statistics for internal
(struct objfile): Add OBJSTATS member, which is optional.
* buildsym.h (next_symbol_text_func): Now takes objfile argument.
Also update copyright to 1995.
* dbxread.c (dbx_next_symbol_text): Now takes objfile argument.
(dbx_symfile_init, coffstab_build_psymtabs, elfstab_build_psymtabs,
stabsect_build_psymtabs): Accumulate string table size.
(dbx_next_symbol_text, read_dbx_symtab, read_ofile_symtab):
Accumulate number of stabs symbols read.
* dwarfread.c (new_symbol, symthesize_typedef):
Accumulate number of full symbols created.
* gdbtypes.c (alloc_type): Accumulate number of types.
* maint.c (maintenance_print_statistics): New function.
* mdebugread.c (mdebug_next_symbol_text): Now takes objfile
* minsyms.c (prim_record_minimal_symbol_and_info): Accumulate
number of minimal symbols read.
* os9kread.c (read_os9k_psymtab): next_symbol_text takes objfile
* partial-stab.h: next_symbol_text takes objfile arg.
* stabsread.c (error_type, STABS_CONTINUE): Now takes objfile arg
and uses it to call next_symbol_text.
* symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
Accumulate number of partial symbols created.
* symfile.h (ADD_PSYMBOL_VT_TO_LIST): Accumulate number of partial
symbols created.
* symmisc.c (print_objfile_statistics): Print the per-objfile
internal instrumentation statistics gathered.
* xcoffread.c (xcoff_next_symbol_text): Now takes objfile argument.
Fri Dec 15 16:15:55 1995 Ian Lance Taylor <>
* top.c (set_endian_from_file): Use new bfd_big_endian macro.
Fri Dec 15 12:21:10 1995 Raymond Jou <>
* mpw-make.sed: Add quotes to RIncludes reference.
Fri Dec 15 13:18:55 1995 Rob Savoye <>
* remote-array.c: Remove bogus setting of baudrate to 4800. Their
hardware has real UARTS now.
Mon Dec 11 18:19:16 1995 Stan Shebs <>
* (powerpc-*-macos*): New target configuration.
* configure: Update.
* config/powerpc/, config/powerpc/,
config/powerpc/nm-macos.h, config/powerpc/tm-macos.h, mac-nat.c:
New files, native PowerMac debugging support.
* (mac-nat.o): Add build rule.
* (enable_cflags): Add support.
(m68k-apple-macos, powerpc-apple-macos): Fix natdepfiles to
list object file instead of source file.
* mpw-make.sed (@ENABLE_CFLAGS@): Don't edit out, replace with
value of variable.
(install, install-only): Edit MPW-specific installation into
place of Unix shell code.
* mac-gdb.r: Fix version resources to use symbolic version strings.
(cfrg): New resource, code fragment for PowerMac.
Mon Dec 11 14:13:03 1995 Fred Fish <>
* dbxread.c (process_one_symbol): When looking at the next
minimal symbol, check for end of the minimal symbol array
(symbol with NULL pointer for name) before dereferencing it.
Mon Dec 11 15:56:55 1995 Per Bothner <>
* eval.c (evaluate_struct_tuple): Fix thinko.
Mon Dec 11 06:52:02 1995 Wilfried Moser <>
* ch-typeprint.c (chill_type_print_base): Slightly change of printing
of variant structures.
Mon Dec 11 00:36:01 1995 Per Bothner <>
* valops.c (value_cast): Handle casts to and from TYPE_CODE_CHAR.
* ch-exp.c (match_integer_literal): Fix long long support.
* gdbtypes.c (get_discrete_bounds): Make TYPE_LENGTH (type) ==
sizeof (LONGEST) case work OK.
Fri Dec 8 21:02:24 1995 Fred Fish <>
* coffread.c, dbxread.c, dstread.c, objfiles.c, os9kread.c,
symfile.c, symtab.c: Use "obstack.h" rather than <obstack.h>.
Wed Dec 6 16:16:18 1995 Stu Grossman (
* remote-mips.c (mips_receive_header): Allow mips_syn_garbage to be
user-settable (via set syn-garbage-limit). Setting it to -1 makes
it unlimited.
Tue Dec 5 18:33:43 1995 Brendan Kehoe <>
* gdbtypes.c (check_stub_method): Make sure we get back a function
string in the demangled name before we try to use it.
Tue Dec 5 18:08:29 1995 Stu Grossman (
* monitor.c (monitor_expect_regexp): Make static, add prototype.
* (monitor_read_memory_single): Call monitor_expect_regexp with
pointer to getmem_resp_delim_pattern, not entire struct.
Tue Dec 5 15:51:25 1995 Stan Shebs <>
* c-lang.h (c_op_print_tab): Don't declare, some compilers
consider illegal if structure not defined, and only used
in c-lang.c anyway.
Sun Dec 3 12:31:03 1995 Per Bothner <>
* eval.c (evaluate_subexp_standard case): Fix typo.
Sun Dec 3 11:59:21 1995 Jeffrey A. Law <>
* ch-exp.c (parse_named_record_element): Avoid aggregrate
initializations for automatic variables.
* hppa-tdep.c (hppa_alignof): Fix typo in last change.
Sat Dec 2 19:32:57 1995 Fred Fish <>
* symfile.c (global_psymbols, static_psymbols): Remove, unused.
Sat Dec 2 03:02:21 1995 Peter Schauer (
* alpha-tdep.c (heuristic_proc_desc): Add heuristic to
determine the return address register, needed for OSF/1-3.2C.
* config/alpha/tm-alpha.h (T7_REGNUM, T9_REGNUM): Define.
Fri Dec 1 07:23:57 1995 Michael Meissner <>
* ppcbug-rom.c (ppcbug_cmds): Turn on MO_GETMEM_READ_SINGLE
because PPCbug displays the memory as characters as well as hex.
Fix getmem/setmem commands.
* srec.c (load_srec): Fix off by one typo in last submission.
* rs6000-tdep.c (push_arguments): Fix typo.
Thu Nov 30 23:54:17 1995 Per Bothner <>
* language.c (lang_bool_type), language.h: New function.
* language.h (LA_BOOL_TYPE): New macro.
* eval.c (evaluate_subexp_standard) Use LA_BOOL_TYPE instead
of builtin_type_int where appropriate,
* valarith.c (value_subscript): Likewise.
* valops.c (value_slice): Implement (value) bitstring slices.
* valprint.c (val_print): If TYPE_LENGTH is zero, don't automatically
print "<incomplete type>" - Chill has zero-length (string) types.
* gdbtypes.c (check_stub_type): Removed; no longes needed.
* ch-exp.c (expect, parse_call): Tweak error messages.
Wed Nov 29 13:35:18 1995 Per Bothner <>
* scm-valprint.c (scm_isymnames): Remove "#@" prefix.
(scm_scmval_print): Do not print "#@" prefix.
* gdbtypes.h (enum type_code): Added TYPE_CODE_TYPEDEF.
(check_typedef): New prototype.
(CHECK_TYPEDEF): New macro.
* gdbtypes.c (get_discrete_bounds): Fix paren error; make more robust.
(create_array_type): Don't force_to_range_type; users of the
array are responsible for handling non-range index types.
(create_set_type): Likewise.
(force_to_range_type): Removed.
(check_typedef): New function handles stub types and typedefs.
(check_stub_type): Just call check_typedef. (To be removed.)
(recursive_dump_type): Handle TYPE_CODE_TYPEDEF.
* ch-lang.c (type_lower_upper): Use get_discrete_bounds.
(evaluate_subexp_chill): Handle string repetition.
Re-arrange to handle EVAL_AVOID_SIDE_EFFECTS better.
* ch-typeprint.c (chill_type_print_base): Handle TYPE_CODE_TYPEDEF.
Pass show=0 in recursive calls various places.
(case TYPE_CODE_ARRAY): Don't require index type to have
(case TYPE_CODE_RANGE): Don't need to support TYPE_DUMMY_RANGE.
* gdbtypes.c, ch-lang.c, ch-typeprint.c (numerous places):
Add check_typedef/CHECK_TYPEDEF as needed.
* ch-exp.y: Replaced by ...
* ch-exp.c: New file. Use recursive-descent.
Recognize labelled array tuples and powerset ranges.
* Update for no longer using yacc for ch-exp.
* c-lang.c: Make various functions non-static.
* c-lang.h: Add bunches of prototypes.
* cp-valprint.c (cp_print_value_fields): Also take address.
(cp_print_value): Likewise. Use baselcass_offset.
* stabsread.c (current_symbol): New static variable.
(type_synonym_name): Remove.
(read_type): If copying, make copy be a TYPE_CODE_TYPEDEF.
(read_array_type): Don't need to handle undefined element type here.
(cleanup_undefined_types): Ditto.
(read_range_type): Look for Chill ranges.
* valops.c (value_assign): Fix case lval_internalvar - don't try
to assign into old value (which might be too small!).
(value_coerce_array): No longer need special VALUE_REPEATED handling.
(value_arg_coerce): Cleaner array->pointer decay mechanism.
(search_struct_field): Use baseclass_offset rather than
(value_slice): Use get_discrete_bounds.
* value.h (COERCE_VARYING_ARRAY): Take type argumnt as well.
* values.c (baseclass_offset): Change parameter interface.
(baseclass_addr): Removed.
* c-typeprint.c, c-valprint.c, ch-valprint.c, values.c, valops.c:
Add check_typedef/CHECK_TYPEDEF as needed.
* alpha-tdep.c, c-exp.y, h8500-tdep.c, f-exp.y, f-valprint.c,
findvar.c, hppa-tdep.c, infcmd.c, language.c, printcmd.c,
rs6000-tdep.c, symmisc.c, symtab.c, mdebugread.c:
Add check_typedef/CHECK_TYPEDEF as needed.
* f-typeprint.c, valarith.c, valprint.c, typeprint.c, eval.c:
Add check_typedef/CHECK_TYPEDEF as needed.
* f-typeprint.c: Various cleaning up.
* valarith.c (value_subscript): Also subscript bitstrings (for Chill).
* typeprint.c (print_type_scalar): Also support TYPE_CODE_RANGE.
* eval.c (evaluate_subexp_standard case OP_ARRAY): Implement
support for labelled array tuples and ranges in powerset tuples.
(init_array_element): New function.
* top.c (command_line_input): Only strip out an initial #-comment.
Looking for internal comments is language-specific (breaks Scheme).
* expression.h (enum exp_opcode): Add BINOP_RANGE.
* expprint.c (dump_expression): Support BINOP_RANGE.
* eval.c (evaluate_subexp_standard): Handle BINOP_RANGE (as error).
(case MULTI_SUBSCRIPT): Fix broken f77 value->int ad hoc conversion.
* ch-lang.c (chill_op_print_tab): Support BINOP_RANGE.
(evaluate_subexp_chill): Error on BINOP_COMMA.
* Clean up so doc stuff stays in doc sub-dir.
Wed Nov 29 16:39:50 1995 Michael Meissner <>
* monitor.c (monitor_debug): New function to print monitor debug
output in printable fashion.
(monitor_printf{,_noecho}): Call monitor_debug instead of
* srec.c (load_srec): When printing srec debug information, do not
print the carriage return directly, instead print \\r followed by
a newline.
Tue Nov 28 15:25:28 1995 Doug Evans <>
* (target_subdir): Define.
(CC_FOR_TARGET, CXX_FOR_TARGET): Use it to find target libraries.
* (X_CFLAGS): Fix typo.
(target_subdir): Set to "${target_alias}/" if cross.
* configure: Regenerated.
* dbxread.c (dbx_symfile_read): Set block_address_function_relative
for `pe' format files.
Tue Nov 28 11:17:47 1995 Fred Fish <>
* magic.h: Renamed to gmagic.h to avoid <magic.h> conflict.
* magic.c: Renamed to gmagic.c in sympathy.
* eval.c, gmagic.c, config/tm-magic.h:
Include "gmagic.h" rather than "magic.h".
Sat Nov 25 02:56:38 1995 Peter Schauer (
* mdebugread.c (handle_psymbol_enumerators, parse_symbol):
Recognize enums from alpha cc -migrate.
(upgrade_type): Pass correct fd to parse_symbol when parsing
the index type of an array.
(parse_procedure, parse_lines, psymtab_to_symtab_1): Handle
unsorted procedure descriptors from Irix 5.x and Alpha OSF/1-3.x
shared libraries. Use CORE_ADDR instead of `unsigned long' in
procedure descriptor address computations.
* symtab.c (decode_line_1): Prevent accidental strchr match
of a null character with the terminating null character of
(cplusplus_hint): Make sure that only a single quote is printed
in the hint message.
Fri Nov 24 16:17:01 1995 Jeffrey A Law (
* top.c (recurse_read_control_structure): Don't make cleanups
here. Callers handle that correctly.
Tue Nov 21 15:16:34 1995 Fred Fish <>
* config/m68k/xm-hp300hpux.h: Define MMAP_BASE_ADDRESS and MMAP_INCREMENT.
Also force HAVE_MMAP to be defined since autoconf is currently broken
for detecting a working mmap under hpux.
* config/pa/xm-hppah.h (MMAP_BASE_ADDRESS): Tweak MMAP_BASE_ADDRESS
to a better value suggested by Jeffrey A Law (
Tue Nov 21 08:48:58 1995 Fred Fish <>
* config/pa/xm-hppah.h: Define MMAP_BASE_ADDRESS and MMAP_INCREMENT.
Also force HAVE_MMAP to be defined since autoconf is currently broken
for detecting a working mmap under hpux.
* objfiles.c (map_to_address): Have gdb print a warning when it
is compiled with HAVE_MMAP but without both MMAP_BASE_ADDRESS and
MMAP_INCREMENT defined (thus making it appear mmap doesn't work).
Mon Nov 20 14:13:53 1995 Stu Grossman (
* infrun.c (wait_for_inferior): Add support for dynamic function
trampolines. These are pieces of code between the caller and the
callee that figure out the address of the callee's code at run
time. Upon entry, we can't figure out the callee's address, so we
set a breakpoint within the trampoline where the address will be
known, and continue the target. Once we hit the breakpoint, we
break at the callee's address and proceed as usual.
Mon Nov 20 11:12:34 1995 Fred Fish <>
* objfiles.c (allocate_objfile): Change warning message about mapped
symbol tables so that it is obvious that they are not supported on
this particular machine rather than implying they are not supported
at all in this version of gdb.
Sun Nov 19 05:20:53 1995 Peter Schauer (
* irix5-nat.c, osfsolib.c (solib_address): Return the name of the
containing solib.
* stack.c (print_frame_info): Use minimal symbol only if
fi->pc is in a known section.
Sat Nov 18 11:19:35 1995 Roland McGrath <>
* solib.c (solib_address): Return the name of the containing solib.
* solib.h (PC_SOLIB): New macro; define using solib_address.
* stack.c (print_frame_info) [PC_SOLIB]: If no function name, try
PC_SOLIB on the PC value.
Sat Nov 18 04:09:31 1995 Peter Schauer (
* annotate.c (annotate_source, annotate_frame_begin): Issue
`0x' prefix for the pc value, to remain consistent with previous
GDB versions.
* blockframe.c (find_pc_partial_function), config/pa/tm-hppa.h:
Remove Sun shared library transfer hack and
mst_solib_trampoline minimal symbols.
* blockframe.c (inside_main_func): Check main_func_*pc against
INVALID_ENTRY_*PC, not zero.
* symfile.c (init_entry_point_info): Initialize ei.*pc with
* mipsread.c (mipscoff_symfile_read): If the entry_file bounds
are still unknown after processing the partial symbols, then try
to set them from the minimal symbols.
* infcmd.c (registers_info): Error out if selected_frame is NULL.
* stack.c (return_command): Select new current frame silently if
not interactive.
* mipsread.c (read_alphacoff_dynamic_symtab): Ignore additional
* irix5-nat.c (solib_create_inferior_hook): Call solib_add only
if auto_solib_add_at_startup is nonzero.
(_initialize_solib): Add "set auto-solib-add" command.
* osfsolib.c (solib_create_inferior_hook): Call solib_add only
if auto_solib_add_at_startup is nonzero.
(_initialize_solib): Add "set auto-solib-add" command.
Wed Nov 15 17:12:04 1995 Stan Shebs <>
* utils.c: Don't include sys/ioctl.h etc if MPW is host.
Tue Nov 14 17:16:46 1995 Doug Evans <>
* config/arm/tm-arm.h (ADDITIONAL_REGISTER_NAMES): Fix r5.
(FRAME_SAVED_PC): Minor clean up.
Tue Nov 14 14:51:05 1995 Stu Grossman (
* monitor.c (monitor_load_srec monitor_make_srec): Move all
S-record download code into srec.c.
* srec.c srec.h: New files. Contain S-record loading routines
formerly in monitor.c.
* serial.c serial.h: New routine just like fprintf, but uses
serial_t instead of FILE *.
* sh-tdep.c (frame_find_saved_regs init_extra_frame_info):
Don't add four to saved pc (makes things match manual). Also, fix
bug where we didn't get pc from stack frame correctly.
* config/sh/tm-sh.h (SAVED_PC_AFTER_CALL): Don't add four to
saved pc. Real hardware does this for you.
* sh3-rom.c (sh3_load): New routine. Sets up for download then
calls generic S-record loader.
* config/h8300/, config/h8500/,
config/m68k/, config/pa/, config/sh/
Add srec.o to TDEPFILES.
Tue Nov 14 15:57:36 1995 Michael Meissner <>
* ppcbug-rom.c: New file to support the Motorola PPCBUG monitor
for PowerPC's.
* config/powerpc/ppc{,le}-{eabi,sim}.mt (TDEPFILES): Include
ppcbug-rom.o, monitor.o, and srec.o
* config/i386/ (XDEPFILES): Include ser-tcp.o.
Mon Nov 13 13:12:46 1995 Jeffrey A Law (
* partial-stab.h: Remove GDB_TARGET_IS_HPPA kludge.
Fri Nov 10 13:08:54 1995 Jeff Law (
* terminal.h (HAVE_SGTTY): Fix typo.
Thu Nov 9 17:34:01 1995 Michael Meissner <>
* (gdb_target): Build in the simulator for all
PowerPC eabi targets, not just eabisim, providing
--enable-sim-powerpc is used, or the host compiler is GCC.
Thu Nov 9 14:04:05 1995 Raymond Jou (
* Add variable with names of SIOW libraries.
* mpw-make.sed: Add an action to build SIOWgdb.
Wed Nov 8 19:25:22 1995 Stan Shebs <>
* mpw-make.sed: Edit @ENABLE_CFLAGS@ out, mpw-configure can
add back in if necessary.
Wed Nov 8 15:59:52 1995 James G. Smith <>
* config/mips/ Added simulator to default VR4300 build.
Tue Nov 7 16:02:25 1995 Stu Grossman (
* remote-mips.c (mips_initialize): Fix brain damage found by
Jamie. Basically had case statement in the wrong place...
* (mips_load): Remove unnecessary `db tty0' command. It's all
handled by mips_initialize now.
Tue Nov 7 12:59:14 1995 Raymond Jou <>
* mac-gdb.r: Added #ifdef Macgdb.
Tue Nov 7 14:59:51 1995 James G. Smith <>
* remote-mips.c (mips_initialize): Updated to talk to VR4300 RISQ
monitor board.
Mon Nov 6 11:44:11 1995 James G. Smith <>
* config/mips/{tm-vr4300.h tm-vr4300el.h} (TARGET_MONITOR_PROMPT):
Change into real strings.
* remote-sim.c (gdbsim_open): Moved sim_open() call to after
callback initialisation.
Sun Nov 5 00:07:52 1995 Jason Molenda (
* (AC_CHECK_HEADERS): add stddef.h.
Fri Nov 3 12:30:43 1995 Fred Fish <>
* (COMMON_OBS): Use corefile.o rather than core.o
* core.c: Rename to corefile.c.
* config/pyr/tm-pyr.h, umax-xdep.c, sun386-nat.c, pyr-xdep.c, (SFILES), gould-xdep.c, coredep.c, armtdep.c,
arm-xdep.c, altos-xdep.c: Change core.c references to corefile.c.
From Graham Stoney <>.
* (remote-array.o): Add rule to build.
(ALLDEPFILES): Add remote-array.c
* remote-array.c (baud_rate): Remove unnecessary declaration.
(baudrate): Remove.
(array_files_info): Print global baud_rate not baudrate.
Sat Nov 4 10:21:58 1995 Stu Grossman (
* fork-child.c (fork_inferior): Add call to
TARGET_CREATE_INFERIOR_HOOK to allow target specific code to get
control just before the new process executes it's first instruction.
* remote-mips.c (mips_initialize): Cleanup a bit. Don't try to
receive a packet at first. This speeds up initialization a lot.
(common_breakpoint): Use rresponse instead of rerrflg to inspect
error code.
* symfile.c (syms_from_objfile reread_symbols): Call
TARGET_SYMFILE_POSTREAD to allow target specific code to get
control after reading new symbols.
* target.h: New macros TARGET_SYMFILE_POSTREAD, and
TARGET_CREATE_INFERIOR_HOOK. See above for descriptions.
* config/mips/{ nm-irix5.h}: Delete nm-irix5.h. Make
NAT_FILE point directly at ../nm-sysv4.h.
* config/mips/{ nm-m3.h}: Delete nm-m3.h. Make
NAT_FILE point directly at ../nm-m3.h.
* config/mips/{ nm-sysv4.h}: Delete nm-sysv4.h. Make
NAT_FILE point directly at ../nm-sysv4.h.
* config/mips/nm-mips.h: Improve comment at top of file.
* config/mips/tm-mips.h (TARGET_MONITOR_PROMPT): Change
definition into a proper string.
Wed Nov 1 20:18:08 1995 Fred Fish <>
* config/i386/tm-i386.h: New file containing generic i*86 target
(TARGET_BYTE_ORDER): Moved here from tm-i386v.h.
(IEEE_FLOAT): Moved here from tm-i386v.h.
(FUNCTION_START_OFFSET): Moved here from tm-i386v.h.
(SKIP_PROLOGUE): Moved here from tm-i386v.h.
(SAVED_PC_AFTER_CALL): Moved here from tm-i386v.h.
(INNER_THAN): Moved here from tm-i386v.h.
(BREAKPOINT): Moved here from tm-i386v.h.
(DECR_PC_AFTER_BREAK): Moved here from tm-i386v.h.
(ABOUT_TO_RETURN): Moved here from tm-i386v.h.
(REGISTER_SIZE): Moved here from tm-i386v.h.
(NUM_REGS): Moved here from tm-i386v.h.
(REGISTER_NAMES): Moved here from tm-i386v.h.
(EXTRACT_STRUCT_VALUE_ADDRESS): Moved here from tm-i386v.h.
(FP_REGNUM): Moved here from tm-i386v.h.
(SP_REGNUM): Moved here from tm-i386v.h.
(PC_REGNUM): Moved here from tm-i386v.h.
(PS_REGNUM): Moved here from tm-i386v.h.
(FP0_REGNUM): Moved here from tm-i386aix.h.
(FPC_REGNUM): Moved here from tm-sun386.h.
(REGISTER_BYTES): Moved here from tm-i386aix.h.
(REGISTER_BYTE): Moved here from tm-i386aix.h.
(REGISTER_RAW_SIZE): Moved here from tm-i386aix.h.
(MAX_REGISTER_RAW_SIZE): Moved here from tm-i386aix.h.
(REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h.
(MAX_REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h.
(EXTRACT_RETURN_VALUE): Moved here from tm-i386aix.h.
(STORE_RETURN_VALUE): Moved here from tm-i386aix.h.
(REGISTER_VIRTUAL_TYPE): Moved here from tm-i386v.h.
(STORE_STRUCT_RETURN): Moved here from tm-i386v.h.
(FRAME_CHAIN): Moved here from tm-i386v4.h.
(FRAMELESS_FUNCTION_INVOCATION): Moved here from tm-i386v4.h.
(FRAME_SAVED_PC): Moved here from tm-i386os9k.h
(FRAME_ARGS_ADDRESS): Moved here from tm-i386v.h.
(FRAME_LOCALS_ADDRESS): Moved here from tm-i386v.h.
(FRAME_NUM_ARGS): Moved here from tm-i386sun.h.
(FRAME_ARGS_SKIP): Moved here from tm-i386v.h.
(FRAME_FIND_SAVED_REGS): Moved here from tm-i386v.h.
(PUSH_DUMMY_FRAME): Moved here from tm-i386v.h.
(POP_FRAME): Moved here from tm-i386v.h.
(print_387_control_word, print_387_status_word): Declare prototypes.
(struct frame_info, struct frame_saved_regs): Forward decls for
(SP_ARG0): Moved here from tm-i386v.h.
* config/i386/tm-i386v.h:
(i386/tm-i386.h): Include.
(IEEE_FLOAT): Remove.
(START_INFERIOR_TRAPS_EXPECTED): Undef before redefine to 4.
(i386_skip_prologue): Remove prototype.
(INNER_THAN): Remove.
(NUM_REGS): Undef before redefine to 16 (no FP support).
(REGISTER_NAMES): Undef before redefine.
(REGISTER_BYTES): Undef before redefine.
(REGISTER_BYTE): Undef before redefine.
(REGISTER_RAW_SIZE): Undef before redefine.
(REGISTER_VIRTUAL_SIZE): Undef before redefine.
(MAX_REGISTER_RAW_SIZE): Undef before redefine.
(MAX_REGISTER_VIRTUAL_SIZE): Undef before redefine.
(REGISTER_VIRTUAL_TYPE): Undef before redefine.
(STORE_STRUCT_RETURN): Undef before redefine.
(EXTRACT_RETURN_VALUE): Undef before redefine.
(STORE_RETURN_VALUE): Undef before redefine.
(FRAME_CHAIN): Undef before redefine.
(FRAME_SAVED_PC): Undef before redefine.
(FRAME_NUM_ARGS): Undef before redefine.
(POP_FRAME): Remove.
(CALL_DUMMY): Remove.
(print_387_control_word): Remove.
(print_387_status_word): Remove.
(SP_ARG0): Remove.
* config/i386/tm-symmetry.h:
(TM_SYMMETRY_H): Enclose file in test for define & define if needed.
(START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of
tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2.
(DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h
or tm-i386v.h, #undef, and #define to 0.
(FRAME_CHAIN): Remove.
(print_387_control_word, print_387_status_word): Remove prototypes.
* config/i386/tm-ptx.h:
(TM_PTX_H): Enclose file in test for define & define if needed.
(START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of
tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2.
(DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h
or tm-i386v.h, #undef, and #define to 0.
(SDB_REG_TO_REGNUM): Remove obsolete commented out define.
(print_387_control_word, print_387_status_word): Remove prototypes.
* config/i386/tm-linux.h:
(TM_LINUX_H): Enclose file in test for define & define if needed.
(i386/tm-i386.h): Include instead of tm-i386v.h.
* config/i386/tm-i386v4.h:
(TM_I386V4_H): Enclose file in test for define & define if needed.
(i386/tm-i386.h): Include instead of tm-i386v.h.
(FRAME_CHAIN): Moved to tm-i386.h.
(sigtramp_saved_pc): Define as i386v4_sigtramp_saved_pc.
* config/i386/tm-i386os9k.h:
(TM_I386OS9K_H): Enclose file in test for define & define if needed.
(i386/tm-i386.h): Include instead of tm-i386v.h.
(NUM_REGS): Undefine before redefining.
(FRAME_CHAIN): Remove.
(FRAME_SAVED_PC): Move to tm-i386.h.
* config/i386/tm-i386nw.h:
(TM_I386NW_H): Enclose file in test for define & define if needed.
(i386/tm-i386.h): Include instead of tm-i386v.h.
* config/i386/tm-i386bsd.h:
(TM_I386BSD_H): Enclose file in test for define & define if needed.
(i386/tm-i386.h): Include instead of tm-i386v.h.
* config/i386/tm-i386aix.h:
(i386/tm-i386.h): Include instead of tm-i386v.h.
(FP_REGNUM): Remove.
(SP_REGNUM): Remove.
(PC_REGNUM): Remove.
(PS_REGNUM): Remove.
(FP0_REGNUM): Moved to tm-i386.h.
(NUM_REGS): Remove.
(REGISTER_BYTES): Moved to tm-i386.h.
(REGISTER_BYTE): Moved to tm-i386.h.
(REGISTER_RAW_SIZE): Moved to tm-i386.h.
(MAX_REGISTER_RAW_SIZE): Moved to tm-i386.h.
(REGISTER_VIRTUAL_SIZE): Moved to tm-i386.h.
(EXTRACT_RETURN_VALUE): Moved to tm-i386.h.
(STORE_RETURN_VALUE): Moved to tm-i386.h.
* config/i386/tm-sun386.h:
(TM_SUN386_H): Enclose file in test for define & define if needed.
(i386/tm-i386.h): Include.
(INNER_THAN): Remove.
(NUM_REGS): Undefine before defining.
(REGISTER_NAMES): Undefine before redefining.
(REGISTER_BYTES): Undefine before redefining.
(REGISTER_BYTE): Undefine before defining.
(FP_REGNUM): Undefine before defining.
(PC_REGNUM): Undefine before defining.
(FPC_REGNUM): Undefine before defining.
(REGISTER_RAW_SIZE): Undefine before defining.
(FRAME_CHAIN): Undefine before defining.
(FRAMELESS_FUNCTION_INVOCATION): Undefine before defining.
(FRAME_SAVED_PC): Undefine before defining.
(FRAME_NUM_ARGS): Moved to tm-i386.h.
(FRAME_NUM_ARGS): Undefine before defining.
(POP_FRAME): Remove.
(struct frame_info, struct frame_saved_regs): Remove forward decls
for prototypes.
* config/i386/tm-i386lynx.h (i386/tm-i386.h): Include instead of
* config/i386/tm-i386m3.h (i386/tm-i386.h): Include instead of
* i386-tdep.c (i386_extract_return_value): Make function visible
for all i386 targets, but only assume floating point values returned
in floating point registers for I386_AIX_TARGET.
* i386v-nat.c (i386_register_u_addr): Enable code to locate
floating point regs in user struct.
Wed Nov 1 15:32:57 1995 Fred Fish <>
* breakpoint.c (breakpoint_re_set): Fix typo in comment.
* symtab.c (in_prologue): Document func_start and when it is zero
don't call SKIP_PROLOGUE (which typically leads unconditionally to
an error when we try to access a prologue at address 0).
Tue Oct 31 13:01:15 1995 Fred Fish <>
* elfread.c: Include elf-bfd.h rather than libelf.h.
Tue Oct 31 10:42:42 1995 steve chamberlain <>
* win32-nat.c (xlate_exception): Treat a stack overflow like a SEGV.
Sun Oct 29 11:22:05 1995 Fred Fish <>
* monitor.c: Include gnu-regex.h rather than system regex.h.
Sat Oct 28 23:51:48 1995 steve chamberlain <>
* defs.h: Test on name __WIN32__ rather than WIN32.
* inflow.c (new_tty): Likewise
* terminal.h: Likewise.
* utils.c (initialize_utils): Likewise.
* win32-nat.c (child_create_inferiror): Print error code when failing.
* config/i386/ (XM_CLIBS): Need -lkernel32.
Sat Oct 28 04:52:36 1995 Peter Schauer (
* symtab.h (enum address_class): Add LOC_UNRESOLVED for
a location whose address has to be resolved via the minimal
symbol table.
* buildsym.c (finish_block), findvar.c (symbol_read_needs_frame,
read_var_value), printcmd.c (address_info),
symmisc.c (print_symbol, print_partial_symbol): Handle
* stabsread.c (scan_file_globals): Change unresolved LOC_STATIC
symbols to LOC_UNRESOLVED. Remove rt_common_objfile lookup
kludge, global common symbols are now handled by LOC_UNRESOLVED.
(scan_file_globals_1): Move code back to scan_file_globals,
Fri Oct 27 09:54:07 1995 Stu Grossman (
* breakpoint.c (breakpoint_re_set): #ifdef GET_LONGJMP_TARGET
around calls to create_longjmp_breakpoint. Why install the
breakpoints if we can't find the longjmp target?
* infrun.c (wait_for_inferior): Cleanup comments near call test.
* remote-mips.c: Fixed a bunch of prototypes to avoid char/int
complaint from picky compilers. Add comment to mips_expect.
Replace all instances of sr_get_debug with remote_debug.
* (mips_readchar): Don't jam init string to monitor.
mips_initialize() handles that.
* (mips_receive_header): Print better message when we get too
much garbage.
* (mips_request): Allow caller to pass in buff to allow them to
analyze the returned message.
* (mips_initialize): Re-do initialization to try sending a BREAK,
a ^C, and then a download escape sequence. Cleanup protocol
startup. Eliminate sleeps. Clear breakpoints (if using monitor
breakpoints). Re-init frame.
* (mips_detach): Close down target.
* (mips_wait): Handle return status with registers, or breakpoint
* stuff.
* (mips_kill): Add ^C handling.
* (mips_insert_breakpoint mips_remove_breakpoint): Call new
breakpoint stuff if enabled.
* (calculate_mask remote_mips_set_watchpoint
remote_mips_remove_watchpoint remote_mips_stopped_by_watchpoint):
Hardware watchpoint/breakpoint stuff.
* (common_breakpoint): Common code for new monitor breakpoint commands.
* (mips_load): Don't use `prompt'. It's a global variable.
* top.c (dont_repeat_command): New command for use in
user-defined commands to suppress auto-repeat (by hittin return key).
* valops.c: Add start of auto function-call abandonment capability.
Thu Oct 26 22:02:27 1995 Stan Shebs <>
* Add support for PowerMac host, add beginnings
of native support.
* mpw-make.sed: Disable subdir recursion, edit out useless rule.
* mac-xdep.c (Values.h): Don't include.
(GestaltEqu.h): Include Gestalt.h instead.
(do_mouse_down): Comment out control tracking, needs to be
updated to use UPP before will work on PowerMac.
* config/xm-mpw.h: New file, all-Mac host support.
* config/m68k/xm-mpw.h: Move most definitions into generic Mac
* config/powerpc/xm-mpw.h: New file, PowerMac host support.
Thu Oct 26 15:21:32 1995 Brendan Kehoe <>
* regex.h: Renamed to gnu-regex.h.
* regex.c: Renamed to gnu-regex.c.
* (POSSLIBS): Refer to gnu-regex.h and gnu-regex.c.
(REGEX, REGEX1): Change to gnu-regex.o instead of regex.o.
(regex.o): Renamed to gnu-regex.o; refer to gnu-regex.c.
(irix5-nat.o, osfsolib.o, gnu-regex.o, solib.o, source.o, symtab.o):
* irix5-nat.c, osfsolib.c, gnu-regex.c, solib.c, source.c, symtab.c):
Include "gnu-regex.h" instead of "regex.h".
* alpha-tdep.c (in_prologue): Rename to alpha_in_prologue, to
avoid conflicts with symtab.h.
Tue Oct 24 18:30:18 1995 Jason Molenda (
* config/pa/ Remove hardcoding of X locations.
* Use X11_CFLAGS, X11_LDFLAGS and X11_LIBS.
* Link X statically on Solaris, SunOS and HPUX.
Tue Oct 24 12:26:14 1995 Stu Grossman (
* monitor.c (monitor_expect_regexp): Same as monitor_expect, but
with the obvious extension.
(monitor_read_memory_single): Use regexp for getmem.resp_delim
because of parsing ambiguities caused by certain monitors.
(monitor_read_memory): Use new regexp stuff to parse
* monitor.h (struct memrw_cmd->resp_delim): Document this as a
* sh3-rom.c: Finish off table. Use new regexp capability for
getmem commands.
* infrun.c (wait_for_inferior): Disable questionable code near
the step range test. Replace call detection test with much
simpler (and more efficient) test that doesn't require prologue
examination (as often).
* symtab.c symtab.h (in_prologue): New function that indicates
whether or not we are in a function prologue. This uses the
symbol table, and then falls back to prologue examination if that
fails. It's much more efficient for remote debugging because it
avoids examining memory, which is very slow. This is used in
wait_for_inferior to determine if we've made a function call that
needs to be skipped over (for next/nexti).
* mips-tdep.c (after_prologue): New function, returns the PC
after the prologue. Uses PDRs and the symbol table.
(mips_find_saved_regs): Use in_prologue() to avoid costly
prologue examination if possible.
(mips_skip_prologue): Use after_prologue() if possible to avoid
costly prologue examination.
Mon Oct 23 16:03:33 1995 James G. Smith <>
* (configdirs): Added support for the VR4300 default
builds (mips64*vr4300*el-*-elf*, mips64*vr4300*-*-elf*).
* configure: Regenerated.
* remote-mips.c (mips_load): Updated the prompt spotting code to
make use of the TARGET_MONITOR_PROMPT manifest.
Sat Oct 21 06:11:49 1995 Peter Schauer (
* alpha-tdep.c, mips-tdep.c (init_extra_frame_info):
Do not set saved registers from heuristics for a sigtramp frame.
* dwarfread.c (enum_type): Determine signedness of enum type
from enumerators.
* mips-tdep.c: Include gdb_string.h, gcc -Wall lint.
* rs6000-nat.c (xcoff_relocate_core): Fix typo.
* valops.c (value_repeat): Fix length of memory transfer to
match recent allocate_repeat_value change.
Thu Oct 19 19:04:35 1995 Per Bothner <>
* gdbtypes.c (get_discrete_bounds): Fix typo.
Thu Oct 19 12:15:37 1995 Stan Shebs <>
* defs.h (SEEK_SET, SEEK_CUR): Add default definitions.
* dbxread.c, mdebugread.c, os9kread.c (SEEK_SET, SEEK_CUR):
Remove default definitions.
* (CC-LD): Rename to CC_LD, so MPW xform works.
(MMALLOC_SRC): Define.
(ser-mac.o): Add rule.
* dwarfread.c, somread.c, ultra3-nat.c, xcoffread.c: Replace L_SET
with SEEK_SET in all calls to bfd_seek.
* scm-tags.h (scm_tags): Remove excess comma.
* Adapt to work with autoconf'ed configury;
build config.h, add empty definitions to mk.tmp.
(powerpc-apple-macos): Make it work.
* mpw-make.sed: New file, sed commands to translate Unix makefile
into MPW syntax.
* Remove.
* mac-gdb.r: New file, was macgdb.r, renamed for consistency
with other tools, now includes cfrg resource.
* macgdb.r: Remove.
* config/m68k/xm-mpw.h: Remove most of contents, replace with
include of include/mpw/mpw.h.
Tue Oct 17 10:38:53 1995 Jeffrey A Law (
* hppa-tdep.c (frame_chain): Fix more obscure problems caused
by system calls that core dump processes without saving all
the register state.
* config/pa/ (XDEPFILES): Remove bogus definition.
* config/pa/ (XDEPFILES): Likewise.
Tue Oct 17 08:04:26 1995 Fred Fish <>
* NEWS: Fix typo.
Mon Oct 16 18:24:03 1995 Jim Wilson <>
* config/sh/tm-sh.h (REGISTER_VIRTUAL_TYPE): Return builtin_type_float
for FP registers.
(REGISTER_NAMES): Add FP register names. Remove ticks, stalls, cycles,
insts, plr, and tlr.
(NUM_REGS, NUM_REALREGS): Increase from 23 to 41.
(FPUL_REGNUM, FP0_REGNUM): New macros.
Mon Oct 16 11:27:06 1995 Stu Grossman (
* remote-mips.c: Add support for speedy (about 10x faster)
* remote-array.c: Move baud_rate initialization from
_initialize_array to array_open. It was forcing the baud rate of
all targets to be 4800 baud! Seems like I've fixed this before...
* config/mips/ (TDEPFILES): Remove remote-array.o. This
has *nothing* to do with IDT!!!
* sh3-rom.c config/sh/ config/sh/tm-sh.h: Add
sh3 monitor support.
* monitor.c: Cleanup regexp compilation stuff to make it easier
to use several regexps.
* monitor.h: Get rid of struct rom_cmd_data. It's no longer used.
* config/m68k/tm-monitor.h: Don't redefine NUM_REGS here. It just
causes GDB to crash.
* sparcl-tdep.c: Cleanup serial error handling.
Sun Oct 15 16:19:27 1995 Stan Shebs <>
* rs6000-tdep.c: Don't include a.out.h, improve some formatting.
Fri Oct 13 15:27:49 1995 Stu Grossman (
* dcache.c: Change default value of remotecache to off. It just
screws up too many targets.
* sparcl-stub.c: Add prototypes to many forward decls.
* Create private copies of strlen, strcpy, and memcpy to prevent
chaos when user steps into them.
* (trap_low handle_exception): Clean up DSU support code
(hardware breakpoints). Move lots of stuff from asm-land to
C-land (make it much easier to #ifdef if necessary). Also, use
trap 255 to get into break mode instead of doing a DSU register
write, which may trash the register.
* (putpacket): Don't check return value of putDebugChar. It
returns void...
Fri Oct 13 14:16:17 1995 steve chamberlain <>
* remote-sim.h: Always include callback.h.
(sim_set_callbacks): New declaration.
Fri Oct 13 10:57:40 1995 Jeffrey A Law (
* somsolib.c (som_solib_add): Just give a warning if a file
mentioned in the dld_list can't be found.
* config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP): Dig out
the PC from the PC queues rather than %r31.
Thu Oct 12 13:36:15 1995 Jeffrey A Law (
* corelow.c (core_open): Don't update the to_sections and
to_sections_end fields in core_ops here. It's too late.
* irix5-nat.c (solib_add): Update the to_sections and
to_sections_end fields in core_ops here if needed.
* osfsolib.c (solib_add): Likewise.
* rs6000-nat.c (xcoff_relocate_core): Likewise.
* solib.c (solib_add): Likewise.
* somsolib.c (solib_add): Likewise.
Wed Oct 11 17:25:59 1995 Fred Fish <>
* (VERSION): Bump version to 4.15.1
Tue Oct 10 15:26:39 1995 Fred Fish <>
* (VERSION): Version 4.15 released.
* README: Updated for version 4.15.
* NEWS: Updated for 4.15 release.
Tue Oct 10 13:18:50 1995 Fred Fish <>
* configure: Regenerate
* (BISON): Remove macro definition.
(YACC): Set from autoconfig.
Tue Oct 10 12:25:11 1995 steve chamberlain <>
* win32-nat.c (child_create_inferior): Pass argv correctly.
* (win32-nat.o): Add dependencies.
Mon Oct 9 14:36:29 1995 steve chamberlain <>
* NEWS: Add information about win32 and arm code.
* win32-nat.c: Renamed from win32.c.
* config/i386/ Renamed from config/i386/
* config/i386/ Renamed from config/i386/
* config/i386/tm-win32.h: Renamed from config/i386/tm-i386win32.h.
* config/i386/xm-win32.h: Renamed from config/i386/xm-i386win32.h.
* (i[345]86-*-win32): Updated to cope with filename
* configure: Regenerated.
Sun Oct 8 18:01:04 1995 Per Bothner <>
* ch-exp.y (yylex): Also look for '$' following '$'.
Sat Oct 7 22:52:42 1995 Michael Meissner <>
* ch-exp.y (yylex): Fix typo.
Fri Oct 6 11:56:49 1995 Jim Wilson <>
* remote-sim.c (gdbsim_open): Put callback initializations here.
(_initalize_remote_sim): Not here.
Fri Oct 6 17:08:49 1995 Stan Shebs <>
* top.c (execute_control_command): Use 0/1 instead of BFD's
Fri Oct 6 14:43:19 1995 Stu Grossman (
* sparcl-stub.c: Include sparclite.h to get access to register
fondling macros.
* (trap_low): Save and restore FP regs if necessary. Also, clean
up save and restore of debug unit regs.
* (hard_trap_info): Add more architecturally defined traps.
* (set_debug_traps): Only set FP disabled trap if FP is disabled.
* (get_in_break_mode): Clean up. Get rid of calls to
set_hw_breakpoint_trap(). Also, use write_asi macro.
* (handle_exception): Clean up `g' and `G' commands. Add `P'
* (hw_breakpoint): Why was this here!? It's gone now...
Fri Oct 6 11:56:49 1995 Jim Wilson <>
* callback.c (fdbad): Fix typo in comment.
(os_close, os_isatty, os_lseek, os_read, os_write): Use if
statements rather than || to get correct return value.
(os_write_stdout): Pass missing first argument to os_write.
* remote-sim.c: Include callback.h.
(_initialize_remote_sim): Call sim_set_callbacks and then
initialize the callbacks.
Thu Oct 5 17:28:09 1995 Per Bothner <>
* values.c (allocate_repeat_value): Allocate an array type, and
a value of that type; use that instead of setting VALUE_REPEATED.
* value.h (struct value): Remove fields repetitions and repeated.
(VALUE_REPEATED, VALUE_REPETITIONS): Removed, no longer used.
* c-valprint.c, ch-valprint.c, eval.c, printcmd.c, valops.c,
value.h, values.c: Simplify, since now VALUE_REPEATED is never
* valprint.c (value_print_array_elemen): Removed never-used
Thu Oct 5 15:14:36 1995 Per Bothner <>
* parse.c (write_dollar_variable): New function.
* c-exp.y (yylex): Replace code for recognizing '$'
pseudo-variables with a call to write_dollar_variable.
Simplify grammar correspondingly.
* f-exp.y: Likewise.
* m2-exp.y: Likewise.
* ch-exp.y: Likewise. (Remove function match_dollar_tokens.)
* scm-exp.c (scm_lreadr): Call write_dollar_variable to handle '$'.
Thu Oct 5 13:27:30 1995 steve chamberlain <>
* win32.c: New file; support for debugging on windows NT.
* (i[345]86-*-win32): New target.
* configure: Regnerated.
* eval.c (evaluate_subexp_standard): Remove unused name.
* serial.c (gdb_string.h): Include.
* source.c (value.h): Include.
* config/i386/ (XDEPFILES): Add win32.o
* config/i386/ New.
* config/i386/tm-i386win32.h: New.
Wed Oct 4 18:41:34 1995 Per Bothner <>
* expression.h (enum exp_code): Added OP_NAME.
* expprint.c (print_subexp): Add OP_NAME support.
* parse.c (length_of_subexp, prefixify_subexp): Likewise.
* scm-lang.c (scm_unpack, in_eval_c, scm_lookup_name): new function.
* scm-lang.h: Declare builtin_type_scm; other minor tweaks.
* values.c (unpack_long): If type is SCM, call scm_unpack.
* scm-valprint.c (scm_val_print): Use extract_signed_integer,
instead unpack_long
* scm-lang.c: More Scheme expression parsing from here ...
* scm-exp.c: ... to here. New file.
Also, provide for gdb to evaluate simple constants and names..
* Note new scm-exp.{c,o}.
Wed Oct 4 17:23:03 1995 Per Bothner <>
* gdbtypes.c (get_discrete_bounds): New function.
(force_to_range_type): Use get_discrete_bounds.
* gdbtypes.h (get_discrete_bounds): Add declaration.
* valarith.c (value_bit_index): Generalize to use get_discrete_bounds.
* ch-valprint.c (chill_val_print): Make (power)sets and bitstring
support use get_discrete_bounds and generally be more robust.
Tue Oct 3 16:54:56 1995 Stan Shebs <>
* remote-nrom.c (nrom_ops): Add value for to_thread_alive,
add comments naming slots.
Mon Oct 2 21:45:44 1995 Jeff Law (law@hurl)
* top.c (build_command_line): Demand arguments for if/while
Mon Oct 2 13:08:01 1995 Jason Molenda (
* (X11_CFLAGS): Set only to @X_INCDIR@.
Sat Sep 30 16:13:36 1995 Per Bothner <>
* scm-lang.c: Moved Scheme value printing code to ...
* scm-valprint.c: ... this new file.
Also major improvements in support for printing SCM values.
* scm-lang.h: New file.
* scm-tags.h: New file.
* Note new scm-valprint.{c,o}.
Sat Sep 30 09:35:02 1995 Jason Molenda (
* X_INCDIR and X_LIBDIR added.
* @X_INCDIR@ and @X_LIBDIR@ added.
* configure: Regnerated.
Fri Sep 29 02:10:05 1995 steve chamberlain <>
* config/arm/tm-arm.h (FRAME_CHAIN, FRAME_CHAIN_VALID):
Any pc > LOWESTPC is ok.
* remote-rdp.c (rdp_init): Take out variable baud rate stuff.
(remote_rdp_detatch): Delete.
* breakpoint.c (ctype.h): Don't include twice.
* (remote-rdp.o): Doesn't need remote-rdp.h
* callback.c (os_printf_filtered): fix protos.
* defs.h (puts_filtered, puts_unfiltered
[v|f|]printf_[un]filtered): Make format arg const.
* remote-rdp.c (rdp_init): Attept to sync at different
* utils.c (puts_filtered, puts_unfiltered
[v|f|]printf_[un]filtered): Define prototypes with
const in the right place.
Thu Sep 28 17:43:39 1995 Per Bothner <>
* defs.h (enum language): Add language_scm.
* expression.h (enum exp_code): Added OP_EXPRSTRING.
* scm-lang.c: Preliminary support for Guile /SCM dialect of Scheme.
* expprint.c (print_subexp): Add OP_EXPRSTRING support.
* parse.c (length_of_subexp, prefixify_subexp): Likewise.
* valops.c (find_function_in_inferior): New function.
(value_allocate_space_in_inferior): New function.
(allocate_space_in_inferior): Redefine using previous function.
* (SFILES): Add scm-lang.c.
(COMMON_OBS): Add scm-lang.o
Thu Sep 28 14:32:11 1995 steve chamberlain <>
* callback.[ch]: New files.
* remote-rdp.c: Support for the ARM RDP monitor.
* Makefile: Update.
* arm-tdep.c (arm_othernames): New.
(_initialize_arm_tdep): install 'othernames' command.
(arm_nullified_insn, shifted_reg_val, arm_get_next_pc): New.
* Check for termios.h, termio.h and sgtty.h.
(i[345]86-*-win32*): New host.
* configure: Regenerated.
* inflow.c: Clean up inclusions.
* main.c (main): Check for WINGDB, not WIN32.
* printcmd.c (do_examine): Put QUIT test in loop.
* remote-hms.c (e7000_load): Delete.
(hms_ops): Point to generic_load instead.
* remote-hms.c (hms_ops): Point to generic_load.
* remote-sim.c (sim_callback_write_stdout): Becomes
(gdbsim_load): Call generic_load.
* remote-utils.c (gr_load_image): Delete.
* ser-unix.c (terminal.h): Include instead of havig
own #if tree.
(hardwire_flush_input): Reset input buffer too.
* source.c (openp): If WIN32 then open file in binary mode.
* terminal.h: Configure IO mechanism using autoconf defines if
available and not overriden.
* utils.c (quit, pollquit, notice_quit): WIN32 check becomes
WINGDB check.
* config/arm/ (TDEPFILES): Add remote-rdp.o.
* config/arm/tm-arm.h (TARGET_BYTE_ORDER): becomes
(INST_xx): New.
(FRAME_FIND_SAVED_REGS): Pass the right argument.
(arm_get_next_pc): Declare.
Wed Sep 27 10:14:36 1995 Per Bothner <>
* valops.c (search_struct_field): Also allow "else" as a variant
* eval.c (evaluate_struct_tuple): New function. Used to evaluate
structure tuples. Now also handles Chill variant records.
(get_label): New function, used by evaluate_struct_tuple.
(evaluate_subexp_standard case OP_ARRAY): Use evaluate_struct_tuple.
(evaluate_labeled_field_init): Removed.
* valops.c (search_struct_field): Generalize to work with Chill
variant records.
Sat Sep 23 01:22:23 1995 Peter Schauer (
* mdebugread.c (parse_partial_symbols): Reset includes_used
and dependencies_used after finishing the partial symbol table.
* rs6000-tdep.c (push_dummy_frame): Handle lr_offset of zero
* rs6000-nat.c (xcoff_relocate_core): Don't relocate data
addresses for the main objfile if DONT_RELOCATE_SYMFILE_OBJFILE
is defined.
* xcoffread.c: gcc -Wall lint. Remove traceback table reading
code. The existing code tried to add parameter information for
functions compiled without -g, which cannot be done properly
for optimized code and produced misleading parameter displays.
(ef_complaint, eb_complaint): Make a local static copy to avoid
dependency on coffread.c.
(read_xcoff_symtab, process_xcoff_symbol, scan_xcoff_symtab):
Enter C_EXT/C_HIDEXT symbols into the minimal symbol table only.
(read_xcoff_symtab): Ignore C_STAT section auxiliary entry
symbols. Complain about unmatched .ef and .eb symbols instead of
(process_xcoff_symbol): Determine value of C_GSYM symbols via
the global_sym_chain mechanism in stabsread.c.
(xcoff_new_init): Call stabsread_new_init and buildsym_new_init.
(init_string_tab): Initialize length field bytes in the strtbl.
(scan_xcoff_symtab): Skip symbols that start with `$' or `.$'.
Set first_fun_line_offset for symbols with two auxents only.
Wed Sep 20 21:06:35 1995 Jeff Law (
* op50-rom.c (op50n_cmds): Send ".\r" after the interrupt
Wed Sep 20 13:12:56 1995 Ian Lance Taylor <>
* (maintainer-clean): New target, synonym for
realclean. Add GNU standard maintainer-clean echos.
* gdbserver/ (maintainer-clean): New target, synonym
for realclean.
* nlm/ (maintainer-clean): Likewise.
Wed Sep 20 08:16:03 1995 steve chamberlain <>
* defs.h (xmalloc, xrealloc): Delete, they're declared in libiberty.h.
* doc/gdbint.texinfo (GETENV_PROVIDED, FCLOSE_PROVIDED): Document.
* remote-sim.[ch] (sim_callback_write_stdout): New.
Tue Sep 19 15:28:58 1995 Per Bothner <>
* gdbtypes.c (create_set_type): Set TYPE_LENGTH in bytes, not bits.
* valops.c (value_bitstring): TYPE_LENGTH is bytes, not bits.
* gdbtypes.c (force_to_range_type): Calculate upper limit of
TYPE_CODE_CHAR depending on TYPE_LENGTH (instead of just using 255).
Mon Sep 18 01:43:42 1995 Jeff Law (
* somsolib.c (auto_solib_add_at_startup): Delete definition. No
longer needed.
Sat Sep 16 13:23:36 1995 Peter Schauer (
* config/mips/tm-mips.h (UNUSED_REGNUM): Define.
* mipsv4-nat.c (supply_gregset): Fill UNUSED_REGNUM register
with zero.
Thu Sep 14 17:35:24 1995 Stu Grossman (
* remote-sim.c (gdbsim_create_inferior): Back out change that
broke all simulator configurations except the rs6000.
Thu Sep 14 14:44:59 1995 Jeffrey A. Law <>
* monitor.c (monitor_expect): Discard NULL characters.
Thu Sep 14 14:12:30 1995 Kung Hsu <>
* infcmd.c: Add extern declaration for auto_solib_add_at_startup.
Wed Sep 13 13:33:58 1995 Kung Hsu <>
* symfile.c: Move global variable auto_solib_add_at_startup from
solib.c to symfile.c.
* solib.c: ditto.
* symfile.h: Add extern declaration of the above mentioned variable.
* infcmd.c: Take out extern declaration, since it's in symfile.h.
Thu Sep 14 12:39:35 1995 Stu Grossman (
* coffread.c (coff_symtab_read): Complain about unmatched .ef and
.eb symbols instead of segfaulting.
Wed Sep 13 13:33:58 1995 Kung Hsu <>
* stabsread.c (read_one_struct_field): Use subfile language instead of
global language. Improve efficiency.
Wed Sep 13 08:45:02 1995 Jeff Law (
* somsolib.c (auto_solib_add_at_startup): Define new global variable.
(som_solib_create_inferior_hook): Don't add libraries if
auto_solib_add_at_startup is zero.
(_initialize_som_solib): Add command to toggle
Tue Sep 12 19:37:24 1995 Jeff Law (
* monitor.c (monitor_make_srec): Fix thinkos in computation
of addr_size.
Tue Sep 12 15:46:18 1995 Kung Hsu <>
* stabsread.c (read_one_struct_field): Add a patch to handle cfront
generated stabs that each field is in full mangled name.
* stabsread.c: To include language.h and expression.h for the reason
* infcmd.c (attach_command): Add solibs only when
auto_solib_add_at_startup is set.
Mon Sep 11 17:22:35 1995 Fred Fish <>
* NEWS: Add information about remote target caching.
Sun Sep 10 15:36:21 1995 Fred Fish <>
* defs.h: Only include mmalloc.h if NO_MMALLOC is not
Sun Sep 10 10:24:48 1995 Michael Tiemann <>
* tm-ppc-eabi.h (PC_IN_CALL_DUMMY): Redefine this to work with the
simulator. FIXME.
* rs6000-tdep.c (push_dummy_frame): Calculate the correct link
register offset from the current frame (don't assume it is always 8).
(push_dummy_frame): Add comment about having only 4096 bytes of
stack space in the simulator (by default).
* remote-sim.c (gdbsim_create_inferior): Call
`add_text_to_loadinfo' so that gdb can find TOC entries when
calling functions in the inferior.
Sun Sep 10 09:00:28 1995 Peter Schauer (
* sparc-tdep.c (fill_fpregset): Fix incorrect FP_MAX_REGNUM
(supply_fpregset): Use FP_MAX_REGNUM.
Sat Sep 9 08:21:52 1995 Peter Schauer (
* stabsread.c (read_enum_type): Exit loop for putting pending
enum symbols into the enum type correctly if we had no pending
symbols on entry to read_enum_type.
Fri Sep 8 12:57:41 1995 Kung Hsu <>
* inferior.h: Add extern declaration of inferior_environ.
* solib.c (solib_map_sections): To get inferior's env instead of
gdb's for LD_LIBRARY_PATH, same for PATH.
* solib.c (solib_map_sections): Copy full path name into so_list
structure so that symbol_file_add can find it.
Tue Sep 5 17:47:53 1995 Doug Evans <>
* config/sparc/tm-sp64.h (REGISTER_RAW_SIZE): Lower 32 fp regs
have size 4.
(REGISTER_VIRTUAL_TYPE): Lower 32 fp regs have type float.
Upper 32 fp regs have type double.
* sparc-tdep.c (NUM_SPARC_FPREGS): Replace with
(FP_REGISTER_BYTES): this, and update all uses.
(FP_MAX_REGNUM): Define if not already.
(get_saved_register): Handle new sparc64 fp regs.
(sparc_frame_find_saved_regs): Likewise.
(sparc_print_register_hook): Only print fp regs < 32 as doubles.
Add code to handle long doubles when gdb does.
(_initialize_sparc_tdep): Use print_insn_sparc64 if sparc64.
Sat Sep 2 06:41:26 1995 Peter Schauer (
* Explicitly `exit 0' for broken shells.
* configure: Rebuilt.
* symtab.c (list_symbols): Add missing blank after
`<function, no debug info>' output.
* valops.c (value_assign): Handle truncation when assigning
to bitfields. Use value_copy to construct the return value
from toval.
* values.c (value_copy): Copy VALUE_FRAME and VALUE_OPTIMIZED_OUT.
Fri Sep 1 08:25:50 1995 James G. Smith <>
* configure (mips64*vr4300*-*-elf): Support added.
* remote-mips.c (mips_readchar): Change to allow build-time prompt
* config/mips/tm-mips.h: Added TARGET_MONITOR_PROMPT.
* config/mips/{,, tm-vr4300.h,
tm-vr4300el.h}: Added.
Thu Aug 31 12:48:04 1995 Jim Wilson <>
* config/sh/ (SIM): Add -lm.
Wed Aug 30 18:10:57 1995 Kung Hsu <>
* rmote-nindy.c (non_dle, nidy_resume, nindy_wait): Changes to
conform to GNU coding standards.
* solib.c (match_main): Modify to follow GNU coding conventions.
Mon Aug 28 17:07:26 1995 Kung Hsu <>
* remote.c (remote_wait): Revert 19 July my change which should be
customer specific.
Sat Aug 26 00:26:11 1995 Peter Schauer (
* mdebugread.c (parse_symbol): Handle sh.value of zero for enums.
Determine signedness of enum type from enumerators.
(parse_type): Handle btIndirect types, handle fBitfield for
some non-member types.
(upgrade_type): Use TYPE_FLAG_TARGET_STUB for arrays with
unknown length.
(cross_ref): Handle stIndirect forward reference to btTypedef.
* stabsread.c (read_enum_type): Determine signedness of enum
type from enumerators.
* top.c (execute_command): Remove trailing whitespace from
command arguments, except for `set' and `complete' commands.
(validate_comname): Allow underscores in user defined command
* values.c (modify_field): Change `Value does not fit in %d bits'
error to a warning. Exclude sign extension bits of negative field
values from fit check.
Fri Aug 25 11:31:29 1995 Michael Meissner <>
* (powerpc*-*-eabisim*): Only link in the simulator
if the target is powerpc{,le}-*-eabisim*, since the simulator
needs GCC to build.
* config/powerpc/ppc{,le} Cloned from ppc{,le}
* config/powerpc/ppc{,le} Remove simulator support.
* config/powerpc/tm-ppc{,le} Include tm-ppc{,le}-sim.h.
Wed Aug 23 16:55:35 1995 Michael Meissner <>
* config/powerpc/ppc{,le} (SIM_OBJS, SIM): Link in the
PowerPC simulator.
Tue Aug 22 02:00:47 1995 Jeff Law (
* tm-hppa.h (EXTRACT_RETURN_VALUE): Fix for FP values.
* tm-hppa.h (STORE_RETURN_VALUE): Fix to work with -msoft-float
calling conventions too. Use the TYPE of the return value, not
its length to determine if it should also be copied into the
floating point registers.
* tm-hppa.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete. Causes more
problems than it fixes.
* hppa-tdep.c (skip_prologue): If we exit the main loop without
finding all the register saves, retry again without looking for
the registers we could not find the first time.
Mon Aug 21 23:39:56 1995 Jeff Law (
* hppa-tdep.c (frame_chain_valid): Handle systems where "$START$"
calls "main" directly.
(skip_prologue): Always assume arguments were saved into the stack
since GCC will do so without setting the magic Args_Saved bit in
the unwind descriptor.
Mon Aug 21 11:49:17 1995 Kung Hsu <>
* remote-udi.c (udi_wait): Mask off high bits of stop reason.
* remote-udi.c (fetch_register): For unfetchable regs, pretend it's
done. Fix a bug.
Mon Aug 21 00:45:17 1995 Jeff Law (
* (install): Remove "brokensed" hack, unnecessary now
that we're using autoconf.
(uninstall): Likewise.
Sat Aug 19 01:19:34 1995 Peter Schauer (
* gdbtypes.c (recursive_dump_type): Add dont_print_type_obstack
to inhibit infinite recursion when printing aggregate types.
Fri Aug 18 17:48:55 1995 steve chamberlain <>
* dcache.c (dcache_write_line): Write dirty lines right.
Fri Aug 18 06:26:56 1995 Peter Schauer (
* sparc-tdep.c (isbranch): Fix typo which caused wrong
target addresses for annulled branches.
Wed Aug 16 21:54:39 1995 Jeff Law (
* config/pa/tm-hppa.h (PROLOGUE_FIRSTLINE_OVERLAP): Define.
Tue Aug 15 07:51:21 1995 steve chamberlain <>
* remote.c (remote_write_bytes): Chop up large transfers.
Mon Aug 14 17:56:36 1995 Stan Shebs <>
* gcc.patch: Remove, relevant only to long-ago versions of GCC.
Mon Aug 14 13:43:01 1995 Kung Hsu <>
* config/sparc/tm-sparclite.h: Define FRAME_CHAIN_VALID_ALTERNATE.
* blockframe.c (inside_main_func): If main func addr range not set,
try to set it now.
Sat Aug 12 15:34:54 1995 Jeffrey A. Law <>
* config/powerpc/xm-aix.h (FIVE_ARG_PTRACE): Define.
* config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
* Recognize aix4 specially as some aspects
of aix4 need different handling than aix3.
* configure: Updated.
* config/powerpc/{,,tm-ppc-aix4.h}: New files
specific to aix4 support on the power pc.
* config/powerpc/tm-ppc-aix.h (DONT_RELOCATE_SYMFILE_OBJFILE): Do
not defined. The aix4 specific target files will do that.
* config/rs6000/{aix4,mh,aix4,mt,tm-rs6000-aix4.h}: New files
specific to aix4 support on the rs6000.
* config/rs6000/tm-rs6000.h (CONVERT_FROM_FUNC_PTR_ADDR): Don't
do the conversion if the pointer is not a magic aix function
* rs6000-tdep.c: Include objfiles.h and symtab.h.
(is_magic_function_pointer): New function.
* rs6000-tdep.c (skip_prologue): Refine check for frameless
functions. Handle b .+4 emitted by aix4 compilers. Only
allow one load of a minimal toc pointer. Handle aix4 compiler's
code for alloca.
* rs6000-tdep.c (find_toc_address): Report an error if no toc was
found rather than possibly core dumping.
* partial-stab.h: Handle extra field generated by the aix4 compiler
for enumerations.
* stabsread.c (read_enum_type): Likewise.
Sat Aug 12 03:18:04 1995 Peter Schauer (
* rs6000-tdep.c (extract_return_value): Fix returning of values
whose length is less than the register size for big endian targets.
Fri Aug 11 13:04:32 1995 Kung Hsu <>
* symtab.c (list_symbols): if break command set breakpoint on
matched symbol.
Wed Aug 9 18:59:05 1995 Fred Fish <>
* defs.h (strchr, strrchr, strstr, strtok, strerror): Enclose in
#ifndefs to protect against previous definitions as macros.
Wed Aug 9 14:51:36 1995 Kung Hsu <>
* xcoffread.c (xcoff_symfile_offset): Revert an unwanted change
that got in accidentally with Aug 1 change.
Sat Aug 5 09:07:28 1995 steve chamberlain <>
* remote-hms.c (hms_cmds): Get reg term right.
* monitor.c (monitor_fetch_register): If we see
a non-hex digit, just stop reading.
* remote.c (remote_wait): Change way $O is handled.
Wed Aug 9 11:42:36 1995 Jeffrey A. Law <>
* (powerpc-*-aix*): Recognize as a new gdb host
and target.
(powerpc-*-eabi*): Don't set configdirs.
(powerpcle-*-eabi*): Likewise.
* configure: Updated.
* rs6000-nat.c (vmap_ldinfo): Don't relocate data addresses
for the main objfile if DONT_RELOCATE_SYMFILE_OBJFILE is
* config/powerpc/{,}: Host and target makefile fragments
for powerpc running aix4.
* config/powerpc/{nm-aix.h, tm-ppc-aix.h, xm-aix.h}: Native, target
and host include files for powerpc running aix4.
Wed Aug 9 08:11:45 1995 Stan Shebs <>
* top.c (target_output_hook): Really make it match defs.h (char *
is not the same as unsigned char *).
Tue Aug 8 15:13:05 1995 J.T. Conklin <>
* (CXX_FOR_TARGET): Don't use ${rootme}/../gcc/xgcc
unless it is present.
Tue Aug 8 10:50:15 1995 Jeffrey A. Law <>
* top.c (target_output_hook): Make declaration match the one
in defs.h.
* symfile.c (add_psymbol_to_list): Initialize SYMBOL_SECTION.
(add_psymbol_addr_to_list): Likewise.
* symfile.h (ADD_PSYMBOL_VT_TO_LIST): Likewise.
Mon Aug 7 15:34:29 1995 steve chamberlain <>
* top.c (target_output_hook): New definition.
* stack.c (gdb_string.h): Include after defs.h
* defs.h (target_output_hook): New declaration.
* source.c (mod_path): Fix Win32 \ handling.
Sun Aug 6 22:14:25 1995 Jeff Law (
* hppa-tdep.c (frame_saved_pc): Don't try to dig a return pointer
out of a long branch stub.
Fri Aug 4 13:37:31 1995 Jeffrey A. Law <>
* xcoffread.c (process_linenos): Fix typo in last change.
Thu Aug 3 22:01:26 1995 Fred Fish <>
* ch-exp.y (write_lower_upper_value): Add prototype so bison
generated parser will insert prototype before first func usage.
Bison and byacc order the output sections differently. Also
make function static.
Thu Aug 3 10:45:37 1995 Fred Fish <>
* Update all FSF addresses except those in COPYING* files.
Thu Aug 3 01:38:45 1995 Peter Schauer (
* config/alpha/tm-alpha.h (EXTRA_FRAME_INFO): Add pc_reg field.
* alpha-tdep.c (alpha_frame_saved_pc): Use pc_reg field from
frame to find the saved pc register.
(alpha_saved_pc_after_call): Skip over shared library trampoline
before trying to find the saved pc register.
(find_proc_desc): Copy PROC_PC_REG from found proc_desc
to heuristic proc_desc.
(init_extra_frame_info): Initialize pc_reg field in frame.
Wed Aug 2 18:00:36 1995 Stan Shebs <>
* (m68*-est-*): Use monitor target config.
* configure: Update.
* config/m68k/, config/m68k/tm-est.h: Delete.
* config/m68k/, config/m68k/tm-monitor.h: Fix comments.
Tue Aug 1 22:52:53 1995 Fred Fish <>
* (VERSION): Bump to 4.14.2
Tue Aug 1 16:04:36 1995 Kung Hsu <>
* xcoffread.c (process_linenos): The value in include file symbol
should point to line number table. Currently this value is not
set correctly by AIX ld. A fix to get around this bug.
Tue Aug 1 11:44:53 1995 J.T. Conklin <>
* Check for working mmap, ansi headers, string.h,
strings.h, and memory.h.
* configure: Regenerated.
* gdb_stat.h: New file, "portable" <sys/stat.h>.
* gdb_string.h: New file, "portable" <string.h>.
* altos-xdep.c, arm-tdep.c, arm-xdep.c, convex-tdep.c,
convex-xdep.c, coredep.c, cxux-nat.c, dbxread.c, exec.c,
gould-xdep.c, hppa-tdep.c, i386aix-nat.c, i386b-nat.c,
i386mach-nat.c, i386v-nat.c, infptrace.c, m88k-nat.c, main.c,
mdebugread.c, objfiles.c, os9kread.c, procfs.c, pyr-xdep.c,
rs6000-nat.c, source.c, standalone.c, stuff.c, sun386-nat.c,
symfile.c, symm-nat.c, symm-tdep.c, symtab.c, top.c, ultra3-nat.c,
ultra3-xdep.c, umax-xdep.c, xcoffread.c: Include "gdb_stat.h"
instead of <sys/stat.h>.
* alpha-tdep.c, breakpoint.c, buildsym.c, c-typeprint.c,
ch-typeprint.c, coffread.c, command.c, core-sol2.c, core-svr4.c,
core.c, corelow.c, cp-valprint.c, dbxread.c, dcache.c, demangle.c,
dpx2-nat.c, dstread.c, dwarfread.c, elfread.c, environ.c, eval.c,
exec.c, f-lang.c, f-typeprint.c, f-valprint.c, findvar.c,
fork-child.c, gdbtypes.c, hpread.c, i386-tdep.c, infcmd.c,
inflow.c, infptrace.c, infrun.c, irix5-nat.c, language.c,
m2-typeprint.c, main.c, mdebugread.c, minsyms.c, mipsread.c,
monitor.c, nlmread.c, objfiles.c, os9kread.c, osfsolib.c, parse.c,
printcmd.c, procfs.c, regex.c, remote-adapt.c,
remote-array.c, remote-bug.c, remote-e7000.c, remote-eb.c,
remote-es.c, remote-hms.c, remote-mm.c, remote-os9k.c,
remote-pa.c, remote-sim.c, remote-st.c, remote-udi.c,
remote-utils.c, remote-vx.c, remote-vx29k.c, remote-vx68.c,
remote-vx960.c, remote-vxmips.c, remote-vxsparc.c, remote.c,
solib.c, somread.c, source.c, stabsread.c, stack.c, symfile.c,
symmisc.c, symtab.c, target.c, top.c, typeprint.c, utils.c,
valarith.c, valops.c, valprint.c, values.c, xcoffread.c: Include
"gdb_string.h" instead of <string.h>.
* config/xm-sysv4.h, i386/xm-ptx.h, m68k/xm-sun3os4.h,
sparc/xm-sun4os4.h (HAVE_MMAP): Removed.
* config/xm-lynx.h, config/i386/xm-ptx.h,
config/m68k/nm-apollo68b.h, config/m68k/xm-hp300hpux.h,
config/mips/xm-irix3.h, config/mips/xm-mips.h,
config/mips/xm-news-mips.h, config/mips/xm-riscos.h,
config/pa/hppah.h, config/rs6000/xm-rs6000.h,
config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h,
config/vax/xm-vaxbsd.h, config/vax/xm-vaxult.h,
config/vax/xm-vaxult2.h (MEM_FNS_DECLARED): Removed.
* config/mips/xm-irix3.h, config/mips/xm-mips.h,
config/pa/xm-hppah.h (memcpy, memset): Removed declarations.
Tue Aug 1 02:08:30 1995 Peter Schauer (
* mips-tdep.c (mips_extract_return_value): Fix returning of
values whose length is less than the register size for big endian
* alpha-tdep.c (alpha_extract_return_value,
alpha_store_return_value): Use alpha_convert_register_to_*
to handle functions returning "float" correctly.
Mon Jul 31 19:12:48 1995 Stan Shebs <>
* h8500-tdep.c: General linting and cleanup.
(opcodes/h8500-opc.h): Don't include.
(code_size, data_size): Make static.
(frame_locals_address, frame_args_address): Remove.
(h8300_pop_frame): Rename to h8500_pop_frame.
(big_command, medium_command, compact_command, small_command):
Define as regular functions rather than with macro trickery.
(tm_print_insn): Set to correct disassembler function.
* config/h8500/tm-h8500.h: Minor cleanup, add prototypes.
(ABOUT_TO_RETURN): #if 0 out.
(GDB_TARGET_IS_H8500): Remove duplicate definition.
(regoff): Remove, never used.
* config/h8500/ (TDEPFILES): Add monitor.o.
Mon Jul 31 14:32:30 1995 J.T. Conklin <>
* Check for unistd.h.
* configure: Regenerated.
* command.c, cp-valprint.c, fork-child.c, i386-tdep.c,
i386b-nat.c, inflow.c, main.c, maint.c, objfiles.c, solib.c,
source.c, stack.c, symfile.c, top.c, utils.c: Include strings.h
and/or unistd.h to bring prototypes into scope.
Sun Jul 30 01:40:11 1995 Peter Schauer (
* rs6000-tdep.c (frame_saved_pc): Check for signal handler caller
before trying to determine the start of the function.
(skip_prologue): Skip subroutine call which might save the
floating point registers only if it is within the first three
Reinstate setting of alloca_reg if setup of a gcc frame pointer
is found.
(frame_get_cache_fsr): Use new fields in rs6000_framedata.
Sat Jul 29 14:43:35 1995 Stan Shebs <>
* sparclite: Removed subdirectory. aload and eload are now in
utils/sparclite, low-level library is in libgloss.
* (sparclite*): Don't configure sparclite subdir.
* configure: Update.
* (TARDIRS): Remove, no longer used.
Sat Jul 29 01:45:56 1995 Peter Schauer (
* procfs.c (unconditionally_kill_inferior): Clear current signal
* config/alpha/nm-osf3.h (PROCFS_NEED_CLEAR_CURSIG_FOR_KILL): Define.
* alpha-tdep.c: Move sigtramp handling of saved registers from
read_next_frame_reg to alpha_find_saved_regs, handle saved
floating point registers.
* mips-tdep.c: Move sigtramp handling of saved registers from
read_next_frame_reg to mips_find_saved_regs, handle saved
floating point registers.
* config/mips/tm-irix3.h, config/mips/tm-irix5.h,
config/mips/tm-mipsv4.h (SIGFRAME_FPREGSAVE_OFF): Define.
* sparc-tdep.c (sparc_pc_adjust): Fix check for `unimp'
instruction to handle functions returning structures with
large sizes properly.
Fri Jul 28 11:50:17 1995 steve chamberlain <>
* configure, (z8k-*-sim): deleted.
Thu Jul 27 12:49:28 1995 Jeffrey A. Law <>
* lynx-nat.c (child_wait): Handle threads exiting.
Thu Jul 27 07:47:50 1995 Michael Meissner <>
* rs6000-tdep.c (skip_prologue): Don't assume the update stack
instruction is the last in the prologue, since xlc stores the lr
after the stack update. Make sure offset is correct sign for
large frames.
(frame_saved_pc): Move test for signal before frameless.
* config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Define.
* config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Redefine.
Thu Jul 27 01:22:08 1995 Jeffrey A. Law <>
* hppa-tdep.c (hppa_fix_call_dummy): Rewrite code for calling
into shared libraries.
Wed Jul 26 23:33:34 1995 Michael Meissner <>
* config/rs6000/tm-rs6000.h (rs6000_framedata): Add offsets the
gprs, fprs, lr, and cr is stored at.
(FRAME_FIND_SAVED_REGS): Use new fields in rs6000_framedata.
(function_frame_info): Delete declaration.
(SKIP_PROLOGUE): Skip_prologue is now passed a rs6000_framedata
structure to fill in.
(FRAMELESS_FUNCTION_INVOCATION): Function now longer takes a
second argument.
(FRAME_SAVED_PC): Call frame_saved_pc.
* rs6000-tdep.c (skip_prologue): Recognize V.4 prologues as well
as AIX style. Fill in rs6000_framedata structure. Remember where
the gprs, fprs, cr, and lr are saved.
(pop_frame): Use skip_prologue, not function_frame_info, and use
new rs6000_framedata fields.
(function_frame_info): Function deleted.
(frameless_function_invocation): Separate frame_saved_pc support
to new function. Recognize V.4 frames.
(frame_saved_pc): New function.
(frame_get_cache_fsr): Use skip_prologue, not function_frame_info.
(frame_initial_stack_address): Ditto.
Wed Jul 26 01:00:37 1995 Jeff Law (
* remote.c: Add documentation for extended protocol operations
and for thread_alive change from a couple weeks ago.
(extended_remote_ops): Declare and define a new target vector
for the extended remote protocol.
(extended_remote_restart): New function to restart the remote
server & process.
(remote_open): Just a stub routine.
(extended_remote_open): New function to start a remote session
using the extended gdb remote protocol.
(remote_open_1): New function containing code common to both
remote_open and extended_remote_open.
(remote_mourn, extended_remote_mourn, remote_mourn_1): Similarly.
(extended_remote_create_inferior): New function for the extended
remote target.
(initialize_remote): Add the extended_remote_ops target vector.
* gdbserver/server.c (main, case '!'): Set extended_protocol.
(main, case 'k'): If the extended protocol is in use, kill the
inferior then start a new one.
(main, case 'R'): New command to restart the remote server and
inferior process. Only supported when using the extended
(main, server loop): If the inferior terminates while using the
extended protocol then start a new one. If getpkt fails when
using the extended protocol then exit.
Tue Jul 25 11:43:44 1995 Stan Shebs <>
* mdebugread.c (psymtab_to_symtab_1): Relocate encoded stab
line numbers using the psymtab's section offsets.
Tue Jul 25 10:43:27 1995 Michael Meissner <>
* config/rs6000/tm-rs6000.h (rs6000_framedata): Rename from
aix_framedata. Change all uses.
* rs6000-tdep.c: Change all aix_framedata -> rs6000_framedata.
Sat Jul 22 23:44:18 1995 Jeff Law (
* defs.h (ATTR_FORMAT): Disable if ANSI_PROTOTYPES is not defined.
Fri Jul 21 16:50:28 1995 Jeffrey A. Law <>
* lynx-nat.c (child_thread_alive): New function. Somehow I
forgot to check this in with all the other thread_alive changes.
Thu Jul 20 22:22:34 1995 Jeff Law (
* somread.c (som_symtab_read): Add unsatisfied common symbols to
the minimal symbol table. All common symbols are "unsatisfied"
when -E is passed to the linker.
Thu Jul 20 15:04:57 1995 Fred Fish <>
* top.c (show_endian): Cast first arg of printf_unfiltered to
correct type of "char *".
Thu Jul 20 14:18:51 1995 Jeffrey A. Law <>
* lynx-nat.c (child_wait): A thread_id of zero from wait apparently
means the process is single threaded, so there's no need to add
it to the thread list. Handle case where multi-threaded process
reverts back to a single-threaded process.
* gdbserver/low-hppabsd.c: Remove error declaration.
* gdbserver/low-sparc.c: Likewise.
* gdbserver/low-sun3.c: Likewise.
* gdbserver/server.h: Remove error and fatal declaration.
* gdbserver/utils.c (error): Update to be compatable with recent
changes in defs.h.
(fatal): Likewise.
Wed Jul 19 22:42:43 1995 Peter Schauer (
* config/m68k/tm-m68kv4.h (DWARF_REG_TO_REGNUM): Define to
correctly map floating point registers numbers.
* dwarfread.c (locval, new_symbol): Handle variables that are
optimized out.
* mdebugread.c: Replace all uses of builtin_type_* with
mdebug_type_*. Define and initialize mdebug_type_*.
* serial.h (serial_close): Add additional argument `really_close'.
(SERIAL_CLOSE): Update serial_close call accordingly.
(SERIAL_UN_FDOPEN): Use serial_close to handle refcnt properly.
* serial.c (serial_close): Handle `really_close'.
* serial.h (scb_base): Moved to serial.c, made static.
* valops.c (value_addr): Don't coerce arrays.
(typecmp): Coerce arrays instead of calling value_addr if necessary.
Wed Jul 19 18:19:28 1995 Stan Shebs <>
From Richard Earnshaw (
* infrun.c (wait_for_inferior): Set the convenience variable
$_exitcode to the termination code of the inferior.
* top.c (quit_command): Accept optional expression to use
as parameter to exit().
Wed Jul 19 13:15:32 1995 Kung Hsu <>
* remote.c (remote_wait): When getting registers, check endianess and
do conversion if necessary.
Tue Jul 18 00:41:31 1995 Jeff Law (
* gdbserver/low-hppabsd.c: New file.
* gdbserver/ (SFILES): Add low-hppabsd.c.
* config/pa/ (XDEPFILES): Add ser-tcp.o.
(GDBSERVER_DEPFILES): Add low-hppabsd.o.
* config/pa/ Likewise.
Mon Jul 17 21:35:18 1995 Fred Fish <>
* dache.c (struct dcache_block): Change data member from unsigned
char to char, since everything passed in and out of dcache is char
or casted to appropriate type anyway.
(dcache_alloc): Move assignment of db out of test and combine
separate tests into if-else.
(dcache_peek_byte): Change ptr from unsigned char* to char*.
(dcache_peek_byte): Remove now unnecessary cast in read_memory call.
(dcache_peek): Change cast of incoming data arg.
(dcache_poke): Change cast of addr of incoming data arg.
(dcache_info): Mask data passed to printf_filtered to lsbyte only.
(dcache_info): Change printf_filtered arg from "% 2x" to " %2x".
* target.c (debug_to_thread_alive): Change return type to int and
return zero, for type compatibility with other *_thread_alive
(cleanup_target): Change cast of ignore function to match type of the
to_thread_alive member.
* defs.h (error_hook): Add ATTR_NORETURN.
* defs.h (NORETURN, ATTR_NORETURN): Switch from volatile to
__attribute__ method with gcc 2.7, to avoid gcc 2.6.3 bug.
* remote.c (remote_wait): Cast first arg to strtol, strchr, and
strncmp to "const char *" from "unsigned char *".
(remote_wait): Cast arg to putpkt and strcpy from "unsigned char *"
to "char *".
(remote_wait): Change printf format for long arg from "%d" to "%ld".
(getpkt): Remove unused variable "bp".
(remote_fetch_word, remote_store_word): Ifdef out apparently unused
* breakpoint.c (watchpoint_check): Removed unused variables
"saved_level" and "saved_frame".
* valops.c (value_arg_coerce): Add other enum TYPE_CODE_* and
default cases to switch for completeness.
* infrun.c (wait_for_inferior): Enclose "have_waited" label
in #ifdef that matches the one in which it is referenced.
* ser-unix.c (hardwire_noflush_set_tty_state): Enclose otherwise
unused variable "state" in #ifdef that matches one in which it is
* eval.c (evaluate_subexp_standard): Remove unused variable "var".
* eval.c (evaluate_subexp_standard): Remove unused variable
* valarith.c (value_subscript): Remove unused variable
"lowerbound", which is redeclared in a nested scope prior to use.
* printcmd.c (print_frame_nameless_args): Use "%ld" to print long
arg, not "%d".
* {mem-break.c, remote-pa.c, remote.c, saber.suppress}:
Remove unused static var "check_break_insn_size".
* buildsym.c (finish_block): Add other enum LOC_* and default
cases to switch for completeness.
ch-lang.c (type_lower_upper): Removed unused label "retry".
Add other enum TYPE_* and default cases to switch for completeness.
* f-typeprint.c (f_type_print_args): Ifdef out unused function
that may be used someday when Fortran support is complete.
* ch-valprint.c (chill_print_type_scalar): Add other enum
TYPE_* and default cases to switch for completeness.
(chill_val_print): Remove unused local var "high_bound" that
is redeclared in a nested scope prior to use.
(chill_var_print): Use "%ld" to print long arg, not "%d".
* regex.c (re_compile_fastmap, re_match_2): Add remaining enum
types and default to switches for completeness.
* minsyms.c (lookup_minimal_symbol_text): Delete unused variable
(prim_record_minimal_symbol_and_info): Return NULL rather than
* elfread.c (elf_symtab_read): Don't dereference NULL returns from
* f-lang.c (saved_function_list_end): Ifdef out unused variable
that may be used someday.
* f-valprint.c (f_val_print): Remove unused local "straddr".
Mon Jul 17 13:08:00 1995 Ian Lance Taylor <>
* stabsread.h (struct stab_section_list): Define.
(coffstab_build_psymtabs): Remove staboff and stabsize parameters.
Add textaddr, textsize, and stabs parameters.
* gdb-stabs.h (struct dbx_symfile_info): Remove text_sect field.
Add text_addr and text_size fields.
(DBX_TEXT_SECT): Don't define.
* coffread.c: Include <ctype.h>.
(struct coff_symfile_info): Remove stabsect and stabindexsect
fields. Add textaddr, textsize, and stabsects fields.
(coff_locate_sections): Record the address of the .text section,
and total the sizes of all sections with names beginning with
".text". Don't bother to record a .stab.index section (COFF
doesn't use them). Make a linked list of all sections with names
beginning with ".stab".
(coff_symfile_read): Adjust call to coffstab_build_psymtabs for
new parameters.
* dbxread.c (dbx_symfile_read): Use DBX_TEXT_ADDR and
DBX_TEXT_SIZE, rather than getting both from DBX_TEXT_SECT.
(dbx_symfile_init): Set DBX_TEXT_ADDR and DBX_TEXT_SIZE, not
(elfstab_build_psymtabs): Likewise.
(stabsect_build_psymtabs): Likewise.
(symbuf_sections, symbuf_left, symbuf_read): New static variables.
(fill_symbuf): If symbuf_sections is not NULL, read symbols from
multiple sections.
(coffstab_build_psymtabs): Remove staboffset and stabsize
parameters. Add textaddr, textsize, and stabsects parameters.
multiple stabs sections.
* os9kread.c (os9k_symfile_read): Use DBX_TEXT_ADDR and
DBX_TEXT_SIZE, rather than getting both from DBX_TEXT_SECT.
(os9k_symfile_init): Set DBX_TEXT_ADDR and DBX_TEXT_SIZE, not
* remote-vx.c (vx_ops, vx_run_ops): Initialize new to_thread_alive
Sat Jul 15 01:02:53 1995 Peter Schauer (
* config/alpha/, config/alpha/nm-osf3.h: New files
for OSF/1-3.x procfs support.
* (alpha-dec-osf): Use them when configuring
for OSF/1-3.x.
* configure: Updated.
* target.c: Include <string.h>.
Fri Jul 14 16:16:56 1995 J.T. Conklin <>
*, Use one variable, frags, to hold
pathnames of makefile fragments.
* configure: regenerated.
Fri Jul 14 09:49:47 1995 Jeff Law (
* procfs.c (procfs_ops): Fix typo in last change.
Thu Jul 13 13:42:38 1995 Jeffrey A. Law <>
* inftarg.c (child_thread_alive): New function to see if a
particular thread is still running.
(child_ops): Add child_thread_alive entry.
* remote.c (remote_thread_alive): New function to see if a
particular thread is still alive.
(remote_ops): Add remote_thread_alive.
* target.c (dummy_target): Add dummy entry for thread_alive.
(cleanup_target): de_fault thread_alive too.
(update_current_target): INHERIT thread_alive too.
(debug_to_thread_alive): New function.
(setup_target_debug): Add debug_to_thread_alive.
* target.h (struct target_ops): Add to_thread_alive.
(target_thread_alive): Define.
* thread.c (info_threads_command): Don't call kill; use
target_thread_alive instead.
* config/nm-lynx.h (CHILD_THREAD_ALIVE): Define.
* gdbserver/low-lynx.c (mythread_alive): New function.
(mywait): Don't restart any threads after a new thread notification,
let the generic code handle it.
* gdbserver/low-sparc.c (mythread_alive): Dummy version.
* gdbserver/low-sun3.c (mythread_alive): Likewise.
* gdbserver/server.c (main): Handle thread_alive requests.
* gdbserver/server.h (mythread_alive): Declare.
* corelow.c (core_ops): Add dummy entry for thread_alive.
* exec.c (exec_ops): Likewise.
* m3-nat.c (m3_ops): Likewise.
* monitor.c (monitor_ops): Likewise.
* procfs.c (procfs_ops): Likewise.
* remote-array.c (array_ops): Likewise.
* remote-e7000.c (e7000_ops): Likewise.
* remote-es.c (es1800_ops, es1800_child_ops): Likewise.
* remote-mips.c (mips_ops): Likewise.
* remote-pa.c (remote_hppro_ops): Likewise.
* remote-sim.c (gdbsim_ops): Likewise.
* sparcl-tdep.c (sparclite_ops): Likewise.
Tue Jul 11 11:15:55 1995 Kung Hsu <>
* solib.c: Add _DYNAMIC__MGC base symbol for Mentor Graphics Inc.
* solib.c (match_main): New function for checking name of main.
* solib.c (solib_add): Not to add if solib match main.
Fri Jul 7 14:41:56 1995 Kung Hsu <>
* elfread.c (elf_symtab_read): Fix a bug ignoring compiler
generated internal labels ($LM...).
Wed Jul 5 11:38:36 1995 Kung Hsu <>
* defs.h: if __GO32__ or WIN32 the directory separating symbol should
be '\' not '/'.
* remote-nindy (nindy_wait): Use infinite timeout reading after
esacpe character.
Tue Jul 4 10:30:22 1995 Jeffrey A. Law <>
* infrun.c (wait_for_inferior): When switching from one thread to
another, save infrun's state for the old thread and load infrun's
previous state for the new thread.
* thread.c (struct thread_info): Add new fields for thread specific
state saved/restored in infrun.c.
(add_thread): Initialize new fields.
(load_infrun_state): New function.
(save_infrun_state): New function.
* thread.h (load_infrun_state): Provide external decl.
(save_infrun_state): Likewise.
* infrun.c (wait_for_inferior): When we hit a breakpoint for the
wrong thread, make sure to write the fixed PC value into the thread
that stopped. Restart all threads after single stepping over a
breakpoint for a different thread.
* breakpoint.c (set_momentary_breakpoint): Make momentary
breakpoints thread specific in a multi-threaded program.
* lynx-nat.c (child_resume): Add some comments. Correctly
choose between the single and multi-threaded step and continue
ptrace calls.
Fri Jun 30 16:15:36 1995 Stan Shebs <>
* config/h8300/ Renamed from
* config/h8500/ Renamed from
* config/z8k/ Renamed from
* configure, Update to reflect renamings.
* remote-sim.c (sim): New command, passes commands to simulator.
(simulator_command): New function.
(gdbsim_ops): Clean up.
* remote-sim.h (sim_do_command): Declare.
* sh-tdep.c (memory_size): Remove command.
* (SIM, SIM_OBS): New variables.
(CLIBS, CDEPS): Add value of SIM.
(DEPFILES): Add value of SIM_OBS
* config/arm/, config/h8300/, config/h8500/,
config/sh/, config/sparc/, config/w65/,
config/z8k/ Remove simulator files from TDEPFILES,
define in SIM_OBS and SIM.
config/sparc/ (SIMFILES): Remove.
* remote-z8k.c: Remove, was superseded by remote-sim.c
*, Remove references to remote-z8k.c.
Sun Jun 25 15:30:43 1995 Stan Shebs <>
* remote.c (remote_read_bytes, remote_write_bytes): Second arg
should be char *, not unsigned char *.
* dcache.h (memxferfunc): Ditto.
* monitor.c (monitor_write_memory, monitor_read_memory_single):
(monitor_make_srec): Let compiler figure size of hextab.
Sat Jun 24 19:27:37 1995 Jeffrey A. Law <>
* lynx-nat.c (child_wait): Don't restart new threads and loop
to the top of child_wait; let the machine independent code in
wait_for_inferior deal with new thread notifications.
Fri Jun 23 11:51:58 1995 Kung Hsu <>
* remote-nindy (nindy_load): Put in target specific load, it's
20 times faster.
Thu Jun 22 20:21:59 1995 Stan Shebs <>
* utils.c (error): Move local `args' outside conditional,
move local `string1' inside, declare function as void if
non-ANSI compiler, dereference error_hook when calling.
* mac-xdep.c (stdarg.h): Don't include.
Thu Jun 22 13:12:33 1995 Kung Hsu <>
* remote-nindy.c (nindy_wait): Change timeout in SERIAL_READCHAR.
Wed Jun 21 13:24:41 1995 Jeff Law (
* hppam3-nat.c: Change HP800_THREAD_STATE to TRACE_FLAVOR and
Wed Jun 21 05:57:56 1995 Steve Chamberlain <>
* monitor.c: Turn on caching.
(monitor_printf): If a ^C was sent, don't expect to see its
(monitor_open): Enable caching.
(monitor_resume, monitor_load): Flush cache.
(monitor_xfer_memory): Call cache routine.
(monitor_dump_regs): New.
(monitor_fetch_registers): If monitor_dump_regs available
then use it.
(monitor_load): Don't ref exec_bfd if it's NULL.
(monitor_load_srec): Use new monitor_make_srec calling convention.
(monitor_make_srec): Rewrite to cope with two, three and four byte
* remote-hms.c (hms_cmds): Initialze end-of-command delim.
* dcache.h, dcache.h: Rewritten.
* remote.c: Reenable caching.
(getpkt): Reduce MAX_TRIES to 3.
(remote_xfer_memory): Use dcache_xfer_memory.
* defs.h (error_hook): New.
* top.c (error_hook): New definition.
* utils.c (error): Use error_hook if initialized.
* sparcl-tdep.c (HAVE_SOCKETS): Don't define if GO32 or WIN32. Use
HAVE_SOCKETS in place of #ifndef GO32.
Tue Jun 20 22:17:44 1995 Jeff Law (
* config/pa/tm-hppa.h (PSW_*): Define processor status word masks.
(INSTRUCTION_NULLIFIED): Allow specific targets to override.
* config/pa/tm-hppao.h (INSTRUCTION_NULLIFIED): Define to work
around losing mach kernel behavior.
Tue Jun 20 12:03:36 1995 Stan Shebs <>
* monitor.c (monitor_wait): Don't use the watchdog timeout
if its value is 0.
* w89k-rom.c (w89k_open): Define to be static.
Sat Jun 17 10:17:16 1995 Jeff Law (
* somsolib.c (som_solib_add): Validate regexp argument.
Don't assume the first entry on dld's library list is the main
program. Don't load the same library more than once and don't
consider the main program a shared library.
(som_solib_sharedlibrary_command): New function
(_initialize_som_solib): Add "sharedlibrary" command.
Thu Jun 15 14:54:58 1995 Stan Shebs <>
* array-rom.c: Remove, no longer used.
* remote-hms.c (hms_open): Make static.
* (MacSerial.h): Copy from version in {CIncludes},
not {MPW}Interfaces:CIncludes.
* ser-mac.c (mac_baud_rate_table): Fix value for 38400 baud.
Wed Jun 14 14:27:07 1995 Per Bothner <>
* ch-exp.y: Remove lots of unsupported productions and names.
Add support for IF-expressions, ORIF, ANDIF, NUM, and ADDR.
Tue Jun 13 21:40:11 1995 Per Bothner <>
* parser-defs.h (enum precedence): Added PREC_BUILTIN_FUNCTION.
* expression.h (enum exp_opcode): Added UNOP_LOWER, UNOP_UPPER,
* expprint.c (dump_expression): Handle the new exp_opcodes.
(print_subexp): Handle PREC_BUILTIN_FUNCTION.
(print_simple_m2_func): Removed.
(print_subexp): Remove support for Modula2 builtin functions.
* m2-lang.c (m2_op_print_tab): Add support for builtin functions.
* ch-exp.y: Parse LOWER, UPPER, and LENGTH builtins.
(write_lower_upper_value): Convenience function for LOWER and UPPER.
(upper_lower_argument, length_argument): Removed non-terminals.
* ch-lang.c (chill_op_print_tab): Entries for UPPER, LOWER, LENGTH.
(type_lower_upper): New function. Calculate LOWER/UPPER of type.
(value_chill_length): New function. Calcalate LENGTH of ARRAY/STRING.
(evaluate_subexp_chill): Handle UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
Mon Jun 12 12:48:13 1995 Stan Shebs <>
Windows support bits from Steve Chamberlain <>.
* defs.h: Don't declare strchr and friends if WIN32.
(DIRNAME_SEPARATOR): Move here from source.c.
symbolic definitions for filename bits.
* top.c (cd_command): Use these.
* source.c (mod_path, openp): Ditto.
* terminal.h: Disable termio/sgtty definitions if WIN32.
* findvar.c (registers_changed): Call registers_changed_hook
if it is defined.
Mon Jun 12 12:22:05 1995 J.T. Conklin <>
* (distclean, realclean): Remove config.cache and
Mon Jun 12 00:21:59 1995 Jeff Law (
* somsolib.c: Include gdb-stabs.h.
(som_solib_section_offsets): Use SECT_OFF_XXX rather than 0, 1,
etc. Initialize offsets for RODATA & BSS too.
Sat Jun 10 17:59:11 1995 Jeff Law (
* hppa-tdep.c (frame_chain): Try to compensate for incomplete
register information in core files when backtracing.
Fri Jun 9 14:51:38 1995 Stu Grossman (
* remote-nrom.c: Remove everything but download code. More
Thu Jun 8 15:06:00 1995 Stu Grossman (
* defs.h maint.c monitor.c remote-mips.c remote.c: Add support
for `watchdog' variable. This allows the user to put an upper
limit on the amount of time that GDB will wait for the target to
return from a step or continue operation. This will primarily be
used for the testsuite, where it is difficult to come up with a
reasonable timeout for things like function calls, which can take
as long as three minutes under some circumstances. If the
watchdog timer expires, GDB will generate an error that looks like
`Watchdog has expired.', and will detach from the target.
* remote-mips.c (mips_open): Setup initial frame from target.
Print it out so that user is told where the program is stopped
when they attach.
* remote-nrom.c: Loads of cleanups. Use serial code to open
network connections. Use expect() to wait for response to
download command.
* ser-tcp.c (tcp_open): Retry connection if we get ECONNREFUSED.
* serial.c serial.h (serial_open serial_fdopen serial_close):
Allow users to open the same device multiple times. They all get
to share the same serial_t. This is about the only way to have
multiple active targets use the same device (for download and
* sparcl-tdep.c: Keep #include <unistd.h> away from GO32.
* target.c: Add `targetdebug' variable. If this is non-zero,
then a special target is put at the top of the target stack which
will cause all calls through the target vector to have their args
and results printed out.
Wed Jun 7 17:40:37 1995 Per Bothner <>
* ch-exp.y: Handle <primitive_value> "->" <modename>.
Wed Jun 7 17:46:33 1995 Michael Meissner <>
{LITTLE,BIG}_BREAKPOINT are all defined, don't redefine.
* config/rs6000/tm-rs6000.h (BREAKPOINT): Define as either
BIG_BREAKPOINT or LITTLE_BREAKPOINT depending on the target byte
Wed Jun 7 12:41:42 1995 Jeff Law (
* somsolib.c (som_solib_section_offsets): Handle relative pathnames.
* hppa-tdep.c (frame_saved_pc): Handle backtracing through signal
handler in dynamically linked executables.
Tue Jun 6 10:44:25 1995 Michael Meissner <>
From Andrew Cagney <>
* rs6000-tdep.c (single_step): Handle both little and big endian
(gdb_print_insn_powerpc): Deal with disassembling both little and
big endian PowerPC systems.
(_initialize_rs6000_tdep): Use gdb_print_insn_powerpc to handle
disassembly, rather that assuming big endian order.
* config/rs6000/tm-rs6000.h (BREAKPOINT): Delete.
(BIG_BREAKPOINT): Define, big endian breakpoint instruction.
(LITTLE_BREAKPOINT): Define, little endian breakpoint instruction.
Sat Jun 3 01:54:56 1995 Peter Schauer (
* README: Add note about Unixware 2.x.
* dbxread.c (process_one_symbol): Check for exact symbol name
match when fixing up N_GSYM and N_STSYM symbols from Sun acc.
* valprint.c (value_print_array_elements): Use
fprintf_filtered to put out `<repeats %u times>',
from (Andreas Schwab).
* value.h (struct value): Change `repetitions' field from
`short' to `int' type.
Fri Jun 2 11:17:23 1995 Doug Evans <>
* arc-tdep.c (arc_bfd_mach_type): New static global.
(codestream_fill): Handle byte order differences.
(setup_prologue_scan): Don't read stdarg function's "sub sp,sp,N".
(arc_get_frame_setup): Read it here.
(arc_frame_saved_pc): And here.
(arc_print_insn): New function.
(arc_set_cpu_type): Set arc_bfd_mach_type. Don't set tm_print_insn.
(_initialize_arc_tdep): Set tm_print_insn to arc_print_insn.
Wed May 31 12:04:01 1995 J.T. Conklin <>
* nlm/{,}: Converted to use autoconf.
* nlm/configure: New file, generated with autoconf 2.3.
* nlm/ Use sed instead of awk to get the value of
cpufile. Awk is not a utility required by the GNU coding
standards. This change also fixes the rigid whitespace
requirements that were required for awk.
* sparclite/aload.c: Use a file descriptor instead of a stdio
stream for i/o with target board.
Use #error if HAVE_TERMIOS is not defined.
* sparclite/{,}: Converted to use
* sparclite/configure: New file, generated with autoconf 2.3.
Sun May 28 23:10:07 1995 Jeff Law (
* defs.h: Include either varargs.h or stdarg.h (for va_list).
Fix stupid thinko in last change ("..." -> "va_list").
* defs.h (vprintf_filtered declaration): Add PARAMS prototype;
gcc-2.5 chokes on format attributes for unprototyped functions.
(vfprintf_filtered declaration): Likewise.
(vprintf_unfiltered declaration): Likewise.
(vfprintf_unfiltered). Likewise.
Sat May 27 23:54:17 1995 J.T. Conklin <>
* Use sed instead of awk to get the values of
hostfile, targetfile and nativefile. Awk is not a utility
required by the GNU coding standards. This change also
fixes the rigid whitespace requirements that were required
for awk.
* configure: regenerated.
Sat May 27 16:24:04 1995 Angela Marie Thomas <>
* sparclite/{Makefile,configure}.in: Add hooks for building with
-lsocket & -lnsl for solaris2. Don't build aload/eload for DOS.
Thu May 25 12:46:37 1995 Jim Kingdon (
* gdbserver/remote-utils.c (prepare_resume_reply): Add FIXME
comment regarding signal numbering.
Wed May 24 15:49:47 1995 Steve Chamberlain <>
* arm-tdep.c (_initialize_arm_tdep): Use print_insn_little_arm
* arm-tdep.c (convert_from_extended, convert_to_extended):
* coffread.c (enter_linenos): Return if linetab 0.
* config/arm/ (TDEPFILES): Add simulator support.
* config/arm/tm-arm.h (FRAME_FIND_SAVED_REGS): Fix prototypes.
Mon May 22 19:37:21 1995 Rob Savoye <>
* config/ replace monitor and array-rom with the new
Mon May 22 15:38:25 1995 Stu Grossman (
* remote-nindy.c: Install Kung patch for PR 6820. I have no idea
what this does...
* breakpoint.c: Move defaults of watchpoint related macros into
* target.h: Macros from breakpoint.c. Conditionalize based on
* i386v-nat.c procfs.c: Use TARGET_HAS_HARDWARE_WATCHPOINTS
instead of TARGET_CAN_USE_HARDWARE_WATCHPOINT to enable watchpoint
* config/i386/nm-linux.h, config/mips/nm-irix4.h,
config/pa/nm-hppab.h, config/sparc/tm-sparclite.h: #define
TARGET_HAS_HARDWARE_WATCHPOINTS to enable watchpoint code.
Mon May 22 06:47:30 1995 Jim Kingdon (
* breakpoint.c, target.h: Move defaults of watchpoint related
macros back to breakpoint.c. Required to get GDB compiling
on Solaris again.
Fri May 19 14:49:37 1995 J.T. Conklin <>
* defs.h (ATTR_FORMAT): New macro, expands to gcc's format
attribute when compiled by gcc.
* defs.h, language.h, monitor.h: Changed many function
declarations to use ATTR_FORMAT.
* breakpoint.c (delete_command); source.c (directory_command);
top.c (define_command): Changed call to query() that had too
many arguments.
* printcmd.c (address_info): Changed call to printf_filtered()
that had too many arguments.
Fri May 19 09:52:07 1995 Jim Kingdon (
* infrun.c (wait_for_inferior): Move assignments to stop_signal
and stop_pc, and STOPPED_BY_WATCHPOINT code, back where they
were--after the switch statement on w.kind. You can't read the
registers of an inferior which has exited. Use a goto in the
* infrun.c (wait_for_inferior): Reinstate
Fri May 19 06:15:40 1995 Jim Kingdon <>
* utils.c, complaints.c, language.c, monitor.c, remote-array.c,
remote-mips.c, remote-os9k.c, remote-st.c: Conditionalize use of
stdarg rather than varargs on ANSI_PROTOTYPES not __STDC__; it
must match the definition of PARAMS.
Thu May 18 15:58:46 1995 J.T. Conklin <>
* utils.c (fprintf_filtered, fprintf_unfiltered, fprintfi_filtered,
printf_filtered, printf_unfiltered, printfi_filtered, query, warning,
error, fatal, fatal_dump_core): Use stdarg.h macros when compiling
with an ANSI compiler.
* complaints.c (complain): Likewise.
* language.c (type_error, range_error): Likewise.
* monitor.c (monitor_printf, monitor_printf_noecho): Likewise.
* remote-array.c (printf_monitor, debuglogs): Likewise.
* remote-mips.c (mips_error): Likewise.
* remote-os9k.c (printf_monitor): Likewise.
* remote-st.c (printf_stdebug): Likewise.
* defs.h, complaints.h, language.h, monitor.h: Add prototypes to
match above changes.
* printcmd.c: Remove uneeded #include <varargs.h>.
* remote-e7000.c: Likewise.
* f-typeprint.c (f_type_print_base): Fix typo found by above
Wed May 17 11:21:32 1995 Jim Kingdon <>
* (xcoffread.o): Depend on partial-stab.h.
* xcoffsolib.c (sharedlibrary_command): New command.
* xcoffsolib.c (solib_info): Call xcoff_relocate_symtab.
* xcoffsolib.c: Miscellaneous cleanups.
* partial-stab.h: Ignore symbol descriptor '-' (for local
variables with negative type numbers) without complaint.
* rs6000-nat.c (vmap_ldinfo): Use bfd_stat rather than our own
local emulation thereof. Remove unused variable ostart.
Wed May 17 15:55:53 1995 J.T. Conklin <>
* (config.status): changed target so that
config.status --recheck is executed if configure script changes.
* monitor.c (monitor_printf): Changed format specification in
error message to work with pre-ansi compilers.
(monitor_load_srec): reduced length of s-records from 128 to 32
bytes so download is more reliable with the rom68k monitor.
* rom68k-rom.c: Added trailing space to prompt string.
* config/i386/xm-i386sco.h (HAVE_STRSTR): Removed.
* config/i386/xm-go32.h, mswin/xm.h (SYS_SIGLIST_MISSING):
* defs.h, config/{xm-lynx.h, xm-nbsd.h},
config/i386/{xm-i386bsd.h, xm-linux.h},
config/m68k/xm-hp300bsd.h, config/mips/xm-irix4.h,
config/ns32k/xm-ns32km3.h, doc/gdbint.texinfo
Tue May 16 13:16:06 1995 J.T. Conklin <>
* (Makefile): Added config.status to dependency list.
* Added INIT-CMDS argument to AC_OUTPUT which sets
gdb_host_cpu, gdb_target_cpu and nativefile.
* configure: regenerated.
Mon May 15 23:50:51 1995 Peter Schauer (
* mdebugread.c (parse_symbol): Do not relocate stBlock/scText
symbols, their value is the displacement from the procedure address.
* top.c (init_main): Add missing newlines to help strings for
`if' and `while' commands, fix help string for `show commands'.
Mon May 15 18:37:56 1995 Stu Grossman (
* breakpoint.c: Move defaults of watchpoint related macros into
target.h. Use BP_TEMPFLAG and BP_HARDWAREFLAG instead of
* infrun.c (wait_for_inferior): Enhance comment near
* target.h: Macros from breakpoint.c.
Mon May 15 17:11:38 1995 J.T. Conklin <>
* config/i386/{,,},
config/m68k/, config/mips/{,,}, config/sparc/ (INSTALL): Removed, figured
out by autoconf.
* config/ (RANLIB): Removed, figured out by autoconf.
*, Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
Mon May 15 14:46:41 1995 Stan Shebs <>
* remote.c (remote_kill): Add prototype.
* cpu32bug-rom.c (cpu32bug_open): Properly define as static.
* config/h8300/ (TDEPFILES): Add monitor.o.
Mon May 15 12:12:34 1995 Stu Grossman (
* sparclite/salib.c (win_ovf win_unf): Make window size constant
into a variable (__WINSIZE) so that it can be controlled via the
.h file.
* sparclite/sparclite.h: Add SL933 #ifdef to set __WINSIZE to 6
for the 933 board.
* infrun.c: Add #ifdef HP_OS_BUG to all references to
* (wait_for_inferior): Fix for remote watchpoints. Don't try to
insert breakpoints while target is running (this only works on
*some* native targets). This may also speed up native watchpoints
Sat May 13 13:55:04 1995 Jim Kingdon (
* dwarfread.c (struct dwfinfo), dbxread.c (struct symloc),
mdebugread.c (struct symloc), hpread.c (struct symloc),
xcoffread.c (struct symloc): Fix inaccurate comment introduced
20 Apr 1995.
Sat May 13 13:34:18 1995 Jim Kingdon <>
* rs6000-tdep.c (find_toc_address): Revise comment.
* symfile.c, symfile.h (init_psymbol_list): New function;
consolidate duplicated copies from os9kread.c, dbxread.c
and dwarfread.c.
* defs.h: Declare info_verbose.
* xcoffread.c: Extensive changes to support psymtabs.
Fri May 12 13:48:41 1995 Stu Grossman (
* cpu32bug-rom.c remote-est.c rom68k-rom.c: Update line_term element.
Fri May 12 06:39:30 1995 Jim Kingdon (
* partial-stab.h: Expand comments.
Thu May 11 19:01:37 1995 Jeff Law (
* Support debugging using native MACH primitives on hppa*-*-osf*.
* hppa*-*-osf* != hppa*-*-bsd* anymore.
* config/pa/ New file.
* config/pa/nm-hppao.h: Likewise.
* hppam3-nat.c: Likewise.
* config/pa/tm-hppao.h (PSW_SS): Define for single-stepping.
(TRACE_*): Define.
Wed May 10 18:59:26 1995 Stu Grossman (
* hppa-tdep.c (read_unwind_info): Cosmetic cleanup.
* (unwind_command): Clean it up and make it print things out
* monitor.c: Add ^C handling capability (mostly ripped off from
* (monitor_printf): Make it check the command echo.
* (monitor_printf_noecho): Similar to above, but doesn't check
for echo.
* (monitor_stop): No longer waits for prompt. That is the job of
the caller. This makes things work much better for monitor_wait,
which waits for the prompt itself.
* (monitor_open): Deal with new monitor_stop semantics. Also,
flush input after sending init strings to get rid of junk that may
be output. Also, don't always send \r to remote. Use
monitor_ops->line_term cuz proper character isn't always \r.
* (monitor_fetch_register): Switch to completely different
algorithm to deal with lame-ass monitors which put spaces in the
middle of numbers, and prompt with a space!!!!!
* (monitor_read_memory_single): New routine to be used with
monitors that can only return one byte/short/long at a time. This
is selected via MO_GETMEM_READ_SINGLE.
* (monitor_load_srec): Use monitor_printf_noecho for sending S
records. Most targets don't echo them.
* (monitor.h): Get rid of cmd_delim. Add line_delim.
* op50n-rom.c (op50n_cmds): Fill it up. Make it work.
* w89k-rom.c: Change all eols from \r to \n. Change load_resp to
^Q to prevent error message.
* config/pa/tm-hppa.h (CALL_DUMMY (for hppro)): Add special
instruction sequence at end to make restore_pc_queue happy.
Wed May 10 15:59:00 1995 Torbjorn Granlund <>
* remote-est.c (est_open): Make static to match prototype.
Tue May 9 16:58:50 1995 Michael Meissner <>
* Add little endian PowerPC support.
* config/powerpc/ New file for little endian PowerPC
* config/powerpc/tm-ppcle-eabi.h: ditto.
Mon May 8 12:11:38 1995 J.T. Conklin <>
* nlm/ (gdb_host, gdb_host_cpu, gdb_target): Removed.
These variables not used.
* config/m68k/ (TDEPFILES): Added cpu32bug-rom.o.
Wed May 3 17:54:47 1995 Stan Shebs <>
* monitor.c (monitor_command): Don't use PROMPT until monitor
target is known to be open.
(monitor_make_srec): Don't define size of hextab.
Tue May 2 18:32:24 1995 Stan Shebs <>
* (--enable-netrom): New configuration option.
* (REMOTE_OBS): Rename from REMOTE_O, append
value of NETROM_OBS.
(NETROM_OBS): New variable.
* remote-nrom.c: New file, NetROM target support.
* config/a29k/, config/i960/ Use
* config/arc/ Ditto.
Fri Apr 28 23:30:00 1995 Stu Grossman (
* array-rom.c (_initialize_array array_open): Move baud_rate
initialization from _initxxx to array_open to fix bug with
overriding -b command line option.
Thu Apr 27 20:29:34 1995 Doug Evans <>
* (RUNTEST): Fix reference of `srcdir'.
Wed Apr 26 19:01:08 1995 Steve Chamberlain <>
* remote-hms.c: Rewrite to use new monitor conventions.
Tue Apr 25 11:27:14 1995 Jim Kingdon (
* dbxread.c: Add comment explaining lowest_text_address.
Add comment regarding stringtab_global and psymtabs.
Sat Apr 22 01:26:29 1995 Jeff Law (
* config/pa/tm-hppa.h (EXTRACT_STRUCT_VALUE_ADDRESS): Fix.
* config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Rewrite to correctly
handle "short", "int" and small structures returned in registers.
Fri Apr 21 12:57:53 1995 Kung Hsu <>
* minsyms.c: add new function lookup_minimal_symbol_text, to look
for text symbol only.
* breakpoint.c (create_longjmp_breakpoint): call
lookup_minimal_symbol_text instead of lookup_minimal_symbol.
* symtab.h: add lookup_minimal_symbol_text prototype.
Fri Apr 21 12:03:44 1995 Stan Shebs <>
* sh-tdep.c (sh-opc.h): Don't include.
(gdbcore.h): Include.
(frame_find_saved_regs): Remove unused local.
Thu Apr 20 10:12:21 1995 Jim Kingdon (
* dwarfread.c (struct dwfinfo), dbxread.c (struct symloc),
mdebugread.c (struct symloc), hpread.c (struct symloc): Clean
up comments.
Wed Apr 19 16:58:11 1995 Stu Grossman (
* hppa-tdep.c (deposit_17): New routine to deposit 17 bit
constants into PA instructions.
* Put #ifdefs around all signal handling code. Not generally
needed for embedded boards.
* (hppa_fix_call_dummy): Parameterize offsets into call dummy to
allow different dummys to be used by this code. Use
Conditionalize setup of _sr4export fixup. Improve comments.
* config/pa/tm-hppa.h: Define INSTRUCTION_SIZE. Use a different
call dummy if PA_LEVEL_0 is defined. Better comments for call
dummys. Define offsets for LDIL/LDO instructions which load
function addresses.
* config/pa/tm-pro.h: Get rid of signal handling stuff. Define
PA_LEVEL_0 to disable mucking with space regs and such.
Mon Apr 17 15:37:08 1995 Stu Grossman (
* cpu32bug-rom.c monitor.h op50-rom.c remote-est.c rom68k-rom.c
w89k-rom.c: Remove loadtypes, loadprotos and baudrates.
* op50-rom.c: Fix copyrights and add load routine to op50n_cmds.
* rom68k-rom.c (_initialize_rom68k): Don't set baud rate.
* w89k-rom.c: Fix copyrights.
Sun Apr 16 14:00:55 1995 Stu Grossman (
* monitor.c: Move all xmodem stuff into xmodem.[ch]. Remove
unnecessary remoteloadprotocol and remoteloadtype support.
* (expect expect_prompt): Change names to monitor_expect and
monitor_expect_prompt. Make them global.
* (printf_monitor): Change name to monitor_printf. Make global.
* (monitor_read_memory): Flush command echo to avoid parsing
ambiguity with CPU32Bug monitor.
* (monitor_load): Remove remoteloadprotocol and remoteloadtype
support. Call target_ops->load_routine, default to
* (monitor_load_srec): Remove everything but S-record support.
* monitor.h (monitor_ops): Add load_routine to provide monitor
specific download capability.
* remote-est.c: Clean up copyrights and comments.
* w89k-rom.c: Use new xmodem support.
* xmodem.c xmodem.h: New files to support xmodem downloads.
* rom68k-rom.c remote-est.c: Fix copyrights, add load_routine
entry to monitor_ops.
* cpu32bug-rom.c: New file to support Moto BCC debuggers.
* config/m68k/ (TDEPFILES): Add cpu32bug.o.
* config/pa/ (TDEPFILES): Add xmodem.o.
Sat Apr 15 18:00:15 1995 Jim Kingdon (
* rem-multi.shar: Removed; superceded by gdbserver.
Fri Apr 14 12:10:24 1995 Jim Kingdon <>
* xcoffread.c (xcoff_sym_fns): Revise comment about merging this
with coffread.c.
* breakpoint.c (fixup_breakpoints): Removed.
* rs6000-nat.c (vmap_symtab): Don't call fixup_breakpoints.
(vmap_ldinfo, xcoff_relocate_core): Call breakpoint_re_set.
* coffread.c (coff_symfile_offsets): Allocate SECT_OFF_MAX
sections, not just SECT_OFF_MAX-1.
* rs6000-nat.c (vmap_symtab), xcoffread.c: Re-do section offsets
to be indexed by SECT_OFF_* instead of xcoff section numbers.
* objfiles.c, remote.c: Remove comments regarding SECT_OFF_*.
* symtab.h: Revise comment about block_line_section.
* rs6000-nat.c (vmap_symtab): Don't relocate objfile->sections.
Sat Apr 15 14:15:14 1995 Stan Shebs <>
* (init.c): Don't try to do symbolic {o} in sed
command, not allowed by some version of MPW Make.
* ser-mac.c (mac-setbaudrate): Make it actually set baud rates.
Sat Apr 15 14:05:09 1995 Jim Kingdon (
* alpha-tdep.c (alpha_push_arguments): Fix typo (TYPE_VALUE ->
Sat Apr 15 14:04:32 1995 Per Bothner <>
* alpha-tdep.c (alpha_push_arguments): Only cast to long for
Thu Apr 13 16:17:04 1995 Rob Savoye <>
* remote-array.c: New file for Array Tech LSI33k based controller
Thu Apr 13 12:23:31 1995 Kung Hsu <>
* a29k-tdep.c (get_longjmp_target): Replace SWAP_TARGET_AND_HOST with
* remote-vxsparc.c: New file, preliminary check in, this configuration
not supported yet.
* remote-vxmips.c: ditto.
Thu Apr 13 12:10:14 1995 Michael Meissner <>
* rs6000-tdep.c (xcoff_add_toc_to_loadinfo): Don't use a prototype
to declare the function.
Wed Apr 12 16:40:20 1995 Stan Shebs <>
* monitor.h (init_monitor_ops): Declare.
* rom68k-rom.c: Clarify some comments.
(rom68k_open): Define as static, to match decl.
Wed Apr 12 16:36:44 1995 Jim Kingdon (
* gdb.gdb: New file.
* .gdbinit: Move list-objfiles to gdb.gdb.
* values.c (set_internalvar): Set modifiable flag of newval.
Wed Apr 12 14:34:31 1995 Jim Kingdon <>
* xcoffread.c: Call complain() rather than error() or printing a
Wed Apr 12 08:15:27 1995 Doug Evans <>
* arc-tdep.c: #include "gdbcmd.h".
(codestream_seek): Pass CORE_ADDR.
(arc_cpu_type, tmp_arc_cpu_type, arc_cpu_type_table): New globals.
(debug_pipeline_p): Likewise.
(X_...): Instruction field access macros.
(BUILD_INSN): Define.
(codestream_tell): Allow for stream elements > 1 byte.
(codestream_fill): Likewise.
(setup_prologue_scan): New function.
(arc_get_frame_setup): Call it. Update to current spec
regarding prologues. Use BUILD_INSN.
(skip_prologue): New argument `frameless_p'. Use BUILD_INSN.
(arc_frame_saved_pc): New function.
(frame_find_saved_regs): Use BUILD_INSN.
(get_insn_type, single_step): New functions.
(one_stepped): New global.
(arc_set_cpu_type_command, arc_show_cpu_type_command): New functions.
(arc_set_cpu_type): New function.
(_initialize_arc_tdep): Define new `set' commands `cpu',
`displaypipeline', and `debugpipeline'.
* arc/tm-arc.h (TARGET_BYTE_ORDER): Delete.
(DECR_PC_AFTER_BREAK): Change to 8.
(FRAME_SAVED_PC): Call arc_frame_saved_pc.
Tue Apr 11 16:42:37 1995 Jim Kingdon (
* top.c, utils.c, defs.h: Remove error_hook. It is currently
unused and would need to hook into error_begin()/return_to_top_level(),
instead of error(), if it were to be used.
Tue Apr 11 13:46:25 1995 Jim Kingdon <>
* utils.c, defs.h (warning_begin): Renamed from warning_setup, for
consistency with error_begin. Also print warning_pre_print.
Document it better.
* utils.c (warning): Use it.
* utils.c (error_begin): Doc fix.
* rs6000-nat.c (vmap_ldinfo): If we don't find ldinfo for the
symfile_objfile, nuke it.
Tue Apr 11 09:35:20 1995 Jim Kingdon (
* printcmd.c (print_address_numeric): Pass use_local to
print_longest, rather than always passing 1.
* nlm/ Remove comments discussing munch.
Mon Apr 10 18:31:57 1995 Stan Shebs <>
Merge in support for Mac MPW as a host.
(Old change descriptions retained for informational value.)
* (i386-unknown-go32): Change from aout.
(sh-hitachi-hms): New target.
* (BISON): Use byacc instead of bison.
(VERSION): Bump to 4.14.1.
(*-pinsn.*): Remove mentions everywhere.
(all): Don't build MacGDB.
(gdb, SiowGDB): Depend on Version.r.
(Version.r): Generate from version info.
* main.c (main): Pass program name to START_PROGRESS, END_PROGRESS.
(main) [MPW]: Remove debugging hook.
* mac-xdep.c (debug_openp): New flag.
(mac_init): Set flag if env variable defined.
* ser-mac.c (mac_open): Clarify error message.
(mac_readchar): Call PROGRESS while looping.
(mac_write): Call sleep instead of sec_sleep.
(sec_sleep): Remove.
* source.c (openp) [MPW]: Only print debugging info if debugging.
* utils.c (query) [MPW]: Clarify that behavior is a bug.
* (init.c): Use open-brace instead of mpw-open-brace.
* main.c, source.c: Remove hacks that replace long strings
with shorter ones, now solved portably.
* config/m68k/xm-mpw.h (spin.h): Include.
(ALMOST_STDC): Only define if MPW_C.
* config/m68k/tm-mac.h: New file, Mac target definitions.
* (m68k-apple-macos, ppc-apple-macos,
i386-unknown-aout): New targets.
(mk.tmp): Add *DEPFILES definitions.
* Remove gC rules, clean up definitions for other
include files, bump version, fix bogus \ that should be \Option-d.
(init.c): Build correctly.
* (HFILES_NO_SRCDIR): Add somsolib.h
(ALLDEPFILES): Add somsolib.c.
(somsolib.o): Add some dependencies.
* Use nm-empty.h if host is not target.
(xdepfiles): Add mac-xdep.c.o.
(xm_file): Remove.
* Add Fortran files.
(XDEPFILES): Remove.
* (MacSerial.h): Duplicate from standard Serial.h.
* ser-mac.c (MacSerial.h): Include instead of Serial.h.
* Use {s} instead of {srcdir} everywhere.
(bindir, libdir): Remove extra colon.
(source.c): Compile with C instead of gC.
(,, Add {o}.
(install-only): Don't install MacGDB.
* source.c (openp) [MPW]: Add a debugging display.
(open_source_file) [MPW]: Use MPW basename finders.
[MPW_C]: Briefer versions of help for line and list commands.
* Change references from paread.c to somread.c
* (VERSION): Update to 4.12.3.
(SiowGDB): New target, GDB using SIOW library.
(init-new.c): New target, attempt to generate init.c from sources.
(main.c.o, top.c.o): Put each in its own segment.
* main.c (main) [MPW]: Always call mac_init.
* utils.c (query) [MPW]: Always return "yes" if in MacGDB, output
an extra newline otherwise.
* mac-xdep.c: More comments in various places, remove junk.
(mac_init): Add tests for MPW and SIOW.
(use_wne, has_color_qd): Renamed.
(use_color_qd): New variable.
(grow_window): Only do console resizing to console window,
call resize_console_window.
(zoom_window): Call resize_console_window.
(resize_console_window, scroll_text): New functions.
(adjust_console_sizes): Always align viewrect to even multiples of
text lines.
(adjust_console_text): Always scroll by whole lines.
(hacked_vfprintf, hacked_puts, hacked_fputc, hacked_putc): Force a
recalculation of scroll positions if a newline was output.
(hacked_fflush): Similarly, for flushing.
(hacked_fgetc): New function, aborts if called in MacGDB.
* ser-mac.c (mac_readchar): Rename starttime to start_time,
remove debugging printf.
(mac_write): Sleep on first 4 writes.
(sec_sleep): New function, works like standard sleep.
* macgdb.r: Adjust positioning and contents of About box.
Set minimum size to 2000K, preferred size to 5000K.
* config/m68k/xm-mpw.h (fgetc): Define as a macro.
* (.c.o, .gc.o): Prefix segment names with gdb_.
(top.c.o, annotate.c.o): Add build rules.
* macgdb.r (SysTypes.r): Include.
('vers'): New resource, version info.
(mFile, mEdit, mDebug): Enable all menu items.
(mDebug): Add key equivalents for continue, step, next.
(wConsole): Add zoom and close boxes to window.
* mac-xdep.c (new_console_window): New function, code taken from
(mac_command_loop): Use GetCaretTime for wait interval, call
do_idle on null events.
(do_idle): New function.
(zoom_window): Implement zooming.
(v_scroll_proc): New function, handles vertical scrolling.
(activate_window): Do activation of console window.
(do_menu_command): Implement items of file, edit, and debug menus.
(do_keyboard_command): Fix command extraction.
(adjust_console_sizes, adjust_console_text): New functions.
(hacked_fprintf, hacked_vfprintf, hacked_fputs, hacked_fputc,
hacked_putc): Don't call draw_console.
* ser-mac.c (mac_open): Add an error message for invalid ports.
(first_mac_write): New global.
(mac_write): Use first_mac_write to sleep on first several writes.
* (INCLUDE_CFLAGS): Add readline source dir.
(TSOBS): Don't compile inflow.c.
(all, install): Add MacGDB.
* main.c (main): Do Mac-specific init and command loop if a
standalone app, skip full option help message if compiling
with MPW C.
(gdb_readline): If MPW, add a newline after the (gdb) prompt.
* utils.c (_initialize_utils): If MPW, don't try to use termcap to
compute the window size.
* config/m68k/xm-mpw.h (printf, fprintf, fputs, fputc, putc,
fflush): Define as macros that expand into hacked_... versions.
(StandAlone, mac_app): Declare.
* macgdb.r (SIZE): Set the default partition to 4000K.
* mac-xdep.c (readline.h, history.h): Include.
(terminal.h): Don't include.
(mac_app): Define.
(gdb_has_a_terminal): Define Mac-specific version.
(do_keyboard_command): Simplify search for command string.
(readline): Define as gdb_readline.
Add other history/readline stubs to make main gdb link.
(hacked_fprintf, hacked_printf, hacked_vfprintf, hacked_fputs,
hacked_fputc, hacked_fflush): New functions, intercept output to
stdout and stderr, send to console window.
* (MacGDB): New target, standalone Mac-hosted gdb.
(XDEPFILES): Define.
(main.c.o): Compile with gC instead of C.
* mac-defs.h: New file, menu etc definitions shared between
C and Rez files.
* macgdb.r: New file, Rez (resource compiler) resource
* mac-xdep.c: New file, Mac host interface code.
* config/m68k/xm-mpw.h (PATHNAME_SEPARATOR): Rename to
(fileno, R_OK): Define.
* New file, MPW configuration fragment.
* New file, MPW makefile fragment.
* config/m68k/xm-mpw.h: New file, MPW host definitions.
* ser-mac.c: New file, Mac serial interface.
Mon Apr 10 16:47:57 1995 Kung Hsu <>
* valprint.c (print_longest): Fix a syntax error in #ifdef
* config/mips/xm-irix5.h: turn on CC_HAS_LONG_LONG and
* config/mips/tm-irix5.h: turn on FORCE_LONG_LONG.
Sat Apr 8 02:47:45 1995 Peter Schauer (
* mdebugread.c (parse_symbol): Use new variable
nodebug_var_symbol_type as type of variables which don't have any
ecoff debug info associated with them.
(parse_symbol, parse_procedure): Use heuristics to determine if
functions were compiled without debugging info and change their
type to nodebug_function_symbol_type.
(_initialize_mdebugread): Initialize nodebug_*_symbol_type.
* source.c (line_info): Clear sal.pc for `info line' without
Fri Apr 7 17:43:01 1995 Stu Grossman (
* monitor.c: make_xmodem_packet and print_xmodem_packet go away.
send_xmodem_packet shows up to do the obvious. Lots of fixes to
xmodem downloads including resetting of block number at start of
new transfers, fix for buffer overrun problem, addition of CRC
generation code.
* (monitor_open): loadtype_str and loadproto_str now default to
first entry in monitor_ops->loadtypes.
* (monitor_wait): Lengthen register dump buf, because of verbose
Winbond monitor.
* (monitor_fetch_register): Report unimplemented registers as 0.
* (monitor_read_memory): Only do 16 byte aligned transfers
because of formatting weirdness with the Winbond monitor. Also,
ignore non-hex, non-whitespace formatting between bytes (same
* (monitor_load): Clean up logic.
* (monitor_load_srec): Re-do xmodem support. Move lots of it
into send_xmodem_packet.
* (getacknak): Get rid of polls and timeouts. Handle CRC
requests from receiver.
* (monitor_make_srec): Efficiency improvements. Don't call
sprintf to output two digit hex numbers.
* (crcinit, docrc): New, CRC-16 support routines.
* (send_xmodem_packet): New routine to generate either CRC-16 or
checksummed xmodem packets.
* remote-est.c (est_loadtypes), rom68k-rom.c (rom68k_loadtypes):
Reduce tables down to only the load types supported by each
* w89k-rom.c (w89k_supply_register): Parses output of Winbond
register dumps.
* (w89k_loadtypes, w89k_loadprotos): Reduce to just srec/xmodem.
* (w89k_cmds): Add clear all breakpoints, memory fill, and dump
registers commands.
* config/pa/tm-hppa.h: Define lots register offsets needed by
Thu Apr 6 17:00:46 1995 Michael Meissner <>
* (X11_INCLUDES): Define as empty.
(X11_CFLAGS): Define as including $(X11_INCLUDES).
(X11_LIB_SWITCHES): Define as empty.
(X11_LIBS): Define as -lX11.
Wed Apr 5 19:57:38 1995 Jim Kingdon (
* mips-tdep.c (mips_print_register): Remove unused variable
our_type and call to init_type. Fixes memory leak. Reindent function.
* mips-tdep.c (mips_print_register), findvar.c
(write_register_bytes): Make buffer char[] instead of unsigned
Mon Apr 3 19:28:14 1995 Jim Kingdon (
* top.c, utils.c, main.c, defs.h: Replace error_pre_print with two
variables: error_pre_print (for RETURN_ERROR) and quit_pre_print
(for RETURN_QUIT). Fixes a bug whereby typing ^C (e.g. in "maint
print sym") could output extraneous stuff.
* objfiles.c: Don't declare error_pre_print; defs.h does it.
Mon Apr 3 13:48:28 1995 Stu Grossman (
* monitor.h: Add MO_GETMEM_NEEDS_RANGE flag.
* monitor.c (monitor_read_memory): Use previously mentioned flag
to send proper format memory examine commands to the w89k monitor.
Also, try to handle bizarre format of memory dump...
* op50-rom.c w89k-rom.c: Update to new monitor.[ch] conventions.
Sat Apr 1 03:22:20 1995 Peter Schauer (
* dbxread.c (process_one_symbol) [SOFUN_ADDRESS_MAYBE_MISSING]:
Handle relocated symbol address.
* partial-stab.h, case N_SO, SOFUN_ADDRESS_MAYBE_MISSING:
Do not relocate a zero address.
Thu Mar 30 19:46:36 1995 Jim Kingdon (
* config/a29k/tm-a29k.h: Nuke obsolete define CONTROL_END_ADDR; it
is nowhere used.
* stabsread.c (read_range_type): Remove FIXME comment about
type-id (I presume this meant a number followed by = followed by a
type) versus type number; Per fixed it.
Wed Mar 29 09:56:04 1995 Jason Molenda (
* sparc-*-sunos5* is same as sparc-*-solaris2*.
Wed Mar 29 18:30:03 1995 Stan Shebs <>
* remote-e7000.c (why_stop): Add new kinds of strings to expect
from the emulator.
(e7000_wait): Add interpretations for more stop reasons,
including warnings for write protect and cycle address errors.
Wed Mar 29 17:09:29 1995 Stu Grossman (
* monitor.c monitor.h remote-est.c rom68k-rom.c: Add start of
support for interrupting target.
* monitor.c (monitor_open): Send stop command before doing
anything else.
* (monitor_load_srec): Fix record size calculation to prevent end
of segment from getting trashed.
* rom68k-rom.c: Update to latest version of struct monitor_ops.
* config/sparc/tm-sparc.h (FIX_CALL_DUMMY): Fix byte-order
problems. Makes DOS hosted function calling work.
* sparclite/crt0.s: Define _start to make COFF happy.
Wed Mar 29 09:11:51 1995 Michael Meissner <>
* defs.h (atof): Don't provide an external declaration if atof is
a macro.
Wed Mar 29 00:01:07 1995 Peter Schauer (
* rs6000-tdep.c (skip_prologue): Skip saving of LR and CR in
the stack frame, fix typos in `st rx,NUM(r1)' and `stu r1,NUM(r1)'
Tue Mar 28 17:04:04 1995 Per Bothner <>
* gdbtypes.c (create_range_type): If indextype has TYPE_FLAG_STUB
(check_stub_type): Recalculate TYPE_LENGTH for range type.
* stabsread.c (read_range_type): If index type number is followed
by '=', back up, call read_type. and assume we have a true range.
* gdbtypes.h (TYPE_FLAG_TARGET_STUB): Update comment.
Mon Mar 27 22:51:54 1995 Peter Schauer (
* alpha-nat.c, irix4-nat.c, irix5-nat.c, mipsv4-nat.c,
sparc-tdep.c (supply_gregset, supply_fpregset): Fill inaccessible
registers with zero to handle recent read_register_bytes change.
* irix4-nat.c, irix5-nat.c, mipsv4-nat.c (supply_gregset,
fill_gregset): Fix handling of CAUSE_REGNUM.
* mips-nat.c (store_inferior_registers): Handle unwritable
registers when storing a single register.
* config/mips/tm-irix3.h (CAUSE_REGNUM, BADVADDR_REGNUM):
Fix definitions.
* mdebugread.c (parse_symbol, psymtab_to_symtab_1): Clear
allocated mips_extra_func_info, if the debug info is corrupt,
the PDR to fill it in might be missing.
Mon Mar 27 14:43:00 1995 Kung Hsu <>
* vx-share/regPacket.h: a new file interfacing with vxworks.
Sun Mar 26 13:22:47 1995 Jim Kingdon (
* breakpoint.c (bpstat_do_actions): Once we've executed the
commands, set bs->commands to NULL.
Sat Mar 25 01:16:10 1995 Peter Schauer (
* buildsym.c (patch_subfile_name): Update last_source_file
with the real source file name.
* dbxread.c (end_psymtab): Handle static functions in the
SOFUN_ADDRESS_MAYBE_MISSING case by passing pst->filename
to lookup_minimal_symbol.
(process_one_symbol): Ignore extra outermost context from
SunPRO cc and acc.
* stabsread.c (define_symbol): Do not complain for SunPRO
static variable encoding if STATIC_TRANSFORM_NAME is defined.
* sparc-tdep.c, config/sparc/tm-sun4sol2.h
(sunpro_static_transform_name): Renamed from
* config/sparc/tm-sun4os4.h (STATIC_TRANSFORM_NAME):
Define to sunpro_static_transform_name for acc 3.0 compiled
* procfs.c, config/alpha/nm-osf2.h (PROCFS_DONT_TRACE_FAULTS):
Renamed from PROCFS_DONT_TRACE_IFAULT, don't trace any faults
if defined.
* procfs.c (info_proc_siginfo): Cast sip->si_addr to
`unsigned long' and use `lx' format for printing it.
Fri Mar 24 15:45:42 1995 Stu Grossman (
* Move test for m68*-est-* before m68*-*-coff*.
* findvar.c: Move default def of CANNOT_STORE_REGISTER closer to
the beginning of the code.
* (write_register_gen): New routine. Analogous to
* (write_register_bytes): Another rewrite! Make it smarter about
not updating regs with the same value.
* monitor.c (printf_monitor readchar): Use stderr instead of
stdout to output debug info. Also cleanup readchar a little.
* (expect): Make sure that excessive responses are null
* (monitor_open): Check for magic number in monitor_ops struct.
Allow multiple commands as init strings. Also, clear all
* (monitor_resume monitor_wait): Send a command to dump all the
regs for those targets which don't do so when waking up after a
continue command.
* (monitor_wait): Handle excessive response output better.
* (monitor_write_memory): Use block fill, word, and long word
commands (if they exist) to write memory more efficiently.
* General cleanups to use flag bits instead of individual flag
words in monitor_ops struct.
* (monitor_command): Return output from command.
* (monitor_load_srec): Allocate buffer only once. Use alloca.
Wait for load response string instead of using a timeout to start
sending S-records. Fix bug where value of srec_frame shrinks. If
hashmark is set, print `-' for retransmissions. General cleanups.
* (monitor_make_srec): Get rid of S-record default type kludge.
* monitor.h: Use seperate struct for memory and register
read/write commands. Memory commands can come in byte, word,
long, and longlong forms.
* (monitor_ops): Change lots of fields. Generalize some stuff.
Put all flags into flags word. Allow init to be a list of commands.
Add command for clearing all breakpoints, block fill, dumping all
* remote-est.c: Rewrite to use new monitor conventions.
* config/m68k/ (TDEPFILES): Add monitor.o.
* config/m68k/tm-est.h: Set NUM_REGS to 18.
* testsuite/gdb.base/break.exp: Lots of cleanups. Use gdb_test
more thoroughly.
Thu Mar 23 23:20:00 1995 Jeff Law (
* somsolib.c (som_solib_add): Handle case where a shared library
referenced by a core file has sections without the SEC_ALLOC bit
set (eg stabs sections).
Thu Mar 23 15:07:08 1995 Jim Kingdon (
* breakpoint.c (bpstat_do_actions): For each element in the bpstat
chain, do all the commands regardless of whether they run the
Wed Mar 22 19:17:06 1995 Doug Evans <>
* mem-break.c (LITTLE_BREAKPOINT, BIG_BREAKPOINT): Define as
BREAKPOINT if mono-endian.
(break_insn): Deleted.
(big_break_insn, little_break_insn): Define.
(memory_insert_breakpoint): Handle bi-endian cpus.
(memory_remove_breakpoint): Use it.
(memory_breakpoint_size): Likewise.
Tue Mar 21 17:03:17 1995 Kung Hsu <>
* sparc-stub.c: add nop after 'bg good_wim'.
* sparcl-stub.c: ditto.
Tue Mar 21 13:34:12 1995 Jim Kingdon (
* infrun.c (handle_command): Don't print TARGET_SIGNAL_0,
Mon Mar 20 10:09:59 1995 Jeff Law (
* hppab-nat.c (store_inferior_registers): Sync with HPUX version.
Mon Mar 20 07:34:48 1995 Stu Grossman (
* hppah-nat.c (store_inferior_registers): Move check for
CANNOT_STORE_REGISTER to a better place. Fixes ptrace I/O errors
found by test suite during function calls, which attempts to write
unwritable registers.
Sat Mar 18 02:02:24 1995 Peter Schauer (
* mdebugread.c (parse_symbol): If finishing a function without
known parameter type info, set that from parameter symbols.
Remove commented-out add_param_to_type support.
Thu Mar 16 16:38:03 1995 Jim Kingdon (
* xcoffread.c (process_linenos): Make sure filename we pass to
start_subfile will cause deduce_language_from_filename to return
the correct thing. Reindent function to GNU standards.
Thu Mar 16 15:54:00 1995 J.T. Conklin <>
* nlm/gdbserve.c (handle_exception): #if out call to StopBell,
as it is not available on NetWare 3 or PIN.
* nlm/ppc.c (StopBell): Removed.
Thu Mar 16 12:14:41 1995 Jim Kingdon (
* xcoffread.c (read_xcoff_symtab): When creating a dummy parameter
inferred from the traceback tags, give its type the name
"<non-float parameter>".
* stabsread.c (rs6000_builtin_type): Recognize types -31 to -34.
Wed Mar 15 15:09:29 1995 Stu Grossman (
* findvar.c (read_register_bytes write_register_bytes): Make
these routines much smarter about updating registers from the
target, only doing so when absolutely necessary. This really
speeds up register modification on some remote targets.
* monitor.c: More cleanups. Get rid of monitor_load_ascii_srec.
BFD makes this unnecessary. Lots of debugging speedups.
* (expect): NULL terminate return string.
* (monitor_open monitor_supply_register parse_register_dump
monitor_wait monitor_fetch_register): Switch to using GNU regexp
library to parse multi-register displays.
* (monitor_read_memory): Read multiple bytes (up to 16) at once.
* (monitor_create_inferior): Call clear_proceed_status to make run
command notice first breakpoint.
* (monitor_load): Clean up. Reset inferior_pid, set pc to start
address and reset symbol table stuff to make loads put things into
a fresh state.
* (monitor_load_srec): Lower sleep time to 1 second.
* monitor.h (struct monitor_ops): Add register_pattern and
supply_register to monitor_ops.
* rom68k-rom.c: Add new support for handling register dumps.
* config/m68k/tm-m68k.h: Define D0_REGNUM and A0_REGNUM for register
dump handling.
Wed Mar 15 15:18:27 1995 Jim Kingdon (
* utils.c, defs.h (putchar_unfiltered, fputc_unfiltered): Make
argument be an int, not a char. Using a prototype followed by an
old-style function definition in a case where an argument is
widened is a GCC-ism not supported by the native AIX compiler.
Wed Mar 15 12:22:35 1995 J.T. Conklin <>
* nlmstub.def: Removed, this was moved to nlm/gdbserve.def
long ago.
* (alpha-*-netware*): Removed configuration.
* config/alpha/{,, tm-alphanw.h}: Removed.
* nlm/{README-ALPHA-NETWARE, aio.h, alpha-io.S, alpha-regdef.h,
alpha.c, alpha.h, altdebug.h}: Removed.