Commit Graph

40286 Commits

Author SHA1 Message Date
DJ Delorie 39071cb835 merge from gcc 2003-07-01 01:12:46 +00:00
Jim Blandy 4d819d0ef5 Patch from IBM (authors unspecified, probably Ulrich Weigand and
Gerhard Tonn) for argument passing on the S/390 and S/390x:
* s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
for 16 registers, and then 32 more bytes.
(S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
New macros.
(is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
Move up in the file, since it's now used by is_simple_arg.
(is_simple_arg): Don't assume registers are four bytes long.
Exclude all double arguments.  Extended floats are not simple
args.
(is_power_of_two): New function.
(pass_by_copy_ref): Call is_power_of_two, and check that the
length fits in a register, rather than listing all the acceptable
sizes.  Extended floats are not passed by reference.
(s390_push_arguments): Don't assume registers are four bytes long.
Reserve an argument register to point to the buffer for structures
returned by value.  Use S390_NUM_FP_PARAMETER_REGISTERS and
S390_STACK_FRAME_OVERHEAD.
2003-07-01 00:05:37 +00:00
gdbadmin a75928a5c5 *** empty log message *** 2003-07-01 00:00:32 +00:00
Alan Modra 34fef7f4d8 daily update 2003-07-01 00:00:05 +00:00
Bob Wilson 902695bc2a * xtensa-config.h (XCHAL_HAVE_CONST16, XCHAL_HAVE_ABS,
XCHAL_HAVE_ADDX, XCHAL_HAVE_L32R): Define.
2003-06-30 21:56:32 +00:00
Chris Demetriou 1a2c1fadc9 2003-06-30 Chris Demetriou <cgd@broadcom.com>
* config/tc-mips.c (s_mipsset): Implement -march= handling
        differently.
2003-06-30 21:54:19 +00:00
Andreas Schwab 1ad828f198 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
format error message.
2003-06-30 21:40:05 +00:00
Joel Brobecker 39b00981ac * sparc-tdep.c (stop_after_trap): Remove declaration, not used. 2003-06-30 16:55:31 +00:00
David Carlton 7a20f2c262 Fix indentation of previous commit. 2003-06-30 16:23:29 +00:00
David Carlton b2a7f303a2 2003-06-30 David Carlton <carlton@kealia.com>
Band-aid for PR c++/1245.
	* Makefile.in (cp-support.o): Depend on complaints_h.
	* cp-support.c: Include complaints.h.  Add declaration for
	find_last_component.
	(cp_find_first_component): Separate code into
	cp_find_first_component_aux.
	(cp_find_first_component_aux): Call demangled_name_complaint.
	(demangled_name_complaint): New.

2003-06-30  David Carlton  <carlton@kealia.com>

	* gdb.c++/maint.exp (test_invalid_name): New.
	(test_first_component): Add tests for invalid names.
2003-06-30 16:21:16 +00:00
Andrew Cagney a257b5bbf7 2003-06-30 Andrew Cagney <cagney@redhat.com>
* remote.c (remote_write_bytes): Explicitly compute and then use
	the payload size.  Update comments to reflect.  Fixes problem of
	GDB not sending small packets as found by Fred Fish.
2003-06-30 15:50:52 +00:00
Andrew Cagney 0a2cfde49a 2003-06-30 Andrew Cagney <cagney@redhat.com>
* remote.c (remote_async_wait): Fix -Wformat problem.
2003-06-30 15:03:07 +00:00
Thiemo Seufer 17a2f25124 * config/tc-mips.c: Convert to ISO C90 prototypes. Remove unnecessary
prototypes and casts. Replace PTR with void *. Reformat.
	* config/tc-mips.h: Likewise.
2003-06-30 12:44:25 +00:00
Alan Modra 6344efa4f2 * config/tc-ia64.c (note_register_values): Warning fix.
* config/tc-mips.c (append_insn): Likewise.
2003-06-30 04:10:48 +00:00
Alan Modra 113202d6bc * cpu-ia64-opc.c (ext_imms_scaled): Don't sign extend using shifts.
(ins_imms, ins_immsm1u4): Likewise.  Warning fix.
2003-06-30 04:09:27 +00:00
Michael Chastain 3c6cb4a1a4 2003-06-29 Michael Chastain <mec@shout.net>
* gdb.c++/inherit.exp (test_print_svi_classes): Accept gdb
	output of '<VTT for class>' for virtual base classes.
2003-06-30 00:12:09 +00:00
gdbadmin 36f443e9a8 *** empty log message *** 2003-06-30 00:00:32 +00:00
Alan Modra f1f18543ca daily update 2003-06-30 00:00:05 +00:00
Andrew Cagney 3fcb85483c 2003-06-29 Andrew Cagney <cagney@redhat.com>
* remote.c (remote_wait): Call error, and not warning, when the
	packet is corrupt.
	(remote_async_wait): Ditto.
2003-06-29 21:17:22 +00:00
Daniel Jacobowitz 9f9970a3e9 * sparc-tdep.c (sparc_y_regnum): Make external again. 2003-06-29 21:15:24 +00:00
Daniel Jacobowitz f1c2644b92 * gdb.base/completion.exp: Tab-complete "complet" instead of
"compl".
	* gdb.base/complex.exp, gdb.base/complex.c: New files.
2003-06-29 20:32:23 +00:00
Daniel Jacobowitz 180803508c * gdb.base/constvars.exp: Remove most xfails for GCC 3.x.
* gdb.base/volatile.exp: Likewise.
2003-06-29 20:01:59 +00:00
Thiemo Seufer fef14a4289 * ld-mips-elf/elf-rel-got-n64-linux.d: New file.
* ld-mips-elf/elf-rel-xgot-n64-linux.d: New file.
	* ld-mips-elf/mips-elf.exp: Use the new files for Linux.
2003-06-29 19:41:33 +00:00
Daniel Jacobowitz 83a8cccaa8 * cli/cli-logging.c (pop_output_files): Add void to function
definition.
2003-06-29 19:41:14 +00:00
Daniel Jacobowitz f56973f819 * gdb.threads/print-threads.exp (test_all_threads): Add kfail for
gdb/1265.
2003-06-29 19:29:42 +00:00
Andreas Jaeger a6f5b2c3bf * xcoff.h (struct __rtinit ): Convert to ISO C90 prototypes.
* ecoff.h: Convert to ISO C90 prototypes.  Replace PTR by void *.
2003-06-29 13:52:02 +00:00
Andreas Jaeger fd6ba1fc70 * mmix.h: Convert to ISO C90 prototypes.
* mips.h: Likewise.

	* reloc-macros.h (START_RELOC_NUMBERS): Convert to ISO C90
	prototype.
	(RELOC_NUMBER): Remove !__STDC__ code.
2003-06-29 13:51:25 +00:00
Andrew Cagney d2cf594a90 2003-06-29 Andrew Cagney <cagney@redhat.com>
* frame.c (frame_register_unwind): Use unsigned char when dumping
	the buffer contents.
2003-06-29 13:27:26 +00:00
Alan Modra c58b95236c Convert to C90 and a few tweaks. 2003-06-29 10:06:40 +00:00
Andreas Jaeger 58611256d8 Add forgotten ChangeLog snippet for last elf64-x86-64.c patch. 2003-06-29 10:02:24 +00:00
Andreas Jaeger 27482721cf * elf64-x86-64.c: Convert to ISO C90 prototypes, remove
unnecessary prototypes.  Replace PTR with void *.
2003-06-29 05:57:36 +00:00
Daniel Jacobowitz 43d5792ce1 * configure.in: Check whether we need to prototype strerror.
* server.h: Optionally prototype strerror.
	* gdbreplay.c (perror_with_name): Use strerror.
	* linux-low.c (linux_attach_lwp): Use strerror.
	* utils.c (perror_with_name): Use strerror.
	* config.in, configure: Regenerated.
2003-06-29 04:01:39 +00:00
Alan Modra 7cfbef4774 daily update 2003-06-29 00:00:37 +00:00
gdbadmin 3f95a617fe *** empty log message *** 2003-06-29 00:00:01 +00:00
Danny Smith bd7421f06a * binutils-all/objcopy.exp: Initialise $test_prog to
testprog.exe on mingw targeted systems too.
2003-06-28 23:27:42 +00:00
Thiemo Seufer fbf18a5ce9 * ld-mips-elf/mips-elf.exp: Use is_elf_format. 2003-06-28 22:14:59 +00:00
Thiemo Seufer 2b86c02e74 * elfxx-mips.c: Allow lazy binding for R_MIPS_JALR. 2003-06-28 22:13:37 +00:00
Thiemo Seufer 0c29b4ccce * ld-mips-elf/mips-elf-flags.exp: Use -melf32bsmip for IRIX6. 2003-06-28 22:12:26 +00:00
Daniel Jacobowitz c8a86edf1a * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
2003-06-28 18:41:56 +00:00
Daniel Jacobowitz 48fe539ffe * gdb.base/selftest.exp (do_steps_and_nexts): Increase maximum
initial line count of 'captured_main' from 26 to 32.
	(test_with_self): Allow xmalloc call to be interleaved with the
	preceding two lines.
2003-06-28 16:36:42 +00:00
Daniel Jacobowitz 0fac0b4199 ./
* cli/cli-logging.c: New file.
	* cli-out.c (struct ui_out_data): Add original_stream.
	(cli_redirect): New function.
	(cli_ui_out_impl): Add cli_redirect.
	(cli_out_new): Initialize original_stream.
	* ui-out.c (default_ui_out_impl): Add NULL for redirect member.
	(uo_redirect, ui_out_redirect): New.
	* ui-out.h (struct ui_out_impl): Add redirect member.
	(redirect_ftype): New.
	(ui_out_redirect): Add prototype.
	* Makefile.in: Add rules for cli-logging.c.
	* NEWS: Mention "set logging".
mi/
	* mi-out.c (mi_ui_out_impl): Add NULL for redirect member.
tui/
	* tui-out.c (tui_ui_out_impl): Add NULL for redirect member.
doc/
	* gdb.texinfo (Logging output): New chapter.
2003-06-28 16:19:07 +00:00
Alan Modra 1579bae1cd Convert to C90 2003-06-28 05:28:54 +00:00
Danny Smith b9ae04920a * rcparse.y (res_text_field): New res_id variable.
(res_null_text): New static const struct res_id object,
	with empty unicode name field.
	(control): Pop parsing of optresidc up one level. Set
	res_text_field to $2 except for controls which do not accept
	a text field.  Set res_text_field to res_null_text for the
	special cases (viz. COMBOBOX, EDITTEXT, LISTBOX, SCROLLBAR).
	(control_params): Adjust to use res_text_field rather
	than optresidc.
	(COMBOBOX): Add comment about discrepency between documented
	vs. observed default style.
	* resrc.c (define_control): Make first param const.
	* windres.h (define_control): Adjust prototype.

testsuite:

	* binutils-all/windres/checkbox.rc: New file.
	* binutils-all/windres/checkbox.rsd: New file.
	* binutils-all/windres/combobox.rc: New file.
	* binutils-all/windres/combobox.rsd: New file.
	* binutils-all/windres/edittext.rc: New file.
	* binutils-all/windres/edittext.rsd: New file.
	* binutils-all/windres/listbox.rc: New file.
	* binutils-all/windres/listbox.rsd: New file.
	* binutils-all/windres/scrollbar.rc: New file.
	* binutils-all/windres/scrollbar.rsd: New file.
2003-06-28 02:37:43 +00:00
Michael Snyder 0b2828595e 2003-06-27 Michael Snyder <msnyder@redhat.com>
* gencode.c (op movsxy_tab): Fix up some copy/paste errors
        in name: s/REG_x/REG_y/.
2003-06-28 01:34:47 +00:00
gdbadmin 1f0b93a6cb *** empty log message *** 2003-06-28 00:00:33 +00:00
Alan Modra 0d5b97c55d daily update 2003-06-28 00:00:06 +00:00
Michael Snyder 8dc30ef74a 2003-06-27 Michael Snyder <msnyder@redhat.com>
* gencode.c (op tab): Move misplaced semicolon.
2003-06-27 21:18:42 +00:00
Nathanael Nerode 4a5be7ba49 * configure.in: Clean up config-lang.in handling. Delete
useless assignment to "subdirs".
	* configure: Regenerate.
2003-06-27 17:34:33 +00:00
Elena Zannoni 88a07d7ce0 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
* config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2003-06-27 17:05:58 +00:00
Andrew Cagney 4eb588760e 2003-06-27 Andrew Cagney <cagney@redhat.com>
* m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
	(m68hc11_gdbarch_init): Do not set call_dummy_address.
	* avr-tdep.c (avr_call_dummy_address): Delete function.
	(avr_gdbarch_init): Do not set call_dummy_address.
2003-06-27 16:15:09 +00:00