aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
1994-06-07 * lib/gdb.exp (delete_breakpoints): If there were no breakpoints,Jim Kingdon2-1/+6
don't give an error. * gdb.base/term.exp: Call delete_breakpoints before starting.
1994-06-07 * gdb.base/Makefile.in (EXECUTABLES): Remove t10.Jim Kingdon1-0/+5
(t10): Add comment.
1994-06-07Reorganized GDB tests - ChillStan Shebs7-0/+1436
1994-06-07Reorganized GDB tests - baseStan Shebs57-0/+21351
1994-06-07Mon Jun 6 18:26:50 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs3-38/+60
Reorganization of the GDB Test Suite. * gdb.base: New directory, contains all the basic tests. * gdb.c++: New directory, tests specific to C++. * gdb.chill: New directory, tests specific to Chill. * gdb.t00, gdb.t01, gdb.t02, gdb.t03, gdb.t04, gdb.t05, gdb.t06, gdb.t07, gdb.t08, gdb.t09, gdb.t10, gdb.t11, gdb.t12, gdb.t13, gdb.t15, gdb.t16, gdb.t17, gdb.t20, gdb.t21, gdb.t22, gdb.t23, gdb.t24, gdb.t30, gdb.t31: Removed directories, contents moved into appropriate new directories (t00-t17 to base, t20-t23 to c++, t30-31 to chill). * */gdbme.*: Rename to match appropriate expect scripts. * gdb.base/bitfields.c, gdb.base/break.c, gdb.base/callfuncs.c, gdb.base/coremaker.c, gdb.base/exprs.c, gdb.base/funcargs.c, gdb.base/interrupt.c, gdb.base/list0.c, gdb.base/list0.h, gdb.base/list1.c, gdb.base/mips_pro.c, gdb.base/nodebug.c, gdb.base/opaque-info.c, gdb.base/opaque0.c, gdb.base/opaque1.c, gdb.base/printcmds.c, gdb.base/ptype.c, gdb.base/recurse.c, gdb.base/return.c, gdb.base/run.c, gdb.base/scope0.c, gdb.base/scope1.c, gdb.base/setvar.c, gdb.base/signals.c, gdb.base/types.c, gdb.base/twice.c, gdb.base/watchpoint.c, gdb.base/whatis-info.c, gdb.base/whatis.c: New names of C files. * gdb.c++/cplusfuncs.cc, gdb.c++/templates.cc, gdb.c++/misc.cc, gdb.c++/virtfunc.cc: New names of C++ files. * gdb.chill/chillvars.ch: New name of Chill file. * gdb.base/configure.in, gdb.c++/configure.in, gdb.chill/configure.in: Merge in contents of gdb.t*/configure.in. * gdb.base/Makefile.in, gdb.c++/Makefile.in, gdb.chill/Makefile.in: Merge in contents of gdb.t*/Makefile.in. * configure.in (configdirs): Update to reflect directory changes. (target_abbrev): No longer define for any configuration. * Makefile.in: Cosmetic improvements to header comments.
1994-06-05 Fix value_print, which used to be ostensibly langauge-indepentdent,Per Bothner10-1/+216
but would print pointers and arrays in C syntax. Instead, call a language-specific function. See ChangeLog for details.
1994-06-04 Various changes to gdb.t31.Per Bothner1-0/+14
1994-06-03 * main.c: Move entire file except for #ifndef MAIN_OVERRIDE codeJim Kingdon5-15/+2566
to new file top.c. Make things extern instead of static and similar rearrangements to deal with this. * top.h: New file. * utils.c: Move fputs_unfiltered to main.c. Remove FPUTS_UNFILTERED_OVERRIDE ifndef. * Makefile.in: Change so that gdb uses main.c, utils.c, and top.c, and libgdb uses utils.c and top.c.
1994-06-03 * hppa-tdep.c (skip_trampoline_code): Fix typo.Jeff Law2-1/+5
1994-06-03 * ch-valprint.c (chill_val_print_array_elements): New function.Per Bothner2-2/+100
A Chill version of val_print_array_elements, it prints the array index labels, in additions ot the array element values. (chill_val_print): Use the new function.
1994-06-02 * Makefile.in (CHILL_LIB): Remove bogus redundant definitions.Per Bothner2-3/+5
1994-06-02 * lib/gdb.exp (string_to_regexp, gdb_test_exact): New procedures.Per Bothner1-0/+21
1994-06-02 * configure.in: Add nlm subdir to configdirs for alpha-*-netwareStu Grossman8-54/+197
target. * defs.h (enum language): Add language_asm. * findvar.c (read_register_bytes read_register_gen write_register_bytes read_register read_register_pid write_register write_register_pid supply_register): Move multi- thread handling down into these routines. Create XXX_pid routines that allow register references to specify the pid. * findvar.c infcmd.c (read_pc read_pc_pid write_pc write_pc_pid read_sp write_sp read_fp write_fp): Move these routines from infcmd to findvar to centralize the whole mess. * i386-nlmstub.c: Portability fixes. * infptrace.c (child_resume): Conditionalize to allow other natives to override it. Remove PIDGET gubbish, it's no longer necessary. * infrun.c (wait_for_inferior): Put registers_changed() before target_wait() to speed up remote debugging. * Replace code that reads registers from other threads with much nicer looking new function calls (see changes to findvar.c). * Don't skip prologues if debugging assembly source. * lynx-nat.c (child_resume): Lynx now needs it's own version of child_resume to handle multi-thread debugging properly. * remote.c: Add O response to get console output from target. * (readchar): Add timeout parameter. Handle SERIAL_EOF and SERIAL_ERROR here to simplify callers. * Change static var timeout to remote_timeout. * (fromhex): Remove unnecessary return -1 at end of routine. * (remote_wait): Turn this into a big switch statement. Add support for O response. * (putpkt): Remove unnecessary handling of SERIAL_EOF/ERROR. * (getpkt): Split getpkt into two parts. read_frame deals with all formatting issues, run-length encoding, and framing. getpkt now handles error recovery, and frame detection. * ser-tcp.c (tcp_readchar): Handle EINTR from read(). * ser-unix.c (hardwire_raw): Set CLOCAL so that we ignore modem control. (hardwire_readchar): Handle EINTR from read(). * symfile.c (deduce_language_from_filename): Add support for .s files. * config/nm-lynx.h: Define CHILD_WAIT so that lynx-nat.c can override infptrace's child_wait. * config/rs6000/rs6000lynx.mh: Use xm-rs6000ly.h & nm-rs6000ly.h instead of XXXlynx.h. * config/rs6000/rs6000lynx.mt: Use tm-rs6000ly.h instead of tm-rs6000lynx.h. * nlm/gdbserve.c: Portability fixes.
1994-06-01 * stabs.texinfo (Statics): Value of xcoff C_BSTAT points toJim Kingdon2-5/+10
another symbol, it is not the address itself.
1994-06-01Unneeded.Rob Savoye2-174/+0
1994-06-01Renamed.Rob Savoye10-590/+0
1994-06-01 * inftarg.c (child_wait): Call proc_wait, not wait.Jim Kingdon3-2/+41
(child_mourn_inferior): Call proc_remove_foreign. * main.c (gdb_init): Call init_proc. * main.c: Provide dummy versions of init_proc, proc_wait, and proc_remove_foreign for the gdb case (the libgdb case provides its own versions of these functions). * Makefile.in (libgdb-files): Add libproc.a.
1994-06-01Wed Jun 1 11:08:52 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs3-1/+194
Hardware watchpoints for Linux, from Rick Sladkey (jrs@world.std.com). * infrun.c (wait_for_inferior) [HAVE_CONTINUABLE_WATCHPOINT]: Add new hardware breakpoint recovery method. * i386v-nat.c (i386_insert_watchpoint, i386_insert_nonaligned_watchpoint, i386_remove_watchpoint, i386_stopped_by_watchpoint) [TARGET_CAN_USE_HARWARE_WATCHPOINT]: New functions to support the 386 hardware debugging registers. * config/i386/nm-linux.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT, target_insert_watchpoint, target_remove_watchpoint): Define these macros to use the hardware debugging functions in i386v-nat.c.
1994-05-30 * Makefile.in: Fix bit-rot in definitions of CHILL,Per Bothner2-13/+19
CHILL_FOR_TARGET and Chill_LIB.
1994-05-26 * Makefile.in: Replace libgdb.a with libgdb-files. Make "all"Jim Kingdon2-15/+11
build it.
1994-05-26 * Makefile.in (TARGET_FLAGS_TO_PASS): Fix syntax ofPer Bothner2-2/+7
sanitize-chill comments.
1994-05-25Make all the libgdb objects even when building gdb. This is becauseThomas Lord1-1/+12
cyscm links against ../../gdb/{...}.o Added a new target: libgdb-files. It creates a file of that name containing a list of files for libgdb. If the variable LIBGDBPREFIX is set, each file name has that prepended.
1994-05-24Mention gdb-testers-request as well as gdb-testers. (not in ChangeLogJim Kingdon1-8/+10
because gdb distributions should not contain references to snapshots).
1994-05-21 * Revert the previous changes. Please see Rob's directoryBill Cox11-97/+397
/lisa/test/rob/progressive/gdb/testsuite for these fixes.
1994-05-20 * target.c, target.h: New variables target_activity_function andJim Kingdon3-328/+18
target_activity_fd. * inflow.c, inferior.h: New functions set_sigio_trap and clear_sigio_trap. * inftarg.c (child_wait), procfs.c (wait_fd): Call them.
1994-05-19 * Makefile.in, configure.in, config/mips-gdb.exp,Bill Cox12-393/+127
config/mt-a29k-udi, config/mt-i386-aout, config/mt-i960-nindy, config/mt-sparc-aout, config/udi-gdb.exp, config/unix-gdb.exp, config/unknown.exp, gdb.t00/default.exp, gdb.t00/help.exp,, gdb.t00/teststrategy.exp, gdb.t01/Makefile.in, gdb.t02/Makefile.in, gdb.t02/whatis.exp, gdb.t03/Makefile.in, gdb.t03/gdbme.c, gdb.t04/Makefile.in, gdb.t05/Makefile.in, gdb.t06/Makefile.in, gdb.t06/break.exp, gdb.t06/signals.c, gdb.t06/signals.exp, gdb.t08/Makefile.in, gdb.t08/opaque.exp, gdb.t09/Makefile.in, gdb.t10/Makefile.in, gdb.t11/Makefile.in, gdb.t12/Makefile.in, gdb.t13/Makefile.in, gdb.t15/Makefile.in, gdb.t15/funcargs.exp, gdb.t15/gdbme.c, gdb.t15/return.exp, gdb.t16/Makefile.in, gdb.t17/Makefile.in, gdb.t17/callfuncs.exp, gdb.t17/gdbme.c, gdb.t20/Makefile.in, gdb.t21/Makefile.in, gdb.t21/cplusfuncs.exp, gdb.t22/Makefile.in, gdb.t22/virtfunc.exp, gdb.t23/Makefile.in, gdb.t24/demangle.exp, lib/gdb.exp: Check in Rob's testing changes from 94Q1.
1994-05-19 * config/mt-lynx, config/mt-m68k, config/mt-mips-ecoff,Bill Cox7-0/+12
config/mt-slite, config/mt-unix, config/mt-vxworks: Add Rob's new testing fragments.
1994-05-18 * remote-sim.h (sim_verbose): Delete.David Edelsohn3-58/+84
Document callbacks needed. (sim_*): Change result to void where there isn't one. (sim_open): Clarify argument and error response. (sim_close): Declare. (sim_load): Change bfd_handle argument to file name. Clarify result. (sim_create_inferior): Renamed from sim_set_args. (sim_set_pc): Delete. (sim_info): Delete printf_fn argument. * remote-sim.c (gdbsim_kill): Add comment describing purpose. (gdbsim_load): Try sim_load first. (gdbsim_create_inferior): Call sim_create_inferior. (gdbsim_open): Handle args == NULL. Update call to sim_open. (gdbsim_close): Call sim_close. (gdbsim_files_info): Update call to sim_info. (gdbsim_ops): Realign comments.
1994-05-18(decode_format): Allow TARGET_PTR_BIT to be non-constant.David Edelsohn1-0/+4
1994-05-18Tue May 17 16:45:20 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs2-2/+9
* xcoffread.c (read_xcoff_symtab): For C_FILE symbols, only use the auxent if the symbol's name is ".file". From David Edelsohn <c1dje@watson.ibm.com>.
1994-05-18 * breakpoint.c (breakpoint_1): Fix typo.Jim Kingdon4-5/+13
* annotate.c (annotate_field_end): Fix typo. * Makefile.in: Move annotate.o from COMMON_OBS to OBS. * Makefile.in (TSSTART): Remove; no longer used.
1994-05-17 * config/mips-gdb.exp, config/udi-gdb.exp, config/vx-gdb.exp,Bill Cox5-65/+56
lib/gdb.exp: Replace error proc calls with perror.
1994-05-17 * utils.c (vfprintf_maybe_filtered, vfprintf_unfiltered): CallJim Kingdon6-15/+44
fputs_unfiltered and exit directly, rather than fatal. The latter calls vfprintf_unfiltered! * gdbtypes.h, gdbtypes.c (can_dereference): New function. * value.h, printcmd.c (print_value_flags): Move from here... * annotate.c: ...to here, and make it use can_dereference.
1994-05-17Fix a sanitization screwup.Stan Shebs1-1/+1
1994-05-17Mon May 16 19:00:50 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs1-0/+6
* gdb.t00/teststrategy.exp: Reorder so that AIX gdb can print the version also, match on casted version strings, and match on gdb startup case where the line numbers might be messed up.
1994-05-14Sat May 14 15:13:52 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs4-34/+42
* inflow.c (job_control, attach_flag, generic_mourn_inferior): Remove, needed for both native and cross. * target.c (attach_flag, generic_mourn_inferior): Put here. * utils.c (job_control): Put here. (terminal.h): Don't include anymore.
1994-05-14 * source.c (find_source_lines): Always use code that was #ifdefJim Kingdon33-257/+106
BROKEN_LARGE_ALLOCA. Do the cleanup before returning, rather than leaving it on the chain. Reindent much of this function. * config/sparc/{xm-sun4sol2.h,xm-sun4os4.h}, config/i386/{xm-sun386.h,xm-i386m3.h,xm-i386mach.h}, config/m68k/{sun3os4.h,xm-news.h,xm-hp300hpux.h}, config/ns32k/xm-ns32km3.h: Remove all references to BROKEN_LARGE_ALLOCA; with the above change it is no longer needed. * main.c, fork-child.c, many config files: Remove all SET_STACK_LIMIT_HUGE code; with the above changes it should no longer be needed. * symtab.c (lookup_partial_symbol): Use if and abort, not assert. This avoids __eprintf troubles. * main.c (main): Surround in #ifndef MAIN_OVERRIDE. Move initialization code which needs to be called even if we bypass the command line stuff into gdb_init. * utils.c (fputs_unfiltered): Surround in #ifndef FPUTS_UNFILTERED_OVERRIDE. * Makefile.in (libgdb.a): New target. * utils.c: Rearrange I/O stuff a bit so that all output goes through fputs_unfiltered. Use vasprintf; removes arbitrary limit which made %s not work with arbitrarily large strings. * printcmd.c (printf_command): Use printf_filtered, not printf_unfiltered and printf, now that arbitrary limit is gone.
1994-05-14 * config/mt-i960-vx (LDFLAGS): Add '-r' option for test links.Bill Cox2-2/+7
(CFLAGS): Delete it from here.
1994-05-13 gcc -Wall lint:Jim Kingdon22-254/+927
* breakpoint.c (watchpoint_check): Remove unused variable b. * stack.c (print_frame_info): Move sp and buf inside #if. * eval.c (evaluate_subexp): Remove unused variables pp, mangle_ptr, ptr, and mangle_tstr. * valarith.c (value_x_binop): Remove unused variables mangle_tstr and mangle_ptr. * symtab.c (lookup_symtab): Put variable copy inside #if. (decode_line_1): Put variable q1 inside #if 0. * target.h: Declare target_link. * infrun.c (wait_for_inferior): Remove unused variables signame. * remote.c (remote_resume): Remove unused variable name. * c-exp.y (parse_number): Parenthesize operand of shift. * dbxread.c (record_minimal_symbol): Parenthesize operand of && (this is a semantic change, the warning seems to have detected a bug). * dbxread.c (end_psymtab): Move variable p1 inside #if. * coffread.c: Move variable temptype inside #if. * ch-typeprint.c (chill_type_print_base): Remove unused variable name. * ch-valprint.c: #include typeprint.h and ch-lang.h. (chill_val_print): Remove unused variable in_range. (chill_val_print): Remove statement "length > TYPE_LENGTH (type);". (chill_val_print): Add default case for switch. * stabsread.h: Declare stabsect_build_psymtabs. * os9kread.c (read_minimal_symbols): Make this return void. (os9k_symfile_read): Remove unused variables stb_exist and val. (os9k_symfile_init): Remove unused variable val. (fill_sym): Remove unused variable id. (read_os9k_psymtab): Put variable back_to inside #if 0. Remove unused variable nsl. Remove unused variable symfile_bfd. #if 0 unused variables lbrac_unmatched_complaint and lbrac_mismatch_complaint. Remove declaration for non-existent function os9k_next_symbol_text. * annotate.c, annotate.h: New files, containing a function for each annotation which outputs it. * Move breakpoints_changed from breakpoint.c to annotate.c. * breakpoint.c, blockframe.c, infrun.c, cp-valprint.c, main.c, printcmd.c, source.c, stack.c, utils.c, valprint.c: Use annotate.c functions to output annotations. * Makefile.in (OBS): Add annotate.o.
1994-05-13Changes for MacGDB:Stan Shebs7-40/+357
Thu May 12 17:04:58 1994 Stan Shebs (shebs@andros.cygnus.com) * mpw-make.in (INCLUDE_CFLAGS): Add readline source dir. (READLINE_CFLAGS, READLINE_SRC, READLINE_DIR): Uncomment. (TSOBS): Don't compile inflow.c. (all, install): Add MacGDB. * main.c (main): Do Mac-specific init and command loop if a standalone app, skip full option help message if compiling with MPW C. (gdb_readline): If MPW, add a newline after the (gdb) prompt. * utils.c (_initialize_utils): If MPW, don't try to use termcap to compute the window size. * config/m68k/xm-mpw.h (printf, fprintf, fputs, fputc, putc, fflush): Define as macros that expand into hacked_... versions. (StandAlone, mac_app): Declare. * macgdb.r (SIZE): Set the default partition to 4000K. * mac-xdep.c (readline.h, history.h): Include. (terminal.h): Don't include. (mac_app): Define. (gdb_has_a_terminal): Define Mac-specific version. (do_keyboard_command): Simplify search for command string. (readline): Define as gdb_readline. Add other history/readline stubs to make main gdb link. (hacked_fprintf, hacked_printf, hacked_vfprintf, hacked_fputs, hacked_fputc, hacked_fflush): New functions, intercept output to stdout and stderr, send to console window.
1994-05-12 * config/makefile.rel.in: : Add comment linesBill Cox2-2/+7
to Sanitize out CHILL references unless keep-chill was specified.
1994-05-12 * .Sanitize: Drop the gdb.t30 and gdb.t31 directoriesBill Cox3-6/+24
unless keep-chill was specified on the command line. * Makefile.in: Add comment lines to Sanitize out CHILL references unless keep-chill was specified.
1994-05-12 * hppa-tdep.c (read_unwind_info): Make sure elf_unwind_size andJeff Law2-0/+8
elf_unwind_entries are always initialized.
1994-05-12 * hppa-tdep.c (skip_trampoline_code): Handle argument relocationJeff Law2-3/+10
stubs which return directly to the caller rather than to the stub itself.
1994-05-12Wed May 11 20:11:51 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs4-19/+12
* c-exp.y (yyerror): Display a more informative error message. * ch-exp.y (yyerror): Ditto, don't use global yychar. * m2-exp.y (yyerror): Ditto.
1994-05-11Change kill-region to delete-regionJim Kingdon1-2/+2
1994-05-10Trivial change to prepare for a real oneStan Shebs2-4/+21
1994-05-10 * maint.c (print_section_table): Rename SEC_SHARED_LIBRARY toIan Lance Taylor2-2/+14
SEC_COFF_SHARED_LIBRARY to match corresponding change in bfd.
1994-05-08Remove debugging code.Jim Kingdon1-6/+0
1994-05-08Add a major mode for the breakpoints window.Jim Kingdon1-20/+56