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