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