aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
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
1994-05-08Fix typo in gdb-goto-first-gdb-instance.Jim Kingdon1-23/+26
Re-write gdb-look-for-tagged-buffer to avoid recursion (I was getting errors because of too much nesting, obviously elisp lacks tail recursion optimization) Fix toggle-bp-this-line for new ways of communicating with gdb and rename to gdb-toggle-bp-this-line.
1994-05-06Fri May 6 13:30:22 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs1-1/+1
* Makefile.in (kdb): Remove old init.c creation commands. * configure.in (sparclite): Match on sparclite*. * sparclite/aload.c (main): Only change section addresses for a.out format object files.
1994-05-06 * config/i386/go32.mh: Define CC.Steve Chamberlain1-0/+4
1994-05-06Fri May 6 11:56:54 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs4-2/+313
* gdbserver/Makefile.in: Remove irrelevant definitions and comments inherited from the gdb Makefile. (BFD_DIR, BFD, BFD_SRC, BFD_CFLAGS): Add from gdb Makefile. (VERSION): Update to 4.12.3. (gdbserver): Remove any existing executable first. (distclean, realclean): Remove nm.h. * gdbserver/low-lynx.c: Add Sparc Lynx support. * gdbserver/low-sparc.c, gdbserver/low-sun3.c (sys/wait.h): Don't use absolute pathname.
1994-05-06Thu May 5 20:23:36 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs2-0/+19
* stabs.texinfo (Stab Section Basics): Add comment about alignment of stabs-in-coff sections.
1994-05-05Thu May 5 12:00:22 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs1-6/+8
* rs6000-nat.c (vmap_ldinfo): Don't fail if fstat returns an error.
1994-05-05 * infrun.c (proceed, normal_stop, wait_for_inferior), breakpoint.cJim Kingdon1-0/+10
(print_it_normal): Add annotations for the inferior starting and stopping, and for all the various messages related to how it stopped. * printcmd.c (do_one_display): Annotate. * stack.c (print_frame_info): Annotate printing of stack frames.
1994-05-05 * annotate.texi: Change edition to 0.5 and date to May 1994.Jim Kingdon2-3/+295
Add index. (Frames): New node, for frame annotation. (Displays): New node, for display annotation.
1994-05-05 * remote.c (get_offsets): Handle case where stub doesn't supportStu Grossman1-0/+5
qOffsets message.
1994-05-05 Add partial support for g++ code compiled with -fvtable-thunks.Per Bothner5-24/+75
* c-valprint.c (c_val_print): Add vtblprint support when using thunks. * cp-valprint.c (cp_is_vtbl_member): A vtable can be an array of pointers (if using thunks) as well as array of structs (otherwise). * cp-valprint.c (vtbl_ptr_name_old, vtbl_ptr_name): Move to global level, and make the latter non-static (so define_symbol can use it). * stabsread.c (define_symbol): If the type being defined is a pointer type named "__vtbl_ptr_type", set the TYPE_NAME to that name. * symtab.h (VTBL_PREFIX_P): Allow "_VT" as well as "_vt". * values.c (value_virtual_fn_field): Handle thunks. * values.c (value_headof): Minor efficiency hack. * values.c (value_headof): Incomplete thunk support. FIXME.
1994-05-04 * valprint.c (print_longest): Clarify comment about use_local.Jim Kingdon9-44/+78
* printcmd.c, defs.h (print_address_numeric), callers in symmisc.c, symfile.c, stack.c, source.c, remote.c, infcmd.c, cp-valprint.c, core.c, ch-valprint.c, c-valprint.c, breakpoint.c, exec.c: New argument use_local. * source.c (identify_source_line): Use filtered output. Use print_address_numeric.
1994-05-04 * core.c (memory_error), symtab.c (cplusplus_hint, decode_line_1),Jim Kingdon3-10/+15
language.c (type_error, range_error): Use filtered output. * utils.c (error_begin): Update comment to tell people to use filtered output.