Andrew Cagney
c0e61796d0
* defs.h (xfree, mcalloc, mmalloc, mrealloc, mfree, xmmalloc,
...
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-23 23:39:57 +00:00
Nick Clifton
c20ec07b9a
Support the GCC flags '-ffunction-sections' and '-fdata-sections'.
...
Set the VMA of STABS sections to zero.
2001-03-23 23:05:07 +00:00
Andrew Cagney
c65ecaf37b
Fix -Werror -Wuninitialized warnings.
2001-03-23 22:48:44 +00:00
Nick Clifton
c3a27914b8
Document --listing-XXX command line switches.
...
Explain why listings behave differently when -pipe is used.
2001-03-23 19:35:02 +00:00
Nick Clifton
37006e4391
fix_new_exp: Print an error if passed a register.
2001-03-23 18:15:49 +00:00
Nick Clifton
d4fc7db892
Add note about inability to use "make distclean" in maintainer mode.
2001-03-23 18:06:17 +00:00
Nick Clifton
55c80943b8
Fix building bfd.pot in maintainer mode
2001-03-23 18:05:30 +00:00
Mark Kettenis
207e433e1d
* config/i386/nm-i386.h: Fix formatting and change reference to
...
i386-tdep.c to i386-nat.c.
2001-03-23 16:17:45 +00:00
David Smith
6c5cfe5b67
2001-03-23 David Smith <dsmith@redhat.com>
...
* configure.in: Corrected spelling errors.
* configure: Regenerated.
2001-03-23 16:05:29 +00:00
Hans-Peter Nilsson
5ef6758f8a
* gas/cris/pic-err-1.s, gas/cris/rd-pic-1.s, gas/cris/rd-pic-1.d:
...
New tests.
2001-03-23 05:58:38 +00:00
Hans-Peter Nilsson
7704145c73
* gas/cris/branch-warn-1.s, gas/cris/branch-warn-2.s,
...
gas/cris/branch-warn-3.s: Tweak for fixed FIXME:s.
2001-03-23 05:39:38 +00:00
Hans-Peter Nilsson
08caf3f870
* config/tc-cris.[ch]: Tweak attribution. Fix typos. PIC support.
2001-03-23 05:27:42 +00:00
Andrew Cagney
5300940c68
Update list of obsolete targets.
2001-03-23 01:14:10 +00:00
Andrew Cagney
17e78a56e2
Obsolete stuff.c and kdb-start.c.
2001-03-23 00:58:48 +00:00
Andrew Cagney
41899c0412
* config/pa/xm-hppah.h (HPPA_COMPILER_BUG): Delete. GDB only
...
compiles using an ISO-C compiler.
(MALLOC_INCOMPATIBLE): Ditto.
* linespec.c (decode_line_1): Delete hack to work around
HPPA_COMPILER_BUG.
2001-03-23 00:41:02 +00:00
Andrew Cagney
8866554466
-Wuninitialized fixes.
2001-03-22 23:58:37 +00:00
Alexandre Oliva
7389ff65de
Re-installed:
...
2001-01-02 Laurynas Biveinis <lauras@softhome.net>
* ltcf-c.sh: Clear ac_cv_prog_cc_pic for DJGPP. Do not add
'-DPIC' to ac_cv_prog_cc_pic for DJGPP.
* ltcf-cxx.sh: Likewise.
* ltcf-gcj.sh: Likewise.
2001-03-22 18:17:54 +00:00
Hans-Peter Nilsson
7ccb52381a
* cris.h (ADD_PC_INCR_OPCODE): New macro.
2001-03-22 16:09:20 +00:00
Jim Blandy
a88e356aab
* cp-demangle.c (string_list_delete): Don't forget to free the
...
actual contents of the string.
2001-03-22 15:16:04 +00:00
Andrew Cagney
a2061976f9
Cleanup remote protocol section. Add notes on `!'',
`q'' and the
...
non-use of the continue address.
2001-03-22 14:59:09 +00:00
Hans-Peter Nilsson
915e51468a
* elf32-cris.c: Shlib and PIC support. PCREL tweaks.
2001-03-22 14:56:06 +00:00
Hans-Peter Nilsson
e079041e2f
* cris.h: Add leading comment about PC-relative location.
...
(R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL):
New relocs.
2001-03-22 13:03:58 +00:00
Hans-Peter Nilsson
58d29fc398
* reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
...
BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
* bfd-in2.h, libbfd.h: Regenerate.
2001-03-22 11:17:16 +00:00
Phil Blundell
b3e0dc8ed7
2001-03-22 Philip Blundell <philb@gnu.org>
...
* config.sub, config.guess: Import latest from subversions.
2001-03-22 11:09:20 +00:00
Eli Zaretskii
e24d4c64ff
* config/i386/nm-go32.h <top level>: Don't include nm-i386v.h,
...
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.
2001-03-22 09:35:19 +00:00
Alexandre Oliva
469b781cfb
* ltconfig, ltmain.sh, libtool.m4, ltcf-c.sh, ltcf-cxx.sh,
...
ltcf-gcj.sh: Upgraded to libtool 1.4a 1.641.2.198.
2001-03-22 05:22:04 +00:00
Ben Elliston
fca2040b45
2001-03-22 Ben Elliston <bje@redhat.com>
...
* cgen-asm.in (@arch@_cgen_assemble_insn): Move tmp_errmsg
declaration inside CGEN_VERBOSE_ASSEMBLER_ERRORS conditional.
* cgen-ibld.in (put_insn_int_value): Mark cd parameter as unused
to allay a compiler warning.
2001-03-22 04:05:03 +00:00
Kazu Hirata
361bfa20e5
2001-03-21 Kazu Hirata <kazu@hxi.com>
...
* h8300.h: Fix formatting.
2001-03-22 02:51:19 +00:00
Alan Modra
87890af05c
paddq and psubq support.
2001-03-22 02:27:54 +00:00
Kevin Buettner
c26e1c2b79
* ia64-tdep.c (fetch_instruction): Warn about slot numbers greater
...
than two instead of generating an error.
2001-03-22 02:11:11 +00:00
Jim Blandy
272ba48f53
*** empty log message ***
2001-03-22 01:01:05 +00:00
Jim Blandy
2c63a96028
* cp-valprint.c: Bring formatting into line with GNU coding standards.
2001-03-22 00:58:00 +00:00
Diego Novillo
7a65545dc5
2001-03-21 Diego Novillo <dnovillo@redhat.com>
...
(_bfd_mips_elf_relocate_section): Give a better error message when
a relocation is not recognized.
2001-03-22 00:29:15 +00:00
Mark Kettenis
84346e11ea
Make Linux use the new unified support for hardware breakpoints
...
and watchpoints on x86 targets.
* i386-linux-nat.c: Doc fixes. Include "gdb_assert.h".
[HAVE_SYS_DEBUGREG_H]: Include <sys/debugreg.h>.
(DR_FIRSTADDR, DR_LASTADDR, DR_STATUS, DR_CONTROL): Define to
appropriate value if not already defined.
(register_u_addr): New function.
(kernel_u_size): New function.
(i386_linux_dr_get, i386_linux_dr_set): New functions.
(i386_linux_dr_set_control, i386_linux_dr_set_addr,
i386_linux_reset_addr, i386_linux_dr_get_status): New functions.
* config/i386/nm-linux.h: Don't include "nm-i386v.h".
(I386_USE_GENERIC_WATCHPOINTS): Define and include "nm-i386.h".
(TARGET_HAS_HARDWARE_WATCHPOINTS,
TARGET_CAN_USE_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT,
STOPPED_BY_WATCHPOINT, target_insert_watchpoint,
target_remove_watchpoint): Remove macros.
(i386_stopped_by_watchpoint, i386_insert_watchpoint,
i386_remove_watchpoint): Remove prototypes.
(register_u_addr): New prototype.
(REGISTER_U_ADDR): Define in terms of register_u_addr.
(i386_linux_dr_set_control, i386_linux_dr_set_addr,
i386_linux_reset_addr, i386_linux_dr_get_status): New prototypes.
(I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
* config/i386/linux.mh (NATDEPFILES): Replace i386v-nat.o with
i386-nat.o.
2001-03-21 21:22:49 +00:00
Jim Blandy
13b5765709
* gdb/linespec.c (find_methods): Whitespace differences aren't
...
significant in *un*mangled method names. Use strcmp_iw to compare
them, not STREQ. (Fix from Daniel Berlin.)
* gdb/testsuite/gdb.c++/userdef.exp: Check that GDB tolerates whitespace in
unmangled operator names.
2001-03-21 20:51:16 +00:00
DJ Delorie
1dffcc6638
merge from gcc
2001-03-21 20:12:30 +00:00
Andrew Cagney
eee30e78fd
* gdbarch.sh: Allow a non- multi-arch target to override a
...
predicate.
* gdbarch.h: Regenerate.
2001-03-21 19:47:44 +00:00
Andrew Cagney
b77be6cfae
Avoid use of ``if ! program''.
2001-03-21 19:25:03 +00:00
Andrew Cagney
379d08a1d4
* target.h (enum target_signal): Move definition from here.
...
* defs.h (enum target_signal): To here.
* config/arc/tm-arc.h (arc_software_single_step): Change type of
first parameter to enum target_signal.
* config/rs6000/tm-rs6000.h (rs6000_software_single_step): Ditto.
* config/sparc/tm-sparc.h (sparc_software_single_step): Ditto.
* rs6000-tdep.c (rs6000_software_single_step): Update.
2001-03-21 18:31:48 +00:00
Michael Chastain
b0dad76219
2001-03-20 Michael Chastain <chastain@redhat.com>
...
* Makefile.in: all-m4 depends on all-texinfo.
2001-03-21 17:53:42 +00:00
Andrew Cagney
64485362e8
* frame.h (SIZEOF_FRAME_SAVED_REGS): Report an error if macro
...
already defined.
From 2000-08-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
* stabsread.c (define_symbol): A parameter ('R'), a local ('r'),
or a reference ('a') can be in a pseudo register.
* infcmd.c (do_registers_info): Must take into account the pseudo
registers to print their value.
(registers_info): Likewise.
* stack.c (frame_info): Likewise.
* frame.h (SIZEOF_FRAME_SAVED_REGS): Save the pseudo registers.
2001-03-21 16:42:39 +00:00
Eli Zaretskii
9742079a31
* gdbint.texinfo (Algorithms): New section "Watchpoints" and new
...
subsection "x86 Watchpoints".
(Target Architecture Definition): Document
I386_USE_GENERIC_WATCHPOINTS and TARGET_HAS_HARDWARE_WATCHPOINTS.
(Native Debugging): Document I386_USE_GENERIC_WATCHPOINTS.
2001-03-21 11:39:23 +00:00
Eli Zaretskii
52b9821179
Unified support for hardware breakpoints and watchpoints on
...
x86 targets:
* config/i386/nm-i386.h: New file.
* config/i386/nm-i386.h: (i386_cleanup_dregs)
(i386_insert_watchpoint, i386_remove_watchpoint)
(i386_region_ok_for_watchpoint, i386_stopped_by_hwbp)
(i386_stopped_data_address, i386_insert_hw_breakpoint)
(i386_remove_hw_breakpoint): Declare prototypes.
[I386_USE_GENERIC_WATCHPOINTS] (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
Define if not already defined.
(TARGET_REGION_OK_FOR_HW_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT)
(STOPPED_BY_WATCHPOINT, target_stopped_data_address)
(target_insert_watchpoint, target_remove_watchpoint)
(target_insert_hw_breakpoint, target_remove_hw_breakpoint): Define
to call the appropriate i386_* functions.
* i386-nat.c: New file.
* i386-nat.c (I386_DR_CONTROL_MASK, I386_DR_LOCAL_ENABLE)
(I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
(I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): New macros.
(dr_mirror, dr_status_mirror, dr_control_mirror, dr_ref_count)
(maint_show_dr): New variables.
(i386_cleanup_dregs, i386_show_dr, i386_length_and_rw_bits)
(i386_insert_aligned_watchpoint, i386_remove_aligned_watchpoint)
(i386_handle_nonaligned_watchpoint, i386_insert_watchpoint)
(i386_remove_watchpoint, i386_region_ok_for_watchpoint)
(i386_stopped_data_address, i386_stopped_by_hwbp)
(i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): New
functions.
(_initialize_i386_nat): New function.
[I386_USE_GENERIC_WATCHPOINTS]: Add new maint command
`show-debug-regs', sets maint_show_dr to non-zero value and
activates debugging print-outs in functions which insert, remove,
and test watchpoints and hardware breakpoints.
* Makefile.in (i386-nat.o): New target.
(ALLDEPFILES): Add i386-nat.o.
2001-03-21 11:36:58 +00:00
Mark Kettenis
28e9e0f00d
* i386-tdep.c: Add back _initialize_i386_tdep prototype with
...
appropriate comment.
2001-03-21 11:22:24 +00:00
Alan Modra
b32b5d6e64
Prevent NULL pointer dereference.
2001-03-21 08:09:25 +00:00
Kevin Buettner
e40eccb4fb
Update Linux/Alpha port to use new Linux threads support.
2001-03-20 21:40:47 +00:00
Jim Blandy
bea7bb93ff
* Makefile.in: Clean up dependencies on ../include/demangle.h.
...
(demangle_h): New variable.
(jv-typeprint.o, jv-valprint.o, linespec.o): Use it.
2001-03-20 21:23:38 +00:00
Patrick Macdonald
27fca2d871
Add support for cgen machine determination.
...
* cgen-dis.in (print_insn_@arch@): Add support for target machine
determination via CGEN_COMPUTE_MACH.
* fr30-desc.c: Regenerate.
* fr30-dis.c: Regenerate.
* fr30-opc.h: Regenerate.
* m32r-desc.c: Regenerate.
* m32r-dis.c: Regenerate.
* m32r-opc.h: Regenerate.
* m32r-opinst.c: Regenerate.
2001-03-20 20:56:34 +00:00
Ulrich Drepper
cc5ce05235
* emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
...
is an absolute path look only for this file and not along the path.
2001-03-20 18:39:21 +00:00
H.J. Lu
f4fbb4a3d1
2001-03-20 H.J. Lu <hjl@gnu.org>
...
* configure.in: Remove the redundent AC_ARG_PROGRAM.
* configure: Rebuild.
2001-03-20 18:24:30 +00:00