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