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