aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
1995-07-20 From Richard Earnshaw (rearnsha@armltd.co.uk):Stan Shebs2-22/+44
* infrun.c (wait_for_inferior): Set the convenience variable $_exitcode to the termination code of the inferior. * top.c (quit_command): Accept optional expression to use as parameter to exit().
1995-07-19 * remote.c (remote_wait): When getting registers, check endianess andKung Hsu1-1/+5
do conversion if necessary.
1995-07-18 * gdbserver/low-hppabsd.c: New file.Jeff Law3-2/+10
* gdbserver/Makefile.in (SFILES): Add low-hppabsd.c. * config/hppabsd.mh (XDEPFILES): Add ser-tcp.o (GDBSERVER_DEPFILES): Add low-hppabsd.o * config/hppaosf.mh: LIkewise. Needed this for the gdbserver framework development. Trying to avoid doing development work on lynx for the obvious reasons.
1995-07-18 * gdbserver/low-hppabsd.c: New file.Jeff Law3-0/+386
* gdbserver/Makefile.in (SFILES): Add low-hppabsd.c. * config/hppabsd.mh (XDEPFILES): Add ser-tcp.o (GDBSERVER_DEPFILES): Add low-hppabsd.o * config/hppaosf.mh: LIkewise. Needed this for the gdbserver framework development. Trying to avoid doing development work on lynx for the obvious reasons.
1995-07-18 * dache.c (struct dcache_block): Change data member from unsigned charFred Fish15-26/+178
to char, since everything passed in and out of dcache is char or casted to appropriate type anyway. (dcache_alloc): Move assignment of db out of test and combine separate tests into if-else. (dcache_peek_byte): Change ptr from unsigned char* to char*. (dcache_peek_byte): Remove now unnecessary cast in read_memory call. (dcache_peek): Change cast of incoming data arg. (dcache_poke): Change cast of addr of incoming data arg. (dcache_info): Mask data passed to printf_filtered to lsbyte only. (dcache_info): Change printf_filtered arg from "% 2x" to " %2x". * target.c (debug_to_thread_alive): Change return type to int and return zero, for type compatibility with other *_thread_alive funcs. (cleanup_target): Change cast of ignore function to match type of the to_thread_alive member. * defs.h (error_hook): Add ATTR_NORETURN. * defs.h (NORETURN, ATTR_NORETURN): Switch from volatile to __attribute__ method with gcc 2.7, to avoid gcc 2.6.3 bug. * remote.c (remote_wait): Cast first arg to strtol, strchr, and strncmp to "const char *" from "unsigned char *". (remote_wait): Cast arg to putpkt and strcpy from "unsigned char *" to "char *". (remote_wait): Change printf format for long arg from "%d" to "%ld". (getpkt): Remove unused variable "bp". (remote_fetch_word, remote_store_word): Ifdef out apparently unused functions. * breakpoint.c (watchpoint_check): Removed unused variables "saved_level" and "saved_frame". * valops.c (value_arg_coerce): Add other enum TYPE_CODE_* and default cases to switch for completeness. * infrun.c (wait_for_inferior): Enclose "have_waited" label in #ifdef that matches the one in which it is referenced. * ser-unix.c (hardwire_noflush_set_tty_state): Enclose otherwise unused variable "state" in #ifdef that matches one in which it is referenced. * eval.c (evaluate_subexp_standard): Remove unused variable "var". * eval.c (evaluate_subexp_standard): Remove unused variable "tmp_symbol". * valarith.c (value_subscript): Remove unused variable "lowerbound", which is redeclared in a nested scope prior to use. * printcmd.c (print_frame_nameless_args): Use "%ld" to print long arg, not "%d". * {mem-break.c, remote-pa.c, remote.c, saber.suppress}: Remove unused static var "check_break_insn_size". * buildsym.c (finish_block): Add other enum LOC_* and default cases to switch for completeness. ch-lang.c (type_lower_upper): Removed unused label "retry". Add other enum TYPE_* and default cases to switch for completeness. * f-typeprint.c (f_type_print_args): Ifdef out unused function that may be used someday when Fortran support is complete. * ch-valprint.c (chill_print_type_scalar): Add other enum TYPE_* and default cases to switch for completeness. (chill_val_print): Remove unused local var "high_bound" that is redeclared in a nested scope prior to use. (chill_var_print): Use "%ld" to print long arg, not "%d". * regex.c (re_compile_fastmap, re_match_2): Add remaining enum types and default to switches for completeness. * minsyms.c (lookup_minimal_symbol_text): Delete unused variable "trampoline_symbol". (prim_record_minimal_symbol_and_info): Return NULL rather than trash. * elfread.c (elf_symtab_read): Don't dereference NULL returns from record_minimal_symbol_and_info. * f-lang.c (saved_function_list_end): Ifdef out unused variable that may be used someday. * f-valprint.c (f_val_print): Remove unused local variable "straddr".
1995-07-17 * stabsread.h (struct stab_section_list): Define.Ian Lance Taylor4-9/+61
(coffstab_build_psymtabs): Remove staboff and stabsize parameters. Add textaddr, textsize, and stabs parameters. * gdb-stabs.h (struct dbx_symfile_info): Remove text_sect field. Add text_addr and text_size fields. (DBX_TEXT_SECT): Don't define. (DBX_TEXT_ADDR, DBX_TEXT_SIZE): Define. * coffread.c: Include <ctype.h>. (struct coff_symfile_info): Remove stabsect and stabindexsect fields. Add textaddr, textsize, and stabsects fields. (coff_locate_sections): Record the address of the .text section, and total the sizes of all sections with names beginning with ".text". Don't bother to record a .stab.index section (COFF doesn't use them). Make a linked list of all sections with names beginning with ".stab". (coff_symfile_read): Adjust call to coffstab_build_psymtabs for new parameters. * dbxread.c (dbx_symfile_read): Use DBX_TEXT_ADDR and DBX_TEXT_SIZE, rather than getting both from DBX_TEXT_SECT. (dbx_symfile_init): Set DBX_TEXT_ADDR and DBX_TEXT_SIZE, not DBX_TEXT_SECT. (elfstab_build_psymtabs): Likewise. (stabsect_build_psymtabs): Likewise. (symbuf_sections, symbuf_left, symbuf_read): New static variables. (fill_symbuf): If symbuf_sections is not NULL, read symbols from multiple sections. (coffstab_build_psymtabs): Remove staboffset and stabsize parameters. Add textaddr, textsize, and stabsects parameters. Set DBX_TEXT_ADDR and DBX_TEXT_SIZE, not DBX_TEXT_SECT. Handle multiple stabs sections. * os9kread.c (os9k_symfile_read): Use DBX_TEXT_ADDR and DBX_TEXT_SIZE, rather than getting both from DBX_TEXT_SECT. (os9k_symfile_init): Set DBX_TEXT_ADDR and DBX_TEXT_SIZE, not DBX_TEXT_SECT. PR 7241.
1995-07-17 * remote-vx.c (vx_ops, vx_run_ops): Initialize new to_thread_aliveIan Lance Taylor2-1/+7
field.
1995-07-17 * gdb.base/a1-selftest.exp: Fix unmatched quotes in many timeoutJeff Law1-5/+5
cases.
1995-07-15 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: New filesPeter Schauer1-0/+2
for OSF/1-3.x procfs support.
1995-07-15 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: New filesPeter Schauer4-3/+15
for OSF/1-3.x procfs support. * configure.in (alpha-dec-osf): Use them when configuring for OSF/1-3.x. * configure: Updated. * target.c: Include <string.h>.
1995-07-14* Makefile.in, configure.in: Use one variable, frags, to holdJ.T. Conklin3-34/+39
pathnames of makefile fragments. * configure: regenerated.
1995-07-14 * procfs.c (procfs_ops): Fix typo in last change.Jeff Law2-1/+5
1995-07-13 * inftarg.c (child_thread_alive): New function to see if aJeff Law17-36/+635
particular thread is still running. (child_ops): Add child_thread_alive entry. * remote.c (remote_thread_alive): New function to see if a particular thread is still alive. (remote_ops): Add remote_thread_alive. * target.c (dummy_target): Add dummy entry for thread_alive. (cleanup_target): de_fault thread_alive too. (update_current_target): INHERIT thread_alive too. (debug_to_thread_alive): New function. (setup_target_debug): Add debug_to_thread_alive. * target.h (struct target_ops): Add to_thread_alive. (target_thread_alive): Define. * thread.c (info_threads_command): Don't call kill; use target_thread_alive instead. * config/nm-lynx.h (CHILD_THREAD_ALIVE): Define. * gdbserver/low-lynx.c (mythread_alive): New function. (mywait): Don't restart any threads after a new thread notification, let the generic code handle it. * gdbserver/low-sparc.c (mythread_alive): Dummy version. * gdbserver/low-sun3.c (mythread_alive): Likewise. * gdbserver/server.c (main): Handle thread_alive requests. * gdbserver/server.h (mythread_alive): Declare. * corelow.c (core_ops): Add dummy entry for thread_alive. * exec.c (exec_ops): Likewise. * m3-nat.c (m3_ops): Likewise. * monitor.c (monitor_ops): Likewise. * procfs.c (procfs_ops): Likewise. * remote-arc.c (arc_ops): Likewise. * remote-array.c (array_ops): Likewise. * remote-e7000.c (e7000_ops): Likewise. * remote-es.c (es1800_ops, es1800_child_ops): Likewise. * remote-mips.c (mips_ops): Likewise. * remote-pa.c (remote_hppro_ops): Likewise. * remote-sim.c (gdbsim_ops): Likewise. * sparcl-tdep.c (sparclite_ops): Likewise. More lynx-6100 work
1995-07-12 * configure.in (configdirs): Remove gdb.chill from default listFred Fish2-1/+9
of subdirs and then add it back in only if doing a native build. The current chill compiler does not yet work in any cross build.
1995-07-12 * Revert all signal changes from Jul 6.Fred Fish2-12/+21
* gdb.base/{sigall.c signals.c}: Define away signal() and alarm() for sh-hms targets, allowing these tests to link, with no other changes. Testing is suppressed by setting "nosignals" in site.exp.
1995-07-07 * elfread.c (elf_symtab_read): Fix a bug ignoring compilerKung Hsu1-1/+1
generated internal labels ($LM...).
1995-07-07 * configure.in (signaldirs): Define and add to configdirs for allFred Fish4-1886/+34
targets except some specific ones that are known to not support signals. Also clean up formatting. * gdb.base/Makefile.in (EXECUTABLES): Remove sigall and signals. (signals, sigall): Remove rules to build. * gdb.base/{sigall.c, sigall.exp, signals.c, signals.exp}: Moved to new gdb.signals directory. * gdb.signals: New test directory. * gdb.signals/{Makefile.in, configure.in, sigall.c, sigall.exp, signals.c signals.exp}: New or moved files.
1995-07-05 * defs.h: if __GO32__ or WIN32 the directory separating symbol shouldKung Hsu1-0/+3
be '\' not '/'.
1995-07-05 * remote-nindy (nindy_wait): Use infinite timeout reading afterKung Hsu2-1/+6
esacpe character.
1995-07-04 * infrun.c (wait_for_inferior): When switching from one thread toJeff Law3-0/+125
another, save infrun's state for the old thread and load infrun's previous state for the new thread. * thread.c (struct thread_info): Add new fields for thread specific state saved/restored in infrun.c. (add_thread): Initialize new fields. (load_infrun_state): New function. (save_infrun_state): New function. * thread.h (load_infrun_state): Provide external decl. (save_infrun_state): Likewise. More single-stepping patches for lynx-6100.
1995-07-04 * infrun.c (wait_for_inferior): When we hit a breakpoint for theJeff Law3-23/+81
wrong thread, make sure to write the fixed PC value into the thread that stopped. Restart all threads after single stepping over a breakpoint for a different thread. * breakpoint.c (set_momentary_breakpoint): Make momentary breakpoints thread specific in a multi-threaded program. * lynx-nat.c (child_resume): Add some comments. Correctly choose between the single and multi-threaded step and continue ptrace calls. Some of the lynx-6100 single stepping fixes.
1995-07-01Reflect comings and goings of files.Stan Shebs4-10/+15
1995-07-01 * config/h8300/h8300.mt: Renamed from h8300hms.mt.Stan Shebs18-434/+131
* config/h8500/h8500.mt: Renamed from h8500hms.mt. * config/z8k/z8k.mt: Renamed from z8ksim.mt. * configure, configure.in: Update to reflect renamings. * remote-sim.c (sim): New command, passes commands to simulator. (simulator_command): New function. (gdbsim_ops): Clean up. * remote-sim.h (sim_do_command): Declare. * sh-tdep.c (memory_size): Remove command. * Makefile.in (SIM, SIM_OBS): New variables. (CLIBS, CDEPS): Add value of SIM. (DEPFILES): Add value of SIM_OBS * config/arm/arm.mt, config/h8300/h8300.mt, config/h8500/h8500.mt, config/sh/sh.mt, config/sparc/sp64sim.mt, config/w65/w65.mt, config/z8k/z8k.mt: Remove simulator files from TDEPFILES, define in SIM_OBS and SIM. config/sparc/sp64sim.mt (SIMFILES): Remove. * remote-z8k.c: Remove, was superseded by remote-sim.c * Makefile.in, mpw-make.in: Remove references to remote-z8k.c.
1995-06-25 * remote.c (remote_read_bytes, remote_write_bytes): Second argStan Shebs2-1/+10
should be char *, not unsigned char *. * dcache.h (memxferfunc): Ditto. * monitor.c (monitor_write_memory, monitor_read_memory_single): Ditto. (monitor_make_srec): Let compiler figure size of hextab.
1995-06-25 * gdb.base/interrupt.exp: Don't choke if $nointerrupts doesn't exist.Jeff Law1-0/+4
1995-06-25 * lynx-nat.c (child_wait): Don't restart new threads and loopJeff Law2-6/+15
to the top of child_wait; let the machine independent code in wait_for_inferior deal with new thread notifications. lynx-6100 (partial) Fixes SEGV when multi-threaded program hits a breakpoint in a new thread.
1995-06-23 * remote-nindy (nindy_load): Put in target specific load, it'sKung Hsu2-1/+46
20 times faster.
1995-06-23 * utils.c (error): Move local `args' outside conditional,Stan Shebs1-0/+4
move local `string1' inside, declare function as void if non-ANSI compiler, dereference error_hook when calling.
1995-06-23 * mac-xdep.c (stdarg.h): Don't include.Stan Shebs2-2/+4
1995-06-22 gdb.texinfo: gdb manual up to date for 95q3Victoria Mixon2-698/+966
remote.texi:
1995-06-22 * remote-nindy.c (nindy_wait): Change timeout in SERIAL_READCHAR.Kung Hsu2-2/+6
1995-06-22 * gdb.base/return.exp: Xfail `return double' test failureFred Fish1-0/+14
on at least Solaris 2.3 and handle future/past versions on a case by case basis as appropriate. Also update message to include i*86 failures.
1995-06-21Hmm.. The ChangeLog went in, but not the code....Steve Chamberlain9-464/+750
* monitor.c: Turn on caching. (monitor_printf): If a ^C was sent, don't expect to see its echo. (monitor_open): Enable caching. (monitor_resume, monitor_load): Flush cache. (monitor_xfer_memory): Call cache routine. (monitor_dump_regs): New. (monitor_fetch_registers): If monitor_dump_regs available then use it. (monitor_load): Don't ref exec_bfd if it's NULL. (monitor_load_srec): Use new monitor_make_srec calling convention. (monitor_make_srec): Rewrite to cope with two, three and four byte addresses. * remote-hms.c (hms_cmds): Initialze end-of-command delim. * dcache.h, dcache.h: Rewritten. * remote.c: Reenable caching. (getpkt): Reduce MAX_TRIES to 3. (remote_xfer_memory): Use dcache_xfer_memory. * defs.h (error_hook): New. * top.c (error_hook): New definition. * utils.c (error): Use error_hook if initialized. * sparcl-tdep.c (HAVE_SOCKETS): Don't define if GO32 or WIN32. Use HAVE_SOCKETS in place of #ifndef GO32.
1995-06-21 * hppam3-nat.c: Change HP800_THREAD_STATE to TRACE_FLAVOR andJeff Law2-7/+12
HP800_THREAD_STATE_COUNT to TRACE_FLAVOR_SIZE.
1995-06-21Wed Jun 21 05:57:56 1995 Steve Chamberlain <sac@slash.cygnus.com>Steve Chamberlain1-0/+26
* monitor.c: Turn on caching. (monitor_printf): If a ^C was sent, don't expect to see its echo. (monitor_open): Enable caching. (monitor_resume, monitor_load): Flush cache. (monitor_xfer_memory): Call cache routine. (monitor_dump_regs): New. (monitor_fetch_registers): If monitor_dump_regs available then use it. (monitor_load): Don't ref exec_bfd if it's NULL. (monitor_load_srec): Use new monitor_make_srec calling convention. (monitor_make_srec): Rewrite to cope with two, three and four byte addresses. * remote-hms.c (hms_cmds): Initialze end-of-command delim. * dcache.h, dcache.h: Rewritten. * remote.c: Reenable caching. (getpkt): Reduce MAX_TRIES to 3. (remote_xfer_memory): Use dcache_xfer_memory. * defs.h (error_hook): New. * top.c (error_hook): New definition. * utils.c (error): Use error_hook if initialized. * sparcl-tdep.c (HAVE_SOCKETS): Don't define if GO32 or WIN32. Use HAVE_SOCKETS in place of #ifndef GO32.
1995-06-21 * config/pa/tm-hppa.h (PSW_*): Define processor status word masks.Jeff Law2-0/+30
(INSTRUCTION_NULLIFIED): Allow specific targets to override. * config/pa/tm-hppao.h (INSTRUCTION_NULLIFIED): Define to work around losing mach kernel behavior.
1995-06-20 * gdb.texinfo: Update dates and versions, fix comments aboutStan Shebs2-20/+21
hardware watchpoints in future releases and about the sharedlibrary command.
1995-06-20 * monitor.c (monitor_wait): Don't use the watchdog timeoutStan Shebs3-7/+33
if its value is 0. * w89k-rom.c (w89k_open): Define to be static.
1995-06-20 * gdbtk.c: Add functions Tcl_Malloc, Tcl_Realloc, and Tcl_Free.Stu Grossman2-0/+26
1995-06-20 * gdbtk.tcl (add_breakpoint_frame): Add more fields.Stu Grossman2-8/+137
* (create_file_win create_asm_win build_framework): Create null bindings for meta keys to keep window from dropping down to insertion point when meta is pressed by itself. New bindings: Up/Down - Scroll up/down one line at a time Next/Prior - Scroll up/down one page at a time Home/End - Warp to current pc/end of file * (build_framework): Turn on breakpoint menu. * (create_command_window): Implement tab completion. Add binding for ^C to stop target.
1995-06-19 * somsolib.c (som_solib_add): Validate regexp argument.Jeff Law2-9/+48
Don't assume the first entry on dld's library list is the main program. Don't load the same library more than once and don't consider the main program a shared library. (som_solib_sharedlibrary_command): New function (_initialize_som_solib): Add "sharedlibrary" command. mentor-7135
1995-06-15 * array-rom.c: Remove, no longer used.Stan Shebs5-133/+19
* remote-hms.c (hms_open): Make static. * mpw-config.in (MacSerial.h): Copy from version in {CIncludes}, not {MPW}Interfaces:CIncludes. * ser-mac.c (mac_baud_rate_table): Fix value for 38400 baud.
1995-06-14 * ch-exp.y: Remove lots of unsupported productions and names.Per Bothner1-265/+48
Add support for IF-expressions, ORIF, ANDID, NUM, and ADDR. This makes progress for PR 5826.
1995-06-14Copyright update in tm-est.h, and minor formatting cleanup.Stu Grossman1-2/+2
Add remote-est.o to TDEPFILES in monitor.mt.
1995-06-14 * chillvars.exp, string.exp: New tests for LOWER/UPPER/LENGTHPer Bothner3-0/+23
1995-06-14 * parser-defs.h (enum precedence): Added PREC_BUILTIN_FUNCTION.Per Bothner5-32/+161
* expression.h (enum exp_opcode): Added UNOP_LOWER, UNOP_UPPER, UNUP_LENGTH. * expprint.c (dump_expression): Handle the new exp_opcodes. (print_subexp): Handle PREC_BUILTIN_FUNCTION. (print_simple_m2_func): Removed. (print_subexp): Remove support for Modula2 builtin functions. * m2-lang.c (m2_op_print_tab): Add support for builtin functions. * ch-exp.y: Parse LOWER, UPPER, and LENGTH builtins. (write_lower_upper_value): Convenience function for LOWER and UPPER. (upper_lower_argument, length_argument): Removed non-terminals. * ch-lang.c (chill_op_print_tab): Entries for UPPER, LOWER, LENGTH. (type_lower_upper): New function. Calculate LOWER/UPPER of type. (value_chill_length): New function. Calcalate LENGTH of ARRAY/STRING. (evaluate_subexp_chill): Handle UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH. This fixes PR 5015 (and 5826 which is a duplicate).
1995-06-12 Windows support bits from Steve Chamberlain <sac@slash.cygnus.com>.Stan Shebs2-8/+21
* defs.h: Don't declare strchr and friends if WIN32. (DIRNAME_SEPARATOR): Move here from source.c. (SLASH_P, SLASH_CHAR, SLASH_STRING, ROOTED_P): New macros, symbolic definitions for filename bits. * top.c (cd_command): Use these. * source.c (mod_path, openp): Ditto. * terminal.h: Disable termio/sgtty definitions if WIN32. * findvar.c (registers_changed): Call registers_changed_hook if it is defined.
1995-06-12* Makefile.in (distclean, realclean): Remove config.cache andJ.T. Conklin1-0/+5
config.log.
1995-06-12Zap static data problem off the TODO list.Jeff Law1-3/+0
1995-06-12 * somsolib.c: Include gdb-stabs.h.Jeff Law2-5/+18
(som_solib_section_offsets): Use SECT_OFF_XXX rather than 0, 1, etc. Initialize offsets for RODATA & BSS too. Remainder of mentor-6302.