Commit Graph

5847 Commits

Author SHA1 Message Date
Michael Snyder 736d0890a9 2001-05-17 Michael Snyder <msnyder@redhat.com>
* blockframe.c (create_new_frame): Zero all the fields via memset,
	rather than zeroing them one by one.
2001-05-17 20:04:46 +00:00
Eli Zaretskii a577b05c32 * top.c (user_args): Remove unused declaration. 2001-05-17 15:05:32 +00:00
Michael Snyder 9734519825 2001-05-15 John S Kallal <jskallal@home.com>
* remote.c (remote_wait): Added new variable fieldsize.
        Add fieldsize (return value of hex2bin) to string pointer p.
2001-05-16 20:10:52 +00:00
Michael Snyder b8adfa9f55 2001-05-16 Michael Snyder <msnyder@redhat.com>
* infcmd.c (do_registers_info): Move alloca outside of loop.
2001-05-16 20:05:49 +00:00
Mark Kettenis aca21d9a80 * sparc-tdep.c (sparc_gdbarch_init): Get the architecture from
info.bfd_arch_info.
2001-05-15 11:38:26 +00:00
Kevin Buettner b08cfdb65e Fix warnings resulting from fact that GET_LWP() now returns a long rather
than an int.
2001-05-15 00:13:47 +00:00
Kevin Buettner ca6724c16a Redefine ptid_t to be a struct rather than an int. 2001-05-15 00:03:38 +00:00
Michael Snyder 234fa6d16b 2001-05-14 Michael Snyder <msnyder@redhat.com>
* remote.c (hex2bin):   Make first argument const.
	Require explicit count, don't accept null-terminated str.
	(remote_resume, remote_async_resume): White space fix-up.
2001-05-14 19:02:00 +00:00
Mark Kettenis caadab2cfa * symtab.c (lookup_symtab_1): Use lbasename (NAME) instead of
basename (NAME).  The FreeBSD basename returns a pointer to a
static buffer, even if it's simply returning a string identical to
its argument.
(lookup_partial_symtab): Likewise.
2001-05-14 18:49:54 +00:00
Michael Snyder cb0ba49e37 2001-05-14 Michael Snyder <msnyder@redhat.com>
* solib.c, solib.h: Add comment for function no_shared_libraries.
2001-05-14 18:45:45 +00:00
Michael Snyder 2644f3936c 2001-05-14 Michael Snyder <msnyder@redhat.com>
* remote.c (remote_write_bytes): Set nr_bytes to return value of
	bin2hex.
2001-05-14 18:31:35 +00:00
Kevin Buettner 183a2f1a42 Fix no_shared_libraries() declaration. 2001-05-14 18:09:05 +00:00
Andrew Cagney 1dd1751e96 * remote.c (remote_write_bytes): Set nr_bytes before returning it.
* solib.h (no_shared_libraries): Declare.
2001-05-14 16:48:01 +00:00
Andrew Cagney b732d07d86 Fix logic selecting a new architecture. Use the sequence:
o	provided by INFO
	o	hard-wired by (gdb) set ...
	o	reversed engineered from INFO.abfd
	o	default to previous architecture
2001-05-14 16:43:35 +00:00
Fernando Nasser 67dd5ca691 2001-05-12 Fernando Nasser <fnasser@redhat.com>
* remote-e7000.c (e7000_open): Check for bad baud rate.
	* remote-st.c (st2000_open): Ditto.
2001-05-12 21:05:59 +00:00
Jim Blandy f8e42d245c * thread.c (do_captured_list_thread_ids): Use ui_out_tuple_begin
and ui_out_tuple_end instead of ui_out_list_begin and
ui_out_list_end.
2001-05-12 05:04:01 +00:00
Jim Blandy 529acb4893 * Makefile.in (gnu-v2-abi.o): Add $(demangle_h) to list of
dependencies.  Reorder dependencies to match #includes in file,
for easier verification.
2001-05-12 04:09:38 +00:00
Andrew Cagney 666547aa9e s/ui_out_list/ui_out_tupple/ 2001-05-12 04:08:24 +00:00
Jim Blandy 30c98d84cd * gnu-v2-abi.c: Don't #include "gdb_regex.h". We don't use it. 2001-05-12 04:01:16 +00:00
Andrew Cagney 1faa59a8b2 Tweeks from RDBrown to fix compiling on HP/UX using HP's compiler. 2001-05-12 03:18:34 +00:00
Andrew Cagney 5d6640b1ba NEWS on version.in. 2001-05-12 01:34:09 +00:00
Jim Blandy 99567b1b4e * mips-tdep.c (mips_store_return_value,
mips_extract_return_value): Pass arguments to
return_value_location in the proper order.
2001-05-12 00:38:11 +00:00
Andrew Cagney d381488167 Replace Makefile.in:VERSION with the file version.in. 2001-05-12 00:31:09 +00:00
Kevin Buettner 4d28f7a8fb Add ``type'' parameter to set_raw_breakpoint(). 2001-05-11 19:46:35 +00:00
Fernando Nasser 08b4f080d5 2001-05-11 Fernando Nasser <fnasser@redhat.com>
* ser-unix.c (rate_to_code): Issue warning if baud rate is invalid.
	(hardwire_setbaudrate): Set errno to EINVAL and return with error
	if the conversion of the baud rate to code fails.
2001-05-11 18:34:13 +00:00
Andrew Cagney 127431f9a7 2001-05-10 Andrew Cagney <ac131313@redhat.com>
* ui-out.h (make_cleanup_ui_out_begin_end): Declare.
	* ui-out.c (struct ui_out_end_cleanup_data): Define.
	(do_cleanup_end): New function.  Replace do_list_end.
	(make_cleanup_ui_out_end): New function.
	(make_cleanup_ui_out_begin_end): New function.
	(make_cleanup_ui_out_list_end): Use make_cleanup_ui_out_end.
2001-05-10 21:30:37 +00:00
Elena Zannoni 5dbc5e5f25 2001-05-10 Elena Zannoni <ezannoni@redhat.com>
* MAINTAINERS: Declare xcoffread.c open to all maintainers,
        and make Kevin Buettner (kevinb@redhat.com) the reference person.
2001-05-10 21:10:09 +00:00
Elena Zannoni 8e40d29290 2001-05-10 Elena Zannoni <ezannoni@redhat.com>
* proc-api.c (ioctl_with_trace): Fix uninitialized variable.
2001-05-10 21:03:03 +00:00
Fernando Nasser 5a703563ae 2001-05-10 Fernando Nasser <fnasser@redhat.com>
* MAINTAINERS: Add testsuite subdirectory co-maintainers.
2001-05-10 20:33:09 +00:00
Andrew Cagney 6311b07d72 Fix -Werror problem with mi-main.c. 2001-05-10 20:31:46 +00:00
Michael Snyder f78f6cf107 2001-05-10 Michael Snyder <msnyder@redhat.com>
* remote.c (remote_open_1): Call no_shared_libraries, so that
	symbols for shared libraries can be reloaded per session.
	(remote_async_open_1): Ditto.
2001-05-10 19:06:19 +00:00
Michael Snyder 30559e10c3 2001-05-10 Michael Snyder <msnyder@redhat.com>
* remote.c (bin2hex, hex2bin): New functions.  Factor out these
	two conversions which are coded for repeatedly in this module.
	(remote_threads_extra_info, remote_wait, remote_async_wait,
	store_register_using_P, remote_store_registers, remote_write_bytes,
	remote_read_bytes, remote_rcmd): Use bin2hex and hex2bin instead
	of coding the conversions inline.
	(fromhex): Not exported, change from extern to static.
2001-05-10 19:00:35 +00:00
Andrew Cagney 0a1d979176 Delete ``info architecture'' command. 2001-05-10 18:36:26 +00:00
Andrew Cagney ee05526729 General updates for 5.1/5.2 lists. 2001-05-10 18:20:51 +00:00
Andrew Cagney 85886af694 Jim Ingham stepping back from Arm maintenance. 2001-05-10 18:10:48 +00:00
Keith Seitz ecb9ce7eca * Makefile.in (SUBDIR_GDBTK_OBS): Add gdbtk-bp.o, gdbtk-register.o
and gdbtk-stack.o.
	(SUBDIR_GDBTK_SRCS): Ditto for the sources.
	(gdbtk-bp.o): New rule.
	(gdbtk-register.o): New rule.
	(gdbtk-stack.o): New rule.
	(gdbtk-cmds.o): Update dependencies.
	(gdbtk.o): Ditto.
	(gdbtk-hooks.o): Ditto.
	(gdbtk-varobj.o): Ditto.
2001-05-10 18:02:58 +00:00
Fernando Nasser f7635dd920 2001-05-10 Fernando Nasser <fnasser@redhat.com>
* varobj.c (c_number_of_children): Fix memory leak. Delete unwanted old
	variables, not just unregister them.
2001-05-10 16:57:01 +00:00
Fernando Nasser 0755e6c1ab 2001-05-10 Fernando Nasser <fnasser@redhat.com>
* varobj.c (c_number_of_children): Check for target type of void*,
	not the target type name.  Allow dereferencing char*.
2001-05-10 16:44:56 +00:00
Fernando Nasser d7db6da9f6 2001-05-10 Fernando Nasser <fnasser@redhat.com>
* symfile.c (symbol_file_add_main_1): New static function.
	Passes the flags arguments to  symbol_file_add() and takes care
	of any necessary reinitializations.
        (symbol_file_command): Call symbol_file_add_main_1() instead of
        symbol_file_add().
        (symbol_file_add_main): Ditto.
2001-05-10 15:33:21 +00:00
Kevin Buettner 3d6e28e2e7 Revert a couple of small changes that inadvertently came in via the
2001-05-03 patch.
2001-05-10 01:34:17 +00:00
Kevin Buettner 01263b571c Minor ptid_t changes for the upcoming phase 3 ptid patch. 2001-05-10 01:07:39 +00:00
Elena Zannoni 74a151fa4a 2001-05-09 Elena Zannoni <ezannoni@redhat.com>
* sh3-rom.c (_initialize_sh3_rom): Get rid of specific _WINDOWS
 	conditional for help with connections through parallel ports,
 	given that the actual code for downloading through a parallel port
 	is not conditionalized.

	* sh-tdep.c: Remove WIN32_WCE conditional. The wince sh target is
 	unmaintaned, and probably on its way to obsolescence.
2001-05-09 17:51:01 +00:00
Mark Kettenis 0d17c81d95 * i386-tdep.c (i386_frame_saved_pc): New function.
* config/i386/tm-i386.h (FRAME_SAVED_PC): Redefine in terms of
i386_frame_saved_pc.
(i386_frame_saved_pc): New prototype.
2001-05-09 16:16:33 +00:00
Mark Kettenis d7a0d72c95 * i386-tdep.c (i386_register_virtual_type): New function.
(i386_register_convertible): New function.
* config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE): Redefine in terms
of i386_register_virtual_type.
(REGISTER_CONVERTIBLE): Redefine in terms of
i386_register_convertible.
(i386_register_virtual_type, i386_register_convertible): New
prototypes.
2001-05-09 09:58:45 +00:00
Jim Blandy 3375748999 * Makefile.in (mn10300-tdep.o): New rule. 2001-05-09 05:45:30 +00:00
Jim Blandy c2c197ae42 * Makefile.in (obstack_h, target_h): Define; these are already
used elsewhere, but have been expanding to the empty string.
(memattr_h): Define; needed by target_h.
2001-05-09 05:23:24 +00:00
Jim Blandy c064f384c9 * mn10300-tdep.c (mn10300_extract_return_value): Mark this as
static.  (This was accidentally omitted from the earlier patch.)
2001-05-09 05:03:01 +00:00
Jim Blandy 2343651077 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): New function.
(mn10300_gdbarch_init): Register it as the architecture's
dwarf2_reg_to_regnum method.
2001-05-09 02:55:21 +00:00
Jim Blandy ae83b20d8f Correct and expand handling of `movm' instruction, and register
saves in general.
* config/mn10300/tm-mn10300.h (D0_REGNUM, A0_REGNUM, MDRQ_REGNUM,
MCRH_REGNUM, MCRL_REGNUM, MCVF_REGNUM): New definitions.
(enum movm_register_bits): New enum.
* mn10300-tdep.c (set_movm_offsets): Use symbolic names for the
bits, not hex literals.  Handle the `other', `exreg0', and
`exother' bits.  Correct handling of `exreg1': it saves r4, r5,
r6, and r7, not r2, r3, r4, and r5.
(saved_regs_size): New function.
(mn10300_frame_chain, mn10300_frame_saved_pc): Use it, instead
of computing the same thing inline, incorrectly.
2001-05-09 02:44:01 +00:00
Jim Blandy bf4b70a5e8 * mn10300-tdep.c (mn10300_gdbarch_init): We do have a
dummy_breakpoint_offset; it's zero.
2001-05-09 02:27:47 +00:00