Commit Graph

7892 Commits

Author SHA1 Message Date
Andrew Cagney
bc8bd256d0 HPMERGE:
More wrong uses of gdb_stderr and stderr/stdout.
More upddates to calls of catch_errors() so that call matches new interface.
1999-01-19 02:17:00 +00:00
Stan Shebs
ab0e22180a * ser-ocd.c (ocd_open): Handle Unix case gracefully.
fixes bug reported on ecos-discuss
1999-01-19 02:13:06 +00:00
Stan Shebs
8a7dfaa090 * target.c (dummy_target): Don't initialize statically.
(init_dummy_target): New function, fills in dummy_target.
	(initialize_targets): Use it.
	* hpux-thread.c (hpux_thread_ops): Don't initialize statically.
	(init_hpux_thread_ops): New function, fills in hpux_thread_ops.
	(_initialize_hpux_thread): Use it.
	* m3-nat.c (m3_ops): Don't initialize statically.
	(init_m3_ops): New function, fills in m3_ops.
	(_initialize_m3): Use it.
1999-01-19 00:49:41 +00:00
Fernando Nasser
49f47b0013 1999-01-18 Fernando Nasser <fnasser@totem.to.cygnus.com>
* sol-thread.c: delete compile time initialization of target_ops
          (_initialize_sol_thread): initialize target_ops at run time.
        * hpux-thread.c: added target_ops entry.
        * m3-nat.c: ditto.
1999-01-19 00:39:04 +00:00
David Taylor
63f8d5f5b3 change initialization of procfs_ops from compile time to run time. 1999-01-18 20:22:43 +00:00
Christopher Faylor
040bbbc24b * configure.in: Ensure that -luser32 is always linked in for cygwin build.
* configure: Regenerated.
1999-01-18 17:54:36 +00:00
Mark Alexander
a396d2bd0d * values.c (value_virtual_fn_field): Clear the pointed-to
offset when casting to the base class.
1999-01-18 16:43:01 +00:00
David Taylor
f9a5267ce6 fix hp merge (2.66.4 branch) changes to remote-udi.c -- it didn't compile. 1999-01-18 15:35:10 +00:00
Andrew Cagney
c634a08ff8 HPMERGE:
Pass gdb_stderr instead of stderr.
In serial.c, fix call to gdb_fclose() - pass gdb_file** not gdb_file*
1999-01-18 01:24:06 +00:00
Andrew Cagney
8bdec905f1 Fix warnings from calls to catch_errors() and make_cleanup(). 1999-01-18 00:46:13 +00:00
Andrew Cagney
6e45c399c1 catch_errors() takes PTR argument/func instead of char* argument/func.
Update breakpoint.c.
Fix (?) cover_target_enable_exception_callback().  Wasn't returning a
value.
1999-01-17 23:23:42 +00:00
Fernando Nasser
2bef607561 1999-01-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
* remote.c (remote_query): new function - creates proper interface
        to the remote protocol "q" command.
1999-01-16 19:01:23 +00:00
Zdenek Radouch
517b49896a Changed ABI to match a GCC change. Structs passed by value are always
passed using a pointer.
1999-01-15 22:17:00 +00:00
Elena Zannoni
93b84526e8 Fri Jan 15 14:04:57 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* gdb.hp/xdb3.exp: do not execute unless on hppa-hpux platform
	and compiled w/o GCC.
1999-01-15 19:17:31 +00:00
Elena Zannoni
7930c920e4 Fri Jan 15 14:04:57 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* gdb.hp/watch-cmd.exp: do not execute unless on hppa-hpux platform
	and compiled w/o GCC.

	* gdb.hp/watch-hp.exp: ditto.

	* gdb.hp/xdb1.exp: ditto.

	* gdb.hp/xdb2.exp: ditto.

	* gdb.hp/dbx.exp: ditto.
1999-01-15 19:10:52 +00:00
Fernando Nasser
7269d43e10 1999-01-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
* target.h: added entry for target queries (to_query)
          target.c: ditto.
1999-01-15 17:30:25 +00:00
Fernando Nasser
a68e7120b1 1999-01-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
* .Sanitize: add Kernel Objects Display (a.k.a. KOD) sanitization.
1999-01-15 16:22:07 +00:00
Stan Shebs
ef8884afcb * constvars.c: Remove C++-isms.
* constvars.exp: Use gdb_test everywhere, add xfails if compiled
 	with GCC.
1999-01-15 02:41:19 +00:00
Stan Shebs
d6dc958030 * Makefile.in (GDBvn.texi): Fix match expression to work with
current format of VERSION in gdb/Makefile.in.
	* gdb.texinfo: Fix node ref to match new readline.
1999-01-15 01:12:49 +00:00
David Taylor
1206c6599d fix stream arguments to fprintf_unfiltered, gdb_flush, print_address_numeric,
and fwrite.
1999-01-14 23:40:25 +00:00
Michael Snyder
dab43dfdcd Wed Jan 13 14:59:02 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
* infrun.c (set/show scheduler-locking) New command.  Set a
          mode bit that will control how GDB attempts to control thread
          scheduling for step, continue, etc.  (resume): make use of
          the schedule-locking mode.
        * target.h (struct target_ops): new field to_has_thread_control.
        * sol-thread.c: initialize target_ops to_has_thread_control.
        * procfs.c: ditto.
        * target.c: ditto.
        * m3-nat.c: ditto.
        * remote.c: ditto.
        * hpux-thread.c: ditto.
1999-01-14 18:46:54 +00:00
David Taylor
320d5bd8b6 insert_breakpoints -- insert cast to eliminate warning. 1999-01-14 00:37:26 +00:00
Michael Snyder
3ab2abae9a Wed Jan 13 14:59:02 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
* infrun.c (set/show scheduler-locking) New command.  Set a
          mode bit that will control how GDB attempts to control thread
          scheduling for step, continue, etc.  (resume): make use of
          the schedule-locking mode.
        * target.h (struct target_ops): new field to_has_thread_control.
        * sol-thread.c: initialize target_ops to_has_thread_control.
        * procfs.c: ditto.
        * target.c: ditto.
        * m3-nat.c: ditto.
        * remote.c: ditto.
        * hpux-thread.c: ditto.
1999-01-13 23:53:30 +00:00
Michael Snyder
ea377ea4c0 spelling fix. 1999-01-13 23:49:55 +00:00
Michael Snyder
677f415c03 * thread.c: cull duplicate prototypes. Move prototypes to top.
* serial.c: indentation cleanup.
        * breakpoint.c: add casts to eliminate compiler warnings.
1999-01-13 23:44:07 +00:00
David Taylor
9e309e8341 change by Edie. 1999-01-13 17:18:32 +00:00
Edith Epstein
e618fce49f Wed Jan 13 10:38:40 1999 Edith Epstein <eepstein@sophia.cygnus.com>
* gdb.texinfo: Changes made as part of a project to merge in
	  changes made by HP. Documentation makes extensive use of
	  @ifclear HPPA and @ifset HPPA. The HP manual omits doumentation
	  on remote debugging. There are differences in documentation
 	  (HP vs.  non-HP) on C++ support (aCC vs. gnu gcc++). Also,
	  the HP manual discusses catchpoints, hardware watchpoints, and
	  some HPUX specific limitations for shared library support.

	  There are also a number of @node changes.
1999-01-13 16:02:06 +00:00
Jason Molenda
642c5be775 1999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
* monitor.c (init_base_monitor_ops): Whitespace cleanup.
        (_initialize_remote_monitors): Same.
1999-01-13 01:49:33 +00:00
Jason Molenda
9d4010dcac 1999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
* monitor.c (init_monitor_ops): Initialize the monitor_ops
        structure if it hasn't already been done.

PR 18735
1999-01-13 01:45:04 +00:00
Jason Molenda
4b6afe7012 1999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
* gdbint.texinfo (Formatting): Disambiguate a sentence.
        (C Usage): Same.

I am stupid, so I had trouble reading these two sentences.
Now I can read them, so I am happy.
1999-01-13 01:35:53 +00:00
Stan Shebs
870b0f305d Flush the Cygnus-ized reference card, hasn't been used in years. 1999-01-13 01:04:33 +00:00
Stan Shebs
7110ccc127 * inftarg.c (child_ops): Don't initialize statically.
(init_child_ops): New function, fills in child_ops.
	(_initialize_inftarg): Use it.
	(child_post_attach): Declare extern.
	(child_wait): Fix ambiguous parens.
	(child_attach_to_process): Remove unused local wstatus.
	(child_insert_fork_catchpoint, child_remove_fork_catchpoint,
	child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
	child_has_forked, child_insert_exec_catchpoint,
	child_remove_exec_catchpoint): Return a value.
1999-01-12 22:58:18 +00:00
Edith Epstein
9897afc639 Tue Jan 12 16:54:37 1999 Edith Epstein <eepstein@sophia.cygnus.com>
* gdb.texinfo (Shell Commands): fixed messages about shell usage.
          HP was insisting on C shell. Now all UNIX platforms have the
          same message. removed @ifset HPPA and @ifclear HPPA

Tue Jan 12 17:00:00 1999  Edith Epstein  <eepstein@sophia.cygnus.com>

	* inftarg.c (child_create_inferior): fixed HPUXHPPA specific
	  call to fork_inferior. The shell param is now NULL.
1999-01-12 22:03:58 +00:00
David Taylor
c6d4dd9883 remove acinclude.m4 until it gets committed. 1999-01-12 17:11:39 +00:00
David Taylor
0127dc8337 att ChangeLog. 1999-01-12 16:58:31 +00:00
David Taylor
f0edbb0d5c new files. 1999-01-12 15:40:50 +00:00
David Taylor
36ea6c719b rename file. 1999-01-12 15:39:24 +00:00
David Taylor
8cdcdd2de6 fix typo. 1999-01-12 15:19:11 +00:00
Michael Snyder
98c5c19292 Mon Jan 11 16:43:44 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
* remote.c (remote_wait): Add inferior_pid to thread list only
        if it is not already there.
1999-01-12 00:44:30 +00:00
Jason Molenda
897ccbb084 1999-01-11 Jason Molenda (jsm@bugshack.cygnus.com)
* scm-tags.h: Update FSF's address on copyright notice.
        * ser-e7kpc.c: Same.
        * gnu-nat.h: Same.
1999-01-11 23:22:25 +00:00
Stu Grossman
4cffc916c1 * dwarf2read.c (dump_die): Change stderr gdb_stderr.
* expprint.c (print_subexp):  fprintf => fprintf_unfiltered.
	* jv-typeprint.c (java_type_print_base):  fputs => fputs_filtered.
	* stack.c (struct function_bounds):  Remove superfluous `typedef'.
	* symfile.c (list_overlays_command):  stdout => gdb_stdout.
	* symmisc.c (maintenance_check_symtabs):  stdout => gdb_stdout.
	* utils.c (print_spaces):  Make more efficient.
1999-01-11 21:51:39 +00:00
David Taylor
776fb68dfc print_spaces -- fix arg to strcat (broken by 1.165.6.4 change to utils.c). 1999-01-11 18:58:07 +00:00
David Taylor
f273e38ccc new files -- part of HP merge project. 1999-01-11 15:52:01 +00:00
David Taylor
db8276bb10 modifications as part of HP merge; new tests; support for HP's compilers. 1999-01-11 15:20:52 +00:00
David Taylor
07dbe97683 new files; renamed files -- from HP merge effort. 1999-01-11 05:44:24 +00:00
David Taylor
2b63a85324 new files -- HP merge 1999-01-11 05:41:54 +00:00
David Taylor
46ad9c6596 new files and renamed files -- hp merge 1999-01-11 05:40:47 +00:00
David Taylor
162f1a6f66 renamed files -- HP merge. 1999-01-11 05:38:09 +00:00
David Taylor
d55ea55c19 new files -- part of HP merge. 1999-01-11 05:36:48 +00:00
David Taylor
f5f100fecb new files -- part of the HP merge. 1999-01-09 00:10:18 +00:00
David Taylor
e1260544e1 new files -- from HP merge. 1999-01-09 00:00:54 +00:00
David Taylor
e8ce2368b3 new file -- part of HP merge. 1999-01-08 23:42:20 +00:00
David Taylor
7e745333bb new files -- part of HP merge. 1999-01-08 23:40:55 +00:00
David Taylor
e2fb40b3b6 renamed to have names 14 characters long or shorter. 1999-01-08 23:38:29 +00:00
David Taylor
ba49f20406 new files; part of HP merge. 1999-01-08 23:28:15 +00:00
Stan Shebs
4d8f8e121a * exec.c (exec_ops): Don't initialize statically.
(init_exec_ops): New function, fills in exec_ops.
	(_initialize_exec): Use it.
1999-01-08 20:03:11 +00:00
Zdenek Radouch
1c3101060c Beta version of the FR30 port. 1999-01-07 22:54:18 +00:00
David Taylor
460845ab29 HP merge related changes; TUI stuff; new configs for 10.20 and 11.00; new files. 1999-01-06 23:10:48 +00:00
Stan Shebs
5ee261db88 * gdb.base/default.exp: Reflect wording change in remote.c. 1999-01-06 21:52:14 +00:00
Stan Shebs
7517f04bc4 * remote.c: Pacify --enable-build-warnings, reformat code
to conform to standards, fix spelling errors.
	(ishex, stubhex, record_currthread, etc): Declare.
	(ishex, stubhex): Declare char arg as int.
	(pack_string): Comment out, never used but possibly useful.
	(threadref_to_int, remote_get_threadinfo, etc): Make static.
1999-01-06 20:14:30 +00:00
David Taylor
13b470dc1b The following changes were made by Edith Epstein <eepstein@cygnus.com>
as part of a project to merge in changes made by HP.

all-cfg.texi -- set HPPA for HP PA-RISC targets.
refcard.tex -- change documentation about catch; removed info catch.
HPPA-cfg.texi -- new file; HPPA configuration for manual.
1999-01-06 17:01:03 +00:00
David Taylor
3473370194 HP merge changes by eepstein and ezannoni; added external flag
hp_som_som_object_present; added true and false tokens; changed some of
the template processing code for handling HP aCC templates.
1999-01-06 16:52:17 +00:00
Michael Snyder
732063ebf3 Update to reflect current help text. 1999-01-06 03:16:31 +00:00
Michael Snyder
b53a15146c * remote.c (record_curthread): Must not modify inferior_pid when
called from wait_for_inferior.  Instead, if a new thread-id is
	detected, call add_thread.  (MAGIC_NULL_PID): new macro, use
	instead of the magic number "42000".  (remote_find_new_threads):
	if inferior_pid is unknown, get and use the current thread id.
	(remote_start_remote): on connecting, attempt to get the current
	thread id for inferior_pid.  (remote_resume): If pid == -1,
	then resume any-thread (not the current thread specifically).
	* thread.c (info_threads_command): don't initialize current_pid
	until after call to FIND_NEW_THREADS (which may change inferior_pid).
1999-01-06 03:08:10 +00:00
Michael Snyder
1f205f9d6e cosmetic fixups, mainly long lines. 1999-01-06 03:06:20 +00:00
Michael Snyder
d036abbfd1 cosmetic changes, mainly long lines. 1999-01-06 03:04:45 +00:00
David Taylor
d9455383f9 updates to reflect recent HP additions. 1999-01-06 00:52:29 +00:00
David Taylor
80909c45f8 fix anon-union tests from HP. 1999-01-06 00:11:17 +00:00
David Taylor
17f18ac4e5 new files -- part of HP merge. 1999-01-05 23:31:03 +00:00
David Taylor
490825560e target.c (noprocess): terminate sentence with a period.
breakpoint.c (catch_command_1): ditto.
1999-01-05 22:01:26 +00:00
David Taylor
2d46b1af8d *** empty log message *** 1999-01-05 21:59:02 +00:00
David Taylor
61e635a444 hp merge changes; mostly new files.
scope.exp, langs.exp, list.exp -- compile one file at a time, then link.
default.exp -- change expected messages for catch and info catch tests to
reflect hp merge changes.
1999-01-05 21:58:18 +00:00
Jason Molenda
8a4ca570ba Fix a typeo, 1997 -> 1998 in a date entry. 1999-01-05 21:11:53 +00:00
Michael Snyder
8903ab7935 Fix couple spelling errors. 1999-01-05 19:44:19 +00:00
Michael Snyder
9bff382ded Cosmetic and indentation fixes. 1999-01-05 19:42:47 +00:00
David Taylor
eceede3100 c_value_print -- remove hack^2 from HP -- it causes testsuite losses with
no real gain.
1999-01-05 17:08:19 +00:00
David Taylor
2819d3d65f restore START_INFERIOR_TRAPS_EXPECTED if not already defined by tm-*.h 1999-01-05 16:58:28 +00:00
Stan Shebs
18b1e896d4 * gdbint.texinfo: Expand on GDB's coding standards,
specify the use of arg names with prototypes.
1999-01-05 02:31:51 +00:00
Jason Molenda
d951f9e4f9 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
* configure.in: Fix whitespace indentation for --help.
        * configure: Regenerated.
1999-01-05 01:42:38 +00:00
Jason Molenda
d7f71863da 1999-01-04 Manuel Bouyer <bouyer@antioche.lip6.fr>
* main.c: Add --write command line option, document -w.
        * gdb.1: Document --write.
1999-01-05 00:50:49 +00:00
Stan Shebs
1de1323172 fix copyright dates 1999-01-05 00:18:06 +00:00
Jason Molenda
f240337a6f 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
* configure.in: Require autoconf 2.12.1 or higher.
        * doc/configure.in: Ditto.
        * nlm/configure.in: Ditto.
        * rdi-share/configure.in: Ditto.
        * testsuite/configure.in: Ditto.
        * doc/Makefile.in: Don't hardcode $(SHELL).
        * nlm/Makefile.in: Ditto.
        * rdi-share/Makefile.in: Ditto.
        * testsuite/Makefile.in: Ditto.
1999-01-05 00:17:07 +00:00
David Taylor
c87f565f5a new functions -- skip_hp_tests, gdb_preprocess; gdb_compile takes new
optional argument specifying c++.
1999-01-04 22:40:38 +00:00
David Taylor
2e11d9ccf2 add gdb.hp to list of subdirectories. 1999-01-04 22:22:56 +00:00
David Taylor
f5f706d8d1 change log entries for changes just committed. 1999-01-04 22:15:25 +00:00
David Taylor
709c6ee051 * gdb.base/Makefile.in (MISCELLANEOUS): new macros -- extra things
to delete on clean.
	(EXECUTABLES): update to reflect new additions.
	* gdb.base/commands.exp: update message expected.
	* gdb.base/default.exp: add copyright notice.
	* gdb.base/funcargs.exp (timeout): if hpux, increase timeout.
	* gdb.base/help.exp: update messages to reflect current text.
	* gdb.base/recurse.exp: add hpppa*-*-bsd* to 'list' of enabled
	targets for recurse tests.
	* gdb.base/watchpoint.exp: if on hpux and not gcc compiled, then
	skip this file.
1999-01-04 22:12:40 +00:00
David Taylor
b3d32d4f8f configure.in -- decide whether to configure gdb.hp; configure -- regenerated. 1999-01-04 22:11:08 +00:00
David Taylor
298e0bc56e doc new files. 1999-01-04 21:40:46 +00:00
David Taylor
53c8a4de28 new files -- part of HP merge. 1999-01-04 21:35:27 +00:00
Stan Shebs
ee7ae7ae52 keep split ChangeLog 1999-01-04 21:07:18 +00:00
Stan Shebs
73ec6020e5 Split the ChangeLog by year 1999-01-04 21:06:51 +00:00
Stan Shebs
64aa82eb77 * remote-vx.c (init_vx_ops, init_vx_run_ops): Remove unneeded
inits of new fields, including ref to bogus field.
	(vx_ops, vx_run_ops): Make static.
1999-01-04 21:01:58 +00:00
David Taylor
97bff53b38 delete redundant definition of STARTUP_INFERIOR_TRAPS_EXPECTED. 1999-01-04 20:21:16 +00:00
David Taylor
3e1d3d67b9 change <sys/unistd.h> to <unistd.h> and conditionalize its inclusion. 1999-01-04 20:07:59 +00:00
David Taylor
61ada545ec hp merge changes; 5 new files. 1999-01-04 16:23:14 +00:00
David Taylor
e8ff198e34 update to reflect new hp merge files. 1999-01-04 16:04:45 +00:00
David Taylor
8e260d5270 new files -- part of HP merge. 1999-01-04 15:37:21 +00:00
Stan Shebs
4c49748e82 * corelow.c (core_ops): Don't initialize statically.
(init_core_ops): New function, fills in core_ops.
	(_initialize_corelow): Use it.
1998-12-31 23:28:57 +00:00
Stan Shebs
b5c7e12253 Add a sky sanitization, cosmetic changes for consistency 1998-12-31 23:25:34 +00:00
David Taylor
65b07ddca8 all remaining *.c *.h files from hp merge. 1998-12-31 21:58:30 +00:00
David Taylor
03b93bdc82 HP tui support files for gdb. 1998-12-31 17:46:28 +00:00
Stan Shebs
c4b2310000 From J.T. Conklin <jtc@redbacknetworks.com>:
* i386-stub.c: Fix error string in last change.
1998-12-31 01:50:43 +00:00
Jason Molenda
adcb1e06ef 1998-12-30 Jason Molenda (jsm@bugshack.cygnus.com)
* utils.c: <readline/readline.h> instead of "readline/readline.h".

        * configure.in (TERM_LIB): Search for the appropriate term library
        on the host system.
        * configure: Regenerated.
        * Makefile.in (TERMCAP): Set based on autoconf check.
        * config/*/*.mh: Don't override TERMCAP setting.
1998-12-31 01:30:52 +00:00
Mark Alexander
1b0df0adcb * value.c (value_virtual_fn_field): Handle the situation where
vtbl is a pointer to a structure instead of a pointer to an array.
1998-12-31 01:29:30 +00:00
Keith Seitz
32ac892aab * gdb.gdbtk/{console.exp, browser.exp}: If no DISPLAY is set,
skip the tests.
1998-12-30 17:57:16 +00:00
David Taylor
4ef1f46773 hp merge changes -- too numerous to mention here; see ChangeLog and
ChangeLog-gdbtk for details.
1998-12-28 23:06:13 +00:00
David Taylor
d6fdf61c78 revert change 1.104 --> 1.105. sigh. this reversal breaks 18470. double
sigh.  this is to 'fix' a conflict with hp merge changes that are about
to go in.
1998-12-28 22:30:59 +00:00
Zdenek Radouch
e53f705836 Fixed POP_FRAME so that 'return' command works properly. 1998-12-24 03:09:43 +00:00
Per Bothner
0bf2ba41ef * Makefile.in (READLINE_CFLAGS): Search $(READLINE_SRC)/.. rather
than $(READLINE_SRC) so #include <readline/readline.h> will work.
	* top.c:  #include <readline/history.h> instead of "history.h".
	* tracepoint.c:  Likewise.
	* mac-xdep.c:  Likewise.
1998-12-23 23:06:11 +00:00
Andrew Cagney
30ce5223b8 * defs.h (TARGET_FLOAT_FORMAT, TARGET_DOUBLE_FORMAT): Define using
TARGET_BYTE_ORDER and not target_byte_order.
1998-12-23 02:13:37 +00:00
Elena Zannoni
83e2dcc014 Tue Dec 22 10:51:33 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* config/i386/cygwin.mh (TERMCAP): define.
 	(from Chris Faylor, cgf@cygnus.com)
1998-12-22 22:10:23 +00:00
Elena Zannoni
57ac5cfff1 Tue Dec 22 10:51:33 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* top.c: specify directory name for including readline.h

	* tracepoint.c: ditto.

	* utils.c: ditto.
1998-12-22 22:06:48 +00:00
Mark Alexander
4a1b8bb277 Fix for PR 18470:
* value.c (value_virtual_fn_field): Handle the situation where
	vtbl is a pointer to a structure instead of a pointer to an array.
1998-12-21 21:34:39 +00:00
Keith Seitz
54faf0d7bc * gdbtk-cmds.c (get_register): Call get_saved_register instead of
read_relative_register_raw_bytes to fetch registers.
1998-12-21 19:18:57 +00:00
Stan Shebs
e97b18f728 1998-12-14 J.T. Conklin <jtc@redbacknetworks.com>
* gdb.texinfo: Fix tipo.
1998-12-21 19:01:58 +00:00
Andrew Cagney
6535b1df92 1998-12-17 J.T. Conklin <jtc@redbacknetworks.com>
* blockframe.c (get_frame_saved_regs): If the saved_regs_addr ptr
is null, ensure that saved registers are copied from the local
variable that was used to obtain them.
1998-12-20 23:04:45 +00:00
Stu Grossman
0e52a532e4 * mips-tdep.c (mips32_heuristic_proc_desc): Clear temp_saved_regs
on restart.  Fixes problem with backtracing through functions that
	use virtual frame pointers.
1998-12-19 17:56:40 +00:00
Felix Lee
3cc72fbe54 oops. fix linesplit caused by bad paste 1998-12-18 16:50:41 +00:00
Felix Lee
1e012f703e sanitization fix. 1998-12-18 16:43:49 +00:00
Andrew Cagney
cb2f9c9c67 Missed this file:
* config/mips/tm-mips.h (enum mips_fpu_type, mips_fpu): Move to
mips-tdep.c.
1998-12-18 06:03:39 +00:00
Andrew Cagney
1fe2e66a01 CARP/vr4xxx:
Rewrite ``set mipsfpu'' command so that it works with the multi-arch
framework.  For vr4111 and vr4121 disable the FPU.
1998-12-18 05:14:06 +00:00
Andrew Cagney
2e64ee9aae CARP:
Pass gdbarch_info by value to the arch init function.
Review doco.
Update mips-tdep.c
1998-12-18 03:21:45 +00:00
Zdenek Radouch
492eae092d Checkpoint (sharing through devo). 1998-12-17 23:56:59 +00:00
Keith Seitz
7416961455 fix typo. 1998-12-17 17:17:35 +00:00
Keith Seitz
c888792a27 * gdbtk-cmds.c (gdb_search): Don't mention C++ RTTI and
global constructor/destructor symbols.
1998-12-17 17:06:25 +00:00
Andrew Cagney
06cf5a79dd Rename vr4100 (vr4xxx) config files to vr4100.
Rename vr4xxx (vr4300) config files to vr4xxx.
Enable GDB_MULTI_ARCH in tm-vr4xxx.h
1998-12-16 15:36:29 +00:00
Andrew Cagney
ff6f2f5786 CARP:
For MIPS, multi-arch MIPS_EABI, MIPS_LAST_FP_ARG_REGNUM,
MIPS_LAST_ARG_REGNUM.
1998-12-16 15:13:55 +00:00
Andrew Cagney
115c338d20 CARP:
Swap the GDB builtin types when ever the architecture changes.
1998-12-16 15:05:19 +00:00
Andrew Cagney
dcf46491d8 CARP:
Add multi-arch code!
1998-12-16 15:01:03 +00:00
Andrew Cagney
e81bad50a8 * gdbtypes.c (build_gdbtypes): New function.
(_initialize_gdbtypes): Call.
1998-12-16 14:57:08 +00:00
Andrew Cagney
5036d102ed * gdbarch.c (show_architecture): Use TARGET_ARCHITECTURE.
* gdbarch.h, gdbarch.c: Fix typo's. Use struct's in preference to
types.
* gdbarch.h, gdbarch.c (gdbarch_debug): Add ``set archdebug'' to
command set.
1998-12-16 01:17:50 +00:00
Jim Blandy
11ed3d51ae *** empty log message *** 1998-12-15 23:29:49 +00:00
Stan Shebs
91e14aa9a7 Fix sanitization mistake, move gdbtk change entries to right place 1998-12-15 19:44:29 +00:00
Andrew Cagney
759181e384 config/mips/tm-*.h: (TARGET_BYTE_ORDER_DEFAULT,
TARGET_BYTE_ORDER_SELECTABLE_P): Replace TARGET_BYTE_ORDER and
TARGET_BYTE_ORDER_SELECTABLE.
1998-12-15 13:35:50 +00:00
Jason Molenda
fc5b254aa6 1998-12-14 Anthony Thompson (athompso@cambridge.arm.com)
* remote-rdp.c (rdp_init): Don't discard first character on reset.
        (translate_open_mode): Define table.
        (exec_swi): Handle SWI_Clock.  SWI_Open now handles stdin/stdout.
        SWI_Write returns number of bytes not written.  SWI_Read does the
        same.  SWI_Seek should return success/failure flag.  Fix SWI_Flen.

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

Document.

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

Document.

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

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

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

        * defs.h (make_cleanup_func): Protect parameter list by `PARAMS'.
        * gdbthread.h (unbind_target_thread_vector): Likewise.
1998-12-09 00:38:46 +00:00
Jeff Law
c4efea12c8 Fixes. 1998-12-08 22:52:54 +00:00
Jeff Law
5e5be68bfe *** empty log message *** 1998-12-08 22:51:49 +00:00
Jeff Law
e97b0413dd Keep restore.c and restore.exp 1998-12-08 22:01:16 +00:00
Edith Epstein
09faf0c212 Tue Dec 8 15:09:44 1998 Edith Epstein <eepstein@sophia.cygnus.com>
Merged in m68k-linux patch from Andreas Schwab

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

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

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

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

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

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

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

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

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

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

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

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

PR 17664.

With this define in place, you can't type "q" to get out of GDB's pager
under Cygwin.
1998-12-07 23:07:17 +00:00
Jim Blandy
63d7a4f12e * rs6000-tdep.c (pop_frame): Correctly find the registers saved in
the stack frame.  Their offset from the previous stack frame is in
fdata.gpr_offset and fdata.fpr_offset, not fdata.offset.
(gdb.base/return.exp)
* config/rs6000/tm-rs6000.h: Doc fixes.
1998-12-07 20:28:54 +00:00
Jim Blandy
0bd416fe37 *** empty log message *** 1998-12-07 20:28:31 +00:00
Jason Molenda
edc452d07d 1998-12-03 Jason Molenda (jsm@bugshack.cygnus.com)
* monitor.c (monitor_read_memory): Zero out pattern buffers
        before calling re_search.
        (parse_register_dump): Ditto.

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

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


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

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

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

For ld:
	* configure.tgt: Handle mips64*vr4xxx.
1998-11-25 01:10:52 +00:00
Michael Snyder
4183a62a97 Tue Nov 24 15:46:33 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* config/mn10300/tm-mn10300.h (TARGET_VIRTUAL_FRAME_POINTER):
        new target macro.
        * mn10300-tdep.c (mn10300_virtual_frame_pointer): new function.
        * tracepoint.c (encode_actions): Use the new target macro to
        determine the virtual frame pointer, for collecting locals/args.
        (add_local_symbols, collect_symbol): add a register/offset pair of
        arguments so that the virtual frame pointer can be passed in.
1998-11-24 23:50:20 +00:00
Felix Lee
15af627cc0 * procfs.c (procfs_wait): handle syscall events first.
* procfs.c (GDB_GREGSET_TYPE, GDB_FPREGSET_TYPE): new macros.
        * config/sparc/xm-sun4sol2.h: use them.
        * core-sol2.c: don't #undef gregset_t and fpregset_t.
        * sol-thread.c: ditto.
        * sparc-tdep.c: ditto.
1998-11-24 14:51:13 +00:00
Andrew Cagney
afcad54a90 CARP: *BREAKPOINT*
Convert mn10300, MIPS and powerpc/rs6000 targets to use
BREAKPOINT_FROM_PC
Delete global variable memory_breakpoint_size.  Use BREAKPOINT_FROM_PC
instead.
1998-11-24 13:49:00 +00:00
Michael Snyder
e1dba9c442 Mon Nov 23 11:38:40 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* symfile.c (deduce_language_from_filename): rewrite so as to
        work from a table of filename extensions, modifiable by the user.
        (filename_language_table): new data structure.
        (set_ext_lang_command): new function for new command, "set
        extension-language".  (info_extension_language_command): new
        function for new command "info extension-languages".
        (add_filename_language, init_filename_language_table): new
        support functions for the above.
        * language.c (language_enum): new function.  Support for above.
1998-11-23 19:44:42 +00:00
Andrew Cagney
98760eab33 CARP: Convert macro definitions of USE_STRUCT_CONVENTION into target
specific functions.
1998-11-23 12:35:23 +00:00
Stan Shebs
92fb1f2eba Sat Nov 21 17:15:40 1998 Philippe De Muyter <phdm@macqel.be>
* breakpoint.c (bpstat_stop_status): Do not increment hit_count
	of breakpoint if condition is not true.
1998-11-21 20:16:49 +00:00
Stan Shebs
aa8938d581 Sat Nov 21 17:15:40 1998 Philippe De Muyter <phdm@macqel.be>
* coffread.c (coff_symtab_read): Discard C_LABEL's that are not
	function entry points, to avoid getting them in the stack dump
	instead of the actual function.
1998-11-21 19:59:37 +00:00
Stan Shebs
e78a799536 keep restored file 1998-11-21 19:29:32 +00:00
Stan Shebs
6b29a8b13b * config/m68k/delta68.mh (NAT_FILE): Undo 1998-08-18 change;
without NAT_FILE definition, configure will assume that GDB cannot
 	run native.
	* config/m68k/nm-delta68.h (KERNEL_U_SIZE): New macro.
	* delta68-nat.c (kernel_u_size): New function.
1998-11-21 19:28:44 +00:00
Zdenek Radouch
e2086086fe Added fr30-tdep.c. 1998-11-20 06:46:55 +00:00
Zdenek Radouch
f51dbfbd4e Replacing a bogus file with a semi-bogus one (sharing through devo). 1998-11-20 00:34:30 +00:00
Zdenek Radouch
82a1b47808 Replacing a bogus file with possibly an initial version of the same. 1998-11-20 00:31:29 +00:00