aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
1996-08-13 * remote-pa.c (boot_board): Add dummy params to make type compatibleFred Fish4-6/+16
for passing to add_com. * scm-exp.c (scm_lreadr): Ensure svalue is not used uninitialized. * buildsym.c (compare_line_numbers): Change function to match prototype and also what qsort expects.
1996-08-13Resurrect code to increase timeout in "handle all print" cases in signals.exp.Fred Fish1-2/+0
1996-08-13 * remote.c: Make remote_write_size public.Mark Alexander2-0/+12
* sh-tdep.c (_initialize_sh_tdep): Set remote_write_size to 300 to prevent packet errors with some versions of CMON. (Fixes PR 10254)
1996-08-13 * defs.h: Define CONST_PTR as blank if compiling with MicrosoftStu Grossman13-33/+197
C, else it's `const'. * c-lang.c c-lang.h ch-lang.c f-lang.c language.c m2-lang.c scm-lang.c: Microsoft C can't hack const pointers. Use CONST_PTR macro instead. * configure configure.in defs.h: Use AC_C_CONST to figure out if the compiler supports const. Gets rid of some cruft in defs.h. * dwarf2read.c: <string.h> -> "gdb_string.h" * remote-sim.c: Add prototypes. Fix call to gdbsim_kill. * sparcl-tdep.c (download): Add prototypes to write_routine and start_routine args. * mswin/gdbwin.c: Don't include both varargs.h AND stdarg.h. Get rid of varargs.h Include string.h. * (gdbwin_update gdbwin_fputs regs_changed_f bpt_changed_f update): Fix prototypes, fix calls. * (update): Return value for catch_errors. * (run_execute_command togdb_command_from_tty togdb_command): Cleanup catching of errors from calls to execute_command. Also, dup command string to avoid modifying const strings. * (togdb_breakinfo_i_init togdb_breakinfo_i_next): Use 0 instead of NULL when see if b->address isn't set. * (bi_disable_bpt bi_enable_bpt bi_delete_all bi_delete_breakpoint): Add arg to calls to update. * (gui_command): Add prototype. * (mswin_query): Fix prototype. * (_initialize_gdbwin): Dup string to avoid modifying const. * (info_path togdb_get_info_path): Remove const from decls cuz this can't be const (it points at malloc'ed memory). * (togdb_searchpath): Remove const from path. Dup string to avoid modifying const strings. * rindex -> strrchr. * (gdbwin_list_symbols): Regexp param is const. * Fix lots of refs to psymtabs to deref correct pointers. * (togdb_set_breakpoint_sal): Call set_breakpoint_sal with sal, not &sal. * mswin/gdbwin.h (togdb_searchpath togdb_get_info_path toget_set_info_path): Fix prototypes to match reality. * mswin/gui.cpp: Define _beginthreadex and _endthreadex routines with proper prototypes. * mswin/iface.cpp (gdbwin_fputs): Define with correct number of args. * mswin/ser-win32s.c: Fix defs of min and max. * mswin/serdll32.c (OpenComm16): Make cbInQueue and cbOutQueue be USHORT. * (WriteComm16): Change lpBug from LPVOID to LPCSTR. * mswin/serdll32.h: Fix prototypes for OpenComm16 and WriteComm16.
1996-08-12 * gdb.base/a1-selftest.exp (do_steps_and_nexts): New routine toFred Fish4-253/+142
encapsulate all the steps/nexts done during self test, starting at main, and makes them less sensitive to optimization issues. Add "hppa*-*-hpux*" to setup_xfail for "backtrace through signal handler" test. * gdb.threads/pthreads.exp: Only run this for native configs. * gdb.base/signals.exp (test_handle_all_print): Remove code that increased timeouts, it now makes no difference. * gdb.base/structs.exp (do_function_calls): Add hppa*-*-hpux9*" setup_xfails for "p fun5()", "p fun6()", "p fun7()", and "p fun8" tests. gdb.c++/virtfunc.exp (do_tests): Add "mips-*-irix5*" setup_xfail for "runto test_calls(void)" test.
1996-08-12 * main.c (main): Make sure command loop is used with cygwin32.Stu Grossman1-0/+5
* terminal.h: Allow cygwin32 to use termios.h.
1996-08-11 * gdb.base/term.exp: Set 7-bit strings, address off, width to 0,Fred Fish1-0/+5
and don't expect address info in breakpoint confirmations.
1996-08-11 * gdb.base/list.exp (test_forward_search): Increase timeoutFred Fish1-0/+7
temporarily by 60 seconds for searching extremely long line, and then reset to old value when done. Increase expect input buffer to 10000.
1996-08-09 * Makefile.in (LIB_INSTALL_DIR): New macro.Tom Tromey2-1/+9
(TCL): Include @TCL_LD_SEARCH_FLAGS@.
1996-08-09 * somread.c (som_symtab_read): Handle secondary definitionJeff Law2-2/+9
symbols (aka weak symbols).
1996-08-09 * gdb.base/structs.exp: New tests for passing and returningJeff Law3-0/+362
structures. * gdb.base/structs.c: C source for test. Sanitized away until we've got a valid copyright assignment from Michael Snyder. Only tested on the PA. I assume other ports will needs some xfails and other possible testsuite tweakage.
1996-08-09 * config/tm-hppa.h (EXTRACT_RETURN_VALUE): Fix thinko inJeff Law2-1/+6
last change.
1996-08-08 * symfile.c (symfile_bfd_open): Change ifdef from __WIN32__ toStu Grossman1-0/+3
_WIN32.
1996-08-08 * somread.c: Rearrange order of includes to fix warnings underStu Grossman2-3/+7
hpux-10.10. Also don't include sys/file.h.
1996-08-08 * dbxread.c: Don't include param.h or sys/file.h.Stu Grossman1-0/+6
* (dbx_symfile_read): Determine symfile_relocatable from bfd flags instead of file extension. Also clean up a little bit.
1996-08-08 * dwarf2read.c dwarfread.c exec.c infcmd.c infrun.c main.cStu Grossman12-49/+48
mdebugread.c os9kread.c source.c top.c utils.c: Don't include param.h or sys/file.h (or unistd.h in some cases). * defs.h exec.c inflow.c remote-array.c remote-e7000.c sparcl-tdep.c terminal.h utils.c: Replace all occurances of __WIN32__, WINGDB, WIN32, etc... with _WIN32. * main.c: Remove #ifndef WINGDB around option processing. Fix bug with passing argc==0 and argv==NULL to getopt. * (main) Remove calls to access() before source_command. Let soure_command handle access errors. * maint.c (maintenance_dump_me): #ifdef out for _WIN32. * symtab.c (operator_chars): Make this global for wingdb. * top.c (disconnect): #ifdef out for _WIN32. * (source_command): If got an error and from_tty, then call print error, else just return quietly. * utils.c (fatal_dump_core): Can't kill ourselves under windows. Just exit. * (pollquit notice_quit): #ifdef out stuff that doesn't exist under windows.
1996-08-07 * gdb.base/list.exp (test_forward_search): Fix to handle veryFred Fish2-1/+7
long source line without overflowing expect's input buffer.
1996-08-07 * config/slite-gdb.exp (gdb_start): Use "full_buffer", notTom Tromey4-3/+17
"buffer_full". * config/nind-gdb.exp (gdb_start): Use "full_buffer", not "buffer_full". * config/mips-gdb.exp (gdb_start): Use "full_buffer", not "buffer_full". * lib/gdb.exp (gdb_test): Correct pattern is "full_buffer", not "buffer_full".
1996-08-07 * configure.in (configdirs): Add gdb.threads.Fred Fish7-29/+1311
* configure: Regenerated with autoconf. * gdb.threads/{config.in, pthreads.c, pthreads.exp}: New. * gdb.threads/{Makefile.in, configure.in}: Complete rewrites. * gdb.threads/configure: New, generated with autoconf.
1996-08-07 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Tweak forJeff Law2-1/+4
structures > 4 bytes in size. Fixing more structure return problems.
1996-08-07 * valops.c (call_function_by_hand): Handle aligning stacks thatJeff Law3-1/+14
grow up correctly. * config/pa/tm-hppa.h (USE_STRUCT_CONVENTION): Define. (STACK_ALIGN): Define. * hppa-tdep.c (hppa_alignof): Don't demand a minumim two byte alignment on structs/unions. Fixing assorted structure passing/return problems reported by the net.
1996-08-06 * lib/gdb.exp (gdb_test_exact): Turn \n in pattern into \r\n.Fred Fish2-0/+11
1996-08-06 * gdb.base/signals.exp (test_handle_all_print): Test separately forFred Fish4-8/+273
each signal's status in the output of "handle all print". * lib/gdb.exp (gdb_test): Document that the pattern must NOT include the \r\n sequence that immediately precedes the gdb prompt. * gdb.base/a1-selftest.exp: Save original timeout and restore after test.
1996-08-04 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Define to "int *",Fred Fish1-0/+5
which is the documented type under at least AIX 3 and AIX 4.
1996-08-04 * gdb.disasm/hppa.s: Export fmemLRbug_tests_4 as a ST_CODEJeff Law1-0/+5
symbol.
1996-08-03 * config/alpha/alpha-osf3.mh (MMALLOC_CFLAGS): Define NO_MMCHECK toFred Fish1-0/+2
not install consistency checks.
1996-08-03 * config/alpha/alpha-osf3.mh (XM_FILE): Change from xm-alpha.h toFred Fish2-1/+6
xm-alphaosf.h.
1996-08-03 * config/vx-gdb.exp (gdb_start): Fix syntax of `$shell_id < 0'.Brendan Kehoe2-1/+5
1996-08-02changes for new tcl/tk:Tom Tromey7-1512/+564
* gdbtk.c (mainWindow): Deleted. (cleanup_init): Don't destroy main window. (gdbtk_init): Main window now created by Tk_Init. * configure.in: Most X checks now handled automatically by Tk. Use new macros to find Tcl/Tk. * aclocal.m4: New version for new Tcl/Tk; from Don Libes. * config.in, configure: Regenerated. * Makefile.in (TCL, TCL_CFLAGS, TK, TK_CFLAGS, X11_CFLAGS, X11_LDFLAGS, X11_LIBS): Changed for new Tcl and Tk.
1996-08-01 * config/mips/tm-mips.h (TM_MIPS_H): Enclose file contents inFred Fish4-5/+23
this, define when contents are included. (mips_read_processor_type): Add prototype. * config/mips/xm-mips.h: Remove strdup decl, now in gdb_string.h * mdebugread.c (ecoff_relocate_efi): Add prototype. (fixup_sigtramp): Only needed when TM_MIPS_H is defined.
1996-08-01 * Makefile.in (gdbtk.tcl): put in $(datadir), not $(libdir).Jason Molenda2-3/+9
1996-08-01 * rs6000-nat.c (add_vmap): Return 0 to caller rather than random value.Fred Fish2-2/+31
(vmap_ldinfo): Ensure got_exec_file is not used uninitialized. (fetch_core_registers): Add prototype. (vmap_symtab): Ditto. (objfile_symbol_add): Ditto. (add_vmap): Ditto. (vmap_ldinfo): Ditto. (vmap_exec): Ditto.
1996-07-31 * stabsread.c (get_substring): Declare second arg as int.Stan Shebs3-32/+56
* remote-es.c: Include gdb_string.h after defs.h.
1996-07-30 * rs6000-tdep.c (push_arguments): Remove unused variable "pc".Fred Fish2-5/+17
(branch_dest): Remove unused variable "offset". (pop_dummy_frame): Add prototype and make static. (push_arguments): Guard against using len uninitialized. (push_arguments): Guard against using arg uninitialized. (frame_saved_pc): Remove unused variable "frameless". (free_loadinfo): Ifdef out unused function.
1996-07-30 * xcoffread.c (compare_lte): Change prototype and function toFred Fish2-2/+49
be correct type for passing to qsort. (add_stab_to_list): Ifdef out unused function and prototype. (compare_lte): Add prototype (arrange_linetable): Ditto. (record_include_begin): Ditto. (record_include_end): Ditto. (process_linenos): Ditto. (xcoff_next_symbol_text): Ditto. (scan_xcoff_symtab): Ditto. (xcoff_initial_scan): Ditto.
1996-07-30 * mips-tdep.c (mips_read_processor_type): Add parens aroundFred Fish2-1/+5
bitwise-and operands in comparison; previous expression always evaluated to 0 because of equality comparison of two constants.
1996-07-30 * rs6000-tdep.c (skip_prologue): Add missing parens aroundFred Fish2-2/+6
operands of logical-or so that first operand does not bind to previous logical-and.
1996-07-30 * configure.in: Expand "long long" test to include code that triggersFred Fish3-38/+54
known problem on HPUX with native compiler. (configure): Regenerated.
1996-07-30 * somsolib.c (som_solib_create_inferior_hook): Don'tJeff Law2-6/+9
warn if __d_pid can't be found.
1996-07-28 * config/mips/tm-mips.h (struct frame_info): Forward decl.Fred Fish6-8/+145
(struct type): Ditto. (struct value): Ditto. * config/mips/tm-mips.h (sigtramp_address): Move extern decl from mips-tdep.c to here. (sigtramp_end): Ditto. (fixup_sigtramp): Ditto. * config/mips/tm-mips.h (init_extra_frame_info): Add prototype. (mips_frame_chain): Ditto. (mips_step_skips_delay): Ditto. (mips_frame_saved_pc): Ditto. (mips_find_saved_regs): Ditto. (mips_frame_num_args): Ditto. (mips_pop_frame): Ditto. (mips_extract_return_value): Ditto. (mips_store_return_value): Ditto. (mips_push_dummy_frame): Ditto. (mips_push_arguments): Ditto. (mips_do_registers_info): Ditto. (ecoff_relocate_efi): Ditto. (ecoff_relocate_efi): Ditto. * irix4-nat.c (fetch_core_registers): Add prototype. * mips-tdep.c (read_next_frame_reg): Add prototype (heuristic_proc_start): Ditto. (heuristic_proc_desc): Ditto. (mips_print_register): Ditto. * config/mips/nm-irix5.h (procfs_set_watchpoint): Add prototype. (procfs_stopped_by_watchpoint): Ditto. * config/mips/nm-irix4.h (procfs_set_watchpoint): Add prototype. (procfs_stopped_by_watchpoint): Ditto. * config/alpha/tm-alpha.h (ecoff_relocate_efi): Add prototype. (struct symbol): Add forward decl for prototype. * breakpoint.c (internal_breakpoint_number): Only needed if GET_LONGJMP_TARGET or SOLIB_ADD is defined. * objfiles.c (ecoff_relocate_efi): Remove prototype.
1996-07-28 * configure.in: Add test for "long long" support.Fred Fish28-141/+476
* configure: Regenerate with autoconf. * acconfig.h: Add CC_HAS_LONG_LONG * config.in: Regenerate with autoheader. * config/mips/tm-mips64.h (FORCE_LONG_LONG): Remove * config/sparc/tm-sp64.h (CC_HAS_LONG_LONG): Remove. * config/mips/tm-vr4300el.h (CC_HAS_LONG_LONG): Remove. * config/mips/tm-vr4300.h (CC_HAS_LONG_LONG): Remove. * config/mips/xm-irix5.h (CC_HAS_LONG_LONG): Remove (PRINTF_HAS_LONG_LONG): Remove. (FORCE_LONG_LONG): Remove. * config/powerpc/xm-aix.h (UINT_MAX): Undef and use gdb's version. * config/convex/xm-convex.h (CC_HAS_LONG_LONG): Remove (PRINTF_HAS_LONG_LONG): Remove. * config/xm-nbsd.h (CC_HAS_LONG_LONG): Remove. (PRINTF_HAS_LONG_LONG): Remove. * config/pa/tm-hppa.h (GET_FIELD): Put parens around subtraction inside shift. Put parens around subtraction in operand of bitwise and. (struct frame_info): Forward declare if __STDC__ defined. (frame_saved_regs): Ditto. (struct value): Ditto. (struct type): Ditto. (struct inferior_status): Ditto. (init_extra_frame_info): Add prototype. (skip_prologue): Ditto. (frameless_function_invocation): Ditto. (frame_chain): Ditto. (frame_chain_valid): Ditto. (saved_pc_after_call): Ditto. (hppa_fix_call_dummy): Ditto. (hppa_push_arguments): Ditto. (pa_do_registers_info): Ditto. (in_solib_call_trampoline): Ditto. (in_solib_return_trampoline): Ditto. (push_dummy_frame): Ditto. * convex-tdep.c (decout): Use print_longest rather than fprintf_filtered. * defs.h: Remove use of FORCE_LONG_LONG and __GNUC__ to set CC_HAS_LONG_LONG. (INT_MIN): Fix so it works correctly when assigned to a long long. * valprint.c (longest_to_int): Rewrite to remove dependence on INT_MIN and INT_MAX. (print_longest): Rewrite the code that falls back to synthesized hex output when LONGEST value is not representable as in a long and printf doesn't support printing long longs. * ch-valprint.c (chill_val_print): Cast 2nd arg of chill_print_type_scalar to LONGEST. chill_print_type_scalar): Make static and add prototype. * hppa-tdep.c (get_field): Ifdef out unused function. (set_field): Ditto. (extract_3): Ditto. (extract_5_store): Ditto. (extract_11): Ditto. (extract_12): Ditto. (deposit_17): Ditto. (extract_14): Convert to static and add prototype. (deposit_14): Ditto. (extract_21): Ditto. (deposit_21): Ditto. (extract_17): Ditto. (extract_5r_store): Ditto. (extract_5R_store): Ditto. (extract_5_load): Ditto. (find_proc_framesize): Ditto. (find_dummy_frame_regs): Ditto. (sign_extend): Ditto. (find_unwind_entry): Add prototype. (find_return_regnum): Ditto. (unwind_command): Ditto. (find_dummy_frame_regs): Add parens around subtraction in operand of bitwise-and. (skip_prologue): Add parens around operands of logical-and inside operand of logical-or. (sign_extend): Add parens around operands of subtraction inside operand of shift. (low_sign_extend): Ditto. * top.c (filename_completer): Convert old style decl of filename_completion_function into prototype. * f-lang.c (patch_common_entries): Ifdef out unused function. * stabsread.c (read_cfront_baseclasses): Remove unused local variable "msg_noterm". (resolve_cfront_continuation): Remove unused local variable "fip". (read_type): Remove unused variable xtypenums. (read_cfront_static_fields): Remove unused variable "i". (read_cfront_static_fields): Remove unused variable "nfields". (read_cfront_member_functions): Add missing comment terminator. (read_cfront_static_fields): Return 1 rather than random value. (read_cfront_baseclasses): Ditto. (read_cfront_baseclasses): Ditto. (read_cfront_baseclasses): Ditto. * somsolib.c (som_solib_create_inferior_hook): Remove unused variable "u". (som_solib_create_inferior_hook): Remove unused variable shadow_contents. (language.h): Add for needed prototypes. (som_solib_sharedlibrary_command): Add prototype. * hpread.c: (hpread_read_array_type): Add prototype. * somread.c (hpread_build_pysmtabs): Add prototype. (hpread_symfile_finish): Ditto. (hpread_symfile_init): Ditto. * hppah-nat.c (fetch_register): Convert old style decl to prototype. (gdbcore.h): Include for needed prototypes. (fetch_register): Remove unused variable "mess". * remote-pa.c (get_offsets): Ifdef out unused function. (remote_start_remote): Remove unused variable "timeout". (boot_board): Add prototype. (reaad_frame): Add prototype. (getpkt): Remove unused variable "bp". (remote_kill): Add prototype. (remote_mourn): Add prototype. (remote_insert_breakpoint): Add prototype. (remote_remove_breakpoint): Add prototype. * valops.c (value_push): Only use if PUSH_ARGUMENTS is not defined. * infcmd.c (do_registers_info): Only need prototype if DO_REGISTERS_INFO is not defined. (breakpoint_auto_delete_contents): Only need if CALL_DUMMY_BREAKPOINT_OFFSET is defined.
1996-07-27 * xcoffread.c (xcoff_end_psymtab): Add textlow_not_set parameter.Fred Fish2-11/+17
(END_PSYMTAB): Ditto. (scan_xcoff_symtab): Call xcoff_end_psymtab with textlow_not_set.
1996-07-26 * printcmd.c (_initialize_printcmd): InitializeIan Lance Taylor2-0/+7
tm_print_insn_info.flavour. * gdbtk.c (gdb_disassemble): Initialize di.flavour.
1996-07-26See the huge ChangeLog entry that has the header:Fred Fish17-72/+110
Thu Jul 25 19:41:31 1996 Fred Fish <fnf@cygnus.com> for details about these changes. I was going to include the complete entry in the checkin message but it was apparently so large it caused cvs to dump core.
1996-07-26See gdb ChangeLog entry with header:Fred Fish74-366/+1460
Thu Jul 25 19:41:31 1996 Fred Fish <fnf@cygnus.com> for a rather huge set of changes. I was going to put them here, but it made cvs dump core. :-(
1996-07-25 * dsrec.c (load_srec): Protect ANSI style function parms with PARAMS.David Edelsohn1-0/+4
1996-07-23 * Makefile.in (os9kread.o): Remove dependency on partial-stab.h.Stu Grossman7-66/+112
* dbxread.c (read_dbx_symtab end_psymtab), partial-stab.h: Don't use partial_symtab->textlow==0 as a flag, as 0 is a legitimate text address. Use a seperate flag (textlow_not_set) instead. This makes stabs in ELF .o files work a lot better. * mdebugread.c xcoffread.c: Define textlow_not_set for partial-stab.h. * stabsread.h (end_psymtab): Add textlow_not_set arg to prototype.
1996-07-21 * gdbtk.tcl (files_command): Reorder the binding tags forFred Fish2-1/+13
the listbox widget to avoid referencing the listbox after the containing widget has been destroyed by the action of a previous binding.
1996-07-20 * dwarf2read.c (struct filenames): Change internal "struct file"Fred Fish2-3/+9
to "struct fileinfo" to avoid conflict with "struct file" in <sys/file.h> on HPUX and Solaris.
1996-07-20 * gdbtk.tcl (delete_expr): Unset corresponding element ofFred Fish2-6/+23
expr_update_list when destroying an expression. (create_expr_window): Initialize expr_num, delete_expr_num, and expr_update_list here when each new expression window is created, rather than once at startup. PR 9383