Adam Fedor
d2630e6981
* linespec.c (decode_objc): New function to decode ObjC calls
...
(decode_line_1): Check for ObjC calls (using decode_objc)
* Makefile (linespec.o): Update dependencies.
2003-04-27 03:23:38 +00:00
Daniel Jacobowitz
3086aeaed2
* breakpoint.h (struct breakpoint_ops): New.
...
(struct breakpoint): Add ops member.
* breakpoint.c (print_bp_stop_message, print_one_breakpoint)
(mention): Use new breakpoint ops member.
(set_raw_breakpoint): Initialize ops field to NULL.
(print_exception_catchpoint, print_one_exception_catchpoint)
(print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
(gnu_v3_exception_catchpoint_ops): New.
(catch_exception_command_1): Call handle_gnu_v3_exceptions.
2003-04-27 01:11:10 +00:00
gdbadmin
44c0647d80
*** empty log message ***
2003-04-27 00:00:31 +00:00
Adam Fedor
1fbec6c348
* Makefile.in (COMMON_OBS): Add objc-lang.o
2003-04-26 01:57:28 +00:00
gdbadmin
626c000b6c
*** empty log message ***
2003-04-26 00:00:32 +00:00
Andrew Cagney
0ef21242ea
2003-04-25 Andrew Cagney <cagney@redhat.com>
...
* d10v-tdep.c (print_insn): Delete function.
(display_trace): Use TARGET_PRINT_INSN.
(_initialize_d10v_tdep): Do not set tm_print_insn.
(d10v_gdbarch_init): Set print_insn.
2003-04-25 22:14:05 +00:00
Andrew Cagney
f75493ed72
2003-04-25 Andrew Cagney <cagney@redhat.com>
...
* d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
(_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
(d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
(NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
(nr_dmap_regs, a0_regnum): ... new functions.
(d10v_print_registers_info): Use a0_regnum, use register_size.
(d10v_register_byte): Delete function.
(d10v_register_raw_size): Delete function.
(d10v_register_type): Use a0_regnum.
(d10v_print_registers_info): Use a0_regnum.
(D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
(d10v_gdbarch_init): Do not set register_byte or
register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
(d10v_pointer_to_address): Use extract_unsigned_integer instead of
extract_address.
(trace_command): Use XCALLOC.
(print_insn): Delete reference to tm_print_insn.
(saved_regs_unwinder): Use store_unsigned_integer instead of
store_address.
* frame.h (FRAME_OBSTACK_CALLOC): Define
2003-04-25 21:20:58 +00:00
David Carlton
2202b100e8
2003-04-25 David Carlton <carlton@bactrian.org>
...
* config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
2003-04-25 16:49:22 +00:00
Adam Fedor
4e45ca2e2a
* objc-lang.c: Include "valprint.h"
...
* Makefile.in (objc-lang.o): Update dependencies.
2003-04-25 03:30:17 +00:00
Adam Fedor
93de3e7f81
* objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
...
architecture dependant compilation and mark as unimplemented
(until they get put in the gdbarch vector).
2003-04-25 03:18:20 +00:00
gdbadmin
4ac33a9514
*** empty log message ***
2003-04-25 00:00:32 +00:00
gdbadmin
6e94181b1e
*** empty log message ***
2003-04-24 00:00:31 +00:00
David Carlton
0f20eeea6c
2003-04-23 David Carlton <carlton@bactrian.org>
...
* cp-support.c (cp_find_first_component): Accept 'operator' in
more locations.
2003-04-23 David Carlton <carlton@bactrian.org>
* gdb.c++/maint.exp (test_first_component): Add tests for
'operator' in more locations.
2003-04-23 23:45:24 +00:00
Andrew Cagney
74cfe982ed
2003-04-23 Andrew Cagney <cagney@redhat.com>
...
* infcall.c (call_function_by_hand): Eliminate redundant
indentation. Move "saved_async" and "old_cleanups" to where they
are needed.
2003-04-23 22:28:42 +00:00
Andrew Cagney
5255753375
2003-04-23 Andrew Cagney <cagney@redhat.com>
...
* infcall.c (call_function_by_hand): Eliminate the variables "rc"
and "buffer". Move the "name" code to where it is needed.
2003-04-23 22:12:40 +00:00
Andrew Cagney
158775dee3
2003-04-23 Andrew Cagney <cagney@redhat.com>
...
* infcall.c (call_function_by_hand): Move variables "start_sp",
"dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
code to ON_STACK switch branch.
2003-04-23 21:14:33 +00:00
Andrew Cagney
ebc7896c3c
2003-04-23 Andrew Cagney <cagney@redhat.com>
...
* infcall.c (call_function_by_hand): Make declaration of "i",
"sal", "bpt" and "old_sp" more local to their use. Delete #if
lint.
2003-04-23 20:31:57 +00:00
Andrew Cagney
d727590f88
2003-04-23 Andrew Cagney <cagney@redhat.com>
...
* infcall.c (call_function_by_hand): Delete variable
"n_method_args". Localize "param_type"'s declaration to the loop
that it is used. Reinstate code assigning to said variable -
deleted on 2002-06-14. Rationalize calls to value_args_coerce.
Rationalize code using "param_type".
2003-04-23 19:32:38 +00:00
Andrew Cagney
d585e13a97
2003-04-22 Andrew Cagney <cagney@redhat.com>
...
* infcall.c (call_function_by_hand): Use new variable "bp_addr" to
compute the breakpoint address. Only call FIX_CALL_DUMMY when
ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
to DEPRECATED_PUSH_RETURN_ADDRESS.
2003-04-23 15:02:02 +00:00
gdbadmin
e5fe5ced63
*** empty log message ***
2003-04-23 03:38:43 +00:00
Kevin Buettner
051caad9cb
* dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
...
on the DWARF2 register number prior to fetching a register.
2003-04-22 23:18:26 +00:00
Joel Brobecker
772968793e
* config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
...
Update all the tests using SOFT_FLOAT considering the fact that
this macro was always set to 0.
* config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
considering the fact that this macro was always set to 0.
* hppa-tdep.h (hppa_store_return_value): Likewise.
(hppa_extract_return_value): Likewise.
2003-04-22 23:04:40 +00:00
Joel Brobecker
4252f1df1a
* config/pa/tm-hppa.h: Remove obsolete code, was used by
...
the hppa-pro target only.
2003-04-22 18:27:47 +00:00
Joel Brobecker
14604c6bf7
Ongoing multi-arch conversion effort for HP/UX:
...
* config/pa/tm-hppa.h: Move all macro that are no longer
defined now that GDB_MULTI_ARCH is now set to 1 from here...
* config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
2003-04-22 02:44:27 +00:00
Joel Brobecker
77eb01d11f
* config/pa/tm-hppa.h: Obsolete a section that was only used
...
for hppa-pro.
2003-04-22 01:13:05 +00:00
Joel Brobecker
61995b3b2c
Ongoing multi-arch conversion for HP/UX.
...
* config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
if already defined (allows hppa64 to stay non-multiarched for now).
* config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
2003-04-22 00:53:54 +00:00
gdbadmin
52ad6187b7
*** empty log message ***
2003-04-22 00:00:32 +00:00
Andrew Cagney
4aa79dcc21
2003-04-21 Andrew Cagney <cagney@redhat.com>
...
* frame.c (frame_id_eq): Fail when the code_addr's do not match.
2003-04-21 19:34:02 +00:00
Andrew Cagney
0f751ff2f4
2003-04-21 Andrew Cagney <cagney@redhat.com>
...
* i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
"i386_num_mmx_regs".
2003-04-21 18:55:52 +00:00
Andrew Cagney
04714b914f
2003-04-21 Andrew Cagney <cagney@redhat.com>
...
* infcall.c: New file.
* infcall.h: New file.
* valarith.c: Include "infcall.h".
* scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
* eval.c, ada-valprint.c, ada-lang.c: Ditto.
* Makefile.in (valarith.o, scm-lang.o): Update dependencies.
(objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
(eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
(SFILES): Add "infcall.c"
(COMMON_OBS): Add "infcall.o".
(infcall.o): Specify dependencies.
* value.h (call_function_by_hand): Delete declaration.
* inferior.h (run_stack_dummy): Delete declaration.
* infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
(run_stack_dummy): Move to "infcall.c", merged into
call_function_by_hand.
* valops.c (call_function_by_hand): Moved to "infcall.c".
(find_function_addr, value_arg_coerce): Ditto.
(unwindonsignal_p, coerce_float_to_double): Ditto.
(_initialize_valops): Move "set/show coerce-float-to-double", and
"set/show unwindonsignal" commands to "infcall.c".
* v850-tdep.c, target.h: Update comments.
* sparc-tdep.c (sparc_fix_call_dummy): Update comments.
* sh-tdep.c (sh_init_extra_frame_info): Update comments.
(sh64_init_extra_frame_info): Update comments.
* mn10300-tdep.c: Update comments.
* mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
* config/sparc/tm-sparc.h: Update comments.
* breakpoint.h: Update comments.
* avr-tdep.c (avr_init_extra_frame_info): Update comments.
* arm-tdep.c: Update comment.
2003-04-21 16:48:41 +00:00
gdbadmin
7d6c247d0e
*** empty log message ***
2003-04-21 00:00:02 +00:00
gdbadmin
0abe530a33
*** empty log message ***
2003-04-20 00:00:31 +00:00
Mark Kettenis
c40e1eabaf
* i386-tdep.c (i386_num_register_names): New variable.
...
(i386_num_mmx_regs): Renamed from mmx_num_regs.
(MM0_REGNUM): Remove redundant parentheses in define.
(i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
(i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
i386_mxcsr_regnum_p): Remove redundant parentheses.
(i386_register_name): Use i386_num_register_names.
2003-04-19 14:43:50 +00:00
Mark Kettenis
94ea66b376
* i386-tdep.c (i386_extract_return_value,
...
i386_store_return_value): Correct check for availability of
floating-point registers.
2003-04-19 14:38:47 +00:00
Mark Kettenis
54299a1dfc
* i386-tdep.c (i386_frame_num_args): Remove function.
...
(i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
2003-04-19 14:34:31 +00:00
Mark Kettenis
c86c27affb
* i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
...
mmx_regnum_to_fp_regnum. Adjust all callers.
2003-04-19 14:30:33 +00:00
Mark Kettenis
f9d3c2a8ad
* i386-tdep.c (i386_get_longjmp_target): Use
...
TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
and TARGET_CHAR_BIT. Use extract_typed_address instead of
extract_address.
2003-04-19 14:26:15 +00:00
Mark Kettenis
94ba74a9fa
* core-regset.c: Update comments to reflect reality. Re-order
...
includes.
(fetch_core_registers): Use switch instead of if. Remove
redundant prototype.
2003-04-19 12:00:48 +00:00
gdbadmin
d6ae4bd9d3
*** empty log message ***
2003-04-19 00:00:02 +00:00
Jim Blandy
4074e13c63
* s390-tdep.c (s390_frame_align): New function.
...
(s390_gdbarch_init): Register it with the gdbarch object.
2003-04-18 20:20:21 +00:00
Richard Henderson
e3ab4aba1a
* remote.c (minitelnet): Don't redeclare escape_count, echo_check.
2003-04-18 00:21:38 +00:00
gdbadmin
efc864b149
*** empty log message ***
2003-04-18 00:00:01 +00:00
Elena Zannoni
627bf7c1c7
2003-04-17 Michael Snyder <msnyder@redhat.com>
...
Karen Bennet <bennet@redhat.com>
Committed by Elena Zannoni <ezannoni@redhat.com>
* gdb_gcore.sh: New script to create a core dump of a process.
2003-04-17 20:33:09 +00:00
Elena Zannoni
514621a981
2003-04-17 Elena Zannoni <ezannoni@redhat.com>
...
* values.c (value_being_returned): Don't fetch the return
value if the return type is void.
2003-04-17 20:31:43 +00:00
Jeff Johnston
b4acd5590b
2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
...
* thread-db.c: Reindented.
2003-04-17 17:30:02 +00:00
Jeff Johnston
530b167e9a
2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
...
* gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
as types.
2003-04-17 17:18:49 +00:00
gdbadmin
f32ffeb535
*** empty log message ***
2003-04-17 00:00:32 +00:00
Kevin Buettner
610a37459e
Fix typo.
2003-04-16 20:44:04 +00:00
Kevin Buettner
ab9fe00ef0
* rs6000-tdep.c (rs6000_gdbarch_init): For the SVR4 ABI, set
...
the size of ``long double'' to 16, instead of 8.
2003-04-16 20:41:46 +00:00
Kevin Buettner
c8c4d8dcfb
* gdb.base/args.exp: Invoke gdb_load for simulator targets.
2003-04-16 20:29:42 +00:00
Elena Zannoni
3fe60e3c14
2003-04-16 Elena Zannoni <ezannoni@redhat.com>
...
* gdb.base/completion.exp: Make 'info func mark' complete on 'info
func marke' instead. Update test name.
2003-04-16 20:07:08 +00:00
Mark Kettenis
e64a344cc8
* i386-linux-nat.c: Add some whitespace to make things more
...
readable.
(fetch_register, store_register, fetch_inferior_registers,
store_inferior_registers): Get rid of assignment in if-statement.
(store_register): Fix typo in error message.
2003-04-16 15:22:02 +00:00
Andrew Cagney
25d4103164
2003-04-16 Andrew Cagney <cagney@redhat.com>
...
* utils.c (xmmalloc): Always allocate something, matches
libiberty/xmalloc's semantics.
(xmrealloc, xmcalloc): Ditto.
2003-04-16 14:43:03 +00:00
Andrew Cagney
c50901fda0
2003-04-16 Andrew Cagney <cagney@redhat.com>
...
* frame.c (get_prev_frame): Do not initialize "unwind" or "type",
update comments.
(get_frame_type): Initialize unwind and type when needed.
(get_frame_id, frame_register_unwind): Ditto.
2003-04-16 14:39:47 +00:00
Andrew Cagney
f81824a9ed
2003-04-16 Andrew Cagney <cagney@redhat.com>
...
* NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
obsolete.
* sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
* sparcl-stub.c: Obsolete file.
* config/sparc/tm-sparclet.h: Obsolete file.
* sparclet-stub.c: Obsolete file.
* sparclet-rom.c: Obsolete file.
* sparcl-tdep.c: Obsolete file.
* config/sparc/tm-sparclite.h: Obsolete file.
* config/sparc/sparclite.mt: Obsolete file.
* config/sparc/sparclet.mt: Obsolete file.
* configure.tgt: Make sparclet-*-*, sparclite-*-*, and
sparc86x-*-* obsolete.
2003-04-16 14:32:21 +00:00
gdbadmin
897dafdda2
*** empty log message ***
2003-04-16 00:00:31 +00:00
David Carlton
9219021cb5
2003-04-15 David Carlton <carlton@math.stanford.edu>
...
* Makefile.in (SFILES): Add cp-namespace.c.
(COMMON_OBS): Add cp-namespace.o.
(block.o): Depend on gdb_obstack_h and cp_support_h.
(buildsym.o): Depend on cp_support_h.
(cp-namespace.o): New.
(cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
(dwarf2read.o): Depend on cp_support_h.
* jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
* dwarf2read.c (process_die): Set processing_has_namespace_info,
processing_current_namespace.
(read_namespace): Update processing_current_namespace; check for
anonymous namespaces.
(dwarf2_name): New function.
(dwarf2_extension): Ditto.
* cp-support.h: Update copyright, contributors.
Add inclusion guards.
Add opaque declaration for structs obstack, block, symbol.
(struct using_direct): New struct.
Add declarations for cp_find_first_component,
cp_entire_prefix_len, processing_has_namespace_info,
processing_current_namespace, cp_is_anonymous,
cp_add_using_directive, cp_initialize_namespace,
cp_finalize_namespace, cp_set_block_scope,
cp_scan_for_anonymous_namespaces.
* cp-namespace.c: New file.
* cp-support.c: Update copyright.
Include ctype.h, gdb_assert.h, gdbcmd.h.
New variable maint_cplus_cmd_list.
(cp_find_first_component): New function.
(cp_entire_prefix_len, maint_cplus_command)
(first_component_command, _initialize_cp_support): Ditto.
* buildsym.c: Include cp-support.h.
New variable using_list.
(add_symbol_to_list): Check for anonymous namespaces.
(finish_block): Set block's scope.
(start_symtab): Initialize C++ namespace support.
(end_symtab): Finalize C++ namespace support.
* block.h: Add opaque declarations for structs
block_namespace_info, using_direct, and obstack.
Add declarations for block_set_scope and block_set_using.
(struct block): Add 'language_specific' member.
(BLOCK_NAMESPACE): New macro.
* block.c: Include gdb_obstack.h and cp-support.h.
(struct block_namespace_info): New struct.
(block_set_scope): New function.
(block_set_using, block_initialize_namespace): Ditto.
2003-04-15 David Carlton <carlton@math.stanford.edu>
* gdb.c++/maint.exp: New file.
2003-04-15 23:07:11 +00:00
Elena Zannoni
5dd55bddfe
2003-04-14 Elena Zannoni <ezannoni@redhat.com>
...
* gdb.threads/schedlock.c: Change type of thread function argument
to long, to avoid warnings on 64-bit platforms.
2003-04-15 02:23:11 +00:00
Kevin Buettner
d5a921c9a8
* solib-svr4.c (svr4_have_link_map_offsets): New function.
...
(locate_base): Return early if there aren't any link map offsets.
(svr4_solib_create_inferior_hook): Warn if shared library support
is unavailable.
2003-04-15 00:28:23 +00:00
gdbadmin
351980a492
*** empty log message ***
2003-04-15 00:00:32 +00:00
David Carlton
d2a52b2763
2003-04-14 David Carlton <carlton@math.stanford.edu>
...
* symtab.c (symbol_set_names): Add prefix when storing Java names
in hash table. Fix for PR java/1039.
2003-04-14 19:56:32 +00:00
David Carlton
980cae7a71
2003-04-14 David Carlton <carlton@math.stanford.edu>
...
* symtab.c (symbol_set_names): Rename 'name' arg to
'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
* symtab.h: Change 'name' argument in declaration of
symbol_set_names to 'linkage_name'.
(SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
2003-04-14 19:55:27 +00:00
Andrew Cagney
e227b13c67
2003-04-14 Andrew Cagney <cagney@redhat.com>
...
* mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
return the fully sign-extended register value.
(get_frame_pointer): Ditto.
(mips_pop_frame): Initialize "proc_desc" after checking for a
dummy frame.
2003-04-14 19:16:13 +00:00
Andrew Cagney
36712a20aa
2003-04-14 Andrew Cagney <cagney@redhat.com>
...
* mips-tdep.c (mips_push_dummy_frame): Delete function.
(MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
(FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
(mips_push_register): Delete function.
(mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
PUSH_FP_REGNUM.
2003-04-14 19:06:48 +00:00
Jim Blandy
44ea7b70f9
gdb/ChangeLog:
...
2003-04-10 Jim Blandy <jimb@redhat.com>
* symmisc.c: #include "gdb_regex.h".
(maintenance_list_symtabs, maintenance_list_psymtabs): New
functions.
* maint.c (maintenance_list_command): New function.
(_initialize_maint_cmds): Register the above as commands.
* symtab.h (maintenance_list_symtabs,
maintenance_list_psymtabs): New declarations.
* cli/cli-cmds.c (maintenancelistlist): New variable.
(init_cmd_lists): Initialize it.
* cli/cli-cmds.h (maintenancelistlist): New declaration.
* gdbcmd.h (maintenancelistlist): New declaration.
* Makefile.in (symmisc.o): Update dependencies.
gdb/doc/ChangeLog:
2003-04-09 Jim Blandy <jimb@redhat.com>
* gdb.texinfo (Symbols): Document 'maint list symtabs' and 'maint
list psymtabs'.
2003-04-14 18:42:28 +00:00
Elena Zannoni
2d0c796236
2003-04-08 Elena Zannoni <ezannoni@redhat.com>
...
* s390-nat.c: Include asm/types.h for addr_t.
2003-04-14 14:21:07 +00:00
Elena Zannoni
0089057280
2003-04-14 Elena Zannoni <ezannoni@redhat.com>
...
* gdb.base/attach.exp: Add new message from ptrace in case of
attaching to nonexistent process.
2003-04-14 14:04:06 +00:00
Corinna Vinschen
1947a811e8
* cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
...
actually incoming type.
2003-04-14 08:47:42 +00:00
Andrew Cagney
adb616d7c2
2003-04-13 Andrew Cagney <cagney@redhat.com>
...
* ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
get_next_frame and get_frame_saved_regs.
2003-04-14 02:29:40 +00:00
gdbadmin
fdab63a91c
*** empty log message ***
2003-04-14 00:00:31 +00:00
Andrew Cagney
9b5e151c9d
2003-04-13 Andrew Cagney <cagney@redhat.com>
...
* reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
of gdbarch_num_regs.
2003-04-13 22:34:27 +00:00
Andrew Cagney
ef6e7e1393
2003-04-13 Andrew Cagney <cagney@redhat.com>
...
* frame.h: Mention what replaced what in "struct frame_info".
* hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
deprecated_update_frame_base_hack and
deprecated_update_frame_pc_hack.
* hppa-tdep.c: Ditto.
2003-04-13 15:54:58 +00:00
Daniel Jacobowitz
61fbb938d6
* dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
...
to read_reg and update its comment. Remove regnum member.
* dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
Don't call read_reg when setting in_reg. Call read_reg to get
the frame base if it's in a register. Return the register number
on the stack instead of in the context. Remove extra arguments
to read_reg.
* dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
(dwarf2_evaluate_loc_desc): Call value_from_register. Expect
the register number on the expression stack.
(needs_frame_read_reg): Remove extra arguments.
2003-04-13 15:53:44 +00:00
Daniel Jacobowitz
0d53c4c49f
2003-04-13 Daniel Jacobowitz <drow@mvista.com>
...
* dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
made non-static.
(execute_stack_op): All callers updated.
* dwarf2expr.h: Add prototype for dwarf2_read_address.
* dwarf2loc.c (find_location_expression): New function.
(dwarf_expr_frame_base): Call it.
(dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
(dwarf2_tracepoint_var_ref): New function, broken out from
locexpr_tracepoint_var_ref.
(locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
Make static.
(loclist_read_variable, loclist_read_needs_frame): New functions.
(loclist_describe_location, loclist_tracepoint_var_ref): New
functions.
(dwarf2_loclist_funcs): New struct location_funcs.
* dwarf2loc.h (struct dwarf2_loclist_baton): New type.
(struct dwarf2_locexpr_baton): Add comments.
(dwarf2_loclist_funcs): New extern.
* dwarf2read.c (struct comp_unit_head): Remove DIE member, add
base_address and base_known.
(dwarf_loc_buffer): New variable.
(struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
(DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
(dwarf2_has_info): Initialize dwarf_loc_offset.
(dwarf2_build_psymtabs): Read in .debug_loc.
(dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
DWARF_LOC_SIZE.
(psymtab_to_symtab_1): Likewise. Move base address calculation
here, from...
(dwarf2_get_pc_bounds): ... here. Use the base address from
cu_header.
(dwarf2_symbol_mark_computed): Handle location lists.
2003-04-13 15:43:35 +00:00
Daniel Jacobowitz
6aca59a359
* minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
...
if the linkage name demangled successfully.
2003-04-13 15:25:23 +00:00
Mark Kettenis
97095916d8
* x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
...
disassmbly_flavour): Removed.
2003-04-13 14:51:20 +00:00
Mark Kettenis
aca1fcd067
* x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
2003-04-13 13:33:49 +00:00
Mark Kettenis
562a961f81
* x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
2003-04-13 12:32:02 +00:00
Andrew Cagney
bd013d5471
2003-04-12 Andrew Cagney <cagney@redhat.com>
...
* frame.h (struct frame_info): Move definition from here ...
* frame.c (struct frame_info): ... to here.
2003-04-13 00:10:22 +00:00
gdbadmin
dd56a831d6
*** empty log message ***
2003-04-13 00:00:31 +00:00
Andrew Cagney
167ef8b184
2003-04-12 Andrew Cagney <cagney@redhat.com>
...
* gdbthread.h (save_infrun_state): Delete parameter
"prev_func_start".
(struct thread_info): Delete field "prev_func_start".
(load_infrun_state): Ditto.
* thread.c (load_infrun_state, save_infrun_state): Update.
* infrun.c (prev_func_start): Delete variable.
(context_switch, init_wait_for_inferior): Update.
(stop_stepping, keep_going): Update.
2003-04-12 17:48:55 +00:00
Andrew Cagney
da3331ec16
2003-04-12 Andrew Cagney <cagney@redhat.com>
...
* gdbarch.sh: Add missing opaque declarations.
* gdbarch.h: Regnerate.
* symtab.h: Add missing opaque declarations.
* value.h, target.h, symfile.h, stabsread.h: Ditto.
* x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
* srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
* ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
* ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
* buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
* i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
* dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
* cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
* ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
* config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
* config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
* cli/cli-setshow.h, cli/cli-script.h: Ditto.
2003-04-12 17:41:26 +00:00
Andrew Cagney
18adea3ff6
2003-04-11 Andrew Cagney <cagney@redhat.com>
...
* frame.c (get_frame_id): Return this frame's "id".
(legacy_get_prev_frame): Set prev's frame ID code_addr to the
function start.
(legacy_saved_regs_this_id): Replace function body with
internal-error.
(deprecated_frame_xmalloc): Mark the frame ID as valid, use
FRAME_OBSTACK_ZALLOC.
(create_new_frame): Mark the frame ID as valid.
2003-04-12 04:27:29 +00:00
Alexandre Oliva
2252e86367
* Makefile.in (libbfd_h): Added missing setting.
...
* mips-tdep.c (mips_gdbarch_init): Set disassembler_options
according to the selected ABI.
2003-04-12 00:31:30 +00:00
gdbadmin
8ad2004bf0
*** empty log message ***
2003-04-12 00:00:02 +00:00
Jeff Johnston
a8245ab8a4
2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
...
* gdb_indent.sh: Recognize pid_t and sigset_t as types.
2003-04-11 20:56:40 +00:00
Jim Blandy
93201743fe
* gdb.c++/derivation.exp, gdb.c++/overload.exp,
...
gdb.c++/userdef.cc: Place comments on the lines to which the
marker function might return.
* gdb.c++/derivation.exp, gdb.c++/overload.exp,
gdb.c++/userdef.exp: Look for those comments to check that we've
returned to the right place, instead of checking line numbers.
2003-04-11 19:57:33 +00:00
Andrew Cagney
6913c89ac7
2003-04-11 Andrew Cagney <cagney@redhat.com>
...
* gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
SAVED_PC_AFTER_CALL.
* gdbarch.h, gdbarch.c: Regenerate.
* xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
* x86-64-tdep.c (x86_64_init_abi): Update.
* vax-tdep.c (vax_gdbarch_init): Update.
* v850-tdep.c (v850_gdbarch_init): Update.
* sparc-tdep.c (sparc_gdbarch_init): Update.
* sh-tdep.c (sh_gdbarch_init): Update.
* s390-tdep.c (s390_gdbarch_init): Update.
* rs6000-tdep.c (rs6000_gdbarch_init): Update.
* ns32k-tdep.c (ns32k_gdbarch_init): Update.
* mn10300-tdep.c (mn10300_gdbarch_init): Update.
* mips-tdep.c (mips_gdbarch_init): Update.
* mcore-tdep.c (mcore_gdbarch_init): Update.
* m68k-tdep.c (m68k_gdbarch_init): Update.
* m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
* ia64-tdep.c (ia64_gdbarch_init): Update.
(ia64_saved_pc_after_call): Update declaration.
* i386ly-tdep.c (i386lynx_init_abi): Update.
* i386-tdep.c (i386_gdbarch_init): Update.
* hppa-tdep.c (hppa_gdbarch_init): Update.
* h8300-tdep.c (h8300_gdbarch_init): Update.
* frv-tdep.c (frv_gdbarch_init): Update.
* cris-tdep.c (cris_gdbarch_init): Update.
* avr-tdep.c (avr_gdbarch_init): Update.
* arm-tdep.c (arm_gdbarch_init): Update.
* alpha-tdep.c (alpha_gdbarch_init): Update.
* ns32knbsd-nat.c (frame_num_args): Update.
* ns32k-tdep.c (umax_frame_num_args): Update.
* mips-tdep.c (mips_init_frame_pc_first): Update.
* infrun.c (step_over_function): Update.
* i386-linux-tdep.c (skip_hurd_resolver): Update.
* i386-interix-tdep.c (i386_interix_back_one_frame): Update.
* config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
(DEPRECATED_INIT_FRAME_PC_FIRST): Update.
* config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
* config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
* arm-linux-tdep.c (skip_hurd_resolver): Update.
* arch-utils.c (init_frame_pc_default): Update.
* alpha-tdep.c (alpha_init_frame_pc_first): Update.
* x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
declaration.
2003-04-11 18:15:40 +00:00
Andrew Cagney
38edeab8b1
2003-04-11 Andrew Cagney <cagney@redhat.com>
...
* i387-tdep.c: Update copyright.
(i387_to_double): Delete function.
(double_to_i387): Delete function.
2003-04-11 14:56:40 +00:00
Elena Zannoni
2a11c64dc4
2003-04-11 Elena Zannoni <ezannoni@redhat.com>
...
* gdb.threads/pthreads.exp (test_startup): When setting a breakpoint
match on sourcefile name, instead of directory name.
2003-04-11 13:55:32 +00:00
Andrew Cagney
81f8a2067a
2003-04-10 Andrew Cagney <cagney@redhat.com>
...
* d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
frame's function's address. Simplify.
(d10v_frame_unwind_cache): Check that the frame's function is
non-zero.
2003-04-11 03:12:58 +00:00
gdbadmin
e22833a2c9
*** empty log message ***
2003-04-11 00:00:03 +00:00
Jim Blandy
6e691f7a82
* s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
...
call to set_gdbarch_deprecated_push_arguments.
2003-04-10 22:40:38 +00:00
Andrew Cagney
7f78e23771
2003-04-10 Andrew Cagney <cagney@redhat.com>
...
* frame.c (fprint_frame_id): New function.
(fprint_frame_type, fprint_frame): New function.
(frame_pc_unwind, frame_func_unwind): Add/update trace code.
(create_sentinel_frame, get_frame_id): Ditto.
(frame_id_p, frame_id_eq): Ditto.
(frame_id_inner, create_new_frame): Ditto.
(legacy_get_prev_frame, get_prev_frame): Ditto.
(deprecated_update_frame_pc_hack): Ditto.
(frame_register_unwind): Ditto.
(deprecated_update_frame_base_hack): Ditto.
2003-04-10 15:32:27 +00:00
Elena Zannoni
68ab8fc55f
2003-04-10 Elena Zannoni <ezannoni@redhat.com>
...
* gdb.base/completion.exp: Use string_to_regexp to match the
working directory name.
2003-04-10 13:38:15 +00:00
Corinna Vinschen
f870b49baf
* i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
...
(i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
frame_chain function.
* Makefile.in: Add dependencies due to above change.
2003-04-10 13:15:50 +00:00
Corinna Vinschen
7c86889b04
* blockframe.c (legacy_frame_chain_valid): Move call to
...
DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
inside_entry_file.
2003-04-10 11:12:30 +00:00
Andrew Cagney
d0a557723a
2003-04-09 Andrew Cagney <cagney@redhat.com>
...
* frame.h (struct frame_id): Replace "pc" and "base" with
"stack_addr" and "code_addr". Update comments.
(frame_id_build): Update parameter names and comment.
(struct frame_info): Replace "id_p" and "id" with "this_id".
* dummy-frame.c (dummy_frame_this_id): Update.
* breakpoint.c (print_one_breakpoint): Update.
* frame.c (get_frame_id): Update.
(get_frame_base, frame_id_build): Update.
(create_sentinel_frame, legacy_get_prev_frame): Update.
(deprecated_update_frame_base_hack): Update.
(frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
(frame_id_inner): Ditto.
2003-04-10 03:30:36 +00:00
Andrew Cagney
ac16bf075e
2003-04-09 Andrew Cagney <cagney@redhat.com>
...
* defs.h (gdb_print_host_address): Make "addr" parameter a
pointer constant.
* utils.c (gdb_print_host_address): Update.
2003-04-10 02:18:40 +00:00
gdbadmin
e4b633ba46
*** empty log message ***
2003-04-10 00:00:31 +00:00