]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
2002-05-09 Daniel Jacobowitz <drow@mvista.com>
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
bef35864
MS
12002-05-09 Michael Snyder <msnyder@redhat.com>
2
3 * remote-rdp.c (remote_rdp_can_run): Remove.
4
c55a3f73
TT
52002-05-09 Tom Tromey <tromey@redhat.com>
6
7 * jv-valprint.c (java_val_print): Handle `char' as a special case
8 of TYPE_CODE_INT.
9
b8d5e71d
MS
102002-05-09 Michael Snyder <msnyder@redhat.com>
11
12 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
13 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
14 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
15 str r(0123),[sp,#nn].
16 (arm_skip_prologue): Ditto. Also make disassembly
17 order-independent by placing it in a loop.
18
e2cd42dd
MS
192002-05-06 Michael Snyder <msnyder@redhat.com>
20
21 * stabsread.c (read_type): Add recognition for new attribute:
22 "@V;" means that an array type is actually a vector.
23 This is analogous to the vector flag that's been added to dwarf2.
24
3ce1502b
MK
252002-05-09 Mark Kettenis <kettenis@gnu.org>
26
27 * i386-tdep.h (i386_abi): New enum.
28 (struct gdbarch_tdep): Replace os_ident member with abi.
29 (i386_gdbarch_register_os_abi): New prototype.
30 * i386-tdep.c (i386_abi_names): New array.
31 (process_note_abi_tag_sections): Removed.
32 (process_note_sections): New function.
33 (i386_elf_abi_from_note, i386_elf_abi): New functions.
34 (struct i386_abi_handler): New struct.
35 (i386_abi_handler_list): New variable.
36 (i386_gdbarch_register_os_abi): New function.
37 (i386_gdbarch_init): Adapt for the changes given above.
38
084c156a
DJ
392002-05-08 Daniel Jacobowitz <drow@mvista.com>
40
41 * gregset.h: Say "GNU/Linux".
42
6599f021
EZ
432002-05-08 Elena Zannoni <ezannoni@redhat.com>
44
45 * gdbtypes.c : Add new builtin type for 64 bit vectors.
46 (build_gdbtypes): Build builtin_type_v2_float.
47 (_initialize_gdbtypes): Register new builtin type.
48
40af4b0c
AC
492002-05-08 Andrew Cagney <ac131313@redhat.com>
50
51 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
52 (clear_gdbarch_swap): New function.
53 (initialize_non_multiarch): Call.
54 (gdbarch_update_p): Before calling init(), swap out and clear the
55 existing architecture.
56 * gdbarch.c: Regenerate.
57
4fe84f46
JT
582002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
59
60 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
61 alphanbsd-tdep.c.
62
4015edd1
JT
632002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
64
65 * sh-nbsd-nat.c: Rename to...
66 * shnbsd-nat.c: ...this.
67 * sh-nbsd-tdep.c: Rename to...
68 * shnbsd-tdep.c: ...this.
69 * sh-nbsd-tdep.h: Rename to...
70 * shnbsd-tdep.h: ...this.
71 * config/sh/nbsd.mh: Use shnbsd-nat.o.
72 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
73
0e2bd219
RE
742002-05-08 Richard Earnshaw <rearnsha@arm.com>
75
76 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
77 concatenation for command help messages.
78
13a38d45
JT
792002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
80
81 * NEWS: Note new sh*-*-netbsdelf* configuration.
82 * configure.host: Set gdb_host_cpu to sh for all sh*.
83 (sh*-*-netbsdelf*): New host.
84 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
85 (sh*-*-netbsdelf*): New target.
86 * sh-nbsd-nat.c: New file.
87 * sh-nbsd-tdep.c: New file.
88 * sh-nbsd-tdep.h: New file.
89 * config/sh/nbsd.mh: New file.
90 * config/sh/nbsd.mt: New file.
91 * config/sh/nm-nbsd.h: New file.
92 * config/sh/tm-nbsd.h: New file.
93
d658f924
JT
942002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
95
96 * sh-tdep.c (sh_osabi_names): Declare.
97 (process_note_abi_tag_sections): New function.
98 (get_elfosabi): Ditto.
99 (sh_gdbarch_register_os_abi): Ditto.
100 (sh_dump_tdep): Ditto.
101 _initialize_sh_tdep): Use gdbarch_register to register
102 sh_gdbarch_init and sh_dump_tdep.
103 * config/sh/tm-sh.h (sh_osabi): Declare.
104 (gdbarch_tdep): Add sh_osabi and osabi_name members.
105
848cfffb
AC
1062002-05-07 Andrew Cagney <ac131313@redhat.com>
107
108 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
109 (thumb_scan_prologue): Ditto.
110 (arm_find_callers_reg): Ditto.
111 (arm_frame_chain): Ditto.
112 (arm_init_extra_frame_info): Ditto.
113 (arm_frame_saved_pc): Ditto.
114 (arm_pop_frame): Ditto.
115 (arm_push_return_address): New function.
116 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
117 call_dummy_location, call_dummy_breakpoint_offset_p,
118 call_dummy_breakpoint_offset, call_dummy_p,
119 call_dummy_stack_adjust_p, call_dummy_words,
120 sizeof_call_dummy_words, call_dummy_start_offset,
121 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
122 call_dummy_address, push_return_address and push_dummy_frame for
123 generic dummy frames.
124
e7d717c0
JT
1252002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
126
127 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
128 size computation for alloca.
129 (sh_fp_frame_init_saved_regs): Likewise.
130
7bbcf283
RE
1312002-05-07 Richard Earnshaw <rearnsha@arm.com>
132
133 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
134 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
135 * arm-tdep.c (arm_store_return_value): Use them.
136 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
137 * remote-rdp.c (remote_rdp_fetch_register): Use
138 ARM_MAX_REGISTER_RAW_SIZE.
139 (remote_rdp_store_register): Likewise.
140
4657573b
ML
1412002-05-07 Michal Ludvig <mludvig@suse.cz>
142
143 * dwarf2cfi.c: Code cleanup, removed unused variables,
144 added default labels to switch {} statements.
145 * x86-64-tdep.c: Ditto.
146 * x86-64-linux-nat.c: Ditto.
147
010f3b2f
JT
1482002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
149
150 * solib.h: Protect against multiple inclusion.
151
debd256d
JB
1522002-05-06 Jim Blandy <jimb@redhat.com>
153
154 Separate the job of reading the line number info statement program
155 header (...expialidocious) out into its own function.
156 * dwarf2read.c (struct line_head, struct filenames, struct
157 directories): Replace with...
158 (struct line_header): New structure, containing the full
159 contents of the statement program header, including the
160 include directory and file name tables.
161 (read_file_scope): If we have line number info, instead of just
162 calling dwarf_decode_lines to do all the work, call
163 dwarf_decode_line_header first to get a `struct line_header'
164 containing the data in the statement program header, and then
165 pass that to dwarf_decode_lines, which will pick up where that
166 left off. Be sure to clean up the `struct line_header' object.
167 (dwarf_decode_line_header, free_line_header, add_include_dir,
168 add_file_name): New functions.
169 (dwarf_decode_lines): Move all the code to read the statement
170 program header into dwarf_decode_line_header. Take the line
171 header it built as the first argument, instead of the offset to
172 the compilation unit's line number info. Use the new `struct
173 line_header' type instead of the old structures. No need to do
174 cleanups here now, since we don't allocate anything.
175 (dwarf2_statement_list_fits_in_line_number_section,
176 dwarf2_line_header_too_long): New complaints.
177
ac3aafc7
EZ
1782002-05-06 Elena Zannoni <ezannoni@redhat.com>
179
180 * gdbtypes.c (init_vector_type): New function.
181 (build_builtin_type_vec128): Simplify the representation of SIMD
182 registers.
183 (build_gdbtypes): Initialize new builtin vector types.
184 (_initialize_gdbtypes): Register new vector types with gdbarch.
185 (builtin_type_v4_float, builtin_type_v4_int32,
186 builtin_type_v8_int16, builtin_type_v16_int8,
187 builtin_type_v2_int32, builtin_type_v4_int16,
188 builtin_type_v8_int8): New (renamed) SIMD types.
189
13e49980
MK
1902002-05-06 Mark Kettenis <kettenis@gnu.org>
191
192 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
193 (i387_fill_fxsave): Likewise.
194
997b20b8
AO
1952002-05-05 Alexandre Oliva <aoliva@redhat.com>
196
197 * alpha-tdep.c (alpha_extract_return_value): Don't use
198 non-constant array size in prototype.
199
535c96ce
AC
2002002-05-04 Andrew Cagney <ac131313@redhat.com>
201
202 From Brian Taylor <briant at model dot com>:
203 * ui-out.c (ui_out_field_core_addr): Use the function
204 longest_local_hex_string_custom'to format addresses > 32 bits
205 wide.
206
207 * ui-out.c (ui_out_field_core_addr): Update comment.
208
bedfa57b
AC
2092002-05-04 Andrew Cagney <ac131313@redhat.com>
210
211 * stack.c (select_and_print_frame): Make static. Delete the
212 parameter `level'.
213 (func_command): Update call.
214 (select_frame_command): Delete code computing the frame level.
215 * frame.h (select_and_print_frame): Delete declaration.
216
f621c63e
AC
2172002-05-04 Andrew Cagney <ac131313@redhat.com>
218
219 * sparc-tdep.c (sparc_get_saved_register): Comment why
220 get_prev_frame call is safe.
221
0f7d239c
AC
2222002-05-04 Andrew Cagney <ac131313@redhat.com>
223
224 * frame.h (select_frame): Delete level parameter.
225 * stack.c (select_frame): Update. Use frame_relative_level to
226 obtain the frame's level.
227 (select_and_print_frame): Update call.
228 (select_frame_command): Ditto.
229 (up_silently_base): Ditto.
230 (down_silently_base): Ditto.
231 * ocd.c (ocd_start_remote): Ditto.
232 * remote-rdp.c (remote_rdp_open): Ditto.
233 * remote-mips.c (mips_initialize): Ditto.
234 (common_open): Ditto.
235 * remote-e7000.c (e7000_start_remote): Ditto.
236 * m3-nat.c (select_thread): Ditto.
237 * hppa-tdep.c (child_get_current_exception_event): Ditto.
238 (child_get_current_exception_event): Ditto.
239 * varobj.c (varobj_create): Ditto.
240 (varobj_update): Ditto.
241 (c_value_of_root): Ditto.
242 * tracepoint.c (finish_tfind_command): Ditto.
243 * corelow.c (core_open): Ditto.
244 * arch-utils.c (generic_prepare_to_proceed): Ditto.
245 * thread.c (info_threads_command): Ditto.
246 (switch_to_thread): Ditto.
247 * infrun.c (normal_stop): Ditto.
248 (restore_selected_frame): Ditto.
249 (restore_inferior_status): Ditto.
250 * breakpoint.c (insert_breakpoints): Ditto.
251 (watchpoint_check): Ditto.
252 (bpstat_stop_status): Ditto.
253 (do_enable_breakpoint): Ditto.
254 * blockframe.c (flush_cached_frames): Ditto.
255 (reinit_frame_cache): Ditto.
256
71d6c7b1
AC
2572002-05-04 Andrew Cagney <ac131313@redhat.com>
258
259 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
260 maintainer.
261
cda6c68a
JB
2622002-05-04 Jim Blandy <jimb@redhat.com>
263
264 * gdbtypes.c (replace_type): Doc fix.
265
5c1c87f0
AC
2662002-05-04 Andrew Cagney <ac131313@redhat.com>
267
268 * valprint.c (strcat_longest): Delete commented out function.
269 Update copyright.
270
cd9bfe15
AC
2712002-05-04 Andrew Cagney <ac131313@redhat.com>
272
273 * MAINTAINERS: Mark a29k as deleted.
274 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
275 Move new configurations to the top.
276 * configure.tgt: Remove a29k.
277 * config/a29k/tm-vx29k.h: Delete.
278 * config/a29k/vx29k.mt: Delete.
279 * config/a29k/tm-a29k.h: Delete.
280 * config/a29k/a29k-udi.mt: Delete.
281 * config/a29k/a29k.mt: Delete.
282 * a29k-tdep.c: Delete.
283 * remote-udi.c: Delete.
284 * remote-mm.c: Delete.
285 * remote-eb.c: Delete.
286 * remote-adapt.c: Delete.
287 * Makefile.in: Remove obsolete code.
288 * gdbserver/Makefile.in: Ditto.
289 * config/s390/s390x.mt: Ditto.
290 * config/s390/s390.mt: Ditto.
291 * config/sparc/sparclynx.mh: Ditto.
292 * config/sparc/linux.mh: Ditto.
293 * config/pa/hppaosf.mh: Ditto.
294 * config/pa/hppabsd.mh: Ditto.
295 * config/ns32k/nbsd.mt: Ditto.
296 * config/mips/vr5000.mt: Ditto.
297 * config/m68k/sun3os4.mh: Ditto.
298 * config/m68k/nbsd.mt: Ditto.
299 * config/m68k/m68klynx.mh: Ditto.
300 * config/m32r/m32r.mt: Ditto.
301 * config/i386/x86-64linux.mt: Ditto.
302 * config/i386/nbsdelf.mt: Ditto.
303 * config/i386/nbsd.mt: Ditto.
304 * config/i386/i386lynx.mh: Ditto.
305
bf0c5130
AC
3062002-05-04 Andrew Cagney <ac131313@redhat.com>
307
308 * target.c (debug_print_register): New function. Handle oversize
309 registers.
310 (debug_to_fetch_registers): Call.
311 (debug_to_store_registers): Call.
312
2ae1c2d2
JB
3132002-05-03 Jim Blandy <jimb@redhat.com>
314
13a393b0
JB
315 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
316 (read_type): Doc fix.
317 * gdbtypes.c (replace_type): Doc fix.
318
2ae1c2d2
JB
319 * stabsread.c (multiply_defined_struct): New complaint.
320 (read_struct_type): If the type we were passed isn't empty, or
321 incomplete, don't read the new struct type into it; complain,
322 and return the original type unchanged. Take a new `type_code'
323 argument, which is the type code for the new type.
324 (read_type): Rather than storing the type's type code here, pass
325 it as an argument to read_struct_type, and let that take care of
326 storing it. That way, we don't overwrite the original type code,
327 so read_struct_type can use it to decide whether we're overwriting
328 something we shouldn't.
329 (complain_about_struct_wipeout): New function.
330
8de9bdc4
AC
3312002-05-03 Andrew Cagney <ac131313@redhat.com>
332
333 * gdbarch.sh: Assert that gdbarch is non-NULL.
334 * gdbarch.c: Regenerate.
335
f773fdbb
JM
3362002-05-03 Jason Merrill <jason@redhat.com>
337
338 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
339 and return NULL.
340
0e04a514
ML
3412002-05-03 Michal Ludvig <mludvig@suse.cz>
342
343 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
344 (x86_64_dwarf2gdb_regno_map_length),
345 (x86_64_dwarf2_reg_to_regnum): Added.
346 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
347 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
348 (_initialize_x86_64_tdep): Synced with the change above.
349 (x86_64_skip_prologue): Reformulated message.
350
065432a8
PM
3512002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
352
353 * f-exp.y: Also use new prev_lexptr variable
354 to improve error reporting. Based on Michael Snyder
355 2002-04-24 dated patch to c-exp.y.
356 * jv-exp.y: Likewise.
357 * m2-exp.y: Likewise.
358
a3162708
EZ
3592002-05-02 Elena Zannoni <ezannoni@redhat.com>
360
361 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
362 we are dealing with vectors.
363
03620c38
PM
3642002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
365
366 * config/m68k/tm-nbsd.h: Obvious fix,
367 correct machine name.
368
6604db2e
PM
3692002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
370
371 * p-typeprint.c (pascal_type_print_base): Add support
372 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
373
0906b739
PM
3742002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
375
376 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
377 for fondamental pascal 'char' type.
378
e2625b33
PM
3792002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
380
381 * p-lang.h (is_pascal_string_type): Declaration changed,
382 new sixth argument of type char ** added.
383 * p-lang.c (is_pascal_string_type): Implementation
384 changed. Args length_pos, length_size, string_pos, char_size
385 can now be NULL. New argument arrayname set to the field
386 name of the char array. Return value set to char array
387 field index plus one.
388 * p-valprint.c (pascal_val_print): Adapt to new declaration of
389 is_pascal_string_type function.
390
cf17c188
AC
3912002-05-02 Andrew Cagney <cagney@redhat.com>
392
393 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
394 <cagney@redhat.com> change.
395 * gdbarch.c: Regenerate.
396
52bca491
AC
3972002-05-02 Andrew Cagney <cagney@redhat.com>
398
399 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
400 before probing for a new one. Detect errorenous gdbarch_init
401 functions.
402 * gdbarch.c: Regenerate.
403
d5e72505
AC
4042002-05-01 Andrew Cagney <cagney@redhat.com>
405
406 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
407 * config/mcore/tm-mcore.h: Ditto. Update copyright.
408 * config/v850/tm-v850.h: Ditto. Update copyright.
409
af566d9f
AC
4102002-04-30 Andrew Cagney <ac131313@redhat.com>
411
412 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
413 current_gdbarch.
414
880d85fa
MS
4152002-04-30 Michael Snyder <msnyder@redhat.com>
416
94c30b78
MS
417 * arm-tdep.c: Whitespace clean-ups.
418 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
419 should have been removed as part of 4/24 change.
420
6f5987a6
KB
4212002-04-30 Kevin Buettner <kevinb@redhat.com>
422
423 * rs6000-tdep.c: Added comment describing how fpscr register
424 numbers were chosen.
425
1a113c93
MS
4262002-04-30 Michael Snyder <msnyder@redhat.com>
427
428 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
429
9a6f53fe
EZ
4302002-04-29 Elena Zannoni <ezannoni@redhat.com>
431
432 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
433 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
434 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
435
11ed25ac
KB
4362002-04-29 Kevin Buettner <kevinb@redhat.com>
437
438 From Louis Hamilton <hamilton@redhat.com>:
439 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
440 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
441 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
442 not bfd-private xcoff data, to determine wordsize.
443 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
444
ae232405
AC
4452002-04-29 Andrew Cagney <ac131313@redhat.com>
446
447 GDB 5.2 released from 5.2 branch.
448
91fd20f7
ML
4492002-04-29 Michal Ludvig <mludvig@suse.cz>
450
451 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
452 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
453 (x86_64_register_info_table): Added comments with register numbers.
454
2dc5091b
EZ
4552002-04-29 Elena Zannoni <ezannoni@redhat.com>
456
457 * rs6000-tdep.c (rs6000_extract_return_value,
458 rs6000_store_return_value): Handle returning vectors.
459 (rs6000_gdbarch_init): Use
460 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
461 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
462 New function.
463 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
464 vectors.
465 (ppc_sysv_abi_push_arguments): Handle vector parameters.
466 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
467
2b9848d8
PM
4682002-04-24 Pierre Muller <ics.u-strasbg.fr>
469
470 * hpread.c (hpread_psymtab_to_symtab_1,
471 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
472 with fprintf_unfiltered (gdb_stderr,...).
473
f8d17dc5
PM
4742002-04-24 Pierre Muller <ics.u-strasbg.fr>
475
476 * remote-array.c (printf_monitor, write_monitor,
477 array_insert_breakpoint, array_remove_breakpoint ):
478 Replace fprintf (stderr,...
479 with fprintf_unfiltered (gdb_stderr,....
480 * remote-es.c: Likewise.
481 * remote-os9k.c: Likewise.
482 * remote-st.c: Likewise.
483
2f2f1ad1
AS
4842002-04-28 Andreas Schwab <schwab@suse.de>
485
486 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
487 linux-proc.o and gcore.o.
488
b6779aa2
AC
4892002-04-26 Michal Ludvig <mludvig@suse.cz>
490
491 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
492 code without frame pointers.
493
7e57f5f4
AC
4942002-04-26 Andrew Cagney <ac131313@redhat.com>
495
496 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
497 ON_STACK is needed.
498
2ceb85d0
BE
4992002-04-26 Ben Elliston <bje@redhat.com>
500
501 * target.c (do_xfer_memory): Correct reference to the new option
502 "trust-readonly-sections".
503
f5f8a009
EZ
5042002-04-26 Elena Zannoni <ezannoni@redhat.com>
505
506 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
507 * gdbtypes.c (recursive_dump_type): Output the vector flag.
508 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
509 vectors.
510 (read_array_type): Record the fact that this array type is really a
511 vector (i.e. are passed in by value).
512
5868c862
JT
5132002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
514
515 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
516 * alpha-tdep.c (alpha_sigcontext_addr): New function.
517 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
518 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
519 * alpha-linux-tdep.c: Include frame.h.
520 (alpha_linux_sigcontext_addr): New function.
521 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
522 alpha_linux_sigcontext_addr.
523 * alpha-osf1-tdep.c: Include gdbcore.h.
524 (alpha_osf1_sigcontext_addr): New function.
525 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
526 alpha_osf1_sigcontext_addr.
527 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
528 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
529
bfb01f37
AC
5302002-04-26 Andrew Cagney <ac131313@redhat.com>
531
532 * stack.c (selected_frame_level):
533 (select_frame): Do not set selected_frame_level.
534 * frame.h (selected_frame_level): Delete declaration.
535
15813d3f
AC
5362002-04-26 Andrew Cagney <ac131313@redhat.com>
537
538 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
539 convert_from_func_ptr-addr when AIX / PowerOpen.
540
6096c27a
AC
5412002-04-25 Andrew Cagney <ac131313@redhat.com>
542
543 * valops.c (hand_function_call): Call
544 generic_save_call_dummy_addr.
545 * frame.h (generic_save_call_dummy_addr): Declare.
546 * blockframe.c (struct dummy_frame): Add fields call_lo and
547 call_hi.
548 (generic_find_dummy_frame): Check for PC in range call_lo to
549 call_hi instead of entry_point_address.
550 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
551 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
552 (generic_save_call_dummy_addr): New function.
553
f510d44e
DM
5542002-04-24 David S. Miller <davem@redhat.com>
555
556 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
557 sparc_skip_prologue.
558 (sparc_skip_prologue): Kill frameless_p arg, and use line number
559 information to find prologue when possible.
560 (sparc_prologue_frameless_p): Call examine_prologue directly.
561 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
562 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
563 second argument.
564 (SKIP_PROLOGUE): Likewise.
565
15d72a92
JT
5662002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
567
568 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
569 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
570 indicate that the condition it was testing is always true.
571 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
572 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
573 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
574
accc6d1f
JT
5752002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
576
577 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
578 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
579 tdep->jb_pc and tdep->jb_elt_size.
580 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
581 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
582 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
583 * alpha-nat.c (get_longjmp_target): Remove.
584 (JB_ELEMENT_SIZE): Ditto.
585 (JB_PC): Ditto.
586 * alpha-tdep.c (alpha_get_longjmp_target): New function.
587 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
588 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
589 to alpha_get_longjmp_target.
590 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
591 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
592 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
593
1bfdc549
AC
5942002-04-25 Andrew Cagney <ac131313@redhat.com>
595
596 * README: Update to GDB 5.2.
597
1bd316f0
AC
5982002-04-25 Andrew Cagney <ac131313@redhat.com>
599
600 * gdbarch.sh (LC_ALL): Set to `c'.
601
2e5ff58c
TR
6022002-04-25 Theodore A. Roth <troth@verinet.com>
603
604 * avr-tdep.c: Ran through gdb_indent.sh.
605
e33ce519
TR
6062002-04-25 Theodore A. Roth <troth@verinet.com>
607
608 * MAINTAINERS: Add myself as AVR maintainer.
609 * NEWS: Note new target avr.
610
8818c391
TR
6112002-04-25 Theodore A. Roth <troth@verinet.com>
612
613 * Makefile.in: Add support for AVR target.
614 * configure.tgt: Add support for AVR target.
615 * avr-tdep.c: New file
616 * config/avr/avr.mt: New file.
617
79509c2d
TR
6182002-04-25 Theodore A. Roth <troth@verinet.com>
619
620 * MAINTAINERS: Add myself to write-after-approval.
621
dac8068e
PM
6222002-04-24 Pierre Muller <ics.u-strasbg.fr>
623
624 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
625 with fprintf_unfiltered (gdb_stderr,....
626
25bf3106
PM
6272002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
628
629 Fix PR gdb/508.
630 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
631
24467a86
PM
6322002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
633
634 * p-exp.y: Also use new prev_lexptr variable
635 to improve error reporting. Based on Michael Snyder
636 2002-04-24 dated patch to c-exp.y.
637
95b80706
JT
6382002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
639
640 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
641 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
642 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
643 to 0.
644 * config/alpha/tm-alpha.h: Remove forward decls of struct type
645 and struct value.
646 (FUNCTION_START_OFFSET): Remove.
647 (BREAKPOINT): Ditto.
648
e90cc612
JT
6492002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
650
651 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
652 * NEWS: Ditto.
653
6c72f9f9
JT
6542002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
655
656 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
657 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
658 alpha_linux_pc_in_sigtramp.
659 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
660 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
661 alpha_osf1_pc_in_sigtramp.
662 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
663 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
664 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
665 alphafbsd_pc_in_sigtramp.
666 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
667 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
668 alphanbsd_pc_in_sigtramp.
669 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
670 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
671
5e4f3379
JT
6722002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
673
674 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
675
da8ca43d
JT
6762002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
677
678 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
679 alphanbsd-tdep.c.
680 (alphanbsd-nat.o): New dependency list.
681 (alphanbsd-tdep.o): Ditto.
682 * NEWS: Note new native NetBSD/alpha configuration.
683 * alphanbsd-nat.c: New file.
684 * alphanbsd-tdep.c: Ditto.
685 * configure.host (alpha*-*-netbsd*): New host.
686 * configure.tgt (alpha*-*-netbsd*): New target.
687 * config/alpha/nbsd.mh: New file.
688 * config/alpha/nbsd.mt: Ditto.
689 * config/alpha/nm-nbsd.h: Ditto.
690 * config/alpha/tm-nbsd.h: Ditto.
691
36a6271d
JT
6922002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
693
694 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
695 (alpha-osf1-tdep.o): New dependency list.
696 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
697 and skip_sigtramp_frame members.
698 * alpha-linux-tdep.c: Include gdbcore.h.
699 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
700 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
701 * alpha-osf1-tdep.c: New file.
702 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
703 alpha-osf1-dep.c.
704 (alpha_frame_past_sigtramp_frame): New function.
705 (alpha_dynamic_sigtramp_offset): Ditto.
706 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
707 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
708 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
709 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
710 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
711 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
712 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
713 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
714 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
715 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
716 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
717 to find_solib_trampoline_target.
718 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
719 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
720 (SKIP_TRAMPOLINE_CODE): Remove.
721 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
722 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
723 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
724 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
725 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
726 (PROC_SIGTRAMP_MAGIC): Ditto.
727 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
728 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
729 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
730 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
731 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
732
2f4bc57b
JT
7332002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
734
735 * NEWS: Note that Alpha targets are now multi-arch.
736
665132f9
MS
7372002-04-24 Michael Snyder <msnyder@redhat.com>
738
739 * parser-defs.h (prev_lexptr): New external variable.
740 * parse.c (parse_exp_1): Set prev_lexptr to null before
741 calling the language-specific parser.
742 * c-exp.y (yylex): Set prev_lexptr to start of current token.
743 (yyerror): Use prev_lexptr in error reporting.
744
32872fa7
DJ
7452002-04-24 Daniel Jacobowitz <drow@mvista.com>
746
747 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
748 * gregset.h: If FILL_FPXREGSET is defined, provide
749 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
750 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
751 is defined, call fill_fpxregset.
752
57e76fac
MS
7532002-04-24 Roland McGrath <roland@frob.com>
754
755 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
756 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
757 (supply_gregset, supply_fpregset): New functions.
758
759 * gnu-nat.c (gnu_find_memory_regions): New function.
760 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
761 (gnu_xfer_memory): Add a cast.
762
f43845b3
MS
7632002-04-24 Michael Snyder <msnyder@redhat.com>
764
765 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
766 loop. Add handling for "str lr, [sp, #-4]!" and for saves
767 of argument regs ("str r(0123), [r11, #-nn"]).
768 (arm_skip_prologue): Better handling for frameless functions.
769 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
770 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
771
a0abec03
AC
772Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
773
774 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
775 NUM_PSEUDO_REGS can be used.
776
d7bd68ca
AC
7772002-04-24 Andrew Cagney <ac131313@redhat.com>
778
779 * arch-utils.h: Update copyright.
780
781 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
782 * gdbarch.h, gdbarch.c: Re-generate.
783
784 * inferior.h (IN_SIGTRAMP): Delete definition.
785 * arch-utils.c (legacy_pc_in_sigtramp): New function.
786 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
787
788 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
789 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
790 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
791 (find_proc_framesize): Ditto.
792 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
793 (alpha_init_extra_frame_info): Ditto.
794 * infrun.c (handle_inferior_event): Ditto.
795 (handle_inferior_event): Ditto.
796 (check_sigtramp2): Ditto.
797 * blockframe.c (create_new_frame): Ditto.
798 (get_prev_frame): Ditto.
799 * ppc-linux-tdep.c: Update comments.
800 * i386-linux-tdep.c: Update comments.
801 * breakpoint.c (bpstat_what): Update comment.
802
d06f167a
ML
8032002-04-24 Michal Ludvig <mludvig@suse.cz>
804
805 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
806 (regsets_store_inferior_registers): Removed cast to int from
807 ptrace() calls.
808 * gdbserver/regcache.h: Added declaration of struct inferior_info.
809
4867e41e
DM
8102002-04-24 David S. Miller <davem@redhat.com>
811
21d83aa5
DM
812 * i960-tdep.c (register_in_window_p): New function.
813 (i960_find_saved_register): Use it instead of
814 REGISTER_IN_WINDOW_P.
815 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
816
4867e41e
DM
817 * symtab.h (find_stab_function_addr): Kill extern.
818 * minsyms.c (find_stab_function_addr): Remove from here...
819 * dbxread.c: ... to here, and mark it static.
820
69cdf6a2
DM
8212002-04-20 David S. Miller <davem@redhat.com>
822
823 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
824 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
825
5a595886
DM
8262002-04-21 David S. Miller <davem@redhat.com>
827
828 * remote-vxsparc.c (vx_read_register): Fix typo, we want
829 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
830 (vx_write_register): Likewise.
831
1da1a192
JB
8322002-04-23 J. Brobecker <brobecker@gnat.com>
833
834 * source.c (is_regular_file): New function.
835 (openp): Check wether file to open is a regular file
836 to avoid opening directories.
837
baa6f10b
JT
8382002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
839
840 * findvar.c (extract_signed_integer): Cast printf argument
841 to suppress format warning.
842 (extract_unsigned_integer): Likewise.
843 * infcmd.c (registers_info): Likewise.
844 * top.c (get_prompt_1): Likewise.
845 * valops.c (value_assign): Likewise.
846 * valprint.c (print_decimal): Likewise.
847
b2c4da81
L
8482002-04-22 H.J. Lu (hjl@gnu.org)
849
850 * c-exp.y (typebase): Support
851
852 [long|long long|short] [signed|unsigned] [int|]
853
854 and
855
856 signed [long|long long|short] int
857
f267bd6a
JT
8582002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
859
860 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
861 and vax-tdep.h.
862 * vax-tdep.h: New file.
863 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
864 Make several routines static.
865 (vax_get_saved_register): New function.
866 (vax_gdbarch_init): New function.
867 (_initialize_vax_tdep): Register vax_gdbarch_init.
868 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
869 Remove macros now under the control of gdbarch.
870
da3c6d4a
MS
8712002-04-22 Michael Snyder <msnyder@redhat.com>
872
11d3b27d
MS
873 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
874 Some whitespace and coding standards tweaks.
da3c6d4a 875
a33f7558
JT
8762002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
877
878 * vax-tdep.c: Include regcache.h.
879 (vax_call_dummy_words): New.
880 (sizeof_vax_call_dummy_words): New.
881 (vax_fix_call_dummy): New function.
882 (vax_saved_pc_after_call): Ditto.
883 * config/vax/tm-vax.h: Don't include regcache.h.
884 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
885 (CALL_DUMMY): Remove.
886 (CALL_DUMMY_WORDS): Define.
887 (SIZEOF_CALL_DUMMY_WORDS): Define.
888 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
889
47a73475
MS
8902002-04-18 Michael Snyder <msnyder@redhat.com>
891
892 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
893
52efde73
JT
8942002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
895
896 * vax-tdep.c (vax_frame_chain): New function.
897 (vax_push_dummy_frame): Ditto.
898 (vax_pop_frame): Ditto.
899 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
900 (FRAMELESS_FUNCTION_INVOCATION): Use
901 generic_frameless_function_invocation_not.
902 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
903 (POP_FRAME): Use vax_pop_frame.
904
ea74468c
JT
9052002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
906
907 * vax-tdep.c (vax_store_struct_return): New function.
908 (vax_extract_return_value): Ditto.
909 (vax_store_return_value): Ditto.
910 (vax_extract_struct_value_address): Ditto.
911 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
912 vax_store_struct_return.
913 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
914 (STORE_RETURN_VALUE): Use vax_store_return_value.
915 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
916
5516aa92
JT
9172002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
918
919 * vax-tdep.c (vax_frame_saved_pc): New function.
920 (vax_frame_args_address_correct): Ditto.
921 (vax_frame_args_address): Ditto.
922 (vax_frame_locals_address): Ditto.
923 (vax_frame_num_args): Move code to be in proximity to
924 other frame-related functions.
925 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
926 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
927 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
928 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
929 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
930
36af0b35
L
9312002-04-22 H.J. Lu (hjl@gnu.org)
932
933 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
934 includedir.
935
ab62c900
JT
9362002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
937
938 * vax-tdep.c (vax_frame_init_saved_regs): New function.
939 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
940 (FRAME_INIT_SAVED_REGS): New macro.
941
7232b100
JT
9422002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
943
944 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
945
b70d2aee
JT
9462002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
947
948 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
949 where needed.
950 (fetch_osf_core_registers): Likewise.
951 (supply_gregset): Likewise.
952
a0e8a2d1
JB
9532002-04-22 J. Brobecker <brobecker@gnat.com>
954
955 * symfile.h (get_section_index): Define.
956 * symfile.c (get_section_index): New function.
957 * mdebugread.c (SC_IS_SBSS): New macro.
958 (SC_IS_BSS): Return true for the scBss storage class only, as
959 the scSBss storage class refers to the .sbss section.
960 (parse_partial_symbols): Discard the symbols which associated
961 section does not exist.
962 Make sure to use the .sbss section index for symbols which
963 storage class is scBss, rather than using the .bss section index.
964
51eb8b08
JT
9652002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
966
967 * vax-tdep.c: Update copyright years.
968 (vax_register_name): New function.
969 (vax_register_byte): Ditto.
970 (vax_register_raw_size): Ditto.
971 (vax_register_virtual_size): Ditto.
972 (vax_register_virtual_type): Ditto.
973 * config/vax/tm-vax.h: Update copyright years.
974 (REGISTER_NAMES): Remove.
975 (REGISTER_NAME): Define.
976 (REGISTER_BYTE): Use vax_register_byte.
977 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
978 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
979 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
980
6cc1c0a8
AC
9812002-04-21 Andrew Cagney <ac131313@redhat.com>
982
983 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
984 declaration
985 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
986
9319a2fe
DM
9872002-04-21 David S. Miller <davem@redhat.com>
988
989 * arch-utils.c (generic_prologue_frameless_p): Kill
990 SKIP_PROLOGUE_FRAMELESS_P code.
991 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
992 references.
993 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
994 * arc-tdep.c (arc_prologue_frameless_p): Implement.
995 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
996 references.
997 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
998 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
999 (sparc_gdbarch_init): Pass it to
1000 set_gdbarch_prologue_frameless_p.
a0e8a2d1 1001
e9ed6d01
JT
10022002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1003
1004 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
1005 (alphabsd-nat.o): New dependency list.
1006
36012033
JT
10072002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1008
1009 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
1010 alphafbsd-tdep.c.
1011 (alpha-linux-tdep.o): New dependency list.
1012 (alphafbsd-tdep.o): Likewise.
1013
3379287a
JT
10142002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1015
1016 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
1017 to here...
1018 * alpha-tdep.c: ...from here.
1019 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
1020
4bcbd6cb
JT
10212002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1022
1023 * config/alpha/tm-alpha.h: Move alpha_software_single_step
1024 prototype from here...
1025 * alpha-tdep.h: ...to here.
1026
b31da25e
AC
10272002-04-21 Andrew Cagney <ac131313@redhat.com>
1028
1029 * frame.h (selected_frame_level): Document as deprecated.
1030 (frame_relative_level): Declare.
1031 * stack.c (frame_relative_level): New function.
1032 (selected_frame_level): Document as deprecated.
1033 (select_frame): Do not set the selected_frame_level.
1034
1035 * stack.c (frame_info, record_selected_frame): Update.
1036 (frame_command, current_frame_command): Update.
1037 (up_silently_base, up_command, down_silently_base): Update.
1038 (down_command): Update.
1039 * inflow.c (kill_command): Update.
1040 * tracepoint.c (finish_tfind_command): Update.
1041 * corelow.c (core_open): Update.
1042 * thread.c (info_threads_command): Update.
1043 (do_captured_thread_select): Update.
1044 * infcmd.c (finish_command): Update.
1045 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
1046
9c1d6fe5
JT
10472002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1048
1049 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
1050
ab89facf
AC
10512002-04-21 Andrew Cagney <ac131313@redhat.com>
1052
1053 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
1054 type const.
1055
82a4efa1
JT
10562002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1057
1058 * alphafbsd-tdep.c: Update copyright years. Include
1059 alpha-tdep.h.
1060 (alphafbsd_use_struct_convention): Make static.
1061 (alphafbsd_init_abi): New function.
1062 (_initialize_alphafbsd_tdep): New function.
1063 * config/alpha/tm-fbsd.h: Update copyright years.
1064 (USE_STRUCT_CONVENTION): Remove.
1065
44dffaac
JT
10662002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1067
1068 * alpha-tdep.c (alpha_abi_handler): New structure to describe
1069 an Alpha ABI variant.
1070 (alpha_abi_handler_list): Declare.
1071 (alpha_gdbarch_register_os_abi): New function.
1072 (alpha_gdbarch_init): Give registered ABI variant handlers a
1073 chance to tweak the gdbarch once we have set up defaults.
1074 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
1075
65585be4
JT
10762002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1077
1078 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
1079 to standard_coerce_float_to_double.
1080 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
1081
d9b023cc
JT
10822002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1083
1084 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
1085 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
1086 from gdbarch_tdep rather than a constant.
1087 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
1088 the default text address for all Alpha Unix ABIs.
1089 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
1090 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
1091
dc129d82
JT
10922002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1093
1094 * alpha-tdep.h: New file. Includes several Alpha target constants
1095 taken from...
1096 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
1097 let gdbarch deal with.
1098 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
1099 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
1100 to dependency list.
1101 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
1102 Alpha target register names.
1103 * alphabsd-nat.c: Likewise.
1104 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
1105 Alpha target register names. Make serveral routines static.
1106 (alpha_get_saved_register): New function.
1107 (alpha_abi_names): New.
1108 (process_note_abi_tag_sections): New function.
1109 (get_elfosabi): New function.
1110 (alpha_gdbarch_init): New function.
1111 (alpha_dump_tdep): New function.
1112 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
1113
d49d1e0a
AC
11142002-04-21 Andrew Cagney <ac131313@redhat.com>
1115
1116 * frame.c (find_saved_register): Delete #ifdef
1117 HAVE_REGISTER_WINDOWS code.
1118 * config/sparc/tm-sparc.h: Update comments.
1119 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
1120
92e8c9ed
AC
11212002-04-21 Andrew Cagney <ac131313@redhat.com>
1122
1123 * i960-tdep.c (i960_find_saved_register): New function.
1124 (i960_get_saved_register): New function.
1125 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
1126 (i960_get_saved_register): Declare.
1127 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
1128
e1925118
DM
11292002-04-20 David S. Miller <davem@redhat.com>
1130
1131 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
1132
29673b29
AC
11332002-04-20 Andrew Cagney <ac131313@redhat.com>
1134
1135 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
1136 instead of NUM_PSEUDO_REGS.
1137
6c86dcd5
DM
11382002-04-20 David S. Miller <davem@redhat.com>
1139
1140 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
1141 GDB_MULTI_ARCH_PARTIAL
1142 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
1143 define, let tm-sp64.h do it.
1144
aa40ec90
JT
11452002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
1146
1147 * frame.c (find_saved_register): Avoid a NULL pointer
1148 dereference and actually walk the frame list.
1149
0f79675b
AC
11502002-04-20 Andrew Cagney <ac131313@redhat.com>
1151
1152 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
1153 sorted in most most-recent-used order. Document.
1154 * gdbarch.h, gdbarch.c: Regenerate.
1155
c04a1aa8
DJ
11562002-04-20 Daniel Jacobowitz <drow@mvista.com>
1157
1158 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
1159 (add_inferior): Call create_register_cache.
1160 (clear_inferiors): Call free_register_cache.
1161 (inferior_regcache_data, set_inferior_regcache_data): New functions.
1162 * gdbserver/regcache.c (struct inferior_regcache_data): New.
1163 (registers): Remove.
1164 (get_regcache): New function.
1165 (create_register_cache, free_register_cache): New functions.
1166 (set_register_cache): Don't initialize the register cache here.
1167 (registers_to_string, registers_from_string, register_data): Call
1168 get_regcache.
1169 * gdbserver/regcache.h: Add prototypes.
1170 * gdbserver/server.h: Likewise.
1171
611cb4a5
DJ
11722002-04-20 Daniel Jacobowitz <drow@mvista.com>
1173
1174 * gdbserver/mem-break.c: New file.
1175 * gdbserver/mem-break.h: New file.
1176 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
1177 dependencies.
1178 * gdbserver/inferiors.c (struct inferior_info): Add target_data
1179 member.
1180 (clear_inferiors): Free target_data member if set.
1181 (inferior_target_data, set_inferior_target_data): New functions.
1182 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
1183 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
1184 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
1185 (struct inferior_linux_data): New.
1186 (linux_create_inferior): Use set_inferior_target_data.
1187 (linux_attach): Likewise. Call add_inferior.
1188 (linux_wait_for_one_inferior): New function.
1189 (linux_wait): Call it.
1190 (linux_write_memory): Add const.
1191 (initialize_low): Call set_breakpoint_data.
1192 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
1193 handling members.
1194 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
1195 call.
1196 * gdbserver/server.h: Include mem-break.h. Update inferior.c
1197 prototypes.
1198 * gdbserver/target.c (read_inferior_memory)
1199 (write_inferior_memory): New functions.
1200 * gdbserver/target.h (read_inferior_memory)
1201 (write_inferior_memory): Change macros to prototypes.
1202 (struct target_ops): Update comments. Add const to write_memory
1203 definition.
1204
f91305dd 12052002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
1206
1207 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
1208 instead of ->prev.
1209 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
1210 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
1211 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
1212 instead of ->prev.
1213
73d322b1
EZ
12142002-04-19 Elena Zannoni <ezannoni@redhat.com>
1215
1216 Fix PR gdb/471.
1217 * gdbtypes.c (init_simd_type): Rewrite using new functions.
1218 (build_builtin_type_vec128): Ditto.
1219 (append_composite_type_field): Fix calculation of type length in
1220 union case.
1221
ccd9a834
EZ
12222002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
1223
1224 * config/djgpp/README: Update.
1225
1226 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
1227 compiler warnings.
1228
a57f9e49
JT
12292002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
1230
1231 * alpha-tdep.c (setup_arbitrary_frame): Rename...
1232 (alpha_setup_arbitrary_frame): ...to this.
1233 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
1234 for alpha_setup_arbitrary_frame.
1235
f4f9705a
AC
12362002-04-18 Andrew Cagney <cagney@redhat.com>
1237
1238 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
1239 * gdbarch.h, gdbarch.c: Regenerate.
1240
1241 * defs.h (breakpoint_from_pc_fn): Delete type definition.
1242 * target.h (memory_breakpoint_from_pc): Update declaration.
1243 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
1244
1245 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
1246 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
1247 * mem-break.c (memory_breakpoint_from_pc): Ditto.
1248 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
1249 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
1250 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
1251 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
1252 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
1253 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
1254 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
1255 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
1256 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
1257
1258 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
1259 const pointer.
1260 * monitor.c (monitor_insert_breakpoint): Ditto.
1261 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
1262
1263 * config/mcore/tm-mcore.h: Update copyright.
1264 * mem-break.c: Ditto.
1265 * xstormy16-tdep.c: Ditto.
1266
29f319b8
PM
12672002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
1268
1269 * p-exp.y: Add precedence rule for '^' token.
1270 This removes the shift/reduce conflicts.
1271 Remove the comment concerning these shift/reduce conflicts.
1272
ebeac11a
EZ
12732002-04-18 Elena Zannoni <ezannoni@redhat.com>
1274
1275 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
1276 (registers_powerpc_nofp): New register set for processors
1277 without floating point unit.
1278
27c31547
DM
12792002-04-18 David S. Miller <davem@redhat.com>
1280
1281 * MAINTAINERS: Add myself to write-after-approval.
1282
47a73475
MS
12832002-04-17 Michael Snyder <msnyder@redhat.com>
1284
1285 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
1286
953836b2
AC
12872002-04-17 Andrew Cagney <ac131313@redhat.com>
1288
1289 * rs6000-tdep.c (frame_initial_stack_address): Use
1290 frame_register_read to read the alloca_reg.
1291
8b0d4340
AC
12922002-04-17 Andrew Cagney <ac131313@redhat.com>
1293
1294 * frame.c (find_saved_register): Find saved registers in the next
1295 not prev frame.
1296 Fix PR gdb/365.
1297
d8864532
AC
12982002-04-17 Andrew Cagney <ac131313@redhat.com>
1299
1300 * gdbarch.sh (LANG): Set to ``c''.
1301
36cc83a3
AC
13022002-04-15 Andrew Cagney <ac131313@redhat.com>
1303
1304 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
1305
2f4150cc 13062002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
1307
1308 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
1309 Update copyright.
1310
628703c6 1311 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc
AC
1312 Also fix PR gdb/391.
1313
56157b4a
AC
13142002-04-14 Andrew Cagney <ac131313@redhat.com>
1315
1316 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
1317 * aclocal.m4, configure: Re-generate.
1318 Fix PR gdb/391.
1319
6d1e3329
EZ
13202002-04-14 Elena Zannoni <ezannoni@redhat.com>
1321
1322 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
1323 instead of tm_print_insn.
1324
cb06fa07
EZ
13252002-04-14 Elena Zannoni <ezannoni@redhat.com>
1326
1327 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
1328
f208ba17
AC
13292002-04-14 Andrew Cagney <ac131313@redhat.com>
1330
1331 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
1332 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
1333 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
1334
20f01a46
DH
13352002-04-12 Don Howard <dhoward@redhat.com>
1336
1337 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
1338 max_user_call_depth.
1339 (init_cmd_lists): Initialize the new value;
1340 * cli/cli-script.c (execute_user_command): Limit the call depth of
1341 user defined commands. This avoids a core-dump when user commands
1342 are infinitly recursive.
1343
a88376a3
KB
13442002-04-12 Kevin Buettner <kevinb@redhat.com>
1345
1346 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
1347 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
1348 from tdep struct instead of DEFAULT_LR_SAVE.
1349 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
1350 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
1351 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
1352
f2172603
MS
13532002-04-12 Michael Snyder <msnyder@redhat.com>
1354
694f61fb 1355 * Remote.c: Spelling fix.
20fe79c8
MS
1356 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
1357 If no symbol found for "sbrk", try "_sbrk".
1358 (make_output_phdrs): Use bfd_section_name.
1359 (gcore_copy_callback): Use bfd_section_name.
62995fc4 1360 * eval.c: Indentation fix-ups.
169a7369
MS
1361 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
1362 in case it gets applied to an address that is already
1363 in the instruction space.
de74f71f
MS
1364 * cli/cli-decode.c (help_list): Allow long lines to wrap.
1365 * symfile.c: Fix indentation, long lines.
f2172603
MS
1366 * source.c: White space fix-up.
1367
cda5a58a
AC
13682002-04-12 Andrew Cagney <cagney@redhat.com>
1369
1370 * defs.h (read_relative_register_raw_bytes): Delete declaration.
1371 * frame.c (frame_register_read): New function. Return non-zero on
1372 success.
1373 (read_relative_register_raw_bytes_for_frame): Delete.
1374 (read_relative_register_raw_bytes): Delete.
1375 * frame.h (frame_register_read): Declare.
1376 * d30v-tdep.c: Update Copyright. Use frame_register_read.
1377 * sh-tdep.c: Ditto.
1378 * infcmd.c (do_registers_info): Ditto.
1379 * hppa-tdep.c: Ditto.
1380 * rs6000-tdep.c: Ditto.
1381 * h8500-tdep.c: Ditto.
1382 * mips-tdep.c: Ditto.
1383 * h8300-tdep.c: Ditto.
1384 * z8k-tdep.c: Ditto.
1385
2ea5f656
KB
13862002-04-12 Kevin Buettner <kevinb@redhat.com>
1387
1388 From Jimi X <jimix@watson.ibm.com>:
1389 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
1390 64-bit SysV ABI.
1391
27b15785
KB
13922002-04-12 Kevin Buettner <kevinb@redhat.com>
1393
1394 From Jimi X <jimix@watson.ibm.com>:
1395 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
1396 bfd info.
1397
5d57ee30
KB
13982002-04-12 Kevin Buettner <kevinb@redhat.com>
1399
1400 From Jimi X <jimix@watson.ibm.com>:
1401 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
1402 register sets for these processor variants.
1403
bc1e36ca
DJ
14042002-04-11 Daniel Jacobowitz <drow@mvista.com>
1405
1406 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
1407 registers which are allowed to fail to store.
1408 * gdbserver/linux-low.h (linux_target_ops): Likewise.
1409 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
1410 (ppc_cannot_store_register): FPSCR may not be storable.
1411 * regformats/reg-ppc.dat: Support FPSCR.
1412
e3f36dbd
KB
14132002-04-11 Kevin Buettner <kevinb@redhat.com>
1414
1415 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
1416 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
1417 Add fpscr as an invalid/unfetchable register.
1418 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
1419 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
1420 (fill_fpregset): Add support for register fpscr.
1421 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
1422 (fill_gregset): Account for the fact that register ``mq'' might
1423 not exist.
1424 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
1425 (registers_power): Add fpscr to register set at slot 71.
1426 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
1427 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
1428
943c9c25
MS
14292002-04-11 Michael Snyder <msnyder@redhat.com>
1430
1431 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
1432 * configure: Regenerate.
1433 * config.in: Regenerate.
1434 * acconfig.h: Add define for _SYSCALL32.
1435 * core-sol2.c: Remove #define _SYSCALL32.
1436 * solib-legacy.c: Remove #define _SYSCALL32.
1437
d8c0a2e7
AC
14382002-04-10 Andrew Cagney <ac131313@redhat.com>
1439
1440 * stack.c (select_frame): Cleanup internal error message, do not
1441 use %p.
1442
7cc19214
AC
14432002-04-10 Andrew Cagney <ac131313@redhat.com>
1444
1445 * stack.c (select_frame): Check that selected_frame and the
1446 specified level are as expected.
1447 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
1448 Update copyright.
1449 * frame.h (struct frame_info): Add field `level'. Update
1450 copyright.
1451 Work-in-progress PR gdb/464.
1452
67a2b77e
AC
14532002-04-10 Andrew Cagney <ac131313@redhat.com>
1454
1455 * maint.c (maint_print_section_info): Rename print_section_info.
1456 (print_bfd_section_info, print_objfile_section_info): Update.
1457 * inferior.h (struct gdbarch): Add opaque declaration.
1458 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
1459 * gdbarch.h: Regenerate.
1460
8cfda98c
ML
14612002-04-10 Michal Ludvig <mludvig@suse.cz>
1462
1463 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
1464 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
1465 (kernel_u_size): Added.
1466 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
1467 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
1468
ca439ad2
JI
14692002-04-04 Jim Ingham <jingham@apple.com>
1470
1471 * valarith.c (find_size_for_pointer_math): New function, either returns
1472 the size for a pointer's target, returns 1 for void *, or errors for
1473 incomplete types.
1474 (value_add, value_sub): use find_size_for_pointer_math.
1475
2f2893d9
DJ
14762002-04-09 Daniel Jacobowitz <drow@mvista.com>
1477
1478 * linux-low.c (linux_look_up_symbols): New hook.
1479 (linux_target_ops): Add linux_look_up_symbols.
1480 * remote-utils.c (decode_address): New function.
1481 (look_up_one_symbol): New function.
1482 * server.c (handle_query): Call target look_up_symbols hook.
1483 * server.h (look_up_one_symbol): Add prototype.
1484 * target.h (struct target_ops): Add look_up_symbols hook.
1485
2ec06d2e
DJ
14862002-04-09 Daniel Jacobowitz <drow@mvista.com>
1487
d64b8841
DJ
1488 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
1489 * ChangeLog: Correct paths in last ChangeLog entry.
1490
14912002-04-09 Daniel Jacobowitz <drow@mvista.com>
1492
1493 * gdbserver/linux-low.h: Remove obsolete prototypes.
2ec06d2e
DJ
1494 (struct linux_target_ops): New.
1495 (extern the_low_target): New.
d64b8841 1496 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2ec06d2e
DJ
1497 (register_addr): Use the_low_target explicitly.
1498 (fetch_register): Likewise.
1499 (usr_fetch_inferior_registers): Likewise.
1500 (usr_store_inferior_registers): Likewise.
d64b8841 1501 * gdbserver/linux-arm-low.c (num_regs): Remove.
2ec06d2e
DJ
1502 (arm_num_regs): Define.
1503 (arm_regmap): Renamed from regmap, made static.
1504 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
1505 made static.
1506 (arm_cannot_store_register): Renamed from cannot_store_register,
1507 made static.
1508 (the_low_target): New.
d64b8841 1509 * gdbserver/linux-i386-low.c (num_regs): Remove.
2ec06d2e
DJ
1510 (i386_num_regs): Define.
1511 (i386_regmap): Renamed from regmap, made static.
1512 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
1513 made static.
1514 (i386_cannot_store_register): Renamed from cannot_store_register,
1515 made static.
1516 (the_low_target): New.
d64b8841 1517 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2ec06d2e
DJ
1518 (ia64_num_regs): Define.
1519 (ia64_regmap): Renamed from regmap, made static.
1520 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
1521 made static.
1522 (ia64_cannot_store_register): Renamed from cannot_store_register,
1523 made static.
1524 (the_low_target): New.
d64b8841 1525 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2ec06d2e
DJ
1526 (m68k_num_regs): Define.
1527 (m68k_regmap): Renamed from regmap, made static.
1528 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
1529 made static.
1530 (m68k_cannot_store_register): Renamed from cannot_store_register,
1531 made static.
1532 (the_low_target): New.
d64b8841 1533 * gdbserver/linux-mips-low.c (num_regs): Remove.
2ec06d2e
DJ
1534 (mips_num_regs): Define.
1535 (mips_regmap): Renamed from regmap, made static.
1536 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1537 made static.
1538 (mips_cannot_store_register): Renamed from cannot_store_register,
1539 made static.
1540 (the_low_target): New.
d64b8841 1541 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2ec06d2e
DJ
1542 (ppc_num_regs): Define.
1543 (ppc_regmap): Renamed from regmap, made static.
1544 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1545 made static.
1546 (ppc_cannot_store_register): Renamed from cannot_store_register,
1547 made static.
1548 (the_low_target): New.
d64b8841 1549 * gdbserver/linux-s390-low.c (num_regs): Remove.
2ec06d2e
DJ
1550 (s390_num_regs): Define.
1551 (s390_regmap): Renamed from regmap, made static.
1552 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1553 made static.
1554 (s390_cannot_store_register): Renamed from cannot_store_register,
1555 made static.
1556 (the_low_target): New.
d64b8841 1557 * gdbserver/linux-sh-low.c (num_regs): Remove.
2ec06d2e
DJ
1558 (sh_num_regs): Define.
1559 (sh_regmap): Renamed from regmap, made static.
1560 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1561 made static.
1562 (sh_cannot_store_register): Renamed from cannot_store_register,
1563 made static.
1564 (the_low_target): New.
d64b8841 1565 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2ec06d2e
DJ
1566 (the_low_target): New.
1567
96cb11df
AC
15682002-04-09 Andrew Cagney <ac131313@redhat.com>
1569
1570 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
1571 override FP_REGNUM with frame->fp. Update copyright.
1572 * parse.c (num_std_regs, std_regs): Delete.
1573 (target_map_name_to_register): Do not search std_regs. Update
1574 function description.
1575 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
1576 declarations. Update copyright.
1577 Fix PR gdb/251.
1578
c3a3ccc7
DJ
15792002-04-09 Daniel Jacobowitz <drow@mvista.com>
1580
1581 * gdbserver/Makefile.in: Add stamp-h target.
1582 * gdbserver/configure.in: Create stamp-h.
1583 * gdbserver/configure: Regenerated.
1584
ce3a066d
DJ
15852002-04-09 Daniel Jacobowitz <drow@mvista.com>
1586
1587 * gdbserver/inferiors.c: New file.
1588 * gdbserver/target.c: New file.
1589 * gdbserver/target.h: New file.
1590 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
1591 dependencies.
1592 * gdbserver/linux-low.c (inferior_pid): New static variable,
1593 moved from server.c.
1594 (linux_create_inferior): Renamed from create_inferior.
1595 Call add_inferior. Return 0 on success instead of a PID.
1596 (linux_attach): Renamed from myattach.
1597 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1598 (linux_thread_alive): Renamed from mythread_alive.
1599 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1600 child dies.
1601 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1602 (regsets_store_inferior_registers): Correct error message.
1603 Add missing ``return 0''.
1604 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1605 (linux_store_registers): Renamed from store_inferior_registers.
1606 (linux_read_memory): Renamed from read_inferior_memory.
1607 (linux_write_memory): Renamed from write_inferior_memory.
1608 (linux_target_ops): New structure.
1609 (initialize_low): Call set_target_ops ().
1610 * gdbserver/remote-utils.c (unhexify): New function.
1611 (hexify): New function.
1612 (input_interrupt): Send signals to ``signal_pid''.
1613 * gdbserver/server.c (inferior_pid): Remove.
1614 (start_inferior): Update create_inferior call.
1615 (attach_inferior): Call add_inferior.
1616 (handle_query): New function.
1617 (main): Call handle_query for `q' packets.
1618 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
1619 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1620
0729219d
DJ
16212002-04-09 Daniel Jacobowitz <drow@mvista.com>
1622
1623 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
1624 dependencies.
1625 * gdbserver/configure.in: Check for <string.h>
1626 * gdbserver/configure: Regenerate.
1627 * gdbserver/config.in: Regenerate.
1628 * gdbserver/gdbreplay.c: Include needed system headers.
1629 (remote_open): Remove strchr prototype.
1630 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1631 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
1632 (supply_register_by_name): Likewise.
1633 (collect_register): Change buf argument to void *.
1634 (collect_register_by_name): Likewise.
1635 * gdbserver/regcache.h: Add missing prototypes.
1636 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1637 * gdbserver/server.c (handle_query): New function.
1638 (attached): New static variable, moved out of main.
1639 (main): Quiet longjmp clobber warnings.
1640 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1641 * gdbserver/utils.c (error): Remove NORETURN.
1642 (fatal): Likewise.
1643
97658e92
DJ
16442002-04-09 Daniel Jacobowitz <drow@mvista.com>
1645
1646 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
1647 after the last symbol in a block.
1648
6044e3eb
PM
16492002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
1650
1651 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
1652 is non zero as a found symbol.
1653
0406ec40
AC
16542002-04-08 Andrew Cagney <ac131313@redhat.com>
1655
1656 * findvar.c: Include "builtin-regs.h".
1657 (value_of_register): Call value_of_builtin_reg when applicable.
1658 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
1659 (target_map_name_to_register): Call
1660 builtin_reg_map_name_to_regnum.
1661 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
1662 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
1663 (builtin_regs_h): Define.
1664 (builtin-regs.o): New target.
1665 (findvar.o): Add $(builtin_regs_h).
1666 * builtin-regs.c, builtin-regs.h: New files.
1667 * std-regs.c: New file.
1668 Partial fix for PR gdb/251.
1669
56a6dfb9
KB
16702002-04-08 Kevin Buettner <kevinb@redhat.com>
1671
1672 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
1673 it's no longer required.
1674
3a808432
AC
16752002-04-08 Andrew Cagney <ac131313@redhat.com>
1676
1677 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
1678
7c40d541
KB
16792002-04-08 Kevin Buettner <kevinb@redhat.com>
1680
1681 From Jimi X <jimix@watson.ibm.com>:
1682 * rs6000-tdep.c (rs6000_software_single_step): Use
1683 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
1684 and size. Use target_insert_breakpoint() and
1685 target_remove_breakpoint() to insert and remove breakpoints
1686 instead of explicit memory reads and writes.
1687
cc9836a8
KB
16882002-04-08 Kevin Buettner <kevinb@redhat.com>
1689
1690 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
1691 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
1692 ELF_OBJECT_FORMAT ifdef.
1693
7495d1dc
KB
16942002-04-08 Kevin Buettner <kevinb@redhat.com>
1695
1696 From Jimi X <jimix@watson.ibm.com>:
1697 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
1698
4288e836
KB
16992002-04-08 Kevin Buettner <kevinb@redhat.com>
1700
1701 From Jimi X <jimix@watson.ibm.com>:
1702 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
1703 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
1704
a4e4e501
MK
17052002-04-07 Mark Kettenis <kettenis@gnu.org>
1706
1707 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
1708 s/asprintf/xasprintf/.
1709 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
1710
006defba
AC
17112002-04-07 Andrew Cagney <ac131313@redhat.com>
1712
1713 I believe Jeff Law denies responsability for this one:
1714 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
1715 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
1716 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
1717 Work-around for PR gdb/366.
1718
7aa83cac
EZ
17192002-04-07 Elena Zannoni <ezannoni@redhat.com>
1720
1721 * remote-e7000.c (write_small, e7000_read_inferior_memory,
1722 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
1723 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
1724
cf1fcca1
EZ
17252002-04-07 Elena Zannoni <ezannoni@redhat.com>
1726
1727 * sh-tdep.c (sh_fp_frame_init_saved_regs,
1728 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
1729 information.
1730
3f289e6f
AC
17312002-04-07 Andrew Cagney <ac131313@redhat.com>
1732
1733 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
1734 maintainer.
1735
129188f6
AC
17362002-04-07 Andrew Cagney <ac131313@redhat.com>
1737
1738 * README (Reporting Bugs in GDB): Document the bug web page as the
1739 prefered way of submitting bugs.
1740 Fix PR gdb/402.
1741
1200cd6e
AC
17422002-04-06 Andrew Cagney <ac131313@redhat.com>
1743
1744 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
1745 -1. Update comment.
1746 * gdbarch.h, gdbarch.c: Re-generate.
1747
2853c33c
AS
17482002-04-07 Andreas Schwab <schwab@suse.de>
1749
1750 * m68klinux-nat.c (fill_fpregset): Properly pass address of
1751 buffer to regcache_collect.
1752
c2169756
AC
17532002-04-06 Andrew Cagney <ac131313@redhat.com>
1754
1755 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
1756 * gdbarch.c, gdbarch.h: Re-generate.
1757
25f1b008
AC
17582002-04-06 Andrew Cagney <ac131313@redhat.com>
1759
1760 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
1761 declaration. Fix -Werror.
1762
59263426
DJ
17632002-04-05 Daniel Jacobowitz <drow@mvista.com>
1764
1765 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
1766 * gdbarch.c: Regenerate.
1767
f5db4da3
MS
17682002-04-05 Michael Snyder <msnyder@redhat.com>
1769
80f8a6eb
MS
1770 * breakpoint.c (clear_command): Rewrite middle section to
1771 combine two loops with identical control conditions.
1772 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
1773 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
1774
ad3dcc5c
L
17752002-04-05 H.J. Lu (hjl@gnu.org)
1776
1777 * solib-svr4.c (bkpt_names): Add "__start".
1778
f32e7a74
AC
17792002-04-04 Andrew Cagney <ac131313@redhat.com>
1780
1781 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
1782 as test for 64 bit target.
1783
8227c0ff
AC
17842002-04-05 Andrew Cagney <ac131313@redhat.com>
1785
1786 * h8500-tdep.c (h8500_write_fp): Delete function.
1787 * dwarf2cfi.c (cfi_write_fp): Document as not used.
1788 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
1789 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
1790 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
1791 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
1792 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
1793 (s390_write_fp):
1794 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
1795 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
1796 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
1797 (d10v_write_fp): Delete function.
1798 * inferior.h (write_fp, generic_target_write_fp): Delete
1799 declarations.
1800 * regcache.c (generic_target_write_fp): Delete function.
1801 (write_fp): Delete function.
1802 * gdbarch.sh (TARGET_WRITE_FP): Delete.
1803 * gdbarch.h, gdbarch.c: Regenerate.
1804 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
1805 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
1806 (sparc64_write_fp): Delete declaration.
1807 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
1808 (h8500_write_fp): Delete declaration.
1809
2757dd86
AC
18102002-04-04 Andrew Cagney <ac131313@redhat.com>
1811
1812 * sparc-tdep.c (sparc64_write_fp): Delete.
1813 (sparc_push_dummy_frame): Replace write_fp call with code to store
1814 the FP directly.
1815 (sparc_gdbarch_init): Do not initialize write_fp.
1816
c69255e1
KB
18172002-04-05 Kevin Buettner <kevinb@redhat.com>
1818
1819 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
1820 clause.
1821
ae767bfb
JB
18222002-03-29 Jim Blandy <jimb@redhat.com>
1823
1824 * stack.c (get_selected_block): Add new argument `addr_in_block',
1825 used to return the exact code address we used to select the block,
1826 not just the block.
1827 * blockframe.c (get_frame_block, get_current_block): Same.
1828 * frame.h (get_frame_block, get_current_block,
1829 get_selected_block): Update declarations.
1830 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
1831 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
1832
84d2ac95
MS
18332002-04-05 Michael Snyder <msnyder@redhat.com>
1834
1835 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
1836 warning message.
1837
596aa3bf
JB
18382002-04-05 J. Brobecker <brobecker@gnat.com>
1839
1840 * utils.c (xfullpath): New function.
1841 * defs.h (xfullpath): Add declaration.
1842 * source.c (openp): Use xfullpath in place of gdb_realpath to
1843 avoid resolving the basename part of filenames when the
1844 associated file is a symbolic link. This fixes a potential
1845 inconsistency between the filenames known to GDB and the
1846 filenames it prints in the annotations.
1847 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
1848 to be able to match a filename with either the real filename, or
1849 the name of any symbolic link to this file.
1850 (lookup_partial_symtab): Ditto.
1851
c02f5703
MS
18522002-04-04 Michael Snyder <msnyder@redhat.com>
1853
1854 * breakpoint.c: Add support for hardware breakpoints in overlays.
1855 (overlay_events_enabled): New state variable.
1856 (insert_breakpoints): Use overlay_events_enabled to decide
1857 whether to attempt to set a breakpoint at the overlay load addr.
1858 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1859 (remove_breakpoint): Use overlay_events_enabled to decide
1860 whether breakpoints need to be removed from overlay load addr.
1861 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1862 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
1863 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
1864 disable_overlay_breakpoints): Update overlay_events_enabled.
1865
5fb290d7
DJ
18662002-04-04 Daniel Jacobowitz <drow@mvista.com>
1867
1868 * dwarf2read.c (struct function_range): New.
1869 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
1870 (check_cu_functions): New.
1871 (read_file_scope): Initialize global function lists.
1872 Call dwarf_decode_line after processing children.
1873 (read_func_scope): Add to global function list.
1874 (dwarf_decode_lines): Call check_cu_functions everywhere
1875 record_line is called. Call record_line with a linenumber
1876 of 0 to mark sequence ends.
1877
7b3fabf0
ML
18782002-04-04 Michal Ludvig <mludvig@suse.cz>
1879
1880 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
1881 change sync with glibc.
1882
bce58c09
JB
18832002-04-03 Jim Blandy <jimb@redhat.com>
1884
1885 * configure.in: Call AC_C_INLINE.
1886 * configure: Regenerated.
1887
2fccf04a
DJ
18882002-04-01 Daniel Jacobowitz <drow@mvista.com>
1889
1890 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
1891 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
1892
2d1bfe2e
MK
18932002-03-31 Mark Kettenis <kettenis@gnu.org>
1894
a5941fbf
MK
1895 * NEWS: Mention gcore support on FreeBSD/i386.
1896
a90cd31d
MK
1897 * fbsd-proc.c: New file.
1898 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
1899 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
1900
2d1bfe2e
MK
1901 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
1902 while statement.
1903
9eb6e5a1
JB
19042002-03-29 Jim Blandy <jimb@redhat.com>
1905
1906 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
1907 unescaped newlines in string literals, but newer ones don't. So
1908 escape them.
1909
f02df580
MS
19102002-03-26 Michael Snyder <msnyder@redhat.com>
1911 Andrew Cagney <cagney@redhat.com>
1912
1913 * cli/cli-dump.c: New file. Dump memory to file,
1914 restore file to memory.
1915 * cli/cli-dump.h: New file.
1916 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 1917 * NEWS: Mention new commands.
f02df580 1918
109f874e
MS
19192002-03-28 Michael Snyder <msnyder@redhat.com>
1920
1921 * symfile.c (symbol_file_add): Move test for null symbols to later.
1922
520f6ade
AC
19232002-03-27 Andrew Cagney <ac131313@redhat.com>
1924
1925 From veksler at il.ibm.com:
1926 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
1927 the xstrduped original path.
1928 Fix PR gdb/417.
1929
d4654627
MS
19302002-03-27 Michael Snyder <msnyder@redhat.com>
1931
1932 * breakpoint.c (_initialize_breakpoint): Clean up help string.
1933 * infcmd.c (_initialize_infcmd): Ditto.
1934 * language.c (_initialize_language): Ditto.
1935 * symfile.c (_initialize_symfile): Ditto.
1936 * top.c (_init_main): Ditto.
1937 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1938
6be8bc0c
EZ
19392002-03-27 Elena Zannoni <ezannoni@redhat.com>
1940
1941 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
1942 vector registers handling.
1943 (skip_prologue): Handle new AltiVec instructions. Fill in new
1944 fields of frame data.
1945 (frame_get_saved_regs): Fill in information for AltiVec registers.
1946
12af6855
JB
19472002-03-27 Jim Blandy <jimb@redhat.com>
1948
1949 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
1950 a function; leave this macro here to invoke that function.
1951 (symbol_init_mangled_name): Declaration for that function.
1952 * symtab.c (symbol_init_mangled_name): New function.
1953
dc672865
AC
19542002-03-27 Andrew Cagney <ac131313@redhat.com>
1955
1956 * valarith.c: Replace strerror with safe_strerror.
1957 * tracepoint.c: Ditto.
1958 * lin-lwp.c: Ditto.
1959 * go32-nat.c: Ditto.
1960 * inflow.c: Ditto.
1961 * gnu-nat.c: Ditto.
1962
d96429cd
AS
19632002-03-27 Andreas Schwab <schwab@suse.de>
1964
1965 * event-top.c (command_line_handler): Remove useless if.
1966
7e336ba1
AJ
19672002-03-27 Andreas Jaeger <aj@suse.de>
1968
1969 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
1970 comment.
1971
de220d0f
ML
19722002-03-27 Michal Ludvig <mludvig@suse.cz>
1973
1974 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
1975 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
1976 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
1977 (x86_64_linux_dr_get_status, supply_gregset),
1978 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
1979 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
1980 (x86_64_register_info_table): Add.
1981 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
1982 (x86_64_register_raw_size, x86_64_register_virtual_type),
1983 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
1984 general x86_64_register_info_table.
1985 (i386_gdbarch_init): gdbarch_register_bytes is now set
1986 dynamicaly during initialization.
1987 * regformats/reg-x86-64.dat: Synced with changes to registers above.
1988 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 1989
0e98d0a7
DJ
19902002-03-27 Daniel Jacobowitz <drow@mvista.com>
1991
1992 * gdbserver/server.c (main): Call target_signal_to_host_p
1993 and target_signal_to_host on signals received from the remote.
1994 * gdbserver/remote-utils.c (prepare_resume_reply): Call
1995 target_signal_from_host on signals sent to the remote.
1996 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
1997 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
1998
3130066b
DJ
19992002-03-27 Daniel Jacobowitz <drow@mvista.com>
2000
2001 * signals/signals.c: Include "server.h" in gdbserver build.
2002 (target_signal_from_name): Don't use STREQ.
2003 (_initialize_signals): Likewise. Don't include function in
2004 gdbserver build.
2005
9aedf4f4
DJ
20062002-03-27 Daniel Jacobowitz <drow@mvista.com>
2007
2008 * signals.c: Moved to...
2009 * signals/signals.c: Here.
7e336ba1 2010 * Makefile (signals.o): Update.
9aedf4f4 2011
3fa41cdb
JL
20122002-03-26 Jeff Law (law@redhat.com)
2013
2014 * somread.c (som_symtab_read): Remove some commented out code and
2015 updated related comments. Do not set the minimal symbol table to
2016 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
2017 in a dynamic executable.
2018 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
2019 where we are unable to find the minimal symbol for the given
2020 PC value.
2021
ee677e8d
MS
20222002-03-25 Jeff Law (law@redhat.com)
2023
2024 * linux-proc.c (read_mapping): Scan up to end of line for filename.
2025
e76e1718
ML
20262002-03-25 Michal Ludvig <mludvig@suse.cz>
2027
2028 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
2029
18a642a1
AC
20302002-03-23 Andrew Cagney <ac131313@redhat.com>
2031
2032 * command.h: Update copyright.
2033 (struct cmd_list_element): Replace definition with opaque
2034 declaration.
2035 (enum cmd_types): Document that it will eventually be moved to
2036 cli/cli-decode.h
2037 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
2038 (MALLOCED_REPLACEMENT): Delete macro.
2039 * Makefile.in (cli_decode_h): Add $(command_h).
2040 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 2041 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
2042 * completer.c: Include "cli/cli-decode.h".
2043 * maint.c: Include "cli/cli-decode.h".
2044 * cli/cli-decode.h: Include "command.h".
2045 (enum command_class): Delete.
2046 (enum cmd_types): Comment out.
2047 (enum cmd_auto_boolean): Delete.
2048 (enum var_types): Delete.
2049
b2875cc0
AC
20502002-03-23 Andrew Cagney <ac131313@redhat.com>
2051
2052 * cli/cli-decode.c: Include "gdb_assert.h".
2053 (add_set_or_show_cmd): New static function.
2054 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
2055 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
2056 all fields, such as func, from the set command.
2057
3b45974e
AC
20582002-03-23 Andrew Cagney <ac131313@redhat.com>
2059
2060 * MAINTAINERS (sh-elf): Change warning flag to -w.
2061
823ca731
AC
20622002-03-23 Andrew Cagney <cagney@redhat.com>
2063
2064 * defs.h (error): Add printf format attribute.
2065 * thread-db.c (thread_from_lwp): Fix error format string.
2066 * stack.c (parse_frame_specification): Ditto.
2067 * cli/cli-decode.c (undef_cmd_error): Ditto.
2068 * scm-lang.c (scm_lookup_name): Ditto.
2069 * tracepoint.c (trace_error): Ditto.
2070 * remote-utils.c (usage): Ditto.
2071 * remote.c (compare_sections_command): Ditto.
2072 Fix PR gdb/328.
2073
0e101458
AC
20742002-03-22 Andrew Cagney <ac131313@redhat.com>
2075
2076 * gdbtypes.c (append_composite_type_field): New function.
2077 (init_composite_type): New function.
2078 * gdbtypes.h (append_composite_type_field): Declare.
2079 (init_composite_type): Ditto.
2080
8e0662df
EZ
20812002-03-22 Elena Zannoni <ezannoni@redhat.com>
2082
2083 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 2084 function.
8e0662df
EZ
2085 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
2086 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
2087 structure returning convention for SYSV ABI case, but not
2088 for GNU/Linux, FreeBSD, or NetBSD.
2089
3121eff0
DJ
20902002-03-22 Daniel Jacobowitz <drow@mvista.com>
2091
2092 * symtab.h (lookup_block_symbol): Add mangled_name argument
2093 to prototype.
2094
2095 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
2096 with new mangled_name argument.
2097 * linespec.c (decode_line_1): Likewise.
2098 * valops (value_of_this): Likewise.
2099 * symtab.c (lookup_transparent_type): Likewise.
2100 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
2101 (lookup_symbol): If we are given a mangled name, pass it down
2102 to lookup_symbol_aux.
2103 (lookup_block_symbol): If we are given a mangled name to check
2104 against, only return symbols which match it.
2105
349b409f
CF
21062002-03-22 Christopher Faylor <cgf@redhat.com>
2107
2108 * win32-nat.c (child_create_inferior): Check for proper shell to use
2109 here, in case the user changes it on the fly.
2110 (_initialize_inftarg): Remove shell path considerations.
2111
2a873819
EZ
21122002-03-21 Elena Zannoni <ezannoni@redhat.com>
2113
2114 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
2115 for gdbarch_max_register_raw_size and max_register_virtual_size.
2116 Adjust copyright year.
2117
a1b9830c
DJ
21182002-03-21 Daniel Jacobowitz <drow@mvista.com>
2119
2120 * dbxread.c (process_one_symbol): Extend the first N_SLINE
2121 in a function to cover the entire beginning of the function
2122 as well if it does not already.
2123
8b5790f2
TR
21242002-03-21 Tom Rix <trix@redhat.com>
2125
2126 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
2127 (rs6000_ptrace64): Renamed from ptrace64.
2128
bdbe5747
MH
21292002-03-20 Martin M. Hunt <hunt@redhat.com>
2130
2131 * gdbserver/remote-utils.c (remote_open): Don't call
2132 getprotobyname, we're all using TCP here so just use
2133 IPPROTO_TCP.
7e336ba1 2134 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
2135
21362002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 2137
bdbe5747
MH
2138 * regcache.c (_initialize_regcache): No need to call
2139 build_regcache() at this time; it gets called whenever
2140 the gdbarch changes.
2141
7781cd62
DB
21422002-03-20 David O'Brien <obrien@FreeBSD.org>
2143
2144 * sparc-nat.c: Include sys/param.h where possible.
2145
f65ca430
DJ
21462002-03-20 Daniel Jacobowitz <drow@mvista.com>
2147
2148 Fix PR gdb/422.
2149 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
2150 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
2151 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
2152 complex types.
2153 * stabsread.c (rs6000_builtin_type): Likewise.
2154 (read_sun_floating_type): Likewise.
2155
0c867556
PS
21562002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2157
2158 * stabsread.c (read_member_functions): Remove skip code for duplicate
2159 constructor/destructor methods. Use standard parsing for these
2160 methods and just do not chain them to the list of methods after
2161 parsing.
2162
12b9c64f
AO
21632002-03-19 Alexandre Oliva <aoliva@redhat.com>
2164
2165 * coffread.c: Remove redundant static declarations. Replace
2166 occurrences of `PTR' with `void *'.
2167 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
2168 * top.h (quit_cover): Likewise.
2169 * defs.h (catch_errors): Likewise.
2170
349c5d5f
AC
21712002-03-18 Andrew Cagney <ac131313@redhat.com>
2172
2173 * defs.h (XMALLOC): Define.
2174 * gdb-events.sh (XMALLOC): Delete macro.
2175 * gdb-events.c, gdb-events.h: Regenerate.
2176 * gdbarch.sh (XMALLOC): Delete macro.
2177 * gdbarch.c: Regenerate.
2178 * serial.c (XMALLOC): Delete macro.
2179 * ui-file.c (XMALLOC): Ditto.
2180 * ser-unix.h (XMALLOC): Ditto.
2181 * sh-tdep.c (XMALLOC): Ditto.
2182 * ui-out.c (XMALLOC): Ditto.
2183 * utils.c (XMALLOC): Ditto.
2184 * i386-tdep.c (XMALLOC): Ditto.
2185 * gdb-events.c (XMALLOC): Ditto.
2186 * d10v-tdep.c (XMALLOC): Ditto.
2187 * cli-out.c (XMALLOC): Ditto.
2188
2189 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
2190 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
2191 * ui-file.c, ui-out.c: Ditto.
2192
7d0766f3
AC
21932002-03-18 Andrew Cagney <ac131313@redhat.com>
2194
2195 * command.h (struct cmd_list_element): Add field context.
2196 (set_cmd_context, get_cmd_context): Declare.
2197 * cli/cli-decode.h: Ditto.
2198 * cli/cli-decode.c (get_cmd_context): New function.
2199 (set_cmd_context): New function.
2200 (add_cmd): Initialize context.
2201 Part of fixing PR gdb/145 and PR gdb/146.
2202
5913bcb0
AC
22032002-03-17 Andrew Cagney <ac131313@redhat.com>
2204
1868c04e
AC
2205 * cli/cli-decode.c (cmd_type): New function.
2206 * command.h (cmd_type): Declare.
2207 * infrun.c (set_schedlock_func): Call function cmd_type.
2208 * kod.c (kod_set_os): Call cmd_type.
2209 * cris-tdep.c (cris_version_update): Use function cmd_type.
2210 (cris_mode_update, cris_abi_update): Ditto.
2211
5913bcb0
AC
2212 * command.h: (execute_cmd_post_hook): Declare.
2213 (execute_cmd_pre_hook): Declare.
2214 * cli/cli-script.c (clear_hook_in_cleanup): New function.
2215 (execute_cmd_post_hook, execute_cmd_pre_hook): New
2216 functions. Execute pre/post hook while ensuring that afterwords
2217 hook_in is cleared.
2218 * top.c (execute_command): Use execute_cmd_post_hook, and
2219 execute_cmd_pre_hook to execute pre/post commands.
2220 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
2221 hook_stop_stub.
2222 (hook_stop_stub): Call execute_cmd_pre_hook.
2223
b51450c9
AC
22242002-03-17 Andrew Cagney <ac131313@redhat.com>
2225
2226 * kod.c (kod_set_os): Revert previous change. Is called by ``info
2227 set'' and this leads to a core dump. Move xstrdup of
2228 operating_system to after check that it is not NULL.
2229
f66c9f11
AC
22302002-03-17 Andrew Cagney <ac131313@redhat.com>
2231
8e694ecf
AC
2232 * kod.c (kod_set_os): Remove unnecessary check that
2233 ``command->type'' is set_cmd.
2234
f66c9f11
AC
2235 * valprint.c (set_input_radix): Use input_radix.
2236 (set_output_radix): Use output_radix.
2237 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
2238 isn't reverted.
2239
9d01611c
AC
22402002-03-16 Andrew Cagney <ac131313@redhat.com>
2241
2242 * value.h (struct value): Delete field ``substring_addr''. Change
2243 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
2244 force_core_addr_align and force_pointer_aligh.
2245
2246 * value.h (struct value): Fix typo in above change.
9d01611c 2247
4156bb53
PS
22482002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2249
2250 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
2251 to fix internal_error from ``maintenance print architecture''.
2252
0e5e3ea6
PS
22532002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2254
2255 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
2256 for gcc versions after gcc-2.8.1.
2257
9b013045
PS
22582002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2259
2260 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
2261 for method resolution. Restore adjustment of ``this'' pointer after
2262 calling value_struct_elt, which was accidentally removed during the
2263 HP merge.
2264
376c9600
AC
22652002-03-15 Andrew Cagney <ac131313@redhat.com>
2266
2267 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
2268 value_of_register.
2269 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
2270 get_saved_register.
2271 * value.h (value_of_register): Update.
2272
a4db0f07
RH
22732002-03-14 Richard Henderson <rth@redhat.com>
2274
2275 * configure.in: Detect declaration for canonicalize_file_name.
2276 * utils.c (canonicalize_file_name): Declare, if needed.
2277 (gdb_realpath): Prefer realpath if available and usable.
2278 * config.in, configure: Rebuild.
2279
96383835
RH
22802002-03-14 Richard Henderson <rth@redhat.com>
2281
2282 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
2283 a constant array bound.
2284
2285 * MAINTAINERS: Add myself to write-after-approval.
2286
75245b24
MS
22872002-03-14 Michael Snyder <msnyder@redhat.com>
2288
2289 * symfile.c (syms_from_objfile): Return immediately if no syms.
2290 (symbol_file_add): Return immediately if no syms.
2291 (find_sym_fns): Return immediately if no syms.
2292
e641a1ca
ML
22932002-03-13 Michal Ludvig <mludvig@suse.cz>
2294
2295 * gdbserver/remote-util.c (remote_open): Print remote-side's
2296 IP address when remote debugging over the network.
7e336ba1 2297
df08bfec
DB
22982002-03-12 David O'Brien <obrien@FreeBSD.org>
2299
2300 * config/sparc/fbsd.mh: Fix copyright.
2301 * config/sparc/fbsd.mt: Likewise.
2302
9a57864f
RE
23032002-03-11 Richard Earnshaw <rearnsha@arm.com>
2304
2305 * MAINTAINERS: Fix typo in name of gdb warnings option.
2306 (x86-64): Fix formating so that this can be parsed by awk.
2307
dd7bf85e
DJ
23082002-03-10 Daniel Jacobowitz <drow@mvista.com>
2309
2310 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
2311 * defs.h: Include "gdb/signals.h".
2312 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
2313
33a0a2ac
ML
23142002-03-10 Michal Ludvig <mludvig@suse.cz>
2315
2316 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 2317 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
2318 from x86-64-tdep.h
2319
dd824b04
DJ
23202002-03-10 Daniel Jacobowitz <drow@mvista.com>
2321 Don Howard <dhoward@redhat.com>
2322
2323 * mips-tdep.c (ST0_FR): Define.
2324 (mips2_fp_compat): New function, temporarily disabled.
2325 (mips_read_fp_register_single): New function.
2326 (mips_read_fp_register_double): New function.
2327 (mips_print_register): Use them.
2328 (do_fp_register_row): Likewise.
2329
6a41ff59
AC
23302002-03-09 Andrew Cagney <ac131313@redhat.com>
2331
2332 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
2333 approval''.
2334
4ea09c10
PS
23352002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2336
2337 * stabsread.c (read_member_functions): Fix is_stub test for
2338 static member functions, improve comment.
2339
6ccc741d
RE
23402002-03-07 Richard Earnshaw <rearnsha@arm.com>
2341
2342 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
2343 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
2344 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
2345 commands that set boolean values.
2346 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
2347 (arm_rdi_resume): Always initialize PC.
2348 (arm_rdi_open): Don't use rslt as a boolean.
2349 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
2350 (arm_rdi_fetch_registers, arm_rdi_store_registers)
2351 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
2352 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
2353
438013df
AO
23542002-03-06 Alexandre Oliva <aoliva@redhat.com>
2355
2356 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
2357 * configure: Rebuilt.
2358
70ed8774
SC
23592002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2360
2361 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
2362 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
2363
5ba2abeb
AC
23642002-03-06 Andrew Cagney <ac131313@redhat.com>
2365
2366 * cli/cli-decode.c (set_cmd_completer): New function.
2367 * command.h (set_cmd_completer): Declare.
2368 * cli/cli-decode.h (set_cmd_completer): Ditto.
2369
2370 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
2371 * cli/cli-cmds.c (init_cli_cmds): Ditto.
2372 * win32-nat.c (_initialize_inftarg): Ditto.
2373 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2374 * proc-api.c (_initialize_proc_api): Ditto.
2375 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
2376 * source.c (_initialize_source): Ditto.
2377 * exec.c (_initialize_exec): Ditto.
2378 * solib.c (_initialize_solib): Ditto.
2379 * top.c (init_main): Ditto.
2380 * tracepoint.c (_initialize_tracepoint): Ditto.
2381 * symfile.c (_initialize_symfile): Ditto.
2382 * printcmd.c (_initialize_printcmd): Ditto.
2383 * infcmd.c (_initialize_infcmd): Ditto.
2384 * corefile.c (_initialize_core): Ditto.
2385
f779ca99
AC
23862002-03-05 Andrew Cagney <ac131313@redhat.com>
2387
2388 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
2389
01a3934b
AC
23902002-03-05 Andrew Cagney <ac131313@redhat.com>
2391
2392 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
2393
37057839
AC
23942002-03-05 Andrew Cagney <ac131313@redhat.com>
2395
2396 * NEWS: Update headings, 5.2 has branched.
2397
c6ecbae5
DJ
23982002-03-04 Daniel Jacobowitz <drow@mvista.com>
2399
2400 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
2401 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
2402 (register_addr, REGISTER_RAW_SIZE): Likewise.
2403 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
2404 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
2405
e9f30c21
ML
24062002-03-03 Michal Ludvig <mludvig@suse.cz>
2407
2408 * MAINTAINERS (x86-64): Add myself.
2409 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
2410 changed value_ptr -> struct value *
2411
54394ac3
DB
24122002-03-01 David O'Brien <obrien@FreeBSD.org>
2413
2414 * configure.host (sparc64-*-freebsd): Add.
2415 * configure.tgt: Likewise.
2416 * config/sparc/fbsd.mh: New file.
2417 * config/sparc/fbsd.mt: Likewise.
2418 * config/sparc/nm-fbsd.h: Likewise.
2419 * config/sparc/tm-fbsd.h: Likewise.
2420
bfe95955
DJ
24212002-03-01 Daniel Jacobowitz <drow@mvista.com>
2422
2423 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
2424 regformats/reg-s390x.dat.
2425
f33c6cbf
AC
24262002-03-01 Andrew Cagney <ac131313@redhat.com>
2427
2428 * utils.c: Add FIXME explaining true/false problem.
2429
5ecaa7dd
AC
24302002-02-28 Andrew Cagney <ac131313@redhat.com>
2431
2432 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
2433
2a251cc2
MC
24342002-02-28 Michael Chastain <mec@shout.net>
2435
2436 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
2437
6a8031a3 24382002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
2439
2440 * gdbserver/linux-s390-low.c: New file.
2441 * regformats/reg-s390.dat: New file.
2442 * regformats/reg-s390x.dat: New file.
2443 * gdbserver/configure.srv: Add S/390.
2444 * gdbserver/Makefile.in: Add S/390.
2445 * configure.tgt: Enable gdbserver for S/390.
2446
ac469903
EZ
24472002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
2448
2449 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
2450 first line of the doc string for "info dos", except at the end of
2451 the sentence, since the short help stops at the first period.
2452
985cb1a3
JM
24532002-02-28 Jason Merrill <jason@redhat.com>
2454
2455 * dwarf2read.c (dwarf_cfi_name): Add new codes.
2456
c570663e
FF
24572002-02-27 Fred Fish <fnf@redhat.com>
2458
2459 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
2460 comment (dumy -> dummy).
2461
43630227
PS
24622002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2463
2464 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
2465
b84911e8
RB
24662002-02-27 Rodney Brown <rbrown64@csc.com.au>
2467
2468 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
2469
58caa3dc
DJ
24702002-02-27 Daniel Jacobowitz <drow@mvista.com>
2471
2472 * gdbserver/acconfig.h: New file.
2473 * gdbserver/i387-fp.c: New file.
2474 * gdbserver/i387-fp.h: New file.
2475 * gdbserver/linux-x86-64.c: New file.
2476 * regformats/reg-x86-64.dat: New file.
2477 * configure.tgt: Add x86_64-*-linux* gdbserver support.
2478 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
2479 * gdbserver/configure.in: Add support for regsets.
2480 * gdbserver/config.in: Regenerate.
2481 * gdbserver/configure: Regenerate.
2482 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
2483 * gdbserver/linux-low.h: New file.
2484 * gdbserver/linux-low.c: Include "linux-low.h". Add support
2485 for regsets.
2486 * gdbserver/linux-arm-low.c: Include "linux-low.h".
2487 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
2488 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
2489 * gdbserver/linux-mips-low.c: Include "linux-low.h".
2490 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
2491 * gdbserver/linux-sh-low.c: Include "linux-low.h".
2492 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
2493 "i387-fp.h". Add PTRACE_GETREGS and friends.
2494 * gdbserver/regcache.c (supply_register): New function.
2495 (supply_register_by_name): New function.
2496 (collect_register): New function.
2497 (collect_register_by_name): New function.
2498
93652174
DJ
24992002-02-27 Daniel Jacobowitz <drow@mvista.com>
2500
2501 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
2502 (config.status): Add configure.srv dependency.
2503 (server_h): Add config.h dependency.
2504
a02e4a61
DJ
25052002-02-27 Daniel Jacobowitz <drow@mvista.com>
2506
2507 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
2508 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
2509 * gdbserver/configure.srv: Change i386-*-linux* to use
2510 reg-i386-linux.o.
2511
ce0eebec
AC
25122002-02-26 Andrew Cagney <ac131313@redhat.com>
2513
2514 * x86-64-tdep.c: Re-indent. Update copyright date.
2515
82dbc5f7
AC
25162002-02-26 Andrew Cagney <ac131313@redhat.com>
2517
2518 From Michal Ludvig <mludvig@suse.cz>:
2519 * x86-64-tdep.c (value.h): Delete.
2520 (gdb_assert.h): Include.
2521 (x86_64_register_convert_to_virtual,
2522 x86_64_register_convert_to_raw ): Add check which lets only
2523 floating-point values to be converted.
2524 (value_push): Delete.
2525 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
2526 (i386_gdbarch_init): Number of register_bytes fixed.
2527
e4621584
AC
25282002-02-26 Andrew Cagney <ac131313@redhat.com>
2529
2530 * MAINTAINERS: Add x86-64 target.
2531
81a9a963
AC
25322002-02-26 Andrew Cagney <ac131313@redhat.com>
2533
2534 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
2535 * osfsolib.c (solib_map_sections): Ditto.
2536 * irix5-nat.c (solib_map_sections): Ditto.
2537 * corelow.c (gdb_check_format): Ditto.
2538 * symfile.c (symfile_bfd_open): Ditto.
2539 * solib.c (solib_map_sections): Ditto.
2540 Fix PR gdb/354.
7e336ba1 2541
0f017ab9
AC
25422002-02-26 Andrew Cagney <ac131313@redhat.com>
2543
2544 * remote.c (_initialize_remote): By default, disable ``e'' and
2545 ``E'' step out-of-range packets.
2546
75738c29
AS
25472002-02-26 Andreas Schwab <schwab@suse.de>
2548
2549 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
2550 m68k_linux_frame_saved_pc.
2551 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
2552 in_sigtramp.
2553 (SIGCONTEXT_PC_OFFSET): Remove.
2554 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
2555 m68k_linux_sigtramp_saved_pc): New functions.
2556 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
2557 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
2558 (UCONTEXT_PC_OFFSET): Define.
2559 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
2560 non-RT and RT signal trampolines.
2561
7e8ed687
RE
25622002-02-26 Richard Earnshaw <rearnsha@arm.com>
2563
2564 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
2565 (TARGET_NBPG, STACK_END_ADDR): Delete
2566 (VARIABLES_INSIDE_BLOCK): Delete.
2567
6972bc8b
AC
25682002-02-25 Andrew Cagney <ac131313@redhat.com>
2569
2570 * utils.c (perror_with_name): Make string parameter constant.
2571 (print_sys_errmsg): Ditto.
2572 (query): Ditto.
2573 * defs.h (perror_with_name): Update.
2574 (print_sys_errmsg): Update.
2575 (query): Update.
2576
aa32f823
DJ
25772002-02-25 Daniel Jacobowitz <drow@mvista.com>
2578
2579 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
2580 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
2581
19caaa45
PS
25822002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2583
2584 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
2585 if it already matches the current architecture from the exec file.
2586 Include arch-utils.h for gdbarch_info_init prototype.
2587 * Makefile.in (rs6000-nat.o): Update dependencies.
2588
d951901f
EZ
25892002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
2590
2591 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
2592 list of exported variables.
2593
7ea81414
DJ
25942002-02-24 Daniel Jacobowitz <drow@mvista.com>
2595
2596 * gdbserver/configure.srv: New file.
2597 * gdbserver/configure.in: Use configure.srv instead
2598 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
2599 from it.
2600 * gdbserver/configure: Regenerated.
2601 * gdbserver/terminal.h: New file.
2602 * gdbserver/Makefile.in: Update for configure changes. Remove
2603 more unneeded include paths.
2604
080fe24b
AC
26052002-02-24 Andrew Cagney <ac131313@redhat.com>
2606
2607 From wiz at danbala:
2608 * config/sparc/tm-sp64.h: Fix grammar and typos.
2609 Fix PR gdb/287.
2610
8605d56e
AC
26112002-02-24 Andrew Cagney <ac131313@redhat.com>
2612
2613 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
2614 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
2615 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
2616 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
2617 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
2618 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
2619 * s390-tdep.c: Ditto.
92362027
AC
2620 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
2621 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
2622 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
2623 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
2624 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
2625 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
2626 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
2627 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
2628 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
2629 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 2630 Fix PR gdb/378.
7e336ba1 2631
8ed32cc0
AC
26322002-02-23 Andrew Cagney <ac131313@redhat.com>
2633
a3007b6f
AC
2634 * lin-thread.c: Delete file.
2635 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
2636 to gdb_proc_service.h.
2637 * configure: Re-generate.
2638
50a9e2f1
AC
2639 * ocd.c (ocd_open): Do not try to open the "ocd" device.
2640 * serial.c (serial_open): Delete check for "ocd".
2641 Fix PR gdb/349.
2642
8b6e7932
AC
2643 * Makefile.in (linux-thread.o): Delete target.
2644 * linux-thread.c: Delete file.
2645
d155c46b
AC
2646 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
2647 renamed SH files to be consistent.
2648
8ed32cc0
AC
2649 * symtab.c (sort_search_symbols): Use xfree.
2650
0e18d038
RE
26512002-02-23 Richard Earnshaw <rearnsha@arm.com>
2652
2653 * arm-linux-tdep.c (arm_linux_init_abi): Register
2654 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
2655 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
2656 definition with undef, since we don't want the sysvr4 definition.
2657 (SKIP_TRAMPOLINE_CODE): Likewise.
2658
27aac7ff
AC
26592002-02-23 Andrew Cagney <ac131313@redhat.com>
2660
2661 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
2662
2663 * configure.in: (AC_CHECK_FUNCS) Added test for
2664 canonicalize_file_name Regenerated.
2665 * config.in, configure: Regenerated.
2666 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
2667 defined use canonicalize_file_name.
7e336ba1 2668
65a6e0ee
MC
26692002-02-23 Michael Chastain <mec@shout.net>
2670
2671 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
2672
47b95330
AC
26732002-02-23 Andrew Cagney <ac131313@redhat.com>
2674
2675 * README: Remove references to cygnus.com.
2676 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
2677 dot com'' form. Remove references to cygnus.com and sourceware.
2678
696f451b
AC
26792002-02-23 Andrew Cagney <ac131313@redhat.com>
2680
2681 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
2682 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
2683 1003.1-2001 no longer allows "head -1".
2684 * gdb/Makefile.in (version.c): Likewise.
2685 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
2686 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
2687 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
2688
bbaca940
AC
26892002-02-23 Andrew Cagney <ac131313@redhat.com>
2690
2691 * cli/cli-decode.c (cmd_cfunc_eq): New function.
2692 * command.h (cmd_cfunc_eq): Declare.
2693 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
2694
2695 * cli/cli-cmds.h (is_complete_command): Change parameter to a
2696 ``struct cmd_list_element *''.
2697 * cli/cli-cmds.c (is_complete_command): Update. Use
2698 cmd_cfunc_eq.
2699 * top.c (execute_command): Pass the command to
2700 is_complete_command.
2701 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
2702
b8b8b047
AC
27032002-02-23 Andrew Cagney <ac131313@redhat.com>
2704
2705 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
2706 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
2707 architecture defines.
2708 * s390-tdep.c (s390_gdbarch_init): Likewise.
2709
19d3fc80
RE
27102002-02-23 Richard Earnshaw <rearnsha@arm.com>
2711
2712 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
2713 (arm_linux_push_arguments): Likewise.
2714 (arm_linux_init_abi): Register them. Also register linux-specific
2715 call_dummy_words.
2716 (find_minsym_and_objfile): Use strcmp, not STREQ.
2717 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
2718 (arm_linux_call_dummy_words): Delete declaration.
2719 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
2720 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
2721 declarations.
2722 (LOWEST_PC): Delete.
2723
3ab13650
PS
27242002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2725
2726 * maint.c (print_section_info): Do not prepend `0x' to filepos
2727 output, it will be handled by local_hex_string_custom.
2728
19d3fc80 27292002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
2730
2731 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
2732 (store_newfpe_double, store_newfpe_extended, store_fpregister)
2733 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
2734
d85a5daf
JB
27352002-02-22 Jim Blandy <jimb@redhat.com>
2736
2737 Indicate that the bcache functions don't change the strings
2738 they're passed.
2739 * bcache.h (bcache, hash): Add `const' keywords to declarations.
2740 * bcache.c (bcache, hash): Add `const' keywords to definitions.
2741
eeb25b8a
PM
27422002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
2743
2744 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
2745
6badb179
CF
27462002-02-21 Christopher Faylor <cgf@redhat.com>
2747
2748 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
2749 find the complete path to a loaded DLL.
2750
e8717518
FF
27512002-02-21 Fred Fish <fnf@redhat.com>
2752
2753 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
2754 that marks the end of the range of a function, enter a line number
2755 entry that has a line number of zero and a PC offset that matches
2756 the end of the function. This starts a range of PC's for which no
2757 line number information is known.
2758 * symtab.c (find_pc_sect_line): If our best fit is in a range of
2759 PC's for which no line number info is found (line number is zero)
2760 then we didn't find any valid line information.
2761 * symtab.h: Document use of zero line number entry.
2762
9abe5450
EZ
27632002-02-21 Elena Zannoni <ezannoni@redhat.com>
2764
2765 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
2766 (have_ptrace_getvrregs): Define for run time checks.
2767 (gdb_vrregset_t): New type for Altivec register handling.
2768 (fetch_register, store_register): Fetch/store altivec register
2769 when needed.
2770 (fetch_altivec_register, store_altivec_register): New functions.
2771 (supply_vrregset, fill_vrregset): New functions.
2772 (fetch_altivec_registers, store_altivec_registers): New functions.
2773 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
2774 registers as well.
2775
aaa38bb5
AJ
27762002-02-21 Jiri Smid <smid@suse.cz>
2777
2778 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
2779
b34db576
RE
27802002-02-21 Richard Earnshaw <rearnsha@arm.com>
2781
2782 * Makefile.in (armnbsd-nat.o): Update dependencies.
2783 * armnbsd-nat.c (supply_gregset): New function. Common code to
2784 supply the integer register set.
2785 (supply_fparegset): New function. Similar for FPA registers.
2786 (fetch_regs, fetch_fp_regs): Use them.
2787 (fetch_core_registers): Likewise.
2788 (fetch_elfcore_registers): New function.
2789 (arm_netbsd_elfcore_fns): New core-file type specification.
2790 (_initialize_arm_netbsd_nat): Register it.
2791
3e56fc4b
RE
27922002-02-21 Richard Earnshaw <rearnsha@arm.com>
2793
2794 * armnbsd-nat.c: Include gdbcore.h.
2795 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
2796 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
2797 'void' to declaration, to shut up ARI.
2798 (fetch_core_registers): Make static. Rewrite using supply_register.
2799 (arm_netbsd_core_fns): New core-file type specification.
2800 (_initialize_arm_netbsd_nat): New function.
2801
097f6b0b
CF
28022002-02-21 Christopher Faylor <cgf@redhat.com>
2803
2804 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
2805 value.
2806
c914e0cc
CF
28072002-02-20 Christopher Faylor <cgf@redhat.com>
2808
2809 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
2810 fails.
2811
385fa495
DJ
28122002-02-20 Daniel Jacobowitz <drow@mvista.com>
2813
2814 * jv-exp.y (parse_number): Change type of implicit longs
2815 to builtin_type_uint64.
2816
e5f1222d
DJ
28172002-02-20 Daniel Jacobowitz <drow@mvista.com>
2818
2819 * gdbserver/linux-low.c (mywait): Change argument to waitpid
2820 to be an integer instead of a `union wait'.
2821
75c9abc6
DJ
28222002-02-20 Daniel Jacobowitz <drow@mvista.com>
2823
2824 * mips-linux-nat.c: Call the operating system GNU/Linux.
2825 * mips-linux-tdep.c: Likewise.
2826 * mips-tdep.c: Likewise.
2827
551792a5
DJ
28282002-02-20 Daniel Jacobowitz <drow@mvista.com>
2829
2830 Fix PR gdb/265.
2831 * jv-exp.y (parse_number): Handle 64-bit integers.
2832
ee6e2b82
DJ
28332002-02-20 Daniel Jacobowitz <drow@mvista.com>
2834
2835 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
2836 AC_STDC_HEADERS to AC_HEADER_STDC.
2837 * gdbserver/configure: Regenerated.
2838
a48442a0
RE
28392002-02-20 Richard Earnshaw <rearnsha@arm.com>
2840
2841 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
2842 is defined.
2843 * sparc-tdep.c (get_longjmp_target): Likewise.
2844
fe419ffc
RE
28452002-02-20 Richard Earnshaw <rearnsha@arm.com>
2846
2847 * News: Add news about ARM and Multi-arch. Mention the new target
2848 arm*-*-netbsd*.
2849
5832ed7e
JB
28502002-02-19 Jim Blandy <jimb@redhat.com>
2851
2852 * stabsread.c (error_type_complaint): Improve error message.
2853
84563040
DJ
28542002-02-19 Daniel Jacobowitz <drow@mvista.com>
2855
2856 * gdbserver/README: Update documentation.
2857 * gdbserver/configure.in: Update configury to match documentation.
2858 * gdbserver/Makefile.in: Likewise.
2859 * gdbserver/configure: Regenerated.
2860 * gdbserver/aclocal.m4: New file, generated by aclocal.
2861 * gdbserver/config.in: New file, generated by autoheader.
2862
375fd65b
RE
28632002-02-19 Richard Earnshaw <rearnsha@arm.com>
2864
2865 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
2866 armnbsd-nat.c.
2867
08216dd7
RE
28682002-02-19 Richard Earnshaw <rearnsha@arm.com>
2869
2870 * arm-tdep.h (enum arm_float_model): New enum.
2871 (struct gdbarch_tdep): Add fp_model.
2872 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
2873 up floating-point conversions until we know the floating-point model
2874 in use by the inferior. Don't complain about being unable to
2875 determine the ABI of the inferior when we don't have one.
2876 (arm_extract_return_value): Support different floating-point models.
2877 (arm_store_return_value): Likewise.
aaa38bb5 2878 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
2879 ARM_FLOAT_SOFT.
2880 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
2881
65d6d66a
PS
28822002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2883
2884 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
2885 of ``current_gdbarch''.
2886
47221191
RE
28872002-02-19 Richard Earnshaw <rearnsha@arm.com>
2888
2889 * armnbsd-nat.c : ANSIfy all function declarations.
2890 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
2891 (fetch_inferior_registers): Re-implement in terms of above.
2892 (store_register, store_regs, store_fp_register, store_fp_regs): New.
2893 (store_inferior_registers): Re-implement in terms of above.
2894
fdf39c9a
RE
28952002-02-19 Richard Earnshaw <rearnsha@arm.com>
2896
aaa38bb5 2897 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
2898 kernel.
2899 * arm-linux-tdep.c: Likewise.
2900 * config/arm/tm-linux.h: Likewise.
2901
93247f88
RE
29022002-02-19 Richard Earnshaw <rearnsha@arm.com>
2903
2904 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
2905 * config/arm/nbsd.mt (TM_FILE): Delete.
2906 * config/arm/tm-nbsd.h: Delete.
2907
d7b486e7
RE
29082002-02-19 Richard Earnshaw <rearnsha@arm.com>
2909
2910 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
2911 Initialize CALL_DUMMY_LENGTH.
2912
41d39a95
RE
29132002-02-19 Richard Earnshaw <rearnsha@arm.com>
2914
2915 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
2916 function.
2917 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 2918 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
2919 defines one thing and that is incorrect for this port.
2920 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
2921
e1195560
PM
29222002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2923
2924 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
2925
c1748f97
PM
29262002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2927
2928 * win32-nat.c (display_selector): New function. Displays information
2929 about the information returned by GetThreadSelectorEntry API function.
2930 (display_selectors): New function. Displays the infomation of
2931 the selector given as argument, or of CS, DS ans FS selectors
2932 if no argument is given.
2933 ( _initialize_inftarg): Add "w32" as info prefix command.
2934 Add "info w32 selector" as command calling display_selectors.
2935
e41e6bbf
PM
29362002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
2937
2938 * i386-tdep.c (get_longjmp_target): Fix compilation failure
2939 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
2940 if not defined.
2941
0d3a9f48
RE
29422002-02-18 Richard Earnshaw <rearnsha@arm.com>
2943
2944 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
2945
3fb4b924
RE
29462002-02-18 Richard Earnshaw <rearnsha@arm.com>
2947
2948 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
2949 (arm_fix_call_dummy): Call it.
2950 (arm_call_dummy_breakpoint_offset): Delete.
2951 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
2952 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
2953
7f55af32
AC
29542002-02-18 Andrew Cagney <ac131313@redhat.com>
2955
2956 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
2957 Default to func_frame_chain_valid.
2958 * gdbarch.h, gdbarch.c: Re-generate.
2959 * frame.h (FRAME_CHAIN_VALID): Delete definition.
2960
05f13b9c
EZ
29612002-02-18 Elena Zannoni <ezannoni@redhat.com>
2962
2963 * ppc-linux-nat.c: Update copyright.
2964 (fetch_register, store_register): Add tid parameter, don't compute
2965 tid here.
2966 (fetch_ppc_registers, store_ppc_registers): Add tid
2967 parameter. Pass it along to callees.
2968 (fetch_inferior_registers, store_inferior_registers): Compute tid
2969 here, and pass it to calleed functions.
2970 (fill_gregset, supply_fpregset): Clean up formatting.
2971
d7afb4c9
RE
29722002-02-18 Richard Earnshaw <rearnsha@arm.com>
2973
2974 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
2975 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
2976
9df628e0
RE
29772002-02-18 Richard Earnshaw <rearnsha@arm.com>
2978
2979 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
2980 * gdbarch.c gdbarch.h: Regenerate.
2981 * breakpoint.c (create_longjmp_breakpoint): Always compile this
2982 function.
2983 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
2984 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
2985 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
2986
2987 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
2988 * arm-tdep.c (arm_get_longjmp_target): New function.
2989 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
2990 this to a positive value register arm_get_longjmp_target as the
2991 longjmp handler.
2992 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
2993 (arm_linux_init_abi): Set up longjmp description in tdep.
2994 * armnbsd-nat.c (get_longjmp_target): Delete.
2995 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
2996 description in tdep.
2997 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
2998 (get_longjmp_target): Delete declaration.
2999 (GET_LONGJMP_TARGET): Delete.
3000 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
3001 (GET_LONGJMP_TARGET): Delete.
3002
57bc8964
KB
30032002-02-17 Kevin Buettner <kevinb@redhat.com>
3004
3005 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
3006 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
3007 of ``current_gdbarch''.
3008
83d31a92
TT
30092002-02-17 Tom Tromey <tromey@redhat.com>
3010
3011 * cli/cli-cmds.c (compare_strings): New function.
3012 (complete_command): Only print each unique item once.
3013 * completer.h (complete_line): Declare.
3014 * completer.c (complete_line): New function.
3015 (line_completion_function): Use it.
3016
17ef5d92
AC
30172002-02-16 Andrew Cagney <ac131313@redhat.com>
3018
3019 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
3020 * gdbarch.h, gdbarch.c: Re-generate.
3021
491b8946
DJ
30222002-02-16 Daniel Jacobowitz <drow@mvista.com>
3023
3024 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
3025
30262002-02-16 Daniel Jacobowitz <drow@mvista.com>
3027
3028 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
3029 * valops.c (value_arg_coerce): Don't take the address of a reference
3030 to convert an argument to a reference.
3031
dfe7f3ac
CF
30322002-02-15 Christopher Faylor <cgf@redhat.com>
3033
3034 * win32-nat.c (get_image_name): New function.
3035 (handle_load_dll): Use get_image_name function.
3036 (get_child_debug_event): Avoid registering debug events until possibly
3037 execed process is started.
3038 (child_create_inferior): Allow invocation via shell so that command
3039 line redirection, etc. works ok.
3040 (_initialize_inftarg): Add new command: "set shell" to control whether
3041 a shell is used to start a process.
3042
1d33e73a
DJ
30432002-02-15 Daniel Jacobowitz <drow@mvista.com>
3044
3045 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
3046 instead of find_register_by_number.
3047 (cannot_store_register): Likewise.
3048
48cd0caa
PM
30492002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
3050
aaa38bb5 3051 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
3052 fprintf_unfiltered (gdb_stderr, ...).
3053
8656e7d8
DJ
30542002-02-15 Daniel Jacobowitz <drow@mvista.com>
3055
3056 * gdbserver/gdbserver.1: Document --attach.
3057
66e810cd
RE
30582002-02-15 Richard Earnshaw <rearnsha@arm.com>
3059
3060 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
3061 descriptions.
3062 * arm-tdep.c (arm_default_arm_le_breakpoint)
3063 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
3064 (arm_default_thumb_be_breakpoint): New. Initialize them from
3065 traditional breakpoint defines.
3066 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
3067 (arm_gdbarch_init): Initialize new breakpoint variables.
3068 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
3069 (arm_linux_init_abi): Initialize linux-specific breakpoint.
3070 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
3071 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
3072 code out to ...
3073 (arm_netbsd_init_abi_common): ... here; new function.
3074 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
3075 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
3076 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
3077 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
3078
97e03143
RE
30792002-02-15 Richard Earnshaw <rearnsha@arm.com>
3080
3081 * arm-tdep.h (enum arm_abi): New enum.
3082 (struct gdbarch_tdep): New structure.
3083 (LOWEST_PC): Provide a default.
3084 (arm_gdbarch_register_os_abi): Declare new function.
3085 * arm-tdep.c (arm_abi_names): New array.
3086 (process_note_abi_tag_sections): New function.
3087 (get_elfosabi): New function.
3088 (arm_gdbarch_register_os_abi): New function.
3089 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
3090 support for that ABI has been built in, then call the appropriate
3091 configuration routine. Use gdbarch_num_regs() to get the number
3092 of registers.
3093 (arm_dump_tdep): New function.
3094 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
3095 place-holder functions.
3096 (_initialize_arm_tdep): Register them.
3097 * config/arm/tm-arm.h (LOWEST_PC): Delete.
3098
3099 * armnbsd-tdep.c: New file.
3100 * Makefile.in (armnbsd-tdep.o): Add dependencies.
3101 * config/arm/nbsd.mt (TDEPFILES): Add it.
3102 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
3103
3104 * armnbsd-nat.c: Include regcache.h.
3105 * Makefile.in (armnbsd-nat.o): Update dependency list.
3106
3107 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
3108
ad68be46
DJ
31092002-02-14 Daniel Jacobowitz <drow@mvista.com>
3110
3111 * gdbserver/Makefile.in: Fix typos in target rules.
3112
003d6d1d
DJ
31132002-02-14 Daniel Jacobowitz <drow@mvista.com>
3114
aaa38bb5 3115 Fix part of PR gdb/267.
003d6d1d
DJ
3116 * linespec.c (find_methods): Handle constructors specially for now.
3117
6b230f1b
CV
31182002-02-14 Corinna Vinschen <vinschen@redhat.com>
3119
3120 * arm-tdep.c (arm_push_arguments): Eliminate special float type
3121 handling.
3122 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
3123 standard_coerce_float_to_double().
3124
1ea98d12
CF
31252002-02-14 Christopher Faylor <cgf@redhat.com>
3126
3127 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
3128 GDBINIT_FILENAME.
3129
dd47e6fd
EZ
31302002-02-14 Elena Zannoni <ezannoni@redhat.com>
3131
3132 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
3133 find_variant_by_name, because it confuses the multiarch
3134 framework. Return NULL if there isn't an architecture with the
3135 user supplied name, instead of forcing a different one without
3136 recording the change with the multiarch machinery.
3137 (find_variant_by_name): Delete.
3138
d7e39b9e
PS
31392002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3140
3141 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
3142 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
3143
76e42a4f
MH
31442002-02-13 Martin M. Hunt <hunt@redhat.com>
3145
aaa38bb5 3146 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
3147 print_frame_info_listing_hook, set current_source_symtab.
3148
0a30fbc4
DJ
31492002-02-14 Daniel Jacobowitz <drow@mvista.com>
3150
3151 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
3152 and remove unused $(INCLUDE_DIR).
3153 Add regcache.c to OBS.
3154 Add generated register protocol files to clean target.
3155 Update dependencies for new objects, obsolete old target code.
3156
3157 * gdbserver/linux-low.c: Remove all platform-specific code to
3158 new files. Remove various dead code. Update to use regcache
3159 functionality.
3160 * gdbserver/remote-utils.c (fromhex): Add return statement
3161 to quiet warning.
3162 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
3163 constant.
3164 (input_interrupt): Add integer parameter to match prototype
3165 of a signal handler.
3166 (outreg): Use register_data ().
3167 (prepare_resume_reply): Use gdbserver_expedite_regs.
3168 * gdbserver/server.c (main): Dynamically allocate own_buf because
3169 PBUFSIZ is no longer constant. Use registers_to_string () and
3170 registers_from_string ().
3171 * gdbserver/server.h: No longer include "defs.h". Add prototypes
3172 for error (), fatal (), and warning (). Update definition of
3173 PBUFSIZ to use regcache functionality. Add include guard.
3174 * gdbserver/utils.c (fatal): Add missing ``const''.
3175 (warning): New function.
3176
3177 * regformats/regdat.sh: Include "regcache.h" in generated files.
3178 Provide init_registers () function.
3179 * regformats/regdef.h: Add prototype for set_register_cache ().
3180 Add include guard.
3181
3182 * gdbserver/linux-arm-low.c: New file.
3183 * gdbserver/linux-i386-low.c: New file.
3184 * gdbserver/linux-ia64-low.c: New file.
3185 * gdbserver/linux-m68k-low.c: New file.
3186 * gdbserver/linux-mips-low.c: New file.
3187 * gdbserver/linux-ppc-low.c: New file.
3188 * gdbserver/linux-sh-low.c: New file.
3189
3190 * gdbserver/regcache.c: New file.
3191 * gdbserver/regcache.h: New file.
3192
3193 * gdbserver/low-linux.c: Removed obsolete file.
3194
4cc841d0
DJ
31952002-02-14 Daniel Jacobowitz <drow@mvista.com>
3196
3197 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
3198 * config/i386/linux.mt: Likewise.
3199 * config/ia64/linux.mt: Likewise.
3200 * config/m68k/linux.mh: Likewise.
3201 * config/powerpc/linux.mh: Likewise.
3202 * config/mips/linux.mt: Likewise.
3203
3204 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
3205
3206 * config/i386/i386lynx.mh: Mark gdbserver variables
3207 as (currently) obsolete for this target.
3208 * config/i386/nbsd.mt: Likewise.
3209 * config/i386/nbsdelf.mt: Likewise.
3210 * config/m32r/m32r.mt: Likewise.
3211 * config/m68k/m68klynx.mh: Likewise.
3212 * config/m68k/nbsd.mt: Likewise.
3213 * config/m68k/sun3os4.mh: Likewise.
3214 * config/mips/vr5000.mt: Likewise.
3215 * config/ns32k/nbsd.mt: Likewise.
3216 * config/pa/hppabsd.mh: Likewise.
3217 * config/pa/hppaosf.mh: Likewise.
3218 * config/powerpc/nbsd.mt: Likewise.
3219 * config/rs6000/rs6000lynx.mh: Likewise.
3220 * config/s390/s390.mt: Likewise.
3221 * config/s390/s390x.mt: Likewise.
3222 * config/sparc/sparclynx.mh: Likewise.
3223 * config/sparc/sun4os4.mh: Likewise.
3224 * config/i386/x86-64linux.mt: Likewise.
3225 * config/sparc/linux.mh: Likewise.
3226
a85f51e7
DJ
32272002-02-14 Daniel Jacobowitz <drow@mvista.com>
3228
3229 * configure.tgt: Configure gdbserver only for known working
3230 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
3231 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
3232 SUBDIRS if it is configured. Update comment for ${nativefile}.
3233 * configure: Regenerated.
3234
65554fef
MS
32352002-02-13 Michael Snyder <msnyder@redhat.com>
3236
670a52db
MS
3237 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
3238
6dbdc4a3
MS
3239 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
3240 (default_gcore_mach): Just return 0, work around a problem in bfd.
3241 (default_gcore_target): OK to return NULL if exec_bfd is null.
3242 (make_mem_sec): Use a cast, avoid a warning.
3243
3244 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 3245 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
3246 sizeof (host pointer) != sizeof (target pointer)).
3247 (procfs_make_note_section): Avoid overflow in psargs string.
3248
aaa38bb5 3249 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
3250 implementation return an error.
3251
32522002-02-13 Rodney Brown <rbrown64@csc.com.au>
3253
3254 * procfs.c (procfs_make_note_section): Provide a default definition
3255 (for alpha-dec-osf4.0f). Fix typos.
3256
1e4d76e7
EZ
32572002-02-13 Elena Zannoni <ezannoni@redhat.com>
3258
3259 * linux-proc.c: Add include of regcache.h.
3260 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
3261
b6d1a1d5
AC
32622002-02-13 Andrew Cagney <ac131313@redhat.com>
3263
3264 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
3265 * memattr.c (create_mem_region): Disallow useless empty region.
3266 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 3267 non-overlapping.
b6d1a1d5 3268
6c6ea35e
MC
32692002-02-13 Michael Chastain <mec@shout.net>
3270
3271 * defs.h: Kill CONST_PTR.
3272 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
3273 * c-lang.c (c_builtin_types): Likewise.
3274 * ch-lang.c (ch_builtin_types): Likewise.
3275 * f-lang.c (f_builtin_types): Likewise.
3276 * language.c (unknown_builtin_types): Likewise.
3277 * m2-lang.c (m2_builtin_types): Likewise.
3278 * p-lang.c (pascal_builtin_types): Likewise.
3279 * scm-lang.c (c_builtin_types): Likewise.
3280
3e0b0f48
KS
32812002-02-13 Keith Seitz <keiths@redhat.com>
3282
3283 * arm-tdep.h (arm_get_next_pc): Add declaration.
3284
67255d04
RE
32852002-02-13 Richard Earnshaw <rearnsha@arm.com>
3286
3287 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
3288 with other related struct-returning functions.
3289 (arm_extract_struct_value_address): New function.
3290 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
3291 initialize float_format, double_format and long_double_format as
3292 appropriate to the endianness of the target.
3293 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
3294 (arm_use_struct_convention): Delete declaration.
3295 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3296
079777f6
KS
32972002-02-13 Keith Seitz <keiths@redhat.com>
3298
3299 * defs.h (core_addr_to_string_nz): New function.
3300
34588f23
MK
33012002-02-13 Mark Kettenis <kettenis@gnu.org>
3302
3303 Apply missing bits of 2002-01-15 patch.
3304 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
3305 (fill_fpregset): Use i387_fill_fsave.
3306
49b563f9
KS
33072002-02-12 Keith Seitz <keiths@redhat.com>
3308
49b563f9
KS
3309 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
3310 (core_addr_to_string_nz): New function.
3311
aeb98c60
RE
33122002-02-11 Richard Earnshaw <rearnsha@arm.com>
3313
3314 * arm-linux-nat.c: Really include arm-tdep.h.
3315 * config/arm/tm-linux.h (struct type, struct value): Declare.
3316
65554fef
MS
33172002-02-11 Michael Snyder <msnyder@redhat.com>
3318
3319 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
3320 (gcore section): Ifdef for Solaris and Unixware only.
3321 (procfs_do_thread_registers): Unixware needs one lwpstatus
3322 per thread (not one prstatus or pstatus).
3323 (procfs_make_note_section): Iterate only over kernel threads (lwps),
3324 not over all gdb threads. For unixware, call elfcore_write_pstatus
3325 once before iterating over threads.
3326
34e8f22d
RE
33272002-02-11 Richard Earnshaw <rearnsha@arm.com>
3328
3329 * arm-tdep.h: New file.
3330 * arm-tdep.c: Include arm-tdep.h.
3331 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
3332 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
3333 (arm_print_float_info, arm_register_type, convert_to_extended)
3334 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
3335 (arm_extract_return_value, arm_register_name): Make static.
3336 (arm_software_single_step): Similarly. Fix types in declaration.
3337 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
3338 (arm_store_return_value, arm_store_struct_return): New functions.
3339 (arm_gdbarch_init): Register the above functions. Also register
3340 call_dummy_start_offset, sizeof_call_dummy_words,
3341 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
3342 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 3343 max_register_virtual_size, register_size. Set up
34e8f22d
RE
3344 prologue_cache.saved_regs here, rather than ...
3345 (_initialize_arm_tdep): ... here.
3346 * config/arm/tm-arm.h (struct type, struct value): Delete forward
3347 declarations.
3348 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
3349 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
3350 (arm_print_float_info, arm_register_type, convert_to_extended)
3351 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
3352 (arm_extract_return_value, arm_register_name): Delete declarations.
3353 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
3354 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
3355 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
3356 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
3357 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3358 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
3359 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
3360 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
3361 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
3362 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
3363 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
3364 (arm_get_next_pc): No-longer static -- these are needed by the RDI
3365 interface.
3366 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
3367 * remote-rdi.c remote-rdp.c: Likewise.
3368 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
3369 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
3370 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
3371 definition.
3372
3373 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
3374 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
3375 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
3376 from non-ARM_ prefixed definitions.
3377 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
3378 all uses of above.
3379 * remote-rdi.c remote-rdp.c: Likewise.
3380 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
3381
148754e5
RE
33822002-02-11 Richard Earnshaw <rearnsha@arm.com>
3383
3384 * arm-tdep.c (arm_frameless_function_invocation)
3385 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3386 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3387 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3388 (arm_pop_frame, arm_get_next_pc): Make static.
3389 (arm_gdbarch_init): Register above in gdbarch structure.
3390 (arm_read_fp): Renamed from arm_target_read_fp.
3391 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
3392 * config/arm/tm-arm.h (arm_frameless_function_invocation)
3393 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3394 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3395 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3396 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
3397 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
3398 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
3399 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
3400 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
3401 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 3402
434d2d4f
DJ
34032002-02-10 Daniel Jacobowitz <drow@mvista.com>
3404
3405 * symtab.c (compare_search_syms): New function.
3406 (sort_search_symbols): New function.
3407 (search_symbols): Sort symbols after searching rather than
3408 before.
3409
55241689
AC
34102002-02-10 Andrew Cagney <ac131313@redhat.com>
3411
3412 * NEWS: Linux -> GNU/Linux.
3413
028c194b
AC
34142002-02-10 Andrew Cagney <ac131313@redhat.com>
3415
3416 * gdbarch.sh: For for level one methods, disallow a definition
3417 when partially multi-arched. Add comments explaining rationale.
3418 * gdbarch.h: Re-generate.
3419
6acf50cd
AC
34202002-02-10 Andrew Cagney <ac131313@redhat.com>
3421
3422 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
3423 multi-arch partial.
aaa38bb5 3424
50248794
AC
34252002-02-10 Andrew Cagney <ac131313@redhat.com>
3426
3427 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
3428 field. Use diff -u.
3429 * gdbarch.c: Re-generate.
3430
c30e0066
AC
34312002-02-10 Andrew Cagney <ac131313@redhat.com>
3432
9b56c5f3 3433 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
3434 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
3435 partial.
3436
6e6d6484
AC
34372002-02-10 Andrew Cagney <ac131313@redhat.com>
3438
3439 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
3440 multi-arch partial.
3441 (PUSH_ARGUMENTS): Switch to using predefault.
3442 * gdbarch.c: Regenerate.
3443
c203844d
AC
34442002-02-10 Andrew Cagney <ac131313@redhat.com>
3445
3446 * valops.c (PUSH_ARGUMENTS): Delete definition.
3447 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
3448 partial. Default to default_push_arguments.
3449 * gdbarch.h, gdbarch.c: Regenerate.
3450
b5a2688f
AC
34512002-02-09 Andrew Cagney <ac131313@redhat.com>
3452
3453 * defs.h (throw_exception): Rename return_to_top_level. Update
3454 comments.
3455 * utils.c (error_stream, internal_verror, quit): Ditto.
3456 * top.c (throw_exception, catcher): Ditto.
3457 * sparclet-rom.c (sparclet_load): Ditto.
3458 * remote.c (interrupt_query, minitelnet): Ditto.
3459 * remote-sds.c (interrupt_query): Ditto.
3460 * remote-mips.c (mips_error, mips_kill): Ditto.
3461 * ocd.c (interrupt_query): Ditto.
3462 * monitor.c (monitor_interrupt_query): Ditto.
3463 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
3464 * target.h: Update comment.
aaa38bb5 3465
b5a2688f 3466 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 3467
2fa5c1e0
AC
34682002-02-09 Andrew Cagney <ac131313@redhat.com>
3469
3470 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
3471 default_double_format.
3472 * gdbarch.h, gdbarch.c: Re-generate.
3473 * findvar.c (floatformat_unknown): Delete variable definition.
3474 * doublest.h (floatformat_unknown): Delete variable declaration.
3475
da966255
JB
34762002-02-09 Jim Blandy <jimb@redhat.com>
3477
3478 * stabsread.c (read_type): Add code to parse Sun's syntax for
3479 prototyped function types.
3480
123a4891
AC
34812002-02-09 Andrew Cagney <ac131313@redhat.com>
3482
3483 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
3484 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
3485
fb39c8f3
PS
34862002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3487
3488 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
3489 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
3490 now _initialize_xcoffsolib gets called again and overrides the
3491 commands from solib.c in a native configuration.
3492
0b87a11d
MK
34932002-02-09 Mark Kettenis <kettenis@gnu.org>
3494
3495 * doublest.c (store_typed_floating): Don't try to return a value.
3496 Fixes PR gdb/290.
3497
bdc2fc72
JB
34982002-02-08 Jim Blandy <jimb@redhat.com>
3499
3500 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
3501 is prototyped and has no arguments, print its argument list as
3502 `(void)'.
3503
da69bbcf
CD
35042002-02-08 Chris Demetriou <cgd@broadcom.com>
3505
3506 * MAINTAINERS (write-after-approval): Add myself.
3507 (paper-trail): I've escaped!
aaa38bb5 3508
b69571f5
CF
35092002-02-08 Christopher Faylor <cgf@redhat.com>
3510
3511 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
3512 changes.
3513 (_initialize_check_for_gdb_ini): Ditto.
3514
f6871398
MH
35152002-02-08 Martin M. Hunt <hunt@redhat.com>
3516
3517 * win32-nat.c (cygwin_pid_to_str): Fix typo.
3518 xaprintf -> xasprintf.
3519
4e52d31c
PM
35202002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
3521
3522 * win32-nat.c: Remove use of printf and sprintf functions.
3523
39bbf761
RE
35242002-02-08 Richard Earnshaw <rearnsha@arm.com>
3525
3526 * arm-tdep.c (arm_frame_chain_valid): Make static.
3527 (arm_push_arguments): Likewise.
3528 (arm_gdbarch_init): New function.
3529 (_initialize_arm_tdep): Call it.
3530 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
3531 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
3532 (FRAME_CHAIN_VALID): Delete.
3533 (arm_frame_chain_valid): Delete declaration.
3534 (PUSH_ARGUMENTS): Delete.
3535 (arm_push_arguments): Delete declaration.
3536 (CALL_DUMMY_P): Delete.
3537
9c9532c9
CV
35382002-02-08 Andrew Cagney <ac131313@redhat.com>
3539 Corinna Vinschen <vinschen@redhat.com>
3540
3541 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
3542 on builtin float types.
3543
4e8f7a8b
DJ
35442002-02-08 Daniel Jacobowitz <drow@mvista.com>
3545
3546 * utils.c: Include <curses.h> before "bfd.h".
3547 * tui/tui-hooks.c: Likewise.
3548 * tui/tui.c: Likewise.
3549 * tui/tuiCommand.c: Likewise.
3550 * tui/tuiData.c: Likewise.
3551 * tui/tuiDataWin.c: Likewise.
3552 * tui/tuiDisassem.c: Likewise.
3553 * tui/tuiGeneralWin.c: Likewise.
3554 * tui/tuiIO.c: Likewise.
3555 * tui/tuiLayout.c: Likewise.
3556 * tui/tuiRegs.c: Likewise.
3557 * tui/tuiSource.c: Likewise.
3558 * tui/tuiSourceWin.c: Likewise.
3559 * tui/tuiStack.c: Likewise.
3560 * tui/tuiWin.c: Likewise.
3561
cd4bffcf
EZ
35622002-02-07 Elena Zannoni <ezannoni@redhat.com>
3563
3564 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
3565 to include space for pseudoregs as well. Update loops accordingly.
3566 (sh_fp_frame_init_saved_regs): Ditto.
3567 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
3568
26806ce2
AC
35692002-02-07 Andrew Cagney <ac131313@redhat.com>
3570
3571 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
3572 Add Richard Earnshaw to Arm maintainers.
3573
97fdab62
AC
35742002-02-07 Andrew Cagney <ac131313@redhat.com>
3575
a6b98203
AC
3576 * defs.h (warning_begin): Delete declaration.
3577
97fdab62
AC
3578 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
3579 Delete macro.
3580
78b29b40
MS
35812002-02-07 Michael Snyder <msnyder@redhat.com>
3582
aaa38bb5 3583 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
3584 Logic bug, remove misplaced else.
3585
d8849953
KD
35862002-02-07 Klee Dienes <klee@apple.com>
3587
3588 * fork-inferior.c (fork_inferior): Add '!' to the list of
3589 characters that need to be quoted when building a string for the
3590 shell. Quote '!' specifically with a backslash, since CSH chokes
3591 when trying to evaluate "str!str".
aaa38bb5 3592
095778a0
NC
35932002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
3594
3595 * rdi-share/host.h: Only provide a typedef for bool if it is not
3596 defined.
3597
1900040c
MS
35982002-02-04 Michael Snyder <msnyder@redhat.com>
3599
3600 * breakpoint.h (enum bptype): Add new overlay event bp type.
3601 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 3602
1900040c
MS
3603 * breakpoint.c (create_internal_breakpoint): New function.
3604 (internal_breakpoint_number): Moved into create_internal_breakpoint.
3605 (create_longjmp_breakpoint): Use create_internal_breakpoint.
3606 (create_thread_event_breakpoint): Ditto.
3607 (create_solib_event_breakpoint): Ditto.
3608 (create_overlay_event_breakpoint): New function.
3609 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
3610 (update_breakpoints_after_exec): Delete and re-initialize
3611 overlay event breakpoints after an exec. Add FIXME comment
3612 about longjmp breakpoint.
3613 (print_it_typical): Ignore overlay event breakpoints.
3614 (print_one_breakpoint): Ditto.
3615 (mention): Ditto.
3616 (bpstat_what): Do not stop for overlay event breakpoints.
3617 (delete_breakpoint): Don't delete overlay event breakpoints.
3618 (breakpoint_re_set_one): Delete the overlay event breakpoint.
3619 (breakpoint_re_set): Re-create overlay event breakpoint.
3620
3621 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
3622 (overlay_manual_command): Disable overlay breakpoints.
3623 (overlay_off_command): Disable overlay breakpoints.
3624
082fc60d
RE
36252002-02-06 Richard Earnshaw <rearnsha@arm.com>
3626
3627 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
3628 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
3629 to here from config/tm-arm.h.
3630 (coff_sym_is_thumb): Make static.
3631 (arm_elf_make_msymbol_special): New function.
3632 (arm_coff_make_msymbol_special): New function.
3633 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
3634 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
3635 (coff_sym_is_thumb): Delete declaration.
3636 (arm_elf_make_msymbol_special): Declare.
3637 (arm_coff_make_msymbol_special): Declare.
3638 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
3639 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
3640
039c5766
RE
36412002-02-06 Richard Earnshaw <rearnsha@arm.com>
3642
3643 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
3644
36452002-02-06 Richard Earnshaw <rearnsha@arm.com>
3646
3647 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
3648 * gdbarch.c gdbarch.h: Regenerate.
3649 * arch-utils.c (default_print_float_info): New function.
3650 * arch-utils.h (default_print_float_info): Prototype it.
3651 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
3652 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
3653 (PRINT_FLOAT_INFO): Document it.
3654
3655 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
3656 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
3657 (PRINT_FLOAT_INFO): Define.
3658
58fa08f0
PM
36592002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
3660
aaa38bb5 3661 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
3662 Add typecast to sprintf argument to suppress a warning.
3663
7393af7c
PM
36642002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
3665
58fa08f0 3666 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
3667 to allow easier handling of pass state.
3668 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
3669 that gives exception name and address.
3670 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 3671 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 3672 exceptions added.
aaa38bb5
AJ
3673 (child_continue): Correctly report continue_status.
3674 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 3675 TARGET_SIGNAL_0 (new default value).
aaa38bb5 3676 (child_resume): consider sig argument passed to decide if
7393af7c
PM
3677 the exception should be passed to debuggee or not.
3678
6af4589c
MS
36792002-02-05 Michael Snyder <msnyder@redhat.com>
3680
3681 * regcache.c (fetch_register): Call target_fetch_register
3682 only if we don't call FETCH_PSEUDO_REGISTER.
3683 (store_register): Call target_store_register only if we
3684 don't call STORE_PSEUDO_REGISTER.
3685
a2cf933a
EZ
36862002-02-05 Elena Zannoni <ezannoni@redhat.com>
3687
3688 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
3689 ELF_MAKE_MSYMBOL_SPECIAL.
3690 * gdbarch.c, gdbarch.h: Regenerate.
3691 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 3692 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
3693 * elfread.c (elf_symtab_read): Compile use of
3694 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
3695 multiarched.
3696 * coffread.c (coff_symtab_read): Ditto, for
3697 COFF_MAKE_MSYMBOL_SPECIAL.
3698
6bb7be43
JB
36992002-02-05 Jim Blandy <jimb@redhat.com>
3700
3701 * solib-svr4.c (svr4_truncate_ptr): New function.
3702 (svr4_relocate_section_addresses): Do the address arithmetic with
3703 the appropriate truncation for target addresses, even when
3704 CORE_ADDR is larger than a target address.
3705
e18651ec
DJ
37062002-02-05 Daniel Jacobowitz <drow@mvista.com>
3707
3708 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
3709 to (int *).
3710
6b2725be
DJ
37112002-02-05 Daniel Jacobowitz <drow@mvista.com>
3712
3713 * gdbserver/linux-low.c (kill_inferior): Remove commented out
3714 code.
3715
fca9e603
DJ
37162002-02-05 Daniel Jacobowitz <drow@mvista.com>
3717
3718 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
3719
6c537a52
DJ
37202002-02-05 Daniel Jacobowitz <drow@mvista.com>
3721
3722 * gdbserver/linux-low.c: Remove unused include files.
3723
d844cde6
DJ
37242002-02-05 Daniel Jacobowitz <drow@mvista.com>
3725
3726 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
3727 (read_inferior_memory): Use it.
3728 (write_inferior_memory): Likewise.
3729
d07c63e7
DJ
37302002-02-05 Daniel Jacobowitz <drow@mvista.com>
3731
3732 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
3733 grubbing through sys_errlist.
3734
da6d8c04
DJ
37352002-02-05 Daniel Jacobowitz <drow@mvista.com>
3736
3737 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
3738
5b421780
PM
37392002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3740 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
3741
9f60d481
AC
37422002-02-04 Andrew Cagney <ac131313@redhat.com>
3743
3744 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
3745 (do_sfunc, set_cmd_sfunc): New functions.
3746
3747 * command.h (struct cmd_list_element): Add field func.
3748 * cli/cli-decode.h (struct cmd_list_element): Ditto.
3749 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
3750 * cli/cli-decode.h: Ditto.
3751
3752 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
3753 (help_all, help_cmd_list): Ditto.
3754 (find_cmd, complete_on_cmdlist): Ditto.
3755 * top.c (execute_command): Ditto.
3756
3757 * cli/cli-setshow.c (do_setshow_command): Call func instead of
3758 function.sfunc.
3759
3760 * infcmd.c (notice_args_read): Fix function signature.
3761
3762 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
3763 * cli/cli-decode.c (add_set_cmd): Ditto.
3764 * utils.c (initialize_utils): Ditto.
3765 * maint.c (_initialize_maint_cmds): Ditto.
3766 * infrun.c (_initialize_infrun): Ditto.
3767 * demangle.c (_initialize_demangler): Ditto.
3768 * remote.c (add_packet_config_cmd): Ditto.
3769 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3770 * cris-tdep.c (_initialize_cris_tdep): Ditto.
3771 * proc-api.c (_initialize_proc_api): Ditto.
3772 * kod.c (_initialize_kod): Ditto.
3773 * valprint.c (_initialize_valprint): Ditto.
3774 * top.c (init_main): Ditto.
3775 * infcmd.c (_initialize_infcmd): Ditto.
3776 * corefile.c (_initialize_core): Ditto.
3777 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3778 * arch-utils.c (initialize_current_architecture): Ditto.
3779 (_initialize_gdbarch_utils): Ditto.
3780 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3781
3782 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
3783 * wince.c (_initialize_inftarg): Ditto.
3784 * symfile.c (_initialize_symfile): Ditto.
3785 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3786 * language.c (_initialize_language): Ditto.
3787 * arc-tdep.c (_initialize_arc_tdep): Ditto.
3788
f9ba0717
MS
37892002-02-04 Michael Snyder <msnyder@redhat.com>
3790
3791 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
3792
0c74b2a7
DJ
37932002-02-04 Daniel Jacobowitz <drow@mvista.com>
3794
3795 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
3796 Add rules for building the register data files.
3797
c638789f
DJ
37982002-02-04 Daniel Jacobowitz <drow@mvista.com>
3799
3800 * regformats/regdat.sh: Add braces to the definition of
3801 expedite_regs_${arch}.
3802
db253027
DJ
38032002-02-04 Daniel Jacobowitz <drow@mvista.com>
3804
3805 * regformats/regdef.h (struct reg): Add comment describing the
3806 requirements for offset and size fields.
3807
206be19c
AS
38082002-02-04 Andreas Schwab <schwab@suse.de>
3809
3810 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
3811 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
3812
181c1381
RE
38132002-02-04 Richard Earnshaw <rearnsha@arm.com>
3814
3815 * gdbarch.sh (copyright): Update years in generated header.
3816 (SMASH_TEXT_ADDRESS): Add rule.
db253027 3817 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
3818 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
3819 * dbxread.c: Likewise.
3820 * dwarfread.c: Likewise.
3821 * elfread.c: Likewise.
3822 * somread.c: Likewise.
3823
3824 * arm-tdep.c (arm_smash_text_address): New function.
3825 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
3826
fa4ba8da
PM
38272002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3828
3829 Add support for hardware watchpoints on win32 native.
aaa38bb5 3830 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 3831 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 3832 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
3833 of debug registers.
3834 (debug_registers_changed): New variable. Reflects when debug registers
3835 are changed and need to be written to inferior.
aaa38bb5 3836 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
3837 was set, used when new threads are created.
3838 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
3839 i386-nat code.
3840 (thread_rec): Set dr array if id is the thread of current_event .
3841 (child_continue, child_resume): Change the debug registers for all
3842 threads if debug_registers_changed.
3843 (child_add_thread): Change the debug registers if debug_registers_used.
3844 * config/i386/cygwin.mh: Add use of i386-nat.o file.
3845 Link nm.h to new nm-cygwin.h file.
3846 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
3847 of hardware registers.
3848
a73c86fb
AC
38492002-02-03 Andrew Cagney <ac131313@redhat.com>
3850
3851 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
3852 Restore behavour broken by 2002-01-20 Andrew Cagney
3853 <ac131313@redhat.com> IEEE_FLOAT removal.
3854
acf5ed49
DJ
38552002-02-03 Daniel Jacobowitz <drow@mvista.com>
3856
3857 * c-valprint.c (c_val_print): Pass a proper valaddr to
3858 cp_print_class_method.
3859 * valops.c (search_struct_method): If there is only one method
3860 and args is NULL, return that method.
3861
493d28d5
DJ
38622002-02-03 Daniel Jacobowitz <drow@mvista.com>
3863
3864 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
3865 accessing tag_name directly.
3866
7495dfdb
DJ
38672002-02-03 Daniel Jacobowitz <drow@mvista.com>
3868
3869 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
3870 of accessing tag_name directly.
3871
dd6bda65
DJ
38722002-02-03 Daniel Jacobowitz <drow@mvista.com>
3873
3874 PR gdb/280
3875 * gdbtypes.c (replace_type): New function.
3876 * gdbtypes.h (replace_type): Add prototype.
3877 * stabsread.c (read_type): Use replace_type.
3878
88fe217c
RE
38792002-02-03 Richard Earnshaw <rearnsha@arm.com>
3880
3881 * Makefile.in (memattr.o): Add missing dependencies rule.
3882
e5d66720
PS
38832002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3884
3885 * breakpoint.c (break_at_finish_command): Really export.
3886 (break_at_finish_at_depth_command): Ditto.
3887 (tbreak_at_finish_command): Ditto.
3888 * hppa-tdep.c: Include completer.h.
3889 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
3890 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
3891
fffee0be
AC
38922002-02-01 Andrew Cagney <ac131313@redhat.com>
3893
3894 * utils.c (do_write): New function.
3895 (error_stream): Rewrite combining the code from error_begin and
3896 verror.
3897 (verror): Rewrite using error_stream.
3898 (error_begin): Delete function.
3899
255e7dbf
AC
39002002-02-01 Andrew Cagney <ac131313@redhat.com>
3901
3902 * utils.c (error_begin): Make static.
3903 * defs.h (error_begin): Delete declaration.
3904
3905 * linespec.c (cplusplus_error): Replace cplusplus_hint.
3906 (decode_line_1): Use cplusplus_error instead of error_begin,
3907 cplusplus_hint and return_to_top_level.
3908 * coffread.c (coff_symfile_read): Use error instead of error_begin
3909 and return_to_top_level.
3910 * infrun.c (default_skip_permanent_breakpoint): Ditto.
3911
ddfe3c15
AC
39122002-02-01 Andrew Cagney <ac131313@redhat.com>
3913
3914 * language.h (type_error, range_error): Make string parameter
3915 constant.
3916 * language.c (warning_pre_print): Delete extern declaration.
3917 * dwarfread.c (warning_pre_print): Ditto.
3918 * language.c (type_error, range_error): Rewrite to use verror and
3919 vwarning instead of warning_begin.
3920
03ac34d5
MS
39212002-02-01 Michael Snyder <msnyder@redhat.com>
3922
261c4ca2
MS
3923 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
3924 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 3925
e00d1dc8
AC
39262002-02-01 Andrew Cagney <ac131313@redhat.com>
3927
3928 * command.h (NO_FUNCTION): Delete macro.
3929 * cli/cli-decode.h (NO_FUNCTION): Ditto.
3930 * top.c (execute_command): Replace NO_FUNCTION with NULL.
3931 * tracepoint.c (_initialize_tracepoint): Ditto.
3932 * cli/cli-decode.c (add_set_cmd): Ditto.
3933 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 3934
76b79d6e
DJ
39352002-02-01 Daniel Jacobowitz <drow@mvista.com>
3936
3937 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
3938 Update ``this'' pointer when calling virtual functions.
3939
799f9e91
MS
39402002-02-01 Michael Snyder <msnyder@redhat.com>
3941
c7bd442c 3942 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
3943 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
3944
3cf384d4
DJ
39452002-02-01 Daniel Jacobowitz <drow@mvista.com>
3946
3947 * regformats/reg-arm.dat: New file.
3948 * regformats/reg-i386.dat: New file.
3949 * regformats/reg-ia64.dat: New file.
3950 * regformats/reg-m68k.dat: New file.
3951 * regformats/reg-mips.dat: New file.
3952 * regformats/reg-ppc.dat: New file.
3953 * regformats/reg-sh.dat: New file.
3954 * regformats/regdef.h: New file.
3955 * regformats/regdat.sh: New file.
3956
0defa245
RE
39572002-02-01 Richard Earnshaw <reanrsha@arm.com>
3958
3959 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
3960 (arm_frame_args_address, arm_frame_locals_address): New functions.
3961 (arm_frame_num_args): New function.
3962 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
3963 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
3964 (FRMA_NUM_ARGS): Call arm_frame_num_args.
3965
405f26e6
MS
39662002-01-31 Michael Snyder <msnyder@redhat.com>
3967
502fd408
MS
3968 * breakpoint.c (break_at_finish_command): Export.
3969 (break_at_finish_at_depth_command): Export.
3970 (tbreak_at_finish_command): Export.
3971 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
3972 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
3973 "tbreak" commands, which are HPPA specific.
3974
7d35e135
MS
3975 * printcmd.c (disassemble_command): Remove an ancient
3976 artifact of an old merge.
3977
aaa38bb5 3978 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
3979 Define enum constant values for overlay mode.
3980 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
3981 (overlay_is_mapped, overlay_auto_command,
3982 overlay_manual_command): Ditto.
d874f1e2 3983
aaa38bb5
AJ
3984 * breakpoint.c (insert_breakpoints, remove_breakpoint,
3985 breakpoint_here_p, breakpoint_inserted_here_p,
3986 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
3987 describe_other_breakpoints, check_duplicates, clear_command):
3988 Coding standard fixes.
3989
8add0441 3990 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 3991 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
3992 code: check bfd SEC_READONLY flag for section.
3993
e351066e
AC
39942002-01-31 Andrew Cagney <ac131313@redhat.com>
3995
7d35e135 3996 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 3997
8a48e967
DJ
39982002-01-30 Daniel Jacobowitz <drow@mvista.com>
3999
4000 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
4001 data symbols, since we search based on textlow and texthigh.
4002 (find_pc_sect_symtab): Likewise.
4003
f5a96129
AC
40042002-01-30 Andrew Cagney <ac131313@redhat.com>
4005
4006 * defs.h (vwarning): Declare.
f5a96129
AC
4007 * utils.c (vwarning): New function.
4008 (warning): Call vwarning.
4009 (warning_begin): Delete function.
4010
4011 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
4012 the warning message.
4013 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
4014 warning_begin.
4015
cefd4ef5
MS
40162002-01-30 Michael Snyder <msnyder@redhat.com>
4017
1a703748
MS
4018 * NEWS: Mention "set trust-readonly-sections" command.
4019 Mention generate-core-file command.
cefd4ef5 4020
3a11626d
MS
40212002-01-15 Michael Snyder <msnyder@redhat.com>
4022
4023 * target.c: New command, "set trust-readonly-sections on".
4024 (do_xfer_memory): Honor the suggestion to trust readonly sections
4025 by reading them from the object file instead of from the target.
4026 (initialize_targets): Register command "set trust-readonly-sections".
4027
d1c7e53b
AC
40282002-01-29 Andrew Cagney <ac131313@redhat.com>
4029
4030 * parse.c (target_map_name_to_register): Simplify, search regs and
4031 pseudo-regs using a single loop.
4032
e2c9a72c
AC
40332002-01-30 Andrew Cagney <ac131313@redhat.com>
4034
4035 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
4036
69824b4e
MK
40372002-01-15 Rodney Brown <rbrown64@csc.com.au>
4038
4039 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
4040 * config/i386/i386v42mp.mh: Add i387-nat.o .
4041 * i386v4-nat.c: Include i387-nat.h.
4042 (supply_fpregset): Use i387_supply_fsave.
4043 (fill_fpregset): Use i387_fill_fsave.
4044
6eb69eab
RE
40452002-01-30 Richard Earnshaw <rearnsha@arm.com>
4046
4047 * arm-tdep.c (arm_call_dummy_words): Define.
4048 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
4049 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
4050 (CALL_DUMMY_WORDS): Define.
4051 (arm_call_dummy_words): Declare.
4052 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
4053 (arm_linux_call_dummy_words): Declare.
4054
9852326a
AS
40552002-01-30 Andreas Schwab <schwab@suse.de>
4056
4057 * m68klinux-nat.c: Fix last change to use regcache_collect
4058 instead of referencing registers[] directly.
4059
977a3030
AC
40602002-01-29 Andrew Cagney <ac131313@redhat.com>
4061
4062 * parse.c (target_map_name_to_register): Delete code wrapped in
4063 #ifdef REGISTER_NAME_ALIAS_HOOK.
4064
2076c72b
MS
40652002-01-28 Michael Snyder <msnyder@redhat.com>
4066
4067 * regcache.c (legacy_read_register_gen): Need to be able to
4068 read pseudo-register as well as real register.
4069 (legacy_write_register_gen): Ditto.
4070
8fcc723b
AC
40712002-01-28 Andrew Cagney <ac131313@redhat.com>
4072
4073 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
4074 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
4075 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
4076 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
4077 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
4078 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
4079 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
4080 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
4081 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
4082 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
4083 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
4084 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
4085 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
4086 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
4087 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
4088 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
4089 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
4090 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
4091 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
4092 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
4093
afe64c1a
AC
40942002-01-28 Andrew Cagney <ac131313@redhat.com>
4095
4096 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
4097 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
4098 (initialize_current_architecture): Update target_byte_order using
4099 information from BFD.
aaa38bb5 4100 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
4101 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
4102
75bc7ddf
AC
41032002-01-28 Andrew Cagney <ac131313@redhat.com>
4104
4105 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
4106 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
4107
4108 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
4109 #ifdef INVALID_FLOAT.
4110 * infcmd.c (do_registers_info): Ditto.
4111 * values.c (unpack_double): Ditto. Add comment.
4112
4113 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
4114 already commented out.
4115
0280a90a
AS
41162002-01-26 Andreas Schwab <schwab@suse.de>
4117
4118 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4119 * m68klinux-nat.c: Update ptrace interface for fetching/storing
4120 registers and add support for PTRACE_GETREGS.
4121
7072a954
AC
41222002-01-24 Andrew Cagney <ac131313@redhat.com>
4123
4124 GDB 5.1.1 released from 5.1 branch.
4125 * NEWS: Add 5.1.1 news.
4126 * README: Sync with 5.1 branch.
4127
86f902e0
FF
41282002-01-23 Fred Fish <fnf@redhat.com>
4129
4130 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
4131 stabstring on initial malloc. Reallocing will copy it for us,
4132 if necessary.
4133
8af51c36
EZ
41342002-01-23 Elena Zannoni <ezannoni@redhat.com>
4135
aaa38bb5 4136 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
4137 (HFILES_NO_SRCDIR): Remove hpread.h.
4138 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
4139 (hpread.o): Update dependencies.
4140 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
4141
4142 * hp-psymtab-read.c: Remove file.
4143 * hp-symtab-read.c: Remove file.
4144 * hpread.h: Remove file.
4145
4146 * hpread.c: Merge all contents of hp-psymtab-read.c,
4147 hp-symtab-read.c and hpread.h into this file, as it was prior to
4148 January 1999.
4149
4150 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 4151 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
4152 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
4153 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
4154
dc5cfeb6
EZ
41552002-01-23 Elena Zannoni <ezannoni@redhat.com>
4156
4157 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
4158 fill_gregset): Call gdbarch_tdep() just once, assign result to
4159 variable and use that, instead of calling the function several
4160 times.
4161
ea87b71b
AO
41622002-01-24 Alexandre Oliva <aoliva@redhat.com>
4163
4164 * configure.host: Accept sparcv9 as alias for sparc64.
4165 * configure.tgt: Likewise.
4166
13fc0c2f
KB
41672002-01-22 Kevin Buettner <kevinb@redhat.com>
4168
4169 * solib-aix5.c (build_so_list_from_mapfile)
4170 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
4171 arguments is not reversed.
4172 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
4173 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 4174
7bd872fe
EZ
41752002-01-22 Elena Zannoni <ezannoni@redhat.com>
4176
4177 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
4178 modified version of obsolete sh_fetch_pseudo_register.
4179 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
4180 (sh4_register_read): New function.
4181 (sh_pseudo_register_write): New function. Renamed and modified
4182 version of obsolete sh_store_pseudo_register.
4183 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
4184 (sh4_register_write): New function.
4185 (sh_gdbarch_init): Remove setting of gdbarch function
4186 fetch_pseudo_register and store_pseudo_register. Remove setting of
4187 register_convert_to_raw, register_convert_to_virtual,
4188 register_convertible.
4189 (sh_sh4_register_convertible): Delete. No longer needed. All is
4190 taken care by architecture specific functions
4191 register_read/register_write.
4192 (sh_sh4_register_convert_to_virtual): Make static.
4193 (sh_sh4_register_convert_to_raw): Ditto.
4194
069e84fd
AC
41952002-01-22 Andrew Cagney <ac131313@redhat.com>
4196
4197 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
4198 (floatformat_is_nan, floatformat_mantissa): Ditto.
4199
4200 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
4201 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
4202 builtin_type_ieee_double_little,
4203 builtin_type_ieee_double_littlebyte_bigword,
4204 builtin_type_m68881_ext, builtin_type_i960_ext,
4205 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
4206 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
4207 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
4208 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
4209
211a4f69
CV
42102002-01-22 Corinna Vinschen <vinschen@redhat.com>
4211
4212 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
4213 parameter. Set frameless flag if it exists and depended of
4214 whether the scanned function is frameless or not.
4215 (xstormy16_skip_prologue): If function is frameless, return
4216 result of xstormy16_scan_prologue().
4217 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
4218 call.
4219
f81353e4
EZ
42202002-01-21 Elena Zannoni <ezannoni@redhat.com>
4221
4222 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
4223 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
4224 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
4225 sh_sh4_register_byte, sh_sh4_register_raw_size,
4226 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
4227 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
4228 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
4229 sh_store_pseudo_register, sh_do_pseudo_register): Call
4230 gdbarch_tdep() just once, assign result to variable and use that,
4231 instead of calling the function several times.
4232
63c73a17
MK
42332002-01-20 Mark Kettenis <kettenis@gnu.org>
4234
4235 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
4236 macros instead of LAST_FPU_CTRL_REGNUM.
4237 (store_register): Likewise.
4238
39ad761d
JB
42392002-01-21 Jim Blandy <jimb@redhat.com>
4240
4241 * infcmd.c (run_command): Check that the `exec' target layer's BFD
4242 is up-to-date before running the program, not just when a program
4243 exits.
4244
3d74b771
FF
42452002-01-21 Fred Fish <fnf@redhat.com>
4246
4247 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
4248 when we have found all instructions we are looking for.
4249
966fbf70
RE
42502002-01-21 Richard Earnshaw <rearnsha@arm.com>
4251
4252 * arm-tdep.c (arm_register_name): New function.
4253 (arm_registers_names): Make static.
4254 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
4255 (arm_register_name): Declare.
4256 (REGISTER_NAME): Use it.
4257
c3b4394c
RE
42582002-01-21 Richard Earnshaw <rearnsha@arm.com>
4259 Kevin Buettner <kevinb@redhat.com>
4260
4261 Convert arm targets to new FRAME interface.
4262 * arm-tdep.c (struct frame_extra_info): Remove fsr.
4263 (arm_frame_find_save_regs): Delete.
4264 (arm_frame_init_saved_regs): New.
4265 (arm_init_extra_frame_info): Alloacte saved_regs as required.
4266 Allocate extra_info as required. Convert all uses of fsr.regs
4267 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
4268 to use extra_info.
4269 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
4270 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
4271 (check_prologue_cache, save_prologue_cache): Likewise.
4272 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
4273 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
4274 (FRAME_FIND_SAVED_REGS): Delete.
4275 (arm_frame_find_saved_regs): Delete prototype.
4276 (arm_frame_init_saved_regs): New prototype.
4277 (FRAME_INIT_SAVED_REGS): Define.
4278
61d99182
AC
42792002-01-20 Andrew Cagney <ac131313@redhat.com>
4280
4281 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
4282
6aaea291
AC
42832002-01-20 Andrew Cagney <ac131313@redhat.com>
4284
4285 From Jeff Law <law@redhat.com>:
4286 * infttrace.c: Include <sys/pstat.h>.
4287 (child_pid_to_exec_file): Revamp. Use pstat call to get the
4288 exec file if the ttrace equivalent fails.
4289
15f698d2
AC
42902002-01-20 Andrew Cagney <ac131313@redhat.com>
4291
4292 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
4293 (closeLogFile): Ditto.
4294
f86ddd7c
MC
42952002-01-20 Michael Chastain <mec@shout.net>
4296
4297 * top.c (print_gdb_version): Bump copyright year to 2002.
4298
904507ce
AC
42992002-01-20 Andrew Cagney <ac131313@redhat.com>
4300
4301 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
4302 Zannoni and Eli Zaretskii.
4303
d7f0b9ce
DJ
43042002-01-20 Daniel Jacobowitz <drow@mvista.com>
4305
4306 * buildsym.c: Update copyright years.
4307 * c-typeprint.c: Likewise.
4308 * dwarf2read.c: Likewise.
4309 * f-typeprint.c: Likewise.
4310 * gdbtypes.c: Likewise.
4311 * gdbtypes.h: Likewise.
4312 * hp-symtab-read.c: Likewise.
4313 * hpread.c: Likewise.
4314 * mdebugread.c: Likewise.
4315 * p-typeprint.c: Likewise.
4316
3fd3d7d2
AC
43172002-01-20 Andrew Cagney <ac131313@redhat.com>
4318
4319 * remote-sim.c (gdbsim_open): Simplify code testing the macro
4320 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
4321 byte-order selectable.
4322 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
4323 * arch-utils.c: Ditto.
4324 (set_endian): Ditto.
4325 (set_endian_from_file): Ditto.
4326 * gdbserver/low-sim.c (create_inferior): Ditto.
4327 * gdbarch.sh: Ditto.
4328 * gdbarch.h: Re-generate.
aaa38bb5
AJ
4329 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4330 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
4331 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
4332 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4333 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4334 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4335 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
4336 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
4337 macro definition.
4338 * config/mips/tm-wince.h: Remove #undef of macro
4339 TARGET_BYTE_ORDER_SELECTABLE.
4340 * config/sh/tm-wince.h: Ditto.
4341
b02dede2
DJ
43422002-01-20 Daniel Jacobowitz <drow@mvista.com>
4343
4344 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
4345 member function fields. Add accessor macro
4346 TYPE_FN_FIELD_ARTIFICIAL.
4347 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
4348 * c-typeprint.c (c_type_print_base): Skip artificial member
4349 functions.
4350
c3643761
DJ
43512002-01-20 Daniel Jacobowitz <drow@mvista.com>
4352
4353 * f-typeprint.c: Delete unused function f_type_print_args.
4354 * p-typeprint.c: Delete unused function pascal_type_print_args.
4355
8176bb6d
DJ
43562002-01-20 Daniel Jacobowitz <drow@mvista.com>
4357
4358 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
4359 comment. Add ``artificial'' to ``union field_location''.
4360
4361 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
4362
4363 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
4364 * mdebugread.c (parse_symbol): Likewise.
4365 * stabsread.c (define_symbol): Likewise.
4366 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
4367 initializing TYPE_FIELD_BITPOS to n (obsolete).
4368 (hpread_doc_function_type): Likewise.
4369 * hpread.c (hpread_function_type): Likewise.
4370
7fd60527
AC
43712002-01-20 Andrew Cagney <ac131313@redhat.com>
4372
4373 * configure.in (host_makefile_frag): Only require a host makefile
4374 fragment when a native build.
4375 * configure: Re-generate.
4376
c2f05ac9
AC
43772002-01-20 Andrew Cagney <ac131313@redhat.com>
4378
4379 * doublest.h (floatformat_from_type): Declare.
4380 * doublest.c (floatformat_from_type): New function.
4381 (convert_typed_floating): Use.
4382
4383 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
4384 call to function floatformat_from_type.
4385
4386 * gdbarch.sh (IEEE_FLOAT): Delete.
4387 * gdbarch.h, gdbarch.c: Re-generate.
4388 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
4389 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
4390 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
4391 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
4392 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
4393 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
4394 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
4395 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
4396 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
4397 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
4398 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
4399 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
4400
4401 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
4402 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
4403 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4404 * sh-tdep.c (sh_gdbarch_init): Ditto.
4405 * mips-tdep.c (mips_gdbarch_init): Ditto.
4406 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4407 * cris-tdep.c (cris_gdbarch_init): Ditto.
4408
abf22e64
AJ
44092002-01-20 Jiri Smid <smid@suse.cz>
4410
4411 * configure.host, configure.tgt: Support x86-64.
4412 * NEWS: Note new target x86-64.
4413
b7c4cbf8
AJ
4414 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
4415 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
4416 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
4417 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
4418 x86-64-linux-nat.o): Fix dependencies.
4419
82600034
AC
44202002-01-19 Andrew Cagney <ac131313@redhat.com>
4421
4422 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
4423 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
4424 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
4425 * config/sparc/xm-sun4os4.h: Delete file.
4426 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 4427
bbe5c628
AC
44282002-01-19 Andrew Cagney <ac131313@redhat.com>
4429
4430 * config/sparc/sparclynx.mh (XM_FILE): Delete.
4431 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
4432 * config/m68k/m68klynx.mh (XM_FILE): Delete.
4433 * config/i386/i386lynx.mh (XM_FILE): Delete.
4434 * config/rs6000/xm-rs6000ly.h: Delete file.
4435 * config/sparc/xm-sparclynx.h: Delete file.
4436 * config/m68k/xm-m68klynx.h: Delete file.
4437 * config/i386/xm-i386lynx.h: Delete file.
4438 * config/xm-lynx.h: Delete file.
4439 * config/djgpp/fnchange.lst: Update.
4440
f8453e34
JT
44412002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4442
4443 * alpha-tdep.c (alpha_register_byte): New function.
4444 (alpha_register_raw_size): Ditto.
4445 (alpha_register_virtual_size): Ditto.
4446 (alpha_skip_prologue_internal): Renamed from
4447 alpha_skip_prologue.
4448 (alpha_skip_prologue): New version that calls
4449 alpha_skip_prologue_internal.
4450 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
4451 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
4452 second argument from alpha_skip_prologue.
4453 (REGISTER_BYTE): Use alpha_register_byte.
4454 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
4455 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
4456 (FRAMELESS_FUNCTION_INVOCATION): Use
4457 generic_frameless_function_invocation_not.
4458 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
4459 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
4460
52d9e613
AC
44612002-01-19 Andrew Cagney <ac131313@redhat.com>
4462
4463 * config/mips/xm-news-mips.h: Delete file.
4464 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
4465
4466 * config/m88k/xm-m88k.h: Delete file.
4467 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
4468 * config/m88k/xm-delta88v4.h: Ditto.
4469 * config/m88k/xm-delta88.h: Ditto.
4470
4471 * config/alpha/xm-fbsd.h: Delete file.
4472 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
4473
4474 * config/sparc/xm-sparc.h: Delete file.
4475 * Makefile.in (xm-sun4os4.h): Delete dependency.
4476 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
4477 * config/sparc/xm-sun4os4.h: Ditto.
4478 * config/sparc/xm-linux.h: Ditto.
4479
4480 * config/i386/xm-windows.h: Delete file.
4481
2d1b2124
AC
44822002-01-19 Andrew Cagney <ac131313@redhat.com>
4483
4484 * utils.c: Include <sys/param.h> for MAXPATHLEN.
4485 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
4486
ee1f65f0
JT
44872002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4488
4489 * alpha-tdep.c (alpha_call_dummy_words): New.
4490 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
4491 (CALL_DUMMY_P): Define.
4492 (CALL_DUMMY_WORDS): Define.
4493 (SIZEOF_CALL_DUMMY_WORDS): Define.
4494
98081e55
PB
44952002-01-19 Per Bothner <per@bothner.com>
4496
4497 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
4498 isn't NULL, which can happen with some gcj-3.x-produced code.
4499
0d056799
JT
45002002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4501
4502 * alpha-tdep.c (alpha_register_virtual_type): New function.
4503 (alpha_init_frame_pc_first): Ditto.
4504 (alpha_fix_call_dummy): Ditto.
4505 (alpha_store_struct_return): Ditto.
4506 (alpha_extract_struct_value_address): Ditto.
4507 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
4508 alpha_register_virtual_type.
4509 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
4510 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
4511 alpha_extract_struct_value_address.
4512 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
4513 (INIT_FRAME_PC): Use init_frame_pc_noop.
4514 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
4515
4604bcad
MK
45162002-01-19 Mark Kettenis <kettenis@gnu.org>
4517
4518 * i386gnu-nat.c: Include "i386-tdep.h".
4519 (fetch_fpregs): Simplify code dealing with uninitialized floating
4520 point states such that it doesn't require FP7_REGNUM.
4521
140f9984
JT
45222002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4523
abf22e64
AJ
4524 * alpha-tdep.c (frame_extra_info): New.
4525 (alpha_find_saved_regs): Make static. Use
140f9984
JT
4526 frame->extra_info.
4527 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
4528 (alpha_frame_saved_pc): Use frame->extra_info.
4529 (temp_saved_regs): Don't declare as struct frame_saved_regs.
4530 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
4531 (init_extra_frame_info): Rename to...
4532 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 4533 (alpha_print_extra_frame_info): New function.
140f9984
JT
4534 (alpha_frame_locals_address): Ditto.
4535 (alpha_frame_args_address): Ditto.
abf22e64 4536 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
4537 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
4538 alpha_frame_args_address.
abf22e64 4539 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 4540 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
4541 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
4542 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
4543 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
4544 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
4545
d734c450
JT
45462002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4547
4548 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
4549 (alpha_cannot_fetch_register): Ditto.
4550 (alpha_cannot_store_register): Ditto.
4551 (alpha_register_convertible): Ditto.
4552 (alpha_use_struct_convention): Ditto.
4553 * config/alpha/tm-alpha.h: Update copyright years.
4554 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
4555 (INNER_THAN): Use core_addr_lessthan.
4556 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
4557 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
4558 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
4559 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
4560 (FRAME_CHAIN): Remove unnecessary cast.
4561
b4ceaee6
AC
45622002-01-18 Andrew Cagney <ac131313@redhat.com>
4563
4564 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
4565 obsolete.
4566
0a65a603
AC
45672002-01-18 Andrew Cagney <ac131313@redhat.com>
4568
4569 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
4570 * monitor.c, remote-array.c, remote-bug.c: Ditto.
4571 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
4572 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
4573 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
4574 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
4575 * x86-64-linux-nat.c: Ditto.
4576
636a6dfc
JT
45772002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4578
abf22e64 4579 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
4580 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
4581 (REGISTER_NAME): Define.
4582
acceddb6
JT
45832002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4584
4585 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
4586
ec32e4be
JT
45872002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4588
4589 * alpha-tdep.c: Update copyright years.
4590 (alpha_next_pc): New function.
4591 (alpha_software_single_step): Ditto.
4592 * config/alpha/tm-alpha.h: Add prototype for
4593 alpha_software_single_step.
4594
e771a871
JT
45952002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4596
4597 * alphabsd-nat.c: Update copyright years.
4598 (fill_gregset): Use regcache_collect.
4599 (fill_fpregset): Likewise.
4600 (fetch_inferior_registers): Only fetch integer registers
4601 if requested to do so.
4602 (store_inferior_registers): Only store integer registers
4603 if requested to do so.
4604
7708fa01
AC
46052002-01-17 Andrew Cagney <ac131313@redhat.com>
4606
4607 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
4608 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
4609 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
4610 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
4611 * config/alpha/fbsd.mh (XDEPFILES): Delete.
4612 * config/arm/linux.mh (XDEPFILES): Delete.
4613 * config/arm/nbsd.mh (XDEPFILES): Delete.
4614 * config/i386/i386dgux.mh (XDEPFILES): Delete.
4615 * config/i386/i386sol2.mh (XDEPFILES): Delete.
4616 * config/i386/i386m3.mh (XDEPFILES): Delete.
4617 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
4618 * config/i386/i386gnu.mh (XDEPFILES): Delete.
4619 * config/i386/fbsd.mh (XDEPFILES): Delete.
4620 * config/i386/i386bsd.mh (XDEPFILES): Delete.
4621 * config/i386/i386sco5.mh (XDEPFILES): Delete.
4622 * config/i386/i386v4.mh (XDEPFILES): Delete.
4623 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
4624 * config/i386/i386sco4.mh (XDEPFILES): Delete.
4625 * config/i386/i386aix.mh (XDEPFILES): Delete.
4626 * config/i386/go32.mh (XDEPFILES): Delete.
4627 * config/i386/cygwin.mh (XDEPFILES): Delete.
4628 * config/i386/i386lynx.mh (XDEPFILES): Delete.
4629 * config/i386/i386mach.mh (XDEPFILES): Delete.
4630 * config/i386/i386v32.mh (XDEPFILES): Delete.
4631 * config/i386/linux.mh (XDEPFILES): Delete.
4632 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
4633 * config/i386/ncr3000.mh (XDEPFILES): Delete.
4634 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
4635 * config/i386/i386sco.mh (XDEPFILES): Delete.
4636 * config/i386/i386v.mh (XDEPFILES): Delete.
4637 * config/i386/nbsd.mh (XDEPFILES): Delete.
4638 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
4639 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
4640 * config/i386/symmetry.mh (XDEPFILES): Delete.
4641 * config/i386/obsd.mh (XDEPFILES): Delete.
4642 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
4643 * config/ia64/linux.mh (XDEPFILES): Delete.
4644 * config/ia64/aix.mh (XDEPFILES): Delete.
4645 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
4646 * config/m68k/dpx2.mh (XDEPFILES): Delete.
4647 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
4648 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
4649 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
4650 * config/m68k/linux.mh (XDEPFILES): Delete.
4651 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
4652 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
4653 * config/m68k/nbsd.mh (XDEPFILES): Delete.
4654 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
4655 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
4656 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
4657 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
4658 * config/m88k/delta88.mh (XDEPFILES): Delete.
4659 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
4660 * config/m88k/m88k.mh (XDEPFILES): Delete.
4661 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
4662 * config/mips/linux.mh (XDEPFILES): Delete.
4663 * config/mips/irix6.mh (XDEPFILES): Delete.
4664 * config/mips/irix5.mh (XDEPFILES): Delete.
4665 * config/mips/irix4.mh (XDEPFILES): Delete.
4666 * config/mips/irix3.mh (XDEPFILES): Delete.
4667 * config/mips/decstation.mh (XDEPFILES): Delete.
4668 * config/mips/mipsm3.mh (XDEPFILES): Delete.
4669 (NATDEPFILES): Move core-aout.o to here.
4670 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
4671 * config/pa/hpux1020.mh (XDEPFILES): Delete.
4672 * config/pa/hppabsd.mh (XDEPFILES): Delete.
4673 * config/pa/hppahpux.mh (XDEPFILES): Delete.
4674 * config/pa/hpux11w.mh (XDEPFILES): Delete.
4675 * config/pa/hppaosf.mh (XDEPFILES): Delete.
4676 * config/pa/hpux11.mh (XDEPFILES): Delete.
4677 * config/powerpc/aix.mh (XDEPFILES): Delete.
4678 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
4679 * config/powerpc/linux.mh (XDEPFILES): Delete.
4680 * config/romp/rtbsd.mh: Rename XDEPFILES.
4681 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
4682 * config/rs6000/aix4.mh (XDEPFILES): Delete.
4683 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
4684 * config/s390/s390.mh (XDEPFILES): Delete.
4685 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
4686 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
4687 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
4688 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
4689 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
4690 * config/sparc/nbsd.mh (XDEPFILES): Delete.
4691 * config/sparc/linux.mh (XDEPFILES): Delete.
4692 * config/vax/vaxult.mh (XDEPFILES): Delete.
4693 * config/vax/vaxult2.mh (XDEPFILES): Delete.
4694 * Makefile.in (DEPFILES): Remove XDEPFILES.
4695
375fc983
AC
46962002-01-17 Andrew Cagney <ac131313@redhat.com>
4697
4698 * utils.c (internal_verror): Fix comments, default is yes not no.
4699 Update queries to match. Default to quit and dump core.
4700
8926118c
AC
47012002-01-17 Andrew Cagney <ac131313@redhat.com>
4702
4703 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
4704 copyright.
4705 * defs.h, event-top.c, gdbcmd.h: Ditto.
4706 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
4707 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
4708 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
4709 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
4710 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
4711 * mi/mi-main.c:Ditto.
4712
4713 * stack.c, symfile.c: Update copyright.
4714
45b7b345
DJ
47152002-01-17 Daniel Jacobowitz <drow@mvista.com>
4716
db728ff7
DJ
4717 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
4718 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
4719 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
4720 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 4721
db728ff7
DJ
47222002-01-17 Daniel Jacobowitz <drow@mvista.com>
4723
4724 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
4725 * gdbserver/low-lynx.c (myattach): Likewise.
4726 * gdbserver/low-nbsd.c (myattach): Likewise.
4727 * gdbserver/low-sim.c (myattach): Likewise.
4728 * gdbserver/low-sparc.c (myattach): Likewise.
4729 * gdbserver/low-sun3.c (myattach): Likewise.
4730
4731 * gdbserver/low-linux.c (myattach): New function.
45b7b345 4732
db728ff7 4733 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
4734 (main): Handle "--attach".
4735
8de3c354
AC
47362002-01-16 Andrew Cagney <ac131313@redhat.com>
4737
4738 * MAINTAINERS (language support): Daniel Jacobwitz is C++
4739 maintainer.
4740
b0129042
DJ
47412002-01-15 Daniel Jacobowitz <drow@mvista.com>
4742
4743 * c-typeprint.c (is_type_conversion_operator): Add additional
4744 check for non-conversion operators.
4745
ba8679fb 47462002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
4747
4748 * linux-proc.c: Add "info proc" command, a la procfs.c.
4749 (read_mapping): New function, abstract and re-use code.
4750 (linux_find_memory_regions): Use new func read_mapping.
4751 (linux_info_proc_cmd): New function, implement "info proc".
4752 (_initialize_linux_proc): Add new command "info proc".
4753
e4f9b4d5
MS
47542002-01-15 Michael Snyder <msnyder@redhat.com>
4755
4756 * symfile.c (generic_load): Use bfd_map_over_sections method
4757 instead of manipulating bfd structure members directly.
4758 (add_section_size_callback): New function, bfd sections callback
4759 used by generic_load.
4760 (load_sections_callback): New function, bfd sections callback
4761 used by generic_load.
4762
08cf96df
EZ
47632002-01-15 Elena Zannoni <ezannoni@redhat.com>
4764
abf22e64 4765 [Based on work by Jim Blandy]
08cf96df
EZ
4766 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
4767 (builtin_type_vec128): Export.
4768 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
4769 types.
4770 (builtin_type_vec128): New builtin type for 128 bit vector
4771 registers.
4772 (build_gdbtypes): Initialize builtin_type_v16qi and
4773 builtin_type_v8hi. Create the vec128 register builtin type
4774 structure.
4775 (build_builtin_type_vec128): New function.
abf22e64 4776 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
4777 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
4778 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
4779 AltiVec register to new builtin type.
4780
d7242108
DJ
47812001-01-15 Daniel Jacobowitz <drow@mvista.com>
4782
4783 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
4784 to make_cv_type.
4785
4ee3352d
AC
47862002-01-14 Andrew Cagney <ac131313@redhat.com>
4787
4788 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
4789 CLEAN_UP_REGISTER_VALUE.
4790 * regcache.c (supply_register): Update only call.
4791
f015b2e7
AC
47922002-01-14 Andrew Cagney <ac131313@redhat.com>
4793
4794 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4795 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4796 a29k-*-vxworks* targets as obsolete.
4797
356ae49d
MS
47982002-01-14 Michael Snyder <msnyder@redhat.com>
4799
4800 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
4801 until we can resolve portability issues.
4802 * gregset.h: Remove references to fpxregs.
4803 * gcore.c (gcore_command): Initialize note_sec to NULL.
4804
ade8f45e
AC
48052002-01-13 Andrew Cagney <ac131313@redhat.com>
4806
4807 * signals.c (target_signal_to_name): Rewrite. Only use
4808 signals[].name when in bounds and non-NULL.
abf22e64 4809
89c49e7a
AC
48102002-01-13 Andrew Cagney <ac131313@redhat.com>
4811
4812 From Petr Ledvina <ledvinap@kae.zcu.cz>:
4813 * signals.c (target_signal_to_name): Verify that SIG is within the
4814 bounds of the signals array.
4815
4daa9f9f
AC
48162002-01-13 Andrew Cagney <ac131313@redhat.com>
4817
4818 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
4819
ba4bbdcb
KS
48202002-01-13 Keith Seitz <keiths@redhat.com>
4821
4822 * stack.c (print_frame_info_base): Print the frame's pc
4823 only if when print_frame_info_listing_hook is not defined.
4824
575bbeb6
KS
48252002-01-13 Keith Seitz <keiths@redhat.com>
4826
4827 * varobj.c (varobj_set_value): Make sure that there were no
4828 errors evaluating the object before attempting to set its
4829 value.
4830 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
4831 so this offset adjustment is no longer necessary.
4832 (create_child): Don't set the error flag if the child is
4833 a CPLUS_FAKE_CHILD.
4834 (value_of_child): If value_fetch_lazy fails, return NULL
4835 so that callers will be notified that an error occurred.
4836 (c_value_of_variable): Delay check of variable's validity
4837 until later. We actually want all structs and unions to have
4838 the value "{...}".
4839 Do not return "???" for variables which could not be evaluated.
4840 This error condition must be returned to the caller so that it
4841 can get the error condition from gdb.
4842 (cplus_name_of_child): Adjust index for vptr before figuring
4843 out the name of the child.
4844 (cplus_value_of_child): If a child's (real) parent is not valid,
4845 don't even bother trying to give a value for it. Just return
4846 an error. Change all instances in this function.
4847 (cplus_type_of_child): If our parent is one of the "fake"
4848 parents, we need to get at the type of the real parent, and
4849 derive the child's true type using this information.
4850
b76898ab
AC
48512002-01-13 Andrew Cagney <ac131313@redhat.com>
4852
4853 From 2002-01-09 John Marshall <johnm@falch.net>:
4854 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
4855 sources.redhat.com, and tweak some related URLs which had
4856 suffered from linkrot.
4857
b6649e88
AC
48582002-01-13 Andrew Cagney <ac131313@redhat.com>
4859
4860 From Jeff law:
4861 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
4862 structures passed in registers.
4863
82cc5033
EZ
48642002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
4865
4866 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
4867 white space which prevented compilation. Reported by DSK
4868 <dsk@student.unsw.edu.au>.
4869
ba5f2f8a
MS
48702002-01-11 Michael Snyder <msnyder@redhat.com>
4871
fbd35540
MS
4872 * symfile.c (build_section_addr_info_from_section_tab):
4873 Use bfd access method instead of manipulating bfd directly.
4874 (syms_from_objfile): Ditto.
4875 (simple_overlay_update_1): Ditto.
4876 (simple_overlay_update): Ditto.
4877 (generic_load): Ditto.
4878 (overlay_unmapped_address): FIXME comment, bfd access methods.
4879 (sections_overlap): FIXME comment, bfd access methods.
4880 (pc_in_mapped_range): FIXME comment, bfd access methods.
4881 (pc_in_unmapped_range): FIXME comment, bfd access methods.
4882 (section_is_mapped): FIXME comment, bfd access methods.
4883 (section_is_overlay): FIXME comment, bfd access methods.
4884
ba5f2f8a
MS
4885 * symfile.c (generic_load): Whitespace and long line cleanups.
4886 Remove duplicate variable, change several local variables to
4887 more appropriate data types.
4888 (print_transfer_performance): Use %lu instead of %ld for ulongs.
4889
17df2af6
AC
48902002-01-12 Andrew Cagney <ac131313@redhat.com>
4891
4892 From Peter Schauer:
4893 * language.c (longest_local_hex_string_custom): Use phex_nz to
4894 convert NUM to a hex string.
4895
ec920329
EZ
48962002-01-12 Elena Zannoni <ezannoni@redhat.com>
4897
4898 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
4899 the function.
538a76d6 4900 Update Copyright year.
ec920329 4901
3abd2e01
AC
49022002-01-12 Andrew Cagney <ac131313@redhat.com>
4903
4904 * language.c (longest_raw_hex_string): Delete unused function.
4905
b21b22e0
PS
49062002-01-11 Petr Sorfa <petrs@caldera.com>
4907
4908 * MAINTAINERS (write-after-approval): Add myself.
4909 * dwarf2read.c (read_tag_string_type): Handling of
4910 DW_AT_byte_size.
4911 (read_tag_string_type): FORTRAN fix to prevent propagation of
4912 first string size.
4913 (set_cu_language): Handling of DW_LANG_Fortran95
4914
747fe712
RE
49152002-01-11 Richard Earnshaw <rearnsha@arm.com>
4916
4917 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
4918 GETPID(inferior_ptid).
4919 (store_inferior_registers): Likewise.
4920
f1bea926
JM
49212002-01-10 Jason Merrill <jason@redhat.com>
4922
4923 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
4924 Fix DW_OP_minus.
4925
ae940673
AC
49262002-01-10 Andrew Cagney <ac131313@redhat.com>
4927
4928 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
4929 and bfd/elf32-sh-nbsd.c.
4930
00546b04
MS
49312002-01-10 Michael Snyder <msnyder@redhat.com>
4932
352ed7b4
MS
4933 * NEWS: Mention --pid and corefile/proc-id behavior change.
4934
c18be923
MS
4935 * Makefile.in: Add rules for gcore.o and linux-proc.o.
4936 * gcore.c: Include cli/cli-decode.h instead of command.h.
4937
00546b04
MS
4938 * main.c (captured_main): Add new command line option "--pid".
4939 If the second command line argument (following the symbol-file)
4940 begins with a digit, try to attach to it before trying to open
4941 it as a corefile.
4942 (print_gdb_help): Document the "--pid" argument.
4943
db60ec62
EZ
49442002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
4945
4946 * completer.c (command_completer): New function.
4947
4948 * completer.h <command_completer>: Add prototype.
4949
4950 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
4951 completer for the "help" command.
4952
39c22d1a
JM
49532002-01-09 Jason Merrill <jason@redhat.com>
4954
4955 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
4956
c564377f
MS
49572002-01-09 Michael Snyder <msnyder@redhat.com>
4958
975aec09
MS
4959 * i386-linux-nat.c (fill_fpxregset): Make global.
4960 (store_fpxregset): Ditto.
4961
db4a10fa
MS
4962 * gregset.h (gdb_fpxregset_t): Define.
4963 (supply_fpxregset): Prototype.
4964 (fill_fpxregset): Prototype.
4965
c564377f
MS
4966 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
4967
c3d45d70
RE
49682002-01-09 Richard Earnshaw <rearnsha@arm.com>
4969
4970 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
4971 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
4972 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
4973
fcc87af1
AC
49742002-01-09 Andrew Cagney <ac131313@redhat.com>
4975
4976 * MAINTAINERS: Update target maintainer rules so that any
4977 Maintainer can approve a tested patch for a maintenance-only
4978 target.
4979
dd96c05b
RE
49802002-01-09 Richard Earnshaw <rearnsha@arm.com>
4981
d4297db9 4982 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 4983
d4297db9 4984 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
4985 IN_SIGTRAMP.
4986
145fdc6e
MS
49872002-01-08 Michael Snyder <msnyder@redhat.com>
4988
4989 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
4990 real name of the executable, rather than the /proc name.
4991
be4d1333
MS
49922002-01-03 Michael Snyder <msnyder@redhat.com>
4993
4994 Implement a "generate-core-file" command in gdb, save target state.
4995 * gcore.c: New file. Implement new command 'generate-core-file'.
4996 Save a corefile image of the current state of the inferior.
4997 * linux-proc.c: Add linux-specific code for saving corefiles.
4998 * target.h (struct target_ops): Add new target vectors for saving
4999 corefiles; to_find_memory_regions and to_make_corefile_notes.
5000 (target_find_memory_regions): New macro.
5001 (target_make_corefile_notes): New macro.
5002 * target.c (update_current_target): Inherit new target methods.
5003 (dummy_find_memory_regions): New place-holder method.
5004 (dummy_make_corefile_notes): New place-holder method.
5005 (init_dummy_target): Initialize new dummy target vectors.
5006 * exec.c (exec_set_find_memory_regions): New function.
5007 Allow the exec_ops vector for memory regions to be taken over.
5008 (exec_make_note_section): New function, target vector method.
5009 * defs.h (exec_set_find_memory_regions): Export prototype.
5010 * procfs.c (proc_find_memory_regions): New function, corefile method.
5011 (procfs_make_note_section): New function, corefile method.
5012 (init_procfs_ops): Set new target vector pointers.
5013 (find_memory_regions_callback): New function.
5014 (procfs_do_thread_registers): New function.
5015 (procfs_corefile_thread_callback): New function.
5016 * sol-thread.c (sol_find_memory_regions): New function.
5017 (sol_make_note_section): New function.
5018 (init_sol_thread_ops): Initialize new target vectors.
5019 * inftarg.c (inftarg_set_find_memory_regions): New function.
5020 Allow to_find_memory_regions vector to be taken over.
5021 (inftarg_set_make_corefile_notes): New function.
5022 Allow to_make_corefile_notes vector to be taken over.
5023 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
5024 interface layer if not target_has_execution (may be a corefile).
5025 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
5026 * config/sparc/sun4sol2.mh: Ditto.
5027 * config/alpha/alpha-linux.mh: Ditto.
5028 * config/arm/linux.mh: Ditto.
5029 * config/i386/x86-64linux.mh: Ditto.
5030 * config/ia64/linux.mh: Ditto.
5031 * config/m68k/linux.mh: Ditto.
5032 * config/mips/linux.mh: Ditto.
5033 * config/powerpc/linux.mh: Ditto.
5034 * config/sparc/linux.mh: Ditto.
5035
c6b92abd
MS
50362002-01-07 Michael Snyder <msnyder@redhat.com>
5037
5038 * arm-linux-nat.c: Remove references to regcache.c internal data
5039 (registers[] and register_valid[]).
5040
4b09dc8c
MS
50412002-01-07 Michael Snyder <msnyder@redhat.com>
5042
abf22e64
AJ
5043 * linux-proc.c: New file. Implement child_pid_to_exec_file,
5044 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
5045 symbol file and shlibs.
5046 * Makefile.in: Add rule for linux-proc.o.
5047 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
5048 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
5049 * config/arm/linux.mh: Ditto.
5050 * config/i386/linux.mh: Ditto.
5051 * config/i386/x86-64linux.mh: Ditto.
5052 * config/ia64/linux.mh: Ditto.
5053 * config/m68k/linux.mh: Ditto.
5054 * config/mips/linux.mh: Ditto.
5055 * config/powerpc/linux.mh: Ditto.
5056 * config/sparc/linux.mh: Ditto.
5057
c25b74ac
PM
50582002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
5059
5060 * win32-nat.c: Add i386-tdep.h dependency.
5061
94cd915f
MS
50622002-01-07 Michael Snyder <msnyder@redhat.com>
5063
c7cccb76
MS
5064 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
5065 instead of bfd_get_arch_size. Don't bail out just because
5066 there's no exec_bfd.
abf22e64 5067
34c0bd93
MS
5068 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
5069 * p-valprint.c (pascal_object_print_value): Ditto.
5070 * somread.c (som_symtab_read): Ditto.
5071 * symfile.c (simple_free_overlay_region_table): Ditto.
5072 * valops.c (value_assign): Ditto.
5073
21c1c920
MS
5074 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
5075 use tilde_expand and strerror for opening save-tracepoints file.
5076
5bbd998e
MS
5077 * thread-db.c (thread_db_new_objfile): Indendation fix.
5078
94cd915f
MS
5079 * infptrace.c (GDB_MAX_ALLOCA): New define.
5080 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 5081 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
5082 can be overridden with whatever value is appropriate to the host).
5083 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
5084 alloca to allocate potentially large buffer.
5085 * rs6000-nat.c (child_xfer_memory): Ditto.
5086 * symm-nat.c (child_xfer_memory): Ditto.
5087 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
5088
494e8a93
JSC
50892002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
5090
5091 From Nick Clifton <nickc@redhat.com>
5092 * d10v-tdep.c: Set STACK_START to 0x200bffe.
5093
d0e1d48e
MS
50942002-01-07 Michael Snyder <msnyder@redhat.com>
5095
abf22e64 5096 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
5097 Don't use exec_bfd if it's NULL.
5098
290b2c7a
MK
50992002-01-06 Mark Kettenis <kettenis@gnu.org>
5100
abf22e64 5101 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 5102
aef21287
AC
51032002-01-06 Andrew Cagney <ac131313@redhat.com>
5104
5105 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
5106 * gnu-nat.c: Ditto.
5107
30efa627
AC
51082002-01-06 Andrew Cagney <ac131313@redhat.com>
5109
5110 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
5111 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
5112 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
5113 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
5114 z8k-coff have not been multi-arched. Update z8k-coff build
5115 status.
5116
9b4ff276
AC
51172002-01-06 Andrew Cagney <ac131313@redhat.com>
5118
5119 * MAINTAINERS: Mark a29k target as obsolete.
5120 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
5121 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
5122 comments.
5123 * NEWS: Note that a29k targets are obsolete.
5124 * a29k-tdep.c: Mark as obsolete.
5125 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
5126 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
5127 a29k-*-vxworks* targets as obsolete.
5128 * remote-adapt.c: Obsolete.
5129 * remote-eb.c: Obsolete.
5130 * remote-mm.c: Obsolete.
5131 * remote-udi.c: Obsolete.
5132 * config/a29k/a29k-udi.mt: Obsolete.
5133 * config/a29k/a29k.mt: Obsolete.
5134 * config/a29k/tm-a29k.h: Obsolete.
5135 * config/a29k/tm-vx29k.h: Obsolete.
5136 * config/a29k/vx29k.mt: Obsolete.
5137
a9011d31
AC
51382002-01-05 Andrew Cagney <ac131313@redhat.com>
5139
5140 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
5141 with BFD_ENDIAN_BIG.
5142
9299404e
AC
51432002-01-05 Andrew Cagney <ac131313@redhat.com>
5144
5145 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
5146 * configure, config.in: Re-generate.
5147 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
5148 * defs.h: Do not include <endian.h>.
5149
7e89e357
JT
51502002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
5151
5152 * acconfig.h (HAVE_PT_GETXMMREGS): New.
5153 * config.in: Regenerate.
5154 * configure.in: Update copyright years.
5155 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
5156 * configure: Regenerate.
5157 * i386bsd-nat.c: Update copyright years.
5158 (fill_gregset): Use regcache_collect.
5159 (fetch_inferior_registers): Only fetch integer registers
5160 if requested to do so. Add support for XMM registers
5161 using PT_GETXMMREGS.
5162 (store_inferior_registers): Only store integer registers
5163 if requested to do so. Add support for XMM registers
5164 using PT_SETXMMREGS.
5165 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
5166 (store_inferior_registers): Remove.
5167 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
5168 (fetch_elfcore_registers): New function.
5169 (i386nbsd_elfcore_fns): New.
5170 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
5171 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
5172 i386bsd-nat.o.
5173 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5174 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
5175 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
5176 * config/i386/tm-nbsd.h: Update copyright years.
5177 (HAVE_SSE_REGS): Define.
5178 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
5179 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
5180 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
5181 (SIGCONTEXT_PC_OFFSET): Remove.
5182 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
5183
a752853e
AC
51842002-01-05 Andrew Cagney <ac131313@redhat.com>
5185
5186 * configure.tgt: Remove powerpc-*-macos* target.
5187 * config/m68k/xm-mpw.h: Delete file.
5188 * config/xm-mpw.h: Delete file.
5189 * ser-mac.c: Delete file.
5190 * mpw-make.sed: Delete file.
5191 * mpw-config.in: Delete file.
5192 * mac-xdep.c: Delete file.
5193 * mac-gdb.r: Delete file.
5194 * mac-defs.h: Delete file.
5195 * mac-nat.c: Delete file.
5196 * config/powerpc/macos.mh: Delete file.
5197 * config/powerpc/macos.mt: Delete file.
5198 * config/powerpc/nm-macos.h: Delete file.
5199 * config/powerpc/tm-macos.h: Delete file.
5200 * source.c (openp, open_source_file): Remove obsolete code.
5201 * top.c (gdb_readline): Ditto.
5202 * utils.c (query): Ditto.
5203 * event-top.c (display_gdb_prompt): Ditto.
5204 * Makefile.in (ser-mac.o): Delete obsolete target.
5205 * NEWS: Update.
5206
d7449b42
AC
52072002-01-04 Andrew Cagney <ac131313@redhat.com>
5208
5209 * defs.h (BIG_ENDIAN): Delete macro definition.
5210 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
5211 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
5212 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
5213 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
5214 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
5215 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
5216 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
5217 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
5218 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
5219 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
5220 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
5221 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
5222 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
5223 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
5224 * gdbarch.c: Re-generate.
5225
356374e8
DJ
52262002-01-04 Daniel Jacobowitz <drow@mvista.com>
5227
5228 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
5229 for core files.
5230
a2b8f8f8
JT
52312002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5232
5233 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
5234
12466af9
AC
52352002-01-04 Andrew Cagney <ac131313@redhat.com>
5236
5237 * value.h (value_ptr): Delete typedef.
5238
3549ab40
JT
52392002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5240
5241 * i386nbsd-nat.c: Update copyright years.
5242 Include i386-tdep.h.
5243
fedbd091
EZ
52442002-01-04 Elena Zannoni <ezannoni@redhat.com>
5245
5246 * stabsread.c: Update copyright years.
5247
5248 From Debashis Mahata <debashis.mahata@wipro.com>:
5249 (read_struct_fields): Deal with Sun C compiler erroneous stab
5250 output for structs and unions.
fec8b34f 5251 Fix PR gdb/269.
fedbd091 5252
eb43544b
DJ
52532002-01-04 Daniel Jacobowitz <drow@mvista.com>
5254
5255 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
5256 prototype.
5257
1514d34e
DJ
52582002-01-04 Daniel Jacobowitz <drow@mvista.com>
5259
5260 * cp-abi.c: Fix whitespace.
5261 (baseclass_offset): New wrapper function.
5262 * cp-abi.h (baseclass_offset): Add prototype.
5263 (struct cp_abi_ops): Add baseclass_offset pointer.
5264
5265 * valops.c (vb_match): Move to...
5266 * gnu-v2-abi.c (vb_match): here.
5267 * valops.c (baseclass_offset): Move to...
5268 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
5269
5270 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
5271
5272 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
5273 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
5274 * hpacc-abi.c (init_hpacc_ops): Likewise.
5275
7f8c9282
DJ
52762002-01-04 Daniel Jacobowitz <drow@mvista.com>
5277
5278 * valops.c (find_overload_match): Accept obj as a
5279 reference parameter. Update it before returning.
5280 * value.h (find_overload_match): Update prototype.
5281 * eval.c (evaluate_subexp_standard): Pass object to
5282 find_overload_match by reference.
5283
f23631e4
AC
52842002-01-03 Andrew Cagney <ac131313@redhat.com>
5285
5286 * valarith.c: Replace value_ptr with struct value pointer. Remove
5287 register attribute from value declarations.
5288 * valops.c: Ditto.
5289 * value.h: Ditto.
5290 * scm-lang.c (scm_lookup_name): Ditto.
5291
79e10fab 52922002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 5293
79e10fab
AC
5294 Abstract the functionality of iterating over mapped memory
5295 regions into a general purpose iterator function.
abf22e64 5296 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
5297 iterator for memory sections.
5298 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
5299 (solib_mappings_callback): New function, callback for above.
5300 (info_proc_mappings): Reimpliment using iterate_over_mappings.
5301 (info_mappings_callback): New function, callback for above.
5302
5303 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
5304
c5ad026a
MK
53052002-01-01 Mark Kettenis <kettenis@gnu.org>
5306
d2a7c97a
MK
5307 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
5308 * i386-tdep.c: Include "elf-bfd.h".
5309 (process_note_abi_tag_sections): New function.
5310 (i386_gdbarch_init): Add code to recognize various OS/ABI
5311 combinations.
5312
c5ad026a
MK
5313 * maint.c (_initialize_maint_cmds): Add missing \ in
5314 string-literal.
5315
a1a5b71e 5316For older changes see ChangeLog-2001
c906108c
SS
5317\f
5318Local Variables:
5319mode: change-log
5320left-margin: 8
5321fill-column: 74
5322version-control: never
5323End: