Andrew Cagney
ab89facf70
* arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
...
type const.
2002-04-21 19:58:35 +00:00
Jason Thorpe
82a4efa15c
* alphafbsd-tdep.c: Update copyright years. Include
...
alpha-tdep.h.
(alphafbsd_use_struct_convention): Make static.
(alphafbsd_init_abi): New function.
(_initialize_alphafbsd_tdep): New function.
* config/alpha/tm-fbsd.h: Update copyright years.
(USE_STRUCT_CONVENTION): Remove.
2002-04-21 19:47:19 +00:00
Jason Thorpe
44dffaac91
* alpha-tdep.c (alpha_abi_handler): New structure to describe
...
an Alpha ABI variant.
(alpha_abi_handler_list): Declare.
(alpha_gdbarch_register_os_abi): New function.
(alpha_gdbarch_init): Give registered ABI variant handlers a
chance to tweak the gdbarch once we have set up defaults.
* alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
2002-04-21 18:24:48 +00:00
Jason Thorpe
65585be4ba
* alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
...
to standard_coerce_float_to_double.
* config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
2002-04-21 17:54:50 +00:00
Jason Thorpe
d9b023ccd4
* alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
...
* alpha-tdep.c (heuristic_proc_start): Use vm_min_address
from gdbarch_tdep rather than a constant.
(alpha_gdbarch_init): Initialize tdep->vm_min_address to
the default text address for all Alpha Unix ABIs.
(alpha_dump_tdep): Report the value of tdep->vm_min_address.
* config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
2002-04-21 17:30:09 +00:00
Jason Thorpe
dc129d8238
* alpha-tdep.h: New file. Includes several Alpha target constants
...
taken from...
* config/alpha/tm-alpha.h: ...here. Remove macros that we now
let gdbarch deal with.
(GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
* Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
to dependency list.
* alpha-nat.c: Include alpha-tdep.h. Update for adjusted
Alpha target register names.
* alphabsd-nat.c: Likewise.
* alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
Alpha target register names. Make serveral routines static.
(alpha_get_saved_register): New function.
(alpha_abi_names): New.
(process_note_abi_tag_sections): New function.
(get_elfosabi): New function.
(alpha_gdbarch_init): New function.
(alpha_dump_tdep): New function.
(_initialize_alpha_tdep): Register alpha_gdbarch_init.
2002-04-21 16:52:39 +00:00
Andrew Cagney
d49d1e0a2f
* frame.c (find_saved_register): Delete #ifdef
...
HAVE_REGISTER_WINDOWS code.
* config/sparc/tm-sparc.h: Update comments.
* config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
* gdbint.texinfo (Target Architecture Definition): Delete
definition of HAVE_REGISTER_WINDOWS.
2002-04-21 15:52:35 +00:00
Andrew Cagney
92e8c9ed1f
* i960-tdep.c (i960_find_saved_register): New function.
...
(i960_get_saved_register): New function.
* config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
(i960_get_saved_register): Declare.
* config/i960/tm-i960.h, i960-tdep.c: Update copyright.
2002-04-21 15:19:06 +00:00
David S. Miller
e192511835
2002-04-20 David S. Miller <davem@redhat.com>
...
* sparc-nat.c (store-inferior_registers): Fix ambiguous else.
2002-04-21 05:34:06 +00:00
Andrew Cagney
29673b2905
* arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
...
instead of NUM_PSEUDO_REGS.
2002-04-21 03:46:44 +00:00
David S. Miller
6c86dcd550
2002-04-20 David S. Miller <davem@redhat.com>
...
* config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
GDB_MULTI_ARCH_PARTIAL
* config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
define, let tm-sp64.h do it.
2002-04-21 01:51:00 +00:00
gdbadmin
96bf2febf8
*** empty log message ***
2002-04-21 00:00:32 +00:00
Jason Thorpe
aa40ec9031
* frame.c (find_saved_register): Avoid a NULL pointer
...
dereference and actually walk the frame list.
2002-04-20 23:54:28 +00:00
Andrew Cagney
0f79675b65
* gdbarch.sh (gdbarch_update_p): Keep the list of architectures
...
sorted in most most-recent-used order. Document.
* gdbarch.h, gdbarch.c: Regenerate.
2002-04-20 17:41:18 +00:00
Daniel Jacobowitz
c04a1aa88f
2002-04-20 Daniel Jacobowitz <drow@mvista.com>
...
* gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
(add_inferior): Call create_register_cache.
(clear_inferiors): Call free_register_cache.
(inferior_regcache_data, set_inferior_regcache_data): New functions.
* gdbserver/regcache.c (struct inferior_regcache_data): New.
(registers): Remove.
(get_regcache): New function.
(create_register_cache, free_register_cache): New functions.
(set_register_cache): Don't initialize the register cache here.
(registers_to_string, registers_from_string, register_data): Call
get_regcache.
* gdbserver/regcache.h: Add prototypes.
* gdbserver/server.h: Likewise.
2002-04-20 17:22:48 +00:00
Daniel Jacobowitz
611cb4a542
2002-04-20 Daniel Jacobowitz <drow@mvista.com>
...
* gdbserver/mem-break.c: New file.
* gdbserver/mem-break.h: New file.
* gdbserver/Makefile.in: Add mem-break.o rule; update server.h
dependencies.
* gdbserver/inferiors.c (struct inferior_info): Add target_data
member.
(clear_inferiors): Free target_data member if set.
(inferior_target_data, set_inferior_target_data): New functions.
* gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
(i386_stop_pc, i386_set_pc): New. Add to the_low_target.
* gdbserver/linux-low.c (linux_bp_reinsert): New variable.
(struct inferior_linux_data): New.
(linux_create_inferior): Use set_inferior_target_data.
(linux_attach): Likewise. Call add_inferior.
(linux_wait_for_one_inferior): New function.
(linux_wait): Call it.
(linux_write_memory): Add const.
(initialize_low): Call set_breakpoint_data.
* gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
handling members.
* gdbserver/server.c (attach_inferior): Remove extra add_inferior
call.
* gdbserver/server.h: Include mem-break.h. Update inferior.c
prototypes.
* gdbserver/target.c (read_inferior_memory)
(write_inferior_memory): New functions.
* gdbserver/target.h (read_inferior_memory)
(write_inferior_memory): Change macros to prototypes.
(struct target_ops): Update comments. Add const to write_memory
definition.
2002-04-20 17:04:09 +00:00
Andrew Cagney
f91305dd5e
Fix date.
2002-04-20 03:12:55 +00:00
Andrew Cagney
bf75c8c166
* sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
...
instead of ->prev.
* z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
* s390-tdep.c (s390_frame_chain): Do not use ->prev.
* rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
instead of ->prev.
2002-04-20 03:09:28 +00:00
Elena Zannoni
73d322b1b9
2002-04-19 Elena Zannoni <ezannoni@redhat.com>
...
Fix PR gdb/471.
* gdbtypes.c (init_simd_type): Rewrite using new functions.
(build_builtin_type_vec128): Ditto..
(append_composite_type_field): Fix calculation of type length in
union case.
2002-04-20 01:09:28 +00:00
gdbadmin
1d494665d3
*** empty log message ***
2002-04-20 00:00:06 +00:00
Eli Zaretskii
4be3147047
(Releasing GDB, Coding): Fix typos.
2002-04-19 19:33:57 +00:00
Eli Zaretskii
ccd9a834f9
go32-nat.c (store_register): Cast &a_tss to `char *', to avoid compiler
...
warning.
config/djgpp/README: Update.
2002-04-19 19:28:54 +00:00
David S. Miller
a1706bfd87
2002-04-17 David S. Miller <davem@redhat.com>
...
* gdb.asm/sparc64.inc: New file.
* gdb.asm/asm-source.exp: Handle sparc64-*-*.
2002-04-19 17:21:48 +00:00
Elena Zannoni
a73a20a2d5
2002-04-19 Elena Zannoni <ezannoni@redhat.com>
...
* gdb.asm/asm-source.exp: Don't use a symlink, just copy the
instruction file directly into the build tree. Clean up at end of
test.
2002-04-19 16:06:59 +00:00
Jason Thorpe
a57f9e49f5
* alpha-tdep.c (setup_arbitrary_frame): Rename...
...
(alpha_setup_arbitrary_frame): ...to this.
* config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
for alpha_setup_arbitrary_frame.
2002-04-19 05:11:53 +00:00
gdbadmin
1378fa9350
*** empty log message ***
2002-04-19 00:00:04 +00:00
David S. Miller
ba6783391f
2002-04-18 David S. Miller <davem@redhat.com>
...
* gdb.base/annota1.exp: Expect addresses as $hex + whitespace to
handle 64-bit platforms correctly.
* gdb.base/maint.exp: Likewise.
2002-04-18 22:17:01 +00:00
Kevin Buettner
b03399da11
* gdb.base/shlib-call.exp (additional_flags): AIX doesn't need
...
``-fpic'' when compiling files comprising a shared library, but
it does need additional linker flags in order to find shared
libraries at run time.
2002-04-18 21:07:20 +00:00
Andrew Cagney
f4f9705a2d
* gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
...
* gdbarch.h, gdbarch.c: Regenerate.
* defs.h (breakpoint_from_pc_fn): Delete type definition.
* target.h (memory_breakpoint_from_pc): Update declaration.
* config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
* arch-utils.c (legacy_breakpoint_from_pc): Update return type.
* mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
* mem-break.c (memory_breakpoint_from_pc): Ditto.
* rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
* s390-tdep.c (s390_breakpoint_from_pc): Ditto
* xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
* mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
* mips-tdep.c (mips_breakpoint_from_pc): Ditto.
* m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
* ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
* d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
* arch-utils.c (legacy_breakpoint_from_pc): Ditto..
* mem-break.c (default_memory_insert_breakpoint): Make `bp' a
const pointer.
* monitor.c (monitor_insert_breakpoint): Ditto.
* rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
* config/mcore/tm-mcore.h: Update copyright.
* mem-break.c: Ditto.
* xstormy16-tdep.c: Ditto.
2002-04-18 18:09:09 +00:00
Pierre Muller
29f319b84c
2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
...
* p-exp.y: Add precedence rule for '^' token.
This removes the shift/reduce conflicts.
Remove the comment concerning these shift/reduce conflicts.
2002-04-18 15:22:19 +00:00
Elena Zannoni
ebeac11a97
2002-04-17 Elena Zannoni <ezannoni@redhat.com>
...
* rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
(registers_powerpc_nofp): New register set for processors
without floating point unit.
2002-04-18 15:10:15 +00:00
Kevin Buettner
e20049926b
* gdb.base/cvexpr.c (use): New function.
...
(main): Invoke use() on all global variables to prevent
some linkers from deleting these otherwise unused symbols.
2002-04-18 13:21:03 +00:00
David S. Miller
27c31547c0
2002-04-18 David S. Miller <davem@redhat.com>
...
* MAINTAINERS: Add myself to write-after-approval.
2002-04-18 08:32:16 +00:00
Michael Chastain
d8937120db
2002-04-17 Michael Chastain <mec@shout.net>
...
From David S. Miller <davem@redhat.com>
* gdb.c++/ovldbreak.exp: Expect addresses as $hex + whitespace to
handle 64-bit platforms correctly.
2002-04-18 03:24:20 +00:00
gdbadmin
826ede653b
*** empty log message ***
2002-04-18 00:00:34 +00:00
Andrew Cagney
953836b25a
* rs6000-tdep.c (frame_initial_stack_address): Use
...
frame_register_read to read the alloca_reg.
2002-04-17 23:28:38 +00:00
Andrew Cagney
8b0d4340d7
* frame.c (find_saved_register): Find saved registers in the next
...
not prev frame.
Fix PR gdb/365.
2002-04-17 21:55:12 +00:00
Andrew Cagney
d886453249
* gdbarch.sh (LANG): Set to ``c''.
2002-04-17 18:47:54 +00:00
gdbadmin
6338913390
*** empty log message ***
2002-04-17 00:00:36 +00:00
gdbadmin
0c485e66f5
*** empty log message ***
2002-04-16 00:00:34 +00:00
Andrew Cagney
36cc83a397
* PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
2002-04-15 21:31:49 +00:00
Don Howard
5ca0cb286a
2002-04-15 Don Howard <dhoward@redhat.com>
...
From Eli Zaretskii <eliz@is.elta.co.il>
* gdb.texinfo (show max-user-call-depth): Correct formatting.
Provide a better explaination of this feature.
2002-04-15 17:23:54 +00:00
Andrew Cagney
2c7ef07446
* bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
...
Update copyright.
2002-04-15 05:23:01 +00:00
Andrew Cagney
628703c64b
tipo
2002-04-15 04:52:39 +00:00
Andrew Cagney
2f4150cc14
* hpread.c (hpread_getlntt): Add declaration.
...
Also fix PR gdb/391.
2002-04-15 04:52:08 +00:00
Andrew Cagney
56157b4ad6
* acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
...
* aclocal.m4, configure: Re-generate.
Fix PR gdb/391.
2002-04-15 04:28:41 +00:00
Elena Zannoni
6d1e3329f6
2002-04-14 Elena Zannoni <ezannoni@redhat.com>
...
* mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
instead of tm_print_insn.
2002-04-15 02:24:40 +00:00
Elena Zannoni
cb06fa073c
2002-04-14 Elena Zannoni <ezannoni@redhat.com>
...
* ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
2002-04-15 01:09:55 +00:00
gdbadmin
580af05d1c
*** empty log message ***
2002-04-15 00:00:32 +00:00
Andrew Cagney
f208ba17b9
* config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
...
* blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
(get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
* gdbint.texinfo (Target Architecture Definition): Remove
FRAME_CHAIN_COMBINE.
2002-04-14 13:38:07 +00:00
gdbadmin
56a584a128
*** empty log message ***
2002-04-14 00:00:02 +00:00
Michael Chastain
d5ba91def6
2002-04-12 Michael Chastain <mec@shout.net>
...
* gdbint.texinfo (Obsolete Conditionals): Remove reference to
REG_STACK_SEGMENT.
2002-04-13 15:56:42 +00:00
Michael Snyder
ffd61a589b
2002-04-12 Michael Snyder <msnyder@redhat.com>
...
From Jim Blandy <jimb@redhat.com>
* gdb.base/foo.c (foox): Remove section attribute; the linker
script can handle this instead.
* gdb.base/bar.c (barx): Same.
* gdb.base/baz.c (bazx): Same.
* gdb.base/grbx.c (grbxx): Same.
* gdb.base/overlays.exp: New test: check that GDB's manual overlay
manager doesn't automatically unmap overlays unnecessarily.
2002-04-13 00:21:40 +00:00
Michael Snyder
694f61fb27
2002-04-12 Michael Snyder <msnyder@redhat.com>
...
* Remote.c: Spelling fix.
2002-04-13 00:12:30 +00:00
gdbadmin
4249b23ce6
*** empty log message ***
2002-04-13 00:01:04 +00:00
Michael Snyder
20fe79c82c
2002-04-12 Michael Snyder <msnyder@redhat.com>
...
* gcore.c (default_derive_heap_segment): Use bfd_section_name.
If no symbol found for "sbrk", try "_sbrk".
(make_output_phdrs): Use bfd_section_name.
(gcore_copy_callback): Use bfd_section_name.
2002-04-12 23:09:48 +00:00
Michael Snyder
62995fc4a5
2002-04-12 Michael Snyder <msnyder@redhat.com>
...
* eval.c: Indentation fix-ups.
2002-04-12 22:54:17 +00:00
Michael Snyder
169a7369fc
2002-04-12 Michael Snyder <msnyder@redhat.com>
...
* d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
in case it gets applied to an address that is already
in the instruction space.
2002-04-12 22:50:42 +00:00
Michael Snyder
de74f71f00
2002-04-12 Michael Snyder <msnyder@redhat.com>
...
* cli/cli-decode.c (help_list): Allow long lines to wrap.
2002-04-12 22:44:18 +00:00
Don Howard
20f01a4665
2002-04-12 Don Howard <dhoward@redhat.com>
...
* cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
max_user_call_depth.
(init_cmd_lists): Initialize the new value;
* cli/cli-script.c (execute_user_command): Limit the call depth of
user defined commands. This avoids a core-dump when user commands
are infinitly recursive.
2002-04-12 22:31:23 +00:00
Kevin Buettner
a88376a3e1
Delete DEFAULT_LR_SAVE.
2002-04-12 19:48:37 +00:00
Michael Snyder
f2172603b5
2002-04-12 Michael Snyder <msnyder@redhat.com>
...
* source.c: White space fix-up.
2002-04-12 19:46:29 +00:00
Andrew Cagney
cda5a58a3e
* defs.h (read_relative_register_raw_bytes): Delete declaration.
...
* frame.c (frame_register_read): New function. Return non-zero on
success.
(read_relative_register_raw_bytes_for_frame): Delete.
(read_relative_register_raw_bytes): Delete.
* frame.h (frame_register_read): Declare.
* d30v-tdep.c: Update Copyright. Use frame_register_read.
* sh-tdep.c: Ditto.
* infcmd.c (do_registers_info): Ditto.
* hppa-tdep.c: Ditto.
* rs6000-tdep.c: Ditto.
* h8500-tdep.c: Ditto.
* mips-tdep.c: Ditto.
* h8300-tdep.c: Ditto.
* z8k-tdep.c: Ditto.
2002-04-12 18:18:59 +00:00
Kevin Buettner
2ea5f656d7
From Jimi X <jimix@watson.ibm.com>:
...
* rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
64-bit SysV ABI.
2002-04-12 17:12:24 +00:00
Kevin Buettner
27b1578512
From Jimi X <jimix@watson.ibm.com>:
...
* rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
bfd info.
2002-04-12 07:37:18 +00:00
Kevin Buettner
5d57ee30b3
From Jimi X <jimix@watson.ibm.com>:
...
* rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
register sets for these processor variants.
2002-04-12 07:20:32 +00:00
gdbadmin
c7b398788c
*** empty log message ***
2002-04-12 00:00:33 +00:00
Daniel Jacobowitz
bc1e36cac4
2002-04-11 Daniel Jacobowitz <drow@mvista.com>
...
* gdbserver/linux-low.c (usr_store_inferior_registers): Support
registers which are allowed to fail to store.
* gdbserver/linux-low.h (linux_target_ops): Likewise.
* gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
(ppc_cannot_store_register): FPSCR may not be storable.
* regformats/reg-ppc.dat: Support FPSCR.
2002-04-11 20:30:08 +00:00
Kevin Buettner
e3f36dbd47
Add support for the fpscr register for Power / PowerPC targets.
2002-04-11 19:08:56 +00:00
Michael Snyder
943c9c25d6
2002-04-11 Michael Snyder <msnyder@redhat.com>
...
* configure.in: Autoconfiscate _SYSCALL32 define for solaris.
* configure: Regenerate.
* config.in: Regenerate.
* acconfig.h: Add define for _SYSCALL32.
* core-sol2.c: Remove #define _SYSCALL32.
* solib-legacy.c: Remove #define _SYSCALL32.
2002-04-11 18:32:51 +00:00
Michael Snyder
fda6ae12ae
2002-02-14 Michael Snyder <msnyder@redhat.com>
...
* gdb.base/gcore.exp: Relax recognition of function breakpoint.
2002-04-11 18:24:08 +00:00
Michael Snyder
670a52dbc7
2002-02-13 Michael Snyder <msnyder@redhat.com>
...
* config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
2002-04-11 18:13:21 +00:00
Martin Hunt
6b8426a663
2002-04-10 Martin M. Hunt <hunt@redhat.com>
...
* gdb.base/ending-run.exp: Fix pattern for Mips targets
stepping out of main.
2002-04-11 03:31:26 +00:00
gdbadmin
6b2d8da01f
*** empty log message ***
2002-04-11 00:00:03 +00:00
Andrew Cagney
d8c0a2e707
* stack.c (select_frame): Cleanup internal error message, do not
...
use %p.
2002-04-10 23:32:33 +00:00
Andrew Cagney
7cc19214aa
* stack.c (select_frame): Check that selected_frame and the
...
specified level are as expected.
* blockframe.c (get_prev_frame): Set the `level' from next_frame.
Update copyright.
* frame.h (struct frame_info): Add field `level'. Update
copyright.
Work-in-progress PR gdb/464.
2002-04-10 22:14:02 +00:00
Andrew Cagney
67a2b77eff
* maint.c (maint_print_section_info): Rename print_section_info.
...
(print_bfd_section_info, print_objfile_section_info): Update.
* inferior.h (struct gdbarch): Add opaque declaration.
* gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
* gdbarch.h: Regenerate.
2002-04-10 22:00:20 +00:00
Michal Ludvig
8cfda98c96
* x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
...
(PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
(kernel_u_size): Added.
* config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
(PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
2002-04-10 12:12:36 +00:00
Michael Chastain
268182205b
2002-04-09 Michael Chastain <mec@shout.net>
...
* gdbint.texinfo (Obsolete Conditionals): Remove references to
PYRAMID_* macros.
2002-04-10 05:11:35 +00:00
Michael Chastain
34af487575
2002-04-09 Michael Chastain <mec@shout.net>
...
* gdb.c++/local.cc (main): Move call to marker1() inside nested
scope so that the nested scope tests will make sense.
* gdb.c++/local.exp: Write patterns that actually work with gcc
(the HP patterns "were never known to work with gcc").
Keep the old aCC patterns too.
2002-04-10 03:52:57 +00:00
Jim Ingham
ca439ad26a
2002-04-04 Jim Ingham <jingham@apple.com>
...
* valarith.c (find_size_for_pointer_math): New function, either returns
the size for a pointer's target, returns 1 for void *, or errors for
incomplete types.
(value_add, value_sub): use find_size_for_pointer_math.
2002-04-10 00:11:51 +00:00
gdbadmin
070ccb2d01
*** empty log message ***
2002-04-10 00:00:04 +00:00
Daniel Jacobowitz
2f2893d916
2002-04-09 Daniel Jacobowitz <drow@mvista.com>
...
* linux-low.c (linux_look_up_symbols): New hook.
(linux_target_ops): Add linux_look_up_symbols.
* remote-utils.c (decode_address): New function.
(look_up_one_symbol): New function.
* server.c (handle_query): Call target look_up_symbols hook.
* server.h (look_up_one_symbol): Add prototype.
* target.h (struct target_ops): Add look_up_symbols hook.
2002-04-09 23:52:06 +00:00
Daniel Jacobowitz
d64b884136
2002-04-09 Daniel Jacobowitz <drow@mvista.com>
...
* gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
* ChangeLog: Correct paths in last ChangeLog entry.
2002-04-09 22:58:00 +00:00
Daniel Jacobowitz
2ec06d2e41
2002-04-09 Daniel Jacobowitz <drow@mvista.com>
...
* linux-low.h: Remove obsolete prototypes.
(struct linux_target_ops): New.
(extern the_low_target): New.
* linux-low.c (num_regs, regmap): Remove declarations.
(register_addr): Use the_low_target explicitly.
(fetch_register): Likewise.
(usr_fetch_inferior_registers): Likewise.
(usr_store_inferior_registers): Likewise.
* linux-arm-low.c (num_regs): Remove.
(arm_num_regs): Define.
(arm_regmap): Renamed from regmap, made static.
(arm_cannot_fetch_register): Renamed from cannot_fetch_register,
made static.
(arm_cannot_store_register): Renamed from cannot_store_register,
made static.
(the_low_target): New.
* linux-i386-low.c (num_regs): Remove.
(i386_num_regs): Define.
(i386_regmap): Renamed from regmap, made static.
(i386_cannot_fetch_register): Renamed from cannot_fetch_register,
made static.
(i386_cannot_store_register): Renamed from cannot_store_register,
made static.
(the_low_target): New.
* linux-ia64-low.c (num_regs): Remove.
(ia64_num_regs): Define.
(ia64_regmap): Renamed from regmap, made static.
(ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
made static.
(ia64_cannot_store_register): Renamed from cannot_store_register,
made static.
(the_low_target): New.
* linux-m68k-low.c (num_regs): Remove.
(m68k_num_regs): Define.
(m68k_regmap): Renamed from regmap, made static.
(m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
made static.
(m68k_cannot_store_register): Renamed from cannot_store_register,
made static.
(the_low_target): New.
* linux-mips-low.c (num_regs): Remove.
(mips_num_regs): Define.
(mips_regmap): Renamed from regmap, made static.
(mips_cannot_fetch_register): Renamed from cannot_fetch_register,
made static.
(mips_cannot_store_register): Renamed from cannot_store_register,
made static.
(the_low_target): New.
* linux-ppc-low.c (num_regs): Remove.
(ppc_num_regs): Define.
(ppc_regmap): Renamed from regmap, made static.
(ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
made static.
(ppc_cannot_store_register): Renamed from cannot_store_register,
made static.
(the_low_target): New.
* linux-s390-low.c (num_regs): Remove.
(s390_num_regs): Define.
(s390_regmap): Renamed from regmap, made static.
(s390_cannot_fetch_register): Renamed from cannot_fetch_register,
made static.
(s390_cannot_store_register): Renamed from cannot_store_register,
made static.
(the_low_target): New.
* linux-sh-low.c (num_regs): Remove.
(sh_num_regs): Define.
(sh_regmap): Renamed from regmap, made static.
(sh_cannot_fetch_register): Renamed from cannot_fetch_register,
made static.
(sh_cannot_store_register): Renamed from cannot_store_register,
made static.
(the_low_target): New.
* linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
(the_low_target): New.
2002-04-09 22:44:43 +00:00
Michael Snyder
80f8a6eba5
2002-04-05 Michael Snyder <msnyder@redhat.com>
...
* breakpoint.c (clear_command): Rewrite middle section to
combine two loops with identical control conditions.
Add a cleanup to eliminate a memory leak.
2002-04-09 22:33:25 +00:00
Andrew Cagney
96cb11df6d
* frame.c (read_relative_register_raw_bytes_for_frame): Do not
...
override FP_REGNUM with frame->fp. Update copyright.
* parse.c (num_std_regs, std_regs): Delete.
(target_map_name_to_register): Do not search std_regs. Update
function description.
* parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
declarations. Update copyright.
Fix PR gdb/251.
2002-04-09 22:14:39 +00:00
Daniel Jacobowitz
c3a3ccc760
2002-04-09 Daniel Jacobowitz <drow@mvista.com>
...
* gdbserver/Makefile.in: Add stamp-h target.
* gdbserver/configure.in: Create stamp-h.
* gdbserver/configure: Regenerated.
2002-04-09 21:25:29 +00:00
Daniel Jacobowitz
ce3a066d93
2002-04-09 Daniel Jacobowitz <drow@mvista.com>
...
* gdbserver/inferiors.c: New file.
* gdbserver/target.c: New file.
* gdbserver/target.h: New file.
* gdbserver/Makefile.in: Add target.o and inferiors.o. Update
dependencies.
* gdbserver/linux-low.c (inferior_pid): New static variable,
moved from server.c.
(linux_create_inferior): Renamed from create_inferior.
Call add_inferior. Return 0 on success instead of a PID.
(linux_attach): Renamed from myattach.
(linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
(linux_thread_alive): Renamed from mythread_alive.
(linux_wait): Renamed from mywait. Call clear_inferiors () if the
child dies.
(linux_resume): Renamed from myresume. Add missing ``return 0''.
(regsets_store_inferior_registers): Correct error message.
Add missing ``return 0''.
(linux_fetch_registers): Renamed from fetch_inferior_registers.
(linux_store_registers): Renamed from store_inferior_registers.
(linux_read_memory): Renamed from read_inferior_memory.
(linux_write_memory): Renamed from write_inferior_memory.
(linux_target_ops): New structure.
(initialize_low): Call set_target_ops ().
* gdbserver/remote-utils.c (unhexify): New function.
(hexify): New function.
(input_interrupt): Send signals to ``signal_pid''.
* gdbserver/server.c (inferior_pid): Remove.
(start_inferior): Update create_inferior call.
(attach_inferior): Call add_inferior.
(handle_query): New function.
(main): Call handle_query for `q' packets.
* gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
2002-04-09 21:17:45 +00:00
Daniel Jacobowitz
0729219dab
2002-04-09 Daniel Jacobowitz <drow@mvista.com>
...
* gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
dependencies.
* gdbserver/configure.in: Check for <string.h>
* gdbserver/configure: Regenerate.
* gdbserver/config.in: Regenerate.
* gdbserver/gdbreplay.c: Include needed system headers.
(remote_open): Remove strchr prototype.
* gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
* gdbserver/regcache.c (supply_register): Change buf argument to const void *.
(supply_register_by_name): Likewise.
(collect_register): Change buf argument to void *.
(collect_register_by_name): Likewise.
* gdbserver/regcache.h: Add missing prototypes.
* gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
* gdbserver/server.c (handle_query): New function.
(attached): New static variable, moved out of main.
(main): Quiet longjmp clobber warnings.
* gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
* gdbserver/utils.c (error): Remove NORETURN.
(fatal): Likewise.
2002-04-09 21:11:35 +00:00
Daniel Jacobowitz
97658e92df
2002-04-09 Daniel Jacobowitz <drow@mvista.com>
...
* symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
after the last symbol in a block.
2002-04-09 20:51:33 +00:00
Daniel Jacobowitz
2d1676a068
2002-04-09 Daniel Jacobowitz <drow@mvista.com>
...
* gdb.base/attach.exp: Correct target board test.
2002-04-09 20:48:45 +00:00
Pierre Muller
6044e3ebce
2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
...
* p-exp.y (yylex): Handle also the fact that is_a_field_of_this
is non zero as a found symbol.
2002-04-09 10:52:41 +00:00
Andrew Cagney
0406ec40ea
* findvar.c: Include "builtin-regs.h".
...
(value_of_register): Call value_of_builtin_reg when applicable.
* parse.c: Include "builtin-regs.h" and "gdb_assert.h".
(target_map_name_to_register): Call
builtin_reg_map_name_to_regnum.
* Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
(COMMON_OBS): Add builtin-regs.o and std-regs.o.
(builtin_regs_h): Define.
(builtin-regs.o): New target.
(findvar.o): Add $(builtin_regs_h).
* builtin-regs.c, builtin-regs.h: New files.
* std-regs.c: New file.
Partial fix for PR gdb/251.
2002-04-09 03:06:14 +00:00
Kevin Buettner
56a6dfb9de
* rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
...
it's no longer required.
2002-04-09 02:26:10 +00:00
Andrew Cagney
3a808432dd
* Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
2002-04-09 01:52:57 +00:00
Kevin Buettner
7c40d5414c
* rs6000-tdep.c (rs6000_software_single_step): Use
...
rs6000_breakpoint_from_pc() to fetch breakpoint instruction
and size. Use target_insert_breakpoint() and
target_remove_breakpoint() to insert and remove breakpoints
instead of explicit memory reads and writes.
2002-04-09 01:41:46 +00:00
Kevin Buettner
cc9836a8aa
* config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
...
* rs6000-tdep.c (rs6000_push_arguments): Eliminate
ELF_OBJECT_FORMAT ifdef.
2002-04-09 00:53:28 +00:00
Kevin Buettner
7495d1dc3f
From Jimi X <jimix@watson.ibm.com>:
...
* rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
2002-04-09 00:10:09 +00:00
gdbadmin
e8969f3538
*** empty log message ***
2002-04-09 00:00:33 +00:00