From: Daniel Berlin Date: Fri, 24 Mar 2000 01:51:13 +0000 (+0000) Subject: FIx regression X-Git-Tag: gdb_5_0-2000-04-10-branchpoint~198 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=74cc24b09659809f11be619b8a3ce62755be2667;p=platform%2Fupstream%2Fbinutils.git FIx regression --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d4ec901..8bb1ff7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2000-03-23 Jimmy Guo + + * gdbtypes.c (rank_function): Rank all N parameters and use correct + index into the prams[] and args[] arrays. + 2000-03-23 Fernando Nasser From David Whedon @@ -96,17 +101,17 @@ Wed Mar 22 15:09:34 2000 Andrew Cagney * configure.in (CONFIG_INITS): Do not append remote-nrom.c -2000-03-21 J.T. Conklin - - * i386/nbsd.mh (NATDEPFILES): Change i386b-nat.o to i386nbsd-nat.o. - * i386nbsd-nat.c: New file. - - * i386/tm-nbsd.h (NUM_REGS): Removed. - (HAVE_I387_REGS): Defined. - * i386/nm-nbsd.h (FLOAT_INFO): Removed. - - * tm-nbsd.h (IN_SOLIB_CALL_TRAMPOLINE): Define if not - SVR4_SHARED_LIBS. +2000-03-21 J.T. Conklin + + * i386/nbsd.mh (NATDEPFILES): Change i386b-nat.o to i386nbsd-nat.o. + * i386nbsd-nat.c: New file. + + * i386/tm-nbsd.h (NUM_REGS): Removed. + (HAVE_I387_REGS): Defined. + * i386/nm-nbsd.h (FLOAT_INFO): Removed. + + * tm-nbsd.h (IN_SOLIB_CALL_TRAMPOLINE): Define if not + SVR4_SHARED_LIBS. Wed Mar 22 11:18:59 2000 Andrew Cagney @@ -157,7 +162,7 @@ Wed Mar 22 11:18:59 2000 Andrew Cagney (bpstat_stop_status, can_use_hardware_watchpoint): Don't insert, remove, or check status of hardware watchpoints for entire structs and arrays unless the user explicitly asked to watch that struct - or array. + or array. (insert_breakpoints): Try to insert watchpoints for all the values on the value chain, even if some of them fail to insert. @@ -170,7 +175,7 @@ Wed Mar 22 11:18:59 2000 Andrew Cagney Implement the extra thread info query for "info threads". (remote_threads_info): clean up a bit. (use_threadinfo_query, use_threadextra_query): new variables. - Control whether GDB will use the new or old protocol for + Control whether GDB will use the new or old protocol for thread info queries. (remote_open_1): initialize new variables. (remote_async_open_1): ditto. @@ -315,7 +320,7 @@ Fri Mar 17 11:06:59 2000 Philippe De Muyter * config/i386/tm-linux.h (I386_LINUX_SIGTRAMP): No need to define this any more, since we're not enabling OS-specific code in a OS-independent file. - + 2000-03-16 Eli Zaretskii * Makefile.in (go32-nat.o): Add prerequisites. @@ -353,7 +358,7 @@ Fri Mar 17 11:06:59 2000 Philippe De Muyter * solib.c (special_symbol_handling): Delete argument; it's not used. - + Changes from Peter Schauer : * solib.c (SOLIB_EXTRACT_ADDRESS): New macro to extract addresses @@ -391,27 +396,27 @@ Mon Mar 13 21:21:41 2000 Andrew Cagney 2000-03-13 James Ingham - Add support for a variable object that tries to evaluate itself in + Add support for a variable object that tries to evaluate itself in the currently selected frame, rather than in a fixed frame. - + * wrapper.c,h (gdb_parse_exp_1): Added a wrapper for gdb_parse_exp_1. - * varobj.h: Added USE_CURRENT_FRAME to varobj_type & changed def'n + * varobj.h: Added USE_CURRENT_FRAME to varobj_type & changed def'n of varobj_create. * varobj.c (varobj_list): Return type indicates whether the variable's type has changed (for current frame variables). (varobj_update): Handle the case where the variable's type has changed. - (delete_variable_1): Allow for deletion of variables that have not + (delete_variable_1): Allow for deletion of variables that have not been installed yet. (new_root_variable): Initialize use_selected_frame variable. - (value_of_root): This is where most of the work to handle "current + (value_of_root): This is where most of the work to handle "current frame" variables was added. Most of the complexity involves handling the case where the type of the variable has changed. (varobj_create): Add a "type" argument, to tell if the variable is one of these "current frame" variables. Also protect call to parse_exp_1 from long jumping. - + 2000-03-13 Eli Zaretskii * go32-nat.c (struct env387): Remove declaration. @@ -460,7 +465,7 @@ Mon Mar 13 18:54:42 2000 Andrew Cagney * gdbtypes.c (rank_one_type): Add comment on how to eliminate the #ifdef DEBUG_OLOAD. - + 2000-03-11 Mark Kettenis * gnu-nat.c: Fix the formatting where indent misinterpreted `&' as @@ -662,7 +667,7 @@ Sat Mar 4 10:57:25 2000 Andrew Cagney other function typedefs. Document as not be used out side of make_cleanup code. Use in make_cleanup declarations. (null_cleanup): Replace PTR with void*. - + * utils.c (make_cleanup, make_final_cleanup, make_run_cleanup, make_exec_cleanup, make_exec_error_cleanup, make_my_cleanup, null_cleanup): Change K&R definition to ISO-C using void* and @@ -687,7 +692,7 @@ Fri Mar 3 15:39:34 2000 Andrew Cagney (all-gdbtk, clean-gdbtk): New targets. (all): Add CONFIG_ALL as dependency. (clean): Add CONFIG_CLEAN as dependency. - + * configure.in (CONFIG_ALL, CONFIG_CLEAN): Define. (LN_S): Define. Delete GDBtk's link code. @@ -727,7 +732,7 @@ Fri Mar 3 13:12:34 2000 Andrew Cagney Thu Mar 2 09:04:46 2000 Andrew Cagney - * MAINTAINERS: Daniel Berlin is C++ maintainer. + * MAINTAINERS: Daniel Berlin is C++ maintainer. Thu Mar 2 08:55:35 2000 Andrew Cagney @@ -737,10 +742,10 @@ Thu Mar 2 08:55:35 2000 Andrew Cagney Solaris/x86. Wed Mar 1 22:12:35 2000 Andrew Cagney - + From Wed 23 Feb 2000 Fernando Nasser : * remote-sim.c (gdbsim_close): Call generic_mourn_inferior. - * remote-rdi.c (arm_rdi_close): Ditto. + * remote-rdi.c (arm_rdi_close): Ditto. Wed Mar 1 19:31:32 2000 Andrew Cagney @@ -836,10 +841,10 @@ Tue Feb 29 15:14:56 2000 Andrew Cagney as in the Linux kernel. Modified prototype to get rid of unused parameters. (store_nw_fpe_*): Renamed to store_nwfpe_* to use the same - naming convention as in the Linux kernel. Fixed calls to + naming convention as in the Linux kernel. Fixed calls to fetch_nwfpe_*. (store_fpregs): Fixed calls to store_nwfpe_*. Removed - unused variable. + unused variable. Mon Feb 28 18:24:32 2000 Andrew Cagney @@ -951,7 +956,7 @@ Thu Feb 24 18:42:15 2000 Andrew Cagney * configure.in (CONFIG_INSTALL, CONFIG_UNINSTALL): Set to $(SUBDIR_*_INSTALL) when so configured. * configure: Regenerate. - + * Makefile.in (CONFIG_INSTALL, CONFIG_UNINSTALL): Define using configure. (install-only): Add dependency on $(CONFIG_INSTALL). Delete code @@ -965,7 +970,7 @@ Thu Feb 24 18:19:52 2000 Andrew Cagney * configure.in (SUBDIR_MI_CFLAGS): Fix typo, wrong brace. * configure: Regenerate. - + 2000-02-24 Christopher Faylor * configure.tgt: Add arm, mips, sh wince targets. @@ -1019,7 +1024,7 @@ Mon Feb 21 13:57:27 2000 Andrew Cagney interface. * configure: Regenerate. - + * Makefile.in (SUBDIR_MI_OBS, SUBDIR_MI_SRCS, SUBDIR_MI_DEPS, SUBDIR_MI_INITS, SUBDIR_MI_LDFLAGS, SUBDIR_MI_CFLAGS): New macros. (CONFIG_OBS, CONFIG_SRCS, CONFIG_DEPS, CONFIG_INITS, @@ -1140,7 +1145,7 @@ Mon Feb 21 11:03:01 2000 Andrew Cagney Andrew Cagney, Elena Zannoni and Fernando Nasser; Web pages - Jim Kingdon. * MAINTAINERS: Add Nick Clifton to write after approval list. - + Mon Feb 21 10:30:39 2000 Andrew Cagney * MAINTAINERS: Add note on multiple maintainers. @@ -1237,7 +1242,7 @@ Wed Feb 16 19:00:02 2000 Andrew Cagney code to also handle the PowerOpen ABI. (ppc_push_return_address): Enable for all ports. * config/powerpc/tm-ppc-aix.h (USE_GENERIC_DUMMY_FRAMES, - PUSH_DUMMY_FRAME, PUSH_RETURN_ADDRESS, GET_SAVED_REGISTER, + PUSH_DUMMY_FRAME, PUSH_RETURN_ADDRESS, GET_SAVED_REGISTER, CALL_DUMMY_BREAKPOINT_OFFSET, CALL_DUMMY_LOCATION, CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET): Override defaults provided by generic RS6000 definitions so that call dummies @@ -1260,7 +1265,7 @@ Wed Feb 16 19:00:02 2000 Andrew Cagney 2000-02-15 Jesper Skov Patch applied by Kevin Buettner - + * rs6000-tdep.c (skip_prologue): skip copying of argument registers to local variable registers. @@ -1301,7 +1306,7 @@ Mon Feb 14 15:20:26 2000 Andrew Cagney * configure.tgt (i[3456]86-*-netbsd*): add gdbserver to configdirs. * gdbserver/low-nbsd.c: New file. - + * gdbserver/Makefile.in: convert to autoconf. * gdbserver/configure.in: likewise. * gdbserver/configure: generate. @@ -1507,7 +1512,7 @@ Tue Feb 1 00:17:12 2000 Andrew Cagney * ui-file.c, ui-file.h: Rename gdb-file.h, gdb-file.c. Rename ``struct gdb_file'' to ``struct ui_file''. Delete typedef GDB_FILE. - + * Makefile.in: Update. * ax-gdb.c, ax-general.c, ax.h, buildsym.c, c-lang.c, c-lang.h, @@ -1568,7 +1573,7 @@ Mon Jan 31 17:14:52 2000 Andrew Cagney tui_file_get_strbuf, tui_file_adjust_strbuf, tui_file_flush, fputs_unfiltered_hook): Moved to tui/tui-file.c and tui/tui-file.h. - + * Makefile.in (COMMON_OBS): Add gdb-file.o, tui-file.o. (tui-file.o, gdb-file.o): Add dependencies. (corefile.o, main.o, utils.o, simmisc.o): Update dependencies. @@ -1717,11 +1722,11 @@ Mon Jan 31 17:14:52 2000 Andrew Cagney * infrun.c (normal_stop): Use enum values rather than integers for the source_flag to be passed to show_and_print_stack_frame(). Update copyright. - + * frame.h (print_what): New enum for 'source' argument to print_frame_info_base(). Use this instead of obscure numbers. Update copyright. - + Sun Jan 16 17:58:00 2000 David Taylor * event-top.c (stdin_event_handler): call quit_command rather than @@ -1835,7 +1840,7 @@ Thu Jan 13 23:34:17 EST 2000 Nicholas Duffek (proc_flags): combine flags that UnixWare splits into two locations. (proc_modify_flag): add support for PR_KLC (kill on last close). (proc_[un]set_kill_on_last_close): new functions. - + 2000-01-07 Elena Zannoni * infrun.c (normal_stop): Print out thread id when we stop. diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index d361d15..a940931 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -2136,8 +2136,8 @@ rank_function (parms, nparms, args, nargs) LENGTH_MATCH (bv) = (nargs != nparms) ? LENGTH_MISMATCH_BADNESS : 0; /* Now rank all the parameters of the candidate function */ - for (i = 1; i < min_len; i++) - bv->rank[i] = rank_one_type (parms[i], args[i]); + for (i = 1; i <= min_len; i++) + bv->rank[i] = rank_one_type (parms[i-1], args[i-1]); /* If more arguments than parameters, add dummy entries */ for (i = min_len + 1; i <= nargs; i++)