aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
1995-09-29 * defs.h (enum language): Add language_scm.Per Bothner6-3/+534
* expression.h (enum exp_code): Added OP_EXPRSTRING. * scm-lang.c: Preliminary support for Guile /SCM dialect of Scheme. * expprint.c (print_subexp): Add OP_EXPRSTRING support. * parse.c (length_of_subexp, prefixify_subexp): Likewise. * valops.c (find_function_in_inferior): New function. (value_allocate_space_in_inferior): New function. (allocate_space_in_inferior): Redefine using previous function. * Makefile.in (SFILES): Add scm-lang.c. (COMMON_OBS): Add scm-lang.o
1995-09-29Thu Sep 28 14:32:11 1995 steve chamberlain <sac@slash.cygnus.com>Steve Chamberlain18-181/+1886
* callback.[ch]: New files. * remote-rdp.c: Support for the ARM RDP monitor. * Makefile: Update. * arm-tdep.c (arm_othernames): New. (_initialize_arm_tdep): install 'othernames' command. (arm_nullified_insn, shifted_reg_val, arm_get_next_pc): New. * configure.in: Check for termios.h, termio.h and sgtty.h. (i[345]86-*-win32*): New host. * configure: Regenerated. * inflow.c: Clean up inclusions. * main.c (main): Check for WINGDB, not WIN32. * printcmd.c (do_examine): Put QUIT test in loop. * remote-hms.c (e7000_load): Delete. (hms_ops): Point to generic_load instead. * remote-hms.c (hms_ops): Point to generic_load. * remote-sim.c (sim_callback_write_stdout): Becomes gdbsim_write_stdout. (gdbsim_load): Call generic_load. * remote-utils.c (gr_load_image): Delete. * ser-unix.c (terminal.h): Include instead of havig own #if tree. (hardwire_flush_input): Reset input buffer too. * source.c (openp): If WIN32 then open file in binary mode. * terminal.h: Configure IO mechanism using autoconf defines if available and not overriden. * utils.c (quit, pollquit, notice_quit): WIN32 check becomes WINGDB check. * config/arm/arm.mt (TDEPFILES): Add remote-rdp.o * config/arm/tm-arm.h (TARGET_BYTE_ORDER): becomes TARGET_BYTE_ORDER_SELECTABLE. (ADDR_BITS_REMOVE): New. (ORIGINAL_REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): New. (INST_xx): New (FRAME_FIND_SAVED_REGS): Pass the right argument. (arm_get_next_pc): Declare. * mswin/prebuilt/*/bfdtarget.h (SELECT_ARCHITECTURES): Need leading &.
1995-09-27 * tuples.ch. tuples.exp: Add new test for setting a variant recordPer Bothner3-1/+19
using a tuple, and access the fields.
1995-09-27 * valops.c (search_struct_field): Also allow "else" as a variant name,Per Bothner2-1/+6
1995-09-27 * eval.c (evaluate_struct_tuple): New function. Used to evaluatePer Bothner2-9/+44
structure tuples. Now also handles Chill variant records. (get_label): New function, used by evaluate_struct_tuple. (evaluate_subexp_standard case OP_ARRAY): Use evaluate_struct_tuple. (evaluate_labeled_field_init): Removed. * valops.c (search_struct_field): Generalize to work with Chill variant records.
1995-09-23 * rs6000-tdep.c (push_dummy_frame): Handle lr_offset of zeroPeter Schauer2-1/+5
correctly.
1995-09-23 * mdebugread.c (parse_partial_symbols): Reset includes_usedPeter Schauer4-436/+149
and dependencies_used after finishing the partial symbol table. * rs6000-nat.c (xcoff_relocate_core): Don't relocate data addresses for the main objfile if DONT_RELOCATE_SYMFILE_OBJFILE is defined. * xcoffread.c: gcc -Wall lint. Remove traceback table reading code. The existing code tried to add parameter information for functions compiled without -g, which cannot be done properly for optimized code and produced misleading parameter displays. (ef_complaint, eb_complaint): Make a local static copy to avoid dependency on coffread.c. (read_xcoff_symtab, process_xcoff_symbol, scan_xcoff_symtab): Enter C_EXT/C_HIDEXT symbols into the minimal symbol table only. (read_xcoff_symtab): Ignore C_STAT section auxiliary entry symbols. Complain about unmatched .ef and .eb symbols instead of segfaulting. (process_xcoff_symbol): Determine value of C_GSYM symbols via the global_sym_chain mechanism in stabsread.c. (xcoff_new_init): Call stabsread_new_init and buildsym_new_init. (init_string_tab): Initialize length field bytes in the strtbl. (scan_xcoff_symtab): Skip symbols that start with `$' or `.$'. Set first_fun_line_offset for symbols with two auxents only.
1995-09-21 * gdb.disasm/sh3.s (fmac): Update for new assembler syntaxJeff Law1-0/+7
* gdb.disasm/sh3.exp (fmac): Corresponding changes.
1995-09-21 * op50-rom.c (op50n_cmds): Send ".\r" after the interruptJeff Law2-1/+6
character.
1995-09-20add maintainer-clean Makefile targetsIan Lance Taylor7-7/+33
1995-09-20Wed Sep 20 08:16:03 1995 steve chamberlain <sac@slash.cygnus.com>Steve Chamberlain1-0/+7
* defs.h (xmalloc, xrealloc): Delete, they're declared in libiberty.h. (GETENV_PROVIDED, FCLOSE_PROVIDED): New. * doc/gdbint.texinfo (GETENV_PROVIDED, FCLOSE_PROVIDED): Document. * remote-sim.[ch] (sim_callback_write_stdout): New.
1995-09-20Wed Sep 20 08:16:03 1995 steve chamberlain <sac@slash.cygnus.com>Steve Chamberlain2-4/+4
* defs.h (xmalloc, xrealloc): Delete, they're declared in libiberty.h. (GETENV_PROVIDED, FCLOSE_PROVIDED): New. * doc/gdbint.texinfo (GETENV_PROVIDED, FCLOSE_PROVIDED): Document. * remote-sim.[ch] (sim_callback_write_stdout): New.
1995-09-20Wed Sep 20 08:16:03 1995 steve chamberlain <sac@slash.cygnus.com>Steve Chamberlain3-4/+35
* defs.h (xmalloc, xrealloc): Delete, they're declared in libiberty.h. (GETENV_PROVIDED, FCLOSE_PROVIDED): New. * doc/gdbint.texinfo (GETENV_PROVIDED, FCLOSE_PROVIDED): Document. * remote-sim.[ch] (gdbsim_write_stdout): New.
1995-09-19 * gdbtypes.c (create_set_type): Set TYPE_LENGTH in bytes, not bits.Per Bothner3-7/+29
* valops.c (value_bitstring): TYPE_LENGTH is bytes, not bits. * gdbtypes.c (force_to_range_type): Calculate upper limit of TYPE_CODE_CHAR depending on TYPE_LENGTH (instead of just using 255).
1995-09-18 * somsolib.c (auto_solib_add_at_startup): Delete definition. NoJeff Law2-11/+5
longer needed.
1995-09-16 * config/mips/tm-mips.h (UNUSED_REGNUM): Define.Peter Schauer3-0/+8
* mipsv4-nat.c (supply_gregset): Fill UNUSED_REGNUM register with zero.
1995-09-15 * remote-sim.c (gdbsim_create_inferior): Back out change thatStu Grossman2-6/+5
broke all simulator configurations except the rs6000.
1995-09-14 * monitor.c (monitor_expect): Discard NULL characters.Jeff Law1-0/+4
Fixes random failures on the OKI board.
1995-09-14 * infcmd.c: Add extern declaration for auto_solib_add_at_startup.Kung Hsu1-0/+4
1995-09-14 * symfile.c: Move global variable auto_solib_add_at_startup fromKung Hsu2-2/+8
solib.c to symfile.c. * solib.c: ditto. * symfile.h: Add extern declaration of the above mentioned variable. * infcmd.c: Take out extern declaration, since it's in symfile.h.
1995-09-14 * coffread.c (coff_symtab_read): Complain about unmatched .ef andStu Grossman1-1/+6
.eb symbols instead of segfaulting.
1995-09-13 * stbsread.c (read_one_struct_field): Use subfile language instead ofKung Hsu2-1/+6
global language. Improve efficiency.
1995-09-13 * somsolib.c (auto_solib_add_at_startup): Define new global variable.Jeff Law2-1/+32
(som_solib_create_inferior_hook): Don't add libraries if auto_solib_add_at_startup is zero. (_initialize_som_solib): Add command to toggle auto_solib_add_at_startup.
1995-09-13 * monitor.c (monitor_make_srec): Fix thinkos in computationJeff Law2-23/+23
of addr_size. Critical patch from Stu.
1995-09-12 * stabsread.c: To include language.h and expression.h for the reasonKung Hsu2-0/+5
above.
1995-09-12 * stabsread.c (read_one_struct_field): Add a patch to handle cfrontKung Hsu2-1/+33
generated stabs that each field is in full mangled name.
1995-09-12 * infcmd.c (attach_command): Add solibs only whenKung Hsu2-2/+10
auto_solib_add_at_startup is set.
1995-09-12 * NEWS: Add information about remote target caching.Fred Fish2-0/+15
1995-09-11 * gdb.base/scope.exp (text_at_main): Add "hppa*-*-hpux*"Fred Fish2-0/+61
xfails when not gcc compiled for "print foo::funclocal". (test_at_foo): Add "hppa*-*-hpux*" xfails when not gcc compiled for: "print foo::funclocal at foo", "print 'scope1.c'::foo::funclocal at foo", "print foo::funclocal_bss at foo", "print 'scope1.c'::foo::funclocal_bss at foo", "print foo::funclocal_ro at foo", "print 'scope1.c'::foo::funclocal_ro at foo", "print bar::funclocal at foo" and "print 'scope1.c'::bar::funclocal at foo". (test_at_bar): Add "hppa*-*-hpux*" xfails when not gcc compiled for "print foo::funclocal at bar". Expand all messages to ensure that they identify that the test is at bar(). * gdb.base/opaque.exp: Add "hppa*-*-hpux*" xfails when not gcc compiled for: "ptype on opaque struct pointer (statically)", "ptype on opaque struct tagname (statically)", "ptype on opaque struct pointer (dynamically) 1", "ptype on opaque struct tagname (dynamically) 1", "ptype on opaque struct pointer (dynamically) 2" and "ptype on opaque struct tagname (dynamically) 2 * gdb.base/nodebug.exp: Add "hppa*-*-hpux*" xfails when not gcc compiled for: "p datalocal" "whatis datalocal", "ptype datalocal", "p bsslocal", "whatis bsslocal", and "ptype bsslocal". * gdb.base/langs.exp: Add "hppa*-*-hpux*" xfails for "backtrace in langs.exp" and "up to langs0__2do in langs.exp" when not gcc compiled. * gdb.base/funcargs.exp (float_and_integral_args): Add "hppa*-*-hpux*" xfail for "run to call2a" when not gcc compiled. (discard_and_shuffle): Add "hppa*-*-hpux*" xfail for "backtrace from call6a" when not gcc compiled. (shuffle_round_robin): Add "hppa*-*-hpux*" xfail for "backtrace from call7a" when not gcc compiled. * gdb.base/callfuncs.exp (do_function_calls): Add "hppa*-*-hpux*" xfail when not gcc compiled for "p t_char_array_values(char_array_val2,char_array_val1)", "p t_char_array_values(char_array_val1,char_array_val2)", "p t_char_array_values("carray 1","carray 2")", "p t_char_array_values("carray 1",char_array_val2)", "p t_char_array_values(char_array_val1,"carray 2")", "p sum_args(1,{2})", "p sum_args(2,{2,3})", "p sum_args(3,{2,3,4})", "p sum_args(4,{2,3,4,5})" * gdb.base/corefile.exp: Add "hppa*-*-hpux*" xfail for "backtrace in corefile.exp" when not gcc compiled.
1995-09-11 * defs.h: Only include mmalloc.h if NO_MMALLOC is notFred Fish2-0/+19
defined.
1995-09-10Sun Sep 10 10:24:48 1995 Michael Tiemann <tiemann@axon.cygnus.com>Michael Tiemann3-2/+32
* tm-ppc-eabi.h (PC_IN_CALL_DUMMY): Redefine this to work with the simulator. FIXME. * rs6000-tdep.c (push_dummy_frame): Calculate the correct link register offset from the current frame (don't assume it is always 8). (push_dummy_frame): Add comment about having only 4096 bytes of stack space in the simulator (by default). * remote-sim.c (gdbsim_create_inferior): Call `add_text_to_loadinfo' so that gdb can find TOC entries when calling functions in the inferior. With this changes, it is now possible to correctly call inferior functions in the PPC simulator.
1995-09-10 * sparc-tdep.c (fill_fpregset): Fix incorrect FP_MAX_REGNUMPeter Schauer1-0/+6
substitution. (supply_fpregset): Use FP_MAX_REGNUM.
1995-09-09 * stabsread.c (read_enum_type): Exit loop for putting pendingPeter Schauer2-1/+7
enum symbols into the enum type correctly if we had no pending symbols on entry to read_enum_type.
1995-09-09 * gdb.base/signals.exp: Rewrite `handle all print' test asPeter Schauer1-0/+7
a procedure. Accept blanks or TABs as whitespace, increase timeout and expect input buffer size for the large output from the command. Remove "i*86-*-bsdi2.0" xfail.
1995-09-09 * inferior.h: Add extern declaration of inferior_environ.Kung Hsu2-4/+10
* solib.c (solib_map_sections): To get inferior's env instead of gdb's for LD_LIBRARY_PATH, same for PATH.
1995-09-08 * solib.c (solib_map_sections): Copy full path name into so_listKung Hsu2-8/+35
structure so that symbol_file_add can find it.
1995-09-06 * config/sparc/tm-sp64.h (REGISTER_RAW_SIZE): Lower 32 fp regsDavid Edelsohn1-5/+8
have size 4. (REGISTER_VIRTUAL_SIZE): Likewise. (REGISTER_VIRTUAL_TYPE): Lower 32 fp regs have type float. Upper 32 fp regs have type double. * sparc-tdep.c (NUM_SPARC_FPREGS): Replace with (FP_REGISTER_BYTES): this, and update all uses. (FP_MAX_REGNUM): Define if not already. (get_saved_register): Handle new sparc64 fp regs. (sparc_frame_find_saved_regs): Likewise. (sparc_print_register_hook): Only print fp regs < 32 as doubles. Add code to handle long doubles when gdb does. (_initialize_sparc_tdep): Use print_insn_sparc64 if sparc64.
1995-09-02 * gdb.base/setvar.exp: Add new testcases for truncation whenPeter Schauer1-0/+5
assigning invalid values to bitfields.
1995-09-02 * configure.in: Explicitly `exit 0' for broken shells.Peter Schauer4-0/+19
* configure: Rebuilt. * symtab.c (list_symbols): Add missing blank after `<function, no debug info>' output. * valops.c (value_assign): Handle truncation when assigning to bitfields. Use value_copy to construct the return value from toval. * values.c (value_copy): Copy VALUE_FRAME and VALUE_OPTIMIZED_OUT.
1995-09-02 * gdb.base/callfuncs.exp (do_function_calls): RemoveFred Fish2-3/+10
mips-sgi-irix* xfail for "call inferior func with struct - returns char *" and fix test so that an optional (unsigned char *) cast is accepted in the result.
1995-09-01 * gdb.base/funcargs.exp (float_and_integral_args): RemoveFred Fish3-4/+10
sparc-sun-solaris2* xfail for "print f1 after run to call2a". * gdb.c++/Makefile.in (SUFFIXES): Add .SUFFIXES and ".cc" suffix. * gdb.base/signals.exp: Remove duplicate "handle all print" test that accidentally got checked in.
1995-09-01Ideally the "remote-mips.c" prompt spotting code should be updated toJackie Smith Cashion9-3/+87
spot different prompts at run-time, so as to avoid having target specific versions of gdb. This is a pending TODO. Fri Sep 1 08:25:50 1995 James G. Smith <jsmith@beauty.cygnus.com> * configure (mips64*vr4300*-*-elf): Support added. * remote-mips.c (mips_readchar): Change to allow build-time prompt string. * config/mips/tm-mips.h: Added TARGET_MONITOR_PROMPT. * config/mips/{vr4300.mt, vr4300el.mt, tm-vr4300.h, tm-vr4300el.h}: Added.
1995-08-31 * config/sh/sh.mt (SIM): Add -lm.Jim Wilson2-1/+5
1995-08-31 * rmote-nindy.c (non_dle, nidy_resume, nindy_wait): Changes toKung Hsu2-48/+56
conform to GNU coding standards.
1995-08-29 * remote.c (remote_wait): Revert 19 July my change which should beKung Hsu1-0/+5
customer specific.
1995-08-28 * gdb.base/callfuncs.exp (do_function_calls): Add alpha-dec-osf2*Fred Fish8-3/+68
clear_xfail for "p t_float_values2(3.14159,float_val2)" for gcc compiled test. * gdb.base/opaque.exp (setup_xfail_on_opaque_pointer): Add mips-sgi-irix5* xfail for not gcc compiled. * gdb.base/Makefile.in (nodebug.o): Also create nodebug.ci. * gdb.base/nodebug.exp: Add mips-sgi-irix5 xfail when not gcc compiled for "p top", "whatis top", "p middle", and "whatis middle". * gdb.base/whatis.exp: Add mips-sgi-irix* xfail for "whatis signed char" for not gcc compiled. * gdb.base/setvar.exp: Add mips-sgi-irix4* xfail (works on irix5) for "set variable signed char=-1 (-1)" and "set variable signed char=0xFF (0xFF)" for not gcc compiled. * gdb.base/funcargs.exp (float_and_integral_args): Add mips-sgi-irix5* xfail for "run to call2a" for not gcc compiled. Add mips-sgi-irix* xfail when not gcc compiled for "continue to call2b". Add mips-sgi-irix4* xfail (works with irix5) when gcc compiled for "continue to call2g". (discard_and_shuffle): Add mips-sgi-irix5* xfail whn not gcc compiled for "backtrace from call6a" (shuffle_round_robin): Add mips-sgi-irix* xfail when not gcc compiled for "backtrace from call7k". Add mips-sgi-irix5* xfail when not gcc compiled for "backtrace from call7a". (localvars_after_alloca): Fix gdb_test cmds for "print * after runto ...". Remove rs6000-*-* xfails for "print i after runto localvars_after_alloca" and "print l after runto localvars_after_alloca" for all compilers. * gdb.base/exprs.exp: Add mips-sgi-irix4* xfails (works with irix5), when not compiled with gcc, for: "print signed char == (minus)", "print signed char != (minus)", "print signed char < (minus)", "print signed char > (minus)". * gdb.base/callfuncs.exp (do_function_calls): Add mips-sgi-irix* xfail, when compiled with native compiler, for "call inferior func with struct - returns char *". * gdb.base/return.exp (return_tests): Change xfail for "correct value returned double test" to include Solaris 2.4. * gdb.base/funcargs.exp (float_and_integral_args): Add sparc-sun-solaris2* xfail for "print f1 after run to call2a".
1995-08-26 * gdb.base/setvar.c, gdb.base/setvar.exp: Add new tests forPeter Schauer2-95/+62
enumeration bitfields if compiling with GNU C. * lib/gdb.exp: Consume `(y or n) ' in `Reinitialize source path to empty' prompt.
1995-08-26 * mdebugread.c (parse_symbol): Handle sh.value of zero for enums.Peter Schauer5-17/+142
Determine signedness of enum type from enumerators. (parse_type): Handle btIndirect types, handle fBitfield for some non-member types. (upgrade_type): Use TYPE_FLAG_TARGET_STUB for arrays with unknown length. (cross_ref): Handle stIndirect forward reference to btTypedef. * stabsread.c (read_enum_type): Determine signedness of enum type from enumerators. * top.c (execute_command): Remove trailing whitespace from command arguments, except for `set' and `complete' commands. (validate_comname): Allow underscores in user defined command names. * values.c (modify_field): Change `Value does not fit in %d bits' error to a warning. Exclude sign extension bits of negative field values from fit check.
1995-08-25Only build PowerPC simulator if target is powerpc*-*-eabisimMichael Meissner8-36/+102
1995-08-23Link in PowerPC simulator.Michael Meissner3-0/+14