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