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