binutils-gdb.git
21 years ago* Makefile.tpl (MAKEINFOFLAGS): Default to --split-size=5000000.
DJ Delorie [Sat, 19 Apr 2003 00:19:40 +0000 (00:19 +0000)]
* Makefile.tpl (MAKEINFOFLAGS): Default to --split-size=5000000.
* Makefile.in: Regenerate.

* configure.in (powerpc64*-*-linux*): Remove.
* configure: Rebuilt.

21 years agodaily update
Alan Modra [Sat, 19 Apr 2003 00:00:06 +0000 (00:00 +0000)]
daily update

21 years ago*** empty log message ***
gdbadmin [Sat, 19 Apr 2003 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago* s390-tdep.c (s390_frame_align): New function.
Jim Blandy [Fri, 18 Apr 2003 20:20:21 +0000 (20:20 +0000)]
* s390-tdep.c (s390_frame_align): New function.
(s390_gdbarch_init): Register it with the gdbarch object.

21 years ago2003-04-18 H.J. Lu <hjl@gnu.org>
H.J. Lu [Fri, 18 Apr 2003 15:33:49 +0000 (15:33 +0000)]
2003-04-18  H.J. Lu <hjl@gnu.org>

* ldfile.c (ldfile_add_library_path): Remove the unused
variable.

21 years ago * ehopt.c (check_eh_frame): For aug_size == 0
Jakub Jelinek [Fri, 18 Apr 2003 11:53:12 +0000 (11:53 +0000)]
* ehopt.c (check_eh_frame): For aug_size == 0
in state_seeing_aug_size state skip the state_skipping_aug
state.

21 years agoDefine __data and __rdata
Nick Clifton [Fri, 18 Apr 2003 08:26:17 +0000 (08:26 +0000)]
Define __data and __rdata

21 years agoOnly check associated vector if the matching_vector has been created.
Nick Clifton [Fri, 18 Apr 2003 08:06:01 +0000 (08:06 +0000)]
Only check associated vector if the matching_vector has been created.

21 years ago * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
Richard Henderson [Fri, 18 Apr 2003 00:21:38 +0000 (00:21 +0000)]
* remote.c (minitelnet): Don't redeclare escape_count, echo_check.

21 years agodaily update
Alan Modra [Fri, 18 Apr 2003 00:00:06 +0000 (00:00 +0000)]
daily update

21 years ago*** empty log message ***
gdbadmin [Fri, 18 Apr 2003 00:00:01 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago* Makefile.tpl (GCC_STRAP_TARGETS): New variable containing all the
DJ Delorie [Thu, 17 Apr 2003 21:30:52 +0000 (21:30 +0000)]
* Makefile.tpl (GCC_STRAP_TARGETS):  New variable containing all the
previous bootstrap targets, plus bubblestrap, quickstrap, cleanstrap,
and restrap.
* Makefile.in:  Regenerate.

* configure.in (arm-*-netbsdelf*): Enable building java libraries.
* configure: Regenerated.

21 years ago2003-04-17 Michael Snyder <msnyder@redhat.com>
Elena Zannoni [Thu, 17 Apr 2003 20:33:09 +0000 (20:33 +0000)]
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.

21 years ago2003-04-17 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Thu, 17 Apr 2003 20:31:43 +0000 (20:31 +0000)]
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.

21 years ago2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 17 Apr 2003 17:30:02 +0000 (17:30 +0000)]
2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>

        * thread-db.c: Reindented.

21 years ago2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 17 Apr 2003 17:18:49 +0000 (17:18 +0000)]
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.

21 years ago*** empty log message ***
gdbadmin [Thu, 17 Apr 2003 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

21 years agodaily update
Alan Modra [Thu, 17 Apr 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years agomerge from gcc
DJ Delorie [Wed, 16 Apr 2003 23:09:21 +0000 (23:09 +0000)]
merge from gcc

21 years agoFix typo.
Kevin Buettner [Wed, 16 Apr 2003 20:44:04 +0000 (20:44 +0000)]
Fix typo.

21 years ago * rs6000-tdep.c (rs6000_gdbarch_init): For the SVR4 ABI, set
Kevin Buettner [Wed, 16 Apr 2003 20:41:46 +0000 (20:41 +0000)]
* rs6000-tdep.c (rs6000_gdbarch_init): For the SVR4 ABI, set
the size of ``long double'' to 16, instead of 8.

21 years ago * gdb.base/args.exp: Invoke gdb_load for simulator targets.
Kevin Buettner [Wed, 16 Apr 2003 20:29:42 +0000 (20:29 +0000)]
* gdb.base/args.exp: Invoke gdb_load for simulator targets.

21 years ago2003-04-16 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Wed, 16 Apr 2003 20:07:08 +0000 (20:07 +0000)]
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.

21 years ago* i386-linux-nat.c: Add some whitespace to make things more
Mark Kettenis [Wed, 16 Apr 2003 15:22:02 +0000 (15:22 +0000)]
* 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.

21 years ago2003-04-16 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Wed, 16 Apr 2003 14:43:03 +0000 (14:43 +0000)]
2003-04-16  Andrew Cagney  <cagney@redhat.com>

* utils.c (xmmalloc): Always allocate something, matches
libiberty/xmalloc's semantics.
(xmrealloc, xmcalloc): Ditto.

21 years ago2003-04-16 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Wed, 16 Apr 2003 14:39:47 +0000 (14:39 +0000)]
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.

21 years ago2003-04-16 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Wed, 16 Apr 2003 14:32:21 +0000 (14:32 +0000)]
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.

21 years ago Add .jcr section mapping.
Nick Clifton [Wed, 16 Apr 2003 11:53:46 +0000 (11:53 +0000)]
 Add .jcr section mapping.

21 years agomerge from gcc
DJ Delorie [Wed, 16 Apr 2003 04:55:31 +0000 (04:55 +0000)]
merge from gcc

21 years agomerge from gcc
DJ Delorie [Wed, 16 Apr 2003 03:51:54 +0000 (03:51 +0000)]
merge from gcc

21 years agoFix changelog.
Andrew Cagney [Wed, 16 Apr 2003 00:58:40 +0000 (00:58 +0000)]
Fix changelog.

21 years ago2003-04-15 Richard Sandiford <rsandifo@redhat.com>
Chris Demetriou [Wed, 16 Apr 2003 00:52:08 +0000 (00:52 +0000)]
2003-04-15  Richard Sandiford  <rsandifo@redhat.com>

        * vr.igen (do_vr_mul_op): Zero-extend the low 32 bits of
        unsigned operands.

21 years ago* dwarf2.c (_bfd_dwarf2_find_nearest_line): Fix typo in
Alexandre Oliva [Wed, 16 Apr 2003 00:30:24 +0000 (00:30 +0000)]
* dwarf2.c (_bfd_dwarf2_find_nearest_line): Fix typo in
2003-04-09's change.

21 years ago*** empty log message ***
gdbadmin [Wed, 16 Apr 2003 00:00:31 +0000 (00:00 +0000)]
*** empty log message ***

21 years agodaily update
Alan Modra [Wed, 16 Apr 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago2003-04-15 David Carlton <carlton@math.stanford.edu>
David Carlton [Tue, 15 Apr 2003 23:07:11 +0000 (23:07 +0000)]
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.

21 years agomerge from gcc
DJ Delorie [Tue, 15 Apr 2003 21:36:21 +0000 (21:36 +0000)]
merge from gcc

21 years agomerge from gcc
DJ Delorie [Tue, 15 Apr 2003 21:29:34 +0000 (21:29 +0000)]
merge from gcc

21 years agomerge from gcc
DJ Delorie [Tue, 15 Apr 2003 20:15:47 +0000 (20:15 +0000)]
merge from gcc

21 years agomerge from gcc
DJ Delorie [Tue, 15 Apr 2003 15:27:20 +0000 (15:27 +0000)]
merge from gcc

21 years ago2003-04-15 H.J. Lu <hjl@gnu.org>
H.J. Lu [Tue, 15 Apr 2003 14:56:06 +0000 (14:56 +0000)]
2003-04-15  H.J. Lu <hjl@gnu.org>

* ld-elfcom/elfcom.exp: Fix a typo.

21 years ago2003-04-15 H.J. Lu <hjl@gnu.org>
H.J. Lu [Tue, 15 Apr 2003 14:50:29 +0000 (14:50 +0000)]
2003-04-15  H.J. Lu <hjl@gnu.org>

From Debian by Jack Howarth <howarth@nitro.med.uc.edu>:

* ldlex.l: Use YY_CURRENT_BUFFER instead of yy_current_buffer.

21 years agoIf a section holds uninitialized data and is from an object file or from an
Nick Clifton [Tue, 15 Apr 2003 14:26:06 +0000 (14:26 +0000)]
If a section holds uninitialized data and is from an object file or from an
executable image that has not initialized the s_size field, or if the physical
size is padded, use the virtual size (stored in s_paddr) instead.

21 years agoProperly report filename for alignment reduction.
Nick Clifton [Tue, 15 Apr 2003 09:38:11 +0000 (09:38 +0000)]
Properly report filename for alignment reduction.
Add test for alignment reduction.

21 years agoReplace occurrances of 'Hitachi' with 'Renesas'.
Nick Clifton [Tue, 15 Apr 2003 08:51:55 +0000 (08:51 +0000)]
Replace occurrances of 'Hitachi' with 'Renesas'.

21 years agomerge from gcc
DJ Delorie [Tue, 15 Apr 2003 03:53:53 +0000 (03:53 +0000)]
merge from gcc

21 years agomerge from gcc
DJ Delorie [Tue, 15 Apr 2003 03:02:18 +0000 (03:02 +0000)]
merge from gcc

21 years ago2003-04-14 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Tue, 15 Apr 2003 02:23:11 +0000 (02:23 +0000)]
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.

21 years ago * solib-svr4.c (svr4_have_link_map_offsets): New function.
Kevin Buettner [Tue, 15 Apr 2003 00:28:23 +0000 (00:28 +0000)]
* 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.

21 years ago*** empty log message ***
gdbadmin [Tue, 15 Apr 2003 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

21 years agodaily update
Alan Modra [Tue, 15 Apr 2003 00:00:06 +0000 (00:00 +0000)]
daily update

21 years ago2003-04-14 David Carlton <carlton@math.stanford.edu>
David Carlton [Mon, 14 Apr 2003 19:56:32 +0000 (19:56 +0000)]
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.

21 years ago2003-04-14 David Carlton <carlton@math.stanford.edu>
David Carlton [Mon, 14 Apr 2003 19:55:27 +0000 (19:55 +0000)]
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'.

21 years ago2003-04-14 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Mon, 14 Apr 2003 19:16:13 +0000 (19:16 +0000)]
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.

21 years ago2003-04-14 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Mon, 14 Apr 2003 19:06:48 +0000 (19:06 +0000)]
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.

21 years agogdb/ChangeLog:
Jim Blandy [Mon, 14 Apr 2003 18:42:28 +0000 (18:42 +0000)]
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'.

21 years agomerge from gcc
DJ Delorie [Mon, 14 Apr 2003 18:27:58 +0000 (18:27 +0000)]
merge from gcc

21 years ago2003-04-08 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Mon, 14 Apr 2003 14:21:07 +0000 (14:21 +0000)]
2003-04-08  Elena Zannoni  <ezannoni@redhat.com>

* s390-nat.c: Include asm/types.h for addr_t.

21 years ago2003-04-14 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Mon, 14 Apr 2003 14:04:06 +0000 (14:04 +0000)]
2003-04-14  Elena Zannoni  <ezannoni@redhat.com>

        * gdb.base/attach.exp: Add new message from ptrace in case of
        attaching to nonexistent process.

21 years ago * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
Alan Modra [Mon, 14 Apr 2003 13:03:17 +0000 (13:03 +0000)]
* scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
other variants of crtbegin.o, crtend.o.
(DTOR): Likewise.
* scripttempl/crisaout.sc (ctors, dtors): Likewise.
* scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
* scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
* scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
* scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
* scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
* scripttempl/mmo.sc (ctors, dtors): Likewise.
* scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.

21 years agoMaintain maximum alignment for common symbols. Warn reducing alignment for
Nick Clifton [Mon, 14 Apr 2003 11:06:25 +0000 (11:06 +0000)]
Maintain maximum alignment for common symbols. Warn reducing alignment for
common symbols. Report old filename when symbol size changes.

21 years ago * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
Corinna Vinschen [Mon, 14 Apr 2003 08:47:42 +0000 (08:47 +0000)]
* cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
actually incoming type.

21 years ago2003-04-13 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Mon, 14 Apr 2003 02:29:40 +0000 (02:29 +0000)]
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.

21 years ago*** empty log message ***
gdbadmin [Mon, 14 Apr 2003 00:00:31 +0000 (00:00 +0000)]
*** empty log message ***

21 years agodaily update
Alan Modra [Mon, 14 Apr 2003 00:00:06 +0000 (00:00 +0000)]
daily update

21 years ago2003-04-13 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Sun, 13 Apr 2003 22:34:27 +0000 (22:34 +0000)]
2003-04-13  Andrew Cagney  <cagney@redhat.com>

* reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
of gdbarch_num_regs.

21 years ago2003-04-13 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Sun, 13 Apr 2003 17:45:11 +0000 (17:45 +0000)]
2003-04-13  Michael Snyder  <msnyder@redhat.com>

* Make-common.in (sim-events.o, sim-config.o): Depend on sim-main.h.

21 years ago2003-04-13 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Sun, 13 Apr 2003 17:06:29 +0000 (17:06 +0000)]
2003-04-13  Michael Snyder  <msnyder@redhat.com>

* compile.c (sim_resume): Implement 'daa' and 'das' instructions.

21 years ago2003-04-07 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Sun, 13 Apr 2003 16:50:31 +0000 (16:50 +0000)]
2003-04-07  Michael Snyder  <msnyder@redhat.com>

* h8300.h (ldc/stc): Fix up src/dst swaps.

21 years ago2003-04-13 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Sun, 13 Apr 2003 16:44:57 +0000 (16:44 +0000)]
2003-04-13  Michael Snyder  <msnyder@redhat.com>

* configure.in: Add testsuite to extra_subdirs.
* configure: Regenerate.

2003-04-13  Michael Snyder  <msnyder@redhat.com>

* sim/h8300: New directory.  Tests for Hitachi h8/300 family.

21 years ago2003-04-13 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Sun, 13 Apr 2003 15:54:58 +0000 (15:54 +0000)]
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.

21 years ago * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
Daniel Jacobowitz [Sun, 13 Apr 2003 15:53:44 +0000 (15:53 +0000)]
* 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.

21 years ago2003-04-13 Daniel Jacobowitz <drow@mvista.com>
Daniel Jacobowitz [Sun, 13 Apr 2003 15:43:35 +0000 (15:43 +0000)]
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.

21 years ago * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
Daniel Jacobowitz [Sun, 13 Apr 2003 15:25:23 +0000 (15:25 +0000)]
* minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
if the linkage name demangled successfully.

21 years ago* x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
Mark Kettenis [Sun, 13 Apr 2003 14:51:20 +0000 (14:51 +0000)]
* x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
disassmbly_flavour): Removed.

21 years ago * ld-discard/extern.s, ld-discard/start.s, ld-discard/static.s,
Daniel Jacobowitz [Sun, 13 Apr 2003 14:42:22 +0000 (14:42 +0000)]
* ld-discard/extern.s, ld-discard/start.s, ld-discard/static.s,
ld-sh/refdbg.s: Add leading 0 to .debug_info to prevent parsing it
for error messages.

21 years ago* x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
Mark Kettenis [Sun, 13 Apr 2003 13:33:49 +0000 (13:33 +0000)]
* x86-64-tdep.c (gdb_print_insn_x86_64): Removed.

21 years ago* x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
Mark Kettenis [Sun, 13 Apr 2003 12:32:02 +0000 (12:32 +0000)]
* x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.

21 years agoOnly call XScale_check_memacc if in XScale mode.
Nick Clifton [Sun, 13 Apr 2003 08:54:06 +0000 (08:54 +0000)]
Only call XScale_check_memacc if in XScale mode.

21 years ago2003-04-12 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Sun, 13 Apr 2003 00:10:22 +0000 (00:10 +0000)]
2003-04-12  Andrew Cagney  <cagney@redhat.com>

* frame.h (struct frame_info): Move definition from here ...
* frame.c (struct frame_info): ... to here.

21 years ago*** empty log message ***
gdbadmin [Sun, 13 Apr 2003 00:00:31 +0000 (00:00 +0000)]
*** empty log message ***

21 years agodaily update
Alan Modra [Sun, 13 Apr 2003 00:00:04 +0000 (00:00 +0000)]
daily update

21 years ago2003-04-12 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Sat, 12 Apr 2003 17:48:55 +0000 (17:48 +0000)]
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.

21 years ago2003-04-12 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Sat, 12 Apr 2003 17:41:26 +0000 (17:41 +0000)]
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.

21 years ago* elfxx-mips.c (mips_elf_calculate_relocation): Adjust two other
Alexandre Oliva [Sat, 12 Apr 2003 08:50:28 +0000 (08:50 +0000)]
* elfxx-mips.c (mips_elf_calculate_relocation): Adjust two other
occurrences of the same test changed in the previous patch.
Optimize.

21 years ago2003-04-11 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Sat, 12 Apr 2003 04:27:29 +0000 (04:27 +0000)]
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.

21 years ago* elfxx-mips.c (mips_elf_get_global_gotsym_index): New.
Alexandre Oliva [Sat, 12 Apr 2003 00:31:42 +0000 (00:31 +0000)]
* elfxx-mips.c (mips_elf_get_global_gotsym_index): New.
(mips_elf_calculate_relocation): Decay GOT_PAGE/GOT_OFST to
GOT_DISP/addend only if the symbol got a global GOT entry.

21 years ago* Makefile.in (libbfd_h): Added missing setting.
Alexandre Oliva [Sat, 12 Apr 2003 00:31:30 +0000 (00:31 +0000)]
* Makefile.in (libbfd_h): Added missing setting.
* mips-tdep.c (mips_gdbarch_init): Set disassembler_options
according to the selected ABI.

21 years agodaily update
Alan Modra [Sat, 12 Apr 2003 00:00:07 +0000 (00:00 +0000)]
daily update

21 years ago*** empty log message ***
gdbadmin [Sat, 12 Apr 2003 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 11 Apr 2003 20:56:40 +0000 (20:56 +0000)]
2003-04-11  Jeff Johnston  <jjohnstn@redhat.com>

        * gdb_indent.sh: Recognize pid_t and sigset_t as types.

21 years ago* gdb.c++/derivation.exp, gdb.c++/overload.exp,
Jim Blandy [Fri, 11 Apr 2003 19:57:33 +0000 (19:57 +0000)]
* 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.

21 years ago2003-04-11 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Fri, 11 Apr 2003 18:15:40 +0000 (18:15 +0000)]
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.

21 years ago2003-04-11 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Fri, 11 Apr 2003 14:56:40 +0000 (14:56 +0000)]
2003-04-11  Andrew Cagney  <cagney@redhat.com>

* i387-tdep.c: Update copyright.
(i387_to_double): Delete function.
(double_to_i387): Delete function.

21 years ago2003-04-11 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Fri, 11 Apr 2003 13:55:32 +0000 (13:55 +0000)]
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.

21 years ago* libtool.m4 (lt_cv_deplibs_check_method): Use pass_all on mips*.
Alexandre Oliva [Fri, 11 Apr 2003 03:58:39 +0000 (03:58 +0000)]
* libtool.m4 (lt_cv_deplibs_check_method): Use pass_all on mips*.
* */configure: Rebuilt.

21 years ago2003-04-10 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Fri, 11 Apr 2003 03:12:58 +0000 (03:12 +0000)]
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.

21 years ago* gas/mips/elf-rel-got-n32.d, gas/mips/elf-rel-got-n32.s,
Alexandre Oliva [Fri, 11 Apr 2003 01:56:52 +0000 (01:56 +0000)]
* gas/mips/elf-rel-got-n32.d, gas/mips/elf-rel-got-n32.s,
gas/mips/elf-rel-got-n64.d, gas/mips/elf-rel-got-n64.s,
gas/mips/elf-rel-xgot-n32.d, gas/mips/elf-rel-xgot-n64.d: New.
* gas/mips/mips.exp: Test them.

21 years ago* ld-mips-elf/elf-rel-got-n32.d,
Alexandre Oliva [Fri, 11 Apr 2003 01:56:51 +0000 (01:56 +0000)]
* ld-mips-elf/elf-rel-got-n32.d,
ld-mips-elf/elf-rel-got-n64.d, ld-mips-elf/elf-rel-xgot-n32.d,
ld-mips-elf/elf-rel-xgot-n64.d: New.
* ld-mips-elf/mips-elf.exp (hasn32): Define as condition for
new tests to run.

21 years ago* config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
Alexandre Oliva [Fri, 11 Apr 2003 01:56:50 +0000 (01:56 +0000)]
* config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
* config/tc-mips.c: Use signed add for n32 address arithmetic.
(append_insn): When filling delay slots with instructions
that have fixups that tc_gen_reloc might consider modifyable
in variant frags, start a new frag.
(load_address): Generate GOT_DISP with of without offset
depending on whether symbol is local.  For -xgot, use
GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
(macro) <M_DLA_AB, M_LA_AB>: Likewise.
<M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
<ld_st>: In NewABI with small got, always use
GOT_PAGE/GOT_OFST, with the latter in the load/store
instruction.  With big got, use GOT_HI16/GOT_LO16 or
GOT_PAGE/GOT_OFST.
(tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
Add tc_frag_data.tc_fr_offset to addends.  Decay CALL16,
GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
(md_convert_frag): Use memmove for safe copying of overlapping
regions.