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