2002-05-13 Elena Zannoni <ezannoni@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
cc3023f7
EZ
12002-05-13 Elena Zannoni <ezannoni@redhat.com>
2
3 * configure.tgt: Remove sh-hms target.
4 * MAINTAINERS: Don't list sh-hms as a separate target.
5
ec2bcbe7
JB
62002-05-13 Jim Blandy <jimb@redhat.com>
7
8 Add first preprocessor macro-expansion files.
9 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
11 (splay_tree_h, macroexp_h, macrotab_h): New variable.
12 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
13 (COMMON_OBS): Add macrotab.o, macroexp.o.
14 (macroexp.o, macrotab.o): New rules.
15
6d531722
AC
162002-05-13 Andrew Cagney <ac131313@redhat.com>
17
18 * config/m88k/tm-m88k.h: Update copyright.
19 (m88k_target_write_pc): Declare
20 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
21 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
22 (SHIFT_INST_REGS): Update definition.
23 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
24 using old definition of TARGET_WRITE_PC.
25 * regcache.c (generic_target_write_pc): Delete code handling
26 NNPC_REGNUM.
27 * gdbarch.sh (NNPC_REGNUM): Delete.
28 * gdbarch.h, gdbarch.c: Regenerate.
29
3e3f2739
RE
302002-05-13 Richard Earnshaw <rearnsha@arm.com>
31
32 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
33 builtin reg number.
34
0004e5a2
DJ
352002-05-13 Daniel Jacobowitz <drow@mvista.com>
36
37 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
38 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
39 (gen_address_of, gen_struct_ref, gen_repeat): Use type
40 access macros.
41 * c-typeprint.c (cp_type_print_method_args): Likewise.
42 (c_type_print_args): Likewise.
43 * d10v-tdep.c (d10v_push_arguments): Likewise.
44 (d10v_extract_return_value): Likewise.
45 * expprint.c (print_subexp): Likewise.
46 * gdbtypes.c (lookup_primitive_typename): Likewise.
47 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
48 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
49 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
50 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
51 (TYPE_VECTOR): Likewise.
52 * hpread.c (hpread_read_struct_type)
53 (fix_static_member_physnames, fixup_class_method_type)
54 (hpread_type_lookup): Likewise.
55 * mdebugread.c (parse_symbol, parse_type): Likewise.
56 * p-lang.c (is_pascal_string_type): Likewise.
57 * valops.c (hand_function_call): Likewise.
58 * x86-64-tdep.c (classify_argument): Likewise.
59
60 * hpread.c (hpread_read_function_type)
61 (hpread_read_doc_function_type): Call replace_type.
62 * dstread.c (create_new_type): Delete.
63 (decode_dst_structure, process_dst_function): Call alloc_type.
64 Use type access macros.
65
dff95cc7
MK
662002-05-12 Mark Kettenis <kettenis@gnu.org>
67
68 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
69 the're not supported by the current architecture.
70 (i387_fill_fxsave): Likewise.
71
bbcd32ad
FF
722002-05-12 Fred Fish <fnf@redhat.com>
73
74 * symfile.c (default_symfile_offsets): Arrange for uninitialized
75 sect_index_xxx members to index the first slot in section_offsets
76 if all of the section_offsets are zero.
77
89cf4787
MK
782002-05-12 Mark Kettenis <kettenis@gnu.org>
79
80 * configure.tgt (sparc-*openbsd): Remove entry accidentially
81 checked in with last change.
82
1f77ffc5
MK
832002-05-12 Mark Kettenis <kettenis@gnu.org>
84
85 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
86 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
87 config.sub.
88
89b8b4a9
DJ
892002-05-12 Daniel Jacobowitz <drow@mvista.com>
90
91 * Makefile.in: Update dependencies.
92
14a5e767
AC
932002-05-11 Andrew Cagney <ac131313@redhat.com>
94
95 * language.c (local_hex_string_custom): Simplify. Do not depend
96 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
97
98 * memattr.c (mem_info_command): Replace calls to
99 longest_local_hex_string and longest_local_hex_string_custom.
100 * buildsym.c (make_blockvector): Ditto.
101 * solib.c (info_sharedlibrary_command): Ditto.
102 * tracepoint.c (tracepoints_info): Ditto.
103 * symtab.c (print_msymbol_info): Ditto.
104
105 * language.c (local_hex_string): Delete.
106 (local_hex_string_custom): Delete.
107 (longest_local_hex_string): Rename to local_hex_string.
108 (longest_local_hex_string_custom): Rename to
109 local_hex_string_custom.
110 * language.h (local_hex_string): Change parameter type to LONGEST.
111 (local_hex_string_custom): Ditto.
112 (longest_local_hex_string): Delete declaration.
113 (longest_local_hex_string_custom): Ditto.
114
115 * solib.c: Update copyright.
116 * memattr.c: Update copyright.
117
13d01224
AC
1182002-05-11 Andrew Cagney <ac131313@redhat.com>
119
120 * arch-utils.h (legacy_register_to_value): Declare.
121 (legacy_value_to_register): Declare.
122 (legacy_convert_register_p): Declare.
123 * arch-utils.c (legacy_register_to_value): New function.
124 (legacy_value_to_register): New function.
125 (legacy_convert_register_p): New function.
126
127 * gdbarch.sh (REGISTER_TO_VALUE): Define.
128 (VALUE_TO_REGISTER): Define.
129 (CONVERT_REGISTER_P): Define.
130 * gdbarch.h, gdbarch.c: Regenerate.
131
132 * valops.c (value_assign): Use CONVERT_REGISTER_P and
133 VALUE_TO_REGISTER.
134 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
135 CONVERT_REGISTER_P.
136
4a1970e4
DJ
1372005-05-11 Daniel Jacobowitz <drow@mvista.com>
138 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
139
140 * Makefile.in: Update dependencies for valops.c.
141 * valops.c: Include "gdb_assert.h".
142 (typecmp): Skip THIS parameter to methods.
143 (find_method_list): Remove static_memfuncp argument,
144 update callers. Check for stub methods.
145 (find_value_oload_method_list): Don't set *static_memfuncp.
146 (find_overload_match): Don't check for stub methods. Assert
147 that methods are not stubbed. Handle static methods.
148 (value_find_oload_method_list): Remove static_memfuncp argument.
149 * gdbtypes.c (check_stub_method): Do not add THIS pointer
150 to the argument list for static stub methods.
151 * value.h (value_find_oload_method_list): Update prototype.
152
b2e75d78
AC
1532002-05-11 Andrew Cagney <ac131313@redhat.com>
154
155 * arch-utils.h (generic_register_size): Declare.
156 (generic_register_raw_size, generic_register_virtual_size): Delete
157 declarations.
158 * arch-utils.c (generic_register_raw_size): Delete.
159 (generic_register_size): New function.
160 (generic_register_virtual_size): Delete.
161
162 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
163 default generic_register_size.
164 * gdbarch.h, gdbarch.c: Re-generate.
165
166 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
167 register_virtual_size.
168 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
169 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
170
451fbdda
AC
1712002-05-11 Andrew Cagney <ac131313@redhat.com>
172
173 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
174 * gdbarch.h, gdbarch.c: Regenerate.
175 * gnu-v3-abi.c: Update copyright.
176 (vtable_address_point_offset): Update.
177 (gnuv3_rtti_type): Update.
178 (gnuv3_baseclass_offset): Update.
179 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
180 (init_fetch_link_map_offsets): Update.
181 * remote.c (get_remote_state): Update.
182
6d2f5cea
DJ
1832002-05-11 Daniel Jacobowitz <drow@mvista.com>
184
185 * TODO: Remove value_headof/value_from_vtable_info comment.
186 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
187 * values.c (value_headof, value_from_vtable_info): Delete.
188 * value.h (value_from_vtable_info): Delete prototype.
189
d2324da4
AC
1902002-05-11 Andrew Cagney <ac131313@redhat.com>
191
192 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
193 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
194 $(gdb_regex_h).
195 (gdb_assert_h): Define.
196 (gdb_wait_h): Define.
197 (gdb_regex_h): Define.
198
5c717440
DJ
1992002-05-11 Daniel Jacobowitz <drow@mvista.com>
200
201 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
202 * linespec.c (find_methods): Handle GCC 3.x template constructors.
203
6c7861b3
JT
2042002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
205
206 * nbsd-tdep.c: Fix comment.
207
ea5bc2a6
JT
2082002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
209
210 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
211 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
212 (nbsd-tdep.o): New dependency list.
213 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
214 nbsd-tdep.h.
215 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
216 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
217 * nbsd-tdep.c: New file.
218 * nbsd-tdep.h: New file.
219 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
220 nbsd-tdep.h.
221 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
222 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
223 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
224 * config/sh/nbsd.mt (TDEPFILES): Ditto.
225
b28da865
JT
2262002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
227
228 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
229 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
230 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
231 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
232 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
233 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
234
4b8ff1fa
JT
2352002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
236
237 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
238 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
239 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
240 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
241 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
242 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
243 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
244
dfe6eb1f
JT
2452002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
246
247 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
248 fetch_elfcore_registers to...
249 * i386nbsd-tdep.c: ...here.
250 (i386nbsd_use_struct_convention): Rename to...
251 (i386nbsd_aout_use_struct_convention): ...this.
252 (i386nbsd_supply_reg): New function.
253 (i386nbsd_fill_reg): New function.
254 (fetch_core_registers): Use i386nbsd_supply_reg.
255 (fetch_elfcore_registers): Likewise.
256 (_initialize_i386nbsd_tdep): New function.
257 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
258 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
259 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
260 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
261 (i386nbsd_aout_use_struct_convention): ...this.
262
20cb8cda
JT
2632002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
264
265 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
266 (store_inferior_registers): Use shnbsd_fill_reg.
267 * shnbsd-tdep.c (sh_nbsd_supply_registers,
268 sh_nbsd_supply_register): Collapse into...
269 (shnbsd_supply_reg): ...this.
270 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
271 (shnbsd_fill_reg): ...this.
272 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
273 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
274 (fetch_core_registers): Use shnbsd_supply_reg.
275 (fetch_elfcore_registers): Use shnbsd_supply_reg.
276 (sh_nbsd_core_fns): Rename to...
277 (shnbsd_core_fns): ...this.
278 (sh_nbsd_elfcore_fns): Rename to...
279 (shnbsd_elfcore_fns): ...this.
280 (sh_nbsd_init_abi): Rename to...
281 (shnbsd_init_abi): ...this.
282 (_initialize_sh_nbsd_tdep): Rename to...
283 (_initialize_shnbsd_tdep): ...this.
284 * shnbsd-tdep.h (sh_nbsd_supply_registers,
285 sh_nbsd_supply_register, sh_nbsd_fill_registers,
286 sh_nbsd_fill_register): Remove prototypes.
287 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
288
e750d25e
JT
2892002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
290
291 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
292 (i387-nat.o): Delete dependency list.
293 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
294 (x86-64-linux-nat.o): Likewise.
295 * i387-nat.c: Delete file, moving contents to...
296 * i387-tdep.c: ...here.
297 * i387-nat.h: Rename...
298 * i387-tdep.h: ...to this.
299 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
300 * i386-linux-nat.c: Likewise.
301 * i386bsd-nat.c: Likewise.
302 * i386gnu-nat.c: Likewise.
303 * i386nbsd-nat.c: Likewise.
304 * i386v4-nat.c: Likewise.
305 * x86-64-linux-nat.c: Likewise.
306 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
307 * config/i386/go32.mh (NATDEPFILES): Likewise.
308 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
309 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
310 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
311 * config/i386/linux.mh (NATDEPFILES): Likewise.
312 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
313 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
314 * config/i386/obsd.mh (NATDEPFILES): Likewise.
315 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
316
1aee598a
JT
3172002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
318
319 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
320 (alphanbsd-nat.o): Remove dependency list.
321 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
322 * alphanbsd-nat.c: Delete. Contents moved to...
323 * alphanbsd-tdep.c: ...here.
324 (_initialize_alphanbsd_tdep): Register core functions.
325 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
326
12bcb0fe
JT
3272002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
328
329 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
330 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
331 (alphanbsd-nat.o): Likewise.
332 (alphabsd-tdep.o): New dependency list.
333 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
334 (fill_gregset): Use alphabsd_fill_reg.
335 (supply_fpregset): Use alphabsd_supply_fpreg.
336 (fill_fpregset): Use alphabsd_fill_fpreg.
337 (fetch_inferior_registers): Use struct reg and struct fpreg
338 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
339 and alphabsd_supply_fpreg.
340 (store_inferior_registers): Use struct reg and struct fpreg
341 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
342 and alphabsd_fill_fpreg.
343 * alphabsd-tdep.c: New file.
344 * alphabsd-tdep.h: New file.
345 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
346 (fetch_elfcore_registers): Use alphabsd_supply_reg and
347 alphabsd_supply_fpreg.
348 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
349 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
350
361d1df0
EC
3512002-05-11 Eric Christopher <echristo@redhat.com>
352
353 * mips-tdep.c (mips_double_register_type): Fix thinko.
354 (mips_single_register_type): Ditto.
355 * MAINTAINERS: Add self.
356
92dd7cee
MK
3572002-05-11 Mark Kettenis <kettenis@gnu.org>
358
359 * i387-nat.c (i387_supply_register, i387_fill_fsave,
360 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
361 right thing on architectures with different endianness and/or
362 integer sizes.
363
e27da16d
JT
3642002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
365
366 From Christian Limpach <chris@Pin.LU>
367 * configure.in: Change sed expression which comments out
368 NATDEPFILES to also comment out continuation lines.
369 * configure: Regenerate.
370
ddde02bd
EZ
3712002-05-10 Elena Zannoni <ezannoni@redhat.com>
372
373 * sh-tdep.c: Clean up code erroneously reintroduced by previous
374 big patch.
375
1c922164
EZ
3762002-05-10 Elena Zannoni <ezannoni@redhat.com>
377
378 * sh-tdep.c: Include correct file.
379
283150cd
EZ
3802002-05-10 Elena Zannoni <ezannoni@redhat.com>
381
382 New support for sh64-elf (sh5) target.
383
384 * configure.tgt: For sh64-elf target, default to sh-elf.
385
386 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
387 (struct gdbarch_tdep): Add new fields for new registers and ABI
388 info.
361d1df0 389
283150cd
EZ
390 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
391 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
392 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
393 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
394 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
395 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
396 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
397 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
398 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
399 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
400 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
401 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
402 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
403 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
404 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
405 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
406 sh64_get_gdb_regnum, sh64_media_reg_base_num,
407 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
408 sign_extend, sh64_nofp_frame_init_saved_regs,
409 sh64_init_extra_frame_info, sh64_get_saved_register,
410 sh64_extract_struct_value_address, sh64_pop_frame,
411 sh64_push_arguments, sh64_extract_return_value,
412 sh64_store_return_value, sh64_show_media_regs,
413 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
414 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
415 sh_sh64_register_virtual_type,
416 sh_sh64_register_convert_to_virtual,
417 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
418 sh64_register_read, sh64_pseudo_register_write,
419 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
420 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
421 sh64_do_pseudo_register, sh_compact_do_registers_info,
422 sh64_do_registers_info, sh_gdbarch_init): New functions.
423
3117ed25
EZ
4242002-05-10 Elena Zannoni <ezannoni@redhat.com>
425
426 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
427
2654e6d4
DJ
4282002-05-10 Daniel Jacobowitz <drow@mvista.com>
429
430 * linespec.c (decode_line_1): Check for a double quote after
431 a filename correctly.
432
9ab3e532
JB
4332002-05-10 Jim Blandy <jimb@redhat.com>
434
435 Properly track the size of the current objfile's .debug_line section.
436 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
437 (DWARF_LINE_SIZE): New macro.
438 (dwarf2_build_psymtabs_hard): Record the line section's size in
439 the partial symbol table.
440 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
441 symbol table.
442
126fa72d
PS
4432002-05-10 Petr Sorfa <petrs@caldera.com>
444
445 * ia64-tdep.c: Handle breakpoints on L instruction type
446 in MLX instruction bundle by moving the breakpoint to
447 the third slot (X instruction type) as L holds only data.
448
1f077a3e
KB
4492002-05-10 Kevin Buettner <kevinb@redhat.com>
450
451 * dbxread.c (discarding_local_symbols_complaint): New complaint.
452 (process_one_symbol): Complain about discarding local symbols
453 due to a misplaced N_LBRAC entry.
454
8120c9d5 4552002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
456
457 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
458 * linespec.c (find_toplevel_char): '<' and '>' also increase and
459 decrease the depth we are at, in the case of templates.
361d1df0 460
67b2c998
DJ
4612002-05-09 Daniel Jacobowitz <drow@mvista.com>
462
463 * mips-tdep.c (mips_float_register_type): New function.
464 (mips_double_register_type): New function.
465 (mips_print_register): Use them.
466 (do_fp_register_row): Likewise.
467
fd326606
DJ
4682002-05-09 Daniel Jacobowitz <drow@mvista.com>
469
6609d9af 470 * signals/signals.c (signals): Remove conditional compilation around
fd326606 471 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 472 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 473
bef35864
MS
4742002-05-09 Michael Snyder <msnyder@redhat.com>
475
476 * remote-rdp.c (remote_rdp_can_run): Remove.
477
c55a3f73
TT
4782002-05-09 Tom Tromey <tromey@redhat.com>
479
480 * jv-valprint.c (java_val_print): Handle `char' as a special case
481 of TYPE_CODE_INT.
482
b8d5e71d
MS
4832002-05-09 Michael Snyder <msnyder@redhat.com>
484
485 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
486 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 487 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 488 str r(0123),[sp,#nn].
361d1df0 489 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
490 order-independent by placing it in a loop.
491
e2cd42dd
MS
4922002-05-06 Michael Snyder <msnyder@redhat.com>
493
494 * stabsread.c (read_type): Add recognition for new attribute:
495 "@V;" means that an array type is actually a vector.
496 This is analogous to the vector flag that's been added to dwarf2.
497
3ce1502b
MK
4982002-05-09 Mark Kettenis <kettenis@gnu.org>
499
500 * i386-tdep.h (i386_abi): New enum.
501 (struct gdbarch_tdep): Replace os_ident member with abi.
502 (i386_gdbarch_register_os_abi): New prototype.
503 * i386-tdep.c (i386_abi_names): New array.
504 (process_note_abi_tag_sections): Removed.
505 (process_note_sections): New function.
506 (i386_elf_abi_from_note, i386_elf_abi): New functions.
507 (struct i386_abi_handler): New struct.
508 (i386_abi_handler_list): New variable.
509 (i386_gdbarch_register_os_abi): New function.
510 (i386_gdbarch_init): Adapt for the changes given above.
511
084c156a
DJ
5122002-05-08 Daniel Jacobowitz <drow@mvista.com>
513
514 * gregset.h: Say "GNU/Linux".
515
6599f021
EZ
5162002-05-08 Elena Zannoni <ezannoni@redhat.com>
517
518 * gdbtypes.c : Add new builtin type for 64 bit vectors.
519 (build_gdbtypes): Build builtin_type_v2_float.
520 (_initialize_gdbtypes): Register new builtin type.
521
40af4b0c
AC
5222002-05-08 Andrew Cagney <ac131313@redhat.com>
523
524 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
525 (clear_gdbarch_swap): New function.
526 (initialize_non_multiarch): Call.
527 (gdbarch_update_p): Before calling init(), swap out and clear the
528 existing architecture.
529 * gdbarch.c: Regenerate.
530
4fe84f46
JT
5312002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
532
533 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
534 alphanbsd-tdep.c.
535
4015edd1
JT
5362002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
537
538 * sh-nbsd-nat.c: Rename to...
539 * shnbsd-nat.c: ...this.
540 * sh-nbsd-tdep.c: Rename to...
541 * shnbsd-tdep.c: ...this.
542 * sh-nbsd-tdep.h: Rename to...
543 * shnbsd-tdep.h: ...this.
544 * config/sh/nbsd.mh: Use shnbsd-nat.o.
545 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
546
0e2bd219
RE
5472002-05-08 Richard Earnshaw <rearnsha@arm.com>
548
549 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
550 concatenation for command help messages.
551
13a38d45
JT
5522002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
553
554 * NEWS: Note new sh*-*-netbsdelf* configuration.
555 * configure.host: Set gdb_host_cpu to sh for all sh*.
556 (sh*-*-netbsdelf*): New host.
557 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
558 (sh*-*-netbsdelf*): New target.
559 * sh-nbsd-nat.c: New file.
560 * sh-nbsd-tdep.c: New file.
561 * sh-nbsd-tdep.h: New file.
562 * config/sh/nbsd.mh: New file.
563 * config/sh/nbsd.mt: New file.
564 * config/sh/nm-nbsd.h: New file.
565 * config/sh/tm-nbsd.h: New file.
566
d658f924
JT
5672002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
568
569 * sh-tdep.c (sh_osabi_names): Declare.
570 (process_note_abi_tag_sections): New function.
571 (get_elfosabi): Ditto.
572 (sh_gdbarch_register_os_abi): Ditto.
573 (sh_dump_tdep): Ditto.
574 _initialize_sh_tdep): Use gdbarch_register to register
575 sh_gdbarch_init and sh_dump_tdep.
576 * config/sh/tm-sh.h (sh_osabi): Declare.
577 (gdbarch_tdep): Add sh_osabi and osabi_name members.
578
848cfffb
AC
5792002-05-07 Andrew Cagney <ac131313@redhat.com>
580
581 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
582 (thumb_scan_prologue): Ditto.
583 (arm_find_callers_reg): Ditto.
584 (arm_frame_chain): Ditto.
585 (arm_init_extra_frame_info): Ditto.
586 (arm_frame_saved_pc): Ditto.
587 (arm_pop_frame): Ditto.
588 (arm_push_return_address): New function.
589 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
590 call_dummy_location, call_dummy_breakpoint_offset_p,
591 call_dummy_breakpoint_offset, call_dummy_p,
592 call_dummy_stack_adjust_p, call_dummy_words,
593 sizeof_call_dummy_words, call_dummy_start_offset,
594 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
595 call_dummy_address, push_return_address and push_dummy_frame for
596 generic dummy frames.
597
e7d717c0
JT
5982002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
599
600 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
601 size computation for alloca.
602 (sh_fp_frame_init_saved_regs): Likewise.
603
7bbcf283
RE
6042002-05-07 Richard Earnshaw <rearnsha@arm.com>
605
606 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
607 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 608 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
609 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
610 * remote-rdp.c (remote_rdp_fetch_register): Use
611 ARM_MAX_REGISTER_RAW_SIZE.
612 (remote_rdp_store_register): Likewise.
613
4657573b
ML
6142002-05-07 Michal Ludvig <mludvig@suse.cz>
615
361d1df0 616 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
617 added default labels to switch {} statements.
618 * x86-64-tdep.c: Ditto.
619 * x86-64-linux-nat.c: Ditto.
620
010f3b2f
JT
6212002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
622
623 * solib.h: Protect against multiple inclusion.
624
debd256d
JB
6252002-05-06 Jim Blandy <jimb@redhat.com>
626
9ab3e532
JB
627 Add first preprocessor macro-expansion files.
628 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
629 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
630 (splay_tree_h, macroexp_h, macrotab_h): New variable.
631 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
632 (COMMON_OBS): Add macrotab.o, macroexp.o.
633 (macroexp.o, macrotab.o): New rules.
634
debd256d
JB
635 Separate the job of reading the line number info statement program
636 header (...expialidocious) out into its own function.
637 * dwarf2read.c (struct line_head, struct filenames, struct
638 directories): Replace with...
639 (struct line_header): New structure, containing the full
640 contents of the statement program header, including the
641 include directory and file name tables.
642 (read_file_scope): If we have line number info, instead of just
643 calling dwarf_decode_lines to do all the work, call
644 dwarf_decode_line_header first to get a `struct line_header'
645 containing the data in the statement program header, and then
646 pass that to dwarf_decode_lines, which will pick up where that
647 left off. Be sure to clean up the `struct line_header' object.
648 (dwarf_decode_line_header, free_line_header, add_include_dir,
649 add_file_name): New functions.
650 (dwarf_decode_lines): Move all the code to read the statement
651 program header into dwarf_decode_line_header. Take the line
652 header it built as the first argument, instead of the offset to
653 the compilation unit's line number info. Use the new `struct
654 line_header' type instead of the old structures. No need to do
655 cleanups here now, since we don't allocate anything.
656 (dwarf2_statement_list_fits_in_line_number_section,
657 dwarf2_line_header_too_long): New complaints.
658
ac3aafc7
EZ
6592002-05-06 Elena Zannoni <ezannoni@redhat.com>
660
661 * gdbtypes.c (init_vector_type): New function.
662 (build_builtin_type_vec128): Simplify the representation of SIMD
663 registers.
664 (build_gdbtypes): Initialize new builtin vector types.
665 (_initialize_gdbtypes): Register new vector types with gdbarch.
666 (builtin_type_v4_float, builtin_type_v4_int32,
667 builtin_type_v8_int16, builtin_type_v16_int8,
668 builtin_type_v2_int32, builtin_type_v4_int16,
669 builtin_type_v8_int8): New (renamed) SIMD types.
670
13e49980
MK
6712002-05-06 Mark Kettenis <kettenis@gnu.org>
672
673 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
674 (i387_fill_fxsave): Likewise.
675
997b20b8
AO
6762002-05-05 Alexandre Oliva <aoliva@redhat.com>
677
678 * alpha-tdep.c (alpha_extract_return_value): Don't use
679 non-constant array size in prototype.
680
535c96ce
AC
6812002-05-04 Andrew Cagney <ac131313@redhat.com>
682
683 From Brian Taylor <briant at model dot com>:
684 * ui-out.c (ui_out_field_core_addr): Use the function
685 longest_local_hex_string_custom'to format addresses > 32 bits
686 wide.
687
688 * ui-out.c (ui_out_field_core_addr): Update comment.
689
bedfa57b
AC
6902002-05-04 Andrew Cagney <ac131313@redhat.com>
691
692 * stack.c (select_and_print_frame): Make static. Delete the
693 parameter `level'.
694 (func_command): Update call.
695 (select_frame_command): Delete code computing the frame level.
696 * frame.h (select_and_print_frame): Delete declaration.
697
f621c63e
AC
6982002-05-04 Andrew Cagney <ac131313@redhat.com>
699
700 * sparc-tdep.c (sparc_get_saved_register): Comment why
701 get_prev_frame call is safe.
702
0f7d239c
AC
7032002-05-04 Andrew Cagney <ac131313@redhat.com>
704
705 * frame.h (select_frame): Delete level parameter.
706 * stack.c (select_frame): Update. Use frame_relative_level to
707 obtain the frame's level.
708 (select_and_print_frame): Update call.
709 (select_frame_command): Ditto.
710 (up_silently_base): Ditto.
711 (down_silently_base): Ditto.
712 * ocd.c (ocd_start_remote): Ditto.
713 * remote-rdp.c (remote_rdp_open): Ditto.
714 * remote-mips.c (mips_initialize): Ditto.
715 (common_open): Ditto.
716 * remote-e7000.c (e7000_start_remote): Ditto.
717 * m3-nat.c (select_thread): Ditto.
718 * hppa-tdep.c (child_get_current_exception_event): Ditto.
719 (child_get_current_exception_event): Ditto.
720 * varobj.c (varobj_create): Ditto.
721 (varobj_update): Ditto.
722 (c_value_of_root): Ditto.
723 * tracepoint.c (finish_tfind_command): Ditto.
724 * corelow.c (core_open): Ditto.
725 * arch-utils.c (generic_prepare_to_proceed): Ditto.
726 * thread.c (info_threads_command): Ditto.
727 (switch_to_thread): Ditto.
728 * infrun.c (normal_stop): Ditto.
729 (restore_selected_frame): Ditto.
730 (restore_inferior_status): Ditto.
731 * breakpoint.c (insert_breakpoints): Ditto.
732 (watchpoint_check): Ditto.
733 (bpstat_stop_status): Ditto.
734 (do_enable_breakpoint): Ditto.
735 * blockframe.c (flush_cached_frames): Ditto.
736 (reinit_frame_cache): Ditto.
737
71d6c7b1
AC
7382002-05-04 Andrew Cagney <ac131313@redhat.com>
739
740 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
741 maintainer.
742
cda6c68a
JB
7432002-05-04 Jim Blandy <jimb@redhat.com>
744
745 * gdbtypes.c (replace_type): Doc fix.
746
5c1c87f0
AC
7472002-05-04 Andrew Cagney <ac131313@redhat.com>
748
749 * valprint.c (strcat_longest): Delete commented out function.
750 Update copyright.
751
cd9bfe15
AC
7522002-05-04 Andrew Cagney <ac131313@redhat.com>
753
754 * MAINTAINERS: Mark a29k as deleted.
755 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
756 Move new configurations to the top.
757 * configure.tgt: Remove a29k.
758 * config/a29k/tm-vx29k.h: Delete.
759 * config/a29k/vx29k.mt: Delete.
760 * config/a29k/tm-a29k.h: Delete.
761 * config/a29k/a29k-udi.mt: Delete.
762 * config/a29k/a29k.mt: Delete.
763 * a29k-tdep.c: Delete.
764 * remote-udi.c: Delete.
765 * remote-mm.c: Delete.
766 * remote-eb.c: Delete.
767 * remote-adapt.c: Delete.
768 * Makefile.in: Remove obsolete code.
769 * gdbserver/Makefile.in: Ditto.
770 * config/s390/s390x.mt: Ditto.
771 * config/s390/s390.mt: Ditto.
772 * config/sparc/sparclynx.mh: Ditto.
773 * config/sparc/linux.mh: Ditto.
774 * config/pa/hppaosf.mh: Ditto.
775 * config/pa/hppabsd.mh: Ditto.
776 * config/ns32k/nbsd.mt: Ditto.
777 * config/mips/vr5000.mt: Ditto.
778 * config/m68k/sun3os4.mh: Ditto.
779 * config/m68k/nbsd.mt: Ditto.
780 * config/m68k/m68klynx.mh: Ditto.
781 * config/m32r/m32r.mt: Ditto.
782 * config/i386/x86-64linux.mt: Ditto.
783 * config/i386/nbsdelf.mt: Ditto.
784 * config/i386/nbsd.mt: Ditto.
785 * config/i386/i386lynx.mh: Ditto.
786
bf0c5130
AC
7872002-05-04 Andrew Cagney <ac131313@redhat.com>
788
789 * target.c (debug_print_register): New function. Handle oversize
790 registers.
791 (debug_to_fetch_registers): Call.
792 (debug_to_store_registers): Call.
793
2ae1c2d2
JB
7942002-05-03 Jim Blandy <jimb@redhat.com>
795
13a393b0
JB
796 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
797 (read_type): Doc fix.
798 * gdbtypes.c (replace_type): Doc fix.
799
2ae1c2d2
JB
800 * stabsread.c (multiply_defined_struct): New complaint.
801 (read_struct_type): If the type we were passed isn't empty, or
802 incomplete, don't read the new struct type into it; complain,
803 and return the original type unchanged. Take a new `type_code'
804 argument, which is the type code for the new type.
805 (read_type): Rather than storing the type's type code here, pass
806 it as an argument to read_struct_type, and let that take care of
807 storing it. That way, we don't overwrite the original type code,
808 so read_struct_type can use it to decide whether we're overwriting
809 something we shouldn't.
810 (complain_about_struct_wipeout): New function.
811
8de9bdc4
AC
8122002-05-03 Andrew Cagney <ac131313@redhat.com>
813
814 * gdbarch.sh: Assert that gdbarch is non-NULL.
815 * gdbarch.c: Regenerate.
816
f773fdbb
JM
8172002-05-03 Jason Merrill <jason@redhat.com>
818
819 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
820 and return NULL.
821
0e04a514
ML
8222002-05-03 Michal Ludvig <mludvig@suse.cz>
823
824 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
825 (x86_64_dwarf2gdb_regno_map_length),
826 (x86_64_dwarf2_reg_to_regnum): Added.
827 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
828 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
829 (_initialize_x86_64_tdep): Synced with the change above.
830 (x86_64_skip_prologue): Reformulated message.
831
065432a8
PM
8322002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
833
834 * f-exp.y: Also use new prev_lexptr variable
835 to improve error reporting. Based on Michael Snyder
836 2002-04-24 dated patch to c-exp.y.
837 * jv-exp.y: Likewise.
838 * m2-exp.y: Likewise.
839
a3162708
EZ
8402002-05-02 Elena Zannoni <ezannoni@redhat.com>
841
842 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
843 we are dealing with vectors.
844
03620c38
PM
8452002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
846
847 * config/m68k/tm-nbsd.h: Obvious fix,
848 correct machine name.
849
6604db2e
PM
8502002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
851
852 * p-typeprint.c (pascal_type_print_base): Add support
853 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
854
0906b739
PM
8552002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
856
857 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
858 for fondamental pascal 'char' type.
859
e2625b33
PM
8602002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
861
862 * p-lang.h (is_pascal_string_type): Declaration changed,
863 new sixth argument of type char ** added.
361d1df0 864 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
865 changed. Args length_pos, length_size, string_pos, char_size
866 can now be NULL. New argument arrayname set to the field
867 name of the char array. Return value set to char array
868 field index plus one.
361d1df0 869 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
870 is_pascal_string_type function.
871
cf17c188
AC
8722002-05-02 Andrew Cagney <cagney@redhat.com>
873
874 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
875 <cagney@redhat.com> change.
876 * gdbarch.c: Regenerate.
877
52bca491
AC
8782002-05-02 Andrew Cagney <cagney@redhat.com>
879
880 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
881 before probing for a new one. Detect errorenous gdbarch_init
882 functions.
883 * gdbarch.c: Regenerate.
884
d5e72505
AC
8852002-05-01 Andrew Cagney <cagney@redhat.com>
886
887 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
888 * config/mcore/tm-mcore.h: Ditto. Update copyright.
889 * config/v850/tm-v850.h: Ditto. Update copyright.
890
af566d9f
AC
8912002-04-30 Andrew Cagney <ac131313@redhat.com>
892
893 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
894 current_gdbarch.
895
880d85fa
MS
8962002-04-30 Michael Snyder <msnyder@redhat.com>
897
94c30b78
MS
898 * arm-tdep.c: Whitespace clean-ups.
899 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
900 should have been removed as part of 4/24 change.
901
6f5987a6
KB
9022002-04-30 Kevin Buettner <kevinb@redhat.com>
903
904 * rs6000-tdep.c: Added comment describing how fpscr register
905 numbers were chosen.
906
1a113c93
MS
9072002-04-30 Michael Snyder <msnyder@redhat.com>
908
909 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
910
9a6f53fe
EZ
9112002-04-29 Elena Zannoni <ezannoni@redhat.com>
912
913 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
914 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
915 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
916
11ed25ac
KB
9172002-04-29 Kevin Buettner <kevinb@redhat.com>
918
919 From Louis Hamilton <hamilton@redhat.com>:
920 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
921 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
922 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
923 not bfd-private xcoff data, to determine wordsize.
924 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
925
ae232405
AC
9262002-04-29 Andrew Cagney <ac131313@redhat.com>
927
928 GDB 5.2 released from 5.2 branch.
929
91fd20f7
ML
9302002-04-29 Michal Ludvig <mludvig@suse.cz>
931
932 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
933 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
934 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 935
2dc5091b
EZ
9362002-04-29 Elena Zannoni <ezannoni@redhat.com>
937
938 * rs6000-tdep.c (rs6000_extract_return_value,
939 rs6000_store_return_value): Handle returning vectors.
940 (rs6000_gdbarch_init): Use
941 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
942 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
943 New function.
944 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
945 vectors.
946 (ppc_sysv_abi_push_arguments): Handle vector parameters.
947 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 948
2b9848d8
PM
9492002-04-24 Pierre Muller <ics.u-strasbg.fr>
950
951 * hpread.c (hpread_psymtab_to_symtab_1,
952 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
953 with fprintf_unfiltered (gdb_stderr,...).
954
f8d17dc5
PM
9552002-04-24 Pierre Muller <ics.u-strasbg.fr>
956
957 * remote-array.c (printf_monitor, write_monitor,
361d1df0 958 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
959 Replace fprintf (stderr,...
960 with fprintf_unfiltered (gdb_stderr,....
961 * remote-es.c: Likewise.
962 * remote-os9k.c: Likewise.
963 * remote-st.c: Likewise.
964
2f2f1ad1
AS
9652002-04-28 Andreas Schwab <schwab@suse.de>
966
967 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
968 linux-proc.o and gcore.o.
969
b6779aa2
AC
9702002-04-26 Michal Ludvig <mludvig@suse.cz>
971
972 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
973 code without frame pointers.
974
7e57f5f4
AC
9752002-04-26 Andrew Cagney <ac131313@redhat.com>
976
977 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
978 ON_STACK is needed.
979
2ceb85d0
BE
9802002-04-26 Ben Elliston <bje@redhat.com>
981
982 * target.c (do_xfer_memory): Correct reference to the new option
983 "trust-readonly-sections".
984
f5f8a009
EZ
9852002-04-26 Elena Zannoni <ezannoni@redhat.com>
986
987 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
988 * gdbtypes.c (recursive_dump_type): Output the vector flag.
989 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
990 vectors.
991 (read_array_type): Record the fact that this array type is really a
992 vector (i.e. are passed in by value).
993
5868c862
JT
9942002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
995
996 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
997 * alpha-tdep.c (alpha_sigcontext_addr): New function.
998 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
999 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
1000 * alpha-linux-tdep.c: Include frame.h.
1001 (alpha_linux_sigcontext_addr): New function.
1002 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
1003 alpha_linux_sigcontext_addr.
1004 * alpha-osf1-tdep.c: Include gdbcore.h.
1005 (alpha_osf1_sigcontext_addr): New function.
1006 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
1007 alpha_osf1_sigcontext_addr.
1008 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
1009 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
1010
bfb01f37
AC
10112002-04-26 Andrew Cagney <ac131313@redhat.com>
1012
361d1df0 1013 * stack.c (selected_frame_level):
bfb01f37
AC
1014 (select_frame): Do not set selected_frame_level.
1015 * frame.h (selected_frame_level): Delete declaration.
1016
15813d3f
AC
10172002-04-26 Andrew Cagney <ac131313@redhat.com>
1018
1019 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
1020 convert_from_func_ptr-addr when AIX / PowerOpen.
1021
6096c27a
AC
10222002-04-25 Andrew Cagney <ac131313@redhat.com>
1023
1024 * valops.c (hand_function_call): Call
1025 generic_save_call_dummy_addr.
1026 * frame.h (generic_save_call_dummy_addr): Declare.
1027 * blockframe.c (struct dummy_frame): Add fields call_lo and
1028 call_hi.
1029 (generic_find_dummy_frame): Check for PC in range call_lo to
1030 call_hi instead of entry_point_address.
1031 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
1032 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
1033 (generic_save_call_dummy_addr): New function.
1034
f510d44e
DM
10352002-04-24 David S. Miller <davem@redhat.com>
1036
1037 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
1038 sparc_skip_prologue.
1039 (sparc_skip_prologue): Kill frameless_p arg, and use line number
1040 information to find prologue when possible.
1041 (sparc_prologue_frameless_p): Call examine_prologue directly.
1042 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
1043 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
1044 second argument.
1045 (SKIP_PROLOGUE): Likewise.
1046
15d72a92
JT
10472002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
1048
1049 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
1050 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
1051 indicate that the condition it was testing is always true.
1052 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
1053 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
1054 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
1055
accc6d1f
JT
10562002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
1057
1058 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
1059 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
1060 tdep->jb_pc and tdep->jb_elt_size.
1061 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
1062 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
1063 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
1064 * alpha-nat.c (get_longjmp_target): Remove.
1065 (JB_ELEMENT_SIZE): Ditto.
1066 (JB_PC): Ditto.
1067 * alpha-tdep.c (alpha_get_longjmp_target): New function.
1068 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
1069 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
1070 to alpha_get_longjmp_target.
1071 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
1072 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
1073 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
1074
1bfdc549
AC
10752002-04-25 Andrew Cagney <ac131313@redhat.com>
1076
1077 * README: Update to GDB 5.2.
1078
1bd316f0
AC
10792002-04-25 Andrew Cagney <ac131313@redhat.com>
1080
1081 * gdbarch.sh (LC_ALL): Set to `c'.
1082
2e5ff58c
TR
10832002-04-25 Theodore A. Roth <troth@verinet.com>
1084
1085 * avr-tdep.c: Ran through gdb_indent.sh.
1086
e33ce519
TR
10872002-04-25 Theodore A. Roth <troth@verinet.com>
1088
1089 * MAINTAINERS: Add myself as AVR maintainer.
1090 * NEWS: Note new target avr.
1091
8818c391
TR
10922002-04-25 Theodore A. Roth <troth@verinet.com>
1093
1094 * Makefile.in: Add support for AVR target.
1095 * configure.tgt: Add support for AVR target.
1096 * avr-tdep.c: New file
1097 * config/avr/avr.mt: New file.
1098
79509c2d
TR
10992002-04-25 Theodore A. Roth <troth@verinet.com>
1100
1101 * MAINTAINERS: Add myself to write-after-approval.
1102
dac8068e
PM
11032002-04-24 Pierre Muller <ics.u-strasbg.fr>
1104
1105 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
1106 with fprintf_unfiltered (gdb_stderr,....
1107
25bf3106
PM
11082002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
1109
1110 Fix PR gdb/508.
1111 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
1112
24467a86
PM
11132002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
1114
1115 * p-exp.y: Also use new prev_lexptr variable
1116 to improve error reporting. Based on Michael Snyder
1117 2002-04-24 dated patch to c-exp.y.
1118
95b80706
JT
11192002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
1120
1121 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
1122 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
1123 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
1124 to 0.
1125 * config/alpha/tm-alpha.h: Remove forward decls of struct type
1126 and struct value.
1127 (FUNCTION_START_OFFSET): Remove.
1128 (BREAKPOINT): Ditto.
1129
e90cc612
JT
11302002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
1131
1132 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
1133 * NEWS: Ditto.
1134
6c72f9f9
JT
11352002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1136
1137 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
1138 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
1139 alpha_linux_pc_in_sigtramp.
1140 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
1141 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
1142 alpha_osf1_pc_in_sigtramp.
1143 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
1144 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
1145 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1146 alphafbsd_pc_in_sigtramp.
1147 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
1148 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1149 alphanbsd_pc_in_sigtramp.
1150 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
1151 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
1152
5e4f3379
JT
11532002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1154
1155 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
1156
da8ca43d
JT
11572002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1158
1159 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
1160 alphanbsd-tdep.c.
1161 (alphanbsd-nat.o): New dependency list.
1162 (alphanbsd-tdep.o): Ditto.
1163 * NEWS: Note new native NetBSD/alpha configuration.
1164 * alphanbsd-nat.c: New file.
1165 * alphanbsd-tdep.c: Ditto.
1166 * configure.host (alpha*-*-netbsd*): New host.
1167 * configure.tgt (alpha*-*-netbsd*): New target.
1168 * config/alpha/nbsd.mh: New file.
1169 * config/alpha/nbsd.mt: Ditto.
1170 * config/alpha/nm-nbsd.h: Ditto.
1171 * config/alpha/tm-nbsd.h: Ditto.
1172
36a6271d
JT
11732002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1174
1175 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
1176 (alpha-osf1-tdep.o): New dependency list.
1177 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
1178 and skip_sigtramp_frame members.
1179 * alpha-linux-tdep.c: Include gdbcore.h.
1180 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
1181 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
1182 * alpha-osf1-tdep.c: New file.
1183 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
1184 alpha-osf1-dep.c.
1185 (alpha_frame_past_sigtramp_frame): New function.
1186 (alpha_dynamic_sigtramp_offset): Ditto.
1187 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
1188 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
1189 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
1190 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
1191 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
1192 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
1193 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
1194 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
1195 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
1196 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
1197 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
1198 to find_solib_trampoline_target.
1199 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
1200 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
1201 (SKIP_TRAMPOLINE_CODE): Remove.
1202 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1203 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1204 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
1205 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
1206 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
1207 (PROC_SIGTRAMP_MAGIC): Ditto.
1208 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1209 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1210 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1211 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
1212 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
1213
2f4bc57b
JT
12142002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1215
1216 * NEWS: Note that Alpha targets are now multi-arch.
1217
665132f9
MS
12182002-04-24 Michael Snyder <msnyder@redhat.com>
1219
1220 * parser-defs.h (prev_lexptr): New external variable.
1221 * parse.c (parse_exp_1): Set prev_lexptr to null before
1222 calling the language-specific parser.
1223 * c-exp.y (yylex): Set prev_lexptr to start of current token.
1224 (yyerror): Use prev_lexptr in error reporting.
1225
32872fa7
DJ
12262002-04-24 Daniel Jacobowitz <drow@mvista.com>
1227
1228 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
1229 * gregset.h: If FILL_FPXREGSET is defined, provide
1230 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
1231 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
1232 is defined, call fill_fpxregset.
1233
57e76fac
MS
12342002-04-24 Roland McGrath <roland@frob.com>
1235
1236 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
1237 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
1238 (supply_gregset, supply_fpregset): New functions.
1239
1240 * gnu-nat.c (gnu_find_memory_regions): New function.
1241 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
1242 (gnu_xfer_memory): Add a cast.
1243
f43845b3
MS
12442002-04-24 Michael Snyder <msnyder@redhat.com>
1245
361d1df0 1246 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
1247 loop. Add handling for "str lr, [sp, #-4]!" and for saves
1248 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 1249 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
1250 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
1251 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
1252
a0abec03
AC
1253Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
1254
1255 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
1256 NUM_PSEUDO_REGS can be used.
1257
d7bd68ca
AC
12582002-04-24 Andrew Cagney <ac131313@redhat.com>
1259
1260 * arch-utils.h: Update copyright.
1261
1262 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
1263 * gdbarch.h, gdbarch.c: Re-generate.
1264
1265 * inferior.h (IN_SIGTRAMP): Delete definition.
1266 * arch-utils.c (legacy_pc_in_sigtramp): New function.
1267 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
1268
1269 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
1270 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
1271 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
1272 (find_proc_framesize): Ditto.
1273 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
1274 (alpha_init_extra_frame_info): Ditto.
1275 * infrun.c (handle_inferior_event): Ditto.
1276 (handle_inferior_event): Ditto.
1277 (check_sigtramp2): Ditto.
1278 * blockframe.c (create_new_frame): Ditto.
1279 (get_prev_frame): Ditto.
1280 * ppc-linux-tdep.c: Update comments.
1281 * i386-linux-tdep.c: Update comments.
1282 * breakpoint.c (bpstat_what): Update comment.
1283
d06f167a
ML
12842002-04-24 Michal Ludvig <mludvig@suse.cz>
1285
1286 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
361d1df0 1287 (regsets_store_inferior_registers): Removed cast to int from
d06f167a
ML
1288 ptrace() calls.
1289 * gdbserver/regcache.h: Added declaration of struct inferior_info.
1290
4867e41e
DM
12912002-04-24 David S. Miller <davem@redhat.com>
1292
21d83aa5
DM
1293 * i960-tdep.c (register_in_window_p): New function.
1294 (i960_find_saved_register): Use it instead of
1295 REGISTER_IN_WINDOW_P.
1296 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
1297
4867e41e
DM
1298 * symtab.h (find_stab_function_addr): Kill extern.
1299 * minsyms.c (find_stab_function_addr): Remove from here...
1300 * dbxread.c: ... to here, and mark it static.
1301
69cdf6a2
DM
13022002-04-20 David S. Miller <davem@redhat.com>
1303
1304 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
1305 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
1306
5a595886
DM
13072002-04-21 David S. Miller <davem@redhat.com>
1308
1309 * remote-vxsparc.c (vx_read_register): Fix typo, we want
1310 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
1311 (vx_write_register): Likewise.
1312
1da1a192
JB
13132002-04-23 J. Brobecker <brobecker@gnat.com>
1314
1315 * source.c (is_regular_file): New function.
1316 (openp): Check wether file to open is a regular file
1317 to avoid opening directories.
1318
baa6f10b
JT
13192002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1320
1321 * findvar.c (extract_signed_integer): Cast printf argument
1322 to suppress format warning.
1323 (extract_unsigned_integer): Likewise.
1324 * infcmd.c (registers_info): Likewise.
1325 * top.c (get_prompt_1): Likewise.
1326 * valops.c (value_assign): Likewise.
1327 * valprint.c (print_decimal): Likewise.
1328
b2c4da81
L
13292002-04-22 H.J. Lu (hjl@gnu.org)
1330
1331 * c-exp.y (typebase): Support
361d1df0 1332
b2c4da81
L
1333 [long|long long|short] [signed|unsigned] [int|]
1334
1335 and
1336
1337 signed [long|long long|short] int
1338
f267bd6a
JT
13392002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1340
1341 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
1342 and vax-tdep.h.
1343 * vax-tdep.h: New file.
1344 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
1345 Make several routines static.
1346 (vax_get_saved_register): New function.
1347 (vax_gdbarch_init): New function.
1348 (_initialize_vax_tdep): Register vax_gdbarch_init.
1349 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
1350 Remove macros now under the control of gdbarch.
1351
da3c6d4a
MS
13522002-04-22 Michael Snyder <msnyder@redhat.com>
1353
11d3b27d
MS
1354 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
1355 Some whitespace and coding standards tweaks.
da3c6d4a 1356
a33f7558
JT
13572002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1358
1359 * vax-tdep.c: Include regcache.h.
1360 (vax_call_dummy_words): New.
1361 (sizeof_vax_call_dummy_words): New.
1362 (vax_fix_call_dummy): New function.
1363 (vax_saved_pc_after_call): Ditto.
1364 * config/vax/tm-vax.h: Don't include regcache.h.
1365 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
1366 (CALL_DUMMY): Remove.
1367 (CALL_DUMMY_WORDS): Define.
1368 (SIZEOF_CALL_DUMMY_WORDS): Define.
1369 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
1370
47a73475
MS
13712002-04-18 Michael Snyder <msnyder@redhat.com>
1372
1373 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
1374
52efde73
JT
13752002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1376
1377 * vax-tdep.c (vax_frame_chain): New function.
1378 (vax_push_dummy_frame): Ditto.
1379 (vax_pop_frame): Ditto.
1380 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
1381 (FRAMELESS_FUNCTION_INVOCATION): Use
1382 generic_frameless_function_invocation_not.
1383 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
1384 (POP_FRAME): Use vax_pop_frame.
1385
ea74468c
JT
13862002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1387
1388 * vax-tdep.c (vax_store_struct_return): New function.
1389 (vax_extract_return_value): Ditto.
1390 (vax_store_return_value): Ditto.
1391 (vax_extract_struct_value_address): Ditto.
1392 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
1393 vax_store_struct_return.
1394 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
1395 (STORE_RETURN_VALUE): Use vax_store_return_value.
1396 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
1397
5516aa92
JT
13982002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1399
1400 * vax-tdep.c (vax_frame_saved_pc): New function.
1401 (vax_frame_args_address_correct): Ditto.
1402 (vax_frame_args_address): Ditto.
1403 (vax_frame_locals_address): Ditto.
1404 (vax_frame_num_args): Move code to be in proximity to
1405 other frame-related functions.
1406 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
1407 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
1408 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
1409 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
1410 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
1411
36af0b35
L
14122002-04-22 H.J. Lu (hjl@gnu.org)
1413
1414 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
1415 includedir.
1416
ab62c900
JT
14172002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1418
1419 * vax-tdep.c (vax_frame_init_saved_regs): New function.
1420 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
1421 (FRAME_INIT_SAVED_REGS): New macro.
1422
7232b100
JT
14232002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1424
1425 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
1426
b70d2aee
JT
14272002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1428
1429 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
1430 where needed.
1431 (fetch_osf_core_registers): Likewise.
1432 (supply_gregset): Likewise.
1433
a0e8a2d1 14342002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 1435
a0e8a2d1
JB
1436 * symfile.h (get_section_index): Define.
1437 * symfile.c (get_section_index): New function.
1438 * mdebugread.c (SC_IS_SBSS): New macro.
1439 (SC_IS_BSS): Return true for the scBss storage class only, as
1440 the scSBss storage class refers to the .sbss section.
1441 (parse_partial_symbols): Discard the symbols which associated
1442 section does not exist.
1443 Make sure to use the .sbss section index for symbols which
1444 storage class is scBss, rather than using the .bss section index.
1445
51eb8b08
JT
14462002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1447
1448 * vax-tdep.c: Update copyright years.
1449 (vax_register_name): New function.
1450 (vax_register_byte): Ditto.
1451 (vax_register_raw_size): Ditto.
1452 (vax_register_virtual_size): Ditto.
1453 (vax_register_virtual_type): Ditto.
1454 * config/vax/tm-vax.h: Update copyright years.
1455 (REGISTER_NAMES): Remove.
1456 (REGISTER_NAME): Define.
1457 (REGISTER_BYTE): Use vax_register_byte.
1458 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
1459 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
1460 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
1461
6cc1c0a8
AC
14622002-04-21 Andrew Cagney <ac131313@redhat.com>
1463
1464 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
1465 declaration
1466 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
1467
9319a2fe
DM
14682002-04-21 David S. Miller <davem@redhat.com>
1469
1470 * arch-utils.c (generic_prologue_frameless_p): Kill
1471 SKIP_PROLOGUE_FRAMELESS_P code.
1472 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
1473 references.
1474 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
1475 * arc-tdep.c (arc_prologue_frameless_p): Implement.
1476 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
1477 references.
1478 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
1479 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
1480 (sparc_gdbarch_init): Pass it to
1481 set_gdbarch_prologue_frameless_p.
a0e8a2d1 1482
e9ed6d01
JT
14832002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1484
1485 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
1486 (alphabsd-nat.o): New dependency list.
1487
36012033
JT
14882002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1489
1490 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
1491 alphafbsd-tdep.c.
1492 (alpha-linux-tdep.o): New dependency list.
1493 (alphafbsd-tdep.o): Likewise.
1494
3379287a
JT
14952002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1496
1497 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
1498 to here...
1499 * alpha-tdep.c: ...from here.
1500 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
1501
4bcbd6cb
JT
15022002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1503
1504 * config/alpha/tm-alpha.h: Move alpha_software_single_step
1505 prototype from here...
1506 * alpha-tdep.h: ...to here.
1507
b31da25e
AC
15082002-04-21 Andrew Cagney <ac131313@redhat.com>
1509
1510 * frame.h (selected_frame_level): Document as deprecated.
1511 (frame_relative_level): Declare.
1512 * stack.c (frame_relative_level): New function.
1513 (selected_frame_level): Document as deprecated.
1514 (select_frame): Do not set the selected_frame_level.
1515
1516 * stack.c (frame_info, record_selected_frame): Update.
1517 (frame_command, current_frame_command): Update.
1518 (up_silently_base, up_command, down_silently_base): Update.
1519 (down_command): Update.
1520 * inflow.c (kill_command): Update.
1521 * tracepoint.c (finish_tfind_command): Update.
1522 * corelow.c (core_open): Update.
1523 * thread.c (info_threads_command): Update.
1524 (do_captured_thread_select): Update.
1525 * infcmd.c (finish_command): Update.
1526 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
1527
9c1d6fe5
JT
15282002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1529
1530 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
1531
ab89facf
AC
15322002-04-21 Andrew Cagney <ac131313@redhat.com>
1533
1534 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
1535 type const.
1536
82a4efa1
JT
15372002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1538
1539 * alphafbsd-tdep.c: Update copyright years. Include
1540 alpha-tdep.h.
1541 (alphafbsd_use_struct_convention): Make static.
1542 (alphafbsd_init_abi): New function.
1543 (_initialize_alphafbsd_tdep): New function.
1544 * config/alpha/tm-fbsd.h: Update copyright years.
1545 (USE_STRUCT_CONVENTION): Remove.
1546
44dffaac
JT
15472002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1548
1549 * alpha-tdep.c (alpha_abi_handler): New structure to describe
1550 an Alpha ABI variant.
1551 (alpha_abi_handler_list): Declare.
1552 (alpha_gdbarch_register_os_abi): New function.
1553 (alpha_gdbarch_init): Give registered ABI variant handlers a
1554 chance to tweak the gdbarch once we have set up defaults.
1555 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
1556
65585be4
JT
15572002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1558
1559 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
1560 to standard_coerce_float_to_double.
1561 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
1562
d9b023cc
JT
15632002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1564
1565 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
1566 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
1567 from gdbarch_tdep rather than a constant.
1568 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
1569 the default text address for all Alpha Unix ABIs.
1570 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
1571 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
1572
dc129d82
JT
15732002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1574
1575 * alpha-tdep.h: New file. Includes several Alpha target constants
1576 taken from...
1577 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
1578 let gdbarch deal with.
1579 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
1580 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
1581 to dependency list.
1582 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
1583 Alpha target register names.
1584 * alphabsd-nat.c: Likewise.
1585 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
1586 Alpha target register names. Make serveral routines static.
1587 (alpha_get_saved_register): New function.
1588 (alpha_abi_names): New.
1589 (process_note_abi_tag_sections): New function.
1590 (get_elfosabi): New function.
1591 (alpha_gdbarch_init): New function.
1592 (alpha_dump_tdep): New function.
1593 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
1594
d49d1e0a
AC
15952002-04-21 Andrew Cagney <ac131313@redhat.com>
1596
1597 * frame.c (find_saved_register): Delete #ifdef
1598 HAVE_REGISTER_WINDOWS code.
1599 * config/sparc/tm-sparc.h: Update comments.
1600 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
1601
92e8c9ed
AC
16022002-04-21 Andrew Cagney <ac131313@redhat.com>
1603
1604 * i960-tdep.c (i960_find_saved_register): New function.
1605 (i960_get_saved_register): New function.
1606 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
1607 (i960_get_saved_register): Declare.
1608 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
1609
e1925118
DM
16102002-04-20 David S. Miller <davem@redhat.com>
1611
1612 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
1613
29673b29
AC
16142002-04-20 Andrew Cagney <ac131313@redhat.com>
1615
1616 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
1617 instead of NUM_PSEUDO_REGS.
1618
6c86dcd5
DM
16192002-04-20 David S. Miller <davem@redhat.com>
1620
1621 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
1622 GDB_MULTI_ARCH_PARTIAL
1623 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
1624 define, let tm-sp64.h do it.
1625
aa40ec90
JT
16262002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
1627
1628 * frame.c (find_saved_register): Avoid a NULL pointer
1629 dereference and actually walk the frame list.
1630
0f79675b
AC
16312002-04-20 Andrew Cagney <ac131313@redhat.com>
1632
1633 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
1634 sorted in most most-recent-used order. Document.
1635 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 1636
c04a1aa8
DJ
16372002-04-20 Daniel Jacobowitz <drow@mvista.com>
1638
1639 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
1640 (add_inferior): Call create_register_cache.
1641 (clear_inferiors): Call free_register_cache.
1642 (inferior_regcache_data, set_inferior_regcache_data): New functions.
1643 * gdbserver/regcache.c (struct inferior_regcache_data): New.
1644 (registers): Remove.
1645 (get_regcache): New function.
1646 (create_register_cache, free_register_cache): New functions.
1647 (set_register_cache): Don't initialize the register cache here.
1648 (registers_to_string, registers_from_string, register_data): Call
1649 get_regcache.
1650 * gdbserver/regcache.h: Add prototypes.
1651 * gdbserver/server.h: Likewise.
1652
611cb4a5
DJ
16532002-04-20 Daniel Jacobowitz <drow@mvista.com>
1654
1655 * gdbserver/mem-break.c: New file.
1656 * gdbserver/mem-break.h: New file.
1657 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
1658 dependencies.
1659 * gdbserver/inferiors.c (struct inferior_info): Add target_data
1660 member.
1661 (clear_inferiors): Free target_data member if set.
1662 (inferior_target_data, set_inferior_target_data): New functions.
1663 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
1664 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
1665 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
1666 (struct inferior_linux_data): New.
1667 (linux_create_inferior): Use set_inferior_target_data.
1668 (linux_attach): Likewise. Call add_inferior.
1669 (linux_wait_for_one_inferior): New function.
1670 (linux_wait): Call it.
1671 (linux_write_memory): Add const.
1672 (initialize_low): Call set_breakpoint_data.
1673 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
1674 handling members.
1675 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
1676 call.
1677 * gdbserver/server.h: Include mem-break.h. Update inferior.c
1678 prototypes.
1679 * gdbserver/target.c (read_inferior_memory)
1680 (write_inferior_memory): New functions.
1681 * gdbserver/target.h (read_inferior_memory)
1682 (write_inferior_memory): Change macros to prototypes.
1683 (struct target_ops): Update comments. Add const to write_memory
1684 definition.
1685
f91305dd 16862002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
1687
1688 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
1689 instead of ->prev.
1690 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
1691 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
1692 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
1693 instead of ->prev.
1694
73d322b1
EZ
16952002-04-19 Elena Zannoni <ezannoni@redhat.com>
1696
1697 Fix PR gdb/471.
1698 * gdbtypes.c (init_simd_type): Rewrite using new functions.
1699 (build_builtin_type_vec128): Ditto.
1700 (append_composite_type_field): Fix calculation of type length in
1701 union case.
1702
ccd9a834
EZ
17032002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
1704
1705 * config/djgpp/README: Update.
1706
1707 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
1708 compiler warnings.
1709
a57f9e49
JT
17102002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
1711
1712 * alpha-tdep.c (setup_arbitrary_frame): Rename...
1713 (alpha_setup_arbitrary_frame): ...to this.
1714 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
1715 for alpha_setup_arbitrary_frame.
1716
f4f9705a
AC
17172002-04-18 Andrew Cagney <cagney@redhat.com>
1718
1719 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
1720 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 1721
f4f9705a
AC
1722 * defs.h (breakpoint_from_pc_fn): Delete type definition.
1723 * target.h (memory_breakpoint_from_pc): Update declaration.
1724 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
1725
1726 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
1727 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
1728 * mem-break.c (memory_breakpoint_from_pc): Ditto.
1729 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
1730 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
1731 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
1732 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
1733 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
1734 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
1735 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
1736 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
1737 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
1738
1739 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
1740 const pointer.
1741 * monitor.c (monitor_insert_breakpoint): Ditto.
1742 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
1743
1744 * config/mcore/tm-mcore.h: Update copyright.
1745 * mem-break.c: Ditto.
1746 * xstormy16-tdep.c: Ditto.
1747
29f319b8
PM
17482002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
1749
1750 * p-exp.y: Add precedence rule for '^' token.
1751 This removes the shift/reduce conflicts.
1752 Remove the comment concerning these shift/reduce conflicts.
1753
ebeac11a
EZ
17542002-04-18 Elena Zannoni <ezannoni@redhat.com>
1755
1756 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
1757 (registers_powerpc_nofp): New register set for processors
1758 without floating point unit.
1759
27c31547
DM
17602002-04-18 David S. Miller <davem@redhat.com>
1761
1762 * MAINTAINERS: Add myself to write-after-approval.
1763
47a73475
MS
17642002-04-17 Michael Snyder <msnyder@redhat.com>
1765
1766 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
1767
953836b2
AC
17682002-04-17 Andrew Cagney <ac131313@redhat.com>
1769
1770 * rs6000-tdep.c (frame_initial_stack_address): Use
1771 frame_register_read to read the alloca_reg.
1772
8b0d4340
AC
17732002-04-17 Andrew Cagney <ac131313@redhat.com>
1774
1775 * frame.c (find_saved_register): Find saved registers in the next
1776 not prev frame.
1777 Fix PR gdb/365.
1778
d8864532
AC
17792002-04-17 Andrew Cagney <ac131313@redhat.com>
1780
1781 * gdbarch.sh (LANG): Set to ``c''.
1782
36cc83a3 17832002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 1784
36cc83a3 1785 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 1786
2f4150cc 17872002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
1788
1789 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
1790 Update copyright.
1791
628703c6 1792 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 1793 Also fix PR gdb/391.
361d1df0 1794
56157b4a
AC
17952002-04-14 Andrew Cagney <ac131313@redhat.com>
1796
1797 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
1798 * aclocal.m4, configure: Re-generate.
1799 Fix PR gdb/391.
361d1df0 1800
6d1e3329
EZ
18012002-04-14 Elena Zannoni <ezannoni@redhat.com>
1802
1803 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
1804 instead of tm_print_insn.
1805
cb06fa07
EZ
18062002-04-14 Elena Zannoni <ezannoni@redhat.com>
1807
1808 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
1809
f208ba17
AC
18102002-04-14 Andrew Cagney <ac131313@redhat.com>
1811
1812 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
1813 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
1814 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
1815
20f01a46
DH
18162002-04-12 Don Howard <dhoward@redhat.com>
1817
1818 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
1819 max_user_call_depth.
1820 (init_cmd_lists): Initialize the new value;
1821 * cli/cli-script.c (execute_user_command): Limit the call depth of
1822 user defined commands. This avoids a core-dump when user commands
1823 are infinitly recursive.
1824
a88376a3
KB
18252002-04-12 Kevin Buettner <kevinb@redhat.com>
1826
1827 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
1828 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
1829 from tdep struct instead of DEFAULT_LR_SAVE.
1830 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
1831 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
1832 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
1833
f2172603
MS
18342002-04-12 Michael Snyder <msnyder@redhat.com>
1835
694f61fb 1836 * Remote.c: Spelling fix.
20fe79c8
MS
1837 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
1838 If no symbol found for "sbrk", try "_sbrk".
1839 (make_output_phdrs): Use bfd_section_name.
1840 (gcore_copy_callback): Use bfd_section_name.
62995fc4 1841 * eval.c: Indentation fix-ups.
169a7369
MS
1842 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
1843 in case it gets applied to an address that is already
1844 in the instruction space.
de74f71f
MS
1845 * cli/cli-decode.c (help_list): Allow long lines to wrap.
1846 * symfile.c: Fix indentation, long lines.
f2172603
MS
1847 * source.c: White space fix-up.
1848
cda5a58a
AC
18492002-04-12 Andrew Cagney <cagney@redhat.com>
1850
1851 * defs.h (read_relative_register_raw_bytes): Delete declaration.
1852 * frame.c (frame_register_read): New function. Return non-zero on
1853 success.
1854 (read_relative_register_raw_bytes_for_frame): Delete.
1855 (read_relative_register_raw_bytes): Delete.
1856 * frame.h (frame_register_read): Declare.
1857 * d30v-tdep.c: Update Copyright. Use frame_register_read.
1858 * sh-tdep.c: Ditto.
1859 * infcmd.c (do_registers_info): Ditto.
1860 * hppa-tdep.c: Ditto.
1861 * rs6000-tdep.c: Ditto.
1862 * h8500-tdep.c: Ditto.
1863 * mips-tdep.c: Ditto.
1864 * h8300-tdep.c: Ditto.
1865 * z8k-tdep.c: Ditto.
1866
2ea5f656
KB
18672002-04-12 Kevin Buettner <kevinb@redhat.com>
1868
1869 From Jimi X <jimix@watson.ibm.com>:
1870 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
1871 64-bit SysV ABI.
1872
27b15785
KB
18732002-04-12 Kevin Buettner <kevinb@redhat.com>
1874
1875 From Jimi X <jimix@watson.ibm.com>:
1876 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
1877 bfd info.
1878
5d57ee30
KB
18792002-04-12 Kevin Buettner <kevinb@redhat.com>
1880
1881 From Jimi X <jimix@watson.ibm.com>:
1882 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
1883 register sets for these processor variants.
1884
bc1e36ca
DJ
18852002-04-11 Daniel Jacobowitz <drow@mvista.com>
1886
1887 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
1888 registers which are allowed to fail to store.
1889 * gdbserver/linux-low.h (linux_target_ops): Likewise.
1890 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
1891 (ppc_cannot_store_register): FPSCR may not be storable.
1892 * regformats/reg-ppc.dat: Support FPSCR.
1893
e3f36dbd
KB
18942002-04-11 Kevin Buettner <kevinb@redhat.com>
1895
1896 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
1897 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
1898 Add fpscr as an invalid/unfetchable register.
1899 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
1900 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
1901 (fill_fpregset): Add support for register fpscr.
1902 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
1903 (fill_gregset): Account for the fact that register ``mq'' might
1904 not exist.
1905 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
1906 (registers_power): Add fpscr to register set at slot 71.
1907 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
1908 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
1909
943c9c25
MS
19102002-04-11 Michael Snyder <msnyder@redhat.com>
1911
1912 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
1913 * configure: Regenerate.
1914 * config.in: Regenerate.
1915 * acconfig.h: Add define for _SYSCALL32.
1916 * core-sol2.c: Remove #define _SYSCALL32.
1917 * solib-legacy.c: Remove #define _SYSCALL32.
1918
d8c0a2e7
AC
19192002-04-10 Andrew Cagney <ac131313@redhat.com>
1920
1921 * stack.c (select_frame): Cleanup internal error message, do not
1922 use %p.
1923
7cc19214
AC
19242002-04-10 Andrew Cagney <ac131313@redhat.com>
1925
1926 * stack.c (select_frame): Check that selected_frame and the
1927 specified level are as expected.
1928 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
1929 Update copyright.
1930 * frame.h (struct frame_info): Add field `level'. Update
1931 copyright.
1932 Work-in-progress PR gdb/464.
1933
67a2b77e
AC
19342002-04-10 Andrew Cagney <ac131313@redhat.com>
1935
1936 * maint.c (maint_print_section_info): Rename print_section_info.
1937 (print_bfd_section_info, print_objfile_section_info): Update.
1938 * inferior.h (struct gdbarch): Add opaque declaration.
1939 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
1940 * gdbarch.h: Regenerate.
1941
8cfda98c
ML
19422002-04-10 Michal Ludvig <mludvig@suse.cz>
1943
1944 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
1945 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
1946 (kernel_u_size): Added.
1947 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
1948 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
1949
ca439ad2 19502002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 1951
ca439ad2
JI
1952 * valarith.c (find_size_for_pointer_math): New function, either returns
1953 the size for a pointer's target, returns 1 for void *, or errors for
1954 incomplete types.
1955 (value_add, value_sub): use find_size_for_pointer_math.
1956
2f2893d9
DJ
19572002-04-09 Daniel Jacobowitz <drow@mvista.com>
1958
1959 * linux-low.c (linux_look_up_symbols): New hook.
1960 (linux_target_ops): Add linux_look_up_symbols.
1961 * remote-utils.c (decode_address): New function.
1962 (look_up_one_symbol): New function.
1963 * server.c (handle_query): Call target look_up_symbols hook.
1964 * server.h (look_up_one_symbol): Add prototype.
1965 * target.h (struct target_ops): Add look_up_symbols hook.
1966
2ec06d2e
DJ
19672002-04-09 Daniel Jacobowitz <drow@mvista.com>
1968
d64b8841
DJ
1969 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
1970 * ChangeLog: Correct paths in last ChangeLog entry.
1971
19722002-04-09 Daniel Jacobowitz <drow@mvista.com>
1973
1974 * gdbserver/linux-low.h: Remove obsolete prototypes.
2ec06d2e
DJ
1975 (struct linux_target_ops): New.
1976 (extern the_low_target): New.
d64b8841 1977 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2ec06d2e
DJ
1978 (register_addr): Use the_low_target explicitly.
1979 (fetch_register): Likewise.
1980 (usr_fetch_inferior_registers): Likewise.
1981 (usr_store_inferior_registers): Likewise.
d64b8841 1982 * gdbserver/linux-arm-low.c (num_regs): Remove.
2ec06d2e
DJ
1983 (arm_num_regs): Define.
1984 (arm_regmap): Renamed from regmap, made static.
1985 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
1986 made static.
1987 (arm_cannot_store_register): Renamed from cannot_store_register,
1988 made static.
1989 (the_low_target): New.
d64b8841 1990 * gdbserver/linux-i386-low.c (num_regs): Remove.
2ec06d2e
DJ
1991 (i386_num_regs): Define.
1992 (i386_regmap): Renamed from regmap, made static.
1993 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
1994 made static.
1995 (i386_cannot_store_register): Renamed from cannot_store_register,
1996 made static.
1997 (the_low_target): New.
d64b8841 1998 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2ec06d2e
DJ
1999 (ia64_num_regs): Define.
2000 (ia64_regmap): Renamed from regmap, made static.
2001 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
2002 made static.
2003 (ia64_cannot_store_register): Renamed from cannot_store_register,
2004 made static.
2005 (the_low_target): New.
d64b8841 2006 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2ec06d2e
DJ
2007 (m68k_num_regs): Define.
2008 (m68k_regmap): Renamed from regmap, made static.
2009 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
2010 made static.
2011 (m68k_cannot_store_register): Renamed from cannot_store_register,
2012 made static.
2013 (the_low_target): New.
d64b8841 2014 * gdbserver/linux-mips-low.c (num_regs): Remove.
2ec06d2e
DJ
2015 (mips_num_regs): Define.
2016 (mips_regmap): Renamed from regmap, made static.
2017 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
2018 made static.
2019 (mips_cannot_store_register): Renamed from cannot_store_register,
2020 made static.
2021 (the_low_target): New.
d64b8841 2022 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2ec06d2e
DJ
2023 (ppc_num_regs): Define.
2024 (ppc_regmap): Renamed from regmap, made static.
2025 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
2026 made static.
2027 (ppc_cannot_store_register): Renamed from cannot_store_register,
2028 made static.
2029 (the_low_target): New.
d64b8841 2030 * gdbserver/linux-s390-low.c (num_regs): Remove.
2ec06d2e
DJ
2031 (s390_num_regs): Define.
2032 (s390_regmap): Renamed from regmap, made static.
2033 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
2034 made static.
2035 (s390_cannot_store_register): Renamed from cannot_store_register,
2036 made static.
2037 (the_low_target): New.
d64b8841 2038 * gdbserver/linux-sh-low.c (num_regs): Remove.
2ec06d2e
DJ
2039 (sh_num_regs): Define.
2040 (sh_regmap): Renamed from regmap, made static.
2041 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
2042 made static.
2043 (sh_cannot_store_register): Renamed from cannot_store_register,
2044 made static.
2045 (the_low_target): New.
d64b8841 2046 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2ec06d2e
DJ
2047 (the_low_target): New.
2048
96cb11df
AC
20492002-04-09 Andrew Cagney <ac131313@redhat.com>
2050
2051 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
2052 override FP_REGNUM with frame->fp. Update copyright.
2053 * parse.c (num_std_regs, std_regs): Delete.
2054 (target_map_name_to_register): Do not search std_regs. Update
2055 function description.
2056 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
2057 declarations. Update copyright.
2058 Fix PR gdb/251.
361d1df0 2059
c3a3ccc7
DJ
20602002-04-09 Daniel Jacobowitz <drow@mvista.com>
2061
2062 * gdbserver/Makefile.in: Add stamp-h target.
2063 * gdbserver/configure.in: Create stamp-h.
2064 * gdbserver/configure: Regenerated.
2065
ce3a066d
DJ
20662002-04-09 Daniel Jacobowitz <drow@mvista.com>
2067
2068 * gdbserver/inferiors.c: New file.
2069 * gdbserver/target.c: New file.
2070 * gdbserver/target.h: New file.
2071 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
2072 dependencies.
2073 * gdbserver/linux-low.c (inferior_pid): New static variable,
2074 moved from server.c.
2075 (linux_create_inferior): Renamed from create_inferior.
2076 Call add_inferior. Return 0 on success instead of a PID.
2077 (linux_attach): Renamed from myattach.
2078 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
2079 (linux_thread_alive): Renamed from mythread_alive.
2080 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
2081 child dies.
2082 (linux_resume): Renamed from myresume. Add missing ``return 0''.
2083 (regsets_store_inferior_registers): Correct error message.
2084 Add missing ``return 0''.
2085 (linux_fetch_registers): Renamed from fetch_inferior_registers.
2086 (linux_store_registers): Renamed from store_inferior_registers.
2087 (linux_read_memory): Renamed from read_inferior_memory.
2088 (linux_write_memory): Renamed from write_inferior_memory.
2089 (linux_target_ops): New structure.
2090 (initialize_low): Call set_target_ops ().
2091 * gdbserver/remote-utils.c (unhexify): New function.
2092 (hexify): New function.
2093 (input_interrupt): Send signals to ``signal_pid''.
2094 * gdbserver/server.c (inferior_pid): Remove.
2095 (start_inferior): Update create_inferior call.
2096 (attach_inferior): Call add_inferior.
2097 (handle_query): New function.
2098 (main): Call handle_query for `q' packets.
2099 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
2100 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
2101
0729219d
DJ
21022002-04-09 Daniel Jacobowitz <drow@mvista.com>
2103
2104 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
2105 dependencies.
2106 * gdbserver/configure.in: Check for <string.h>
2107 * gdbserver/configure: Regenerate.
2108 * gdbserver/config.in: Regenerate.
2109 * gdbserver/gdbreplay.c: Include needed system headers.
2110 (remote_open): Remove strchr prototype.
2111 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
2112 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
2113 (supply_register_by_name): Likewise.
2114 (collect_register): Change buf argument to void *.
2115 (collect_register_by_name): Likewise.
2116 * gdbserver/regcache.h: Add missing prototypes.
2117 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
2118 * gdbserver/server.c (handle_query): New function.
2119 (attached): New static variable, moved out of main.
2120 (main): Quiet longjmp clobber warnings.
2121 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
2122 * gdbserver/utils.c (error): Remove NORETURN.
2123 (fatal): Likewise.
2124
97658e92
DJ
21252002-04-09 Daniel Jacobowitz <drow@mvista.com>
2126
2127 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
2128 after the last symbol in a block.
2129
6044e3eb
PM
21302002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
2131
2132 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
2133 is non zero as a found symbol.
2134
0406ec40
AC
21352002-04-08 Andrew Cagney <ac131313@redhat.com>
2136
2137 * findvar.c: Include "builtin-regs.h".
2138 (value_of_register): Call value_of_builtin_reg when applicable.
2139 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
2140 (target_map_name_to_register): Call
2141 builtin_reg_map_name_to_regnum.
2142 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
2143 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
2144 (builtin_regs_h): Define.
2145 (builtin-regs.o): New target.
2146 (findvar.o): Add $(builtin_regs_h).
2147 * builtin-regs.c, builtin-regs.h: New files.
2148 * std-regs.c: New file.
2149 Partial fix for PR gdb/251.
2150
56a6dfb9
KB
21512002-04-08 Kevin Buettner <kevinb@redhat.com>
2152
2153 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
2154 it's no longer required.
2155
3a808432
AC
21562002-04-08 Andrew Cagney <ac131313@redhat.com>
2157
2158 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
2159
7c40d541
KB
21602002-04-08 Kevin Buettner <kevinb@redhat.com>
2161
2162 From Jimi X <jimix@watson.ibm.com>:
2163 * rs6000-tdep.c (rs6000_software_single_step): Use
2164 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
2165 and size. Use target_insert_breakpoint() and
2166 target_remove_breakpoint() to insert and remove breakpoints
2167 instead of explicit memory reads and writes.
2168
cc9836a8
KB
21692002-04-08 Kevin Buettner <kevinb@redhat.com>
2170
2171 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
2172 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
2173 ELF_OBJECT_FORMAT ifdef.
2174
7495d1dc
KB
21752002-04-08 Kevin Buettner <kevinb@redhat.com>
2176
2177 From Jimi X <jimix@watson.ibm.com>:
2178 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
2179
4288e836
KB
21802002-04-08 Kevin Buettner <kevinb@redhat.com>
2181
2182 From Jimi X <jimix@watson.ibm.com>:
2183 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
2184 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
2185
a4e4e501
MK
21862002-04-07 Mark Kettenis <kettenis@gnu.org>
2187
2188 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
2189 s/asprintf/xasprintf/.
2190 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
2191
006defba
AC
21922002-04-07 Andrew Cagney <ac131313@redhat.com>
2193
2194 I believe Jeff Law denies responsability for this one:
2195 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
2196 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
2197 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
2198 Work-around for PR gdb/366.
2199
7aa83cac
EZ
22002002-04-07 Elena Zannoni <ezannoni@redhat.com>
2201
2202 * remote-e7000.c (write_small, e7000_read_inferior_memory,
2203 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
2204 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
2205
cf1fcca1
EZ
22062002-04-07 Elena Zannoni <ezannoni@redhat.com>
2207
2208 * sh-tdep.c (sh_fp_frame_init_saved_regs,
2209 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
2210 information.
2211
3f289e6f
AC
22122002-04-07 Andrew Cagney <ac131313@redhat.com>
2213
2214 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
2215 maintainer.
2216
129188f6
AC
22172002-04-07 Andrew Cagney <ac131313@redhat.com>
2218
2219 * README (Reporting Bugs in GDB): Document the bug web page as the
2220 prefered way of submitting bugs.
2221 Fix PR gdb/402.
2222
1200cd6e
AC
22232002-04-06 Andrew Cagney <ac131313@redhat.com>
2224
2225 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
2226 -1. Update comment.
2227 * gdbarch.h, gdbarch.c: Re-generate.
2228
2853c33c
AS
22292002-04-07 Andreas Schwab <schwab@suse.de>
2230
2231 * m68klinux-nat.c (fill_fpregset): Properly pass address of
2232 buffer to regcache_collect.
2233
c2169756
AC
22342002-04-06 Andrew Cagney <ac131313@redhat.com>
2235
2236 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
2237 * gdbarch.c, gdbarch.h: Re-generate.
2238
25f1b008
AC
22392002-04-06 Andrew Cagney <ac131313@redhat.com>
2240
2241 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
2242 declaration. Fix -Werror.
2243
59263426
DJ
22442002-04-05 Daniel Jacobowitz <drow@mvista.com>
2245
2246 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
2247 * gdbarch.c: Regenerate.
2248
f5db4da3
MS
22492002-04-05 Michael Snyder <msnyder@redhat.com>
2250
80f8a6eb
MS
2251 * breakpoint.c (clear_command): Rewrite middle section to
2252 combine two loops with identical control conditions.
2253 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
2254 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
2255
ad3dcc5c
L
22562002-04-05 H.J. Lu (hjl@gnu.org)
2257
2258 * solib-svr4.c (bkpt_names): Add "__start".
2259
f32e7a74
AC
22602002-04-04 Andrew Cagney <ac131313@redhat.com>
2261
2262 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
2263 as test for 64 bit target.
2264
8227c0ff
AC
22652002-04-05 Andrew Cagney <ac131313@redhat.com>
2266
2267 * h8500-tdep.c (h8500_write_fp): Delete function.
2268 * dwarf2cfi.c (cfi_write_fp): Document as not used.
2269 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
2270 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
2271 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
2272 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
2273 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
2274 (s390_write_fp):
2275 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
2276 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
2277 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
2278 (d10v_write_fp): Delete function.
2279 * inferior.h (write_fp, generic_target_write_fp): Delete
2280 declarations.
2281 * regcache.c (generic_target_write_fp): Delete function.
2282 (write_fp): Delete function.
2283 * gdbarch.sh (TARGET_WRITE_FP): Delete.
2284 * gdbarch.h, gdbarch.c: Regenerate.
2285 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
2286 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
2287 (sparc64_write_fp): Delete declaration.
2288 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
2289 (h8500_write_fp): Delete declaration.
2290
2757dd86
AC
22912002-04-04 Andrew Cagney <ac131313@redhat.com>
2292
2293 * sparc-tdep.c (sparc64_write_fp): Delete.
2294 (sparc_push_dummy_frame): Replace write_fp call with code to store
2295 the FP directly.
2296 (sparc_gdbarch_init): Do not initialize write_fp.
2297
c69255e1
KB
22982002-04-05 Kevin Buettner <kevinb@redhat.com>
2299
2300 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
2301 clause.
2302
ae767bfb
JB
23032002-03-29 Jim Blandy <jimb@redhat.com>
2304
2305 * stack.c (get_selected_block): Add new argument `addr_in_block',
2306 used to return the exact code address we used to select the block,
2307 not just the block.
2308 * blockframe.c (get_frame_block, get_current_block): Same.
2309 * frame.h (get_frame_block, get_current_block,
2310 get_selected_block): Update declarations.
2311 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
2312 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
2313
84d2ac95
MS
23142002-04-05 Michael Snyder <msnyder@redhat.com>
2315
2316 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
2317 warning message.
2318
596aa3bf
JB
23192002-04-05 J. Brobecker <brobecker@gnat.com>
2320
2321 * utils.c (xfullpath): New function.
2322 * defs.h (xfullpath): Add declaration.
2323 * source.c (openp): Use xfullpath in place of gdb_realpath to
2324 avoid resolving the basename part of filenames when the
2325 associated file is a symbolic link. This fixes a potential
2326 inconsistency between the filenames known to GDB and the
2327 filenames it prints in the annotations.
2328 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
2329 to be able to match a filename with either the real filename, or
2330 the name of any symbolic link to this file.
2331 (lookup_partial_symtab): Ditto.
2332
c02f5703
MS
23332002-04-04 Michael Snyder <msnyder@redhat.com>
2334
2335 * breakpoint.c: Add support for hardware breakpoints in overlays.
2336 (overlay_events_enabled): New state variable.
2337 (insert_breakpoints): Use overlay_events_enabled to decide
2338 whether to attempt to set a breakpoint at the overlay load addr.
2339 Handle bp_hardware_breakpoint as well as bp_breakpoint.
2340 (remove_breakpoint): Use overlay_events_enabled to decide
2341 whether breakpoints need to be removed from overlay load addr.
2342 Handle bp_hardware_breakpoint as well as bp_breakpoint.
2343 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 2344 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
2345 disable_overlay_breakpoints): Update overlay_events_enabled.
2346
5fb290d7
DJ
23472002-04-04 Daniel Jacobowitz <drow@mvista.com>
2348
2349 * dwarf2read.c (struct function_range): New.
2350 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
2351 (check_cu_functions): New.
2352 (read_file_scope): Initialize global function lists.
2353 Call dwarf_decode_line after processing children.
2354 (read_func_scope): Add to global function list.
2355 (dwarf_decode_lines): Call check_cu_functions everywhere
2356 record_line is called. Call record_line with a linenumber
2357 of 0 to mark sequence ends.
2358
7b3fabf0
ML
23592002-04-04 Michal Ludvig <mludvig@suse.cz>
2360
361d1df0 2361 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
2362 change sync with glibc.
2363
bce58c09
JB
23642002-04-03 Jim Blandy <jimb@redhat.com>
2365
2366 * configure.in: Call AC_C_INLINE.
2367 * configure: Regenerated.
361d1df0 2368
2fccf04a
DJ
23692002-04-01 Daniel Jacobowitz <drow@mvista.com>
2370
2371 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
2372 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
2373
2d1bfe2e
MK
23742002-03-31 Mark Kettenis <kettenis@gnu.org>
2375
a5941fbf
MK
2376 * NEWS: Mention gcore support on FreeBSD/i386.
2377
a90cd31d
MK
2378 * fbsd-proc.c: New file.
2379 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
2380 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
2381
2d1bfe2e
MK
2382 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
2383 while statement.
2384
9eb6e5a1
JB
23852002-03-29 Jim Blandy <jimb@redhat.com>
2386
2387 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
2388 unescaped newlines in string literals, but newer ones don't. So
2389 escape them.
2390
f02df580
MS
23912002-03-26 Michael Snyder <msnyder@redhat.com>
2392 Andrew Cagney <cagney@redhat.com>
2393
361d1df0 2394 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
2395 restore file to memory.
2396 * cli/cli-dump.h: New file.
2397 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 2398 * NEWS: Mention new commands.
f02df580 2399
109f874e
MS
24002002-03-28 Michael Snyder <msnyder@redhat.com>
2401
2402 * symfile.c (symbol_file_add): Move test for null symbols to later.
2403
520f6ade
AC
24042002-03-27 Andrew Cagney <ac131313@redhat.com>
2405
2406 From veksler at il.ibm.com:
2407 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
2408 the xstrduped original path.
2409 Fix PR gdb/417.
2410
d4654627
MS
24112002-03-27 Michael Snyder <msnyder@redhat.com>
2412
2413 * breakpoint.c (_initialize_breakpoint): Clean up help string.
2414 * infcmd.c (_initialize_infcmd): Ditto.
2415 * language.c (_initialize_language): Ditto.
2416 * symfile.c (_initialize_symfile): Ditto.
2417 * top.c (_init_main): Ditto.
2418 * cli/cli-cmds.c (init_cli_cmds): Ditto.
2419
6be8bc0c
EZ
24202002-03-27 Elena Zannoni <ezannoni@redhat.com>
2421
2422 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
2423 vector registers handling.
2424 (skip_prologue): Handle new AltiVec instructions. Fill in new
2425 fields of frame data.
2426 (frame_get_saved_regs): Fill in information for AltiVec registers.
2427
12af6855
JB
24282002-03-27 Jim Blandy <jimb@redhat.com>
2429
2430 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
2431 a function; leave this macro here to invoke that function.
2432 (symbol_init_mangled_name): Declaration for that function.
2433 * symtab.c (symbol_init_mangled_name): New function.
2434
dc672865
AC
24352002-03-27 Andrew Cagney <ac131313@redhat.com>
2436
2437 * valarith.c: Replace strerror with safe_strerror.
2438 * tracepoint.c: Ditto.
2439 * lin-lwp.c: Ditto.
2440 * go32-nat.c: Ditto.
2441 * inflow.c: Ditto.
2442 * gnu-nat.c: Ditto.
2443
d96429cd
AS
24442002-03-27 Andreas Schwab <schwab@suse.de>
2445
2446 * event-top.c (command_line_handler): Remove useless if.
2447
7e336ba1
AJ
24482002-03-27 Andreas Jaeger <aj@suse.de>
2449
2450 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
2451 comment.
2452
de220d0f
ML
24532002-03-27 Michal Ludvig <mludvig@suse.cz>
2454
2455 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
2456 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
2457 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
2458 (x86_64_linux_dr_get_status, supply_gregset),
2459 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
2460 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
2461 (x86_64_register_info_table): Add.
2462 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
2463 (x86_64_register_raw_size, x86_64_register_virtual_type),
2464 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
2465 general x86_64_register_info_table.
2466 (i386_gdbarch_init): gdbarch_register_bytes is now set
2467 dynamicaly during initialization.
2468 * regformats/reg-x86-64.dat: Synced with changes to registers above.
2469 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 2470
0e98d0a7
DJ
24712002-03-27 Daniel Jacobowitz <drow@mvista.com>
2472
2473 * gdbserver/server.c (main): Call target_signal_to_host_p
2474 and target_signal_to_host on signals received from the remote.
2475 * gdbserver/remote-utils.c (prepare_resume_reply): Call
2476 target_signal_from_host on signals sent to the remote.
2477 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
2478 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
2479
3130066b
DJ
24802002-03-27 Daniel Jacobowitz <drow@mvista.com>
2481
2482 * signals/signals.c: Include "server.h" in gdbserver build.
2483 (target_signal_from_name): Don't use STREQ.
2484 (_initialize_signals): Likewise. Don't include function in
2485 gdbserver build.
2486
9aedf4f4
DJ
24872002-03-27 Daniel Jacobowitz <drow@mvista.com>
2488
2489 * signals.c: Moved to...
2490 * signals/signals.c: Here.
7e336ba1 2491 * Makefile (signals.o): Update.
9aedf4f4 2492
3fa41cdb
JL
24932002-03-26 Jeff Law (law@redhat.com)
2494
2495 * somread.c (som_symtab_read): Remove some commented out code and
2496 updated related comments. Do not set the minimal symbol table to
2497 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
2498 in a dynamic executable.
2499 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
2500 where we are unable to find the minimal symbol for the given
2501 PC value.
2502
ee677e8d
MS
25032002-03-25 Jeff Law (law@redhat.com)
2504
2505 * linux-proc.c (read_mapping): Scan up to end of line for filename.
2506
e76e1718
ML
25072002-03-25 Michal Ludvig <mludvig@suse.cz>
2508
2509 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
2510
18a642a1
AC
25112002-03-23 Andrew Cagney <ac131313@redhat.com>
2512
2513 * command.h: Update copyright.
2514 (struct cmd_list_element): Replace definition with opaque
2515 declaration.
2516 (enum cmd_types): Document that it will eventually be moved to
2517 cli/cli-decode.h
2518 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
2519 (MALLOCED_REPLACEMENT): Delete macro.
2520 * Makefile.in (cli_decode_h): Add $(command_h).
2521 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 2522 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
2523 * completer.c: Include "cli/cli-decode.h".
2524 * maint.c: Include "cli/cli-decode.h".
2525 * cli/cli-decode.h: Include "command.h".
2526 (enum command_class): Delete.
2527 (enum cmd_types): Comment out.
2528 (enum cmd_auto_boolean): Delete.
2529 (enum var_types): Delete.
2530
b2875cc0
AC
25312002-03-23 Andrew Cagney <ac131313@redhat.com>
2532
2533 * cli/cli-decode.c: Include "gdb_assert.h".
2534 (add_set_or_show_cmd): New static function.
2535 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
2536 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
2537 all fields, such as func, from the set command.
2538
3b45974e
AC
25392002-03-23 Andrew Cagney <ac131313@redhat.com>
2540
2541 * MAINTAINERS (sh-elf): Change warning flag to -w.
2542
823ca731
AC
25432002-03-23 Andrew Cagney <cagney@redhat.com>
2544
2545 * defs.h (error): Add printf format attribute.
2546 * thread-db.c (thread_from_lwp): Fix error format string.
2547 * stack.c (parse_frame_specification): Ditto.
2548 * cli/cli-decode.c (undef_cmd_error): Ditto.
2549 * scm-lang.c (scm_lookup_name): Ditto.
2550 * tracepoint.c (trace_error): Ditto.
2551 * remote-utils.c (usage): Ditto.
2552 * remote.c (compare_sections_command): Ditto.
2553 Fix PR gdb/328.
2554
0e101458
AC
25552002-03-22 Andrew Cagney <ac131313@redhat.com>
2556
2557 * gdbtypes.c (append_composite_type_field): New function.
2558 (init_composite_type): New function.
2559 * gdbtypes.h (append_composite_type_field): Declare.
2560 (init_composite_type): Ditto.
2561
8e0662df
EZ
25622002-03-22 Elena Zannoni <ezannoni@redhat.com>
2563
2564 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 2565 function.
8e0662df
EZ
2566 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
2567 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
2568 structure returning convention for SYSV ABI case, but not
2569 for GNU/Linux, FreeBSD, or NetBSD.
2570
3121eff0
DJ
25712002-03-22 Daniel Jacobowitz <drow@mvista.com>
2572
2573 * symtab.h (lookup_block_symbol): Add mangled_name argument
2574 to prototype.
2575
2576 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
2577 with new mangled_name argument.
2578 * linespec.c (decode_line_1): Likewise.
2579 * valops (value_of_this): Likewise.
2580 * symtab.c (lookup_transparent_type): Likewise.
2581 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
2582 (lookup_symbol): If we are given a mangled name, pass it down
2583 to lookup_symbol_aux.
2584 (lookup_block_symbol): If we are given a mangled name to check
2585 against, only return symbols which match it.
2586
349b409f
CF
25872002-03-22 Christopher Faylor <cgf@redhat.com>
2588
2589 * win32-nat.c (child_create_inferior): Check for proper shell to use
2590 here, in case the user changes it on the fly.
2591 (_initialize_inftarg): Remove shell path considerations.
2592
2a873819
EZ
25932002-03-21 Elena Zannoni <ezannoni@redhat.com>
2594
2595 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
2596 for gdbarch_max_register_raw_size and max_register_virtual_size.
2597 Adjust copyright year.
2598
a1b9830c
DJ
25992002-03-21 Daniel Jacobowitz <drow@mvista.com>
2600
2601 * dbxread.c (process_one_symbol): Extend the first N_SLINE
2602 in a function to cover the entire beginning of the function
2603 as well if it does not already.
2604
8b5790f2
TR
26052002-03-21 Tom Rix <trix@redhat.com>
2606
2607 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
2608 (rs6000_ptrace64): Renamed from ptrace64.
2609
bdbe5747
MH
26102002-03-20 Martin M. Hunt <hunt@redhat.com>
2611
2612 * gdbserver/remote-utils.c (remote_open): Don't call
2613 getprotobyname, we're all using TCP here so just use
2614 IPPROTO_TCP.
7e336ba1 2615 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
2616
26172002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 2618
bdbe5747
MH
2619 * regcache.c (_initialize_regcache): No need to call
2620 build_regcache() at this time; it gets called whenever
2621 the gdbarch changes.
2622
7781cd62
DB
26232002-03-20 David O'Brien <obrien@FreeBSD.org>
2624
2625 * sparc-nat.c: Include sys/param.h where possible.
2626
f65ca430
DJ
26272002-03-20 Daniel Jacobowitz <drow@mvista.com>
2628
2629 Fix PR gdb/422.
2630 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
2631 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
2632 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
2633 complex types.
2634 * stabsread.c (rs6000_builtin_type): Likewise.
2635 (read_sun_floating_type): Likewise.
2636
0c867556
PS
26372002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2638
2639 * stabsread.c (read_member_functions): Remove skip code for duplicate
2640 constructor/destructor methods. Use standard parsing for these
2641 methods and just do not chain them to the list of methods after
2642 parsing.
2643
12b9c64f
AO
26442002-03-19 Alexandre Oliva <aoliva@redhat.com>
2645
2646 * coffread.c: Remove redundant static declarations. Replace
2647 occurrences of `PTR' with `void *'.
2648 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
2649 * top.h (quit_cover): Likewise.
2650 * defs.h (catch_errors): Likewise.
2651
349c5d5f
AC
26522002-03-18 Andrew Cagney <ac131313@redhat.com>
2653
2654 * defs.h (XMALLOC): Define.
2655 * gdb-events.sh (XMALLOC): Delete macro.
2656 * gdb-events.c, gdb-events.h: Regenerate.
2657 * gdbarch.sh (XMALLOC): Delete macro.
2658 * gdbarch.c: Regenerate.
2659 * serial.c (XMALLOC): Delete macro.
2660 * ui-file.c (XMALLOC): Ditto.
2661 * ser-unix.h (XMALLOC): Ditto.
2662 * sh-tdep.c (XMALLOC): Ditto.
2663 * ui-out.c (XMALLOC): Ditto.
2664 * utils.c (XMALLOC): Ditto.
2665 * i386-tdep.c (XMALLOC): Ditto.
2666 * gdb-events.c (XMALLOC): Ditto.
2667 * d10v-tdep.c (XMALLOC): Ditto.
2668 * cli-out.c (XMALLOC): Ditto.
2669
2670 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
2671 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
2672 * ui-file.c, ui-out.c: Ditto.
2673
7d0766f3
AC
26742002-03-18 Andrew Cagney <ac131313@redhat.com>
2675
2676 * command.h (struct cmd_list_element): Add field context.
2677 (set_cmd_context, get_cmd_context): Declare.
2678 * cli/cli-decode.h: Ditto.
2679 * cli/cli-decode.c (get_cmd_context): New function.
2680 (set_cmd_context): New function.
2681 (add_cmd): Initialize context.
2682 Part of fixing PR gdb/145 and PR gdb/146.
2683
5913bcb0
AC
26842002-03-17 Andrew Cagney <ac131313@redhat.com>
2685
1868c04e
AC
2686 * cli/cli-decode.c (cmd_type): New function.
2687 * command.h (cmd_type): Declare.
2688 * infrun.c (set_schedlock_func): Call function cmd_type.
2689 * kod.c (kod_set_os): Call cmd_type.
2690 * cris-tdep.c (cris_version_update): Use function cmd_type.
2691 (cris_mode_update, cris_abi_update): Ditto.
2692
5913bcb0
AC
2693 * command.h: (execute_cmd_post_hook): Declare.
2694 (execute_cmd_pre_hook): Declare.
2695 * cli/cli-script.c (clear_hook_in_cleanup): New function.
2696 (execute_cmd_post_hook, execute_cmd_pre_hook): New
2697 functions. Execute pre/post hook while ensuring that afterwords
2698 hook_in is cleared.
2699 * top.c (execute_command): Use execute_cmd_post_hook, and
2700 execute_cmd_pre_hook to execute pre/post commands.
2701 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
2702 hook_stop_stub.
2703 (hook_stop_stub): Call execute_cmd_pre_hook.
2704
b51450c9
AC
27052002-03-17 Andrew Cagney <ac131313@redhat.com>
2706
2707 * kod.c (kod_set_os): Revert previous change. Is called by ``info
2708 set'' and this leads to a core dump. Move xstrdup of
2709 operating_system to after check that it is not NULL.
2710
f66c9f11
AC
27112002-03-17 Andrew Cagney <ac131313@redhat.com>
2712
8e694ecf
AC
2713 * kod.c (kod_set_os): Remove unnecessary check that
2714 ``command->type'' is set_cmd.
2715
f66c9f11
AC
2716 * valprint.c (set_input_radix): Use input_radix.
2717 (set_output_radix): Use output_radix.
2718 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
2719 isn't reverted.
2720
9d01611c
AC
27212002-03-16 Andrew Cagney <ac131313@redhat.com>
2722
2723 * value.h (struct value): Delete field ``substring_addr''. Change
2724 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
2725 force_core_addr_align and force_pointer_aligh.
2726
2727 * value.h (struct value): Fix typo in above change.
9d01611c 2728
4156bb53
PS
27292002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2730
2731 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
2732 to fix internal_error from ``maintenance print architecture''.
2733
0e5e3ea6
PS
27342002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2735
2736 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
2737 for gcc versions after gcc-2.8.1.
2738
9b013045
PS
27392002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2740
2741 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
2742 for method resolution. Restore adjustment of ``this'' pointer after
2743 calling value_struct_elt, which was accidentally removed during the
2744 HP merge.
2745
376c9600
AC
27462002-03-15 Andrew Cagney <ac131313@redhat.com>
2747
2748 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
2749 value_of_register.
2750 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
2751 get_saved_register.
2752 * value.h (value_of_register): Update.
2753
a4db0f07
RH
27542002-03-14 Richard Henderson <rth@redhat.com>
2755
2756 * configure.in: Detect declaration for canonicalize_file_name.
2757 * utils.c (canonicalize_file_name): Declare, if needed.
2758 (gdb_realpath): Prefer realpath if available and usable.
2759 * config.in, configure: Rebuild.
2760
96383835
RH
27612002-03-14 Richard Henderson <rth@redhat.com>
2762
2763 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
2764 a constant array bound.
2765
2766 * MAINTAINERS: Add myself to write-after-approval.
2767
75245b24
MS
27682002-03-14 Michael Snyder <msnyder@redhat.com>
2769
2770 * symfile.c (syms_from_objfile): Return immediately if no syms.
2771 (symbol_file_add): Return immediately if no syms.
2772 (find_sym_fns): Return immediately if no syms.
2773
e641a1ca
ML
27742002-03-13 Michal Ludvig <mludvig@suse.cz>
2775
2776 * gdbserver/remote-util.c (remote_open): Print remote-side's
2777 IP address when remote debugging over the network.
7e336ba1 2778
df08bfec
DB
27792002-03-12 David O'Brien <obrien@FreeBSD.org>
2780
2781 * config/sparc/fbsd.mh: Fix copyright.
2782 * config/sparc/fbsd.mt: Likewise.
2783
9a57864f
RE
27842002-03-11 Richard Earnshaw <rearnsha@arm.com>
2785
2786 * MAINTAINERS: Fix typo in name of gdb warnings option.
2787 (x86-64): Fix formating so that this can be parsed by awk.
2788
dd7bf85e
DJ
27892002-03-10 Daniel Jacobowitz <drow@mvista.com>
2790
2791 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
2792 * defs.h: Include "gdb/signals.h".
2793 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
2794
33a0a2ac
ML
27952002-03-10 Michal Ludvig <mludvig@suse.cz>
2796
2797 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 2798 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
2799 from x86-64-tdep.h
2800
dd824b04
DJ
28012002-03-10 Daniel Jacobowitz <drow@mvista.com>
2802 Don Howard <dhoward@redhat.com>
2803
2804 * mips-tdep.c (ST0_FR): Define.
2805 (mips2_fp_compat): New function, temporarily disabled.
2806 (mips_read_fp_register_single): New function.
2807 (mips_read_fp_register_double): New function.
2808 (mips_print_register): Use them.
2809 (do_fp_register_row): Likewise.
2810
6a41ff59
AC
28112002-03-09 Andrew Cagney <ac131313@redhat.com>
2812
2813 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
2814 approval''.
2815
4ea09c10
PS
28162002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2817
2818 * stabsread.c (read_member_functions): Fix is_stub test for
2819 static member functions, improve comment.
2820
6ccc741d
RE
28212002-03-07 Richard Earnshaw <rearnsha@arm.com>
2822
2823 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
2824 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
2825 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
2826 commands that set boolean values.
2827 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
2828 (arm_rdi_resume): Always initialize PC.
2829 (arm_rdi_open): Don't use rslt as a boolean.
2830 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
2831 (arm_rdi_fetch_registers, arm_rdi_store_registers)
2832 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
2833 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
2834
438013df
AO
28352002-03-06 Alexandre Oliva <aoliva@redhat.com>
2836
2837 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
2838 * configure: Rebuilt.
2839
70ed8774
SC
28402002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2841
2842 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
2843 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
2844
5ba2abeb
AC
28452002-03-06 Andrew Cagney <ac131313@redhat.com>
2846
2847 * cli/cli-decode.c (set_cmd_completer): New function.
2848 * command.h (set_cmd_completer): Declare.
2849 * cli/cli-decode.h (set_cmd_completer): Ditto.
2850
2851 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
2852 * cli/cli-cmds.c (init_cli_cmds): Ditto.
2853 * win32-nat.c (_initialize_inftarg): Ditto.
2854 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2855 * proc-api.c (_initialize_proc_api): Ditto.
2856 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
2857 * source.c (_initialize_source): Ditto.
2858 * exec.c (_initialize_exec): Ditto.
2859 * solib.c (_initialize_solib): Ditto.
2860 * top.c (init_main): Ditto.
2861 * tracepoint.c (_initialize_tracepoint): Ditto.
2862 * symfile.c (_initialize_symfile): Ditto.
2863 * printcmd.c (_initialize_printcmd): Ditto.
2864 * infcmd.c (_initialize_infcmd): Ditto.
2865 * corefile.c (_initialize_core): Ditto.
2866
f779ca99
AC
28672002-03-05 Andrew Cagney <ac131313@redhat.com>
2868
2869 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
2870
01a3934b
AC
28712002-03-05 Andrew Cagney <ac131313@redhat.com>
2872
2873 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
2874
37057839
AC
28752002-03-05 Andrew Cagney <ac131313@redhat.com>
2876
2877 * NEWS: Update headings, 5.2 has branched.
2878
c6ecbae5
DJ
28792002-03-04 Daniel Jacobowitz <drow@mvista.com>
2880
2881 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
2882 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
2883 (register_addr, REGISTER_RAW_SIZE): Likewise.
2884 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
2885 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
2886
e9f30c21
ML
28872002-03-03 Michal Ludvig <mludvig@suse.cz>
2888
2889 * MAINTAINERS (x86-64): Add myself.
2890 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
2891 changed value_ptr -> struct value *
2892
54394ac3
DB
28932002-03-01 David O'Brien <obrien@FreeBSD.org>
2894
2895 * configure.host (sparc64-*-freebsd): Add.
2896 * configure.tgt: Likewise.
2897 * config/sparc/fbsd.mh: New file.
2898 * config/sparc/fbsd.mt: Likewise.
2899 * config/sparc/nm-fbsd.h: Likewise.
2900 * config/sparc/tm-fbsd.h: Likewise.
2901
bfe95955
DJ
29022002-03-01 Daniel Jacobowitz <drow@mvista.com>
2903
2904 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
2905 regformats/reg-s390x.dat.
2906
f33c6cbf
AC
29072002-03-01 Andrew Cagney <ac131313@redhat.com>
2908
2909 * utils.c: Add FIXME explaining true/false problem.
2910
5ecaa7dd
AC
29112002-02-28 Andrew Cagney <ac131313@redhat.com>
2912
2913 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
2914
2a251cc2
MC
29152002-02-28 Michael Chastain <mec@shout.net>
2916
2917 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
2918
6a8031a3 29192002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
2920
2921 * gdbserver/linux-s390-low.c: New file.
2922 * regformats/reg-s390.dat: New file.
2923 * regformats/reg-s390x.dat: New file.
2924 * gdbserver/configure.srv: Add S/390.
2925 * gdbserver/Makefile.in: Add S/390.
2926 * configure.tgt: Enable gdbserver for S/390.
2927
ac469903
EZ
29282002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
2929
2930 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
2931 first line of the doc string for "info dos", except at the end of
2932 the sentence, since the short help stops at the first period.
2933
985cb1a3
JM
29342002-02-28 Jason Merrill <jason@redhat.com>
2935
2936 * dwarf2read.c (dwarf_cfi_name): Add new codes.
2937
c570663e
FF
29382002-02-27 Fred Fish <fnf@redhat.com>
2939
2940 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
2941 comment (dumy -> dummy).
2942
43630227
PS
29432002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2944
2945 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
2946
b84911e8
RB
29472002-02-27 Rodney Brown <rbrown64@csc.com.au>
2948
2949 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
2950
58caa3dc
DJ
29512002-02-27 Daniel Jacobowitz <drow@mvista.com>
2952
2953 * gdbserver/acconfig.h: New file.
2954 * gdbserver/i387-fp.c: New file.
2955 * gdbserver/i387-fp.h: New file.
2956 * gdbserver/linux-x86-64.c: New file.
2957 * regformats/reg-x86-64.dat: New file.
2958 * configure.tgt: Add x86_64-*-linux* gdbserver support.
2959 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
2960 * gdbserver/configure.in: Add support for regsets.
2961 * gdbserver/config.in: Regenerate.
2962 * gdbserver/configure: Regenerate.
2963 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
2964 * gdbserver/linux-low.h: New file.
2965 * gdbserver/linux-low.c: Include "linux-low.h". Add support
2966 for regsets.
2967 * gdbserver/linux-arm-low.c: Include "linux-low.h".
2968 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
2969 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
2970 * gdbserver/linux-mips-low.c: Include "linux-low.h".
2971 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
2972 * gdbserver/linux-sh-low.c: Include "linux-low.h".
2973 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
2974 "i387-fp.h". Add PTRACE_GETREGS and friends.
2975 * gdbserver/regcache.c (supply_register): New function.
2976 (supply_register_by_name): New function.
2977 (collect_register): New function.
2978 (collect_register_by_name): New function.
2979
93652174
DJ
29802002-02-27 Daniel Jacobowitz <drow@mvista.com>
2981
2982 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
2983 (config.status): Add configure.srv dependency.
2984 (server_h): Add config.h dependency.
2985
a02e4a61
DJ
29862002-02-27 Daniel Jacobowitz <drow@mvista.com>
2987
2988 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
2989 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
2990 * gdbserver/configure.srv: Change i386-*-linux* to use
2991 reg-i386-linux.o.
2992
ce0eebec
AC
29932002-02-26 Andrew Cagney <ac131313@redhat.com>
2994
2995 * x86-64-tdep.c: Re-indent. Update copyright date.
2996
82dbc5f7
AC
29972002-02-26 Andrew Cagney <ac131313@redhat.com>
2998
2999 From Michal Ludvig <mludvig@suse.cz>:
3000 * x86-64-tdep.c (value.h): Delete.
3001 (gdb_assert.h): Include.
3002 (x86_64_register_convert_to_virtual,
3003 x86_64_register_convert_to_raw ): Add check which lets only
3004 floating-point values to be converted.
3005 (value_push): Delete.
3006 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
3007 (i386_gdbarch_init): Number of register_bytes fixed.
3008
e4621584
AC
30092002-02-26 Andrew Cagney <ac131313@redhat.com>
3010
3011 * MAINTAINERS: Add x86-64 target.
3012
81a9a963
AC
30132002-02-26 Andrew Cagney <ac131313@redhat.com>
3014
3015 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
3016 * osfsolib.c (solib_map_sections): Ditto.
3017 * irix5-nat.c (solib_map_sections): Ditto.
3018 * corelow.c (gdb_check_format): Ditto.
3019 * symfile.c (symfile_bfd_open): Ditto.
3020 * solib.c (solib_map_sections): Ditto.
3021 Fix PR gdb/354.
7e336ba1 3022
0f017ab9
AC
30232002-02-26 Andrew Cagney <ac131313@redhat.com>
3024
3025 * remote.c (_initialize_remote): By default, disable ``e'' and
3026 ``E'' step out-of-range packets.
3027
75738c29
AS
30282002-02-26 Andreas Schwab <schwab@suse.de>
3029
3030 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
3031 m68k_linux_frame_saved_pc.
3032 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
3033 in_sigtramp.
3034 (SIGCONTEXT_PC_OFFSET): Remove.
3035 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
3036 m68k_linux_sigtramp_saved_pc): New functions.
3037 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
3038 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
3039 (UCONTEXT_PC_OFFSET): Define.
3040 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
3041 non-RT and RT signal trampolines.
3042
7e8ed687
RE
30432002-02-26 Richard Earnshaw <rearnsha@arm.com>
3044
3045 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
3046 (TARGET_NBPG, STACK_END_ADDR): Delete
3047 (VARIABLES_INSIDE_BLOCK): Delete.
3048
6972bc8b
AC
30492002-02-25 Andrew Cagney <ac131313@redhat.com>
3050
3051 * utils.c (perror_with_name): Make string parameter constant.
3052 (print_sys_errmsg): Ditto.
3053 (query): Ditto.
3054 * defs.h (perror_with_name): Update.
3055 (print_sys_errmsg): Update.
3056 (query): Update.
3057
aa32f823
DJ
30582002-02-25 Daniel Jacobowitz <drow@mvista.com>
3059
3060 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
3061 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
3062
19caaa45
PS
30632002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3064
3065 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
3066 if it already matches the current architecture from the exec file.
3067 Include arch-utils.h for gdbarch_info_init prototype.
3068 * Makefile.in (rs6000-nat.o): Update dependencies.
3069
d951901f
EZ
30702002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
3071
3072 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
3073 list of exported variables.
3074
7ea81414
DJ
30752002-02-24 Daniel Jacobowitz <drow@mvista.com>
3076
3077 * gdbserver/configure.srv: New file.
3078 * gdbserver/configure.in: Use configure.srv instead
3079 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
3080 from it.
3081 * gdbserver/configure: Regenerated.
3082 * gdbserver/terminal.h: New file.
3083 * gdbserver/Makefile.in: Update for configure changes. Remove
3084 more unneeded include paths.
3085
080fe24b
AC
30862002-02-24 Andrew Cagney <ac131313@redhat.com>
3087
3088 From wiz at danbala:
3089 * config/sparc/tm-sp64.h: Fix grammar and typos.
3090 Fix PR gdb/287.
3091
8605d56e
AC
30922002-02-24 Andrew Cagney <ac131313@redhat.com>
3093
3094 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
3095 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
3096 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
3097 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
3098 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
3099 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
3100 * s390-tdep.c: Ditto.
92362027
AC
3101 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
3102 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
3103 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
3104 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
3105 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
3106 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
3107 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
3108 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
3109 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
3110 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 3111 Fix PR gdb/378.
7e336ba1 3112
8ed32cc0
AC
31132002-02-23 Andrew Cagney <ac131313@redhat.com>
3114
a3007b6f
AC
3115 * lin-thread.c: Delete file.
3116 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
3117 to gdb_proc_service.h.
3118 * configure: Re-generate.
3119
50a9e2f1
AC
3120 * ocd.c (ocd_open): Do not try to open the "ocd" device.
3121 * serial.c (serial_open): Delete check for "ocd".
3122 Fix PR gdb/349.
3123
8b6e7932
AC
3124 * Makefile.in (linux-thread.o): Delete target.
3125 * linux-thread.c: Delete file.
3126
d155c46b
AC
3127 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
3128 renamed SH files to be consistent.
3129
8ed32cc0
AC
3130 * symtab.c (sort_search_symbols): Use xfree.
3131
0e18d038
RE
31322002-02-23 Richard Earnshaw <rearnsha@arm.com>
3133
3134 * arm-linux-tdep.c (arm_linux_init_abi): Register
3135 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
3136 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
3137 definition with undef, since we don't want the sysvr4 definition.
3138 (SKIP_TRAMPOLINE_CODE): Likewise.
3139
27aac7ff
AC
31402002-02-23 Andrew Cagney <ac131313@redhat.com>
3141
3142 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
3143
3144 * configure.in: (AC_CHECK_FUNCS) Added test for
3145 canonicalize_file_name Regenerated.
3146 * config.in, configure: Regenerated.
3147 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
3148 defined use canonicalize_file_name.
7e336ba1 3149
65a6e0ee
MC
31502002-02-23 Michael Chastain <mec@shout.net>
3151
3152 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
3153
47b95330
AC
31542002-02-23 Andrew Cagney <ac131313@redhat.com>
3155
3156 * README: Remove references to cygnus.com.
3157 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
3158 dot com'' form. Remove references to cygnus.com and sourceware.
3159
696f451b
AC
31602002-02-23 Andrew Cagney <ac131313@redhat.com>
3161
3162 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
3163 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
3164 1003.1-2001 no longer allows "head -1".
3165 * gdb/Makefile.in (version.c): Likewise.
3166 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
3167 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
3168 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
3169
bbaca940
AC
31702002-02-23 Andrew Cagney <ac131313@redhat.com>
3171
3172 * cli/cli-decode.c (cmd_cfunc_eq): New function.
3173 * command.h (cmd_cfunc_eq): Declare.
3174 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
3175
3176 * cli/cli-cmds.h (is_complete_command): Change parameter to a
3177 ``struct cmd_list_element *''.
3178 * cli/cli-cmds.c (is_complete_command): Update. Use
3179 cmd_cfunc_eq.
3180 * top.c (execute_command): Pass the command to
3181 is_complete_command.
3182 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
3183
b8b8b047
AC
31842002-02-23 Andrew Cagney <ac131313@redhat.com>
3185
3186 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
3187 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
3188 architecture defines.
3189 * s390-tdep.c (s390_gdbarch_init): Likewise.
3190
19d3fc80
RE
31912002-02-23 Richard Earnshaw <rearnsha@arm.com>
3192
3193 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
3194 (arm_linux_push_arguments): Likewise.
3195 (arm_linux_init_abi): Register them. Also register linux-specific
3196 call_dummy_words.
3197 (find_minsym_and_objfile): Use strcmp, not STREQ.
3198 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
3199 (arm_linux_call_dummy_words): Delete declaration.
3200 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
3201 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
3202 declarations.
3203 (LOWEST_PC): Delete.
3204
3ab13650
PS
32052002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3206
3207 * maint.c (print_section_info): Do not prepend `0x' to filepos
3208 output, it will be handled by local_hex_string_custom.
3209
19d3fc80 32102002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
3211
3212 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
3213 (store_newfpe_double, store_newfpe_extended, store_fpregister)
3214 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
3215
d85a5daf
JB
32162002-02-22 Jim Blandy <jimb@redhat.com>
3217
3218 Indicate that the bcache functions don't change the strings
3219 they're passed.
3220 * bcache.h (bcache, hash): Add `const' keywords to declarations.
3221 * bcache.c (bcache, hash): Add `const' keywords to definitions.
3222
eeb25b8a
PM
32232002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
3224
3225 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
3226
6badb179
CF
32272002-02-21 Christopher Faylor <cgf@redhat.com>
3228
3229 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
3230 find the complete path to a loaded DLL.
3231
e8717518
FF
32322002-02-21 Fred Fish <fnf@redhat.com>
3233
3234 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
3235 that marks the end of the range of a function, enter a line number
3236 entry that has a line number of zero and a PC offset that matches
3237 the end of the function. This starts a range of PC's for which no
3238 line number information is known.
3239 * symtab.c (find_pc_sect_line): If our best fit is in a range of
3240 PC's for which no line number info is found (line number is zero)
3241 then we didn't find any valid line information.
3242 * symtab.h: Document use of zero line number entry.
3243
9abe5450
EZ
32442002-02-21 Elena Zannoni <ezannoni@redhat.com>
3245
3246 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
3247 (have_ptrace_getvrregs): Define for run time checks.
3248 (gdb_vrregset_t): New type for Altivec register handling.
3249 (fetch_register, store_register): Fetch/store altivec register
3250 when needed.
3251 (fetch_altivec_register, store_altivec_register): New functions.
3252 (supply_vrregset, fill_vrregset): New functions.
3253 (fetch_altivec_registers, store_altivec_registers): New functions.
3254 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
3255 registers as well.
3256
aaa38bb5
AJ
32572002-02-21 Jiri Smid <smid@suse.cz>
3258
3259 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
3260
b34db576
RE
32612002-02-21 Richard Earnshaw <rearnsha@arm.com>
3262
3263 * Makefile.in (armnbsd-nat.o): Update dependencies.
3264 * armnbsd-nat.c (supply_gregset): New function. Common code to
3265 supply the integer register set.
3266 (supply_fparegset): New function. Similar for FPA registers.
3267 (fetch_regs, fetch_fp_regs): Use them.
3268 (fetch_core_registers): Likewise.
3269 (fetch_elfcore_registers): New function.
3270 (arm_netbsd_elfcore_fns): New core-file type specification.
3271 (_initialize_arm_netbsd_nat): Register it.
3272
3e56fc4b
RE
32732002-02-21 Richard Earnshaw <rearnsha@arm.com>
3274
3275 * armnbsd-nat.c: Include gdbcore.h.
3276 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
3277 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
3278 'void' to declaration, to shut up ARI.
3279 (fetch_core_registers): Make static. Rewrite using supply_register.
3280 (arm_netbsd_core_fns): New core-file type specification.
3281 (_initialize_arm_netbsd_nat): New function.
3282
097f6b0b
CF
32832002-02-21 Christopher Faylor <cgf@redhat.com>
3284
3285 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
3286 value.
3287
c914e0cc
CF
32882002-02-20 Christopher Faylor <cgf@redhat.com>
3289
3290 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
3291 fails.
3292
385fa495
DJ
32932002-02-20 Daniel Jacobowitz <drow@mvista.com>
3294
3295 * jv-exp.y (parse_number): Change type of implicit longs
3296 to builtin_type_uint64.
3297
e5f1222d
DJ
32982002-02-20 Daniel Jacobowitz <drow@mvista.com>
3299
3300 * gdbserver/linux-low.c (mywait): Change argument to waitpid
3301 to be an integer instead of a `union wait'.
3302
75c9abc6
DJ
33032002-02-20 Daniel Jacobowitz <drow@mvista.com>
3304
3305 * mips-linux-nat.c: Call the operating system GNU/Linux.
3306 * mips-linux-tdep.c: Likewise.
3307 * mips-tdep.c: Likewise.
3308
551792a5
DJ
33092002-02-20 Daniel Jacobowitz <drow@mvista.com>
3310
3311 Fix PR gdb/265.
3312 * jv-exp.y (parse_number): Handle 64-bit integers.
3313
ee6e2b82
DJ
33142002-02-20 Daniel Jacobowitz <drow@mvista.com>
3315
3316 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
3317 AC_STDC_HEADERS to AC_HEADER_STDC.
3318 * gdbserver/configure: Regenerated.
3319
a48442a0
RE
33202002-02-20 Richard Earnshaw <rearnsha@arm.com>
3321
3322 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
3323 is defined.
3324 * sparc-tdep.c (get_longjmp_target): Likewise.
3325
fe419ffc
RE
33262002-02-20 Richard Earnshaw <rearnsha@arm.com>
3327
3328 * News: Add news about ARM and Multi-arch. Mention the new target
3329 arm*-*-netbsd*.
3330
5832ed7e
JB
33312002-02-19 Jim Blandy <jimb@redhat.com>
3332
3333 * stabsread.c (error_type_complaint): Improve error message.
3334
84563040
DJ
33352002-02-19 Daniel Jacobowitz <drow@mvista.com>
3336
3337 * gdbserver/README: Update documentation.
3338 * gdbserver/configure.in: Update configury to match documentation.
3339 * gdbserver/Makefile.in: Likewise.
3340 * gdbserver/configure: Regenerated.
3341 * gdbserver/aclocal.m4: New file, generated by aclocal.
3342 * gdbserver/config.in: New file, generated by autoheader.
3343
375fd65b
RE
33442002-02-19 Richard Earnshaw <rearnsha@arm.com>
3345
3346 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
3347 armnbsd-nat.c.
3348
08216dd7
RE
33492002-02-19 Richard Earnshaw <rearnsha@arm.com>
3350
3351 * arm-tdep.h (enum arm_float_model): New enum.
3352 (struct gdbarch_tdep): Add fp_model.
3353 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
3354 up floating-point conversions until we know the floating-point model
3355 in use by the inferior. Don't complain about being unable to
3356 determine the ABI of the inferior when we don't have one.
3357 (arm_extract_return_value): Support different floating-point models.
3358 (arm_store_return_value): Likewise.
aaa38bb5 3359 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
3360 ARM_FLOAT_SOFT.
3361 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
3362
65d6d66a
PS
33632002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3364
3365 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
3366 of ``current_gdbarch''.
3367
47221191
RE
33682002-02-19 Richard Earnshaw <rearnsha@arm.com>
3369
3370 * armnbsd-nat.c : ANSIfy all function declarations.
3371 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
3372 (fetch_inferior_registers): Re-implement in terms of above.
3373 (store_register, store_regs, store_fp_register, store_fp_regs): New.
3374 (store_inferior_registers): Re-implement in terms of above.
3375
fdf39c9a
RE
33762002-02-19 Richard Earnshaw <rearnsha@arm.com>
3377
aaa38bb5 3378 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
3379 kernel.
3380 * arm-linux-tdep.c: Likewise.
3381 * config/arm/tm-linux.h: Likewise.
3382
93247f88
RE
33832002-02-19 Richard Earnshaw <rearnsha@arm.com>
3384
3385 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
3386 * config/arm/nbsd.mt (TM_FILE): Delete.
3387 * config/arm/tm-nbsd.h: Delete.
3388
d7b486e7
RE
33892002-02-19 Richard Earnshaw <rearnsha@arm.com>
3390
3391 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
3392 Initialize CALL_DUMMY_LENGTH.
3393
41d39a95
RE
33942002-02-19 Richard Earnshaw <rearnsha@arm.com>
3395
3396 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
3397 function.
3398 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 3399 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
3400 defines one thing and that is incorrect for this port.
3401 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
3402
e1195560
PM
34032002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3404
3405 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
3406
c1748f97
PM
34072002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3408
3409 * win32-nat.c (display_selector): New function. Displays information
3410 about the information returned by GetThreadSelectorEntry API function.
3411 (display_selectors): New function. Displays the infomation of
3412 the selector given as argument, or of CS, DS ans FS selectors
3413 if no argument is given.
3414 ( _initialize_inftarg): Add "w32" as info prefix command.
3415 Add "info w32 selector" as command calling display_selectors.
3416
e41e6bbf
PM
34172002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
3418
3419 * i386-tdep.c (get_longjmp_target): Fix compilation failure
3420 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
3421 if not defined.
3422
0d3a9f48
RE
34232002-02-18 Richard Earnshaw <rearnsha@arm.com>
3424
3425 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
3426
3fb4b924
RE
34272002-02-18 Richard Earnshaw <rearnsha@arm.com>
3428
3429 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
3430 (arm_fix_call_dummy): Call it.
3431 (arm_call_dummy_breakpoint_offset): Delete.
3432 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
3433 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
3434
7f55af32
AC
34352002-02-18 Andrew Cagney <ac131313@redhat.com>
3436
3437 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
3438 Default to func_frame_chain_valid.
3439 * gdbarch.h, gdbarch.c: Re-generate.
3440 * frame.h (FRAME_CHAIN_VALID): Delete definition.
3441
05f13b9c
EZ
34422002-02-18 Elena Zannoni <ezannoni@redhat.com>
3443
3444 * ppc-linux-nat.c: Update copyright.
3445 (fetch_register, store_register): Add tid parameter, don't compute
3446 tid here.
3447 (fetch_ppc_registers, store_ppc_registers): Add tid
3448 parameter. Pass it along to callees.
3449 (fetch_inferior_registers, store_inferior_registers): Compute tid
3450 here, and pass it to calleed functions.
3451 (fill_gregset, supply_fpregset): Clean up formatting.
3452
d7afb4c9
RE
34532002-02-18 Richard Earnshaw <rearnsha@arm.com>
3454
3455 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
3456 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
3457
9df628e0
RE
34582002-02-18 Richard Earnshaw <rearnsha@arm.com>
3459
3460 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
3461 * gdbarch.c gdbarch.h: Regenerate.
3462 * breakpoint.c (create_longjmp_breakpoint): Always compile this
3463 function.
3464 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
3465 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
3466 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
3467
3468 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
3469 * arm-tdep.c (arm_get_longjmp_target): New function.
3470 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
3471 this to a positive value register arm_get_longjmp_target as the
3472 longjmp handler.
3473 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
3474 (arm_linux_init_abi): Set up longjmp description in tdep.
3475 * armnbsd-nat.c (get_longjmp_target): Delete.
3476 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
3477 description in tdep.
3478 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
3479 (get_longjmp_target): Delete declaration.
3480 (GET_LONGJMP_TARGET): Delete.
3481 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
3482 (GET_LONGJMP_TARGET): Delete.
3483
57bc8964
KB
34842002-02-17 Kevin Buettner <kevinb@redhat.com>
3485
3486 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
3487 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
3488 of ``current_gdbarch''.
3489
83d31a92
TT
34902002-02-17 Tom Tromey <tromey@redhat.com>
3491
3492 * cli/cli-cmds.c (compare_strings): New function.
3493 (complete_command): Only print each unique item once.
3494 * completer.h (complete_line): Declare.
3495 * completer.c (complete_line): New function.
3496 (line_completion_function): Use it.
3497
17ef5d92
AC
34982002-02-16 Andrew Cagney <ac131313@redhat.com>
3499
3500 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
3501 * gdbarch.h, gdbarch.c: Re-generate.
3502
491b8946
DJ
35032002-02-16 Daniel Jacobowitz <drow@mvista.com>
3504
3505 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
3506
35072002-02-16 Daniel Jacobowitz <drow@mvista.com>
3508
3509 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
3510 * valops.c (value_arg_coerce): Don't take the address of a reference
3511 to convert an argument to a reference.
3512
dfe7f3ac
CF
35132002-02-15 Christopher Faylor <cgf@redhat.com>
3514
3515 * win32-nat.c (get_image_name): New function.
3516 (handle_load_dll): Use get_image_name function.
3517 (get_child_debug_event): Avoid registering debug events until possibly
3518 execed process is started.
3519 (child_create_inferior): Allow invocation via shell so that command
3520 line redirection, etc. works ok.
3521 (_initialize_inftarg): Add new command: "set shell" to control whether
3522 a shell is used to start a process.
3523
1d33e73a
DJ
35242002-02-15 Daniel Jacobowitz <drow@mvista.com>
3525
3526 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
3527 instead of find_register_by_number.
3528 (cannot_store_register): Likewise.
3529
48cd0caa
PM
35302002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
3531
aaa38bb5 3532 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
3533 fprintf_unfiltered (gdb_stderr, ...).
3534
8656e7d8
DJ
35352002-02-15 Daniel Jacobowitz <drow@mvista.com>
3536
3537 * gdbserver/gdbserver.1: Document --attach.
3538
66e810cd
RE
35392002-02-15 Richard Earnshaw <rearnsha@arm.com>
3540
3541 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
3542 descriptions.
3543 * arm-tdep.c (arm_default_arm_le_breakpoint)
3544 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
3545 (arm_default_thumb_be_breakpoint): New. Initialize them from
3546 traditional breakpoint defines.
3547 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
3548 (arm_gdbarch_init): Initialize new breakpoint variables.
3549 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
3550 (arm_linux_init_abi): Initialize linux-specific breakpoint.
3551 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
3552 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
3553 code out to ...
3554 (arm_netbsd_init_abi_common): ... here; new function.
3555 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
3556 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
3557 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
3558 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
3559
97e03143
RE
35602002-02-15 Richard Earnshaw <rearnsha@arm.com>
3561
3562 * arm-tdep.h (enum arm_abi): New enum.
3563 (struct gdbarch_tdep): New structure.
3564 (LOWEST_PC): Provide a default.
3565 (arm_gdbarch_register_os_abi): Declare new function.
3566 * arm-tdep.c (arm_abi_names): New array.
3567 (process_note_abi_tag_sections): New function.
3568 (get_elfosabi): New function.
3569 (arm_gdbarch_register_os_abi): New function.
3570 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
3571 support for that ABI has been built in, then call the appropriate
3572 configuration routine. Use gdbarch_num_regs() to get the number
3573 of registers.
3574 (arm_dump_tdep): New function.
3575 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
3576 place-holder functions.
3577 (_initialize_arm_tdep): Register them.
3578 * config/arm/tm-arm.h (LOWEST_PC): Delete.
3579
3580 * armnbsd-tdep.c: New file.
3581 * Makefile.in (armnbsd-tdep.o): Add dependencies.
3582 * config/arm/nbsd.mt (TDEPFILES): Add it.
3583 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
3584
3585 * armnbsd-nat.c: Include regcache.h.
3586 * Makefile.in (armnbsd-nat.o): Update dependency list.
3587
3588 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
3589
ad68be46
DJ
35902002-02-14 Daniel Jacobowitz <drow@mvista.com>
3591
3592 * gdbserver/Makefile.in: Fix typos in target rules.
3593
003d6d1d
DJ
35942002-02-14 Daniel Jacobowitz <drow@mvista.com>
3595
aaa38bb5 3596 Fix part of PR gdb/267.
003d6d1d
DJ
3597 * linespec.c (find_methods): Handle constructors specially for now.
3598
6b230f1b
CV
35992002-02-14 Corinna Vinschen <vinschen@redhat.com>
3600
3601 * arm-tdep.c (arm_push_arguments): Eliminate special float type
3602 handling.
3603 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
3604 standard_coerce_float_to_double().
3605
1ea98d12
CF
36062002-02-14 Christopher Faylor <cgf@redhat.com>
3607
3608 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
3609 GDBINIT_FILENAME.
3610
dd47e6fd
EZ
36112002-02-14 Elena Zannoni <ezannoni@redhat.com>
3612
3613 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
3614 find_variant_by_name, because it confuses the multiarch
3615 framework. Return NULL if there isn't an architecture with the
3616 user supplied name, instead of forcing a different one without
3617 recording the change with the multiarch machinery.
3618 (find_variant_by_name): Delete.
3619
d7e39b9e
PS
36202002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3621
3622 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
3623 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
3624
76e42a4f
MH
36252002-02-13 Martin M. Hunt <hunt@redhat.com>
3626
aaa38bb5 3627 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
3628 print_frame_info_listing_hook, set current_source_symtab.
3629
0a30fbc4
DJ
36302002-02-14 Daniel Jacobowitz <drow@mvista.com>
3631
3632 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
3633 and remove unused $(INCLUDE_DIR).
3634 Add regcache.c to OBS.
3635 Add generated register protocol files to clean target.
3636 Update dependencies for new objects, obsolete old target code.
3637
3638 * gdbserver/linux-low.c: Remove all platform-specific code to
3639 new files. Remove various dead code. Update to use regcache
3640 functionality.
3641 * gdbserver/remote-utils.c (fromhex): Add return statement
3642 to quiet warning.
3643 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
3644 constant.
3645 (input_interrupt): Add integer parameter to match prototype
3646 of a signal handler.
3647 (outreg): Use register_data ().
3648 (prepare_resume_reply): Use gdbserver_expedite_regs.
3649 * gdbserver/server.c (main): Dynamically allocate own_buf because
3650 PBUFSIZ is no longer constant. Use registers_to_string () and
3651 registers_from_string ().
3652 * gdbserver/server.h: No longer include "defs.h". Add prototypes
3653 for error (), fatal (), and warning (). Update definition of
3654 PBUFSIZ to use regcache functionality. Add include guard.
3655 * gdbserver/utils.c (fatal): Add missing ``const''.
3656 (warning): New function.
3657
3658 * regformats/regdat.sh: Include "regcache.h" in generated files.
3659 Provide init_registers () function.
3660 * regformats/regdef.h: Add prototype for set_register_cache ().
3661 Add include guard.
3662
3663 * gdbserver/linux-arm-low.c: New file.
3664 * gdbserver/linux-i386-low.c: New file.
3665 * gdbserver/linux-ia64-low.c: New file.
3666 * gdbserver/linux-m68k-low.c: New file.
3667 * gdbserver/linux-mips-low.c: New file.
3668 * gdbserver/linux-ppc-low.c: New file.
3669 * gdbserver/linux-sh-low.c: New file.
3670
3671 * gdbserver/regcache.c: New file.
3672 * gdbserver/regcache.h: New file.
3673
3674 * gdbserver/low-linux.c: Removed obsolete file.
3675
4cc841d0
DJ
36762002-02-14 Daniel Jacobowitz <drow@mvista.com>
3677
3678 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
3679 * config/i386/linux.mt: Likewise.
3680 * config/ia64/linux.mt: Likewise.
3681 * config/m68k/linux.mh: Likewise.
3682 * config/powerpc/linux.mh: Likewise.
3683 * config/mips/linux.mt: Likewise.
3684
3685 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
3686
3687 * config/i386/i386lynx.mh: Mark gdbserver variables
3688 as (currently) obsolete for this target.
3689 * config/i386/nbsd.mt: Likewise.
3690 * config/i386/nbsdelf.mt: Likewise.
3691 * config/m32r/m32r.mt: Likewise.
3692 * config/m68k/m68klynx.mh: Likewise.
3693 * config/m68k/nbsd.mt: Likewise.
3694 * config/m68k/sun3os4.mh: Likewise.
3695 * config/mips/vr5000.mt: Likewise.
3696 * config/ns32k/nbsd.mt: Likewise.
3697 * config/pa/hppabsd.mh: Likewise.
3698 * config/pa/hppaosf.mh: Likewise.
3699 * config/powerpc/nbsd.mt: Likewise.
3700 * config/rs6000/rs6000lynx.mh: Likewise.
3701 * config/s390/s390.mt: Likewise.
3702 * config/s390/s390x.mt: Likewise.
3703 * config/sparc/sparclynx.mh: Likewise.
3704 * config/sparc/sun4os4.mh: Likewise.
3705 * config/i386/x86-64linux.mt: Likewise.
3706 * config/sparc/linux.mh: Likewise.
3707
a85f51e7
DJ
37082002-02-14 Daniel Jacobowitz <drow@mvista.com>
3709
3710 * configure.tgt: Configure gdbserver only for known working
3711 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
3712 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
3713 SUBDIRS if it is configured. Update comment for ${nativefile}.
3714 * configure: Regenerated.
3715
65554fef
MS
37162002-02-13 Michael Snyder <msnyder@redhat.com>
3717
670a52db
MS
3718 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
3719
6dbdc4a3
MS
3720 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
3721 (default_gcore_mach): Just return 0, work around a problem in bfd.
3722 (default_gcore_target): OK to return NULL if exec_bfd is null.
3723 (make_mem_sec): Use a cast, avoid a warning.
3724
3725 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 3726 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
3727 sizeof (host pointer) != sizeof (target pointer)).
3728 (procfs_make_note_section): Avoid overflow in psargs string.
3729
aaa38bb5 3730 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
3731 implementation return an error.
3732
37332002-02-13 Rodney Brown <rbrown64@csc.com.au>
3734
3735 * procfs.c (procfs_make_note_section): Provide a default definition
3736 (for alpha-dec-osf4.0f). Fix typos.
3737
1e4d76e7
EZ
37382002-02-13 Elena Zannoni <ezannoni@redhat.com>
3739
3740 * linux-proc.c: Add include of regcache.h.
3741 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
3742
b6d1a1d5
AC
37432002-02-13 Andrew Cagney <ac131313@redhat.com>
3744
3745 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
3746 * memattr.c (create_mem_region): Disallow useless empty region.
3747 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 3748 non-overlapping.
b6d1a1d5 3749
6c6ea35e
MC
37502002-02-13 Michael Chastain <mec@shout.net>
3751
3752 * defs.h: Kill CONST_PTR.
3753 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
3754 * c-lang.c (c_builtin_types): Likewise.
3755 * ch-lang.c (ch_builtin_types): Likewise.
3756 * f-lang.c (f_builtin_types): Likewise.
3757 * language.c (unknown_builtin_types): Likewise.
3758 * m2-lang.c (m2_builtin_types): Likewise.
3759 * p-lang.c (pascal_builtin_types): Likewise.
3760 * scm-lang.c (c_builtin_types): Likewise.
3761
3e0b0f48
KS
37622002-02-13 Keith Seitz <keiths@redhat.com>
3763
3764 * arm-tdep.h (arm_get_next_pc): Add declaration.
3765
67255d04
RE
37662002-02-13 Richard Earnshaw <rearnsha@arm.com>
3767
3768 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
3769 with other related struct-returning functions.
3770 (arm_extract_struct_value_address): New function.
3771 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
3772 initialize float_format, double_format and long_double_format as
3773 appropriate to the endianness of the target.
3774 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
3775 (arm_use_struct_convention): Delete declaration.
3776 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3777
079777f6
KS
37782002-02-13 Keith Seitz <keiths@redhat.com>
3779
3780 * defs.h (core_addr_to_string_nz): New function.
3781
34588f23
MK
37822002-02-13 Mark Kettenis <kettenis@gnu.org>
3783
3784 Apply missing bits of 2002-01-15 patch.
3785 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
3786 (fill_fpregset): Use i387_fill_fsave.
3787
49b563f9
KS
37882002-02-12 Keith Seitz <keiths@redhat.com>
3789
49b563f9
KS
3790 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
3791 (core_addr_to_string_nz): New function.
3792
aeb98c60
RE
37932002-02-11 Richard Earnshaw <rearnsha@arm.com>
3794
3795 * arm-linux-nat.c: Really include arm-tdep.h.
3796 * config/arm/tm-linux.h (struct type, struct value): Declare.
3797
65554fef
MS
37982002-02-11 Michael Snyder <msnyder@redhat.com>
3799
3800 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
3801 (gcore section): Ifdef for Solaris and Unixware only.
3802 (procfs_do_thread_registers): Unixware needs one lwpstatus
3803 per thread (not one prstatus or pstatus).
3804 (procfs_make_note_section): Iterate only over kernel threads (lwps),
3805 not over all gdb threads. For unixware, call elfcore_write_pstatus
3806 once before iterating over threads.
3807
34e8f22d
RE
38082002-02-11 Richard Earnshaw <rearnsha@arm.com>
3809
3810 * arm-tdep.h: New file.
3811 * arm-tdep.c: Include arm-tdep.h.
3812 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
3813 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
3814 (arm_print_float_info, arm_register_type, convert_to_extended)
3815 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
3816 (arm_extract_return_value, arm_register_name): Make static.
3817 (arm_software_single_step): Similarly. Fix types in declaration.
3818 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
3819 (arm_store_return_value, arm_store_struct_return): New functions.
3820 (arm_gdbarch_init): Register the above functions. Also register
3821 call_dummy_start_offset, sizeof_call_dummy_words,
3822 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
3823 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 3824 max_register_virtual_size, register_size. Set up
34e8f22d
RE
3825 prologue_cache.saved_regs here, rather than ...
3826 (_initialize_arm_tdep): ... here.
3827 * config/arm/tm-arm.h (struct type, struct value): Delete forward
3828 declarations.
3829 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
3830 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
3831 (arm_print_float_info, arm_register_type, convert_to_extended)
3832 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
3833 (arm_extract_return_value, arm_register_name): Delete declarations.
3834 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
3835 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
3836 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
3837 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
3838 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3839 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
3840 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
3841 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
3842 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
3843 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
3844 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
3845 (arm_get_next_pc): No-longer static -- these are needed by the RDI
3846 interface.
3847 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
3848 * remote-rdi.c remote-rdp.c: Likewise.
3849 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
3850 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
3851 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
3852 definition.
3853
3854 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
3855 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
3856 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
3857 from non-ARM_ prefixed definitions.
3858 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
3859 all uses of above.
3860 * remote-rdi.c remote-rdp.c: Likewise.
3861 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
3862
148754e5
RE
38632002-02-11 Richard Earnshaw <rearnsha@arm.com>
3864
3865 * arm-tdep.c (arm_frameless_function_invocation)
3866 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3867 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3868 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3869 (arm_pop_frame, arm_get_next_pc): Make static.
3870 (arm_gdbarch_init): Register above in gdbarch structure.
3871 (arm_read_fp): Renamed from arm_target_read_fp.
3872 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
3873 * config/arm/tm-arm.h (arm_frameless_function_invocation)
3874 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3875 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3876 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3877 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
3878 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
3879 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
3880 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
3881 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
3882 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 3883
434d2d4f
DJ
38842002-02-10 Daniel Jacobowitz <drow@mvista.com>
3885
3886 * symtab.c (compare_search_syms): New function.
3887 (sort_search_symbols): New function.
3888 (search_symbols): Sort symbols after searching rather than
3889 before.
3890
55241689
AC
38912002-02-10 Andrew Cagney <ac131313@redhat.com>
3892
3893 * NEWS: Linux -> GNU/Linux.
3894
028c194b
AC
38952002-02-10 Andrew Cagney <ac131313@redhat.com>
3896
3897 * gdbarch.sh: For for level one methods, disallow a definition
3898 when partially multi-arched. Add comments explaining rationale.
3899 * gdbarch.h: Re-generate.
3900
6acf50cd
AC
39012002-02-10 Andrew Cagney <ac131313@redhat.com>
3902
3903 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
3904 multi-arch partial.
aaa38bb5 3905
50248794
AC
39062002-02-10 Andrew Cagney <ac131313@redhat.com>
3907
3908 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
3909 field. Use diff -u.
3910 * gdbarch.c: Re-generate.
3911
c30e0066
AC
39122002-02-10 Andrew Cagney <ac131313@redhat.com>
3913
9b56c5f3 3914 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
3915 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
3916 partial.
3917
6e6d6484
AC
39182002-02-10 Andrew Cagney <ac131313@redhat.com>
3919
3920 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
3921 multi-arch partial.
3922 (PUSH_ARGUMENTS): Switch to using predefault.
3923 * gdbarch.c: Regenerate.
3924
c203844d
AC
39252002-02-10 Andrew Cagney <ac131313@redhat.com>
3926
3927 * valops.c (PUSH_ARGUMENTS): Delete definition.
3928 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
3929 partial. Default to default_push_arguments.
3930 * gdbarch.h, gdbarch.c: Regenerate.
3931
b5a2688f
AC
39322002-02-09 Andrew Cagney <ac131313@redhat.com>
3933
3934 * defs.h (throw_exception): Rename return_to_top_level. Update
3935 comments.
3936 * utils.c (error_stream, internal_verror, quit): Ditto.
3937 * top.c (throw_exception, catcher): Ditto.
3938 * sparclet-rom.c (sparclet_load): Ditto.
3939 * remote.c (interrupt_query, minitelnet): Ditto.
3940 * remote-sds.c (interrupt_query): Ditto.
3941 * remote-mips.c (mips_error, mips_kill): Ditto.
3942 * ocd.c (interrupt_query): Ditto.
3943 * monitor.c (monitor_interrupt_query): Ditto.
3944 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
3945 * target.h: Update comment.
aaa38bb5 3946
b5a2688f 3947 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 3948
2fa5c1e0
AC
39492002-02-09 Andrew Cagney <ac131313@redhat.com>
3950
3951 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
3952 default_double_format.
3953 * gdbarch.h, gdbarch.c: Re-generate.
3954 * findvar.c (floatformat_unknown): Delete variable definition.
3955 * doublest.h (floatformat_unknown): Delete variable declaration.
3956
da966255
JB
39572002-02-09 Jim Blandy <jimb@redhat.com>
3958
3959 * stabsread.c (read_type): Add code to parse Sun's syntax for
3960 prototyped function types.
3961
123a4891
AC
39622002-02-09 Andrew Cagney <ac131313@redhat.com>
3963
3964 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
3965 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
3966
fb39c8f3
PS
39672002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3968
3969 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
3970 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
3971 now _initialize_xcoffsolib gets called again and overrides the
3972 commands from solib.c in a native configuration.
3973
0b87a11d
MK
39742002-02-09 Mark Kettenis <kettenis@gnu.org>
3975
3976 * doublest.c (store_typed_floating): Don't try to return a value.
3977 Fixes PR gdb/290.
3978
bdc2fc72
JB
39792002-02-08 Jim Blandy <jimb@redhat.com>
3980
3981 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
3982 is prototyped and has no arguments, print its argument list as
3983 `(void)'.
3984
da69bbcf
CD
39852002-02-08 Chris Demetriou <cgd@broadcom.com>
3986
3987 * MAINTAINERS (write-after-approval): Add myself.
3988 (paper-trail): I've escaped!
aaa38bb5 3989
b69571f5
CF
39902002-02-08 Christopher Faylor <cgf@redhat.com>
3991
3992 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
3993 changes.
3994 (_initialize_check_for_gdb_ini): Ditto.
3995
f6871398
MH
39962002-02-08 Martin M. Hunt <hunt@redhat.com>
3997
3998 * win32-nat.c (cygwin_pid_to_str): Fix typo.
3999 xaprintf -> xasprintf.
4000
4e52d31c
PM
40012002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
4002
4003 * win32-nat.c: Remove use of printf and sprintf functions.
4004
39bbf761
RE
40052002-02-08 Richard Earnshaw <rearnsha@arm.com>
4006
4007 * arm-tdep.c (arm_frame_chain_valid): Make static.
4008 (arm_push_arguments): Likewise.
4009 (arm_gdbarch_init): New function.
4010 (_initialize_arm_tdep): Call it.
4011 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
4012 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
4013 (FRAME_CHAIN_VALID): Delete.
4014 (arm_frame_chain_valid): Delete declaration.
4015 (PUSH_ARGUMENTS): Delete.
4016 (arm_push_arguments): Delete declaration.
4017 (CALL_DUMMY_P): Delete.
4018
9c9532c9
CV
40192002-02-08 Andrew Cagney <ac131313@redhat.com>
4020 Corinna Vinschen <vinschen@redhat.com>
4021
4022 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
4023 on builtin float types.
4024
4e8f7a8b
DJ
40252002-02-08 Daniel Jacobowitz <drow@mvista.com>
4026
4027 * utils.c: Include <curses.h> before "bfd.h".
4028 * tui/tui-hooks.c: Likewise.
4029 * tui/tui.c: Likewise.
4030 * tui/tuiCommand.c: Likewise.
4031 * tui/tuiData.c: Likewise.
4032 * tui/tuiDataWin.c: Likewise.
4033 * tui/tuiDisassem.c: Likewise.
4034 * tui/tuiGeneralWin.c: Likewise.
4035 * tui/tuiIO.c: Likewise.
4036 * tui/tuiLayout.c: Likewise.
4037 * tui/tuiRegs.c: Likewise.
4038 * tui/tuiSource.c: Likewise.
4039 * tui/tuiSourceWin.c: Likewise.
4040 * tui/tuiStack.c: Likewise.
4041 * tui/tuiWin.c: Likewise.
4042
cd4bffcf
EZ
40432002-02-07 Elena Zannoni <ezannoni@redhat.com>
4044
4045 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
4046 to include space for pseudoregs as well. Update loops accordingly.
4047 (sh_fp_frame_init_saved_regs): Ditto.
4048 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
4049
26806ce2
AC
40502002-02-07 Andrew Cagney <ac131313@redhat.com>
4051
4052 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
4053 Add Richard Earnshaw to Arm maintainers.
4054
97fdab62
AC
40552002-02-07 Andrew Cagney <ac131313@redhat.com>
4056
a6b98203
AC
4057 * defs.h (warning_begin): Delete declaration.
4058
97fdab62
AC
4059 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
4060 Delete macro.
4061
78b29b40
MS
40622002-02-07 Michael Snyder <msnyder@redhat.com>
4063
aaa38bb5 4064 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
4065 Logic bug, remove misplaced else.
4066
d8849953
KD
40672002-02-07 Klee Dienes <klee@apple.com>
4068
4069 * fork-inferior.c (fork_inferior): Add '!' to the list of
4070 characters that need to be quoted when building a string for the
4071 shell. Quote '!' specifically with a backslash, since CSH chokes
4072 when trying to evaluate "str!str".
aaa38bb5 4073
095778a0
NC
40742002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
4075
4076 * rdi-share/host.h: Only provide a typedef for bool if it is not
4077 defined.
4078
1900040c
MS
40792002-02-04 Michael Snyder <msnyder@redhat.com>
4080
4081 * breakpoint.h (enum bptype): Add new overlay event bp type.
4082 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 4083
1900040c
MS
4084 * breakpoint.c (create_internal_breakpoint): New function.
4085 (internal_breakpoint_number): Moved into create_internal_breakpoint.
4086 (create_longjmp_breakpoint): Use create_internal_breakpoint.
4087 (create_thread_event_breakpoint): Ditto.
4088 (create_solib_event_breakpoint): Ditto.
4089 (create_overlay_event_breakpoint): New function.
4090 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
4091 (update_breakpoints_after_exec): Delete and re-initialize
4092 overlay event breakpoints after an exec. Add FIXME comment
4093 about longjmp breakpoint.
4094 (print_it_typical): Ignore overlay event breakpoints.
4095 (print_one_breakpoint): Ditto.
4096 (mention): Ditto.
4097 (bpstat_what): Do not stop for overlay event breakpoints.
4098 (delete_breakpoint): Don't delete overlay event breakpoints.
4099 (breakpoint_re_set_one): Delete the overlay event breakpoint.
4100 (breakpoint_re_set): Re-create overlay event breakpoint.
4101
4102 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
4103 (overlay_manual_command): Disable overlay breakpoints.
4104 (overlay_off_command): Disable overlay breakpoints.
4105
082fc60d
RE
41062002-02-06 Richard Earnshaw <rearnsha@arm.com>
4107
4108 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
4109 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
4110 to here from config/tm-arm.h.
4111 (coff_sym_is_thumb): Make static.
4112 (arm_elf_make_msymbol_special): New function.
4113 (arm_coff_make_msymbol_special): New function.
4114 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
4115 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
4116 (coff_sym_is_thumb): Delete declaration.
4117 (arm_elf_make_msymbol_special): Declare.
4118 (arm_coff_make_msymbol_special): Declare.
4119 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
4120 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
4121
039c5766
RE
41222002-02-06 Richard Earnshaw <rearnsha@arm.com>
4123
4124 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
4125
41262002-02-06 Richard Earnshaw <rearnsha@arm.com>
4127
4128 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
4129 * gdbarch.c gdbarch.h: Regenerate.
4130 * arch-utils.c (default_print_float_info): New function.
4131 * arch-utils.h (default_print_float_info): Prototype it.
4132 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
4133 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
4134 (PRINT_FLOAT_INFO): Document it.
4135
4136 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
4137 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
4138 (PRINT_FLOAT_INFO): Define.
4139
58fa08f0
PM
41402002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
4141
aaa38bb5 4142 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
4143 Add typecast to sprintf argument to suppress a warning.
4144
7393af7c
PM
41452002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
4146
58fa08f0 4147 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
4148 to allow easier handling of pass state.
4149 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
4150 that gives exception name and address.
4151 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 4152 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 4153 exceptions added.
aaa38bb5
AJ
4154 (child_continue): Correctly report continue_status.
4155 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 4156 TARGET_SIGNAL_0 (new default value).
aaa38bb5 4157 (child_resume): consider sig argument passed to decide if
7393af7c
PM
4158 the exception should be passed to debuggee or not.
4159
6af4589c
MS
41602002-02-05 Michael Snyder <msnyder@redhat.com>
4161
4162 * regcache.c (fetch_register): Call target_fetch_register
4163 only if we don't call FETCH_PSEUDO_REGISTER.
4164 (store_register): Call target_store_register only if we
4165 don't call STORE_PSEUDO_REGISTER.
4166
a2cf933a
EZ
41672002-02-05 Elena Zannoni <ezannoni@redhat.com>
4168
4169 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
4170 ELF_MAKE_MSYMBOL_SPECIAL.
4171 * gdbarch.c, gdbarch.h: Regenerate.
4172 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 4173 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
4174 * elfread.c (elf_symtab_read): Compile use of
4175 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
4176 multiarched.
4177 * coffread.c (coff_symtab_read): Ditto, for
4178 COFF_MAKE_MSYMBOL_SPECIAL.
4179
6bb7be43
JB
41802002-02-05 Jim Blandy <jimb@redhat.com>
4181
4182 * solib-svr4.c (svr4_truncate_ptr): New function.
4183 (svr4_relocate_section_addresses): Do the address arithmetic with
4184 the appropriate truncation for target addresses, even when
4185 CORE_ADDR is larger than a target address.
4186
e18651ec
DJ
41872002-02-05 Daniel Jacobowitz <drow@mvista.com>
4188
4189 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
4190 to (int *).
4191
6b2725be
DJ
41922002-02-05 Daniel Jacobowitz <drow@mvista.com>
4193
4194 * gdbserver/linux-low.c (kill_inferior): Remove commented out
4195 code.
4196
fca9e603
DJ
41972002-02-05 Daniel Jacobowitz <drow@mvista.com>
4198
4199 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
4200
6c537a52
DJ
42012002-02-05 Daniel Jacobowitz <drow@mvista.com>
4202
4203 * gdbserver/linux-low.c: Remove unused include files.
4204
d844cde6
DJ
42052002-02-05 Daniel Jacobowitz <drow@mvista.com>
4206
4207 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
4208 (read_inferior_memory): Use it.
4209 (write_inferior_memory): Likewise.
4210
d07c63e7
DJ
42112002-02-05 Daniel Jacobowitz <drow@mvista.com>
4212
4213 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
4214 grubbing through sys_errlist.
4215
da6d8c04
DJ
42162002-02-05 Daniel Jacobowitz <drow@mvista.com>
4217
4218 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
4219
5b421780
PM
42202002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
4221 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
4222
9f60d481
AC
42232002-02-04 Andrew Cagney <ac131313@redhat.com>
4224
4225 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
4226 (do_sfunc, set_cmd_sfunc): New functions.
4227
4228 * command.h (struct cmd_list_element): Add field func.
4229 * cli/cli-decode.h (struct cmd_list_element): Ditto.
4230 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
4231 * cli/cli-decode.h: Ditto.
4232
4233 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
4234 (help_all, help_cmd_list): Ditto.
4235 (find_cmd, complete_on_cmdlist): Ditto.
4236 * top.c (execute_command): Ditto.
4237
4238 * cli/cli-setshow.c (do_setshow_command): Call func instead of
4239 function.sfunc.
4240
4241 * infcmd.c (notice_args_read): Fix function signature.
4242
4243 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
4244 * cli/cli-decode.c (add_set_cmd): Ditto.
4245 * utils.c (initialize_utils): Ditto.
4246 * maint.c (_initialize_maint_cmds): Ditto.
4247 * infrun.c (_initialize_infrun): Ditto.
4248 * demangle.c (_initialize_demangler): Ditto.
4249 * remote.c (add_packet_config_cmd): Ditto.
4250 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4251 * cris-tdep.c (_initialize_cris_tdep): Ditto.
4252 * proc-api.c (_initialize_proc_api): Ditto.
4253 * kod.c (_initialize_kod): Ditto.
4254 * valprint.c (_initialize_valprint): Ditto.
4255 * top.c (init_main): Ditto.
4256 * infcmd.c (_initialize_infcmd): Ditto.
4257 * corefile.c (_initialize_core): Ditto.
4258 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4259 * arch-utils.c (initialize_current_architecture): Ditto.
4260 (_initialize_gdbarch_utils): Ditto.
4261 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
4262
4263 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
4264 * wince.c (_initialize_inftarg): Ditto.
4265 * symfile.c (_initialize_symfile): Ditto.
4266 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4267 * language.c (_initialize_language): Ditto.
4268 * arc-tdep.c (_initialize_arc_tdep): Ditto.
4269
f9ba0717
MS
42702002-02-04 Michael Snyder <msnyder@redhat.com>
4271
4272 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
4273
0c74b2a7
DJ
42742002-02-04 Daniel Jacobowitz <drow@mvista.com>
4275
4276 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
4277 Add rules for building the register data files.
4278
c638789f
DJ
42792002-02-04 Daniel Jacobowitz <drow@mvista.com>
4280
4281 * regformats/regdat.sh: Add braces to the definition of
4282 expedite_regs_${arch}.
4283
db253027
DJ
42842002-02-04 Daniel Jacobowitz <drow@mvista.com>
4285
4286 * regformats/regdef.h (struct reg): Add comment describing the
4287 requirements for offset and size fields.
4288
206be19c
AS
42892002-02-04 Andreas Schwab <schwab@suse.de>
4290
4291 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
4292 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
4293
181c1381
RE
42942002-02-04 Richard Earnshaw <rearnsha@arm.com>
4295
4296 * gdbarch.sh (copyright): Update years in generated header.
4297 (SMASH_TEXT_ADDRESS): Add rule.
db253027 4298 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
4299 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
4300 * dbxread.c: Likewise.
4301 * dwarfread.c: Likewise.
4302 * elfread.c: Likewise.
4303 * somread.c: Likewise.
4304
4305 * arm-tdep.c (arm_smash_text_address): New function.
4306 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
4307
fa4ba8da
PM
43082002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
4309
4310 Add support for hardware watchpoints on win32 native.
aaa38bb5 4311 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 4312 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 4313 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
4314 of debug registers.
4315 (debug_registers_changed): New variable. Reflects when debug registers
4316 are changed and need to be written to inferior.
aaa38bb5 4317 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
4318 was set, used when new threads are created.
4319 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
4320 i386-nat code.
4321 (thread_rec): Set dr array if id is the thread of current_event .
4322 (child_continue, child_resume): Change the debug registers for all
4323 threads if debug_registers_changed.
4324 (child_add_thread): Change the debug registers if debug_registers_used.
4325 * config/i386/cygwin.mh: Add use of i386-nat.o file.
4326 Link nm.h to new nm-cygwin.h file.
4327 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
4328 of hardware registers.
4329
a73c86fb
AC
43302002-02-03 Andrew Cagney <ac131313@redhat.com>
4331
4332 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
4333 Restore behavour broken by 2002-01-20 Andrew Cagney
4334 <ac131313@redhat.com> IEEE_FLOAT removal.
4335
acf5ed49
DJ
43362002-02-03 Daniel Jacobowitz <drow@mvista.com>
4337
4338 * c-valprint.c (c_val_print): Pass a proper valaddr to
4339 cp_print_class_method.
4340 * valops.c (search_struct_method): If there is only one method
4341 and args is NULL, return that method.
4342
493d28d5
DJ
43432002-02-03 Daniel Jacobowitz <drow@mvista.com>
4344
4345 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
4346 accessing tag_name directly.
4347
7495dfdb
DJ
43482002-02-03 Daniel Jacobowitz <drow@mvista.com>
4349
4350 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
4351 of accessing tag_name directly.
4352
dd6bda65
DJ
43532002-02-03 Daniel Jacobowitz <drow@mvista.com>
4354
4355 PR gdb/280
4356 * gdbtypes.c (replace_type): New function.
4357 * gdbtypes.h (replace_type): Add prototype.
4358 * stabsread.c (read_type): Use replace_type.
4359
88fe217c
RE
43602002-02-03 Richard Earnshaw <rearnsha@arm.com>
4361
4362 * Makefile.in (memattr.o): Add missing dependencies rule.
4363
e5d66720
PS
43642002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4365
4366 * breakpoint.c (break_at_finish_command): Really export.
4367 (break_at_finish_at_depth_command): Ditto.
4368 (tbreak_at_finish_command): Ditto.
4369 * hppa-tdep.c: Include completer.h.
4370 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
4371 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
4372
fffee0be
AC
43732002-02-01 Andrew Cagney <ac131313@redhat.com>
4374
4375 * utils.c (do_write): New function.
4376 (error_stream): Rewrite combining the code from error_begin and
4377 verror.
4378 (verror): Rewrite using error_stream.
4379 (error_begin): Delete function.
4380
255e7dbf
AC
43812002-02-01 Andrew Cagney <ac131313@redhat.com>
4382
4383 * utils.c (error_begin): Make static.
4384 * defs.h (error_begin): Delete declaration.
4385
4386 * linespec.c (cplusplus_error): Replace cplusplus_hint.
4387 (decode_line_1): Use cplusplus_error instead of error_begin,
4388 cplusplus_hint and return_to_top_level.
4389 * coffread.c (coff_symfile_read): Use error instead of error_begin
4390 and return_to_top_level.
4391 * infrun.c (default_skip_permanent_breakpoint): Ditto.
4392
ddfe3c15
AC
43932002-02-01 Andrew Cagney <ac131313@redhat.com>
4394
4395 * language.h (type_error, range_error): Make string parameter
4396 constant.
4397 * language.c (warning_pre_print): Delete extern declaration.
4398 * dwarfread.c (warning_pre_print): Ditto.
4399 * language.c (type_error, range_error): Rewrite to use verror and
4400 vwarning instead of warning_begin.
4401
03ac34d5
MS
44022002-02-01 Michael Snyder <msnyder@redhat.com>
4403
261c4ca2
MS
4404 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
4405 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 4406
e00d1dc8
AC
44072002-02-01 Andrew Cagney <ac131313@redhat.com>
4408
4409 * command.h (NO_FUNCTION): Delete macro.
4410 * cli/cli-decode.h (NO_FUNCTION): Ditto.
4411 * top.c (execute_command): Replace NO_FUNCTION with NULL.
4412 * tracepoint.c (_initialize_tracepoint): Ditto.
4413 * cli/cli-decode.c (add_set_cmd): Ditto.
4414 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 4415
76b79d6e
DJ
44162002-02-01 Daniel Jacobowitz <drow@mvista.com>
4417
4418 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
4419 Update ``this'' pointer when calling virtual functions.
4420
799f9e91
MS
44212002-02-01 Michael Snyder <msnyder@redhat.com>
4422
c7bd442c 4423 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
4424 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
4425
3cf384d4
DJ
44262002-02-01 Daniel Jacobowitz <drow@mvista.com>
4427
4428 * regformats/reg-arm.dat: New file.
4429 * regformats/reg-i386.dat: New file.
4430 * regformats/reg-ia64.dat: New file.
4431 * regformats/reg-m68k.dat: New file.
4432 * regformats/reg-mips.dat: New file.
4433 * regformats/reg-ppc.dat: New file.
4434 * regformats/reg-sh.dat: New file.
4435 * regformats/regdef.h: New file.
4436 * regformats/regdat.sh: New file.
4437
0defa245
RE
44382002-02-01 Richard Earnshaw <reanrsha@arm.com>
4439
4440 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
4441 (arm_frame_args_address, arm_frame_locals_address): New functions.
4442 (arm_frame_num_args): New function.
4443 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
4444 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
4445 (FRMA_NUM_ARGS): Call arm_frame_num_args.
4446
405f26e6
MS
44472002-01-31 Michael Snyder <msnyder@redhat.com>
4448
502fd408
MS
4449 * breakpoint.c (break_at_finish_command): Export.
4450 (break_at_finish_at_depth_command): Export.
4451 (tbreak_at_finish_command): Export.
4452 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
4453 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
4454 "tbreak" commands, which are HPPA specific.
4455
7d35e135
MS
4456 * printcmd.c (disassemble_command): Remove an ancient
4457 artifact of an old merge.
4458
aaa38bb5 4459 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
4460 Define enum constant values for overlay mode.
4461 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
4462 (overlay_is_mapped, overlay_auto_command,
4463 overlay_manual_command): Ditto.
d874f1e2 4464
aaa38bb5
AJ
4465 * breakpoint.c (insert_breakpoints, remove_breakpoint,
4466 breakpoint_here_p, breakpoint_inserted_here_p,
4467 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
4468 describe_other_breakpoints, check_duplicates, clear_command):
4469 Coding standard fixes.
4470
8add0441 4471 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 4472 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
4473 code: check bfd SEC_READONLY flag for section.
4474
e351066e
AC
44752002-01-31 Andrew Cagney <ac131313@redhat.com>
4476
7d35e135 4477 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 4478
8a48e967
DJ
44792002-01-30 Daniel Jacobowitz <drow@mvista.com>
4480
4481 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
4482 data symbols, since we search based on textlow and texthigh.
4483 (find_pc_sect_symtab): Likewise.
4484
f5a96129
AC
44852002-01-30 Andrew Cagney <ac131313@redhat.com>
4486
4487 * defs.h (vwarning): Declare.
f5a96129
AC
4488 * utils.c (vwarning): New function.
4489 (warning): Call vwarning.
4490 (warning_begin): Delete function.
4491
4492 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
4493 the warning message.
4494 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
4495 warning_begin.
4496
cefd4ef5
MS
44972002-01-30 Michael Snyder <msnyder@redhat.com>
4498
1a703748
MS
4499 * NEWS: Mention "set trust-readonly-sections" command.
4500 Mention generate-core-file command.
cefd4ef5 4501
3a11626d
MS
45022002-01-15 Michael Snyder <msnyder@redhat.com>
4503
4504 * target.c: New command, "set trust-readonly-sections on".
4505 (do_xfer_memory): Honor the suggestion to trust readonly sections
4506 by reading them from the object file instead of from the target.
4507 (initialize_targets): Register command "set trust-readonly-sections".
4508
d1c7e53b
AC
45092002-01-29 Andrew Cagney <ac131313@redhat.com>
4510
4511 * parse.c (target_map_name_to_register): Simplify, search regs and
4512 pseudo-regs using a single loop.
4513
e2c9a72c
AC
45142002-01-30 Andrew Cagney <ac131313@redhat.com>
4515
4516 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
4517
69824b4e
MK
45182002-01-15 Rodney Brown <rbrown64@csc.com.au>
4519
4520 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
4521 * config/i386/i386v42mp.mh: Add i387-nat.o .
4522 * i386v4-nat.c: Include i387-nat.h.
4523 (supply_fpregset): Use i387_supply_fsave.
4524 (fill_fpregset): Use i387_fill_fsave.
4525
6eb69eab
RE
45262002-01-30 Richard Earnshaw <rearnsha@arm.com>
4527
4528 * arm-tdep.c (arm_call_dummy_words): Define.
4529 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
4530 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
4531 (CALL_DUMMY_WORDS): Define.
4532 (arm_call_dummy_words): Declare.
4533 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
4534 (arm_linux_call_dummy_words): Declare.
4535
9852326a
AS
45362002-01-30 Andreas Schwab <schwab@suse.de>
4537
4538 * m68klinux-nat.c: Fix last change to use regcache_collect
4539 instead of referencing registers[] directly.
4540
977a3030
AC
45412002-01-29 Andrew Cagney <ac131313@redhat.com>
4542
4543 * parse.c (target_map_name_to_register): Delete code wrapped in
4544 #ifdef REGISTER_NAME_ALIAS_HOOK.
4545
2076c72b
MS
45462002-01-28 Michael Snyder <msnyder@redhat.com>
4547
4548 * regcache.c (legacy_read_register_gen): Need to be able to
4549 read pseudo-register as well as real register.
4550 (legacy_write_register_gen): Ditto.
4551
8fcc723b
AC
45522002-01-28 Andrew Cagney <ac131313@redhat.com>
4553
4554 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
4555 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
4556 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
4557 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
4558 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
4559 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
4560 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
4561 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
4562 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
4563 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
4564 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
4565 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
4566 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
4567 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
4568 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
4569 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
4570 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
4571 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
4572 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
4573 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
4574
afe64c1a
AC
45752002-01-28 Andrew Cagney <ac131313@redhat.com>
4576
4577 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
4578 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
4579 (initialize_current_architecture): Update target_byte_order using
4580 information from BFD.
aaa38bb5 4581 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
4582 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
4583
75bc7ddf
AC
45842002-01-28 Andrew Cagney <ac131313@redhat.com>
4585
4586 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
4587 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
4588
4589 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
4590 #ifdef INVALID_FLOAT.
4591 * infcmd.c (do_registers_info): Ditto.
4592 * values.c (unpack_double): Ditto. Add comment.
4593
4594 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
4595 already commented out.
4596
0280a90a
AS
45972002-01-26 Andreas Schwab <schwab@suse.de>
4598
4599 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4600 * m68klinux-nat.c: Update ptrace interface for fetching/storing
4601 registers and add support for PTRACE_GETREGS.
4602
7072a954
AC
46032002-01-24 Andrew Cagney <ac131313@redhat.com>
4604
4605 GDB 5.1.1 released from 5.1 branch.
4606 * NEWS: Add 5.1.1 news.
4607 * README: Sync with 5.1 branch.
4608
86f902e0
FF
46092002-01-23 Fred Fish <fnf@redhat.com>
4610
4611 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
4612 stabstring on initial malloc. Reallocing will copy it for us,
4613 if necessary.
4614
8af51c36
EZ
46152002-01-23 Elena Zannoni <ezannoni@redhat.com>
4616
aaa38bb5 4617 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
4618 (HFILES_NO_SRCDIR): Remove hpread.h.
4619 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
4620 (hpread.o): Update dependencies.
4621 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
4622
4623 * hp-psymtab-read.c: Remove file.
4624 * hp-symtab-read.c: Remove file.
4625 * hpread.h: Remove file.
4626
4627 * hpread.c: Merge all contents of hp-psymtab-read.c,
4628 hp-symtab-read.c and hpread.h into this file, as it was prior to
4629 January 1999.
4630
4631 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 4632 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
4633 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
4634 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
4635
dc5cfeb6
EZ
46362002-01-23 Elena Zannoni <ezannoni@redhat.com>
4637
4638 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
4639 fill_gregset): Call gdbarch_tdep() just once, assign result to
4640 variable and use that, instead of calling the function several
4641 times.
4642
ea87b71b
AO
46432002-01-24 Alexandre Oliva <aoliva@redhat.com>
4644
4645 * configure.host: Accept sparcv9 as alias for sparc64.
4646 * configure.tgt: Likewise.
4647
13fc0c2f
KB
46482002-01-22 Kevin Buettner <kevinb@redhat.com>
4649
4650 * solib-aix5.c (build_so_list_from_mapfile)
4651 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
4652 arguments is not reversed.
4653 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
4654 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 4655
7bd872fe
EZ
46562002-01-22 Elena Zannoni <ezannoni@redhat.com>
4657
4658 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
4659 modified version of obsolete sh_fetch_pseudo_register.
4660 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
4661 (sh4_register_read): New function.
4662 (sh_pseudo_register_write): New function. Renamed and modified
4663 version of obsolete sh_store_pseudo_register.
4664 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
4665 (sh4_register_write): New function.
4666 (sh_gdbarch_init): Remove setting of gdbarch function
4667 fetch_pseudo_register and store_pseudo_register. Remove setting of
4668 register_convert_to_raw, register_convert_to_virtual,
4669 register_convertible.
4670 (sh_sh4_register_convertible): Delete. No longer needed. All is
4671 taken care by architecture specific functions
4672 register_read/register_write.
4673 (sh_sh4_register_convert_to_virtual): Make static.
4674 (sh_sh4_register_convert_to_raw): Ditto.
4675
069e84fd
AC
46762002-01-22 Andrew Cagney <ac131313@redhat.com>
4677
4678 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
4679 (floatformat_is_nan, floatformat_mantissa): Ditto.
4680
4681 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
4682 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
4683 builtin_type_ieee_double_little,
4684 builtin_type_ieee_double_littlebyte_bigword,
4685 builtin_type_m68881_ext, builtin_type_i960_ext,
4686 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
4687 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
4688 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
4689 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
4690
211a4f69
CV
46912002-01-22 Corinna Vinschen <vinschen@redhat.com>
4692
4693 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
4694 parameter. Set frameless flag if it exists and depended of
4695 whether the scanned function is frameless or not.
4696 (xstormy16_skip_prologue): If function is frameless, return
4697 result of xstormy16_scan_prologue().
4698 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
4699 call.
4700
f81353e4
EZ
47012002-01-21 Elena Zannoni <ezannoni@redhat.com>
4702
4703 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
4704 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
4705 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
4706 sh_sh4_register_byte, sh_sh4_register_raw_size,
4707 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
4708 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
4709 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
4710 sh_store_pseudo_register, sh_do_pseudo_register): Call
4711 gdbarch_tdep() just once, assign result to variable and use that,
4712 instead of calling the function several times.
4713
63c73a17
MK
47142002-01-20 Mark Kettenis <kettenis@gnu.org>
4715
4716 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
4717 macros instead of LAST_FPU_CTRL_REGNUM.
4718 (store_register): Likewise.
4719
39ad761d
JB
47202002-01-21 Jim Blandy <jimb@redhat.com>
4721
4722 * infcmd.c (run_command): Check that the `exec' target layer's BFD
4723 is up-to-date before running the program, not just when a program
4724 exits.
4725
3d74b771
FF
47262002-01-21 Fred Fish <fnf@redhat.com>
4727
4728 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
4729 when we have found all instructions we are looking for.
4730
966fbf70
RE
47312002-01-21 Richard Earnshaw <rearnsha@arm.com>
4732
4733 * arm-tdep.c (arm_register_name): New function.
4734 (arm_registers_names): Make static.
4735 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
4736 (arm_register_name): Declare.
4737 (REGISTER_NAME): Use it.
4738
c3b4394c
RE
47392002-01-21 Richard Earnshaw <rearnsha@arm.com>
4740 Kevin Buettner <kevinb@redhat.com>
4741
4742 Convert arm targets to new FRAME interface.
4743 * arm-tdep.c (struct frame_extra_info): Remove fsr.
4744 (arm_frame_find_save_regs): Delete.
4745 (arm_frame_init_saved_regs): New.
4746 (arm_init_extra_frame_info): Alloacte saved_regs as required.
4747 Allocate extra_info as required. Convert all uses of fsr.regs
4748 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
4749 to use extra_info.
4750 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
4751 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
4752 (check_prologue_cache, save_prologue_cache): Likewise.
4753 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
4754 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
4755 (FRAME_FIND_SAVED_REGS): Delete.
4756 (arm_frame_find_saved_regs): Delete prototype.
4757 (arm_frame_init_saved_regs): New prototype.
4758 (FRAME_INIT_SAVED_REGS): Define.
4759
61d99182
AC
47602002-01-20 Andrew Cagney <ac131313@redhat.com>
4761
4762 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
4763
6aaea291
AC
47642002-01-20 Andrew Cagney <ac131313@redhat.com>
4765
4766 From Jeff Law <law@redhat.com>:
4767 * infttrace.c: Include <sys/pstat.h>.
4768 (child_pid_to_exec_file): Revamp. Use pstat call to get the
4769 exec file if the ttrace equivalent fails.
4770
15f698d2
AC
47712002-01-20 Andrew Cagney <ac131313@redhat.com>
4772
4773 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
4774 (closeLogFile): Ditto.
4775
f86ddd7c
MC
47762002-01-20 Michael Chastain <mec@shout.net>
4777
4778 * top.c (print_gdb_version): Bump copyright year to 2002.
4779
904507ce
AC
47802002-01-20 Andrew Cagney <ac131313@redhat.com>
4781
4782 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
4783 Zannoni and Eli Zaretskii.
4784
d7f0b9ce
DJ
47852002-01-20 Daniel Jacobowitz <drow@mvista.com>
4786
4787 * buildsym.c: Update copyright years.
4788 * c-typeprint.c: Likewise.
4789 * dwarf2read.c: Likewise.
4790 * f-typeprint.c: Likewise.
4791 * gdbtypes.c: Likewise.
4792 * gdbtypes.h: Likewise.
4793 * hp-symtab-read.c: Likewise.
4794 * hpread.c: Likewise.
4795 * mdebugread.c: Likewise.
4796 * p-typeprint.c: Likewise.
4797
3fd3d7d2
AC
47982002-01-20 Andrew Cagney <ac131313@redhat.com>
4799
4800 * remote-sim.c (gdbsim_open): Simplify code testing the macro
4801 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
4802 byte-order selectable.
4803 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
4804 * arch-utils.c: Ditto.
4805 (set_endian): Ditto.
4806 (set_endian_from_file): Ditto.
4807 * gdbserver/low-sim.c (create_inferior): Ditto.
4808 * gdbarch.sh: Ditto.
4809 * gdbarch.h: Re-generate.
aaa38bb5
AJ
4810 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4811 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
4812 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
4813 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4814 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4815 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4816 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
4817 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
4818 macro definition.
4819 * config/mips/tm-wince.h: Remove #undef of macro
4820 TARGET_BYTE_ORDER_SELECTABLE.
4821 * config/sh/tm-wince.h: Ditto.
4822
b02dede2
DJ
48232002-01-20 Daniel Jacobowitz <drow@mvista.com>
4824
4825 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
4826 member function fields. Add accessor macro
4827 TYPE_FN_FIELD_ARTIFICIAL.
4828 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
4829 * c-typeprint.c (c_type_print_base): Skip artificial member
4830 functions.
4831
c3643761
DJ
48322002-01-20 Daniel Jacobowitz <drow@mvista.com>
4833
4834 * f-typeprint.c: Delete unused function f_type_print_args.
4835 * p-typeprint.c: Delete unused function pascal_type_print_args.
4836
8176bb6d
DJ
48372002-01-20 Daniel Jacobowitz <drow@mvista.com>
4838
4839 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
4840 comment. Add ``artificial'' to ``union field_location''.
4841
4842 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
4843
4844 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
4845 * mdebugread.c (parse_symbol): Likewise.
4846 * stabsread.c (define_symbol): Likewise.
4847 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
4848 initializing TYPE_FIELD_BITPOS to n (obsolete).
4849 (hpread_doc_function_type): Likewise.
4850 * hpread.c (hpread_function_type): Likewise.
4851
7fd60527
AC
48522002-01-20 Andrew Cagney <ac131313@redhat.com>
4853
4854 * configure.in (host_makefile_frag): Only require a host makefile
4855 fragment when a native build.
4856 * configure: Re-generate.
4857
c2f05ac9
AC
48582002-01-20 Andrew Cagney <ac131313@redhat.com>
4859
4860 * doublest.h (floatformat_from_type): Declare.
4861 * doublest.c (floatformat_from_type): New function.
4862 (convert_typed_floating): Use.
4863
4864 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
4865 call to function floatformat_from_type.
4866
4867 * gdbarch.sh (IEEE_FLOAT): Delete.
4868 * gdbarch.h, gdbarch.c: Re-generate.
4869 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
4870 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
4871 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
4872 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
4873 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
4874 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
4875 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
4876 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
4877 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
4878 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
4879 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
4880 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
4881
4882 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
4883 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
4884 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4885 * sh-tdep.c (sh_gdbarch_init): Ditto.
4886 * mips-tdep.c (mips_gdbarch_init): Ditto.
4887 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4888 * cris-tdep.c (cris_gdbarch_init): Ditto.
4889
abf22e64
AJ
48902002-01-20 Jiri Smid <smid@suse.cz>
4891
4892 * configure.host, configure.tgt: Support x86-64.
4893 * NEWS: Note new target x86-64.
4894
b7c4cbf8
AJ
4895 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
4896 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
4897 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
4898 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
4899 x86-64-linux-nat.o): Fix dependencies.
4900
82600034
AC
49012002-01-19 Andrew Cagney <ac131313@redhat.com>
4902
4903 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
4904 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
4905 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
4906 * config/sparc/xm-sun4os4.h: Delete file.
4907 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 4908
bbe5c628
AC
49092002-01-19 Andrew Cagney <ac131313@redhat.com>
4910
4911 * config/sparc/sparclynx.mh (XM_FILE): Delete.
4912 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
4913 * config/m68k/m68klynx.mh (XM_FILE): Delete.
4914 * config/i386/i386lynx.mh (XM_FILE): Delete.
4915 * config/rs6000/xm-rs6000ly.h: Delete file.
4916 * config/sparc/xm-sparclynx.h: Delete file.
4917 * config/m68k/xm-m68klynx.h: Delete file.
4918 * config/i386/xm-i386lynx.h: Delete file.
4919 * config/xm-lynx.h: Delete file.
4920 * config/djgpp/fnchange.lst: Update.
4921
f8453e34
JT
49222002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4923
4924 * alpha-tdep.c (alpha_register_byte): New function.
4925 (alpha_register_raw_size): Ditto.
4926 (alpha_register_virtual_size): Ditto.
4927 (alpha_skip_prologue_internal): Renamed from
4928 alpha_skip_prologue.
4929 (alpha_skip_prologue): New version that calls
4930 alpha_skip_prologue_internal.
4931 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
4932 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
4933 second argument from alpha_skip_prologue.
4934 (REGISTER_BYTE): Use alpha_register_byte.
4935 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
4936 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
4937 (FRAMELESS_FUNCTION_INVOCATION): Use
4938 generic_frameless_function_invocation_not.
4939 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
4940 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
4941
52d9e613
AC
49422002-01-19 Andrew Cagney <ac131313@redhat.com>
4943
4944 * config/mips/xm-news-mips.h: Delete file.
4945 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
4946
4947 * config/m88k/xm-m88k.h: Delete file.
4948 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
4949 * config/m88k/xm-delta88v4.h: Ditto.
4950 * config/m88k/xm-delta88.h: Ditto.
4951
4952 * config/alpha/xm-fbsd.h: Delete file.
4953 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
4954
4955 * config/sparc/xm-sparc.h: Delete file.
4956 * Makefile.in (xm-sun4os4.h): Delete dependency.
4957 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
4958 * config/sparc/xm-sun4os4.h: Ditto.
4959 * config/sparc/xm-linux.h: Ditto.
4960
4961 * config/i386/xm-windows.h: Delete file.
4962
2d1b2124
AC
49632002-01-19 Andrew Cagney <ac131313@redhat.com>
4964
4965 * utils.c: Include <sys/param.h> for MAXPATHLEN.
4966 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
4967
ee1f65f0
JT
49682002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4969
4970 * alpha-tdep.c (alpha_call_dummy_words): New.
4971 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
4972 (CALL_DUMMY_P): Define.
4973 (CALL_DUMMY_WORDS): Define.
4974 (SIZEOF_CALL_DUMMY_WORDS): Define.
4975
98081e55
PB
49762002-01-19 Per Bothner <per@bothner.com>
4977
4978 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
4979 isn't NULL, which can happen with some gcj-3.x-produced code.
4980
0d056799
JT
49812002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4982
4983 * alpha-tdep.c (alpha_register_virtual_type): New function.
4984 (alpha_init_frame_pc_first): Ditto.
4985 (alpha_fix_call_dummy): Ditto.
4986 (alpha_store_struct_return): Ditto.
4987 (alpha_extract_struct_value_address): Ditto.
4988 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
4989 alpha_register_virtual_type.
4990 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
4991 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
4992 alpha_extract_struct_value_address.
4993 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
4994 (INIT_FRAME_PC): Use init_frame_pc_noop.
4995 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
4996
4604bcad
MK
49972002-01-19 Mark Kettenis <kettenis@gnu.org>
4998
4999 * i386gnu-nat.c: Include "i386-tdep.h".
5000 (fetch_fpregs): Simplify code dealing with uninitialized floating
5001 point states such that it doesn't require FP7_REGNUM.
5002
140f9984
JT
50032002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5004
abf22e64
AJ
5005 * alpha-tdep.c (frame_extra_info): New.
5006 (alpha_find_saved_regs): Make static. Use
140f9984
JT
5007 frame->extra_info.
5008 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
5009 (alpha_frame_saved_pc): Use frame->extra_info.
5010 (temp_saved_regs): Don't declare as struct frame_saved_regs.
5011 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
5012 (init_extra_frame_info): Rename to...
5013 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 5014 (alpha_print_extra_frame_info): New function.
140f9984
JT
5015 (alpha_frame_locals_address): Ditto.
5016 (alpha_frame_args_address): Ditto.
abf22e64 5017 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
5018 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
5019 alpha_frame_args_address.
abf22e64 5020 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 5021 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
5022 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
5023 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
5024 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
5025 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
5026
d734c450
JT
50272002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5028
5029 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
5030 (alpha_cannot_fetch_register): Ditto.
5031 (alpha_cannot_store_register): Ditto.
5032 (alpha_register_convertible): Ditto.
5033 (alpha_use_struct_convention): Ditto.
5034 * config/alpha/tm-alpha.h: Update copyright years.
5035 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
5036 (INNER_THAN): Use core_addr_lessthan.
5037 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
5038 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
5039 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
5040 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
5041 (FRAME_CHAIN): Remove unnecessary cast.
5042
b4ceaee6
AC
50432002-01-18 Andrew Cagney <ac131313@redhat.com>
5044
5045 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
5046 obsolete.
5047
0a65a603
AC
50482002-01-18 Andrew Cagney <ac131313@redhat.com>
5049
5050 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
5051 * monitor.c, remote-array.c, remote-bug.c: Ditto.
5052 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
5053 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
5054 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
5055 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
5056 * x86-64-linux-nat.c: Ditto.
5057
636a6dfc
JT
50582002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5059
abf22e64 5060 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
5061 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
5062 (REGISTER_NAME): Define.
5063
acceddb6
JT
50642002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5065
5066 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
5067
ec32e4be
JT
50682002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5069
5070 * alpha-tdep.c: Update copyright years.
5071 (alpha_next_pc): New function.
5072 (alpha_software_single_step): Ditto.
5073 * config/alpha/tm-alpha.h: Add prototype for
5074 alpha_software_single_step.
5075
e771a871
JT
50762002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5077
5078 * alphabsd-nat.c: Update copyright years.
5079 (fill_gregset): Use regcache_collect.
5080 (fill_fpregset): Likewise.
5081 (fetch_inferior_registers): Only fetch integer registers
5082 if requested to do so.
5083 (store_inferior_registers): Only store integer registers
5084 if requested to do so.
5085
7708fa01
AC
50862002-01-17 Andrew Cagney <ac131313@redhat.com>
5087
5088 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
5089 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
5090 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
5091 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
5092 * config/alpha/fbsd.mh (XDEPFILES): Delete.
5093 * config/arm/linux.mh (XDEPFILES): Delete.
5094 * config/arm/nbsd.mh (XDEPFILES): Delete.
5095 * config/i386/i386dgux.mh (XDEPFILES): Delete.
5096 * config/i386/i386sol2.mh (XDEPFILES): Delete.
5097 * config/i386/i386m3.mh (XDEPFILES): Delete.
5098 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
5099 * config/i386/i386gnu.mh (XDEPFILES): Delete.
5100 * config/i386/fbsd.mh (XDEPFILES): Delete.
5101 * config/i386/i386bsd.mh (XDEPFILES): Delete.
5102 * config/i386/i386sco5.mh (XDEPFILES): Delete.
5103 * config/i386/i386v4.mh (XDEPFILES): Delete.
5104 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
5105 * config/i386/i386sco4.mh (XDEPFILES): Delete.
5106 * config/i386/i386aix.mh (XDEPFILES): Delete.
5107 * config/i386/go32.mh (XDEPFILES): Delete.
5108 * config/i386/cygwin.mh (XDEPFILES): Delete.
5109 * config/i386/i386lynx.mh (XDEPFILES): Delete.
5110 * config/i386/i386mach.mh (XDEPFILES): Delete.
5111 * config/i386/i386v32.mh (XDEPFILES): Delete.
5112 * config/i386/linux.mh (XDEPFILES): Delete.
5113 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
5114 * config/i386/ncr3000.mh (XDEPFILES): Delete.
5115 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
5116 * config/i386/i386sco.mh (XDEPFILES): Delete.
5117 * config/i386/i386v.mh (XDEPFILES): Delete.
5118 * config/i386/nbsd.mh (XDEPFILES): Delete.
5119 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
5120 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
5121 * config/i386/symmetry.mh (XDEPFILES): Delete.
5122 * config/i386/obsd.mh (XDEPFILES): Delete.
5123 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
5124 * config/ia64/linux.mh (XDEPFILES): Delete.
5125 * config/ia64/aix.mh (XDEPFILES): Delete.
5126 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
5127 * config/m68k/dpx2.mh (XDEPFILES): Delete.
5128 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
5129 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
5130 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
5131 * config/m68k/linux.mh (XDEPFILES): Delete.
5132 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
5133 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
5134 * config/m68k/nbsd.mh (XDEPFILES): Delete.
5135 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
5136 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
5137 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
5138 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
5139 * config/m88k/delta88.mh (XDEPFILES): Delete.
5140 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
5141 * config/m88k/m88k.mh (XDEPFILES): Delete.
5142 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
5143 * config/mips/linux.mh (XDEPFILES): Delete.
5144 * config/mips/irix6.mh (XDEPFILES): Delete.
5145 * config/mips/irix5.mh (XDEPFILES): Delete.
5146 * config/mips/irix4.mh (XDEPFILES): Delete.
5147 * config/mips/irix3.mh (XDEPFILES): Delete.
5148 * config/mips/decstation.mh (XDEPFILES): Delete.
5149 * config/mips/mipsm3.mh (XDEPFILES): Delete.
5150 (NATDEPFILES): Move core-aout.o to here.
5151 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
5152 * config/pa/hpux1020.mh (XDEPFILES): Delete.
5153 * config/pa/hppabsd.mh (XDEPFILES): Delete.
5154 * config/pa/hppahpux.mh (XDEPFILES): Delete.
5155 * config/pa/hpux11w.mh (XDEPFILES): Delete.
5156 * config/pa/hppaosf.mh (XDEPFILES): Delete.
5157 * config/pa/hpux11.mh (XDEPFILES): Delete.
5158 * config/powerpc/aix.mh (XDEPFILES): Delete.
5159 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
5160 * config/powerpc/linux.mh (XDEPFILES): Delete.
5161 * config/romp/rtbsd.mh: Rename XDEPFILES.
5162 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
5163 * config/rs6000/aix4.mh (XDEPFILES): Delete.
5164 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
5165 * config/s390/s390.mh (XDEPFILES): Delete.
5166 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
5167 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
5168 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
5169 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
5170 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
5171 * config/sparc/nbsd.mh (XDEPFILES): Delete.
5172 * config/sparc/linux.mh (XDEPFILES): Delete.
5173 * config/vax/vaxult.mh (XDEPFILES): Delete.
5174 * config/vax/vaxult2.mh (XDEPFILES): Delete.
5175 * Makefile.in (DEPFILES): Remove XDEPFILES.
5176
375fc983
AC
51772002-01-17 Andrew Cagney <ac131313@redhat.com>
5178
5179 * utils.c (internal_verror): Fix comments, default is yes not no.
5180 Update queries to match. Default to quit and dump core.
5181
8926118c
AC
51822002-01-17 Andrew Cagney <ac131313@redhat.com>
5183
5184 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
5185 copyright.
5186 * defs.h, event-top.c, gdbcmd.h: Ditto.
5187 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
5188 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
5189 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
5190 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
5191 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
5192 * mi/mi-main.c:Ditto.
5193
5194 * stack.c, symfile.c: Update copyright.
5195
45b7b345
DJ
51962002-01-17 Daniel Jacobowitz <drow@mvista.com>
5197
db728ff7
DJ
5198 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
5199 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
5200 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
5201 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 5202
db728ff7
DJ
52032002-01-17 Daniel Jacobowitz <drow@mvista.com>
5204
5205 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
5206 * gdbserver/low-lynx.c (myattach): Likewise.
5207 * gdbserver/low-nbsd.c (myattach): Likewise.
5208 * gdbserver/low-sim.c (myattach): Likewise.
5209 * gdbserver/low-sparc.c (myattach): Likewise.
5210 * gdbserver/low-sun3.c (myattach): Likewise.
5211
5212 * gdbserver/low-linux.c (myattach): New function.
45b7b345 5213
db728ff7 5214 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
5215 (main): Handle "--attach".
5216
8de3c354
AC
52172002-01-16 Andrew Cagney <ac131313@redhat.com>
5218
5219 * MAINTAINERS (language support): Daniel Jacobwitz is C++
5220 maintainer.
5221
b0129042
DJ
52222002-01-15 Daniel Jacobowitz <drow@mvista.com>
5223
5224 * c-typeprint.c (is_type_conversion_operator): Add additional
5225 check for non-conversion operators.
5226
ba8679fb 52272002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
5228
5229 * linux-proc.c: Add "info proc" command, a la procfs.c.
5230 (read_mapping): New function, abstract and re-use code.
5231 (linux_find_memory_regions): Use new func read_mapping.
5232 (linux_info_proc_cmd): New function, implement "info proc".
5233 (_initialize_linux_proc): Add new command "info proc".
5234
e4f9b4d5
MS
52352002-01-15 Michael Snyder <msnyder@redhat.com>
5236
5237 * symfile.c (generic_load): Use bfd_map_over_sections method
5238 instead of manipulating bfd structure members directly.
5239 (add_section_size_callback): New function, bfd sections callback
5240 used by generic_load.
5241 (load_sections_callback): New function, bfd sections callback
5242 used by generic_load.
5243
08cf96df
EZ
52442002-01-15 Elena Zannoni <ezannoni@redhat.com>
5245
abf22e64 5246 [Based on work by Jim Blandy]
08cf96df
EZ
5247 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
5248 (builtin_type_vec128): Export.
5249 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
5250 types.
5251 (builtin_type_vec128): New builtin type for 128 bit vector
5252 registers.
5253 (build_gdbtypes): Initialize builtin_type_v16qi and
5254 builtin_type_v8hi. Create the vec128 register builtin type
5255 structure.
5256 (build_builtin_type_vec128): New function.
abf22e64 5257 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
5258 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
5259 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
5260 AltiVec register to new builtin type.
5261
d7242108
DJ
52622001-01-15 Daniel Jacobowitz <drow@mvista.com>
5263
5264 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
5265 to make_cv_type.
5266
4ee3352d
AC
52672002-01-14 Andrew Cagney <ac131313@redhat.com>
5268
5269 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
5270 CLEAN_UP_REGISTER_VALUE.
5271 * regcache.c (supply_register): Update only call.
5272
f015b2e7
AC
52732002-01-14 Andrew Cagney <ac131313@redhat.com>
5274
5275 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
5276 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
5277 a29k-*-vxworks* targets as obsolete.
5278
356ae49d
MS
52792002-01-14 Michael Snyder <msnyder@redhat.com>
5280
5281 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
5282 until we can resolve portability issues.
5283 * gregset.h: Remove references to fpxregs.
5284 * gcore.c (gcore_command): Initialize note_sec to NULL.
5285
ade8f45e
AC
52862002-01-13 Andrew Cagney <ac131313@redhat.com>
5287
5288 * signals.c (target_signal_to_name): Rewrite. Only use
5289 signals[].name when in bounds and non-NULL.
abf22e64 5290
89c49e7a
AC
52912002-01-13 Andrew Cagney <ac131313@redhat.com>
5292
5293 From Petr Ledvina <ledvinap@kae.zcu.cz>:
5294 * signals.c (target_signal_to_name): Verify that SIG is within the
5295 bounds of the signals array.
5296
4daa9f9f
AC
52972002-01-13 Andrew Cagney <ac131313@redhat.com>
5298
5299 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
5300
ba4bbdcb
KS
53012002-01-13 Keith Seitz <keiths@redhat.com>
5302
5303 * stack.c (print_frame_info_base): Print the frame's pc
5304 only if when print_frame_info_listing_hook is not defined.
5305
575bbeb6
KS
53062002-01-13 Keith Seitz <keiths@redhat.com>
5307
5308 * varobj.c (varobj_set_value): Make sure that there were no
5309 errors evaluating the object before attempting to set its
5310 value.
5311 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
5312 so this offset adjustment is no longer necessary.
5313 (create_child): Don't set the error flag if the child is
5314 a CPLUS_FAKE_CHILD.
5315 (value_of_child): If value_fetch_lazy fails, return NULL
5316 so that callers will be notified that an error occurred.
5317 (c_value_of_variable): Delay check of variable's validity
5318 until later. We actually want all structs and unions to have
5319 the value "{...}".
5320 Do not return "???" for variables which could not be evaluated.
5321 This error condition must be returned to the caller so that it
5322 can get the error condition from gdb.
5323 (cplus_name_of_child): Adjust index for vptr before figuring
5324 out the name of the child.
5325 (cplus_value_of_child): If a child's (real) parent is not valid,
5326 don't even bother trying to give a value for it. Just return
5327 an error. Change all instances in this function.
5328 (cplus_type_of_child): If our parent is one of the "fake"
5329 parents, we need to get at the type of the real parent, and
5330 derive the child's true type using this information.
5331
b76898ab
AC
53322002-01-13 Andrew Cagney <ac131313@redhat.com>
5333
5334 From 2002-01-09 John Marshall <johnm@falch.net>:
5335 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
5336 sources.redhat.com, and tweak some related URLs which had
5337 suffered from linkrot.
5338
b6649e88
AC
53392002-01-13 Andrew Cagney <ac131313@redhat.com>
5340
5341 From Jeff law:
5342 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
5343 structures passed in registers.
5344
82cc5033
EZ
53452002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
5346
5347 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
5348 white space which prevented compilation. Reported by DSK
5349 <dsk@student.unsw.edu.au>.
5350
ba5f2f8a
MS
53512002-01-11 Michael Snyder <msnyder@redhat.com>
5352
fbd35540
MS
5353 * symfile.c (build_section_addr_info_from_section_tab):
5354 Use bfd access method instead of manipulating bfd directly.
5355 (syms_from_objfile): Ditto.
5356 (simple_overlay_update_1): Ditto.
5357 (simple_overlay_update): Ditto.
5358 (generic_load): Ditto.
5359 (overlay_unmapped_address): FIXME comment, bfd access methods.
5360 (sections_overlap): FIXME comment, bfd access methods.
5361 (pc_in_mapped_range): FIXME comment, bfd access methods.
5362 (pc_in_unmapped_range): FIXME comment, bfd access methods.
5363 (section_is_mapped): FIXME comment, bfd access methods.
5364 (section_is_overlay): FIXME comment, bfd access methods.
5365
ba5f2f8a
MS
5366 * symfile.c (generic_load): Whitespace and long line cleanups.
5367 Remove duplicate variable, change several local variables to
5368 more appropriate data types.
5369 (print_transfer_performance): Use %lu instead of %ld for ulongs.
5370
17df2af6
AC
53712002-01-12 Andrew Cagney <ac131313@redhat.com>
5372
5373 From Peter Schauer:
5374 * language.c (longest_local_hex_string_custom): Use phex_nz to
5375 convert NUM to a hex string.
5376
ec920329
EZ
53772002-01-12 Elena Zannoni <ezannoni@redhat.com>
5378
5379 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
5380 the function.
538a76d6 5381 Update Copyright year.
ec920329 5382
3abd2e01
AC
53832002-01-12 Andrew Cagney <ac131313@redhat.com>
5384
5385 * language.c (longest_raw_hex_string): Delete unused function.
5386
b21b22e0
PS
53872002-01-11 Petr Sorfa <petrs@caldera.com>
5388
5389 * MAINTAINERS (write-after-approval): Add myself.
5390 * dwarf2read.c (read_tag_string_type): Handling of
5391 DW_AT_byte_size.
5392 (read_tag_string_type): FORTRAN fix to prevent propagation of
5393 first string size.
5394 (set_cu_language): Handling of DW_LANG_Fortran95
5395
747fe712
RE
53962002-01-11 Richard Earnshaw <rearnsha@arm.com>
5397
5398 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
5399 GETPID(inferior_ptid).
5400 (store_inferior_registers): Likewise.
5401
f1bea926
JM
54022002-01-10 Jason Merrill <jason@redhat.com>
5403
5404 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
5405 Fix DW_OP_minus.
5406
ae940673
AC
54072002-01-10 Andrew Cagney <ac131313@redhat.com>
5408
5409 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
5410 and bfd/elf32-sh-nbsd.c.
5411
00546b04
MS
54122002-01-10 Michael Snyder <msnyder@redhat.com>
5413
352ed7b4
MS
5414 * NEWS: Mention --pid and corefile/proc-id behavior change.
5415
c18be923
MS
5416 * Makefile.in: Add rules for gcore.o and linux-proc.o.
5417 * gcore.c: Include cli/cli-decode.h instead of command.h.
5418
00546b04
MS
5419 * main.c (captured_main): Add new command line option "--pid".
5420 If the second command line argument (following the symbol-file)
5421 begins with a digit, try to attach to it before trying to open
5422 it as a corefile.
5423 (print_gdb_help): Document the "--pid" argument.
5424
db60ec62
EZ
54252002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
5426
5427 * completer.c (command_completer): New function.
5428
5429 * completer.h <command_completer>: Add prototype.
5430
5431 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
5432 completer for the "help" command.
5433
39c22d1a
JM
54342002-01-09 Jason Merrill <jason@redhat.com>
5435
5436 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
5437
c564377f
MS
54382002-01-09 Michael Snyder <msnyder@redhat.com>
5439
975aec09
MS
5440 * i386-linux-nat.c (fill_fpxregset): Make global.
5441 (store_fpxregset): Ditto.
5442
db4a10fa
MS
5443 * gregset.h (gdb_fpxregset_t): Define.
5444 (supply_fpxregset): Prototype.
5445 (fill_fpxregset): Prototype.
5446
c564377f
MS
5447 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
5448
c3d45d70
RE
54492002-01-09 Richard Earnshaw <rearnsha@arm.com>
5450
5451 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
5452 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
5453 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
5454
fcc87af1
AC
54552002-01-09 Andrew Cagney <ac131313@redhat.com>
5456
5457 * MAINTAINERS: Update target maintainer rules so that any
5458 Maintainer can approve a tested patch for a maintenance-only
5459 target.
5460
dd96c05b
RE
54612002-01-09 Richard Earnshaw <rearnsha@arm.com>
5462
d4297db9 5463 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 5464
d4297db9 5465 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
5466 IN_SIGTRAMP.
5467
145fdc6e
MS
54682002-01-08 Michael Snyder <msnyder@redhat.com>
5469
5470 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
5471 real name of the executable, rather than the /proc name.
5472
be4d1333
MS
54732002-01-03 Michael Snyder <msnyder@redhat.com>
5474
5475 Implement a "generate-core-file" command in gdb, save target state.
5476 * gcore.c: New file. Implement new command 'generate-core-file'.
5477 Save a corefile image of the current state of the inferior.
5478 * linux-proc.c: Add linux-specific code for saving corefiles.
5479 * target.h (struct target_ops): Add new target vectors for saving
5480 corefiles; to_find_memory_regions and to_make_corefile_notes.
5481 (target_find_memory_regions): New macro.
5482 (target_make_corefile_notes): New macro.
5483 * target.c (update_current_target): Inherit new target methods.
5484 (dummy_find_memory_regions): New place-holder method.
5485 (dummy_make_corefile_notes): New place-holder method.
5486 (init_dummy_target): Initialize new dummy target vectors.
5487 * exec.c (exec_set_find_memory_regions): New function.
5488 Allow the exec_ops vector for memory regions to be taken over.
5489 (exec_make_note_section): New function, target vector method.
5490 * defs.h (exec_set_find_memory_regions): Export prototype.
5491 * procfs.c (proc_find_memory_regions): New function, corefile method.
5492 (procfs_make_note_section): New function, corefile method.
5493 (init_procfs_ops): Set new target vector pointers.
5494 (find_memory_regions_callback): New function.
5495 (procfs_do_thread_registers): New function.
5496 (procfs_corefile_thread_callback): New function.
5497 * sol-thread.c (sol_find_memory_regions): New function.
5498 (sol_make_note_section): New function.
5499 (init_sol_thread_ops): Initialize new target vectors.
5500 * inftarg.c (inftarg_set_find_memory_regions): New function.
5501 Allow to_find_memory_regions vector to be taken over.
5502 (inftarg_set_make_corefile_notes): New function.
5503 Allow to_make_corefile_notes vector to be taken over.
5504 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
5505 interface layer if not target_has_execution (may be a corefile).
5506 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
5507 * config/sparc/sun4sol2.mh: Ditto.
5508 * config/alpha/alpha-linux.mh: Ditto.
5509 * config/arm/linux.mh: Ditto.
5510 * config/i386/x86-64linux.mh: Ditto.
5511 * config/ia64/linux.mh: Ditto.
5512 * config/m68k/linux.mh: Ditto.
5513 * config/mips/linux.mh: Ditto.
5514 * config/powerpc/linux.mh: Ditto.
5515 * config/sparc/linux.mh: Ditto.
5516
c6b92abd
MS
55172002-01-07 Michael Snyder <msnyder@redhat.com>
5518
5519 * arm-linux-nat.c: Remove references to regcache.c internal data
5520 (registers[] and register_valid[]).
5521
4b09dc8c
MS
55222002-01-07 Michael Snyder <msnyder@redhat.com>
5523
abf22e64
AJ
5524 * linux-proc.c: New file. Implement child_pid_to_exec_file,
5525 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
5526 symbol file and shlibs.
5527 * Makefile.in: Add rule for linux-proc.o.
5528 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
5529 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
5530 * config/arm/linux.mh: Ditto.
5531 * config/i386/linux.mh: Ditto.
5532 * config/i386/x86-64linux.mh: Ditto.
5533 * config/ia64/linux.mh: Ditto.
5534 * config/m68k/linux.mh: Ditto.
5535 * config/mips/linux.mh: Ditto.
5536 * config/powerpc/linux.mh: Ditto.
5537 * config/sparc/linux.mh: Ditto.
5538
c25b74ac
PM
55392002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
5540
5541 * win32-nat.c: Add i386-tdep.h dependency.
5542
94cd915f
MS
55432002-01-07 Michael Snyder <msnyder@redhat.com>
5544
c7cccb76
MS
5545 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
5546 instead of bfd_get_arch_size. Don't bail out just because
5547 there's no exec_bfd.
abf22e64 5548
34c0bd93
MS
5549 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
5550 * p-valprint.c (pascal_object_print_value): Ditto.
5551 * somread.c (som_symtab_read): Ditto.
5552 * symfile.c (simple_free_overlay_region_table): Ditto.
5553 * valops.c (value_assign): Ditto.
5554
21c1c920
MS
5555 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
5556 use tilde_expand and strerror for opening save-tracepoints file.
5557
5bbd998e
MS
5558 * thread-db.c (thread_db_new_objfile): Indendation fix.
5559
94cd915f
MS
5560 * infptrace.c (GDB_MAX_ALLOCA): New define.
5561 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 5562 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
5563 can be overridden with whatever value is appropriate to the host).
5564 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
5565 alloca to allocate potentially large buffer.
5566 * rs6000-nat.c (child_xfer_memory): Ditto.
5567 * symm-nat.c (child_xfer_memory): Ditto.
5568 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
5569
494e8a93
JSC
55702002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
5571
5572 From Nick Clifton <nickc@redhat.com>
5573 * d10v-tdep.c: Set STACK_START to 0x200bffe.
5574
d0e1d48e
MS
55752002-01-07 Michael Snyder <msnyder@redhat.com>
5576
abf22e64 5577 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
5578 Don't use exec_bfd if it's NULL.
5579
290b2c7a
MK
55802002-01-06 Mark Kettenis <kettenis@gnu.org>
5581
abf22e64 5582 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 5583
aef21287
AC
55842002-01-06 Andrew Cagney <ac131313@redhat.com>
5585
5586 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
5587 * gnu-nat.c: Ditto.
5588
30efa627
AC
55892002-01-06 Andrew Cagney <ac131313@redhat.com>
5590
5591 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
5592 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
5593 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
5594 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
5595 z8k-coff have not been multi-arched. Update z8k-coff build
5596 status.
5597
9b4ff276
AC
55982002-01-06 Andrew Cagney <ac131313@redhat.com>
5599
5600 * MAINTAINERS: Mark a29k target as obsolete.
5601 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
5602 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
5603 comments.
5604 * NEWS: Note that a29k targets are obsolete.
5605 * a29k-tdep.c: Mark as obsolete.
5606 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
5607 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
5608 a29k-*-vxworks* targets as obsolete.
5609 * remote-adapt.c: Obsolete.
5610 * remote-eb.c: Obsolete.
5611 * remote-mm.c: Obsolete.
5612 * remote-udi.c: Obsolete.
5613 * config/a29k/a29k-udi.mt: Obsolete.
5614 * config/a29k/a29k.mt: Obsolete.
5615 * config/a29k/tm-a29k.h: Obsolete.
5616 * config/a29k/tm-vx29k.h: Obsolete.
5617 * config/a29k/vx29k.mt: Obsolete.
5618
a9011d31
AC
56192002-01-05 Andrew Cagney <ac131313@redhat.com>
5620
5621 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
5622 with BFD_ENDIAN_BIG.
5623
9299404e
AC
56242002-01-05 Andrew Cagney <ac131313@redhat.com>
5625
5626 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
5627 * configure, config.in: Re-generate.
5628 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
5629 * defs.h: Do not include <endian.h>.
5630
7e89e357
JT
56312002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
5632
5633 * acconfig.h (HAVE_PT_GETXMMREGS): New.
5634 * config.in: Regenerate.
5635 * configure.in: Update copyright years.
5636 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
5637 * configure: Regenerate.
5638 * i386bsd-nat.c: Update copyright years.
5639 (fill_gregset): Use regcache_collect.
5640 (fetch_inferior_registers): Only fetch integer registers
5641 if requested to do so. Add support for XMM registers
5642 using PT_GETXMMREGS.
5643 (store_inferior_registers): Only store integer registers
5644 if requested to do so. Add support for XMM registers
5645 using PT_SETXMMREGS.
5646 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
5647 (store_inferior_registers): Remove.
5648 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
5649 (fetch_elfcore_registers): New function.
5650 (i386nbsd_elfcore_fns): New.
5651 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
5652 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
5653 i386bsd-nat.o.
5654 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5655 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
5656 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
5657 * config/i386/tm-nbsd.h: Update copyright years.
5658 (HAVE_SSE_REGS): Define.
5659 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
5660 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
5661 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
5662 (SIGCONTEXT_PC_OFFSET): Remove.
5663 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
5664
a752853e
AC
56652002-01-05 Andrew Cagney <ac131313@redhat.com>
5666
5667 * configure.tgt: Remove powerpc-*-macos* target.
5668 * config/m68k/xm-mpw.h: Delete file.
5669 * config/xm-mpw.h: Delete file.
5670 * ser-mac.c: Delete file.
5671 * mpw-make.sed: Delete file.
5672 * mpw-config.in: Delete file.
5673 * mac-xdep.c: Delete file.
5674 * mac-gdb.r: Delete file.
5675 * mac-defs.h: Delete file.
5676 * mac-nat.c: Delete file.
5677 * config/powerpc/macos.mh: Delete file.
5678 * config/powerpc/macos.mt: Delete file.
5679 * config/powerpc/nm-macos.h: Delete file.
5680 * config/powerpc/tm-macos.h: Delete file.
5681 * source.c (openp, open_source_file): Remove obsolete code.
5682 * top.c (gdb_readline): Ditto.
5683 * utils.c (query): Ditto.
5684 * event-top.c (display_gdb_prompt): Ditto.
5685 * Makefile.in (ser-mac.o): Delete obsolete target.
5686 * NEWS: Update.
5687
d7449b42
AC
56882002-01-04 Andrew Cagney <ac131313@redhat.com>
5689
5690 * defs.h (BIG_ENDIAN): Delete macro definition.
5691 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
5692 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
5693 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
5694 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
5695 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
5696 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
5697 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
5698 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
5699 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
5700 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
5701 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
5702 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
5703 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
5704 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
5705 * gdbarch.c: Re-generate.
5706
356374e8
DJ
57072002-01-04 Daniel Jacobowitz <drow@mvista.com>
5708
5709 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
5710 for core files.
5711
a2b8f8f8
JT
57122002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5713
5714 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
5715
12466af9
AC
57162002-01-04 Andrew Cagney <ac131313@redhat.com>
5717
5718 * value.h (value_ptr): Delete typedef.
5719
3549ab40
JT
57202002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5721
5722 * i386nbsd-nat.c: Update copyright years.
5723 Include i386-tdep.h.
5724
fedbd091
EZ
57252002-01-04 Elena Zannoni <ezannoni@redhat.com>
5726
5727 * stabsread.c: Update copyright years.
5728
5729 From Debashis Mahata <debashis.mahata@wipro.com>:
5730 (read_struct_fields): Deal with Sun C compiler erroneous stab
5731 output for structs and unions.
fec8b34f 5732 Fix PR gdb/269.
fedbd091 5733
eb43544b
DJ
57342002-01-04 Daniel Jacobowitz <drow@mvista.com>
5735
5736 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
5737 prototype.
5738
1514d34e
DJ
57392002-01-04 Daniel Jacobowitz <drow@mvista.com>
5740
5741 * cp-abi.c: Fix whitespace.
5742 (baseclass_offset): New wrapper function.
5743 * cp-abi.h (baseclass_offset): Add prototype.
5744 (struct cp_abi_ops): Add baseclass_offset pointer.
5745
5746 * valops.c (vb_match): Move to...
5747 * gnu-v2-abi.c (vb_match): here.
5748 * valops.c (baseclass_offset): Move to...
5749 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
5750
5751 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
5752
5753 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
5754 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
5755 * hpacc-abi.c (init_hpacc_ops): Likewise.
5756
7f8c9282
DJ
57572002-01-04 Daniel Jacobowitz <drow@mvista.com>
5758
5759 * valops.c (find_overload_match): Accept obj as a
5760 reference parameter. Update it before returning.
5761 * value.h (find_overload_match): Update prototype.
5762 * eval.c (evaluate_subexp_standard): Pass object to
5763 find_overload_match by reference.
5764
f23631e4
AC
57652002-01-03 Andrew Cagney <ac131313@redhat.com>
5766
5767 * valarith.c: Replace value_ptr with struct value pointer. Remove
5768 register attribute from value declarations.
5769 * valops.c: Ditto.
5770 * value.h: Ditto.
5771 * scm-lang.c (scm_lookup_name): Ditto.
5772
79e10fab 57732002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 5774
79e10fab
AC
5775 Abstract the functionality of iterating over mapped memory
5776 regions into a general purpose iterator function.
abf22e64 5777 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
5778 iterator for memory sections.
5779 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
5780 (solib_mappings_callback): New function, callback for above.
5781 (info_proc_mappings): Reimpliment using iterate_over_mappings.
5782 (info_mappings_callback): New function, callback for above.
5783
5784 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
5785
c5ad026a
MK
57862002-01-01 Mark Kettenis <kettenis@gnu.org>
5787
d2a7c97a
MK
5788 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
5789 * i386-tdep.c: Include "elf-bfd.h".
5790 (process_note_abi_tag_sections): New function.
5791 (i386_gdbarch_init): Add code to recognize various OS/ABI
5792 combinations.
5793
c5ad026a
MK
5794 * maint.c (_initialize_maint_cmds): Add missing \ in
5795 string-literal.
5796
a1a5b71e 5797For older changes see ChangeLog-2001
c906108c
SS
5798\f
5799Local Variables:
5800mode: change-log
5801left-margin: 8
5802fill-column: 74
5803version-control: never
5804End:
This page took 0.537648 seconds and 4 git commands to generate.