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