gdbadmin
36c7f8dce2
*** empty log message ***
2002-02-17 00:00:04 +00:00
Andrew Cagney
17ef5d9211
* gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
...
* gdbarch.h, gdbarch.c: Re-generate.
2002-02-16 23:09:16 +00:00
Daniel Jacobowitz
491b894671
2002-02-16 Daniel Jacobowitz <drow@mvista.com>
...
* valarith.c (value_x_unop): Fix decrement; support post-decrement.
2002-02-16 Daniel Jacobowitz <drow@mvista.com>
From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
* valops.c (value_arg_coerce): Don't take the address of a reference
to convert an argument to a reference.
2002-02-16 22:25:50 +00:00
Christopher Faylor
dfe7f3acac
* win32-nat.c (get_image_name): New function.
...
(handle_load_dll): Use get_image_name function.
(get_child_debug_event): Avoid registering debug events until possibly execed
process is started.
(child_create_inferior): Allow invocation via shell so that command line
redirection, etc. works ok.
(_initialize_inftarg): Add new command: "set shell" to control whether a shell
is used to start a process.
2002-02-16 02:33:24 +00:00
gdbadmin
b88e43a246
*** empty log message ***
2002-02-16 00:00:06 +00:00
Daniel Jacobowitz
1d33e73ab9
2002-02-15 Daniel Jacobowitz <drow@mvista.com>
...
* gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
instead of find_register_by_number.
(cannot_store_register): Likewise.
2002-02-15 22:59:13 +00:00
Pierre Muller
48cd0caa88
2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
...
* dwarf2read.c: Replace fprintf (stderr, ...) by
fprintf_unfiltered (gdb_stderr, ...).
2002-02-15 22:42:33 +00:00
Daniel Jacobowitz
8656e7d8b6
2002-02-15 Daniel Jacobowitz <drow@mvista.com>
...
* gdbserver/gdbserver.1: Document --attach.
2002-02-15 19:08:05 +00:00
Daniel Jacobowitz
56460a6114
2002-02-15 Daniel Jacobowitz <drow@mvista.com>
...
* gdb.texinfo: Document gdbserver ``--attach'' command.
2002-02-15 19:06:33 +00:00
Richard Earnshaw
66e810cd09
* arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
...
descriptions.
* arm-tdep.c (arm_default_arm_le_breakpoint)
(arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
(arm_default_thumb_be_breakpoint): New. Initialize them from
traditional breakpoint defines.
(arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
(arm_gdbarch_init): Initialize new breakpoint variables.
* arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
(arm_linux_init_abi): Initialize linux-specific breakpoint.
* armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
(arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
code out to ...
(arm_netbsd_init_abi_common): ... here; new function.
* config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
(THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
* config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
* config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
2002-02-15 16:12:24 +00:00
Richard Earnshaw
97e03143bb
* arm-tdep.h (enum arm_abi): New enum.
...
(struct gdbarch_tdep): New structure.
(LOWEST_PC): Provide a default.
(arm_gdbarch_register_os_abi): Declare new function.
* arm-tdep.c (arm_abi_names): New array.
(process_note_abi_tag_sections): New function.
(get_elfosabi): New function.
(arm_gdbarch_register_os_abi): New function.
(arm_gdbarch_init): Try to determine the ABI of the inferior. If
support for that ABI has been built in, then call the appropriate
configuration routine. Use gdbarch_num_regs() to get the number
of registers.
(arm_dump_tdep): New function.
(arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
place-holder functions.
(_initialize_arm_tdep): Register them.
* config/arm/tm-arm.h (LOWEST_PC): Delete.
* armnbsd-tdep.c: New file.
* Makefile.in (armnbsd-tdep.o): Add dependencies.
* config/arm/nbsd.mt (TDEPFILES): Add it.
* config/arm/tm-nbsd.h (LOWEST_PC): Delete.
* armnbsd-nat.c: Include regcache.h.
* Makefile.in (armnbsd-nat.o): Update dependency list.
* arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
2002-02-15 13:35:27 +00:00
Daniel Jacobowitz
ad68be46bd
2002-02-14 Daniel Jacobowitz <drow@mvista.com>
...
* gdbserver/Makefile.in: Fix typos in target rules.
2002-02-15 03:58:34 +00:00
gdbadmin
53cf396059
*** empty log message ***
2002-02-15 00:00:03 +00:00
Daniel Jacobowitz
af3598f8c6
Revert accidental commit.
2002-02-14 23:57:50 +00:00
Daniel Jacobowitz
003d6d1dc8
2002-02-14 Daniel Jacobowitz <drow@mvista.com>
...
Fix part of PR gdb/267.
* linespec.c (find_methods): Handle constructors specially for now.
2002-02-14 23:40:23 +00:00
Corinna Vinschen
6b230f1b26
* arm-tdep.c (arm_push_arguments): Eliminate special float type
...
handling.
* config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
standard_coerce_float_to_double().
2002-02-14 19:00:58 +00:00
Christopher Faylor
1ea98d1203
* config/i386/xm-cygwin.h: Revert inadvertent reinclusion of GDBINIT_FILENAME.
2002-02-14 16:32:57 +00:00
Elena Zannoni
dd47e6fdd9
2002-02-14 Elena Zannoni <ezannoni@redhat.com>
...
* rs6000-tdep.c (rs6000_gdbarch_init): Don't call
find_variant_by_name, because it confuses the multiarch
framework. Return NULL if there isn't an architecture with the
user supplied name, instead of forcing a different one without
recording the change with the multiarch machinery.
(find_variant_by_name): Delete.
2002-02-14 15:13:53 +00:00
Peter Schauer
d7e39b9e06
* config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
...
i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
2002-02-14 08:14:20 +00:00
Martin Hunt
76e42a4f45
2002-02-13 Martin M. Hunt <hunt@redhat.com>
...
* stack.c (print_frame_info_base): When calling
print_frame_info_listing_hook, set current_source_symtab.
2002-02-14 07:24:54 +00:00
Daniel Jacobowitz
676a04427a
2002-02-14 Daniel Jacobowitz <drow@mvista.com>
...
* gdb.base/a2-run.exp: Check for a remote target properly.
* gdb.base/annota1.exp: Likewise.
* gdb.base/list.exp: Likewise.
* gdb.base/reread.exp: Likewise.
* gdb.base/scope.exp: Likewise.
* gdb.base/shlib-call.exp: Likewise.
* gdb.base/term.exp: Likewise.
* gdb.c++/annota2.exp: Likewise.
2002-02-14 06:25:19 +00:00
Daniel Jacobowitz
0a30fbc4cf
2002-02-14 Daniel Jacobowitz <drow@mvista.com>
...
* gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
and remove unused $(INCLUDE_DIR).
Add regcache.c to OBS.
Add generated register protocol files to clean target.
Update dependencies for new objects, obsolete old target code.
* gdbserver/linux-low.c: Remove all platform-specific code to
new files. Remove various dead code. Update to use regcache
functionality.
* gdbserver/remote-utils.c (fromhex): Add return statement
to quiet warning.
(putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
constant.
(input_interrupt): Add integer parameter to match prototype
of a signal handler.
(outreg): Use register_data ().
(prepare_resume_reply): Use gdbserver_expedite_regs.
* gdbserver/server.c (main): Dynamically allocate own_buf because
PBUFSIZ is no longer constant. Use registers_to_string () and
registers_from_string ().
* gdbserver/server.h: No longer include "defs.h". Add prototypes
for error (), fatal (), and warning (). Update definition of
PBUFSIZ to use regcache functionality. Add include guard.
* gdbserver/utils.c (fatal): Add missing ``const''.
(warning): New function.
* regformats/regdat.sh: Include "regcache.h" in generated files.
Provide init_registers () function.
* regformats/regdef.h: Add prototype for set_register_cache ().
Add include guard.
* gdbserver/linux-arm-low.c: New file.
* gdbserver/linux-i386-low.c: New file.
* gdbserver/linux-ia64-low.c: New file.
* gdbserver/linux-m68k-low.c: New file.
* gdbserver/linux-mips-low.c: New file.
* gdbserver/linux-ppc-low.c: New file.
* gdbserver/linux-sh-low.c: New file.
* gdbserver/regcache.c: New file.
* gdbserver/regcache.h: New file.
* gdbserver/low-linux.c: Removed obsolete file.
2002-02-14 06:21:24 +00:00
Daniel Jacobowitz
4cc841d043
2002-02-14 Daniel Jacobowitz <drow@mvista.com>
...
* config/arm/linux.mt: Update GDBSERVER_DEPFILES.
* config/i386/linux.mt: Likewise.
* config/ia64/linux.mt: Likewise.
* config/m68k/linux.mh: Likewise.
* config/powerpc/linux.mh: Likewise.
* config/mips/linux.mt: Likewise.
* config/sh/linux.mt: Add GDBSERVER_DEPFILES.
* config/i386/i386lynx.mh: Mark gdbserver variables
as (currently) obsolete for this target.
* config/i386/nbsd.mt: Likewise.
* config/i386/nbsdelf.mt: Likewise.
* config/m32r/m32r.mt: Likewise.
* config/m68k/m68klynx.mh: Likewise.
* config/m68k/nbsd.mt: Likewise.
* config/m68k/sun3os4.mh: Likewise.
* config/mips/vr5000.mt: Likewise.
* config/ns32k/nbsd.mt: Likewise.
* config/pa/hppabsd.mh: Likewise.
* config/pa/hppaosf.mh: Likewise.
* config/powerpc/nbsd.mt: Likewise.
* config/rs6000/rs6000lynx.mh: Likewise.
* config/s390/s390.mt: Likewise.
* config/s390/s390x.mt: Likewise.
* config/sparc/sparclynx.mh: Likewise.
* config/sparc/sun4os4.mh: Likewise.
* config/i386/x86-64linux.mt: Likewise.
* config/sparc/linux.mh: Likewise.
2002-02-14 05:48:40 +00:00
Daniel Jacobowitz
a85f51e7ac
2002-02-14 Daniel Jacobowitz <drow@mvista.com>
...
* configure.tgt: Configure gdbserver only for known working
targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
* configure.in: Check ${build_gdbserver}. Put gdbserver/ into
SUBDIRS if it is configured. Update comment for ${nativefile}.
* configure: Regenerated.
2002-02-14 05:31:46 +00:00
Michael Snyder
6dbdc4a362
2002-02-13 Michael Snyder <msnyder@redhat.com>
...
* gcore.c (gcore_command): Use gcore_default_target instead of NULL.
(default_gcore_mach): Just return 0, work around a problem in bfd.
(default_gcore_target): OK to return NULL if exec_bfd is null.
(make_mem_sec): Use a cast, avoid a warning.
* procfs.c (find_memory_regions_callback): Use a cast instead of
calling host_pointer_to_address (which complains if
sizeof (host pointer) != sizeof (target pointer)).
(procfs_make_note_section): Avoid overflow in psargs string.
2002-02-14 01:57:36 +00:00
gdbadmin
89d97283d3
*** empty log message ***
2002-02-14 00:00:09 +00:00
Michael Snyder
65554feff8
2002-02-13 Michael Snyder <msnyder@redhat.com>
...
* procfs.c (procfs_make_note_section): Make the default
implementation return an error.
2002-02-13 Rodney Brown <rbrown64@csc.com.au>
* procfs.c (procfs_make_note_section): Provide a default definition
(for alpha-dec-osf4.0f). Fix typos.
2002-02-11 Michael Snyder <msnyder@redhat.com>
* procfs.c: Include elf-bfd.h (for elfcore_write functions).
(gcore section): Ifdef for Solaris and Unixware only.
(procfs_do_thread_registers): Unixware needs one lwpstatus
per thread (not one prstatus or pstatus).
(procfs_make_note_section): Iterate only over kernel threads (lwps),
not over all gdb threads. For unixware, call elfcore_write_pstatus
once before iterating over threads.
2002-02-13 22:03:46 +00:00
Elena Zannoni
1e4d76e7d5
2002-02-13 Elena Zannoni <ezannoni@redhat.com>
...
* linux-proc.c: Add include of regcache.h.
* Makefile.in (linux-proc.o): Add dependency on regcache.h.
2002-02-13 20:47:17 +00:00
Greg McGary
76a7991b5b
add missing filename
2002-02-13 19:43:12 +00:00
Greg McGary
ac2e0304e3
* MAINTAINERS: Add myself to "Write After Approval" list.
2002-02-13 19:22:23 +00:00
Andrew Cagney
b6d1a1d526
From 2002-01-18 Greg McGary <greg@mcgary.org>:
...
* (create_mem_region): Disallow useless empty region. Regions are
half-open intervals, so allow [A..B) [B..C) as non-overlapping.
2002-02-13 19:00:47 +00:00
Michael Chastain
6c6ea35e34
2002-02-13 Michael Chastain <mec@shout.net>
...
* defs.h: Kill CONST_PTR.
* c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
* c-lang.c (c_builtin_types): Likewise.
* ch-lang.c (ch_builtin_types): Likewise.
* f-lang.c (f_builtin_types): Likewise.
* language.c (unknown_builtin_types): Likewise.
* m2-lang.c (m2_builtin_types): Likewise.
* p-lang.c (pascal_builtin_types): Likewise.
* scm-lang.c (c_builtin_types): Likewise.
2002-02-13 18:49:30 +00:00
Richard Earnshaw
78b4f46824
* gdb.base/watchpoint.exp: Restore previous timeout at end of test.
2002-02-13 17:40:42 +00:00
Keith Seitz
3e0b0f4890
* arm-tdep.h (arm_get_next_pc): Add declaration.
2002-02-13 17:09:07 +00:00
Richard Earnshaw
67255d04f2
* arm-tdep.c (arm_use_struct_convention): Make static. Move to be
...
with other related struct-returning functions.
(arm_extract_struct_value_address): New function.
(arm_gdbarch_init): Initialize the above in multi-arch vector. Also
initialize float_format, double_format and long_double_format as
appropriate to the endianness of the target.
* config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
(arm_use_struct_convention): Delete declaration.
(USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2002-02-13 16:32:34 +00:00
Richard Earnshaw
9ae9b4eac4
Argh! These should also have been committed along with:
...
* arm-tdep.h: New file.
* arm-tdep.c: Include arm-tdep.h.
(arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
(arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
(arm_print_float_info, arm_register_type, convert_to_extended)
(arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
(arm_extract_return_value, arm_register_name): Make static.
(arm_software_single_step): Similarly. Fix types in declaration.
(arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
(arm_store_return_value, arm_store_struct_return): New functions.
(arm_gdbarch_init): Register the above functions. Also register
call_dummy_start_offset, sizeof_call_dummy_words,
function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
max_register_virtual_size, register_size. Set up
prologue_cache.saved_regs here, rather than ...
(_initialize_arm_tdep): ... here.
* config/arm/tm-arm.h (struct type, struct value): Delete forward
declarations.
(arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
(arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
(arm_print_float_info, arm_register_type, convert_to_extended)
(arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
(arm_extract_return_value, arm_register_name): Delete declarations.
(SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
(SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
(DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
(REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
(REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
(MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
(EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
(SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
(SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
(ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
(arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
(arm_get_next_pc): No-longer static -- these are needed by the RDI
interface.
* arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
* remote-rdi.c remote-rdp.c: Likewise.
* Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
(armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
* config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
definition.
* arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
(ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
(ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
from non-ARM_ prefixed definitions.
* arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
all uses of above.
* remote-rdi.c remote-rdp.c: Likewise.
* arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
2002-02-13 16:24:59 +00:00
Keith Seitz
079777f63e
I seemed to have not checked this in last night... Updated ChangeLog to
...
reflect real check-in time.
* defs.h (core_addr_to_string_nz): New function.
2002-02-13 15:43:37 +00:00
Mark Kettenis
34588f232a
Apply missing bits of 2002-01-15 patch.
...
* i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
(fill_fpregset): Use i387_fill_fsave.
2002-02-13 08:10:30 +00:00
Keith Seitz
49b563f9d8
* defs.h (core_addr_to_string_nz): New function.
...
* utils.c (core_addr_to_string): Use phex instead of phex_nz.
(core_addr_to_string_nz): New function.
2002-02-13 06:06:26 +00:00
gdbadmin
1d4bd9fd56
*** empty log message ***
2002-02-13 00:00:04 +00:00
Richard Earnshaw
d2c1cacb1e
Hmm, this should have been commited along with:
...
* arm-tdep.h: New file.
* arm-tdep.c: Include arm-tdep.h.
(arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
(arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
(arm_print_float_info, arm_register_type, convert_to_extended)
(arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
(arm_extract_return_value, arm_register_name): Make static.
(arm_software_single_step): Similarly. Fix types in declaration.
(arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
(arm_store_return_value, arm_store_struct_return): New functions.
(arm_gdbarch_init): Register the above functions. Also register
call_dummy_start_offset, sizeof_call_dummy_words,
function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
max_register_virtual_size, register_size. Set up
prologue_cache.saved_regs here, rather than ...
(_initialize_arm_tdep): ... here.
* config/arm/tm-arm.h (struct type, struct value): Delete forward
declarations.
(arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
(arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
(arm_print_float_info, arm_register_type, convert_to_extended)
(arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
(arm_extract_return_value, arm_register_name): Delete declarations.
(SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
(SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
(DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
(REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
(REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
(MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
(EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
(SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
(SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
(ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
(arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
(arm_get_next_pc): No-longer static -- these are needed by the RDI
interface.
* arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
* remote-rdi.c remote-rdp.c: Likewise.
* Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
(armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
* config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
definition.
* arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
(ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
(ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
from non-ARM_ prefixed definitions.
* arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
all uses of above.
* remote-rdi.c remote-rdp.c: Likewise.
* arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
2002-02-12 13:36:03 +00:00
Richard Earnshaw
aeb98c6089
* arm-linux-nat.c: Really include arm-tdep.h.
...
* config/arm/tm-linux.h (struct type, struct value): Declare.
2002-02-12 00:59:27 +00:00
gdbadmin
7650f1f042
*** empty log message ***
2002-02-12 00:00:04 +00:00
Richard Earnshaw
34e8f22ded
* arm-tdep.h: New file.
...
* arm-tdep.c: Include arm-tdep.h.
(arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
(arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
(arm_print_float_info, arm_register_type, convert_to_extended)
(arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
(arm_extract_return_value, arm_register_name): Make static.
(arm_software_single_step): Similarly. Fix types in declaration.
(arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
(arm_store_return_value, arm_store_struct_return): New functions.
(arm_gdbarch_init): Register the above functions. Also register
call_dummy_start_offset, sizeof_call_dummy_words,
function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
max_register_virtual_size, register_size. Set up
prologue_cache.saved_regs here, rather than ...
(_initialize_arm_tdep): ... here.
* config/arm/tm-arm.h (struct type, struct value): Delete forward
declarations.
(arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
(arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
(arm_print_float_info, arm_register_type, convert_to_extended)
(arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
(arm_extract_return_value, arm_register_name): Delete declarations.
(SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
(SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
(DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
(REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
(REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
(MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
(EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
(SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
(SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
(ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
(arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
(arm_get_next_pc): No-longer static -- these are needed by the RDI
interface.
* arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
* remote-rdi.c remote-rdp.c: Likewise.
* Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
(armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
* config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
definition.
* arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
(ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
(ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
from non-ARM_ prefixed definitions.
* arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
all uses of above.
* remote-rdi.c remote-rdp.c: Likewise.
* arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
2002-02-11 18:34:12 +00:00
Richard Earnshaw
fcfb88363b
Missed a bit.
2002-02-11 12:48:20 +00:00
Richard Earnshaw
148754e5ad
* arm-tdep.c (arm_frameless_function_invocation)
...
(arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
(arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
(arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
(arm_pop_frame, arm_get_next_pc): Make static.
(arm_gdbarch_init): Register above in gdbarch structure.
(arm_read_fp): Renamed from arm_target_read_fp.
(arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
* config/arm/tm-arm.h (arm_frameless_function_invocation)
(arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
(arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
(arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
(arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
(arm_pc_is_thumb_dummy): Delete declarations.
2002-02-11 12:42:03 +00:00
Michael Chastain
9a81ba5174
2002-02-10 Michael Chastain <mec@shout.net>
...
* gdb.base/funcargs.c (localvars_after_alloca): Fix return type.
(call_after_alloca): Ditto.
2002-02-11 04:47:59 +00:00
Daniel Jacobowitz
434d2d4f74
2002-02-10 Daniel Jacobowitz <drow@mvista.com>
...
* symtab.c (compare_search_syms): New function.
(sort_search_symbols): New function.
(search_symbols): Sort symbols after searching rather than
before.
2002-02-10 Daniel Jacobowitz <drow@mvista.com>
* generic/gdbtk-cmds.c (gdb_listfuncs): Don't call
BLOCK_SHOULD_SORT.
* library/browserwin.itb (BrowserWin::_fill_funcs_combo): Sort
the output of gdb_listfuncs.
2002-02-11 03:21:53 +00:00
gdbadmin
cd0b1e215c
*** empty log message ***
2002-02-11 00:00:03 +00:00
Daniel Jacobowitz
23f572c231
Update copyright date.
2002-02-10 18:58:26 +00:00
Daniel Jacobowitz
004af6c7ff
2002-02-10 Daniel Jacobowitz <drow@mvista.com>
...
* gdb.base/ending-run.exp: Guard "cont" test with
gdb_skip_stdio_test.
2002-02-10 18:21:36 +00:00
Andrew Cagney
5524168967
* NEWS: Linux -> GNU/Linux.
2002-02-10 17:34:05 +00:00
Andrew Cagney
028c194b3f
* gdbarch.sh: For for level one methods, disallow a definition
...
when partially multi-arched. Add comments explaining rationale.
* gdbarch.h: Re-generate.
2002-02-10 17:25:38 +00:00
Andrew Cagney
6acf50cd6b
* gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
...
multi-arch partial.
2002-02-10 17:03:47 +00:00
Andrew Cagney
5024879462
* gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
...
field. Use diff -u.
* gdbarch.c: Re-generate.
2002-02-10 07:37:22 +00:00
Andrew Cagney
9b56c5f366
* config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
2002-02-10 07:17:17 +00:00
Andrew Cagney
c30e006608
* gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
...
partial.
2002-02-10 06:44:59 +00:00
Andrew Cagney
6e6d6484b3
* gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
...
multi-arch partial.
(PUSH_ARGUMENTS): Switch to using predefault.
* gdbarch.c: Regenerate.
2002-02-10 06:08:40 +00:00
Andrew Cagney
c203844d97
* valops.c (PUSH_ARGUMENTS): Delete definition.
...
* gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
partial. Default to default_push_arguments.
* gdbarch.h, gdbarch.c: Regenerate.
2002-02-10 05:50:34 +00:00
Andrew Cagney
b5a2688fa4
* defs.h (throw_exception): Rename return_to_top_level. Update
...
comments.
* utils.c (error_stream, internal_verror, quit): Ditto.
* top.c (throw_exception, catcher): Ditto.
* sparclet-rom.c (sparclet_load): Ditto.
* remote.c (interrupt_query, minitelnet): Ditto.
* remote-sds.c (interrupt_query): Ditto.
* remote-mips.c (mips_error, mips_kill): Ditto.
* ocd.c (interrupt_query): Ditto.
* monitor.c (monitor_interrupt_query): Ditto.
* m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
* target.h: Update comment.
* m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
2002-02-10 04:08:42 +00:00
Andrew Cagney
2fa5c1e048
* gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
...
default_double_format.
* gdbarch.h, gdbarch.c: Re-generate.
* findvar.c (floatformat_unknown): Delete variable definition.
* doublest.h (floatformat_unknown): Delete variable declaration.
2002-02-10 02:47:12 +00:00
gdbadmin
957cc20810
*** empty log message ***
2002-02-10 00:00:04 +00:00
Jim Blandy
da966255a5
* stabsread.c (read_type): Add code to parse Sun's syntax for
...
prototyped function types.
2002-02-09 20:09:45 +00:00
Andrew Cagney
123a4891df
* Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
...
(SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
2002-02-09 18:45:06 +00:00
Peter Schauer
fb39c8f3a9
* xcoffsolib.c (_initialize_xcoffsolib): Renamed from
...
_initialize_solib. Fixes name clash with solib.c:_initialize_solib,
now _initialize_xcoffsolib gets called again and overrides the
commands from solib.c in a native configuration.
2002-02-09 18:32:14 +00:00
Mark Kettenis
0b87a11db9
* doublest.c (store_typed_floating): Don't try to return a value.
...
Fixes PR gdb/290.
2002-02-09 17:25:57 +00:00
Jim Blandy
bdc2fc72b3
* c-typeprint.c (c_type_print_varspec_suffix): If a function type
...
is prototyped and has no arguments, print its argument list as
`(void)'.
2002-02-09 16:08:53 +00:00
Chris Demetriou
da69bbcfe1
2002-02-08 Chris Demetriou <cgd@broadcom.com>
...
* MAINTAINERS (write-after-approval): Add myself.
(paper-trail): I've escaped!
2002-02-09 02:20:18 +00:00
gdbadmin
5076c2e958
*** empty log message ***
2002-02-09 00:00:04 +00:00
Christopher Faylor
b69571f510
* win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf changes.
...
(_initialize_check_for_gdb_ini): Ditto.
2002-02-08 23:12:16 +00:00
Martin Hunt
f687139811
2002-02-08 Martin M. Hunt <hunt@redhat.com>
...
* win32-nat.c (cygwin_pid_to_str): Fix typo.
xaprintf -> xasprintf.
2002-02-08 21:22:10 +00:00
Pierre Muller
4e52d31c52
2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
...
* win32-nat.c: Remove use of printf and sprintf functions.
2002-02-08 19:31:38 +00:00
Richard Earnshaw
39bbf76177
* arm-tdep.c (arm_frame_chain_valid): Make static.
...
(arm_push_arguments): Likewise.
(arm_gdbarch_init): New function.
(_initialize_arm_tdep): Call it.
* config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
(TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
(FRAME_CHAIN_VALID): Delete.
(arm_frame_chain_valid): Delete declaration.
(PUSH_ARGUMENTS): Delete.
(arm_push_arguments): Delete declaration.
(CALL_DUMMY_P): Delete.
2002-02-08 18:26:37 +00:00
Corinna Vinschen
9c9532c936
* gdbtypes.c (build_gdbtypes): Disable setting a specific float format
...
on builtin float types.
2002-02-08 17:34:33 +00:00
Daniel Jacobowitz
4e8f7a8b27
2002-02-08 Daniel Jacobowitz <drow@mvista.com>
...
* utils.c: Include <curses.h> before "bfd.h".
* tui/tui-hooks.c: Likewise.
* tui/tui.c: Likewise.
* tui/tuiCommand.c: Likewise.
* tui/tuiData.c: Likewise.
* tui/tuiDataWin.c: Likewise.
* tui/tuiDisassem.c: Likewise.
* tui/tuiGeneralWin.c: Likewise.
* tui/tuiIO.c: Likewise.
* tui/tuiLayout.c: Likewise.
* tui/tuiRegs.c: Likewise.
* tui/tuiSource.c: Likewise.
* tui/tuiSourceWin.c: Likewise.
* tui/tuiStack.c: Likewise.
* tui/tuiWin.c: Likewise.
2002-02-08 15:54:32 +00:00
Elena Zannoni
cd4bffcfe0
2002-02-07 Elena Zannoni <ezannoni@redhat.com>
...
* sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
to include space for pseudoregs as well. Update loops accordingly.
(sh_fp_frame_init_saved_regs): Ditto.
(sh_init_extra_frame_info, sh_pop_frame): Split long lines.
2002-02-08 03:01:11 +00:00
Andrew Cagney
26806ce251
* MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
...
Add Richard Earnshaw to Arm maintainers.
2002-02-08 02:31:15 +00:00
Andrew Cagney
a6b982030f
Zap warning_begin() declaration. (Attempt two).
2002-02-08 00:53:17 +00:00
Andrew Cagney
97fdab622f
* config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
...
Delete macro.
(second attempt).
2002-02-08 00:46:39 +00:00
Michael Snyder
def71bfa3c
2002-02-07 Michael Snyder <msnyder@redhat.com>
...
* gdb.texinfo (overlays): Change @var(_ovly_debug_event)
to @code(_ovly_debug_event).
2002-02-08 00:39:45 +00:00
gdbadmin
ac90933784
*** empty log message ***
2002-02-08 00:00:04 +00:00
Andrew Cagney
c928edc06b
* gdb.texinfo (How Overlays Work): Shrink the overlay diagram.
2002-02-07 23:58:41 +00:00
Michael Snyder
78b29b405f
2002-02-07 Michael Snyder <msnyder@redhat.com>
...
* solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
Logic bug, remove misplaced else.
2002-02-07 23:08:55 +00:00
Jim Blandy
37225f62c4
* gdb.base/callfwmall.c, gdb.base/callfwmall.exp: Move these tests
...
from here...
* gdb.hp/gdb.base-hp/callfwmall.c, gdb.hp/gdb.base-hp/callfwmall.exp:
To here. Disable this test on non-HP platforms. Add big comment.
2002-02-07 22:02:31 +00:00
Klee Dienes
d88499536e
2002-02-07 Klee Dienes <klee@apple.com>
...
* fork-inferior.c (fork_inferior): Add '!' to the list of
characters that need to be quoted when building a string for the
shell. Quote '!' specifically with a backslash, since CSH chokes
when trying to evaluate "str!str".
2002-02-07 06:11:55 +00:00
gdbadmin
4f7ddf32cd
*** empty log message ***
2002-02-07 00:00:03 +00:00
Nick Clifton
095778a05e
Only provide a typedef for bool if it is not defined.
2002-02-06 20:09:18 +00:00
Michael Snyder
1900040cf3
2002-02-04 Michael Snyder <msnyder@redhat.com>
...
* breakpoint.h (enum bptype): Add new overlay event bp type.
(enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
* breakpoint.c (create_internal_breakpoint): New function.
(internal_breakpoint_number): Moved into create_internal_breakpoint.
(create_longjmp_breakpoint): Use create_internal_breakpoint.
(create_thread_event_breakpoint): Ditto.
(create_solib_event_breakpoint): Ditto.
(create_overlay_event_breakpoint): New function.
(enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
(update_breakpoints_after_exec): Delete and re-initialize
overlay event breakpoints after an exec. Add FIXME comment
about longjmp breakpoint.
(print_it_typical): Ignore overlay event breakpoints.
(print_one_breakpoint): Ditto.
(mention): Ditto.
(bpstat_what): Do not stop for overlay event breakpoints.
(delete_breakpoint): Don't delete overlay event breakpoints.
(breakpoint_re_set_one): Delete the overlay event breakpoint.
(breakpoint_re_set): Re-create overlay event breakpoint.
* symfile.c (overlay_auto_command): Enable overlay breakpoints.
(overlay_manual_command): Disable overlay breakpoints.
(overlay_off_command): Disable overlay breakpoints.
2002-02-06 18:31:07 +00:00
Michael Snyder
81d4647008
2002-02-06 Michael Snyder <msnyder@redhat.com>
...
* gdb.texinfo (overlays): Mention new magic symbol
'_ovly_debug_event', which allows GDB to keep better track
of overlays.
2002-02-06 18:29:38 +00:00
Richard Earnshaw
082fc60dfc
* arm-tdep.c: Include elf-bfd.h and coff/internal.h.
...
(MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
to here from config/tm-arm.h.
(coff_sym_is_thumb): Make static.
(arm_elf_make_msymbol_special): New function.
(arm_coff_make_msymbol_special): New function.
* config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
(MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
(coff_sym_is_thumb): Delete declaration.
(arm_elf_make_msymbol_special): Declare.
(arm_coff_make_msymbol_special): Declare.
(ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
(COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
2002-02-06 15:21:17 +00:00
Richard Earnshaw
039c576668
* arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
2002-02-06 13:12:14 +00:00
Richard Earnshaw
5e74b15c0d
* gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
...
* gdbarch.c gdbarch.h: Regenerate.
* arch-utils.c (default_print_float_info): New function.
* arch-utils.h (default_print_float_info): Prototype it.
* infcmd.c (float_info): Call PRINT_FLOAT_INFO.
* doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
(PRINT_FLOAT_INFO): Document it.
* arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
* config/arm/tm-arm.h (FLOAT_INFO): Delete.
(PRINT_FLOAT_INFO): Define.
2002-02-06 13:00:49 +00:00
Richard Earnshaw
a8ec217795
Remove some extraneous conflict markers.
2002-02-06 10:31:07 +00:00
Pierre Muller
58fa08f090
2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
...
* win32-nat.c (_initialize_check_for_gdb_ini):
Add typecast to sprintf argument to suppress a warning.
2002-02-06 09:27:29 +00:00
Pierre Muller
7393af7c90
2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
...
win32-nat.c (last_sig): Changed type of variable to target_signal,
to allow easier handling of pass state.
(DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
that gives exception name and address.
(handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
and set last_sig value to ourstatus->value.sig. Some missing
exceptions added.
(child_continue): Correctly report continue_status.
(get_child_debug_event,do_initial_child_stuff): Set last_sig to
TARGET_SIGNAL_0 (new default value).
(child_resume): consider sig argument passed to decide if
the exception should be passed to debuggee or not.
2002-02-06 09:14:50 +00:00
Michael Snyder
6af4589cb6
2002-02-05 Michael Snyder <msnyder@redhat.com>
...
* regcache.c (fetch_register): Call target_fetch_register
only if we don't call FETCH_PSEUDO_REGISTER.
(store_register): Call target_store_register only if we
don't call STORE_PSEUDO_REGISTER.
2002-02-06 03:16:38 +00:00
Elena Zannoni
a2cf933af4
2002-02-04 Elena Zannoni <ezannoni@redhat.com>
...
* gdbarch.sh: Add definitions for COFF_MAKE_MSYMBOL_SPECIAL and
ELF_MAKE_MSYMBOL_SPECIAL.
* gdbarch.c, gdbarch.h: Regenerate.
* arch-utils.c (default_elf_make_msymbol_special,
default_coff_make_msymbol_special): New functions.
* arch-utils.h (default_elf_make_msymbol_special,
default_coff_make_msymbol_special): Export.
* elfread.c (elf_symtab_read): Compile use of
ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
multiarched.
* coffread.c (coff_symtab_read): Ditto, for
COFF_MAKE_MSYMBOL_SPECIAL.
2002-02-06 01:20:23 +00:00
gdbadmin
9a36a60b53
*** empty log message ***
2002-02-06 00:00:03 +00:00
Jim Blandy
e1ad829b91
* mi-regs.exp: Various cleanups for SPARC-only tests.
...
(test_breakpoints_creation_and_listing): Format of breakpoint
table has changed.
(sparc_register_tests): Expand floating-point number regexp to
recognize NaN values, too. Replace ineffectual single backslash
before a hyphen with a double backslash. Don't check the exact
numbers of the registers which have changed, since there's no way
to know which registers changed, exactly; just check that the
result is well-formed.
* mi0-regs.exp: (sparc_register_tests): Same as for
sparc_register_tests in mi-regs.exp.
2002-02-05 23:58:45 +00:00
Jim Blandy
15002962be
* mi-var-child.exp ("get children of struct_declarations", "get
...
children of struct_declarations.s2.u2.u1s2", "get children of
weird"): Tolerate argument types when they appear in function
types. (Dwarf 2 includes prototype info; STABS does not.)
* mi0-var-child.exp: Same.
2002-02-05 23:56:45 +00:00