Andrew Cagney
3b45974e92
* MAINTAINERS (sh-elf): Change warning flag to -w.
2002-03-23 18:52:46 +00:00
Andrew Cagney
823ca731ed
* defs.h (error): Add printf format attribute.
...
* thread-db.c (thread_from_lwp): Fix error format string.
* stack.c (parse_frame_specification): Ditto.
* cli/cli-decode.c (undef_cmd_error): Ditto.
* scm-lang.c (scm_lookup_name): Ditto.
* tracepoint.c (trace_error): Ditto.
* remote-utils.c (usage): Ditto.
* remote.c (compare_sections_command): Ditto.
Fix PR gdb/328.
2002-03-23 17:38:13 +00:00
Andrew Cagney
0e10145828
* gdbtypes.c (append_composite_type_field): New function.
...
(init_composite_type): New function.
* gdbtypes.h (append_composite_type_field): Declare.
(init_composite_type): Ditto.
2002-03-23 01:24:54 +00:00
Elena Zannoni
8e0662df17
2002-03-22 Elena Zannoni <ezannoni@redhat.com>
...
* ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
function.
* ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
* rs6000-tdep.c (rs6000_gdbarch_init): Use different
structure returning convention for SYSV ABI case, but not
for GNU/Linux, FreeBSD, or NetBSD.
2002-03-22 21:58:16 +00:00
Daniel Jacobowitz
3121eff097
2002-03-22 Daniel Jacobowitz <drow@mvista.com>
...
* symtab.h (lookup_block_symbol): Add mangled_name argument
to prototype.
* symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
with new mangled_name argument.
* linespec.c (decode_line_1): Likewise.
* valops (value_of_this): Likewise.
* symtab.c (lookup_transparent_type): Likewise.
(lookup_symbol_aux): Likewise. Accept new mangled_name argument.
(lookup_symbol): If we are given a mangled name, pass it down
to lookup_symbol_aux.
(lookup_block_symbol): If we are given a mangled name to check
against, only return symbols which match it.
2002-03-22 18:57:08 +00:00
Christopher Faylor
349b409f68
* win32-nat.c (child_create_inferior): Check for proper shell to use here, in
...
case the user changes it on the fly.
(_initialize_inftarg): Remove shell path considerations.
2002-03-22 05:03:22 +00:00
Elena Zannoni
2a873819ae
2002-03-21 Elena Zannoni <ezannoni@redhat.com>
...
* rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
for gdbarch_max_register_raw_size and max_register_virtual_size.
Adjust copyright year.
2002-03-22 00:19:02 +00:00
Daniel Jacobowitz
a1b9830cba
2002-03-21 Daniel Jacobowitz <drow@mvista.com>
...
* dbxread.c (process_one_symbol): Extend the first N_SLINE
in a function to cover the entire beginning of the function
as well if it does not already.
2002-03-21 19:48:54 +00:00
Tom Rix
8b5790f2ba
Rename ptrace32 and ptrace64 to fix build problem with Aix 5.1
2002-03-21 13:52:57 +00:00
Martin Hunt
bdbe574731
2002-03-20 Martin M. Hunt <hunt@redhat.com>
...
* regcache.c (_initialize_regcache): No need to call
build_regcache() at this time; it gets called whenever
the gdbarch changes.
2002-03-21 02:13:05 +00:00
David O'Brien
7781cd62b4
2002-03-20 David O'Brien <obrien@FreeBSD.org>
...
* sparc-nat.c: Include sys/param.h where possible.
Approved by: Michael Snyder <msnyder@redhat.com>
Message-ID: <3C98FF43.46ABDC1C@redhat.com>
2002-03-21 02:03:13 +00:00
Daniel Jacobowitz
f65ca430eb
2002-03-20 Daniel Jacobowitz <drow@mvista.com>
...
Fix PR gdb/422.
* c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
* dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
complex types.
* stabsread.c (rs6000_builtin_type): Likewise.
(read_sun_floating_type): Likewise.
2002-03-21 00:53:44 +00:00
Peter Schauer
0c86755622
* stabsread.c (read_member_functions): Remove skip code for duplicate
...
constructor/destructor methods. Use standard parsing for these
methods and just do not chain them to the list of methods after
parsing.
2002-03-19 20:27:04 +00:00
Alexandre Oliva
12b9c64f8d
* coffread.c: Remove redundant static declarations. Replace
...
occurrences of `PTR' with `void *'.
* elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
* top.h (quit_cover): Likewise.
* defs.h (catch_errors): Likewise.
2002-03-19 19:00:04 +00:00
Michael Snyder
75245b2419
2002-03-14 Michael Snyder <msnyder@redhat.com>
...
* symfile.c (syms_from_objfile): Return immediately if no syms.
(symbol_file_add): Return immediately if no syms.
(find_sym_fns): Return immediately if no syms.
2002-03-19 03:51:06 +00:00
Andrew Cagney
349c5d5f6c
* defs.h (XMALLOC): Define.
...
* gdb-events.sh (XMALLOC): Delete macro.
* gdb-events.c, gdb-events.h: Regenerate.
* gdbarch.sh (XMALLOC): Delete macro.
* gdbarch.c: Regenerate.
* serial.c (XMALLOC): Delete macro.
* ui-file.c (XMALLOC): Ditto.
* ser-unix.h (XMALLOC): Ditto.
* sh-tdep.c (XMALLOC): Ditto.
* ui-out.c (XMALLOC): Ditto.
* utils.c (XMALLOC): Ditto.
* i386-tdep.c (XMALLOC): Ditto.
* gdb-events.c (XMALLOC): Ditto.
* d10v-tdep.c (XMALLOC): Ditto.
* cli-out.c (XMALLOC): Ditto.
* cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
* gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
* ui-file.c, ui-out.c: Ditto.
2002-03-19 02:51:09 +00:00
Andrew Cagney
7d0766f3c3
* command.h (struct cmd_list_element): Add field context.
...
(set_cmd_context, get_cmd_context): Declare.
* cli/cli-decode.h: Ditto.
* cli/cli-decode.c (get_cmd_context): New function.
(set_cmd_context): New function.
(add_cmd): Initialize context.
Part of fixing PR gdb/145 and PR gdb/146.
2002-03-19 02:19:17 +00:00
Andrew Cagney
1868c04eba
* cli/cli-decode.c (cmd_type): New function.
...
* command.h (cmd_type): Declare.
* infrun.c (set_schedlock_func): Call function cmd_type.
* kod.c (kod_set_os): Call cmd_type.
* cris-tdep.c (cris_version_update): Use function cmd_type.
(cris_mode_update, cris_abi_update): Ditto.
2002-03-18 02:26:32 +00:00
Andrew Cagney
5913bcb0f6
* command.h: (execute_cmd_post_hook): Declare.
...
(execute_cmd_pre_hook): Declare.
* cli/cli-script.c (clear_hook_in_cleanup): New function.
(execute_cmd_post_hook, execute_cmd_pre_hook): New
functions. Execute pre/post hook while ensuring that afterwords
hook_in is cleared.
* top.c (execute_command): Use execute_cmd_post_hook, and
execute_cmd_pre_hook to execute pre/post commands.
* infrun.c (normal_stop): Pass stop_command and not pre_hook to
hook_stop_stub.
(hook_stop_stub): Call execute_cmd_pre_hook.
2002-03-17 19:53:39 +00:00
Andrew Cagney
b51450c9ff
* kod.c (kod_set_os): Revert previous change. Is called by ``info
...
set'' and this leads to a core dump. Move xstrdup of
operating_system to after check that it is not NULL.
2002-03-17 19:29:37 +00:00
Andrew Cagney
8e694ecf16
* kod.c (kod_set_os): Remove unnecessary check that
...
``command->type'' is set_cmd.
2002-03-17 16:25:09 +00:00
Andrew Cagney
f66c9f11b6
* valprint.c (set_input_radix): Use input_radix.
...
(set_output_radix): Use output_radix.
(set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
isn't reverted.
2002-03-17 16:10:25 +00:00
Andrew Cagney
ee2d3b3a59
fix tipo
2002-03-17 01:32:54 +00:00
Andrew Cagney
9d01611c4c
* value.h (struct value): Delete field ``substring_addr''. Change
...
aligner fields to force_doublest_align, force_longest_align,
force_core_addr_align and force_pointer_align.
2002-03-17 01:10:15 +00:00
Peter Schauer
4156bb5348
* ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
...
to fix internal_error from ``maintenance print architecture''.
2002-03-16 21:09:33 +00:00
Peter Schauer
0e5e3ea669
* cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
...
for gcc versions after gcc-2.8.1.
2002-03-16 20:53:14 +00:00
Peter Schauer
9b013045b0
* eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
...
for method resolution. Restore adjustment of ``this'' pointer after
calling value_struct_elt, which was accidentally removed during the
HP merge.
2002-03-16 20:51:44 +00:00
Andrew Cagney
376c960019
* eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
...
value_of_register.
* findvar.c (value_of_register): Add ``frame'' parameter. Pass to
get_saved_register.
* value.h (value_of_register): Update.
2002-03-16 02:57:42 +00:00
Richard Henderson
a4db0f0748
* configure.in: Detect declaration for canonicalize_file_name.
...
* utils.c (canonicalize_file_name): Declare, if needed.
(gdb_realpath): Prefer realpath if available and usable.
* config.in, configure: Rebuild.
2002-03-15 00:44:49 +00:00
Richard Henderson
963838355f
* dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
...
a constant array bound.
2002-03-14 22:53:35 +00:00
Michal Ludvig
e641a1ca3d
* gdbserver/remote-util.c (remote_open): Print remote-side's
...
IP address when remote debugging over the network.
2002-03-13 20:42:16 +00:00
David O'Brien
df08bfec58
What was I thinking....
...
2002-03-12 David O'Brien <obrien@FreeBSD.org>
* config/sparc/fbsd.mh: Fix copyright.
* config/sparc/fbsd.mt: Likewise.
2002-03-13 03:20:24 +00:00
Richard Earnshaw
9a57864f61
* MAINTAINERS: Fix typo in name of gdb warnings option.
...
(x86-64): Fix formating so that this can be parsed by awk.
2002-03-11 10:37:52 +00:00
Daniel Jacobowitz
dd7bf85ea9
gdb/:
...
2002-03-10 Daniel Jacobowitz <drow@mvista.com>
* Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
* defs.h: Include "gdb/signals.h".
(enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
include/gdb:
2002-03-10 Daniel Jacobowitz <drow@mvista.com>
* signals.h: New file, split from gdb/defs.h.
2002-03-11 00:01:11 +00:00
Michal Ludvig
33a0a2ac44
* x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
...
* x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
from x86-64-tdep.h
2002-03-10 18:16:26 +00:00
Daniel Jacobowitz
dd824b049b
2002-03-10 Daniel Jacobowitz <drow@mvista.com>
...
Don Howard <dhoward@redhat.com>
* mips-tdep.c (ST0_FR): Define.
(mips2_fp_compat): New function, temporarily disabled.
(mips_read_fp_register_single): New function.
(mips_read_fp_register_double): New function.
(mips_print_register): Use them.
(do_fp_register_row): Likewise.
2002-03-10 17:00:27 +00:00
Andrew Cagney
6a41ff5934
* MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
...
approval''.
2002-03-10 03:09:52 +00:00
Peter Schauer
4ea09c106d
* stabsread.c (read_member_functions): Fix is_stub test for
...
static member functions, improve comment.
2002-03-08 17:19:39 +00:00
Richard Earnshaw
6ccc741d0b
* remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
...
(mywrite, mywritec, mypause, myreadc, mygets): Likewise.
(_initialize_remote_rdi): Use add_set_boolean_cmd to register
commands that set boolean values.
(arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
(arm_rdi_resume): Always initialize PC.
(arm_rdi_open): Don't use rslt as a boolean.
(arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
(arm_rdi_fetch_registers, arm_rdi_store_registers)
(arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
(arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
2002-03-07 15:29:53 +00:00
Alexandre Oliva
438013dfea
* configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
...
* configure: Rebuilt.
2002-03-06 21:16:00 +00:00
Stephane Carrez
70ed877417
* m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
...
(m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
2002-03-06 20:07:47 +00:00
Andrew Cagney
5ba2abebe7
* cli/cli-decode.c (set_cmd_completer): New function.
...
* command.h (set_cmd_completer): Declare.
* cli/cli-decode.h (set_cmd_completer): Ditto.
* breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
* cli/cli-cmds.c (init_cli_cmds): Ditto.
* win32-nat.c (_initialize_inftarg): Ditto.
* remote-rdi.c (_initialize_remote_rdi): Ditto.
* proc-api.c (_initialize_proc_api): Ditto.
* hppa-tdep.c (_initialize_hppa_tdep): Ditto.
* source.c (_initialize_source): Ditto.
* exec.c (_initialize_exec): Ditto.
* solib.c (_initialize_solib): Ditto.
* top.c (init_main): Ditto.
* tracepoint.c (_initialize_tracepoint): Ditto.
* symfile.c (_initialize_symfile): Ditto.
* printcmd.c (_initialize_printcmd): Ditto.
* infcmd.c (_initialize_infcmd): Ditto.
* corefile.c (_initialize_core): Ditto.
2002-03-06 06:28:35 +00:00
Andrew Cagney
f779ca9906
* MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
2002-03-06 04:46:44 +00:00
Andrew Cagney
01a3934be5
* MAINTAINERS: Fix Mac OS X and Objective-C/C++.
2002-03-06 03:50:12 +00:00
Andrew Cagney
37057839e2
* NEWS: Update headings, 5.2 has branched.
2002-03-05 22:57:57 +00:00
Daniel Jacobowitz
c6ecbae5ad
2002-03-04 Daniel Jacobowitz <drow@mvista.com>
...
* gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
(num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
(register_addr, REGISTER_RAW_SIZE): Likewise.
(usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
* gdbserver/linux-x86-64-low.c: Remove extra #endif.
2002-03-04 16:28:35 +00:00
Michal Ludvig
e9f30c21b8
* MAINTAINERS (x86-64): Add myself
...
* x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
changed value_ptr -> struct value *
2002-03-04 11:08:28 +00:00
David O'Brien
54394ac39e
2002-03-01 David O'Brien <obrien@FreeBSD.org>
...
* configure.host (sparc64-*-freebsd): Add.
* configure.tgt: Likewise.
* config/sparc/fbsd.mh: New file.
* config/sparc/fbsd.mt: Likewise.
* config/sparc/nm-fbsd.h: Likewise.
* config/sparc/tm-fbsd.h: Likewise.
2002-03-01 18:35:24 +00:00
Daniel Jacobowitz
bfe9595524
2002-03-01 Daniel Jacobowitz <drow@mvista.com>
...
* config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
regformats/reg-s390x.dat.
2002-03-01 16:11:23 +00:00
Andrew Cagney
f33c6cbfe5
Add FIXME explaining include problem.
2002-03-01 06:19:28 +00:00