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