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