Andrew Cagney
109c3e397e
2005-04-26 Andrew Cagney <cagney@gnu.org>
...
* remote.c (remote_open_1): Move "ex"'s declaration to where it is
used.
(remote_get_thread_local_address): Use throw_error, include a
printed string.
* linux-thread-db.c (thread_db_get_thread_local_address): Ditto.
* dwarf2loc.c (dwarf_expr_tls_address): Ditto.
* cli/cli-script.c (script_from_file): Mark up throw_error message.
* linespec.c (symtab_from_filename, decode_variable): Ditto.
2005-04-26 14:57:22 +00:00
Andrew Cagney
71fff37b08
2005-04-26 Andrew Cagney <cagney@gnu.org>
...
Rename 'struct exception' to 'struct gdb_exception'.
* wrapper.c: Update.
* varobj.c: Update.
* tui/tui-interp.c: Update.
* remote.c: Update.
* mi/mi-main.c: Update.
* mi/mi-interp.c: Update.
* linux-thread-db.c: Update.
* interps.h: Update.
* interps.c: Update.
* exceptions.h: Update.
* exceptions.c: Update.
* dwarf2loc.c: Update.
* cli/cli-interp.c: Update.
* cli/cli-script.c: Update.
* breakpoint.c: Update.
2005-04-26 05:03:41 +00:00
Mark Mitchell
3aa6b2ca26
* event-loop.c (gdb_select): Program defensively.
2005-04-25 23:51:33 +00:00
Mark Mitchell
011825f07d
* event-loop.c (gdb_assert.h): Include.
...
(<windows.h>): Include under Windows.
(<io.h>): Likeiwse.
(gdb_select): New function.
(gdb_wait_for_event): Use it.
* Makefile.in (event-loop.o): Depend on $(gdb_assert_h).
2005-04-25 21:45:56 +00:00
Mark Kettenis
02a71ae806
* sparc64-tdep.c: Include "dwarf2-frame.h".
...
(sparc64_dwarf2_frame_init_reg): New function.
* Makefile.in (sparc64-tdep.o): Update dependencies.
2005-04-23 15:40:54 +00:00
David S. Miller
2033872674
2005-04-22 David S. Miller <davem@davemloft.net>
...
* sparc64-linux-tdep.c (sparc64_linux_init_abi): Add call to
sparc64_init_abi().
2005-04-22 23:08:06 +00:00
Mark Kettenis
a07ff70c94
* ser-base.c: Include "ser-base.h" instead of "ser-unix.h".
2005-04-22 21:23:28 +00:00
Mark Mitchell
248697b2a7
* ser-base.c (<sys/time.h>): Include.
2005-04-22 20:32:01 +00:00
Mark Kettenis
a86c5ab248
* ppcobsd-tdep.c (ppcobsd_init_abi): Set return_value.
2005-04-22 20:29:14 +00:00
Mark Kettenis
70f1dc74c3
* sparc-linux-tdep.c: Reorder includes. Tweak a few comments.
...
(LINUX32_SIGTRAMP_INSN0, LINUX32_SIGTRAMP_INSN1)
(LINUX32_RT_SIGTRAMP_INSN0, LINUX32_RT_SIGTRAMP_INSN1): Remove
macros.
(sparc32_linux_sigframe, sparc32_linux_rt_sigframe): Hardcode
instructions.
* sparc64-linux-tdep.c: Reorder includes. Tweak a few comments.
(LINUX64_RT_SIGTRAMP_INSN0, LINUX64_RT_SIGTRAMP_INSN1): Remove
macros.
(sparc64_linux_rt_sigframe): Hardcode instructions.
* Makefile.in (sparc-linux-tdep.o, sparc64-linux-tdep.o): Update
dependencies.
2005-04-22 19:52:21 +00:00
Mark Kettenis
a33e488c68
* sparc-linux-tdep.c: Update copyright year.
...
(sparc32_linux_init_abi): Set skip_trampoline_code and
solib_svr4_fetch_link_map_offsets. Set TDEP->plt_entry_size.
Don't set software_single_step and don't call
sparc32_sol2_init_abi.
* sparc64-linux-tdep.c: Update copyright year.
(sparc64_linux_init_abi): Set skip_trampoline_code and
solib_svr4_fetch_link_map_offsets. Set TDEP->plt_entry_size.
Don't set software_single_step and don't call
sparc64_sol2_init_abi.
2005-04-22 19:06:23 +00:00
Eli Zaretskii
24ec834bce
* remote-st.c (_initialize_remote_st2000): Remove the extraneous
...
"<command>" string from the call to add_com.
* remote-sim.c (_initialize_remote_sim): Ditto.
* remote-utils.c (_initialize_sr_support): Ditto.
* remote-mips.c (_initialize_remote_mips): Ditto.
2005-04-22 12:49:27 +00:00
David S. Miller
81f726abf0
* sparc-linux-tdep.c (sparc32_linux_sigframe_init): New function.
...
(sparc32_linux_sigframe, sparc32_linux_rt_sigframe): New tramp_frames.
(sparc_linux_sigtramp_start, sparc32_linux_sigtramp_start,
sparc32_linux_rt_sigtramp_start, sparc32_linux_sigtramp_p,
sparc32_linux_sigtramp_frame_cache,
sparc32_linux_sigtramp_frame_this_id,
sparc32_linux_sigtramp_frame_prev_register,
sparc32_linux_sigtramp_frame_unwind,
sparc32_linux_sigtramp_frame_sniffer): Delete.
(sparc32_linux_init_abi): Register new tramp unwinders. Kill
register of old sigtramp sniffer.
* sparc64-linux-tdep.c (sparc64_linux_sigframe_init): New
function.
(sparc64_linux_rt_sigframe): New tramp frame.
(sparc64_linux_sigtramp_start, sparc64_linux_sigtramp_p,
sparc64_linux_sigtramp_frame_cache,
sparc64_linux_sigtramp_frame_this_id,
sparc64_linux_sigtramp_frame_prev_register,
sparc64_linux_sigtramp_frame_unwind,
sparc64_linux_sigtramp_frame_sniffer): Delete.
(sparc64_linux_init_abi): Register new tramp unwinders. Kill
register of old sigtramp sniffer.
Makefile.in (sparc64-linux-tdep.o): Update dependencies.
(sparc-linux-tdep.o): Likewise.
2005-04-21 22:04:04 +00:00
Mark Kettenis
401e7faf6a
* ser-base.c: Include "gdb_string.h".
...
* Makefile.in (ser-base.o): Update dependencies.
2005-04-21 21:23:25 +00:00
David S. Miller
78a0fd579c
* sparc-linux-tdep.c (sparc32_linux_sigtramp_p): Fix
...
signal return stub symbol names, __restore and __restore_rt are
the i386 symbol names not the sparc ones.
(sparc32_linux_sigtramp_frame_cache): Document bits/sigcontext.h
as where the offsets were obtained from.
* sparc64-linux-tdep.c (LINUX64_RT_SIGTRAMP_INSN0,
LINUX64_RT_SIGTRAMP_INSN1): New defines.
(sparc64_linux_sigtramp_start, sparc64_linux_sigtramp_p,
sparc64_linux_sigtramp_frame_cache,
sparc64_linux_sigtramp_frame_this_id,
sparc64_linux_sigtramp_frame_prev_register,
sparc64_linux_sigtramp_frame_sniffer): New functions.
(sparc64_linux_sigtramp_frame_unwind): New frame unwinder.
(sparc64_linux_init_abi): Register sigtramp frame sniffer.
* Makefile.in (sparc64-linux-tdep.o): Update dependencies.
2005-04-21 19:38:20 +00:00
Mark Mitchell
b450502905
* configure.ac: On MinGW, define USE_WIN32API and link with
...
-lws2_32.
* ser-tcp.c (<winsock2.h>): Include, for Windows.
(ETIMEDOUT): Define, for Windows.
(ioctl): Likewise.
(closesocket): Define, for POSIX.
(net_open): Adjust for differences in socket functions between
Windows and UNIX.
(net_close): Likweise.
(net_read_prim): New function.
(net_write_prim): Likewise.
(_initialize_ser_tcp): Initialize winsock. Fill in read_prim and
write_prim.
* ser-unix.h (ser_unix_readcchar): Remove.
(ser_unix_read_prim): Declare.
(ser_unix_write_prim): Likewise.
* ser-unix.c (generic_readchar): Move to ser-base.c.
(ser_unix_wait_for): Likewise.
(do_unix_readchar): Likewise.
(ser_unix_readchar): Likewise.
(_initialize_ser_hardwire): Initialize read_prim and write_prim.
(ser_unix_read_prim): New function.
(ser_unix_write_prim): Likewise.
* ser-base.h (generic_readchar): Declare.
(ser_base_readchar): Likewise.
* ser-base.c (<winsock2.h>): Include, for windows.
(fd_event): Use the read primitive specified by the serial
interface.
(ser_base_wait_for): Moved from ser-unix.c
(do_ser_base_read_char): Likewise.
(generic_readchar): Likewise.
(ser_base_readchar): Likewise.
(ser_base_write): Use the write primitive specified by the serial
interface.
* ser-pipe.c (_initialize_ser_pipe): Use ser_base_readchar, not
ser_unix_readchar. Initialize read_prim and write_prim.
* serial.c (struct serial_ops): Add read_prim and write_prim.
* configure: Regenerate.
2005-04-21 05:34:33 +00:00
Ben Elliston
8470e92791
* c-lang.c (c_create_fundamental_type): Comment fix.
2005-04-19 05:58:24 +00:00
Michael Snyder
9cacebf50f
2005-04-18 Michael Snyder <msnyder@redhat.com>
...
* mn10300-tdep.c: Assimilate code from mn10300-prologue.c.
* mn10300-prologue.c: Remove.
* mn10300-tdep.h: Add enums from mn10300-prologue.c.
Remove prototypes.
* config/mn10300/mn10300.mt: Remove mn10300-prologue module.
2005-04-18 23:15:00 +00:00
Michael Snyder
0cc748c077
2005-04-18 Michael Snyder <msnyder@redhat.com>
...
* config/mn10300/mn10300.mt: Add mn10300-prologue module.
2005-04-18 19:38:17 +00:00
Michael Snyder
7166c4a9e8
2005-04-18 Michael Snyder <msnyder@redhat.com>
...
* ia64-tdep.c (ia64_get_dyn_info_list): Fix indent.
2005-04-18 19:34:19 +00:00
Mark Kettenis
235c4ffdf2
* config/nm-bsd.h: Remove file.
2005-04-17 22:22:47 +00:00
Mark Kettenis
57cd0b542e
* hppabsd-nat.c: Update copyright year. Include "target.h" and
...
"inf-ptrace.h".
(hppabsd_fetch_registers): Renamed from fetch_inferior_registers;
made static.
(hppabsd_store_registers): Renamed from store_inferior_registers;
made static.
(_initialize_hppabsd_nat): New function and prototype.
* config/pa/obsd.mh (NATDEPFILES): Remove infptrace.o and
inftarg.o. Add inf-ptrace.o.
(NAT_FILE): Remove.
* Makefile.in (hppabsd-nat.o): Update dependencies.
2005-04-17 22:20:20 +00:00
Mark Kettenis
f17882ade0
* pa64solib.c, pa64solib.h: Remove files.
...
* Makefile.in (pa64solib_h): Remove variable
(pa64solib.o): Remove dependency.
2005-04-17 10:24:15 +00:00
Mark Kettenis
65d034bc60
* ppcobsd-nat.c: Update copyright year. Include "inf-ptrace.h".
...
(ppcobsd_fetch_registers): Renamed from fetch_inferior_registers;
made static.
(ppcobsd_store_registers): Renamed from store_inferior_registers;
made static.
(_initialize_ppcobsd_nat): Construct and add target vector.
* config/powerpc/obsd.mh (NATDEPFILES): Remove infptrace.o and
inftarg.o. Add inf-ptrace.o.
(NAT_FILE): Remove.
* Makefile.in (ppcobsd-nat.o): Update dependencies.
2005-04-16 22:12:09 +00:00
Mark Kettenis
5a49dfd0ac
* ppcobsd-tdep.c: Include "floatformat.h".
...
(ppcobsd_init_abi): Set long_double_bit and long_double_format.
* Makefile.in (ppcobsd-tdep.o): Update dependencies.
2005-04-16 21:37:02 +00:00
Mark Kettenis
5d6210f043
* ppcobsd-tdep.c: Fix typo in comment.
...
(_initialize_ppcobsd_tdep): Register GDB_OSABI_OPENBSD_ELF for
bfd_arch_rs6000 too.
2005-04-16 21:08:21 +00:00
Kevin Buettner
571dd61707
* remote.c (remote_get_thread_local_address): Throw a more
...
meaningful exception when remote target doesn't have support
for the qGetTLSAddr packet.
2005-04-15 20:55:56 +00:00
Kevin Buettner
3869131802
Add remote TLS support.
2005-04-15 19:58:59 +00:00
Kevin Buettner
3ed07be458
* remote.c (add_packet_config_cmd): Delete unused variables.
2005-04-15 17:44:53 +00:00
Kevin Buettner
c9365369a6
Eliminate calls to deprecated_show_value_hack(). This also eliminates the
...
printing of redundant information.
2005-04-15 17:13:23 +00:00
Corinna Vinschen
c30dc7000d
* MAINTAINERS: Change sh64-elf state to non-broken.
...
* Makefile.in: Fix dependencies for sh64-tdep.o.
* configure.tgt: Add sh64-*-elf case.
* sh-tdep.c (sh_gdbarch_init): Reactivate bfd_mach_sh5 case.
* sh64-tdep.c: Rework to replace all deprecated mechanisms with
modern methods.
* config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
* config/sh/sh64.mt: Resurrect.
2005-04-15 08:01:15 +00:00
Kazuhiro Inaoka
86fc41d1fe
2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
...
* regformats/reg-m32r.dat: New file.
2005-04-15 00:28:03 +00:00
Daniel Jacobowitz
28e97307c8
* arm-tdep.c (fp_model_strings): Add terminating NULL.
...
(arm_abi_strings, arm_abi_global, arm_abi_string): New
variables.
(arm_extract_return_value, arm_store_return_value): Don't use
arm_get_fp_model.
(arm_get_fp_model, arm_set_fp): Delete.
(arm_update_current_architecture): New function.
(set_fp_model_sfunc): Call arm_update_current_architecture.
(show_fp_model): Update output messages.
(arm_set_abi, arm_show_abi): New functions.
(arm_elf_osabi_sniffer): Only handle ELFOSABI_ARM.
(arm_gdbarch_init): Infer the object's ABI separately from its
OSABI. Search for a matching architecture. Honor the global
ABI and FPU settings. Set floating point format based on the
architecture.
(arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs):
Delete.
(_initialize_arm_tdep): Don't call gdbarch_register_osabi.
Create "arm set abi" command.
* arm-tdep.h (arm_get_fp_model): Delete prototype.
(enum arm_abi_kind): New type.
(struct gdbarch_tdep): Add arm_abi field.
* arm-linux-tdep.c (arm_linux_init_abi): Only override
tdep->fp_model if it is ARM_FLOAT_AUTO.
* armnbsd-tdep.c (arm_netbsd_aout_init_abi): Likewise.
(arm_netbsd_elf_init_abi): Likewise.
* defs.h (enum gdb_osabi): Delete ARM-specific OSABIs.
* osabi.c (gdb_osabi_name): Likewise.
2005-04-14 18:40:26 +00:00
Daniel Jacobowitz
9494c6a5dc
gdb/
...
* config/djgpp/fnchange.lst: Remove entries for gdb.gdbserver.
gdb/testsuite/
* Makefile.in (ALL_SUBDIRS): Replace gdb.gdbserver with
gdb.server.
* configure.ac: Likewise.
* configure: Regenerated.
* gdb.gdbserver/Makefile.in: Moved to...
* gdb.server/Makefile.in: ... here.
* gdb.gdbserver/server.c: Moved to...
* gdb.server/server.c: ... here.
* gdb.gdbserver/server-run.exp: Moved to...
* gdb.server/server-run.exp: ... here.
2005-04-11 14:13:14 +00:00
Mark Kettenis
bdbcb8b4b7
* rs6000-tdep.c (ppc_supply_fpregset): Increment offset by 8 for
...
floating-point registers.
(ppc_collect_fpregset): Likewise. Fix collection of registers.
2005-04-10 21:14:37 +00:00
Mark Kettenis
18b2ae85c4
* ppcobsd-tdep.c: Update copyright year. Include "trad-frame.h"
...
and "tramp-frame.h".
(ppcobsd_sigtramp_cache_init): New function.
(ppcobsd_sigtramp): New variable.
(ppcobsd_init_abi): Prepend signal trampoline unwinder.
* Makefile.in (ppcobsd-tdep.o): Update dependencies.
2005-04-09 11:39:38 +00:00
Andrew Cagney
06e819e3ca
2005-04-08 Andrew Cagney <cagney@gnu.org>
...
* MAINTAINERS (GDB/MI): Andrew Cagney, Elena Zannoni, and Fernando
Nasser have decided to step back from GDB/MI.
2005-04-09 00:29:37 +00:00
Daniel Jacobowitz
6f8eac0e51
gdb/testsuite/
...
* Makefile.in (ALL_SUBDIRS): Add gdb.gdbserver.
* configure.ac: Create gdb.gdbserver/Makefile.
* configure: Regenerated.
* lib/gdbserver-support.exp: New file, derived from
config/gdbserver.exp.
* config/gdbserver.exp: Use gdbserver-support.exp.
* gdb.gdbserver/Makefile.in: New file.
* gdb.gdbserver/server.c: New file.
* gdb.gdbserver/server-run.exp: New file.
gdb/
* config/fnchange.lst: Add testsuite/gdb.gdbserver entries.
2005-04-08 12:57:00 +00:00
Daniel Jacobowitz
0228dfb97d
* dwarf2-frame.c (struct dwarf2_frame_cache): New field
...
undefined_retaddr.
(dwarf2_frame_cache): Initialize undefined_retaddr.
(dwarf2_frame_this_id): Return an invalid frame ID if
undefined_retaddr.
2005-04-08 12:10:21 +00:00
Jim Blandy
21b4b2f28c
Move construction of IA-32 vector types to i386-tdep.c.
...
* gdbtypes.c (build_builtin_type_vec64i,
build_builtin_type_vec128i): Delete functions.
(builtin_type_vec64i, builtin_type_vec128i): Delete variables.
(build_gdbtypes): Don't initialize them.
(_initialize_gdbtypes): Don't register GDBARCH swap entries for
them.
* gdbtypes.h (builtin_type_vec64i, builtin_type_vec128i): Delete
declarations.
(builtin_type_v2_float, builtin_type_v2_int32,
builtin_type_v4_int16, builtin_type_v8_int8,
builtin_type_v2_double, builtin_type_v4_float,
builtin_type_v2_int64, builtin_type_v4_int32,
builtin_type_v8_int16, builtin_type_v16_int8): Add extern
declarations.
* i386-tdep.c (i386_mmx_type, i386_sse_type): New variables.
(i386_build_mmx_type, i386_build_sse_type): New functions.
(i386_register_type): Call them, rather than referring to
builtin_type_vec64i and builtin_type_vec128i.
2005-04-06 17:01:25 +00:00
Daniel Jacobowitz
37c4d19728
* mips-linux-tdep.c (mips_linux_o32_sigframe_init): Adjust
...
big-endian correction code to not offset 32-bit registers.
Locate floating point registers correctly.
2005-04-02 22:59:34 +00:00
Andreas Schwab
02dfa7debf
Fix typo.
2005-04-02 21:11:20 +00:00
Mark Kettenis
7509373f99
* main.c: Update copyright year.
...
(captured_main): Avois using strcpy and strcat.
2005-04-02 20:25:22 +00:00
Michael Snyder
0c98cc2b81
2005-04-01 Michael Snyder <msnyder@redhat.com>
...
* dummy-frame.c (dummy_frame_sniffer): Optimization: don't bother
computing this_id if there are no dummy frames on the stack.
2005-04-02 00:45:52 +00:00
Michael Snyder
1fb1ca2782
2005-04-01 Michael Snyder <msnyder@redhat.com>
...
* mn10300-tdep.c (mn10300_frame_unwind_cache): Use
find_partial_func instead of unwind_pc to identify frame.
(mn10300_push_dummy_call): Handle struct args, struct_return.
2005-04-02 00:40:51 +00:00
Michael Snyder
9b3c083c83
2005-04-01 Michael Snyder <msnyder@redhat.com>
...
* mn10300-prologue.c (set_movm_offsets): Don't test variable
before setting it.
* mn10300-tdep.c (mn10300_skip_prologue): Use analyze_prologue
instead of skip_prologue_using_sal.
2005-04-02 00:08:14 +00:00
Kevin Buettner
186993b458
Add TLS load module support for FRV.
2005-03-31 20:39:14 +00:00
Kevin Buettner
b275693032
* gdbarch.sh (fetch_tls_load_module_address): New architecture method.
...
* gdbarch.c, gdbarch.h: Regenerate.
* dwarf2loc.c (dwarf_expr_tls_address): Fetch TLS load module
address and pass this address, instead of the objfile address, to
target_get_thread_local_address().
* linux-thread-db.c (thread_db_get_thread_local_address): Change
second parameter from type ``struct objfile *'' to CORE_ADDR. Do
not call svr4_fetch_objfile_link_map() to fetch the load module
address.
* target.h (struct target_ops): Change second parameter of
``to_get_thread_local_address'' from ``struct objfile *'' to
``CORE_ADDR''.
* alpha-linux-tdep.c (solib-svr4.h): Include.
(alpha_linux_init_abi): Register TLS load module fetcher.
* amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
* hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
* i386-linux-tdep.c (i386_linux_init_abi): Likewise.
* ia64-linux-tdep.c (solib-svr4.h): Include.
(ia64_linux_init_abi): Register TLS load module fetcher.
* m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
* m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
* mips-linux-tdep.c (mips_linux_init_abi): Likewise.
* s390-tdep.c (s390_gdbarch_init): Likewise.
* sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
* sparc64-linux-tdep.c (solib-svr4.h): Include.
(sparc64_linux_init_abi): Register TLS load module fetcher.
* Makefile.in (alpha-linux-tdep.o, ia64-linux-tdep.o)
(sparc-linux-tdep.o): Update dependencies.
2005-03-31 19:58:26 +00:00
Daniel Jacobowitz
8875030493
* c-valprint.c (c_value_print): Fix up some formatting. Use
...
check_typedef.
testsuite/
* gdb.base/ptr-typedef.exp, gdb.base/ptr-typedef.c: New files.
2005-03-29 20:37:19 +00:00
Daniel Jacobowitz
adb8a87cfd
* arm-linux-nat.c (store_register, store_regs): Handle
...
ARM_PS_REGNUM.
2005-03-29 16:58:23 +00:00
Daniel Jacobowitz
498b1f8763
* arm-linux-tdep.c (arm_linux_thumb_be_breakpoint)
...
(arm_linux_thumb_le_breakpoint): New. Update comments.
(arm_linux_init_abi): Set Thumb breakpoints also.
2005-03-29 16:57:30 +00:00
Daniel Jacobowitz
842e1f1ec4
* Makefile.in (arm-tdep.o): Update dependencies.
...
* arm-tdep.c: Include "objfiles.h" and "dwarf2-frame.h".
(arm_gdbarch_init): Register dwarf2_frame_sniffer.
2005-03-29 16:56:40 +00:00
Joel Brobecker
6d1eba4cf3
* irix5-nat.c (supply_fpregset): Fix bug that caused the FSR
...
register value to be incorrectly written in the regcache.
(fill_fpregset): Fix bug that caused the FSR register value
to be incorrectly read from the regcache.
2005-03-28 22:31:55 +00:00
Daniel Jacobowitz
fce5e38603
* remote-rdi.c (arm_rdi_insert_breakpoint): Don't call
...
arm_pc_is_thumb_dummy.
2005-03-28 19:51:10 +00:00
Mark Kettenis
8391b9b130
* sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Handle
...
StackGhost.
2005-03-28 15:29:37 +00:00
Mark Kettenis
f700a3641b
* sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
...
Handle StackGhost in 64-bit code.
* sparc64-tdep.c (sparc64_frame_prev_register): Handle StackGhost.
2005-03-28 13:42:49 +00:00
Christopher Faylor
8da8e0b3f3
* win32-nat.c (handle_exception): Treat win32 routines which check for valid
...
addresses as "special" and don't stop when a SEGV is detected.
(get_child_debug_event): Properly flag exception as unhandled.
2005-03-27 05:21:12 +00:00
Daniel Jacobowitz
5e5100cb9c
* cp-support.c (cp_class_name_from_physname): Rewrite.
...
(unqualified_name_from_comp): New function, broken out from
method_name_from_physname. Correct handling for typed names
and templates.
(method_name_from_physname): Use unqualified_name_from_comp.
(cp_func_name, remove_params): Move earlier in the file. Add
better comments. Use the component tree to parse the name.
(_initialize_cp_support): Remove stray whitespace.
2005-03-26 21:56:46 +00:00
Mark Kettenis
dc6a2ca431
* exec.c (bfdsec_to_vmap): Use strcmp instead of DEPRECATED_STREQ.
2005-03-26 16:50:45 +00:00
Mark Kettenis
59bb1042a1
* inflow.h: Update copyright year. Remove #ifdef SHORT_PGRP code.
...
Callapse HAVE_TERMIO and HAVE_SGTTY.
2005-03-26 16:32:57 +00:00
Mark Kettenis
a77f4086a1
* dwarf2-frame.c (execute_cfa_program): Implement
...
DW_CFA_GNU_window_save.
2005-03-26 15:20:42 +00:00
Mark Kettenis
bac6b01281
* config/sparc/nbsd64.mh (NAT_FILE): Remove.
2005-03-25 22:28:53 +00:00
Mark Kettenis
4d6c7108d5
* config/i386/obsd64.mt (TDEPFILES): Add obsd-uthread.o.
2005-03-25 22:25:31 +00:00
Daniel Jacobowitz
4bf7064ce9
* arm-tdep.c (target_is_thumb, caller_is_thumb)
...
(arm_pc_is_thumb_dummy): Remove.
(arm_breakpoint_from_pc): Don't call arm_pc_is_thumb_dummy.
2005-03-25 21:28:05 +00:00
Anthony Green
170cd118a9
Fix memset thinkos.
2005-03-25 20:40:02 +00:00
Mark Mitchell
dd5da072a1
* ser-base.c (ser_unix_write): Rename to ...
...
(ser_base_write): ... this.
(ser_unix_nop_flush_output): Rename to ...
(ser_base_flush_output): ... this.
(ser_unix_flush_input): Rename to ...
(ser_base_flush_input): ... this.
(ser_unix_nop_send_break): Rename to ...
(ser_base_send_break): ... this.
(ser_unix_nop_drain_output): Rename to ...
(ser_base_drain_output): ... this.
(ser_unix_nop_raw): Rename to ...
(ser_base_raw): ... this.
(ser_unix_nop_get_tty_state): Rename to ...
(ser_base_set_tty_state): ... this.
(ser_unix_nop_noflush_set_tty_state): Rename to ...
(ser_base_noflush_set_tty_state): ... this.
(ser_unix_nop_print_tty_state): Rename to ...
(ser_base_print_tty_state): ... this.
(ser_unix_nop_setbaudrate): Rename to ...
(ser_base_setbaudrate): ... this.
(ser_unix_nop_setstopbits): Rename to ...
(ser_base_setstopbits): ... this.
(ser_unix_async): Rename to ...
(ser_base_async): ... this.
* ser-base.h (ser_unix_write): Rename to ...
(ser_base_write): ... this.
(ser_unix_nop_flush_output): Rename to ...
(ser_base_flush_output): ... this.
(ser_unix_flush_input): Rename to ...
(ser_base_flush_input): ... this.
(ser_unix_nop_send_break): Rename to ...
(ser_base_send_break): ... this.
(ser_unix_nop_drain_output): Rename to ...
(ser_base_drain_output): ... this.
(ser_unix_nop_raw): Rename to ...
(ser_base_raw): ... this.
(ser_unix_nop_get_tty_state): Rename to ...
(ser_base_set_tty_state): ... this.
(ser_unix_nop_noflush_set_tty_state): Rename to ...
(ser_base_noflush_set_tty_state): ... this.
(ser_unix_nop_print_tty_state): Rename to ...
(ser_base_print_tty_state): ... this.
(ser_unix_nop_setbaudrate): Rename to ...
(ser_base_setbaudrate): ... this.
(ser_unix_nop_setstopbits): Rename to ...
(ser_base_setstopbits): ... this.
(ser_unix_async): Rename to ...
(ser_base_async): ... this.
* ser-pipe.c (_initialize_ser_pipe): Update accordingly.
* ser-tcp.c (_initialize_ser_tcp): Likewise.
* ser-unix.c (hardwire_flush_input): Likewise.
(_initializer_ser_hardwire): Likewise.
2005-03-25 20:06:36 +00:00
Mark Mitchell
3eb25fda5d
* Makefile.in (SFILES): Add ser-base.c.
...
(ser_base_h): New variable.
(ser-base.o): New target.
(ser-pipe.o): Depend on $(ser_base_h).
(ser-tcp.o): Likewise.
(ser-unix.o): Likewise. Do not depend on $(event_loop_h).
* configure.ac (SER_HARDWIRE): Include ser-base.o where
appropriate.
* ser-base.c: New file.
(push_event): Move from ser-unix.c.
(fd_event): Likewise.
(reschedule): Likewise.
(ser_unix_write): Likewise.
(ser_unix_nop_flush_output): Likewise.
(ser_unix_flush_input): Likewise.
(ser_unix_nop_send_break): Likewise.
(ser_unix_nop_drain_output): Likewise.
(ser_unix_nop_raw): Likewise.
(ser_unix_nop_get_tty_state): Likewise.
(ser_unix_nop_set_tty_state): Likewise.
(ser_unix_nop_noflush_set_tty_state): Likewise.
(ser_unix_nop_print_tty_state): Likewise.
(ser_unix_nop_setbaudrate): Likewise.
(ser_unix_nop_setstopbits): Likewise.
(ser_unix_async): Likewise.
* ser-base.h: New file.
* ser-pipe.c (ser-base.h): Include it.
* ser-tcp.c (ser-base.h): Likewise.
* ser-unix.h (ser_unix_nop_flush_output): Remove.
(ser_unix_flush_input): Likewise.
(ser_unix_nop_send_break): Likewise.
(ser_unix_nop_raw): Likewise.
(ser_unix_nop_get_tty_state): Likewise.
(ser_unix_nop_set_tty_state): Likewise.
(ser_unix_nop_print_tty_state): Likewise.
(ser_unix_nop_noflush_set_tty_state): Likewise.
(ser_unix_nop_setbaudrate): Likewise.
(ser_unix_nop_setstopbits): Likewise.
(ser_unix_nop_drain_output): Likewise.
(ser_unix_wait_for): Likewise.
(ser_unix_write): Likewise.
(ser_unix_async): Likewise.
* ser-unix.c (event-loop.h): Do not include it.
(push_event): Move to ser-base.c.
(fd_event): Likewise.
(reschedule): Likewise.
(ser_unix_write): Likewise.
(ser_unix_nop_flush_output): Likewise.
(ser_unix_flush_input): Likewise.
(ser_unix_nop_send_break): Likewise.
(ser_unix_nop_drain_output): Likewise.
(ser_unix_nop_raw): Likewise.
(ser_unix_nop_get_tty_state): Likewise.
(ser_unix_nop_set_tty_state): Likewise.
(ser_unix_nop_noflush_set_tty_state): Likewise.
(ser_unix_nop_print_tty_state): Likewise.
(ser_unix_nop_setbaudrate): Likewise.
(ser_unix_nop_setstopbits): Likewise.
(ser_unix_async): Likewise.
(ser_unix_wait_for): Make it static.
* configure: Regenerated.
2005-03-25 19:47:23 +00:00
Mark Kettenis
8d5a9abc72
* dwarf2-frame.h: Update copyrigh year.
...
(enum dwarf2_frame_reg_rule): Add DWARF2_FRAME_REG_RA_OFFSET.
* dwarf2-frame.c: Update copyright year.
(struct dwarf2_frame_cache): Add member `retaddr_reg'.
(dwarf2_frame_cache): Deal with DWARF2_FRAME_REG_RA_OFFSET.
(dwarf2_frame_prev_register): Handle DWARF2_FRAME_REG_RA_OFFSET.
2005-03-25 16:51:40 +00:00
Martin Hunt
b3041f52a5
2005-03-23 Martin Hunt <hunt@redhat.com>
...
* configure.ac: Remove -fwritable-strings from CFLAGS.
* configure: Regenerate.
2005-03-23 19:17:42 +00:00
Michael Snyder
6a069e5719
2005-03-21 Michael Snyder <msnyder@redhat.com>
...
* mn10300-prologue.c (fix_frame_pointer): Delete.
(set_movm_offsets) Don't return just because movm_args is
zero -- still need to save pc and sp in saved_regs.
(mn10300_analyze_prologue): Don't return prematurely without
calling set_movm_offsets (for pc and sp at minimum).
2005-03-21 23:23:32 +00:00
Mark Mitchell
d3ea68091c
* configure.ac (stat.st_blksize): Check for it.
...
(getuid): Likewise.
(getgid): Likewise.
* configure: Regenerated.
* config.in: Likewise.
* remote-fileio.c (remote_fileio_to_fio_stat): Check
HAVE_STRUCT_STAT_ST_BLKSIZE.
2005-03-21 21:23:35 +00:00
Christopher Faylor
d460b7f5da
* win32-nat.c (do_initial_child_stuff): Don't clear the thread list here.
...
(do_initial_child_stuff): Move clearing of thread list to a place before a
thread ould be created.
(child_attach): Ditto.
2005-03-21 19:54:15 +00:00
Michael Snyder
342ee437fb
2005-03-21 Michael Snyder <msnyder@redhat.com>
...
* mn10300-tdep.c (mn10300_frame_unwind_cache): Use func addr
instead of pc addr for frame_id. Otherwise "until" won't work.
2005-03-21 19:31:46 +00:00
Kevin Buettner
4f0d78e096
* frv-linux-tdep.c (frv_linux_sigcontext_reg_addr): Fix typo in
...
comment.
2005-03-21 18:09:47 +00:00
Mark Kettenis
4dd0443396
* dwarf2loc.c (dwarf_expr_tls_address): Mark addr as volatile.
...
* varobj.c (my_value_equal): Mark val2 as volatile.
2005-03-20 20:30:35 +00:00
Mark Kettenis
ee426e0ff6
Fix typo.
2005-03-20 20:15:56 +00:00
Mark Kettenis
80d9c5928e
* cp-names.y: Add prototype for yylex.
2005-03-20 16:26:44 +00:00
Daniel Jacobowitz
96ce45cadb
* dwarf2loc.c (dwarf_expr_tls_address): Initialize ADDR.
...
* gnu-v3-abi.c (gnuv3_baseclass_offset): Update type of
VALADDR.
2005-03-19 19:44:10 +00:00
Kevin Buettner
93ad78a72d
Move printing of TLS related error messages to dwarf2loc.c.
2005-03-18 21:03:39 +00:00
Mark Kettenis
8cf46f625a
* utils.c (safe_strerror): Use xsnprintf instead of sprintf.
...
(decimal2str, octal2str): Change to return a string allocated by
get_cell. Use xsnprint instead of snprintf.
(paddr_u, paddr_d): Adjust for changed calling convention of
decimal2str.
(phex, phex_nz, hex_string): Use xsnprintf instead of snprintf.
(int_string): Likewise. Adjust for changed calling convention of
decimal2str and octal2str.
2005-03-18 20:46:38 +00:00
Kevin Buettner
f79d2c3cf8
* frv-linux-tdep.c (frv_linux_sigcontext_reg_addr): Update comments.
...
Adjust incorrectly computed constant for realtime signal frame.
2005-03-18 20:23:28 +00:00
Mark Kettenis
eb3088784c
From Ralf Corsepius <ralf.corsepius@rtems.org>
...
* configure.tgt: Add m68*-*-rtems*.
2005-03-18 18:59:17 +00:00
Mark Kettenis
bde2058dde
* defs.h (xsnprintf): New prototype.
...
* utils.c (xsnprintf): New function.
2005-03-17 22:11:09 +00:00
Mark Kettenis
3ecda4574e
* corelow.c (get_core_register_section): Replace usage of sprintf
...
and strcpy with xstrprintf and xstrdup.
2005-03-17 22:07:42 +00:00
Mark Kettenis
06648491d7
* mips-tdep.c (mips_single_step_through_delay): Put back check for
...
breakpoint lost with the introduction of this function.
2005-03-17 18:07:46 +00:00
Paul Brook
16aff9a677
2005-03-17 Paul Brook <paul@codesourcery.com>
...
* amd64-tdep.c (amd64_dwarf_reg_to_regnum): Fix broken logic.
* s390-tdep.c (s390_dwarf_reg_to_regnum): Ditto.
2005-03-17 17:44:14 +00:00
Mark Mitchell
ec442778f9
* event-top.c (handle_sigquit): Do not define for systems without
...
SIGQUIT.
(sigquit_token): Likewise.
(async_init_signals): Allow for systems that do not
define SIGQUIT.
* ser-tcp.c (net_open): Allow for systems that do not have SIGPIPE.
2005-03-16 17:07:17 +00:00
Mark Mitchell
6d318c73e1
* event-top.c (async_init_signals): Allow for systems that do not
...
define SIGQUIT.
* ser-tcp.c (net_open): Allow for systems that do not have SIGPIPE.
2005-03-16 17:05:31 +00:00
Mark Mitchell
9b265ec209
* utils.c (internal_vproblem): Guard call to fork with
...
HAVE_WORKING_FORK.
* cli/cli-cmds.c (shell_escape): Guard call to vfork with
HAVE_WORKING_VFORK and HAVE_WORKING_FORK.
* remote-fileo.c (remote_fileio_mode_to_host): Accomodate lack of
S_IRGRP and related macros.
(remote_fileio_mode_to_target): Likewise.
2005-03-16 15:58:41 +00:00
Ben Elliston
3ae642fdf3
* Makefile.in (CLIBS): Link libbfd after libopcodes, as it is a
...
more primitive library.
2005-03-14 03:09:45 +00:00
Mark Kettenis
fd0a2a6f0c
* inf-ttrace.c (inf_ttrace_pid_to_str): Use snprintf instead of
...
sprintf.
* target.c (normal_pid_to_str): Likewise.
* remote.c (remote_pid_to_str): Use snprint instead of sprintf.
Change capitalization of "thread". Use ptid_get_pid instead of
GETPID.
2005-03-13 22:06:10 +00:00
Mark Kettenis
049742daef
* cp-abi.c (set_cp_abi_as_auto_default): Use xasprintf instead of
...
a combination of xmalloc and sprintf.
2005-03-13 19:55:38 +00:00
Jim Blandy
ca231fcc24
* configure.ac: Use '=', not '=='; the latter is a GNU extension.
...
* configure: Regenerated.
2005-03-13 05:37:48 +00:00
Michael Snyder
b80b83f36a
2005-03-11 Michael Snyder <msnyder@redhat.com>
...
* mn10300-tdep.c (mn10300_dummy_unwind_dummy_id): Replace
stub fn with real implementatin mn10300_unwind_dummy_id.
(mn10300_push_dummy_call): Implement. Bare bones version,
does not handle structs or floats.
2005-03-11 23:16:47 +00:00
Jim Blandy
a3b362c440
Avoid warnings due to the use of -Wuninitialized without -O.
...
* configure.ac (build_warnings): Include -Wuninitialized only if
CFLAGS is unset at configure time, or CFLAGS is set and includes
some -O option other than -O0.
* configure: Regenerated.
2005-03-11 21:02:02 +00:00
Jim Blandy
1f8ca57c49
* mips-tdep.c (show_mips_abi): Change calling conventions to match
...
those expected by add_setshow_enum_cmd. Use 'file' argument as
appropriate.
2005-03-11 20:27:56 +00:00
Daniel Jacobowitz
fb4c6eba43
* Makefile.in (SFILES): Add cp-names.y.
...
(libiberty_h, safe_ctype_h): New.
(YYFILES): Add cp-names.c.
(YYOBJ): Add cp-names.o.
(test-cp-names.o, test-cp-names$(EXEEXT), cp-names.o): New rules.
(clean): Remove test-cp-names$(EXEEXT).
(local-maintainer-clean): Remove cp-names.c.
* cp-names.y: New file.
* cp-support.c (find_last_component): Delete.
(d_left, d_right): Define.
(cp_canonicalize_string, mangled_name_to_comp): New functions.
(cp_class_name_from_physname, method_name_from_physname): Rewrite
to use mangled_name_to_comp.
* cp-support.h (cp_canonicalize_string, cp_demangled_name_to_comp)
(cp_comp_to_string): New prototypes.
* config/djgpp/fnchange.lst: Add cp-names.c.
2005-03-11 02:24:23 +00:00
Bob Rossi
5b93de64c0
Remove the --[no]async command line switch from --help
2005-03-10 20:49:08 +00:00
Mark Kettenis
54433e3802
* proc-api.c: Update copyright year.
...
(_initialize_proc_api): Revert previous patch, removing spurious
space instead.
2005-03-10 09:11:10 +00:00
Joel Brobecker
d2f0b918d1
* regcache.c: Fix typo in comment.
2005-03-10 02:43:23 +00:00
David Lecomber
e9274dd86f
2005-03-09 David Lecomber <david@lecomber.net>
...
* proc-api.c (_initialize_proc_api): Fix invalid multi-line
i18n text.
2005-03-09 23:33:52 +00:00
Mark Kettenis
5b2d44a05d
* sparc-tdep.c (sparc_frame_cache): Adjust cached frame base
...
address for 64-bit code.
(sparc_unwind_dummy_id): Likewise.
* sparc64-tdep.c (sparc64_frame_prev_register): Adjust for new
frame base address convention.
(sparc64_push_dummy_call): Likewise.
* sparc64nbsd-tdep.c: Update copyright year.
(sparc64nbsd_sigcontext_frame_cache): Adjust cached frame base
address for 64-bit code.
(sparc64nbsd_init_abi): Tweak comment.
* sparc64obsd-tdep.c: Update copyright year.
(sparc64obsd_frame_cache): Adjust cached frame base address for
64-bit code.
(sparc64obsd_init_abi): Tweak comment.
2005-03-09 22:08:13 +00:00
Mark Kettenis
e5a8e242a8
Fix my email address in 2005-03-05 entry.
2005-03-09 21:55:21 +00:00
Corinna Vinschen
8d19ca4717
* exceptions.h (TRY_CATCH): Define setjmp/sigsetjmp macro safe.
...
(plus a tiny ChangeLog fix)
2005-03-09 17:52:54 +00:00
Joel Brobecker
5b5464adf1
* dwarf2read.c (dwarf_decode_lines): Use the complete filename
...
when creating include psymtabs.
2005-03-09 06:03:15 +00:00
Mark Mitchell
1bf1958d53
* environ.h (struct environ): Rename to ...
...
(struct gdb_environ): ... this.
(make_environ): Update prototype.
(free_environ): Likewise.
(init_environ): Likewise.
(get_in_environ): Likewise.
(set_in_environ): Likewise.
(unset_in_environ): Likewise.
(environ_vector): Likewise.
* environ.c (make_environ): Replace "struct environ" with "struct
gdb_environ".
(free_environ): Likewise.
(init_environ): Likewise.
(environ_vector): Likewise.
(get_in_environ): Likewise.
(set_in_environ): Likewise.
(unset_in_environ): Likewise.
* infcmd.c (inferior_environ): Likewise.
* inferior.h (inferior_environ): Likewise.
2005-03-08 22:17:34 +00:00
Joel Brobecker
f67a969fd6
* infcmd.c (run_command_1): New function, extracted from
...
run_command.
(run_command): Replace implementation by call to run_command_1.
(start_command): Use run_command_1 to insert the temporary
breakpoint and run the program. Remove code that's no longer
needed, as already done at the proper time by run_command_1.
2005-03-08 22:03:43 +00:00
Daniel Jacobowitz
c0501be550
* symfile.c (clear_symtab_users): Call
...
clear_current_source_symtab_and_line first.
2005-03-08 21:40:46 +00:00
Nathan Sidwell
36e9969cac
* ax-gdb.c (gen_expr): Add UNOP_PLUS case.
...
* c-exp.y (exp): Add unary plus.
* eval.c (evaluate_subexp_standard): Add UNOP_PLUS case.
* valarith.c (value_x_unop): Add UNOP_PLUS case.
(value_pos): New.
* value.h (value_pos): Declare.
* gdb.cp/userdef.cc (A1::operator+): New unary plus.
(A2): New class.
(main): Test operator+.
* gdb.cp/userdef.exp: Test unary plus. Use A2::operator+ for
breakpoint test.
2005-03-08 14:35:20 +00:00
Nathan Sidwell
3de11b2ef2
* remote.c (MIN_REMOTE_PACKET_SIZE): Set to 20.
...
(remote_fetch_registers): Allow uppercase hex when resyncing.
(remote_write_bytes): Only call get_memory_write_packet_size once.
Robustify packet size calculation for very small packets. Check
that at least one byte will be written.
2005-03-08 14:30:46 +00:00
Nathan Sidwell
549678dac2
* tracepoint.c (target_is_remote): Allow extended-remote.
...
(struct collection_list): Allow 256 registers, like the comment
said.
(add_memrange): Fix comment.
(read_actions): Turn EOF into 'end'.
2005-03-08 10:03:47 +00:00
Corinna Vinschen
20be272bd7
* Makefile.in: Add dependencies for iq2000-tdep.o.
...
* configure.tgt: Add iq2000-*-* target.
* iq2000-tdep.c: New file.
* config/iq2000/iq2000.mt: New file.
2005-03-08 08:59:47 +00:00
Joel Brobecker
ea53e89f14
* doc/observer.texi (executable_changed): New observer.
...
* symtab.c: Include "observer.h".
(find_main_name): New function.
(main_name): If name_of_main is unset, then compute it
using find_main_name.
(symtab_observer_executable_changed): New function.
(_initialize_symtab): Attach executable_changed observer.
* exec.c: Include "observer.h".
(exec_file_attach): Emit executable_changed notification.
* symfile.c: Include "observer.h".
(reread_symbols): Send an executable_changed if appropriate.
* Makefile.in (exec.o): Add dependency on observer.h.
(symfile.o): Likewise.
(symtab.o): Likewise.
2005-03-08 04:34:45 +00:00
Daniel Jacobowitz
bb04426270
* findvar.c (read_var_value): Don't allocate V when it will not
...
be used. Add missing break for LOC_INDIRECT.
2005-03-07 22:38:04 +00:00
Mark Kettenis
9e07977bda
* sparc64fbsd-tdep.c: Include "solib-svr4.h".
...
(sparc64fbsd_init_abi): Set skip_trampoline_code and
solib_svr4_fetch_link_map_offsets.
* Makefile.in (sparc64fbsd-tdep.o): Update dependencies.
2005-03-06 21:29:10 +00:00
Daniel Jacobowitz
88d7a73841
Correct email address in last commit.
2005-03-06 16:43:20 +00:00
Daniel Jacobowitz
f75c00e4cb
* linux-nat.c (child_follow_fork): Call target_terminal_ours before
...
printing output. Use fprintf_unfiltered. Only print output when
debugging.
2005-03-06 16:42:20 +00:00
Mark Kettenis
e219d7ceb6
* sparc64-tdep.c (sparc64_store_floating_fields): Constify third
...
argument.
(sparc64_store_arguments): Constify.
2005-03-05 20:58:14 +00:00
Mark Kettenis
0d6e4ad74b
* alphabsd-nat.c: Update copyright year. Include "inf-ptrace.h".
...
(alphabsd_fetch_inferior_registers): Rename from
fetch_inferior_registers. Make static.
(alphabsd_store_inferior_registers): Rename from
store_inferior_registers. Make static.
(_initialize_alphabsd_nat): New function.
* Makefile.in (alphabsd-nat.o): Update dependencies.
* config/alpha/fbsd.mh (NATDEPFILES): Remove infptrace.o and
inftarg.o. Add inf-ptrace.o, fbsd-nat.o and gcore.o.
* config/alpha/nbsd.mh (NAT_CLIBS): Remove variable.
(NATDEPFILES): Remove infptrace.o and inftarg.o. Add
alphabsd-nat.o.
* config/alpha/nm-fbsd.h: Update copyright year. Don't include
"config/nm-bsd.h" and "elf/common.h".
* config/alpha/nm-nbsd.h: Update copyright year. Don't include
"config/nm-nbsd.h".
2005-03-05 14:36:10 +00:00
Mark Kettenis
635ddbfb5b
Fix botched checkin.
2005-03-05 10:47:49 +00:00
Mark Kettenis
dda5f19aac
* mips64obsd-tdep.c (mips64obsd_init_abi): Don't set
...
software_single_step.
* acconfig.h: Remove #undef.
2005-03-05 10:10:11 +00:00
Michael Snyder
aac716726d
2005-03-04 Michael Snyder <msnyder@redhat.com>
...
* mn10300-prologue.c: New file. Prologue analysis.
* mn10300-tdep.c: Move REGNUM values to mn10300-tdep.h.
(mn10300_frame_unwind_cache): Don't call trad_frame_set_id
until after analyze_prologue, and don't call trad_frame_set_base
at all (let analyze_prologue do it).
2005-03-05 02:01:40 +00:00
Michael Snyder
61e784e787
2005-03-04 Michael Snyder <msnyder@redhat.com>
...
* trad-frame.c (trad_frame_set_reg_value): New function.
* trad-frame.h (trad_frame_set_reg_value): Export.
2005-03-05 01:57:20 +00:00
Daniel Jacobowitz
6867ae3eab
* Makefile.in (remote.o): Update dependencies.
...
* remote.c: Include "observer.h".
2005-03-04 17:52:53 +00:00
Daniel Jacobowitz
f90221d302
* target.c (target_read_memory_partial): Always initialize
...
ERR.
(target_write_memory_partial): Likewise.
2005-03-04 17:47:59 +00:00
Daniel Jacobowitz
e20b46382a
* remote.c (remote_open_1): Call observer_notify_inferior_created.
2005-03-03 16:54:05 +00:00
Daniel Jacobowitz
909cf6ea0e
* arm-tdep.c (arm_make_stub_cache, arm_stub_this_id)
...
(arm_stub_unwind, arm_stub_unwind_sniffer): New.
(arm_gdbarch_init): Add arm_stub_unwind_sniffer.
2005-03-03 15:14:09 +00:00
Daniel Jacobowitz
d35870480f
* linux-nat.c (linux_supports_tracevforkdone, child_follow_fork):
...
Use LWP IDs.
2005-03-02 15:07:49 +00:00
Daniel Jacobowitz
806048c68a
* dwarf2loc.c (loclist_read_variable): Set optimized_out
...
instead of reporting an error.
* valprint.c (value_check_printable): New function.
(common_val_print): New function. Use value_check_printable.
(value_print): Use value_check_printable.
* value.h (common_val_print): Add prototype.
* c-valprint.c (c_val_print): Use common_val_print.
* cp-valprint.c (cp_print_value_fields): Likewise.
(cp_print_hpacc_virtual_table_entries): Likewise.
* f-valprint.c (f_val_print): Likewise.
* jv-valprint.c (java_value_print, java_print_value_fields):
Likewise.
* scm-valprint.c (scm_value_print): Likewise.
* stack.c (print_frame_args): Likewise.
* varobj.c (c_value_of_variable): Likewise.
* p-valprint.c (pascal_val_print, pascal_value_print): Likewise.
(pascal_object_print_value_fields): Likewise. Update call to
pascal_object_print_static_field.
(pascal_object_print_static_field): Remove TYPE argument. Use
common_val_print.
2005-02-28 17:00:49 +00:00
Elena Zannoni
dd373385f3
2005-02-25 Mark Kettenis <kettenis@gnu.org>
...
Committed by Elena Zannoni <ezannoni@redhat.com>
* dwarf2read.c (dwarf2_build_psymtabs_hard): Adjust
info_ptr before building psymtabs for included files.
(create_all_comp_units): Initailize initial length size of
compilation header to zero.
(read_initial_length): Complain if both 32-bit and 64-bit DWARF
sections are encountered within the same compilation header.
(dwarf_decode_line_header): Pass compilation header in call to
read_initial_length.
2005-02-26 04:32:56 +00:00
Andrew Cagney
920d2a4419
2005-02-24 Andrew Cagney <cagney@gnu.org>
...
Add show_VARIABLE functions, update add_setshow call.
* varobj.c (_initialize_varobj, show_varobjdebug): Add and update.
* valprint.c (_initialize_valprint, show_print_max)
(show_stop_print_at_null, show_repeat_count_threshold)
(show_prettyprint_structs, show_unionprint)
(show_prettyprint_arrays, show_addressprint, show_input_radix)
(show_output_radix): Ditto.
* valops.c (_initialize_valops, show_overload_resolution): Ditto.
* utils.c (initialize_utils, show_chars_per_line)
(show_lines_per_page, show_demangle, show_pagination_enabled)
(show_sevenbit_strings, show_asm_demangle): Ditto
* tui/tui-win.c (_initialize_tui_win, show_tui_border_kind)
(show_tui_border_mode, show_tui_active_border_mode): Ditto.
* top.c (init_main, show_new_async_prompt)
(show_async_command_editing_p, show_write_history_p)
(show_history_size, show_history_filename, show_caution)
(show_annotation_level, init_main): Ditto.
* target.c (initialize_targets, show_targetdebug)
(show_trust_readonly): Ditto.
* symfile.c (_initialize_symfile, show_symbol_reloading)
(show_ext_args, show_download_write_size)
(show_debug_file_directory): Ditto.
* source.c (_initialize_source, show_lines_to_list): Ditto.
* solib.c (_initialize_solib, show_auto_solib_add)
(show_solib_search_path): Ditto.
* p-valprint.c (_initialize_pascal_valprint)
(show_pascal_static_field_print): Ditto.
* printcmd.c (_initialize_printcmd, show_max_symbolic_offset)
(show_print_symbol_filename): Add and update.
* parse.c (_initialize_parse, show_expressiondebug): Dito.
* observer.c (_initialize_observer, show_observer_debug): Dito.
* maint.c (_initialize_maint_cmds, show_watchdog)
(show_maintenance_profile_p): Dito.
* linux-nat.c (_initialize_linux_nat, show_debug_linux_nat): Dito.
* infrun.c (_initialize_infrun, show_debug_infrun)
(show_stop_on_solib_events, show_follow_fork_mode_string)
(show_scheduler_mode, show_step_stop_if_no_debug): Ditto.
* infcall.c (_initialize_infcall, show_coerce_float_to_double_p)
(show_unwind_on_signal_p): Ditto.
* gdbtypes.c (build_gdbtypes, show_opaque_type_resolution)
(_initialize_gdbtypes, show_overload_debug): Ditto.
* gdb-events.c, gdb-events.sh (_initialize_gdb_events)
(show_gdb_events_debug): Ditto.
* gdbarch.c, gdbarch.sh (show_gdbarch_debug)
(_initialize_gdbarch): Ditto.
* frame.c (_initialize_frame, show_backtrace_past_main)
(show_backtrace_past_entry, show_backtrace_limit)
(show_frame_debug): Ditto.
* exec.c (_initialize_exec, show_write_files): Ditto.
* dwarf2read.c (_initialize_dwarf2_read)
(show_dwarf2_max_cache_age): Ditto.
* demangle.c (_initialize_demangler)
(show_demangling_style_names): Ditto.
* dcache.c (_initialize_dcache, show_dcache_enabled_p): Ditto.
* cp-valprint.c (show_static_field_print)
(_initialize_cp_valprint, show_vtblprint, show_objectprint): Ditto.
* corefile.c (_initialize_core, show_gnutarget_string): Ditto.
* cli/cli-logging.c (_initialize_cli_logging)
(show_logging_overwrite, show_logging_redirect)
(show_logging_filename): Ditto.
* cli/cli-cmds.c (show_info_verbose, show_history_expansion_p)
(init_cli_cmds, show_baud_rate, show_remote_debug)
(show_remote_timeout, show_max_user_call_depth): Ditto.
* charset.c (show_host_charset_name, show_target_charset_name)
(initialize_charset): Ditto.
* breakpoint.c (show_can_use_hw_watchpoints)
(show_pending_break_support, _initialize_breakpoint): Ditto.
2005-02-24 13:51:36 +00:00
Jim Blandy
2877b4cc78
* disasm.c (gdb_disassemble_info): Call disassemble_init_for_target.
2005-02-23 16:06:58 +00:00
Andrew Cagney
e9c55a7bd7
2005-02-23 Andrew Cagney <cagney@gnu.org>
...
* cli/cli-dump.c (dump_bfd_file): Replace magic constant with
SEC_XXX flags.
2005-02-23 15:24:22 +00:00
Andrew Cagney
04ac69aa9d
2005-02-22 Andrew Cagney <cagney@gnu.org>
...
* configure.ac: Only enaable insight when itcl is present.
* configure: Re-generate.
2005-02-22 23:25:11 +00:00
Andrew Cagney
3470a02f88
2005-02-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
...
* infptrace.c (store_register): Fix typo.
2005-02-21 17:22:43 +00:00
Andrew Cagney
b66df561bb
2005-02-21 Andrew Cagney <cagney@gnu.org>
...
* command.h (deprecated_add_set_cmd): Rename add_set_cmd.
* cli/cli-decode.h (add_set_cmd): Delete declaration.
* cli/cli-decode.c (deprecated_add_set_cmd): Rename add_set_cmd.
* i386-nat.c (_initialize_i386_nat): Update call.
* valprint.c (_initialize_valprint): Update comment.
* gnu-nat.c (_initialize_gnu_nat): Update call.
2005-02-21 17:14:03 +00:00
Alan Modra
85e3476f96
* elfread.c (elf_symtab_read): Discard section syms.
2005-02-21 11:00:44 +00:00
Andrew Cagney
eefe576e60
2005-02-21 Andrew Cagney <cagney@gnu.org>
...
* cli/cli-decode.c (add_set_enum_cmd): Delete function.
(deprecated_add_show_from_set): Delete function.
* command.h (add_set_enum_cmd): Delete declaration.
(deprecated_add_show_from_set): Delete declaration.
* cli/cli-decode.h (add_set_enum_cmd): Delete declaration.
(deprecated_add_show_from_set): Delete declaration.
* arm-tdep.c (_initialize_arm_tdep): Update comment.
* kod.c (kod_set_os): Simplify.
* infrun.c (set_schedlock_func): Simplify.
* cli/cli-dump.c (add_dump_command): Update comment.
2005-02-21 07:15:49 +00:00
Andrew Cagney
525226b563
2005-02-21 Andrew Cagney <cagney@gnu.org>
...
Replace string variables with a filename completer with
add_setshow_optional_filename_cmd.
* solib.c, symfile.c: Update.
* cli/cli-setshow.c: Do not tidle expand the file.
2005-02-21 07:08:42 +00:00
Andrew Cagney
4d28ad1ece
2005-02-21 Andrew Cagney <cagney@gnu.org>
...
Add more uses of add_setshow_string_cmd, add_setshow_integer_cmd,
and add_setshow_string_noescape_cmd.
* cli/cli-setshow.c (deprecated_show_value_hack): Do not print a
NULL command's value.
* kod.c, language.c, ocd.c, remote-e7000.c, remote-mips.c: Update.
* remote-sds.c, remote.c, symfile.c, top.c: Update.
2005-02-21 06:21:09 +00:00
Andrew Cagney
7ab044018a
2005-02-20 Andrew Cagney <cagney@gnu.org>
...
Use add_setshow_enum_cmd through out.
* arch-utils.c, charset.c, demangle.c, i386-tdep.c: Update.
* infrun.c, mips-tdep.c, osabi.c, serial.c, tui/tui-win.c: Update.
2005-02-21 04:31:59 +00:00
Andrew Cagney
78f5381d69
2005-02-20 Andrew Cagney <cagney@gnu.org>
...
* mi/mi-main.c (captured_mi_execute_command): Use
mi_cmd_interpreter_exec.
2005-02-21 03:59:23 +00:00
Andrew Cagney
b4b4ac0b71
2005-02-20 Andrew Cagney <cagney@gnu.org>
...
* cli/cli-decode.c (add_setshow_optional_filename_cmd): New
function.
* cli/cli-setshow.c (deprecated_show_value_hack)
(do_setshow_command): Handle var_optional_filename.
* command.h (enum var_types): Add var_optional_filename.
(add_setshow_optional_filename_cmd): Declare.
* infcmd.c (notice_args_read): Use.
2005-02-21 03:25:56 +00:00
Andrew Cagney
942fd9fe45
2005-02-20 Andrew Cagney <cagney@gnu.org>
...
* symfile-mem.c (symbol_file_add_from_memory): Pass
target_read_memory to bfd_elf_bfd_from_remote_memory.
(do_target_read_memory): Delete.
2005-02-21 02:09:46 +00:00
Mark Kettenis
a6c442d881
* value.h (value_contents_equal): New prototype.
...
* value.c (value_contents_equal): New function.
* varobj.c: Include "exceptions.h" and "gdb_assert.h". Don't
include <math.h>.
(varobj_set_value): Initialize error to zero.
(varobj_update): Rename error2 to error and initialize it to zero.
Slightly change the wording of some comments.
(my_value_equal): Reimplement using TRY_CATCH and
value_contents_equal.
2005-02-20 01:19:24 +00:00
Andrew Cagney
c0d88b1be7
2005-02-18 Andrew Cagney <cagney@gnu.org>
...
* cli/cli-decode.c (add_setshow_integer_cmd): New function.
* command.h (add_setshow_integer_cmd): Declare.
* cli/cli-cmds.c: Update.
2005-02-18 20:57:16 +00:00
Andrew Cagney
35096d9d67
2005-02-18 Andrew Cagney <cagney@gnu.org>
...
Use add_setshow_uinteger_cmd through out.
* printcmd.c, source.c, utils.c, valprint.c: Update.
2005-02-18 19:49:52 +00:00
Andrew Cagney
85c078043b
2005-02-18 Andrew Cagney <cagney@gnu.org>
...
Use add_setshow_zinteger_cmd through out. Re-sync gdbarch.sh
and gdbarch.c.
* breakpoint.c, frame.c, gdb-events.sh, gdbarch.sh: Update.
* gdbtypes.c, infrun.c, linux-nat.c, maint.c, monitor.c: Update.
* pa64solib.c, parse.c, remote-mips.c, ser-go32.c: Update.
* serial.c, solib-frv.c, somsolib.c, target.c, top.c: Update.
* varobj.c, cli/cli-cmds.c: Update.
* gdbarch.c, gdb-events.c: Regenerate.
2005-02-18 18:58:56 +00:00
Andrew Cagney
5bf193a2ee
2005-02-18 Andrew Cagney <cagney@gnu.org>
...
Use add_setshow_boolean_command through out. Delete #ifdef 0'ed
code adding set/show boolean commands.
* cp-valprint.c, dcache.c, exec.c, gdbtypes.c, infrun.c: Update.
* monitor.c, p-valprint.c, pa64solib.c, printcmd.c: Update.
* proc-api.c, remote-mips.c, remote.c, solib.c: Update.
* somsolib.c, symfile.c, top.c, utils.c, valops.c: Update.
* valprint.c, win32-nat.c, wince.c, xcoffsolib.c: Update.
* cli/cli-cmds.c: Update.
2005-02-18 15:25:32 +00:00
Andrew Cagney
f397e30345
2005-02-17 Andrew Cagney <cagney@gnu.org>
...
* cli/cli-decode.c (add_setshow_filename_cmd): Set the completer
to filename_completer.
* solib.c (_initialize_solib, reload_shared_libraries): Use
add_setshow_filename_cmd.
* serial.c (_initialize_serial): Ditto.
* remote-utils.c (_initialize_sr_support): Ditto.
2005-02-17 17:11:04 +00:00