aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2001-03-31* i386bsd-nat.c: Include "gdb_assert.h".Mark Kettenis7-384/+549
[HAVE_PT_GETDBREGS] (DBREG_DRX): Define if not already defined. [HAVE_PT_GETDBREGS] (i386bsd_dr_set, i386bsd_dr_set_control, i386bsd_dr_set_addr, i386bsd_dr_reset_addr, i386bsd_dr_get_status): New functions. * config/i386/nm-fbsd.h [HAVE_PT_GETDBREGS] (I386_USE_GENERIC_WATCHPOINTS): Define. Include "i386/nm-i386.h". (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR, I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros. (i386bsd_dr_set_control, i386bsd_dr_set_addr, i386bsd_dr_reset_addr, i386bsd_dr_get_status): New prototypes. * acconfig.h (HAVE_PT_GETDBREGS): New configure macro. * configure.in: Cleanup a few comments. Check for PT_GETDBREGS ptrace request. * config.in, configure: Regenerate.
2001-03-31* i386-nat.c (i386_insert_aligned_watchpoint): Set addressMark Kettenis2-2/+7
register before enabling it by setting the control register. (i386_remove_aligned_watchpoint): Reset address register after disabling it by setting the control register.
2001-03-31* i386-tdep.c (i386_extract_return_value): If the type of theMark Kettenis2-2/+20
return value is TYPE_STRUCT and the number of fields is one, call ourselves with TYPE set tp the type of the first field. (i386_store_return_value): Likewise. This fixes a problem with returning structs consisting of a single `float' or `double' on *BSD.
2001-03-30* lin-lwp.c (lin_lwp_resume): Don't mark LWP as not stopped untilMark Kettenis2-4/+7
we're absolutely sure we're going to resume it.
2001-03-30* thread-db.c (check_event): Don't report an error if we encounterMark Kettenis2-4/+12
a thread creation event for a thread that's already in the thread list, since that may legitemately happen. Instead only call attach_thread if it's not already in the thread list.
2001-03-28* config/pa/xm-hppah.h (malloc): Really delete declarationAndrew Cagney5-9/+12
(MALLOC_INCOMPATIBLE): Really delete macro. * cli/cli-cmds.c (apropos_command): Use xcalloc.
2001-03-28Gag -Wuninitialized warnings.Andrew Cagney11-397/+440
Add -Wuninitialized to default warning list.
2001-03-28Fix -Werror probs for ns32k.Andrew Cagney4-2/+28
2001-03-28* i386-linux-tdep.c (FRAMELESS_SIGNAL): Moved here fromMark Kettenis3-40/+53
config/i386/nm-linux.h (including comment). (i386_linux_frame_chain): New function implementing guts of the former FRAME_CHAIN macro, but using read_memory_unsigned_integer instead of read_memory_integer. (i386_linux_frame_saved_pc): Removed doc pointing to i386/tm-linux.h for an explanation of FRAMELESS_SIGNAL since that now lives in this file. * config/i386/tm-linux.h (FRAMELESS_SIGNAL): Moved to i386-linux-tdep.c (including comment). (FRAME_CHAIN): Redefined in terms of i386_linux_frame_chain. (i386_linux_frame_chain): New prototype.
2001-03-28* gdbserver/low-linux.c [I386_GNULINUX_TARGET]: Cleanup code andMark Kettenis2-27/+41
make it work again. (NUM_FREGS): Redefine to 0. (NUM_REGS): Redefine as NUM_GREGS. (i386_register_byte, i386_register_raw_size): Update from i386-tdep.c. Add comment about their origin. (regmap, register_u_addr): Take these from i386-linux-nat.c. (i386_register_u_addr): Removed.
2001-03-28* i386-linux-nat.c (i386_linux_dr_get): Return 0 if ptrace callMark Kettenis2-0/+16
fails instead of calling perror_with_name. This should fix debugging remote i386 targets with a native Linux/x86 GDB. Add FIXME for this hack.
2001-03-27* arch-utils.c (#include "gdbthread.h"): Removed.J.T. Conklin30-71/+63
(#include "symfile.h"): Removed. (XMALLOC): Removed unused macro. * breakpoint.c (tbreak_command): Removed local declaration. (awatch_command, do_enable_breakpoint, set_breakpoint_count): Remove duplicate declarations. (bpstat_should_step, bpstat_have_active_hw_watchpoints) (remove_solib_event_breakpoints): Fix indentation botch. * c-typeprint.c (#include "command.h"): Removed. (#include "gdbcmd.h"): Removed. * ch-exp.c (ch_terminal_match_float_literal, parse_expr) (parse_primval, parse_untyped_expr, parse_opt_untyped_expr): Removed duplicate declarations. * ch-typeprint.c (#include "command.h"): Removed. (#include "gdbcmd.h"): Removed. * corefile.c (#include "frame.h"): Removed (#include "symfile.h"): Removed. (#include "language.h"): Removed. * dbxread.c (#include "command.h"): Removed. * environ.c (#include "gdbcore.h"): Removed. * event-loop.c (#include "top.h"): Removed. * f-typeprint.c (#include "command.h"): Removed. (#include "gdbcmd.h"): Removed. (#include "language.h"): Removed. (#include "typeprint.h"): Removed. (#include "frame.h"): Removed. * gdbtypes.h (print_type_scalar): Removed declaration. * infcmd.c (#include "completer.h"): Removed. * language.c (#include "frame.h"): Removed. * m2-typeprint.c (#include "command.h"): Removed. (#include "gdbcmd.h"): Removed. (#include "language.h"): Removed. * m2-valprint.c (#include "valprint.h"): Removed. * p-typeprint.c (#include "command.h"): Removed. (#include "gdbcmd.h"): Removed. * p-valprint.c (#include "typeprint.h"): Removed. * parse.c (#include "linespec.h"): Removed. * regcache.c (#include "frame.h"): Removed. * remote.c (#include "frame.h"): Removed. (getpkt_sane): Make static. * source.c (#include "completer.h"): Removed. * stack.c (#include "symfile.h"): Removed. (#include "objfiles.h"): Removed. * symfile.c (#include "completer.h"): Removed. * tracepoint.c (#include "completer.h"): Removed. * values.c (#include "frame.h"): Removed. * varobj.c (#include "valprint.h"): Removed. * wrapper.c (#include "frame.h"): Removed. * memattr.c (create_mem_region): Removed unused variable. * remote-nrom.c: Removed spurious semicolon after init_nrom_ops. -------------------------------------------------------------------
2001-03-27Add missing double quoteNick Clifton2-1/+5
2001-03-27 * solib-aix5.c (build_so_lib_from_mapfile): Use xfree() insteadKevin Buettner2-1/+6
of free().
2001-03-27(Cleanups): Remove the item about converting docs to GFDL.Eli Zaretskii2-13/+4
2001-03-27 * solib-aix5.c (build_so_lib_from_mapfile): Fix xasprintf() usage.Kevin Buettner2-2/+5
2001-03-27Fix problems encountered in compiling ia64-tdep.c with IBM's compiler.Kevin Buettner2-4/+11
2001-03-27Add AIX5 procfs support.Kevin Buettner5-290/+775
2001-03-27Add new step-line test.Kevin Buettner5-1/+231
2001-03-27 * symtab.c (find_pc_sect_line): Revise method used for findingKevin Buettner2-4/+16
the ending pc.
2001-03-26* i386-linux-tdep.c (i386_linux_sigtramp_saved_pc,Mark Kettenis3-16/+38
i386_linux_sigtramp_saved_sp): Make static. (i386_linux_frame_saved_pc): New function based on the old FRAME_SAVED_PC macro, but use read_memory_unsigned_integer instead of read_memory_integer. * config/i386/tm-linux.h (sigtramp_saved_pc): Remove definition. (i386_linux_sigtramp_saved_pc): Remove prototype. (FRAME_SAVED_PC): Redefine in terms of i386_linux_frame_saved_pc. (i386_linux_frame_saved_pc): New prototype.
2001-03-26Correct/clarify credit for C++ work.Jim Blandy1-1/+9
2001-03-26Mark m88k as known to be broken.Andrew Cagney3-3/+13
2001-03-26* fork-child.c (clone_and_follow_inferior): Delete #ifdefAndrew Cagney2-4/+5
HAVE_VFORK.
2001-03-26* config/i386/tm-symmetry.h (PUSH_ARGUMENTS): #undef.Mark Kettenis2-0/+3
2001-03-26* i386-tdep.c (i386_push_arguments, i386_store_struct_return): NewMark Kettenis4-14/+47
functions. * config/i386/tm-i386.h (PUSH_ARGUMENTS): New macro. (STORE_STRUCT_RETURN): Redefine in terms of i386_store_struct_return. (i386_push_arguments, i386_store_struct_return): New prototypes. * config/i386/tm-i386v.h (STORE_STRUCT_RETURN): Remove. It's definition was identical to the definition in "i386/tm-i386.h" so the new definition should suffice too.
2001-03-26 * gdbint.texinfo: Change Permissions to GFDL. Update Copyright.Eli Zaretskii7-253/+245
* gdbgui.texinfo: Change Permissions to GFDL. Update Copyright. Replace "GDB" with "@value{GDBN}". Fix markup. * annotate.texi: Change Permissions to GFDL. Update Copyright. * gdb.texinfo: Change Permissions to GFDL. Update Copyright. * gdbmi.texinfo: Update copyright. Change Permissions to GFDL.
2001-03-26 * event-loop.c (toplevel) [!HAVE_POLL] [NO_FD_SET]: Remove unusedEli Zaretskii2-46/+3
definitions for SELECT, NBBY, FD_SETSIZE, NFDBITS, and MASK_SIZE.
2001-03-26 * gdb.texinfo (Output Formats): Mention "info symbol" and provideEli Zaretskii2-0/+26
a cross-reference to its description. (Symbols): Document "info symbol".
2001-03-26Fix the date of the last entry.Eli Zaretskii1-1/+1
2001-03-26 * config/djgpp/djconfig.sh: Add copyright notice.Eli Zaretskii4-50/+99
* ser-go32.c (rawclock): Remove prototype; include time.h instead. (ISR, dos_hookirq, isr_t): Convert K&R definition to ANSI C. (top level) <string.h>: Include gdb_string.h instead. (dos_noop, dos_raw, dos_noflush_set_tty_state) (dos_print_tty_state, dos_info): Remove ATTRIBUTE_UNUSED. * go32-nat.c (go32_create_inferior): Move the declaration of `environ' to here from the top level. (top level) <_initialize_go32_nat>: Remove redundant prototype. <gdb_string.h>: Include it instead of string.h. (store_register): Call register_buffer instead of accessing registers[] directly. (redir_cmdline_delete, redir_cmdline_parse, redir_to_debugger) (redir_to_debugger, redir_debug_init) [__DJGPP_MINOR__ < 3]: Put the function names at the start of the line. (go32_set_dr): Throw internal_error if the argument is not a valid debug register number. (go32_open, go32_close, go32_attach, go32_detach, go32_resume) (go32_wait, go32_xfer_memory, go32_files_info) (go32_terminal_info): Remove ATTRIBUTE_UNUSED.
2001-03-26*** empty log message ***Jim Blandy1-0/+4
2001-03-26* mips-tdep.c (mips_gdbarch_init): Tweak indentation.Jim Blandy1-1/+1
2001-03-262001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni2-2/+17
From Andrew Cagney <ac131313@redhat.com> * coffread.c: Include "gdb_assert.h". (coff_symtab_read): Cast the integer s_sclass to a long before casting it to a pointer.
2001-03-262001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni3-2/+14
From Andrew Cagney <ac131313@redhat.com> * coffread.c (coff_symtab_read): Initialize ``fcn_first_line_addr''. Check that the ``.bf'' always preceeds the ``.ef'' info. * dbxread.c (find_text_range): Initialize ``start'' and ``end''.
2001-03-24Revert previous change, committed to trunk accidentally.Jim Blandy1-5/+5
2001-03-24A single-file branch to help me keep things straight while adaptingJim Blandy1-5/+5
GDB to the GNU V3 C++ ABI. * c-typeprint.c: Commit Dan Berlin's changes.
2001-03-24* config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Down grade toAndrew Cagney6-7/+103
GDB_MULTI_ARCH_PARTIAL from two. SOFTWARE_SINGLE_STEP is not multi-arch. * gdbarch.sh (SOFTWARE_SINGLE_STEP): Add. * gdbarch.h, gdbarch.c: Re-generate. * target.h (SOFTWARE_SINGLE_STEP_P) (SOFTWARE_SINGLE_STEP): Delete macro definitions.
2001-03-24Re-vamp the register code so that a lot more is routed throughAndrew Cagney7-86/+263
{read,write}_register_gen. Hook that function with multi-arch.
2001-03-24* stabsread.c (read_cpp_abbrev): Properly construct the names ofJim Blandy2-1/+11
virtual function table pointer fields.
2001-03-23* defs.h (xfree, mcalloc, mmalloc, mrealloc, mfree, xmmalloc,Andrew Cagney3-72/+102
xmrealloc): Move existing declarations to the one place and re-order to be consistent. (xmcalloc, xmfree): Declare. (xmmalloc, xmrealoc): Assume ISO-C - use size_t and void* in declaration. * utils.c (size_t): Delete #ifdef defining size_t. (mmalloc, mrealloc, mcalloc, mfree): Re-order. (mmalloc, mrealloc, mcalloc): Document as only calls in GDB corresponding malloc, realloc, calloc. (mfree): Call free directly. (xmmalloc, xmrealloc): Clean up. Assume ISO-C. (xmcalloc, xmfree): New functions. Copy old xcalloc and xfree function bodies to here. (xcalloc, xfree): Call xmcalloc and xmfree respectfully.
2001-03-23Fix -Werror -Wuninitialized warnings.Andrew Cagney4-5/+25
2001-03-23* config/i386/nm-i386.h: Fix formatting and change reference toMark Kettenis2-24/+27
i386-tdep.c to i386-nat.c.
2001-03-232001-03-23 David Smith <dsmith@redhat.com>David Smith3-390/+384
* configure.in: Corrected spelling errors. * configure: Regenerated.
2001-03-23Update list of obsolete targets.Andrew Cagney2-1/+12
2001-03-23Obsolete stuff.c and kdb-start.c.Andrew Cagney5-221/+224
2001-03-23* config/pa/xm-hppah.h (HPPA_COMPILER_BUG): Delete. GDB onlyAndrew Cagney3-34/+8
compiles using an ISO-C compiler. (MALLOC_INCOMPATIBLE): Ditto. * linespec.c (decode_line_1): Delete hack to work around HPPA_COMPILER_BUG.
2001-03-22-Wuninitialized fixes.Andrew Cagney3-1/+7
2001-03-22Cleanup remote protocol section. Add notes on ``!'', ``q'' and theAndrew Cagney2-27/+58
non-use of the continue address.
2001-03-22 * config/i386/nm-go32.h <top level>: Don't include nm-i386v.h,Eli Zaretskii4-446/+67
include nm-i386.h instead. (TARGET_HAS_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT) (TARGET_CAN_USE_HARDWARE_WATCHPOINT, STOPPED_BY_WATCHPOINT) (TARGET_REGION_OK_FOR_HW_WATCHPOINT, DECR_PC_AFTER_HW_BREAK) (target_stopped_data_address, target_insert_watchpoint) (target_remove_watchpoint, target_insert_hw_breakpoint) (target_remove_hw_breakpoint): Don't define. (I386_USE_GENERIC_WATCHPOINTS, I386_DR_LOW_SET_CONTROL) (I386_DR_LOW_SET_ADDR, I386_DR_LOW_RESET_ADDR) (I386_DR_LOW_GET_STATUS): Define to call appropriate go32_* functions from go32-nat.c. * config/i386/go32.mh (NATDEPFILES): Add i386-nat.o. * go32-nat.c <top level>: Remove prototypes for watchpoint- related functions. Remove definitions of watchpoint-related macros. (go32_mourn_inferior): Call i386_cleanup_dregs instead of the private cleanup_dregs function. (cleanup_dregs, go32_insert_watchpoint) (go32_insert_aligned_watchpoint, go32_handle_nonaligned_watchpoint) (go32_remove_watchpoint, go32_remove_aligned_watchpoint) (go32_region_ok_for_watchpoint, go32_stopped_by_watchpoint) (go32_remove_hw_breakpoint, go32_insert_hw_breakpoint): Remove. (go32_set_dr, go32_set_dr7, go32_get_dr6): New functions.