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