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