Commit graph

4471 commits

Author SHA1 Message Date
Peter Schauer
2c06801014 * c-lang.c (asm_language_defn): New definitions for language_asm,
mostly copied from c_language_defn, to avoid warnings when
	switching between c and asm stack frames.
1994-06-21 06:58:41 +00:00
Ian Lance Taylor
6187dfac46 * mdebugread.c (parse_symbol): Don't call ecoff_swap_tir_in or
ecoff_swap_rndx_in directly; use the debug_swap pointer instead.
	(upgrade_type, handle_psymbol_enumerators): Likewise.
	(has_opaque_xref, cross_ref): Likewise.
	(elfmdebug_build_psymtabs): Call swap->read_debug_info to read
	debugging information, rather than doing it here.
	* mipsread.c (mipscoff_symfile_read): Call read_debug_info entry
	point in ecoff_debug_swap backend structure, rather than calling
	ecoff_slurp_symbolic_info directly.
1994-06-20 18:27:29 +00:00
Stan Shebs
a8594cb3f3 * lib/gdb.exp (string_to_regexp): Set a default result.
(default_gdb_start): Fix misleading message.
1994-06-18 19:55:23 +00:00
Jim Kingdon
fb71d42292 * breakpoint.c: Include annotate.h. Call annotate_field rather
than printing annotation directly.
1994-06-18 04:14:26 +00:00
Jim Kingdon
afd3e3b15a * main.c: Include string.h. 1994-06-18 04:02:02 +00:00
Stan Shebs
9f8219f130 * fork-child.c (startup_inferior) [STARTUP_INFERIOR]: If defined,
call it instead of doing normal loop.
	* infcmd.c (attach_command): Don't call wait_for_inferior if
	running	Mach 3.
	* infrun.c (proceed) [PREPARE_TO_PROCEED]: If defined, call
	hook that can decide whether to step over the next breakpoint.
	* utils.c (wrap_here): Abort if wrap_buffer not allocated.
	(request_quit) [REQUEST_QUIT]: If defined, call it instead of
	doing normal quit.

	* Makefile.in (stop-gdb): New target.
	* stop-gdb.c: New file, utility to get attention of waiting GDBs
	in Mach 3.
1994-06-16 23:04:55 +00:00
Stan Shebs
6ec7e4d36a * configure.in: Improve sorting/formatting of hosts and targets.
(i[34]86-*-mach3*, i[34]86-*-osf1mk*, mips-*-mach3*,
	m88*-*-mach3*, ns32k-*-mach3*): Recognize.
	* Makefile.in (gdb-stop): New target.
	* gdb-stop.c: New file, utility to gets attention of waiting GDBs
	in Mach 3.
1994-06-16 22:02:24 +00:00
Stan Shebs
8c16485eb0 Keep v9 bits now. 1994-06-16 21:18:05 +00:00
Stan Shebs
58c0b523fe Wed Jun 15 17:36:07 1994 Stan Shebs (shebs@andros.cygnus.com)
* mpw-make.in (.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_init.
	(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.
1994-06-16 01:03:01 +00:00
Stan Shebs
9da7b23745 Wed Jun 15 12:10:10 1994 Stan Shebs (shebs@andros.cygnus.com)
* config/mt-a29k-udi, config/mt-i960-nindy, config/mt-sparc-aout:
	Remove all CC, etc definitions.
	* config/mt-hpux: New file.
	* config/mt-mips-ecoff (CFLAGS_FOR_TARGET): Remove:
	(CFLAGS, LDFLAGS): Define.
	* config/mt-slite (CFLAGS_FOR_TARGET): Change to LDFLAGS.
1994-06-15 19:49:41 +00:00
Stan Shebs
48f6098e1d Wed Jun 15 12:10:10 1994 Stan Shebs (shebs@andros.cygnus.com)
* Makefile.in (site.exp): Don't insert host_os, etc.
	(just-check): Just use RUNTEST with RUNTESTFLAGS only.
	(distclean): Check existence of subdir.
	* gdb.base/configure.in (hppa*-*-hpux*): Recognize.
	* gdb.base/Makefile.in: General cleanup and simplification.
	Use CC, CFLAGS, and LDFLAGS instead of ..._FOR_TARGET versions
	to build executables.	Use default rule to build .o files.
	(EXPECT, RUNTEST, CC): Fix relative pathname.
	(site.exp): Don't insert host_os, etc.
	* gdb.base/signals.c (main): Don't call signal unless SIGALRM
	and/or SIGUSR1 defined.
	* gdb.base/watchpoint.c: Don't include stdio.h a second time.
	* gdb.c++/Makefile.in: General cleanup and simplification.
	Use CC, CFLAGS, and LDFLAGS instead of ..._FOR_TARGET versions
	(CFLAGS): Remove.
	(EXPECT, RUNTEST_FOR_TARGET, CXX): Fix relative pathname.
1994-06-15 19:31:19 +00:00
Thomas Lord
f36b58b10c Init current_directory. 1994-06-15 08:04:44 +00:00
Thomas Lord
e91c181625 New features. Less bugs. 1994-06-15 00:28:50 +00:00
Per Bothner
ccda44f92f * result.ch, result.exp, Makefile.in: New test case.
* pr-4975.ch, pr-4975-grt.ch, pr-4975.exp, Makefile.in:  Ditto.
1994-06-14 23:23:14 +00:00
Kung Hsu
f2d9c05802 Modified Files:
breakpoint.c ChangeLog

        * breakpoint.c: annotate changes lost at merge, put back in.
1994-06-14 23:22:44 +00:00
Stan Shebs
e884f41802 Mon Jun 13 17:28:50 1994 Stan Shebs (shebs@andros.cygnus.com)
* config/i386/i386sco.mh, i386sco4.mh (XDEPFILES): Remove
	i387-tdep.o.
1994-06-14 00:47:06 +00:00
Kung Hsu
2b14c195f1 Modified Files:
.Sanitize ChangeLog

        * .Sanitize: change name from sparclite-*.c to sparcl-*.c.
1994-06-13 19:31:01 +00:00
Peter Schauer
020ed9bbb7 * config/m68k/dpx2.mh (NATDEPFILES): Remove duplicate inclusion
of inftarg.o.
	* config/m68k/tm-dpx2.h (CANNOT_STORE_REGISTER):  Define to inhibit
	writing of floating registers, the dpx2 kernel disallows it.
1994-06-12 11:11:39 +00:00
Peter Schauer
33c66e44ed * config/m68k/dpx2.mh (NATDEPFILES): Remove duplicate inclusion
of inftarg.o.
	* config/m68k/tm-dpx2.h (CANNOT_STORE_REGISTER):  Define to inhibit
	writing of floating registers, the dpx2 kernel disallows it.
	* irix5-nat.c (LM_ADDR):  The loaded address of the shared library
	is contained in o_praw.
	* irix5-nat.c (solib_map_sections):  Adjust sections by the
	difference between the loaded address and the prelinked address.
	* irix5-nat.c (solib_address):  Use LM_ADDR for the loaded start
	address.
	* mdebugread.c (parse_symbol):  Do not relocate stEnd/scText
	symbols, their value is absolute.
	* mdebugread.c (parse_partial_symbols):  Handle Irix 5.2 shared
	libraries fh->adr fields of zero. Relocate minimal symbol values
	upon readin. Relocate non-stabs symbols upon readin.
	* mdebugread.c (psymtab_to_symtab_1):  Use pst->textlow for the
	start address of the outermost block.
	* mdebugread.c (parse_lines, parse_procedure):  Pass in pst
	instead of section_offsets and use relocated pst->textlow for
	line number and procedure address relocations.

	From gmo@MicroUnity.com (Guillermo A. Loyola):
	* mdebugread.c (parse_symbol, parse_partial_symbols, cross_ref):
	Handle SGI Irix5 stIndirect symbol type.
1994-06-12 11:10:13 +00:00
Kung Hsu
110548816a Modified Files:
breakpoint.c ChangeLog

        * breakpoint.c: fix a syntax error native cc does not like.
1994-06-11 01:09:25 +00:00
Kung Hsu
97f288325e Modified Files:
sparclite.mt

	* change sparclite-tdep.o to sparcl-tdep.o.
1994-06-11 00:03:28 +00:00
Kung Hsu
1782eb41a7 Modified Files:
Makefile.in ChangeLog

        * Makefile.in: change sparclite-tdep.c to sparcl-tdep.c.
1994-06-10 23:55:12 +00:00
Kung Hsu
b955f68067 Added Files:
sparcl-tdep.c sparcl-stub.c
Removed Files:
	sparclite-tdep.c sparclite-stub.c

	* change file name because fisrt 8 chars has to be unique.
1994-06-10 23:26:59 +00:00
Kung Hsu
245efe138f Modified Files:
.Sanitize

        * .Sanitize: add sparclite-stub.c sparclite-tdep.c to keep.
1994-06-10 22:37:48 +00:00
Kung Hsu
2c3fb46af9 Modified Files:
ChangeLog

        * sparclite/Makefile.in: fix INCLUDE_CFLAGS to have {srcdir}/../config.
1994-06-10 21:58:48 +00:00
Jeff Law
d3f6b4638a * gdb.base/recurse.exp: Misc changes to get tests running again
after Kung's changes to the watchpoint code.
	* gdb.base/watchpoint.exp: Likewise.
1994-06-10 17:10:08 +00:00
Jeff Law
e9a3cde889 * hppa-tdep.c (target_read_pc, target_write_pc): Accept (and
ignore) a PID argument.
	(hppa_pop_frame): Pass a PID to target_write_pc.
	* config/pa/tm-hppa.h (TARGET_READ_PC, TARGET_WRITE_PC): Accept
	and pass through a PID argument.
	(target_read_pc, target_write_pc): Update prototypes.
1994-06-10 16:43:52 +00:00
Per Bothner
d1a390dc4c * pr-5022.ch, pr-5022.exp: New testcase.
* chillvars.exp:  Remove spurious newline.
1994-06-10 02:17:06 +00:00
Kung Hsu
7d1699ae19 Modified Files:
breakpoint.c breakpoint.h ChangeLog
Added Files:
	sparclite-tdep.c sparclite-stub.c

        * sparclite-tdep.c: new file, contains hardware breakpoint support
        code.
        * sparclite-stub.c: new file, stub code that add support hardware
        breakpoint support.
        * breakpoint.c: add hardware breakpoint support.
        * breakpoint.h: add new breakpoint type to support hardware
        breakpoint.
1994-06-10 01:30:06 +00:00
Kung Hsu
cd3508f16e Modified Files:
sparclite.mt tm-sparclite.h

        * config/sparc/sparclite.mt: add sparclite-tdep.o.
        * config/sparc/tm-sparclite.h: add hardware breakpoints support
        defiines and code.
1994-06-10 01:24:22 +00:00
Kung Hsu
7d5c4d30d8 Modified Files:
nm-hppab.h

        * config/pa/nm-hppab.h: change interface for target dependent
        code supporting watch point.
1994-06-10 01:23:20 +00:00
Kung Hsu
038a2f11f6 Modified Files:
nm-irix4.h

         * config/mips/nm-irix4.h: change interface for target dependent
        code supporting watch point.
1994-06-10 01:22:38 +00:00
Kung Hsu
2c012f9efc Modified Files:
ChangeLog

        * remote-os9k.c (rombuf_command): fix a bug accepting rombug
        output.
        * stabsread.c (read_struct_fields): os9k nested structure does not
        have terminating ';', instead it just get to ',' and bit position
        and length.
1994-06-09 23:22:56 +00:00
Per Bothner
605f94ba35 * Makefile.in: Bunch of fixes so it actually works in this
directory.  (E.g. add extra ../ where needed.)
	Also, add .exe to executables, so we can use suffix rules.
	* chexp.exp (test_print_reject):  Update syntax error message.
	* chillvars.ch (module PR_5020):  Moved from here ...
	* pr-5022.ch: ... to this new file.
	* chillvars.exp, pr-5020.exp (binfile):  Add .exe extension.
	* chillvars.exp, pr-5020.exp: Don't check all_flag.
	* pr-5020.exp:  Add more tests; fix "print y pretty" output.
1994-06-09 23:13:54 +00:00
Kung Hsu
539dccd38e Modified Files:
remote-os9k.c stabsread.c

        * remote-os9k.c (rombuf_command): fix a bug accepting rombug
        output.
        * stabsread.c (read_struct_fields): os9k nested structure does not
        have terminating ';', instead it just get to ',' and bit position
        and length.
1994-06-09 22:03:41 +00:00
Stu Grossman
7314b3ee04 (nlm_symfile_read): Use SYMBOL_CLASS to access symbol class. 1994-06-09 15:32:46 +00:00
Stu Grossman
a4b4f52058 * nlmread.c (nlm_symtab_read): Clean up a bit.
* (nlm_symfile_read):  Record bounds of main() so that backtrace
	command will know where to stop.
	* objfiles.c (objfile_relocate):  Relocate entry point/func info
	for backtrace as well.
	* objfiles.h:  Define values for invalid PCs for entry point info.
	* symfile.c (init_entry_point_info):  Initialize invalid values
	with aforementioned macros.
	* config/alpha/tm-alphanw.h:  Turn on FRAME_CHAIN_VALID_ALTERNATE
	to cause backtrace to stop when it gets back to main().
	* config/i386/tm-i386nw.h:  Ditto.
1994-06-09 06:30:38 +00:00
Stan Shebs
0fba9aa255 Wed Jun 8 12:12:17 1994 Stan Shebs (shebs@andros.cygnus.com)
* config/udi-gdb.exp, config/unix-gdb.exp: Call default_gdb_start.
	* lib/gdb.exp (default_gdb_start): Define.
1994-06-08 19:25:43 +00:00
Jim Kingdon
68361314c0 * gdb.c++/demangle.exp: Use gdb_test_exact, rather than demangle
(which was basically just a local version of the same thing).  In
	addition to avoiding duplication, gdb_test_exact is faster.
	* lib/gdb.exp (gdb_test_exact): Fix typo.
1994-06-07 16:40:10 +00:00
Jim Kingdon
31711c6961 * lib/gdb.exp (delete_breakpoints): If there were no breakpoints,
don't give an error.
	* gdb.base/term.exp: Call delete_breakpoints before starting.
1994-06-07 16:04:40 +00:00
Jim Kingdon
63fb699b06 * gdb.base/Makefile.in (EXECUTABLES): Remove t10.
(t10): Add comment.
1994-06-07 15:43:59 +00:00
Stan Shebs
16def8c8a0 Reorganized GDB tests - Chill 1994-06-07 02:01:27 +00:00
Stan Shebs
ef44eed173 Reorganized GDB tests - base 1994-06-07 01:57:15 +00:00
Stan Shebs
33268150cb Mon Jun 6 18:26:50 1994 Stan Shebs (shebs@andros.cygnus.com)
Reorganization of the GDB Test Suite.

	* gdb.base: New directory, contains all the basic tests.
	* gdb.c++: New directory, tests specific to C++.
	* gdb.chill: New directory, tests specific to Chill.
	* gdb.t00, gdb.t01, gdb.t02, gdb.t03, gdb.t04, gdb.t05, gdb.t06,
	gdb.t07, gdb.t08, gdb.t09, gdb.t10, gdb.t11, gdb.t12, gdb.t13,
	gdb.t15, gdb.t16, gdb.t17, gdb.t20, gdb.t21, gdb.t22, gdb.t23,
	gdb.t24, gdb.t30, gdb.t31: Removed directories, contents moved
	into appropriate new directories (t00-t17 to base, t20-t23 to c++,
	t30-31 to chill).
	* */gdbme.*: Rename to match appropriate expect scripts.
	* gdb.base/bitfields.c, gdb.base/break.c, gdb.base/callfuncs.c,
	gdb.base/coremaker.c, gdb.base/exprs.c, gdb.base/funcargs.c,
	gdb.base/interrupt.c, gdb.base/list0.c, gdb.base/list0.h,
	gdb.base/list1.c, gdb.base/mips_pro.c, gdb.base/nodebug.c,
	gdb.base/opaque-info.c, gdb.base/opaque0.c, gdb.base/opaque1.c,
	gdb.base/printcmds.c, gdb.base/ptype.c, gdb.base/recurse.c,
	gdb.base/return.c, gdb.base/run.c, gdb.base/scope0.c,
	gdb.base/scope1.c, gdb.base/setvar.c, gdb.base/signals.c,
	gdb.base/types.c, gdb.base/twice.c, gdb.base/watchpoint.c,
	gdb.base/whatis-info.c, gdb.base/whatis.c: New names of C files.
	* gdb.c++/cplusfuncs.cc, gdb.c++/templates.cc, gdb.c++/misc.cc,
	gdb.c++/virtfunc.cc: New names of C++ files.
	* gdb.chill/chillvars.ch: New name of Chill file.
	* gdb.base/configure.in, gdb.c++/configure.in,
	gdb.chill/configure.in: Merge in contents of gdb.t*/configure.in.
	* gdb.base/Makefile.in, gdb.c++/Makefile.in,
	gdb.chill/Makefile.in: Merge in contents of gdb.t*/Makefile.in.
	* configure.in (configdirs): Update to reflect directory changes.
	(target_abbrev): No longer define for any configuration.
	* Makefile.in: Cosmetic improvements to header comments.
1994-06-07 01:50:58 +00:00
Per Bothner
e10cfcaa37 Fix value_print, which used to be ostensibly langauge-indepentdent,
but would print pointers and arrays in C syntax.  Instead, call
	a language-specific function.  See ChangeLog for details.
1994-06-05 01:43:40 +00:00
Per Bothner
b11f2c1f76 Various changes to gdb.t31. 1994-06-04 02:03:08 +00:00
Jim Kingdon
172559ec33 * main.c: Move entire file except for #ifndef MAIN_OVERRIDE code
to new file top.c.  Make things extern instead of static and
	similar rearrangements to deal with this.
	* top.h: New file.
	* utils.c: Move fputs_unfiltered to main.c.  Remove
	FPUTS_UNFILTERED_OVERRIDE ifndef.
	* Makefile.in: Change so that gdb uses main.c, utils.c, and top.c,
	and libgdb uses utils.c and top.c.
1994-06-03 17:25:08 +00:00
Jeff Law
36af5ec640 * hppa-tdep.c (skip_trampoline_code): Fix typo. 1994-06-03 05:21:30 +00:00
Per Bothner
35f8a58898 * ch-valprint.c (chill_val_print_array_elements): New function.
A Chill version of val_print_array_elements, it prints the
	array index labels, in additions ot the array element values.
	(chill_val_print):  Use the new function.
1994-06-03 01:19:21 +00:00
Per Bothner
f2d5a56e99 * Makefile.in (CHILL_LIB): Remove bogus redundant definitions. 1994-06-02 23:03:35 +00:00
Per Bothner
faa157708b * lib/gdb.exp (string_to_regexp, gdb_test_exact): New procedures. 1994-06-02 23:02:00 +00:00
Stu Grossman
2e6784a89f * configure.in: Add nlm subdir to configdirs for alpha-*-netware
target.
	* defs.h (enum language):  Add language_asm.
	* findvar.c (read_register_bytes read_register_gen
	write_register_bytes read_register read_register_pid
	write_register write_register_pid supply_register):  Move multi-
	thread handling down into these routines.  Create XXX_pid routines
	that allow register references to specify the pid.
	* findvar.c infcmd.c (read_pc read_pc_pid write_pc write_pc_pid
	read_sp write_sp read_fp write_fp):  Move these routines from
	infcmd to findvar to centralize the whole mess.
	* i386-nlmstub.c:  Portability fixes.
	* infptrace.c (child_resume):  Conditionalize to allow other natives
	to override it.  Remove PIDGET gubbish, it's no longer necessary.
	* infrun.c (wait_for_inferior):  Put registers_changed() before
	target_wait() to speed up remote debugging.
	* Replace code that reads registers from other threads with much
	nicer looking new function calls (see changes to findvar.c).
	* Don't skip prologues if debugging assembly source.
	* lynx-nat.c (child_resume):  Lynx now needs it's own version of
	child_resume to handle multi-thread debugging properly.
	* remote.c:  Add O response to get console output from target.
	* (readchar): Add timeout parameter.  Handle SERIAL_EOF and
	SERIAL_ERROR here to simplify callers.
	* Change static var timeout to remote_timeout.
	* (fromhex):  Remove unnecessary return -1 at end of routine.
	* (remote_wait):  Turn this into a big switch statement.  Add
	support for O response.
	* (putpkt):  Remove unnecessary handling of SERIAL_EOF/ERROR.
	* (getpkt):  Split getpkt into two parts.  read_frame deals with
	all formatting issues, run-length encoding, and framing.  getpkt
	now handles error recovery, and frame detection.
	* ser-tcp.c (tcp_readchar):  Handle EINTR from read().
	* ser-unix.c (hardwire_raw):  Set CLOCAL so that we ignore modem
	control.  (hardwire_readchar):  Handle EINTR from read().
	* symfile.c (deduce_language_from_filename):  Add support for .s
	files.
	* config/nm-lynx.h:  Define CHILD_WAIT so that lynx-nat.c can
	override infptrace's child_wait.
	* config/rs6000/rs6000lynx.mh:  Use xm-rs6000ly.h & nm-rs6000ly.h
	instead of XXXlynx.h.
	* config/rs6000/rs6000lynx.mt:  Use tm-rs6000ly.h instead of
	tm-rs6000lynx.h.
	* nlm/gdbserve.c:  Portability fixes.
1994-06-02 16:58:48 +00:00
Jim Kingdon
cb0520c4d1 * stabs.texinfo (Statics): Value of xcoff C_BSTAT points to
another symbol, it is not the address itself.
1994-06-01 23:14:45 +00:00
Rob Savoye
16451f9b70 Unneeded. 1994-06-01 20:40:53 +00:00
Rob Savoye
9346963065 Renamed. 1994-06-01 20:30:19 +00:00
Jim Kingdon
d3507982fb * inftarg.c (child_wait): Call proc_wait, not wait.
(child_mourn_inferior): Call proc_remove_foreign.
	* main.c (gdb_init): Call init_proc.
	* main.c: Provide dummy versions of init_proc, proc_wait, and
	proc_remove_foreign for the gdb case (the libgdb case provides its
	own versions of these functions).
	* Makefile.in (libgdb-files): Add libproc.a.
1994-06-01 19:28:24 +00:00
Stan Shebs
6d40175db0 Wed Jun 1 11:08:52 1994 Stan Shebs (shebs@andros.cygnus.com)
Hardware watchpoints for Linux, from Rick Sladkey
	(jrs@world.std.com).
	* infrun.c (wait_for_inferior) [HAVE_CONTINUABLE_WATCHPOINT]: Add
	new hardware breakpoint recovery method.
	* i386v-nat.c (i386_insert_watchpoint,
	i386_insert_nonaligned_watchpoint, i386_remove_watchpoint,
	i386_stopped_by_watchpoint) [TARGET_CAN_USE_HARWARE_WATCHPOINT]:
	New functions to support the 386 hardware debugging registers.
	* config/i386/nm-linux.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT,
	HAVE_CONTINUABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
	target_insert_watchpoint, target_remove_watchpoint): Define these
	macros to use the hardware debugging functions in i386v-nat.c.
1994-06-01 18:26:16 +00:00
Per Bothner
0b9158e6fa * Makefile.in: Fix bit-rot in definitions of CHILL,
CHILL_FOR_TARGET and Chill_LIB.
1994-05-30 05:34:32 +00:00
Jim Kingdon
667fb5c3a7 * Makefile.in: Replace libgdb.a with libgdb-files. Make "all"
build it.
1994-05-26 23:46:00 +00:00
Per Bothner
06f98d4908 * Makefile.in (TARGET_FLAGS_TO_PASS): Fix syntax of
sanitize-chill comments.
1994-05-26 00:12:21 +00:00
Thomas Lord
8eb7b7c354 Make all the libgdb objects even when building gdb. This is because
cyscm links against ../../gdb/{...}.o

Added a new target: libgdb-files.  It creates a file of that name
containing a list of files for libgdb.  If the variable LIBGDBPREFIX
is set, each file name has that prepended.
1994-05-25 15:39:12 +00:00
Jim Kingdon
a13d789c7f Mention gdb-testers-request as well as gdb-testers. (not in ChangeLog
because gdb distributions should not contain references to snapshots).
1994-05-24 23:56:30 +00:00
Bill Cox
90fba5fa0f * Revert the previous changes. Please see Rob's directory
/lisa/test/rob/progressive/gdb/testsuite for these fixes.
1994-05-21 17:24:22 +00:00
Jim Kingdon
429f1c9f46 * target.c, target.h: New variables target_activity_function and
target_activity_fd.
	* inflow.c, inferior.h: New functions set_sigio_trap and
	clear_sigio_trap.
	* inftarg.c (child_wait), procfs.c (wait_fd): Call them.
1994-05-20 03:43:39 +00:00
Bill Cox
2f10998399 * Makefile.in, configure.in, config/mips-gdb.exp,
config/mt-a29k-udi, config/mt-i386-aout, config/mt-i960-nindy,
          config/mt-sparc-aout, config/udi-gdb.exp, config/unix-gdb.exp,
          config/unknown.exp, gdb.t00/default.exp, gdb.t00/help.exp,,
	  gdb.t00/teststrategy.exp, gdb.t01/Makefile.in, gdb.t02/Makefile.in,
	  gdb.t02/whatis.exp, gdb.t03/Makefile.in, gdb.t03/gdbme.c,
	  gdb.t04/Makefile.in, gdb.t05/Makefile.in, gdb.t06/Makefile.in,
	  gdb.t06/break.exp, gdb.t06/signals.c, gdb.t06/signals.exp,
	  gdb.t08/Makefile.in, gdb.t08/opaque.exp, gdb.t09/Makefile.in,
	  gdb.t10/Makefile.in, gdb.t11/Makefile.in, gdb.t12/Makefile.in,
	  gdb.t13/Makefile.in, gdb.t15/Makefile.in, gdb.t15/funcargs.exp,
	  gdb.t15/gdbme.c, gdb.t15/return.exp, gdb.t16/Makefile.in,
	  gdb.t17/Makefile.in, gdb.t17/callfuncs.exp, gdb.t17/gdbme.c,
	  gdb.t20/Makefile.in, gdb.t21/Makefile.in, gdb.t21/cplusfuncs.exp,
	  gdb.t22/Makefile.in, gdb.t22/virtfunc.exp, gdb.t23/Makefile.in,
	  gdb.t24/demangle.exp, lib/gdb.exp:  Check in Rob's testing
	  changes from 94Q1.
1994-05-19 19:58:04 +00:00
Bill Cox
d7096b9269 * config/mt-lynx, config/mt-m68k, config/mt-mips-ecoff,
config/mt-slite, config/mt-unix, config/mt-vxworks: Add
	  Rob's new testing fragments.
1994-05-19 00:06:29 +00:00
David Edelsohn
47424e7931 * remote-sim.h (sim_verbose): Delete.
Document callbacks needed.
	(sim_*): Change result to void where there isn't one.
	(sim_open): Clarify argument and error response.
	(sim_close): Declare.
	(sim_load): Change bfd_handle argument to file name.  Clarify result.
	(sim_create_inferior): Renamed from sim_set_args.
	(sim_set_pc): Delete.
	(sim_info): Delete printf_fn argument.
	* remote-sim.c (gdbsim_kill): Add comment describing purpose.
	(gdbsim_load): Try sim_load first.
	(gdbsim_create_inferior): Call sim_create_inferior.
	(gdbsim_open): Handle args == NULL.  Update call to sim_open.
	(gdbsim_close): Call sim_close.
	(gdbsim_files_info): Update call to sim_info.
	(gdbsim_ops): Realign comments.
1994-05-18 20:42:06 +00:00
David Edelsohn
bc67bf9606 (decode_format): Allow TARGET_PTR_BIT to be non-constant. 1994-05-18 20:04:23 +00:00
Stan Shebs
298f0428b4 Tue May 17 16:45:20 1994 Stan Shebs (shebs@andros.cygnus.com)
* xcoffread.c (read_xcoff_symtab): For C_FILE symbols, only use
	the auxent if the symbol's name is ".file".  From David Edelsohn
	<c1dje@watson.ibm.com>.
1994-05-18 03:13:09 +00:00
Jim Kingdon
20b3c1aae5 * breakpoint.c (breakpoint_1): Fix typo.
* annotate.c (annotate_field_end): Fix typo.

	* Makefile.in: Move annotate.o from COMMON_OBS to OBS.

	* Makefile.in (TSSTART): Remove; no longer used.
1994-05-18 00:59:15 +00:00
Bill Cox
8f07e53768 * config/mips-gdb.exp, config/udi-gdb.exp, config/vx-gdb.exp,
lib/gdb.exp: Replace error proc calls with perror.
1994-05-17 22:06:15 +00:00
Jim Kingdon
9c036bd836 * utils.c (vfprintf_maybe_filtered, vfprintf_unfiltered): Call
fputs_unfiltered and exit directly, rather than fatal.  The latter
	calls vfprintf_unfiltered!

	* gdbtypes.h, gdbtypes.c (can_dereference): New function.
	* value.h, printcmd.c (print_value_flags): Move from here...
	* annotate.c: ...to here, and make it use can_dereference.
1994-05-17 20:13:50 +00:00
Stan Shebs
60b3e2812a Fix a sanitization screwup. 1994-05-17 16:59:33 +00:00
Stan Shebs
b17fd29d90 Mon May 16 19:00:50 1994 Stan Shebs (shebs@andros.cygnus.com)
* gdb.t00/teststrategy.exp: Reorder so that AIX gdb can print the
	version also, match on casted version strings, and match on
	gdb startup case where the line numbers might be messed up.
1994-05-17 02:10:17 +00:00
Stan Shebs
16d2cc8084 Sat May 14 15:13:52 1994 Stan Shebs (shebs@andros.cygnus.com)
* inflow.c (job_control, attach_flag, generic_mourn_inferior):
	Remove, needed for both native and cross.
	* target.c (attach_flag, generic_mourn_inferior): Put here.
	* utils.c (job_control): Put here.
	(terminal.h): Don't include anymore.
1994-05-14 23:12:29 +00:00
Jim Kingdon
d8fc877318 * source.c (find_source_lines): Always use code that was #ifdef
BROKEN_LARGE_ALLOCA.  Do the cleanup before returning, rather than
	leaving it on the chain.  Reindent much of this function.
	* config/sparc/{xm-sun4sol2.h,xm-sun4os4.h},
	config/i386/{xm-sun386.h,xm-i386m3.h,xm-i386mach.h},
	config/m68k/{sun3os4.h,xm-news.h,xm-hp300hpux.h},
	config/ns32k/xm-ns32km3.h: Remove all references to
	BROKEN_LARGE_ALLOCA; with the above change it is no longer needed.
	* main.c, fork-child.c, many config files: Remove all
	SET_STACK_LIMIT_HUGE code; with the above changes it should no
	longer be needed.

	* symtab.c (lookup_partial_symbol): Use if and abort, not assert.
	This avoids __eprintf troubles.

	* main.c (main): Surround in #ifndef MAIN_OVERRIDE.  Move
	initialization code which needs to be called even if we bypass the
	command line stuff into gdb_init.
	* utils.c (fputs_unfiltered): Surround in #ifndef
	FPUTS_UNFILTERED_OVERRIDE.
	* Makefile.in (libgdb.a): New target.

	* utils.c: Rearrange I/O stuff a bit so that all output goes
	through fputs_unfiltered.  Use vasprintf; removes arbitrary limit
	which made %s not work with arbitrarily large strings.
	* printcmd.c (printf_command): Use printf_filtered, not
	printf_unfiltered and printf, now that arbitrary limit is gone.
1994-05-14 19:37:57 +00:00
Bill Cox
0c575f2d8b * config/mt-i960-vx (LDFLAGS): Add '-r' option for test links.
(CFLAGS): Delete it from here.
1994-05-14 01:09:17 +00:00
Jim Kingdon
1c95d7ab2e gcc -Wall lint:
* breakpoint.c (watchpoint_check): Remove unused variable b.
	* stack.c (print_frame_info): Move sp and buf inside #if.
	* eval.c (evaluate_subexp): Remove unused variables pp,
	mangle_ptr, ptr, and mangle_tstr.
	* valarith.c (value_x_binop): Remove unused variables mangle_tstr
	and mangle_ptr.
	* symtab.c (lookup_symtab): Put variable copy inside #if.
	(decode_line_1): Put variable q1 inside #if 0.
	* target.h: Declare target_link.
	* infrun.c (wait_for_inferior): Remove unused variables signame.
	* remote.c (remote_resume): Remove unused variable name.
	* c-exp.y (parse_number): Parenthesize operand of shift.
	* dbxread.c (record_minimal_symbol): Parenthesize operand of &&
	(this is a semantic change, the warning seems to have detected a bug).
	* dbxread.c (end_psymtab): Move variable p1 inside #if.
	* coffread.c: Move variable temptype inside #if.
	* ch-typeprint.c (chill_type_print_base): Remove unused variable
	name.
	* ch-valprint.c: #include typeprint.h and ch-lang.h.
	(chill_val_print): Remove unused variable in_range.
	(chill_val_print): Remove statement "length > TYPE_LENGTH (type);".
	(chill_val_print): Add default case for switch.
	* stabsread.h: Declare stabsect_build_psymtabs.
	* os9kread.c (read_minimal_symbols): Make this return void.
	(os9k_symfile_read): Remove unused variables stb_exist and val.
	(os9k_symfile_init): Remove unused variable val.
	(fill_sym): Remove unused variable id.
	(read_os9k_psymtab): Put variable back_to inside #if 0.  Remove
	unused variable nsl.
	Remove unused variable symfile_bfd.
	#if 0 unused variables lbrac_unmatched_complaint and
	lbrac_mismatch_complaint.
	Remove declaration for non-existent function os9k_next_symbol_text.

	* annotate.c, annotate.h: New files, containing a function for
	each annotation which outputs it.
	* Move breakpoints_changed from breakpoint.c to annotate.c.
	* breakpoint.c, blockframe.c, infrun.c, cp-valprint.c, main.c,
	printcmd.c, source.c, stack.c, utils.c, valprint.c:
	Use annotate.c functions to output annotations.
	* Makefile.in (OBS): Add annotate.o.
1994-05-13 18:18:57 +00:00
Stan Shebs
a6b26c4431 Changes for MacGDB:
Thu May 12 17:04:58 1994  Stan Shebs  (shebs@andros.cygnus.com)

	* mpw-make.in (INCLUDE_CFLAGS): Add readline source dir.
	(READLINE_CFLAGS, READLINE_SRC, READLINE_DIR): Uncomment.
	(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.
1994-05-13 00:31:31 +00:00
Bill Cox
edfb9ffd1f * config/makefile.rel.in: : Add comment lines
to Sanitize out CHILL references unless keep-chill
          was specified.
1994-05-12 21:16:41 +00:00
Bill Cox
4d2ad0a87b * .Sanitize: Drop the gdb.t30 and gdb.t31 directories
unless keep-chill was specified on the command line.
	* Makefile.in: Add comment lines to Sanitize out CHILL
	  references unless keep-chill was specified.
1994-05-12 21:08:47 +00:00
Jeff Law
f55179cbcd * hppa-tdep.c (read_unwind_info): Make sure elf_unwind_size and
elf_unwind_entries are always initialized.
1994-05-12 18:02:27 +00:00
Jeff Law
88b91d4a1b * hppa-tdep.c (skip_trampoline_code): Handle argument relocation
stubs which return directly to the caller rather than to the stub
        itself.
1994-05-12 16:50:43 +00:00
Stan Shebs
8db1a92291 Wed May 11 20:11:51 1994 Stan Shebs (shebs@andros.cygnus.com)
* c-exp.y (yyerror): Display a more informative error message.
	* ch-exp.y (yyerror): Ditto, don't use global yychar.
	* m2-exp.y (yyerror): Ditto.
1994-05-12 03:21:48 +00:00
Jim Kingdon
1cfc93e10d Change kill-region to delete-region 1994-05-11 15:03:35 +00:00
Stan Shebs
91ecc8efa9 Trivial change to prepare for a real one 1994-05-10 19:01:48 +00:00
Ian Lance Taylor
0286d386b2 * maint.c (print_section_table): Rename SEC_SHARED_LIBRARY to
SEC_COFF_SHARED_LIBRARY to match corresponding change in bfd.
1994-05-10 18:43:51 +00:00
Jim Kingdon
956106575c Remove debugging code. 1994-05-08 15:22:51 +00:00
Jim Kingdon
296fa52f19 Add a major mode for the breakpoints window. 1994-05-08 01:59:01 +00:00
Jim Kingdon
3e873a96c3 Fix typo in gdb-goto-first-gdb-instance.
Re-write gdb-look-for-tagged-buffer to avoid recursion (I was getting
errors because of too much nesting, obviously elisp lacks tail
recursion optimization)

Fix toggle-bp-this-line for new ways of communicating with gdb and
rename to gdb-toggle-bp-this-line.
1994-05-08 01:21:24 +00:00
Stan Shebs
2c30f25811 Fri May 6 13:30:22 1994 Stan Shebs (shebs@andros.cygnus.com)
* Makefile.in (kdb): Remove old init.c creation commands.
	* configure.in (sparclite): Match on sparclite*.
	* sparclite/aload.c (main): Only change section addresses for
	a.out format object files.
1994-05-06 20:39:25 +00:00
Steve Chamberlain
5ff7b32867 * config/i386/go32.mh: Define CC. 1994-05-06 20:28:55 +00:00
Stan Shebs
b292fca800 Fri May 6 11:56:54 1994 Stan Shebs (shebs@andros.cygnus.com)
* gdbserver/Makefile.in: Remove irrelevant definitions and
	comments inherited from the gdb Makefile.
	(BFD_DIR, BFD, BFD_SRC, BFD_CFLAGS): Add from gdb Makefile.
	(VERSION): Update to 4.12.3.
	(gdbserver): Remove any existing executable first.
	(distclean, realclean): Remove nm.h.
	* gdbserver/low-lynx.c: Add Sparc Lynx support.
	* gdbserver/low-sparc.c, gdbserver/low-sun3.c (sys/wait.h):
	Don't use absolute pathname.
1994-05-06 19:52:23 +00:00
Stan Shebs
87d62f677b Thu May 5 20:23:36 1994 Stan Shebs (shebs@andros.cygnus.com)
* stabs.texinfo (Stab Section Basics): Add comment about alignment
	of stabs-in-coff sections.
1994-05-06 03:31:15 +00:00
Stan Shebs
523ca9d0a2 Thu May 5 12:00:22 1994 Stan Shebs (shebs@andros.cygnus.com)
* rs6000-nat.c (vmap_ldinfo): Don't fail if fstat returns an
	error.
1994-05-05 19:07:10 +00:00
Jim Kingdon
ee5fca1f12 * infrun.c (proceed, normal_stop, wait_for_inferior), breakpoint.c
(print_it_normal): Add annotations for the inferior starting and
	stopping, and for all the various messages related to how it
	stopped.

	* printcmd.c (do_one_display): Annotate.
	* stack.c (print_frame_info): Annotate printing of stack frames.
1994-05-05 04:35:09 +00:00
Jim Kingdon
f710410bf9 * annotate.texi: Change edition to 0.5 and date to May 1994.
Add index.
	(Frames): New node, for frame annotation.
	(Displays): New node, for display annotation.
1994-05-05 04:25:03 +00:00
Stu Grossman
731dca9461 * remote.c (get_offsets): Handle case where stub doesn't support
qOffsets message.
1994-05-05 01:18:26 +00:00
Per Bothner
36a2283dad Add partial support for g++ code compiled with -fvtable-thunks.
* c-valprint.c (c_val_print):  Add vtblprint support
	when using thunks.
	* cp-valprint.c (cp_is_vtbl_member):  A vtable can be an array of
	pointers (if using thunks) as well as array of structs (otherwise).
	* cp-valprint.c (vtbl_ptr_name_old, vtbl_ptr_name):  Move to global
	level, and make the latter non-static (so define_symbol can use it).
	* stabsread.c (define_symbol):  If the type being defined is a
	pointer type named "__vtbl_ptr_type", set the TYPE_NAME to that name.
	* symtab.h (VTBL_PREFIX_P):  Allow "_VT" as well as "_vt".
	* values.c (value_virtual_fn_field):  Handle thunks.
	* values.c (value_headof):  Minor efficiency hack.
	* values.c (value_headof):   Incomplete thunk support.  FIXME.
1994-05-05 00:19:33 +00:00
Jim Kingdon
d24c05991f * valprint.c (print_longest): Clarify comment about use_local.
* printcmd.c, defs.h (print_address_numeric), callers in
	symmisc.c, symfile.c, stack.c, source.c, remote.c, infcmd.c,
	cp-valprint.c, core.c, ch-valprint.c, c-valprint.c, breakpoint.c,
	exec.c: New argument use_local.
	* source.c (identify_source_line): Use filtered output.  Use
	print_address_numeric.
1994-05-04 15:24:41 +00:00
Jim Kingdon
e16b9023f0 * core.c (memory_error), symtab.c (cplusplus_hint, decode_line_1),
language.c (type_error, range_error): Use filtered output.
	* utils.c (error_begin): Update comment to tell people to use
	filtered output.
1994-05-04 14:20:32 +00:00
Jim Kingdon
997c6a1d84 * Makefile.in (HFILES_WITH_SRCDIR): List bfd.h.
(HFILES_NO_SRCDIR): List gdbcore.h not gdbcore_h, so as not to get
	bfd.h.
1994-05-04 14:04:34 +00:00
Jim Kingdon
5940bfd964 * remote.texi (MIPS Remote): Say that set timeout doesn't apply
when waiting for your program to stop.
1994-05-04 13:28:23 +00:00
Jim Kingdon
3f5e2fb58f * procfs.c (procfs_wait): Reinstate code which deduces the signal
from the fault, #ifndef FAULTED_USE_SIGINFO.
	* config/sparc/tm-sun4sol2.h: Define FAULTED_USE_SIGINFO.
1994-05-03 15:13:26 +00:00
Jim Kingdon
b003875b63 * annotate.texi (Breakpoint Info): Document annotation of header
fields and record annotation.
1994-04-30 01:31:49 +00:00
Jim Kingdon
47ebe8fd88 * breakpoint.c (breakpoint_1): Annotate each field of the headers.
Explicitly annotate each record.
1994-04-30 01:30:28 +00:00
Stan Shebs
0c4b30ea74 Fri Apr 29 15:56:18 1994 Stan Shebs (shebs@andros.cygnus.com)
* xcoffexec.c: Reformat to standards and lint.
	(language.h): Include.
	(exec_close): Declare arg "quitting".
	(file_command): Declare arg "from_tty".
	(map_vmap): Cast xmalloc result to PTR.
	* rs6000-nat.c: Reformat to standards and lint.
	(exec_one_dummy_insn): Use char array for saved instruction.
	(fixup_breakpoints): Declare.
	(vmap_ldinfo): Be more informative in fatal error messages.
	(xcoff_relocate_symtab): Define to return void.
	* xcoffsolib.h: Reformat to standards, improve comments.
	* config/rs6000/nm-rs6000.h (xcoff_relocate_symtab): Declare.
1994-04-30 00:04:43 +00:00
Stan Shebs
526637b56c Fri Apr 29 14:26:35 1994 Stan Shebs (shebs@andros.cygnus.com)
* Makefile.in (RUNTEST): Default to just "runtest".
1994-04-29 21:41:14 +00:00
Jim Kingdon
f3bfec59f0 new window management code 1994-04-29 00:04:16 +00:00
Bill Cox
ea68d58d4e Back-migrate minor changes in these files from 94Q1 progressive into devo:
dejagnu/ChangeLog, dejagnu/Makefile.in,
	dejagnu/example/calc/Makefile.in, dejagnu/lib/remote.exp,
	dejagnu/testsuite/Makefile.in,
	dejagnu/testsuite/runtest.all/options.exp,
	gcc/testsuite/config/unix.exp, gdb/testsuite/Makefile.in,
	ld/ChangeLog, newlib/testsuite/ChangeLog, texinfo/testsuite/ChangeLog
1994-04-28 21:49:40 +00:00
Jim Kingdon
dd3a7d45f9 * annotate.texi: New file, to document annotations. 1994-04-28 21:43:10 +00:00
Jim Kingdon
a0cf46812c * utils.c, defs.h (error_begin): New function.
(quit): Print annotation before printing the error message.
	* main.c (return_to_top_level): Print annotation before doing the
	longjmp.
	* symtab.c (decode_line_1): Call error not warning and then
	return_to_top_level.  Call error_begin and printf_unfiltered
	rather calling warning (before calls to return_to_top_level).
	* core.c (memory_error): Use error_begin, printf_unfiltered,
	print_address_numeric and return_to_top_level instead of error.
	Cleans up a FIXME-32x64.
	* language.c (type_error, range_error): Call error_begin
	not just target_terminal_ours.
1994-04-28 21:38:15 +00:00
Jim Kingdon
21ad7c45a4 * dbxread.c (stabsect_build_psymtabs): Assign to sym_stab_info
directly, rather than via DBX_SYMFILE_INFO.  A cast on the left
	side of an assignment is non-portable.
1994-04-28 20:10:45 +00:00
Jim Kingdon
dec525ce9a add gdba.el 1994-04-28 19:47:46 +00:00
Jim Kingdon
f2db73374e x 1994-04-28 19:46:25 +00:00
Jim Kingdon
7e3c7c4078 * annotate.texi: New file, to document annotations. 1994-04-28 19:43:30 +00:00
Jim Kingdon
c9d4b5efe7 new, emacs gdb mode with annotation stuff 1994-04-28 18:34:28 +00:00
Jim Kingdon
a936321888 * annotate.texi: New file, to document annotations. 1994-04-28 16:54:02 +00:00
Jim Kingdon
4dd876ac2e (prompt_for_continue): Likewise for prompt-for-continue annotation. 1994-04-28 16:04:36 +00:00
Jim Kingdon
d8742f4673 * utils.c (query): Change syntax of query annotations to be
consistent with other input annotations.
1994-04-28 15:48:15 +00:00
Jim Kingdon
9b58556978 new, to document annotations 1994-04-28 14:43:44 +00:00
Peter Schauer
11d2698207 * mdebugread.c (psymtab_to_symtab_1): Do not call sort_blocks
for stabs symtabs.
	* mips-tdep.c (mips_skip_prologue):  Handle prologues for functions
	that have a stack frame size of 32k or larger (from Paul Flinders).
	Remove #if 0'd code.
1994-04-28 08:29:22 +00:00
Stan Shebs
aa17521656 Wed Apr 27 16:33:51 1994 Stan Shebs (shebs@andros.cygnus.com)
* lynx-nat.c (CANNOT_STORE_REGISTER): Add a fallback definition
	for Lynx platforms that need it.
	* config/nm-lynx.h (__LYNXOS): Define if not already defined.
1994-04-27 23:35:49 +00:00
Jim Kingdon
890634eda7 * procfs.c (procfs_wait): Use the signal from the pr_info rather
than trying to deduce it from the fault.
1994-04-27 23:10:26 +00:00
Steve Chamberlain
c0c9b9232f * printcmd.c (print_address_symbolic): Initialize name to empty
string to avoid core dump if lookup fails.
	* remote-e7000.c (printf_e7000debug): Error if target not open.
1994-04-27 19:31:08 +00:00
Stu Grossman
5a3a28f2ae * nlm/gdbserve.c (putDebugChar): Install bug fix from i386-nlmstub.
* (hex2mem):  Init ptr.
	* General cleanups to use ConsolePrintf, standard prologues, etc...
1994-04-27 05:50:42 +00:00
Stu Grossman
a49666feb0 * i386-nlmstub.c: Update to be more in line with PIN stub.
* nlm/gdbserve.c (putDebugChar):  Install bug fix from i386-nlmstub.
	* (hex2mem):  Init ptr.
	* General cleanups to use ConsolePrintf, standard prologues, etc...
1994-04-27 05:50:14 +00:00
Jeff Law
9b63f09c7d * gdb.t17/callfuncs.exp: More comments about t_func_values tests.
* gdb.t17/gdbme.c (t_func_values): Add comments about how and why
        the code has been restructured.
1994-04-27 05:24:08 +00:00
Stu Grossman
1624c38fd7 [Sharp eyes, Jim...]
* remote.c:
	* (get_offsets):  Temporary kludge to force data & bss sections to
	have the same relocation.
1994-04-27 01:39:38 +00:00
Stan Shebs
e632f85ee1 Remove new Mac files. 1994-04-27 01:27:49 +00:00
Stan Shebs
939baabee2 Tue Apr 26 17:44:27 1994 Stan Shebs (shebs@andros.cygnus.com)
* mpw-make.in (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
	definitions.
	* mac-xdep.c: New file, Mac host interface code.
	* config/m68k/xm-mpw.h (PATHNAME_SEPARATOR): Rename to
	DIRNAME_SEPARATOR.
	(PATHNAME_SEPARATOR_STRING): Remove.
	(SIGQUIT, SIGHUP): Define.
	(fileno, R_OK): Define.
1994-04-27 00:55:59 +00:00
Stu Grossman
68ba2fa550 * i386-nlmstub.c: More changes to be compatible with remote.c. 1994-04-26 22:39:20 +00:00
Stu Grossman
d0e2b7671e * i386-nlmstub.c: An interim version till we get PIN for the x86. 1994-04-26 17:24:59 +00:00
Stu Grossman
a66e8382de * dbxread.c (record_minimal_symbol): Record the section
associated with the symbol to make dynmaic relocation work.
	* (dbx_symfile_read, process_one_symbol):  Fixes to work around
	Solaris brain-damage which don't apply to relocatable object
	files.
	* (stabsect_build_psymtabs):  New routine to read stabs out of an
	arbitrarily named section.
	* nlmread.c (nlm_symtab_read):  Read ALL syms from the NLM, not just
	globals.
	* (nlm_symfile_read):  Call stabsect_build_psymtabs to read the
	stabs out of the nlm.
	* partial-stabs.h (cases 'f' & 'F'):  Fixes to work around Solaris
	brain-damage which don't apply to relocatable object files.
	* remote.c (putpkt):  Improve error reporting and error handling.
	* stabsread.c (define_symbol, scan_file_globals):  Record section
	info in sym.
1994-04-26 17:14:52 +00:00
Jim Kingdon
fdb81aa1e2 * breakpoint.c (breakpoint_1): Annotate each field of output. Add
FIXME-32x64 comment.
1994-04-24 02:07:53 +00:00
Jim Kingdon
d084c93fe2 * infrun.c (wait_for_inferior): Move call to flush_cached_frames
to after call to target_wait.  This means that flush_cached_frames
	can call target_terminal_ours if it wants to.
	* infrun.c (wait_for_inferior) [HAVE_NONSTEPPABLE_WATCHPOINT]: Add
	comment about why the code is dubious.
1994-04-23 03:00:04 +00:00
Jim Kingdon
0a2e98a99e * stabsread.c (read_type): Call read_type, not nonexistent
os9k_read_type.
1994-04-22 23:49:51 +00:00
Kung Hsu
d5336fc5a4 Modified Files:
ChangeLog remote-os9k.c os9kread.c stabsread.c

        * remote-os9k.c (rombug_fetch_registers): set trace mode
        correctly.
        * remote-os9k.c (rombug_read_inferior_memory): cache data in
        buffer.
        * os9kread,c (read_os9k_psymtab): process file symbol to truncate
        extra info.
        * os9kread.c (os9k_read_ofile_symtab): proper casting of args
        passed to process_one_symbol.
        * stabsread.c (read_type): process os9k functio prototype.
1994-04-22 21:36:59 +00:00
Jim Kingdon
f5a0908f3b * solib.c (symbol_add_stub): If so->textsection is NULL, don't
dump core.
1994-04-22 18:29:23 +00:00
Jim Kingdon
da988c2013 * utils.c (prompt_for_continue): Annotate prompt.
(query): Annotate query.
	* printcmd.c (print_frame_args): Change syntax of argument
	annotation to make name and value part of a single group of
	annotations, not two separate groups.
	* cp-valprint.c (cp_print_value_fields): Likewise for fields.
	* valprint.c (val_print_array_elements): Change syntax of
	annotation to be more concise.
	* main.c, defs.h (command_line_input): New argument tells what
	string to include in the annotations.
	* symtab.c (decode_line_2), main.c (read_command_lines,
	command_loop): Change callers.
1994-04-22 03:01:25 +00:00
Jim Kingdon
eb1e37a3ae * printcmd.c (print_command_1): Add value-history-value annotation. 1994-04-21 23:49:33 +00:00
Jim Kingdon
5d955237be * Makefile.in (clean): Don't remove GDBvn.texi (apparently on Jan
16 I meant to make this change but did not).  Do remove gdb-cfg.texi.
1994-04-21 21:24:30 +00:00
Jim Kingdon
9e8db4456e * breakpoint.c (watch_command): Use (CORE_ADDR)0, not NULL, for
target null pointer.
	* blockframe.c (find_frame_addr_in_frame_chain): Likewise.

	* printcmd.c (output_command): Annotate things we print here too.
	* Move declaration of print_value_flags from defs.h to value.h.
	* main.c (command_line_input): Call wrap_here as well as gdb_flush.
1994-04-21 21:19:58 +00:00
Jim Kingdon
739324d734 * gdb.t00/default.exp (set write): Allow any number of \r and/or
\n, not just one of each.

	* gdb.t07/gdbme.c (main): Don't take address of an array; SunOS4
	/bin/cc gives a warning if you do.
1994-04-21 20:08:42 +00:00
Kung Hsu
0cb7d54f3c Modified Files:
ChangeLog

        * gdb.t24/demangle.exp: change expect pattern of
        __t10ListS_link1ZUiRCUiPT0
1994-04-21 18:56:39 +00:00
Peter Schauer
0683ac4b2c * dbxread.c (read_dbx_dynamic_symtab): Reinstall support for sun3,
BFD handles sun3 dynamic relocations now.
	* elfread.c (elf_symtab_read, elf_symfile_read):  Handle dynamic
	symbol table.
1994-04-21 17:09:31 +00:00
Jim Kingdon
96f7edbde8 * printcmd.c (print_command_1): Annotate the top-level expressions
that we print.
	(print_frame_args): Annotate each argument.
	* printcmd.c, defs.h (print_value_flags): New function.
	* cp-valprint.c (cp_print_value_fields): Annotate each field.
	* valprint.c (val_print_array_elements): Annotate each array element.
1994-04-21 04:28:08 +00:00
Peter Schauer
59746d9ff1 * findvar.c (read_var_value): Handle LOC_REPARM_ADDR case correctly,
the register contains a pointer to the type, not the type itself.
1994-04-20 20:28:32 +00:00
Jim Kingdon
6c803036a9 * main.c (main): Accept --annotate=N option and make --fullname
the same as --annotate=1.
	(command_line_input): Print annotatation before and after prompt.
	* blockframe.c (flush_cached_frames): Print annotation.
	* Rename frame_file_full_name to annotation_level and move it from
	symtab.h to defs.h.
	* source.c (identify_source_line): If annotation_level > 1,
	change output format.
	* breakpoint.c: Print annotation whenever a breakpoint changes.
	* main.c: New variable server_command.
	(command_line_input): Parse "server " and set server_command.
	(dont_repeat): Check server_command.
1994-04-20 19:23:30 +00:00
Jim Kingdon
50cca37893 * stabs.texinfo (Stab Section Basics): Say what is in .stab
section, and say n_strx field is compilation unit relative.
	* stabs.texinfo: Don't use @code for a.out when it is the name of
	an object file format.
1994-04-20 18:26:12 +00:00
Jim Kingdon
963dbabee7 * xcoffread.c (xcoff_next_symbol_text): Don't return before
updating raw_symbol and symnum.  Return a value in the case where
	we complained.
1994-04-20 17:07:11 +00:00
Jim Kingdon
703e4251af * parse.c: Don't define block_found; it is defined in symtab.c.
* parser-defs.h: Add comment regarding block_found.
1994-04-20 15:48:08 +00:00
Jim Kingdon
d7a96d6771 * dstread.c, coffread.c: Don't define pending_blocks; buildsym.c
takes care of it.
1994-04-20 15:39:20 +00:00
Jeff Law
72b8ca5197 Add missing #endif. 1994-04-20 06:01:44 +00:00
Jeff Law
d782a99583 * hppa-tdep.c (internalize_unwind_info): Delete unused indexp
argument.
1994-04-19 16:47:30 +00:00
Peter Schauer
be78eb1ab1 * dbxread.c (read_dbx_dynamic_symtab): Relocate BFD symbols by
section vma. Do not read dynamic relocs for sun3 executables to
	avoid BFD assertion message.
1994-04-18 20:26:32 +00:00
Jeff Law
fe15373a50 * nm-hppab.h (KERNEL_U_ADDR): Define.
(FIVE_ARG_PTRACE): Likewise.
        (CANNOT_STORE_REGISTER): Likewise.
        * nm-hppah.h (KERNEL_U_ADDR): Define.
        (FIVE_ARG_PTRACE): Likewise.
        (CANNOT_STORE_REGISTER): Likewise.
        (NEED_TEXT_START_END): Likewise.

        * tm-hppah.h (NEED_TEXT_START_END): Delete definition.
        * xm-hppah.h (KERNEL_U_ADDR): Delete definition.
        (FIVE_ARG_PTRACE): Likewise.
        * xm-hppab.h (KERNEL_U_ADDR): Delete definition.
        (FIVE_ARG_PTRACE): Likewise.

        * hppa-tdep.c (read_unwind_info): Make static.
        (restore_pc_queue): Indirect through the target vector to
        reload the register state.
1994-04-18 17:18:12 +00:00
Jeff Law
8bd8cef202 Fix typo. 1994-04-18 17:17:23 +00:00
Jeff Law
9c842e0c31 * nm-hppab.h (KERNEL_U_ADDR): Define.
(FIVE_ARG_PTRACE): Likewise.
        (CANNOT_STORE_REGISTER): Likewise.
        nm-hppah.h (KERNEL_U_ADDR): Define.
        (FIVE_ARG_PTRACE): Likewise.
        (CANNOT_STORE_REGISTER): Likewise.
        (NEED_TEXT_START_END): Likewise.

        * tm-hppah.h (NEED_TEXT_START_END): Delete definition.
        * xm-hppah.h (KERNEL_U_ADDR): Delete definition.
        (FIVE_ARG_PTRACE): Likewise.
        * xm-hppab.h (KERNEL_U_ADDR): Delete definition.
        (FIVE_ARG_PTRACE): Likewise.

        * hppa-tdep.c (read_unwind_info): Make static.
        (restore_pc_queue): Indirect through the target vector to
        reload the register state.
1994-04-18 17:16:56 +00:00
Jeff Law
c5152d4234 * paread.c (compare_unwind_entries): Delete function. It's been
moved into hppa-tdep.c.
        (read_unwind_info): Likewise.
        (pa_symfile_read): No longer call read_unwind_info.  The unwind
        tables will be read in as they are needed.

        * hppa-tdep.c (compare_unwind_entries): New function.
        (read_unwind_info, internalize_unwinds): Likewise.
        (find_unwind_entry): Read in unwind information on demand.
1994-04-17 05:22:39 +00:00
Stan Shebs
fad466eb6d Fri Apr 15 11:53:46 1994 Stan Shebs (shebs@andros.cygnus.com)
* source.c (DIRNAME_SEPARATOR): New macro, replaces all references
	to : in search path processing.
	* defs.h (qsort): Rename argument in prototype.
	* symtab.h (SAYMBOL_VALUE): Rename value field, avoids bugs in
	some compilers.
	* breakpoint.c, exec.c, mdebugread.c, mipsread.c, xcoffexec.c
	(false): Eliminate usages.
1994-04-15 21:55:49 +00:00
Steve Chamberlain
63eef03aba * h8500-tdep.c (initialize_h8500_tdep, large_command):
All references to value changed to value_ptrlage_command is now
	called big_command.
	All references to value changed to value_ptr.
	* remote-z8k.c (e7000_wait): Use target_waitstatus and SETSTOP
	* remote-hms.c (hms_wait): Timeout after five seconds.
	* ser-go32.c (dosasync_read): Poll if timeout < 0.
	* config/tm/tm-h8500.h (BEFORE_MAIN_LOOP_HOOK): Deleted.
	* config/sh/tm-sh.h (BREAKPOINT): Is now sleep opcode.
1994-04-15 18:43:07 +00:00
Steve Chamberlain
723a8cc532 * config/tm/tm-h8500.h (BEFORE_MAIN_LOOP_HOOK): Deleted. 1994-04-15 18:41:27 +00:00
Steve Chamberlain
2e2b27790c * config/sh/tm-sh.h (BREAKPOINT): Is now sleep opcode. 1994-04-15 18:41:05 +00:00
Jeff Law
6bc194d2b5 * procfs.c (procfs_wait): Protect watchpoint code with appropriate
#ifdefs.
	(procfs_set_watchpoint, procfs_stopped_by_watchpoint): Likewise.
1994-04-14 14:16:56 +00:00
Jeff Law
e6b8a17192 * procfs.c (procfs_wait): Protect watchpoint code with appropriate
#ifdefs.
1994-04-14 14:04:15 +00:00
Jim Kingdon
ac74588eb5 (Arguments): Fix typo. 1994-04-14 03:35:57 +00:00
Jim Kingdon
b550c03aec * gdb.texinfo: Refer to file names, not path names, per rms
convention.
1994-04-14 03:31:42 +00:00
Jeff Law
9ec767849e * config/mips/nm-irix4.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
(STOPPED_BY_WATCHPOINT, HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
	(target_{insert,remove}_watchpoint): Likewise.
1994-04-14 03:13:52 +00:00
Jeff Law
fa75e476f4 * gdb.t07/{recurse.exp, recurse.c}: New tests for watchpoints
on local variables in recursive functions.

	* gdb.t07/Makefile.in: Build the new test.
1994-04-13 22:06:01 +00:00
Jeff Law
ccd7a7db10 * config/pa/nm-hppab.h (STOPPED_BY_WATCHPOINT): Define.
(HAVE_STEPPABLE_WATCHPOINT): Define.
	(TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
	(target_{insert,delete}_watchpoint): Define.
1994-04-13 22:02:52 +00:00
Jeff Law
999dd04b89 * breakpoint.h (enum bptype): Add bp_hardware_watchpoint and
bp_watchpoint_scope breakpoints.
	(struct breakpoint): Add val_chain and related_breakpoint fields
	for use by watchpoints.

	* breakpoint.c (within_scope): Delete.  No longer used.
	(TARGET_CAN_USE_HARDWARE_WATCHPOINT): Provide default definition.
	(target_{remove,insert}_watchpoint): Likewise.
	(can_use_hardware_watchpoint): New function.
	(remove_breakpoint): New function to remove a single breakpoint
	or hardware watchpoint.
	(insert_breakpoints): Handle insertion of hardware watchpoints.
	Store a copy of the value chain derived from the watchpoint
	expression.
	(remove_breakpoints): Simplify by using remove_breakpoint.
	(delete_breakpoint): Likewise.
	(watchpoint_check): Delete the watchpoint and watchpoint scope
	breakpoints when the watchpoint goes out of scope.  Save & restore
	the current frame after checking watchpoints.
	(breakpoint_init_inferior): Likewise (restarting the program
	makes all local watchpoints go out of scope).
	(bpstat_stop_status): Handle hardware watchpoints much like normal
	watchpoints. Delete the watchpoint and watchpoint scope breakpoint
	when the watchpoint goes out of scope.  Remove and reinsert all
	breakpoints before returning if we stopped when a hardware watchpoint
	fired.
	(watch_command): Use a hardware watchpoint when possible.  If
	watching a local expression, build a scope breakpoint too.
	(map_breakpoint_numbers): Also call given function for any
	related breakpoints.
	(disable_breakpoint): Never disable a scope breakpoint.
	(enable_breakpoint): Handle hardware breakpoints much like normal
	breakpoints, but recompute the watchpoint_scope breakpoint's
	frame and address  (if we have an associated scope breakpoint).
	(read_memory_nobpt): Handle hardware watchpoints like normal
	watchpoints.  When necessary handle watchpoint_scope breakpoints.
	(print_it_normal, bpstat_what, breakpoint_1, mention): Likewise.
	(clear_command, breakpoint_re_set_one, enable_command): Likewise.
	(disable_command): Likewise.

	* blockframe.c (find_frame_addr_in_frame_chain): New function.
	Extern prototype added to frame.h

	* infrun.c (wait_for_inferior): Set current_frame and select
	a frame before checking if we stopped due to a hardare watchpoint
	firing.  Handle stepping over hardware watchpoints.
	(normal_stop): Remove unnecessary call to select_frame.

	* value.h (value_release_to_mark): Declare.
	* values.c (value_release_to_mark): New function.

	* procfs.c (procfs_wait): Add cases for hardware watchpoints.
	(procfs_set_watchpoint, procfs_stopped_by_watchpoint): New functions.

	* hppab-nat.c (hppa_set_watchpoint): New function.

	* config/pa/nm-hppab.h (STOPPED_BY_WATCHPOINT): Define.
	(HAVE_STEPPABLE_WATCHPOINT): Define.
	(TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
	(target_{insert,delete}_watchpoint): Define.
1994-04-13 21:57:00 +00:00
Jeff Law
194e992858 Fix typo. 1994-04-13 03:47:33 +00:00
Jeff Law
b3e258b480 * gdb.t15/gdbme.c (t_func_values): Do not compare function pointers
directly.  Instead compare the return values from actual calls.
1994-04-13 03:46:42 +00:00
Stu Grossman
70e375c356 Mon Apr 11 19:21:27 1994 Stu Grossman (grossman at cygnus.com)
* xcoffread.c (read_xcoff_symtab):  Ignore symbols of class C_EXT,
	smtyp XTY_LD, sclass XMC_DS (external data segment label).  They
	often have the same names as debug symbols for functions, and
	confuse lookup_symbol().
1994-04-12 02:53:09 +00:00
Bill Cox
099c286e74 * Makefile.in (check): Set TCL_LIBRARY for runtest. 1994-04-11 23:17:18 +00:00
Jim Kingdon
2ddeed277e * remote.c: Around redefinition of PBUFSIZE, adjust whitespace.
* config/pa/tm-hppa.h (REGISTER_BYTES): Use 4 rather than
	REGISTER_RAW_SIZE (1).
	Together these changes work around a bug in HP's compiler.  Both
	seem to be necessary.
1994-04-11 17:52:11 +00:00
Jeff Law
699daa9c10 * paread.c (pa_symtab_read): Handle ST_STUB symbols and symbols
with scope SS_EXTERNAL.  ST_ENTRY symbols in dynamic executables
        are type mst_solib_trampoline.
1994-04-11 16:19:03 +00:00
Jeff Law
bff0719996 * From Peter Schauer with minor modifications.
* gdb.t15/return.exp (return_tests): Handle targets where "return"
        stops in mid-line in the caller.  Add xfail for returning a float
        value on X86 targets.
1994-04-11 16:16:20 +00:00
Jim Kingdon
7b2b07585e Fri Apr 8 17:14:37 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
* config/m68k/es1800.mt: Change comments.

Fri Apr  8 17:14:37 1994  Rob Savoye  (rob@darkstar.cygnus.com)

	* config/m68k/monitor.mt (TDEPFILES): Don't include remote-es.o.
1994-04-09 00:18:21 +00:00
Stu Grossman
790a14a88b * lynx-nat.c: Restore regmap structure for SPARC. It's needed
for core files.
1994-04-08 22:37:35 +00:00
Jim Kingdon
a110a1c30b * values.c (unpack_long): Remove obsolete comment about using a
switch statement.
1994-04-08 22:30:55 +00:00
Jim Kingdon
f3e4ac4af6 * symfile.c (symbol_file_command): Add comments about command syntax. 1994-04-08 21:56:12 +00:00
Peter Schauer
376f8f6844 * config/mips/mipsv4.mh, config/mips/mipsv4.mt,
config/mips/tm-mipsv4.h, config/mips/xm-mipsv4.h, mipsv4-nat.c:
	New files for MIPS SVR4 support.
1994-04-08 00:37:48 +00:00
Peter Schauer
77af4652a7 * config/alpha/nm-alpha.h (GDB_TARGET_HAS_SHARED_LIBS): Define,
OSF/1 has shared libraries.
1994-04-08 00:36:54 +00:00
Peter Schauer
a9617bd573 * config/tm-sunos.h (IN_SOLIB_TRAMPOLINE, SKIP_TRAMPOLINE_CODE):
Define to handle stepping into  -g compiled shared libraries.
	* config/tm-sysv4.h (SKIP_TRAMPOLINE_CODE):  Define to handle
	stepping into  -g compiled shared libraries.
1994-04-08 00:36:08 +00:00
Peter Schauer
2fe3b329f6 * infrun.c (IN_SOLIB_TRAMPOLINE): Correct comment, trampolines
are in the .plt section.
	* minsyms.c (lookup_solib_trampoline_symbol_by_pc,
	find_solib_trampoline_target):  New functions for handling
	stepping into -g compiled shared libraries.
	* symtab.h (lookup_solib_trampoline_symbol_by_pc,
	find_solib_trampoline_target):  Add prototypes.
	* config/tm-sunos.h (IN_SOLIB_TRAMPOLINE, SKIP_TRAMPOLINE_CODE):
	Define to handle stepping into  -g compiled shared libraries.
	* config/tm-sysv4.h (SKIP_TRAMPOLINE_CODE):  Define to handle
	stepping into  -g compiled shared libraries.
	* configure.in:  Add mips-*-sysv4* support.
	* config/mips/mipsv4.mh, config/mips/mipsv4.mt,
	config/mips/tm-mipsv4.h, config/mips/xm-mipsv4.h, mipsv4-nat.c:
	New files for MIPS SVR4 support.
	* Makefile.in:  Update for new mipsv4 files.
	* alpha-tdep.c (heuristic_proc_desc, find_proc_desc):  Use
	read_next_frame_reg to obtain the frame relative stack pointer.
	* mips-tdep.c (heuristic_proc_desc):  Use read_next_frame_reg to
	obtain the frame relative stack pointer.
	* mdebugread.c (parse_partial_symbols, psymtab_to_symtab1):
	Handle stStatic and stStaticProc symbols in stabs-in-ecoff output
	by entering them into the minimal symbol table.
	* printcmd.c (print_scalar_formatted):  Do not try to unpack to
	a long for float formats.
	* solib.c:  Include "elf/mips.h" only if DT_MIPS_RLD_MAP does not
	get defined in <link.h>.
	* solib.c (solib_add):  Add shared library sections to the section
	table of the target before adding the symbols.
	* partial-stab.h:  Relocate static and global functions.
	* dbxread.c (read_dbx_symtab):  Remove unused variable
	end_of_text_address.  Relocate text_addr when passing it
	to end_psymtab.

	For Alpha OSF/1 targets, enable gdb to set breakpoints in shared
	library functions before the executable is run. Retrieve dynamic
	symbols from stripped executables.
	* mipsread.c (read_alphacoff_dynamic_symtab):  New function.
	* mipsread.c (mipscoff_symfile_read):  Use it. Issue warning message
	if no debugging symbols were found.
	* alpha-tdep.c (alpha_skip_prologue):  Silently return the unaltered
	pc if memory at the pc is not accessible and GDB_TARGET_HAS_SHARED_LIBS
	is defined.
	* config/alpha/nm-alpha.h (GDB_TARGET_HAS_SHARED_LIBS):  Define,
	OSF/1 has shared libraries.
1994-04-08 00:35:15 +00:00
Ian Lance Taylor
192b64e7f9 * dbxread.c (read_dbx_dynamic_symtab): Adjust for recent changes
to BFD handling of dynamic symbols.
1994-04-07 19:13:17 +00:00
Jeff Law
67808d3e6f * gdb.disasm/hppa.exp (fcmp_tests): Break up into two halves
to avoid expect lossage.
        (fmem_LRbug_tests): Likewise.
        * gdb.disasm/hppa.s: Corresponding changes.
1994-04-06 03:35:23 +00:00
Jeff Law
f911e41716 * gdb.disasm/hppa.exp: Rework escape sequences and end-of-line
conditions to work with latest dejagnu/expect.
1994-04-06 03:06:25 +00:00
Jeff Law
853feb50c0 Fix typo in last change. 1994-04-06 01:11:08 +00:00
Jeff Law
4f91591410 * hppa-tdep.c (hppa_fix_call_dummy): If FUN is a procedure label,
then gets its real address into FUN and its GOT/DP value into %r19.

        * tm-hppa.h (CALL_DUMMY): Use %r20, not %r19 as a temporary.
1994-04-06 00:56:36 +00:00
Jeff Law
7e550eb395 * gdb.t15/funcargs.exp (finish from indirect call): No longer
expected to fail on the PA.
        (backtrace in call with trampolines): Explicitly require main
        to be frame #1 (no trampolines should show up in backtrace).
1994-04-06 00:53:00 +00:00
Jeff Law
7f43b9b70d * hppa-tdep.c (frameless_function_invocation): If no unwind
descriptor was found, then assume this was not a frameless
        function invocation.
        (frame_saved_pc): If the saved PC is in a linker stub, then
        return the return address which the linker stub will return to.
1994-04-06 00:51:50 +00:00
Jeff Law
4556842434 * xm-hppab.h: Never define USG.
* xm-hppah.h: Always define USG.
1994-04-05 22:31:21 +00:00
Jeff Law
19155bc265 * gdb.t00/default.exp: Use "exp_continue" rather than obsolete
"continue -expect".
        * gdb.t06/break.exp: Likewise.
        * gdb.t07/watchpoint.exp: Likewise.
        * gdb.t13/bitfields.exp: Likewise.
        * gdb.t15/{funcargs,return}.exp: Likewise.
        * gdb.stabs/weird.exp: Likewise.
        * config/{mips,udi}-gdb.exp: Likewise.
1994-04-05 22:28:21 +00:00
Jeff Law
32a1239cc8 * gdb.t00/default.exp: Use "exp_continue" rather than obsolete
"continue -expect".
        * gdb.t06/break.exp: Likewise.
        * gdb.t07/watchpoint.exp: Likewise.
        * gdb.t13/bitfields.exp: Likewise.
        * gdb.t15/{funcargs,return}.exp: Likewise.
        * gdb.stabs/weird.exp: Likewise.
        * config/{mips,udi}-gdb.exp: Likewise.
1994-04-05 22:21:55 +00:00
Jeff Law
f0705d1831 * hppa.sed: Enclose comments within a sed command to avoid
losing with the old OSF1 sed.
1994-04-05 22:17:03 +00:00
Per Bothner
b96bc1e41f * values.c (unpack_long, value_from_longest),
valarith.c (value_binop):  Allow TYPE_CODE_RANGE.
1994-04-05 20:10:31 +00:00
Jim Kingdon
d541230260 * symfile.c (deduce_language_from_filename): .cpp is a C++ extension. 1994-04-02 15:40:00 +00:00
Peter Schauer
5051b6f290 * config/sparc/tm-sun4sol2.h (IN_SOLIB_TRAMPOLINE): Removed,
the new generic definition from tm-sysv4.h works for Solaris.
1994-04-01 08:51:31 +00:00
Peter Schauer
94a5ac73e1 * config/tm-sysv4.h (IN_SOLIB_TRAMPOLINE): Use new in_plt_section. 1994-04-01 08:50:42 +00:00
Peter Schauer
38b9047360 For SVR4 targets, enable gdb to set breakpoints in shared
library functions before the executable is run.
	* elfread.c (elf_symtab_read):  Handle symbols for shared library
	functions.
	* sparc-tdep.c (in_solib_trampoline):  Renamed to in_plt_section
	and moved to objfiles.c.
	* objfiles.c (in_plt_section):  Moved to here from sparc-tdep.
	* config/tm-sysv4.h (IN_SOLIB_TRAMPOLINE):  Use new in_plt_section.
	* config/sparc/tm-sun4sol2.h (IN_SOLIB_TRAMPOLINE):  Removed,
	the new generic definition from tm-sysv4.h works for Solaris.
1994-04-01 08:50:03 +00:00
Jim Kingdon
afbdbbd78e * xcoffread.c (xcoff_next_symbol_text): New function.
(read_xcoff_symtab): Set next_symbol_text_func to it.
	Move raw_symbol outside of read_xcoff_symtab.
1994-03-30 22:38:58 +00:00
Ian Lance Taylor
70f42bae0b * elfread.c (elf_symtab_read): Change storage_needed,
number_of_symbols and i to long.  Rename get_symtab_upper_bound to
	bfd_get_symtab_upper_bound.  Check for errors from
	bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
	* nlmread.c (nlm_symtab_read): Same changes.
1994-03-30 22:10:18 +00:00
Jim Kingdon
34d265dc08 * xcoffread.c (xcoff_next_symbol_text): New function.
(read_xcoff_symtab): Set next_symbol_text_func to it.
	Move raw_symbol outside of read_xcoff_symtab.
1994-03-30 21:48:14 +00:00
Jim Kingdon
aece310f08 * remote.c (getpkt): Remove unused "out" label. 1994-03-30 19:44:53 +00:00
Jeff Law
bd2f0c8543 * breakpoint.c (print_it_normal): Allow GDB to notify the user
about more than one watchpoint being triggered.
1994-03-30 17:17:01 +00:00
Jim Kingdon
c2216bfd1b * config/m68k/tm-dpx2.h: Include tm-m68k.h not nonexistent tm-68k.h. 1994-03-30 16:25:08 +00:00
Peter Schauer
9e837b37a4 * blockframe.c (find_pc_partial_function): mst_file_text
symbols do not live in the shared library transfer table.
1994-03-30 10:29:36 +00:00
Peter Schauer
8a19fe2188 * config/i386/tm-symmetry.h: Clean up, it is now only used for Dynix.
Remove all conditionals and definitions for ptx.
	I386_REGNO_TO_SYMMETRY moved to here from symm-tdep.c.
	Fix addresses of floating point registers in REGISTER_U_ADDR.
	STORE_STRUCT_RETURN now handles cc and gcc conventions.
	FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC,
	IN_SIGTRAMP, SIGCONTEXT_PC_OFFSET defined to make backtracing through
	signal trampoline code work.
	* config/i386/xm-symmetry.h:  Clean up, it is now only used for Dynix.
	Remove all conditionals and definitions for ptx.
	Remove KDB definitions.
1994-03-30 10:00:00 +00:00
Peter Schauer
db2302cb93 * ch-exp.y (decode_integer_value, match_character_literal,
match_bitstring_literal):  Guard tolower calls with isupper,
	tolower on old BSD systems blindly subtracts a constant.
	* dbxread.c (read_ofile_symtab):  Check for __gnu_compiled_* as
	well when determining the producer of the object file.
	* mdebugread.c (has_opaque_xref):  New function to check for
	cross reference to an opaque aggregate.
	* mdebugread.c (parse_symbol, parse_partial_symbols):  Do not
	enter typedefs to opaque aggregates into the symbol tables.
	* mdebugread.c (parse_external):  Remove skip_procedures argument,
	it has always been 1.  Remove code that handled stProc symbols,
	it was never executed and was wrong, as the index of a
	stProc symbol points to the local symbol table and not to the
	auxiliary symbol info. Update caller.
	* mdebugread.c (parse_partial_symbols):  Do not enter external
	stProc symbols into the partial symbol table, they are already
	entered into the minimal symbol table.
	* config/i386/tm-symmetry.h:  Clean up, it is now only used for Dynix.
	Remove all conditionals and definitions for ptx.
	I386_REGNO_TO_SYMMETRY moved to here from symm-tdep.c.
	Fix addresses of floating point registers in REGISTER_U_ADDR.
	STORE_STRUCT_RETURN now handles cc and gcc conventions.
	FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC,
	IN_SIGTRAMP, SIGCONTEXT_PC_OFFSET defined to make backtracing through
	signal trampoline code work.
	* config/i386/xm-symmetry.h:  Clean up, it is now only used for Dynix.
	Remove all conditionals and definitions for ptx.
	Remove KDB definitions.
	* symm-nat.c (store_inferior_registers):  Fetch registers before
	storing them to obtain valid floating point control registers.
	Store fpu registers.
	* symm-nat.c (print_1167_control_word):  Dynix 3.1.1 defines
	FPA_PCR_CC_C0 and FPA_PCR_CC_C1, avoid duplicate case value.
	* symm-nat.c (fetch_inferior_registers, child_xfer_memory):
	Fix typos.
	* symm-nat.c (child_resume):  Update type of `signal' parameter.
	* symm-tdep.c (I386_REGNO_TO_SYMMETRY):  Moved to tm-symmetry.h.
1994-03-30 09:57:08 +00:00
Peter Schauer
1f655b81a6 * gdb.t02/whatis.exp, gdb.t08/opaque.exp: Add XFAILs for
sequent dynix.
	* gdb.t06/signals.exp:  Add clear_xfail for sequent dynix.
	* gdb.t15/funcargs.exp:  Conditionally step again to really
	finish from marker_call_with_trampolines. Handle the case where
	the first step from within call_with_trampolines already steps
	us back to main.
	* gdb.t15/gdbme.c:  Add comment to closing brace of
	call_with_trampolines for funcargs.exp.
1994-03-30 09:21:59 +00:00
Jeff Law
374bc5d7de * gdb.t07/watchpoint.exp (test_watchpoint_triggered_in_syscall):
Fix typo(s).
1994-03-30 07:56:14 +00:00
Jeff Law
19cd0c1f75 * hppa-tdep.c (hppa_fix_call_dummy): Use an alternate method for
calling import stubs for functions in shared libraries.
1994-03-30 07:03:01 +00:00
Per Bothner
58cda66eeb * ch-exp.y: Implement SIZE(mode_name) and SIZE(expression). 1994-03-30 06:59:16 +00:00
Per Bothner
73cd3b4911 * ch-lang.c (chill_is_varying_struct): Magic string is
was "<var_length>" is now "__var_length" (more portable).
1994-03-30 05:23:00 +00:00
Jim Kingdon
0c9935502f * remote.c (getpkt): If we get a timeout, actually retry rather
than just giving up the first time it happens.
	* remote.c: Document sequence numbers.
	(remote_store_registers): Change syntax of 'P' request so that it
	never looks like a sequence number.
1994-03-30 03:50:23 +00:00
Kung Hsu
d80ff70c10 Modified Files:
ChangeLog os9kread.c remote-os9k.c

        * os9kread.c (record_minmal_symbol): add section_offset to
        relocate minimal symbol table.
        * os9kread.c (read_minimal_symbols): ditto.
        * os9kread.c (os9k_symfile_init): increase size of dbg and stb
        file names.
        * os9kread.c (read_os9k_psymtab): if there's no dbg file, just
        return. Also if file addr is 0 leave it 0, not to relocate.
        * remote-os9k.c (_initialize_remote_os9k): add 'set remotexon',
        'set remotexoff' and 'set remotelog' commands.
1994-03-30 00:18:29 +00:00
Jim Kingdon
4aa6fe102d * remote.c (remote_store_registers): Add 'P' request to set an
individual register.
	(remote_write_bytes, remote_read_bytes): Use %lx, not %x, to print
	a target address.
1994-03-29 20:43:48 +00:00
Jeff Law
a87c93b716 Put back include to tm-hppa.h mistakenly taken out during a recent checkin. 1994-03-29 18:36:48 +00:00
Roland Pesch
009ed68149 Fix node structure around new Hitachi nodes so general-purpose
vn of manual builds OK, too.
1994-03-29 00:35:30 +00:00
Jeff Law
28a2181201 * gdb.t07/gdbme.c: More code for watchpoint testing.
* gdb.t07/watchpoint.exp: Accept both "Watchpoint" and
        "Hardware watchpoint" throughout file.
        (test_watchpoint_triggered_in_syscall): New test.
        (test_complex_watchpoint): New test.
1994-03-28 00:53:55 +00:00
Jim Kingdon
649694ea87 * config/sparc/tm-sparc.h: Define USE_REGISTER_NOT_ARG.
* stabsread (define_symbol): If USE_REGISTER_NOT_ARG, go back to
	combining all 'p' and 'r' pairs into a LOC_REGPARM.
1994-03-26 16:00:02 +00:00
Jim Kingdon
72e35288c7 * command.c (do_setshow_command, case var_string): Never add a
space to the end of the string.
	* NEWS: Document this change.
	* .gdbinit: Add a space to the "set prompt" command.
1994-03-26 15:15:00 +00:00
Jim Kingdon
bb6247c6b2 * buildsym.c (start_subfile, patch_subfile_names), demangle.c
(set_demangling_style, set_demangling_command): Use savestring not
	strdup.  We were not dealing properly with a NULL return from
	strdup, and were not declaring strdup (the system header may or
	may not have it).
1994-03-26 04:26:26 +00:00
Jim Kingdon
493424b108 * m3-nat.c, i386m3-nat.c, config/i386/i386m3.mh: Many minor
changes to make it compile (it doesn't link yet).
1994-03-26 04:20:44 +00:00
Roland Pesch
2ded09f551 Updates for Hitachi targets. 1994-03-26 02:25:09 +00:00
Jim Kingdon
c6889f6323 * ptx4-nat.c, config/i386/{nm-ptx4.h, ptx4.mh, ptx.mt, ptx4.mt,
tm-ptx.h, tm-ptx4.h, xm-ptx.h, xm-ptx4.h}: New files.
1994-03-26 01:23:21 +00:00
Jim Kingdon
5ce7426fb8 * valprint.c (val_print): Remove inaccurate comment about what
types can be stub types.
1994-03-26 01:23:06 +00:00
Jeff Law
de48213858 * hppa-tdep.c (skip_prologue): Do nothing if not at the beginning
of a function.
        (skip_trampoline_code): Rewrite and add support for argument
        relocation stubs stubs, import/export stubs, calls through
        "_sr4export" and cascaded trampolines.
1994-03-26 01:07:36 +00:00
Jeff Law
277c24a1f0 * gdbme.c (call_with_trampolines): New function to try and step
into.  Tests trampoline problems on the PA.

        * funcargs.exp (localvars_in_indirect_call): No longer expect
        stepping into indirect call to fail on PAs.
        (test_stepping_over_trampolines): New test.
1994-03-26 01:06:12 +00:00
Jeff Law
503554725f Forgot this in recent commit. 1994-03-26 01:04:06 +00:00
Sean Eric Fagan
c929326f2a Stu apparantly forgot to update the .Sanitize file when he added
tm-alphanw.h.
1994-03-26 00:41:36 +00:00
Jim Kingdon
59144a8124 * config/i386/ptx.mh (XDEPFILES): Add coredep.o. Delete infptrace.o.
* symm-nat.c (child_wait, _initialize_symm_nat, kill_inferior):
	Supply alternate version if ATTACH_DETACH is not defined.
	* ptx4-nat.c, config/i386/{nm-ptx4.h, ptx4.mh, ptx.mt, ptx4.mt,
	tm-ptx.h, tm-ptx4.h, xm-ptx.h, xm-ptx4.h}: New files.
	* configure.in: Recognize i[34]86-sequent-sysv4* host.
1994-03-26 00:19:35 +00:00
Jim Kingdon
32001cc5da new for ptx 1994-03-26 00:11:49 +00:00
Jim Kingdon
8ed0509162 new for ptx 1994-03-26 00:03:08 +00:00
Jim Kingdon
10bfdb4836 new for ptx4 1994-03-25 23:53:34 +00:00
Jim Kingdon
3dd669876e new for ptx4 1994-03-25 23:39:19 +00:00
Jim Kingdon
75d6585923 new for ptx4 1994-03-25 23:22:48 +00:00
Jeff Law
fdafbfad9e * hppa-tdep.c (skip_prologue): Return "pc" not zero
if no unwind descriptor is found.
1994-03-25 18:48:24 +00:00
Jeff Law
eb1167c65c * tm-hppa.h (NUM_REGS): Bump to 128 registers.
(REGISTER_NAMES): Add entries for "right-half" of FP registers.
        (REGISTER_RAW_SIZE, MAX_REGISTER_RAW_SIZE): Do not treat FP regs
        differently.  All registers are four bytes.
        (REGISTER_BYTES, REGISTER_BYTE): Simplify now that all registers are
        the same size.
        (REGISTER_VIRTUAL_TYPE): Use builtin_type_float for all FP regs.

        * hppa-tdep.c (pa_print_fp_reg): Update to print even numbered FP
        registers as both single and double values (fetching 2nd 32bit half
        as necessary).  Annotate each register printed with its precision.
1994-03-25 18:21:49 +00:00
Jeff Law
c8f75fe857 * paread.c (read_unwind_info): Fix off-by-one error. 1994-03-25 18:15:10 +00:00
Jim Kingdon
0c1af47ff0 * main.c (complete_command): Deal with it if arg is NULL. 1994-03-25 16:39:05 +00:00
Jim Kingdon
4df6dcd10d * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Revise comment
regarding using the PC--using the PC is necessary and all the
	FIXME comments in the world won't make it go away.
1994-03-25 01:38:24 +00:00
Stu Grossman
27847c6f99 Netware debugger stub NLM. 1994-03-25 01:38:12 +00:00
Jim Kingdon
2f3b7d8eb5 * valops.c (value_at, value_at_lazy): Give error if we dereference
a pointer to void.
	* gdbtypes.h: Fix comments regarding TYPE_CODE_VOID.
	* stabsread.c: Use 1, not 0, for TYPE_LENGTH of void types.
1994-03-24 18:32:31 +00:00
Jim Kingdon
553e18620a * stabsread.c (patch_block_stabs): Add comment about what happens
if the definition is in another compilation unit from the stab.
1994-03-24 17:03:23 +00:00
Jim Kingdon
b93e563cb7 * TODO: Add suggestions for static member function tests, and
completion tests.
1994-03-24 16:26:57 +00:00
Jim Kingdon
8816824a83 * stabs.texinfo (Global Variables): Talk about stabs in files
where variables are referenced, but not defined.
1994-03-24 16:11:11 +00:00