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