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