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