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