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