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