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