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