2002-08-13 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
28fc6740
AC
12002-08-13 Andrew Cagney <cagney@redhat.com>
2
3 * i386-tdep.c (i386_register_name): Handle mmx registers.
4 (mmx_regnum_p): New function.
5 (i386_mmx_names): New array.
6 (mmx_num_regs): New variable.
7 (i386_pseudo_register_read): New function.
8 (i386_pseudo_register_write): New function.
9 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
10
11 * regcache.c (regcache_raw_read_unsigned): New function.
12 (regcache_raw_read_signed): New function.
13 * regcache.h (regcache_raw_read_unsigned): Declare.
14 (regcache_raw_read_signed): Declare.
15
a378f419
AC
162002-08-13 Andrew Cagney <cagney@redhat.com>
17
18 * regcache.c (regcache_raw_read_as_address): Delete function.
19 (regcache_cooked_read_signed): New function.
20 (regcache_cooked_read_unsigned): New function.
21 * regcache.h (regcache_cooked_read_signed): Declare.
22 (regcache_cooked_read_unsigned): Declare.
23 (regcache_raw_read_as_address): Delete declaration.
24
25 * blockframe.c (generic_read_register_dummy): Use
26 regcache_cooked_read_unsigned.
27 * i386-tdep.c (i386_extract_struct_value_address): Use
28 regcache_cooked_read_unsigned.
29
81967506
SC
302002-08-13 Stephane Carrez <stcarrez@nerim.fr>
31
32 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
33 double sizes according to ELF ABI flags.
34 (gdbarch_tdep): Record elf_flags.
35
ffe1f3ee
SC
362002-08-13 Stephane Carrez <stcarrez@nerim.fr>
37
38 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
39 (m6812_prolog): They can appear in 68HC12 function prologue.
40 (m68hc11_frame_chain): Cleanup.
41
98216c5d
AC
422002-08-12 Andrew Cagney <cagney@redhat.com>
43
44 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
45 declarations.
46 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
47 (i386_linux_register_raw_size): Delete function.
48 (i386_linux_init_abi): Update.
49 * i386-tdep.c (i386_register_raw_size): Delete function.
50 (i386_register_byte): Delete function.
51 (i386_gdbarch_init): Update.
52 (i386_register_size): Delete array.
53 (i386_register_offset): Delete array.
54
55 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
56 (REGISTER_RAW_SIZE): Delete macro.
57 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
58 (REGISTER_BYTE): Delete macro.
59
3b19021e
AS
602002-08-11 Aidan Skinner <aidan@velvet.net>
61
62 * ada-lang.c (ada_lookup_partial_symbol)
63 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
64 prototype names so that grep ^func works properly.
65
66 * ada-lang.c (ada_array_element_type)
67 (ada_lookup_partial_symbol): Fix typos in parameter list.
68
69 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
70 Fix prototype names so that grep ^func works properly.
71
b063e7a2
AC
722002-08-10 Andrew Cagney <cagney@redhat.com>
73 Elena Zannoni <ezannoni@redhat.com>
74 Martin M. Hunt <hunt@redhat.com>
75
76 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
77 (build_builtin_type_vec128i): Set the vector bit.
78 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
79 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
80 (build_builtin_type_vec64): New function.
81 (build_builtin_type_vec64i): New function.
82 (build_gdbtypes): Initialize builtin_type_vec64 and
83 builtin_type_vec64i.
84
a7e3c2ad
AC
852002-08-09 Andrew Cagney <cagney@redhat.com>
86
87 * regcache.c (regcache_dump): Compare the register offset
88 with REGISTER_BYTE.
89 * arch-utils.c (generic_register_byte): New function.
90 * arch-utils.h (generic_register_byte): Declare.
91 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
92 * gdbarch.h, gdbarch.c: Regenerate.
93
af030b9a
AC
942002-08-09 Andrew Cagney <cagney@redhat.com>
95
96 * regcache.c: Include "gdbcmd.h"
97 (_initialize_regcache): Add commands "maintenance print
98 registers", "maintenance print raw-registers" and "maintenance
99 print cooked-registers".
100 (enum regcache_dump_what): Define.
101 (dump_endian_bytes): New function.
102 (regcache_dump): New function.
103 (regcache_print): New function.
104 (maintenance_print_registers): New function.
105 (maintenance_print_raw_registers): New function.
106 (maintenance_print_cooked_registers): New function.
107 * Makefile.in (regcache.o): Update dependencies.
108
cb3d25d1
MS
1092002-08-09 Michael Snyder <msnyder@redhat.com>
110
111 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
112 (mips_push_arguments): Correct some comments. Use paddr_nz
113 for printing addresses in debug output. Replace static
114 allocation using MAX_REGISTER_RAW_SIZE with alloca.
115 (mips_n32n64_push_arguments): New function, cloned from
116 mips_push_arguments and tuned for the n32/n64 ABI.
117 (mips_push_register): Buffer needs dynamic allocation.
118 (mips_print_register): Ditto.
119 (do_gp_register_row): Ditto.
120 (mips_store_return_value): Ditto.
121 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
122
2163ab9d
DH
1232002-08-09 Don Howard <dhoward@redhat.com>
124
125 * memattr.c (mem_info_command): Print special case of upper bound
126 as max CORE_ADDR + 1.
127
b78bcb18
MS
1282002-08-08 Michael Snyder <msnyder@redhat.com>
129
130 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
131 returns structs by ref if they're too big to fit in two registers.
132
ffabd70d
KB
1332002-08-09 Kevin Buettner <kevinb@redhat.com>
134
135 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
136 saved regs value.
137 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
138 mips_find_saved_regs().
139 (mips_pop_frame): Likewise.
140
fbcdb4a3
KB
1412002-08-09 Kevin Buettner <kevinb@redhat.com>
142
143 * blockframe.c (frame_saved_regs_register_unwind): Revise
144 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
145 frames are in use.
146
3c3bea1c
GS
1472002-08-09 Grace Sainsbury <graces@redhat.com>
148
149 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
150 T-packets; the 'a' is not taken as a register number.
151 (remote_check_watch_resources, remote_stopped_by_watchpoint)
152 (remote_stopped_data_address): New functions; add to target
153 vector.
154 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
155 prototypes to match other implementations of this
156 function. replace integer argument with pointer -- the length
157 field in the Z-packet is the length of what is pointed to or 1 if
158 pointer is null. Add to target vector.
159 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
160 target vector.
161
162 From Mark Salter:
163 * remote.c (remote_wait): Add support to extract optional
164 watchpoint information from T-packet. Ignore unrecognized
165 optional info in T-packet.
166 (remote_async_wait): Ditto.
167
5d1d95de
CV
1682002-08-09 Corinna Vinschen <vinschen@redhat.com>
169
170 * cli/cli-dump.c: Change fopen modes to use binary open modes
171 as defined in include/fopen-bin.h throughout.
172
c86b5b38
MS
1732002-08-08 Michael Snyder <msnyder@redhat.com>
174
175 * mips-tdep.c: Minor whitespace and indentation clean-ups.
176
b30590dc
KB
1772002-08-08 Kevin Buettner <kevinb@redhat.com>
178
179 * doublest.c (store_floating): Avoid floatformat_from_doublest()
180 assertion failure by returning early after a warning.
181
498868ed
KB
1822002-08-08 Kevin Buettner <kevinb@redhat.com>
183
184 * mips-tdep.c (mips_find_saved_regs): Make static.
185 (mips_frame_init_saved_regs): New function.
186 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
187 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
188 (mips_find_saved_regs): Delete declaration.
189
b2dd6311
GS
1902002-08-08 Grace Sainsbury <graces@redhat.com>
191
3c3bea1c
GS
192 * remote.c (remote_wait, remote_async_wait): Change
193 thread_num from int to ULONGEST.
194 (unpack_varlen_hex): Change result parameter from
195 int * to ULONGEST *.
b2dd6311 196
ea47855f
AC
1972002-08-08 Andrew Cagney <ac131313@redhat.com>
198
199 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
200 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
201 powerpc*-*-*.
202 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
203
69db8bae
AC
2042002-08-08 Andrew Cagney <cagney@redhat.com>
205
206 * gcore.c (override_derive_stack_segment): Delete variable.
207 (preempt_derive_stack_segment): Delete function.
208 (derive_stack_segment): Delete function.
209 (default_derive_stack_segment): Renamed to derive_stack_segment.
210 (override_derive_heap_segment): Delete variable.
211 (preempt_derive_heap_segment): Delete function.
212 (derive_heap_segment): Delete function.
213 (default_derive_heap_segment): Rename to derive_heap_segment.
214
cb811fe7
MS
2152002-08-06 Michael Snyder <msnyder@redhat.com>
216
217 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
218 * mips-tdep.c (mips_EABI_use_struct_convention,
219 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
220 New functions. (mips_use_struct_convention): Delete.
221 (mips_gdbarch_init): set use_gdbarch_convention.
222
8b389c40
MS
2232002-08-06 Michael Snyder <msnyder@redhat.com>
224
225 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
226 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
227 mips_o32_reg_struct_has_addr): New functions.
228 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
229
5c27f28a
AC
2302002-08-07 Andrew Cagney <ac131313@redhat.com>
231
232 * regcache.c (pseudo_register): Delete function.
233 (fetch_register): Delete function.
234 (store_register): Delete function.
235 (regcache_raw_read, legacy_read_register_gen): Use
236 target_fetch_registers instead of fetch_register.
237 (legacy_write_register_gen, regcache_raw_write): Use
238 target_store_register instead of store_register.
239 (write_register_bytes): Ditto.
240
241 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
242 (STORE_PSEUDO_REGISTER): Delete.
243 * gdbarch.h, gdbarch.c: Regenerate.
244
5b331675
CV
2452002-08-06 Corinna Vinschen <vinschen@redhat.com>
246
247 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
248 write dump file binary.
249
6acdf5c7
MS
2502002-08-05 Michael Snyder <msnyder@redhat.com>
251
252 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
253 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
254 (mips_gdbarch_init): Set N32 target to be mips64.
255
b2f01c35
KB
2562002-08-06 Kevin Buettner <kevinb@redhat.com>
257
258 * frame.c (find_saved_register): Break out of loop once saved
259 register address is found. Don't mention sparc in loop comment
260 anymore.
261
63db5580
KB
2622002-08-06 Kevin Buettner <kevinb@redhat.com>
263
264 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
265 mips_default_saved_regsize to 8.
266
5e34e75e
AC
2672002-08-06 Andrew Cagney <ac131313@redhat.com>
268
269 * gcore.c: Do not include <sys/procfs.h>.
270 * Makefile.in (gcore.o): Update dependencies.
271
eb4c54a2
AC
2722002-08-06 Andrew Cagney <cagney@redhat.com>
273
274 * configure.tgt: Make arc-*-* obsolete.
275 * NEWS: Mention that arc-*-* has been identifed as obsolete.
276 * MAINTAINERS: Make arc-elf obsolete.
277 * arc-tdep.c: Make file obsolete.
278 * config/arc/arc.mt: Ditto.
279 * config/arc/tm-arc.h: Ditto.
280
ced15480
TR
2812002-08-05 Theodore A. Roth <troth@verinet.com>
282
283 * gdb/avr-tdep.c(avr_skip_prologue): Fix to return the correct pc.
284
b4743822
AC
2852002-08-05 Andrew Cagney <ac131313@redhat.com>
286
287 * mcore-tdep.c (mcore_gdbarch_init): Use
288 generic_unwind_get_saved_register instead of
289 generic_get_saved_register.
290 * v850-tdep.c (v850_gdbarch_init): Ditto.
291 * frv-tdep.c (frv_gdbarch_init): Ditto.
292 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
293 * s390-tdep.c (s390_gdbarch_init): Ditto.
294 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
295 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
296 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
297
3956d554
JB
2982002-08-05 Joel Brobecker <brobecker@gnat.com>
299
300 * objfiles.h: Add missing #include "symfile.h"
301
302 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
303
8249c0d6
AC
3042002-08-04 Andrew Cagney <ac131313@redhat.com>
305
306 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
307 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
308 of FIELD_BITSIZE.
309
b9d14705
DJ
3102002-08-04 Daniel Jacobowitz <drow@mvista.com>
311
312 * NEWS: Cleanup and nitpick.
313
dd73b9bb
AC
3142002-08-03 Andrew Cagney <ac131313@redhat.com>
315
316 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
317
043a27f8
AC
3182002-08-03 Andrew Cagney <ac131313@redhat.com>
319
320 * Makefile.in (gdbtk-bp.o): Update dependencies.
321 (gdbtk-register.o): Ditto.
322 (gdbtk-varobj.o): Ditto.
323
46ce284d
AC
3242002-08-03 Andrew Cagney <cagney@redhat.com>
325
326 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
327 m68hc11_fetch_pseudo_register.
328 (m68hc11_pseudo_register_write): Replace
329 m68hc11_store_pseudo_register.
330 (m68hc11_gdbarch_init): Update.
331
b66d6d2e
AC
332Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
333
334 * gdbarch.sh: Include "gdb_string.h".
335 * gdbarch.c: Regenerate.
336
337 * regcache.c: Include "gdb_string.h".
338 * ax-general.c: Ditto.
339 * varobj.c: Ditto.
340 * std-regs.c: Ditto.
341 * fbsd-proc.c: Ditto.
342 * thread.c: Ditto.
343
344 * Makefile.in (regcache.o): Update dependencies.
345 (thread.o, gdbarch.o): Ditto.
346 (ax-general.o, gdbarch.o): Ditto.
347 (varobj.o, std-regs.o): Ditto.
348 (fbsd-proc.o): Specify dependencies.
349
29e1842b
AC
3502002-08-02 Andrew Cagney <cagney@redhat.com>
351
352 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
353 regnum.
354 (regcache_cooked_write): Ditto.
355
68365089
AC
3562002-08-02 Andrew Cagney <ac131313@redhat.com>
357
358 * regcache.c (regcache_cooked_read): New function.
359 (regcache_cooked_write): New function.
360 (read_register_gen): Rewrite using regcache_cooked_read.
361 (write_register_gen): Rewrite using regcache_cooked_write.
362
363 * regcache.h (regcache_cooked_read, regcache_cooked_write):
364 Declare.
365
d8124050
AC
3662002-08-02 Andrew Cagney <cagney@redhat.com>
367
368 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
369 Replace the architecture methods register_read and register_write.
370 * gdbarch.h, gdbarch.c: Regenerate.
371 * regcache.c (init_regcache_descr): Update.
372 (read_register_gen): Update.
373 (write_register_gen): Update.
374 (supply_register): Update comment.
375
376 * sh-tdep.c (sh_gdbarch_init): Update.
377 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
378 `regcache' and `gdbarch' parameters. Make `buffer' a void
379 pointer. Update code.
380 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
381 `regcache' and `gdbarch' parameters. Make `buffer' a constant
382 void pointer. Update code.
383 (sh64_register_write): Delete.
384 (sh4_register_read): Delete.
385 (sh64_register_read): Delete.
386 (sh4_register_write): Delete.
387 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
388 void pointer, `to' parameter a void pointer.
389 (sh_sh64_register_convert_to_raw): Ditto.
390
a6425924
KB
3912002-08-01 Kevin Buettner <kevinb@redhat.com>
392
393 * mips-tdep.c (mips_register_virtual_type): Use architecture
394 invariant return values.
395
ff5922b5
AC
3962002-08-01 Andrew Cagney <cagney@redhat.com>
397
398 * linux-proc.c: Include "gdb_string.h".
399 * Makefile.in (linux-proc.o): Update dependency list.
400
32a6503c
KB
4012002-08-01 Kevin Buettner <kevinb@redhat.com>
402
403 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
404 comment.
405
ccaa32c7
GS
4062002-08-01 Grace Sainsbury <graces@redhat.com>
407
408 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
409 to_insert_watchpoint, to_remove_watchpoint,
410 to_stopped_by_watchpoint, to_stopped_data_address,
411 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
412 target vecctor. Define their corresponding macros so they call
413 them.
414
415 * target.c: Add default and debug versions of for
416 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
417 to_insert_watchpoint, to_remove_watchpoint,
418 to_stopped_by_watchpoint, to_stopped_data_address,
419 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
420
78fde5f8
KB
4212002-08-01 Kevin Buettner <kevinb@redhat.com>
422
423 * mips-tdep.c (mips_register_virtual_type): New function.
424 (mips_gdbarch_init): Register mips_register_virtual_type()
425 with gdbarch machinery.
426 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
427 this file instead of tm-bigmips.h.
428 (MIPS_REGSIZE): Delete this macro.
429 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
430 multiarch version in mips-tdep.c will be found.
431
db034ac5
AC
4322002-08-01 Andrew Cagney <cagney@redhat.com>
433
434 * NEWS: Menion that CHILL has been made obsolete.
435
436 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
437 * gdbserver/Makefile.in: Ditto.
438 * stabsread.c (read_range_type): Ditto.
439 * gdbtypes.h: Ditto.
440 * language.c (binop_type_check): Ditto.
441 (binop_result_type): Ditto.
442 (integral_type): Ditto.
443 (character_type): Ditto.
444 (string_type): Ditto.
445 (boolean_type): Ditto.
446 (structured_type): Ditto.
447 (lang_bool_type): Ditto.
448 (binop_type_check): Ditto.
449 * language.h (_LANG_chill): Ditto.
450 * dwarfread.c (set_cu_language): Ditto.
451 * dwarfread.c (CHILL_PRODUCER): Ditto.
452 * dwarfread.c (handle_producer): Ditto.
453 * expression.h (enum exp_opcode): Ditto.
454 * eval.c: Ditto for comments.
455 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
456 * expprint.c (print_subexp): Ditto.
457 (print_subexp): Ditto.
458 * valops.c (value_cast): Ditto.
459 (search_struct_field): Ditto.
460 * value.h (COERCE_VARYING_ARRAY): Ditto.
461 * symfile.c (init_filename_language_table): Ditto.
462 (add_psymbol_with_dem_name_to_list): Ditto.
463 * valarith.c (value_binop): Ditto.
464 (value_neg): Ditto.
465 * valops.c (value_slice): Ditto.
466 * symtab.h (union language_specific): Ditto.
467 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
468 (SYMBOL_DEMANGLED_NAME): Ditto.
469 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
470 * defs.h (enum language): Ditto.
471 * symtab.c (got_symtab): Ditto.
472 * utils.c (fprintf_symbol_filtered): Ditto.
473
474 * ch-typeprint.c: Make file obsolete.
475 * ch-valprint.c: Make file obsolete.
476 * ch-lang.h: Make file obsolete.
477 * ch-exp.c: Make file obsolete.
478 * ch-lang.c: Make file obsolete.
479
480 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
481 CHILL_LIB.
482 (TARGET_FLAGS_TO_PASS): Ditto.
483 (CHILLFLAGS): Obsolete.
484 (CHILL): Obsolete.
485 (CHILL_FOR_TARGET): Obsolete.
486 (CHILL_LIB): Obsolete.
487 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
488 ch-valprint.c.
489 (HFILES_NO_SRCDIR): Remove ch-lang.h.
490 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
491 ch-lang.o.
492 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
493 targets.
494
8aaf0b47
JB
4952002-07-31 Joel Brobecker <brobecker@gnat.com>
496
497 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
498 This does not change anything at the moment, but will be helpful
499 later when full Ada support is integrated.
500
f3a7b3a5
KB
5012002-07-31 Kevin Buettner <kevinb@redhat.com>
502
503 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
504 help message.
505
fb850278
KB
5062002-07-31 Kevin Buettner <kevinb@redhat.com>
507
508 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
509 and save it in a local variable. Use variable in later test.
510
e3bddbfa
KB
5112002-07-31 Kevin Buettner <kevinb@redhat.com>
512
513 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
514 test. (Thanks to Daniel Jacobowitz.)
515
28d169de
KB
5162002-07-31 Kevin Buettner <kevinb@redhat.com>
517
518 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
519 (mips_abi_strings): Add "n64".
520 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
521
7fe7e44e
KB
5222002-07-31 Kevin Buettner <kevinb@redhat.com>
523
524 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
525 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
526
c6caf090
KB
5272002-07-31 Kevin Buettner <kevinb@redhat.com>
528
529 * utils.c (host_pointer_to_address, address_to_host_pointer):
530 Use gdb_assert() instead of explicit call to internal_error().
531
c41669e0
KB
5322002-07-30 Kevin Buettner <kevinb@redhat.com>
533
534 * Makefile.in (rs6000-nat.o): Update dependencies.
535
536 From Nicholas Duffek:
537 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
538 (aix-thread.o): New rule.
539 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
540 * config/powerpc/aix432.mh: New file.
541
2fda4977
DJ
5422002-07-30 Daniel Jacobowitz <drow@mvista.com>
543
544 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
545 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
546 (fetch_core_registers, ppc_linux_supply_gregset)
547 (ppc_linux_supply_fpregset): New functions.
548 (ppc_linux_regset_core_fns): New.
549 (_initialize_ppc_linux_tdep): Call add_core_fns.
550 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
551 and ppc_linux_supply_gregset.
552 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
553 (supply_fpregset): Call ppc_linux_supply_fpregset.
554 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
555 corelow.o.
556 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
557
729051e6
DJ
5582002-07-30 Daniel Jacobowitz <drow@mvista.com>
559
560 * symtab.c (lookup_symbol): Demangle before lowercasing.
561
5f8a3188
AC
5622002-07-30 Andrew Cagney <ac131313@redhat.com>
563
564 * symtab.h: Replace #include "gdb_obstack.h" with opaque
565 declaration.
566 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
567 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
568 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
569 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
570 "gdb_string.h".
571 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
572 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
573 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
574 (avr-tdep.o, mon960-rom.o): Ditto.
575 (aout_stabs_gnu_h): Define.
576 (symtab_h): Remove $(gdb_obstack_h).
577
67f07146
JB
5782002-07-30 Jim Blandy <jimb@redhat.com>
579
580 Patch from David Carlton <carlton@math.stanford.edu>:
581 * gdbinit.in: Move the `dir' commands that add GDB's own source
582 directory to the search path to the end, so that the `gdb' source
583 directory will be searched first.
584
04ea0df1
AC
5852002-07-29 Andrew Cagney <ac131313@redhat.com>
586
587 * gdb_obstack.h: New file.
588 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
589 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
590 * objfiles.h: Include "gdb_obstack.h".
591 * Makefile.in (gdb_obstack_h): Define.
592 (symtab_h): Add $(gdb_obstack_h).
593 (objfiles_h): Add $(gdb_obstack_h).
594
595 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
596 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
597 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
598 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
599 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
600 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
601 * symfile.c, coffread.c, c-typeprint.c: Ditto.
602 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
603
604 * Makefile.in (bcache.o): Update dependencies.
605 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
606 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
607 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
608 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
609 (stabsread.o, symfile.o, symmisc.o): Ditto.
610 (symtab.o, typeprint.o, macroexp.o): Ditto.
611 (macrotab.o, mdebugread.o): Ditto.
612 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
613 (coff_ecoff_h, aout_aout64_h): Define.
614 (aout_stabs_gnu_h, libaout_h): Define.
615
d138e37a
AC
6162002-07-29 Andrew Cagney <cagney@redhat.com>
617
618 * regcache.c (struct regcache_descr): Rename nr_registers to
619 nr_cooked_registers. Revise comments describing the structure
620 member fields.
621 (init_regcache_descr): Update.
622 (init_legacy_regcache_descr): Update.
623 (read_register_gen, write_register_gen): When a cooked register in
624 the raw register range, directly access the value from the raw
625 register cache.
626
460e6ec3
AC
6272002-07-29 Andrew Cagney <ac131313@redhat.com>
628
629 * z8k-tdep.c: Do not include "obstack.h".
630 * h8300-tdep.c, h8500-tdep.c: Ditto.
631 * m68hc11-tdep.c, sh-tdep.c: Ditto.
632 * valprint.c, v850-tdep.c: Ditto.
633 * d10v-tdep.c, mn10300-tdep.c: Ditto.
634 * mn10200-tdep.c: Ditto.
635
636 * Makefile.in (z8k-tdep.o): Update dependencies.
637 (m68hc11-tdep.o, valprint.o): Ditto.
638 (v850-tdep.o, d10v-tdep.o): Ditto.
639 (mn10300-tdep.o, sparc-tdep.o): Ditto.
640 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
641 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
642 (sh_opc_h, gdb_sim_sh_h): Define.
643 (elf_sh_h, elf_bfd_h): Define.
644 (opcode_m68hc11_h): Define.
645 (OPCODES_SRC, OPCODES_DIR): define.
646 (OPCODES): Use $(OPCODES_DIR).
647 (gdb_sim_d10v_h): Rename sim_d10v_h.
648 (gdb_sim_arm_h): Rename sim_arm_h.
649
790c9cf0
KB
6502002-07-26 Kevin Buettner <kevinb@redhat.com>
651
652 * utils.c (host_pointer_to_address, address_to_host_pointer):
653 Change internal_error() message to indicate function responsible
654 for the error.
655
9647fa49
KB
6562002-07-26 Kevin Buettner <kevinb@redhat.com>
657
658 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
659 calls to local_hex_string_custom().
660
dabbe2c0
KB
6612002-07-26 Kevin Buettner <kevinb@redhat.com>
662
663 * irix5-nat.c: Move IRIX shared library support from here...
664 * solib-irix.c: ...to here. Revised substantially to work with
665 generic solib framework.
666
b96d0a4e
KB
667 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
668 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
669 * mips-irix-tdep.c: New file.
670
313fb2f6
KB
671 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
672 (mips-irix-tdep.o, solib-irix.o): New rules.
673 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
674 solib-irix.o.
675 * config/mips/irix6.mt (TDEPFILES): Likewise.
676 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
677
ab2eaf26
KB
6782002-07-26 Kevin Buettner <kevinb@redhat.com>
679
177e4768 680 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
681 disabled (via ``#if 0'') includes.
682
7244546a
KB
6832002-07-26 Kevin Buettner <kevinb@redhat.com>
684
685 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
686 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
687 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
688 Add support for the fpscr register.
689 * rs6000-nat.c (regmap, fetch_inferior_registers)
690 (store_inferior_registers, fetch_core_registers): Likewise.
691
dd7be90a
KB
6922002-07-26 Kevin Buettner <kevinb@redhat.com>
693
694 * rs6000-nat.c (language.h): Include.
695 (special_regs): Delete this array.
696 (regmap): New function.
697 (fetch_register, store_register): Use regmap() to map gdb
698 register numbers to ptrace register numbers. Also, use
699 outputs from regmap() to make decisions regarding type of
700 ptrace() call to make. In particular, don't compare against
701 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
702 (fetch_inferior_registers, store_inferior_registers): Where
703 possible, obtain register numbers from tdep struct. Don't
704 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
705 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
706 (LAST_UISA_SP_REGNUM): Delete.
707
11bf77db
KB
7082002-07-25 Kevin Buettner <kevinb@redhat.com>
709
710 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
711 (fetch_registers, store_register, fetch_core_registers): Don't
712 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
713 regcache_collect() as appropriate.
714 (find_toc_address): Format hex address with local_hex_string().
715
06afebeb
AC
7162002-07-25 Andrew Cagney <ac131313@redhat.com>
717
718 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
719 bfd/elf32-frv.c.
720
8c554d79
TT
7212002-07-24 Tom Tromey <tromey@redhat.com>
722
723 * jv-exp.y: Marked all strings with _().
724 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
725 internal_error.
726 (MethodInvocation, CastExpression, parse_number, yyerror,
727 java_type_from_name, push_expression_name, yylex): Typo fixes.
728
e4c242d9
DJ
7292002-07-24 Daniel Jacobowitz <drow@mvista.com>
730
731 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
732 (tee_file_flush, tee_file_write, tee_file_fputs)
733 (tee_file_isatty): New.
734 * ui-file.h (tee_file_new): Add prototype.
735
ebf56fd3
AS
7362002-07-24 Aidan Skinner <aidan@velvet.net>
737
738 * ada-lang.c: Change k&r style function definitions to prototyped
739 form.
740 * ada-typeprint.c: Change k&r style function definitions to prototyped
741 form.
742 * ada-valprint.c: Change k&r style function definitions to prototyped
743 form.
744
7fb623f7
AC
7452002-07-24 Andrew Cagney <cagney@redhat.com>
746
747 * README: Remove reference to remote-bug.
748 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
749 remote-bug.c.
750 (m88k-nat.o): Delete rule.
751 (m88k-tdep.o): Delete rule.
752 (remote-bug.o): Delete rule.
753 * MAINTAINERS: Mark as obsolete.
754 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
755 * m88k-tdep.c: Make file obsolete.
756 * config/m88k/m88k.mh: Ditto.
757 * config/m88k/delta88v4.mh: Ditto.
758 * config/m88k/delta88v4.mt: Ditto.
759 * config/m88k/delta88.mt: Ditto.
760 * config/m88k/delta88.mh: Ditto.
761 * remote-bug.c: Ditto.
762 * config/m88k/tm-delta88.h: Ditto.
763 * config/m88k/nm-delta88v4.h: Ditto.
764 * config/m88k/xm-delta88.h: Ditto.
765 * config/m88k/xm-dgux.h: Ditto.
766 * config/m88k/tm-m88k.h: Ditto.
767 * config/m88k/nm-m88k.h: Ditto.
768 * config/m88k/tm-delta88v4.h: Ditto.
769 * m88k-nat.c: Ditto.
770 * cxux-nat.c: Ditto.
771 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
772 and m88*-*-* obsolete.
773 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
774 m88*-*-* obsolete.
775
37611a2b
AC
7762002-07-24 Andrew Cagney <cagney@redhat.com>
777
778 * findvar.c (extract_unsigned_integer): Make `addr' parameter
779 constant. Same for local pointer variables.
780 (extract_signed_integer): Ditto.
781 * defs.h (extract_unsigned_integer): Update.
782 (extract_signed_integer): Update.
783
18ff0538
KB
7842002-07-24 Kevin Buettner <kevinb@redhat.com>
785
786 * gdbserver/configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
787 * gdbserver/configure: Regenerate.
788 * gdbserver/config.in: Regenerate.
789
1aaa5f99
AC
7902002-07-24 Andrew Cagney <cagney@redhat.com>
791
792 * regcache.c (regcache_raw_write): Change buf parameter to a
793 constant void pointer.
794 (regcache_raw_read): Change buf parameter to a void pointer.
795 (legacy_write_register_gen): Change myaddr parameter a constant
796 void pointer.
797 (supply_register): Change val parameter to a const void pointer.
798 * regcache.h (regcache_raw_write): Update declaration.
799 (regcache_raw_read): Update declaration.
800 (supply_register): Update declaration.
801
b4f5539f
TT
8022002-07-24 Tom Tromey <tromey@redhat.com>
803
804 * defs.h (gdb_readline_wrapper): Declare.
805 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
806 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
807 * top.c (gdb_readline_wrapper): New function.
808 (command_line_input): Use it.
809
0818c12a
AC
8102002-07-24 Andrew Cagney <cagney@redhat.com>
811
812 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
813 regcache_read and regcache_write.
814 (regcache_raw_read_as_address): Replace regcache_read_as_address.
815 * regcache.c: Update.
816 * sh-tdep.c (sh64_push_arguments): Update comment.
817 (sh_pseudo_register_read): Update.
818 (sh_pseudo_register_write): Update.
819 (sh4_register_read): Update.
820 (sh4_register_write): Update.
821 (sh64_pseudo_register_read): Update.
822 (sh64_pseudo_register_write): Update.
823 (sh64_register_read): Update.
824 (sh64_register_write): Update.
825 * i386-tdep.c (i386_extract_return_value): Update.
826 (i386_extract_struct_value_address): Update.
827 (i386_extract_return_value): Update.
828 * blockframe.c (generic_read_register_dummy): Update.
829 (generic_call_dummy_register_unwind): Update
830 * infrun.c (write_inferior_status_register): Update.
831
f7321c06
JB
8322002-07-23 Jim Blandy <jimb@redhat.com>
833
834 * parser-defs.h (expression_context_pc): Make this extern.
835 (Thanks to Michael Snyder.)
836
2037aebb
AC
8372002-07-23 Andrew Cagney <ac131313@redhat.com>
838
839 GDB 5.2.1 released from 5.2 branch.
840 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
841 * README: Update to mention 5.2.1.
842
66504d44
MS
8432002-07-23 Mark Salter <msalter@redhat.com>
844
845 * remote.c (remote_read_bytes): Fix check for error.
846
27bae383
KB
8472002-07-22 Kevin Buettner <kevinb@redhat.com>
848
849 * aix-thread.c (language.h): Include.
850 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
851 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
852 Print newlines at end of debug messages.
853 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
854 (pdc_write_data): Use local_hex_string() instead of %llx formats.
855
8562002-07-22 Kevin Buettner <kevinb@redhat.com>
857
858 * aix-thread.c (ppc-tdep.h): Include.
859 (special_register_p): New function.
860 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
861 (store_regs_user_thread): Use register number information from
862 gdbarch_tdep struct instead of hardcoded offsets relative to
863 FIRST_UISA_SP_REGNUM.
864 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
865 special_register_p() instead of using FPLAST_REGNUM and
866 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
867 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
868 will be MQ's register number.
869
8702002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
871
872 * aix-thread.c (ops): Rename to aix_thread_ops.
873 (base_ops): Rename to base_target.
874 (ops_attach): Rename to aix_thread_attach.
875 (ops_detach): Rename to aix_thread_detach.
876 (ops_resume): Rename to aix_thread_detach.
877 (ops_wait): Rename to aix_thread_wait.
878 (ops_kill): Rename to aix_thread_kill.
879 (init_ops): Rename to init_aix_thread_ops.
880 (ops_fetch_register): Rename to aix_thread_fetch_register.
881 (ops_store_register): Rename to aix_thread_store_register.
882 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
883 (ops_thread_alive): Rename to aix_thread_thread_alive.
884 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
885 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
886 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
887 (fetch_regs_lib): Rename to fetch_regs_user_thread.
888 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
889 (store_regs_lib): Rename to store_regs_user_thread.
890 (store_regs_kern): Rename to store_regs_kernel_thread.
891
27bae383 8922002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
893
894 * aix-thread.c (ops_prepare_to_store): Eliminate.
895 (init_ops): Don't initialize ops.prepare_to_store.
896 (store_regs_kern): Pre-fetch register buffers from child,
897 because some registers may not be in the cache. Copy
898 regs from register cache only if they are cached.
899 (store_regs_lib): Copy regs from register cache only
900 if they are cached.
901 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
902 fill_gprs64): Ditto.
903
61c5da0b
KB
9042002-07-22 Kevin Buettner <kevinb@redhat.com>
905
906 * aix-thread.c (gdb_assert.h): Include.
907 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
908 register sizes (from register cache) match size of buffer holding
909 register data.
910 (fill_sprs32): Change parameter types to match those in the ptrace()
911 buffer.
912 (store_regs_lib): Likewise, but for 32-bit temporary variables.
913 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
914
9152002-07-22 Michael Snyder <msnyder@redhat.com>
916
917 * aix-thread.c (supply_sprs64): Cosmetic change.
918 (supply_sprs32): Cosmetic change.
919 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
920 (fill_sprs64): Use regcache_collect instead of read_register.
921 (store_regs_lib): Use regcache_collect instead of
922 read_register. Use fill_sprs32 instead of fill_sprs64,
923 if debugging a 32-bit architecture.
924 (store_regs_kern): Use fill_gprs64 etc. to pull the values
925 out of the register cache, instead of passing a pointer into
926 the register cache directly to ptrace. Use regcache_collect
927 insteaad of read_register.
928 (ops_prepare_to_store): Use target_read_registers instead
929 of read_register_bytes.
930
36479eb1
AS
9312002-07-20 Aidan Skinner <aidan@velvet.net>
932
933 * MAINTAINERS: Add self under write after approval.
934
80ae6ee2
AS
9352002-07-20 Aidan Skinner <aidan@velvet.net>
936
937 * ada-tasks.c: Change k&r style function definitions to prototyped
938 form.
939
8a8ab2b9
AC
9402002-07-19 Andrew Cagney <ac131313@redhat.com>
941
942 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
943 * x86-64-tdep.c: Include "objfiles.h".
944 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
945 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
946
fb16b900
ML
9472002-07-17 Michal Ludvig <michal@suse.cz>
948
949 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
950 (update_context): Initialise cfa variable.
951
0fe7bf7b
MS
9522002-07-17 Michael Snyder <msnyder@redhat.com>
953
954 * aix-thread.c: Shorten some long lines.
955 Bring comments into line with code spec.
956
488f131b
JB
9572002-07-18 Joel Brobecker <brobecker@gnat.com>
958
959 * infrun.c: Re-indent using gdb_indent.sh.
960
46c415d2
JB
9612002-07-18 Joel Brobecker <brobecker@gnat.com>
962
963 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
964 Leave the indentation temporarily untouched, to minimize the diffs.
965
cdecafbe
EZ
9662002-07-18 Elena Zannoni <ezannoni@redhat.com>
967
968 * stabsread.c: Make os9k sections of the code obsolete,
969 for real this time.
970 * stabsread.h: Make os9k sections of the code obsolete.
971
7b6aa020
ML
9722002-07-18 Michal Ludvig <mludvig@suse.cz>
973
09ec9b38
ML
974 * linux-low.c (regsets_store_inferior_registers): Add free()
975 at the end of a loop to prevent memory leak.
976 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
977 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
978 * config/sparc/tm-sp64linux.h: Make the rest of #endif
979 line a comment.
4894ac5d 980 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 981
233282cd
JB
9822002-07-17 Jim Blandy <jimb@redhat.com>
983
984 * macrocmd.c (info_macro_command): Remove newline from error
985 message.
986
7b6aa020 9872002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
988
989 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
990 (sh_gdbarch_init): Use it for sh-dsp.
991
f7ef9339
KB
9922002-07-16 Kevin Buettner <kevinb@redhat.com>
993
994 * dwarf2read.c (read_initial_length): Handle older, non-standard,
995 64-bit DWARF2 format.
996
8dd72958
JB
9972002-07-16 Joel Brobecker <brobecker@gnat.com>
998
999 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1000 <sys/proc.h> when not available.
1001
a99a9e1b
AC
10022002-07-16 Andrew Cagney <ac131313@redhat.com>
1003
1004 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1005 * stabsread.c: Make os9k sections of the code obsolete.
1006 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1007 * config/i386/i386os9k.mt: Make file obsolete.
1008 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1009 (COMMON_OBS): Remove os9kread.o
1010 (SFILES): Remove os9kread.c.
1011 (os9kread.o, remote-os9k.o): Make target obsolete.
1012 * remote-os9k.c: Make file obsolete.
1013 * os9kread.c: Make file obsolete.
1014 * Makefile.in
1015
7a3085c1
AC
10162002-07-16 Andrew Cagney <ac131313@redhat.com>
1017
1018 * NEWS: Mention that the FR30 has been made obsolete.
1019 * fr30-tdep.c: Make file obsolete.
1020 * config/fr30/tm-fr30.h: Ditto.
1021 * config/fr30/fr30.mt: Ditto.
1022 * configure.tgt: Make fr30-*-elf obsolete.
1023 * MAINTAINERS: Make fr30-elf obsolete.
1024
28a93f5a
PM
10252002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
1026
1027 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
1028 found is not inside a section.
1029
be006b8b
KB
10302002-07-15 Kevin Buettner <kevinb@redhat.com>
1031
1032 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
1033 strerror().
1034 (pdc_realloc): Use xrealloc() instead of realloc().
1035
14fa3751
KB
10362002-07-15 Kevin Buettner <kevinb@redhat.com>
1037
1038 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
1039 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
1040 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
1041 macros.
1042
42cc437f
KB
10432002-07-15 Kevin Buettner <kevinb@redhat.com>
1044
1045 * aix-thread.c (ptrace_check): Eliminate goto.
1046 (sync_threadlists): Eliminate gotos. Also, fix array overrun
1047 problem.
1048
8e2c28d4
KB
10492002-07-15 Kevin Buettner <kevinb@redhat.com>
1050
1051 * aix-thread.c (gdbcmd.h): Include.
1052 (DEBUG, DBG, DBG2, dbg): Eliminate.
1053 (debug_aix_thread): New static global.
1054 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1055 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
1056 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
1057 invocations to DBG and DBG2 macros to test against
1058 ``debug_aix_thread'' and call fprintf_unfiltered().
1059 (_initialize_aix_thread): Add new command "set debug aix-thread".
1060
30413464
AC
10612002-07-15 Andrew Cagney <ac131313@redhat.com>
1062
1063 From Gerhard Tonn <TON@de.ibm.com>:
1064 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
1065 instead of supply_register.
1066
7c43edc1
AC
10672002-07-15 Andrew Cagney <ac131313@redhat.com>
1068
1069 * dwarf2cfi.c: Include "gdb_assert.h".
1070 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
1071 non-NULL.
1072 (update_context): Do not use __func__. Add missing ``break''.
1073 (update_context): Do not use __func__.
1074
9364a0ef
EZ
10752002-07-15 Elena Zannoni <ezannoni@redhat.com>
1076
1077 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
1078 and its setting. Set gdbarch instruction printing functions
1079 directly. For non-rs6000 case use new function
1080 gdb_print_insn_powerpc.
1081 (gdb_print_insn_powerpc): New function.
1082
3fbeef0b
AC
10832002-07-13 Andrew Cagney <ac131313@redhat.com>
1084
92eb23c5 1085 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
1086 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
1087 * configure.tgt: Mark d30v-*-* as obsolete.
1088 * d30v-tdep.c: Mark file as obsolete.
1089 * config/d30v/d30v.mt: Ditto.
1090 * config/d30v/tm-d30v.h: Ditto.
1091
aacb1f0a
AS
10922002-07-13 Aidan Skinner <aidan@velvet.net>
1093
1094 * ada-tasks.c (add_task_entry): replace calls to
1095 malloc() with xmalloc
1096 * ada-tasks.c (init_task_list): replace calls to free with xfree()
1097
1098 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
1099 ada_finish_decode_line_1, all_sals_for_line
1100 ada_breakpoint_rewrite): replace calls to free() with xfree()
1101
c11d79f2
KB
11022002-07-12 Kevin Buettner <kevinb@redhat.com>
1103
1104 From Nicholas Duffek (with minor changes by Martin Hunt,
1105 Louis Hamilton, and Kevin Buettner):
1106 * aix-thread.c: New file.
1107
8e19ed76
PS
11082002-07-12 Petr Sorfa <petrs@caldera.com>
1109
1110 * dwarf2read.c (dwarf2_invalid_attrib_class): New
1111 complaint for invalid attribute class or form.
1112 (read_func_scope): DW_AT_frame_base
1113 better handling of DW_AT_block*.
1114 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
1115 better handling of DW_AT_block*.
1116 (read_common_block): DW_AT_location
1117 better handling of DW_AT_block*.
1118 (read_partial_die): DW_AT_location better handling
1119 of DW_AT_block*.
1120 (new_symbol): DW_AT_external better handling of
1121 DW_AT_block*. Proper initialization of variable
1122 "addr".
1123 (attr_form_is_block): New function that returns true
1124 if the attribute's form is of DW_FORM_block*.
1125
295401f7
DJ
11262002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
1127
1128 * valops.c (find_method_list): Remove comment about
1129 removed STATIC_MEMFUNCP argument.
1130 (value_find_oload_method_list): Likewise.
1131
e42dc924
KB
11322002-07-12 Kevin Buettner <kevinb@redhat.com>
1133
1134 From Nicholas Duffek:
1135 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
1136 target_new_objfile_hook.
1137
6904b546
KB
11382002-07-12 Kevin Buettner <kevinb@redhat.com>
1139
1140 From Nicholas Duffek:
1141 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
1142 csect.
1143
53fe9346
AC
11442002-07-12 Andrew Cagney <cagney@redhat.com>
1145
1146 * MAINTAINERS: Mention --enable-sim-build-warnings.
1147 (m68hc11-elf): Disable sim build warnings.
1148 (m32r-elf): Mark as broken obsolete candidate.
1149 (x86_64-linux-gnu): Mark as buildable with -Werror.
1150 (arm-elf): Change -w to ``,'' which enables warnings but not
1151 -Werror.
1152
af5f3db6
AC
11532002-07-12 Andrew Cagney <ac131313@redhat.com>
1154
1155 * bcache.h: Update copyright.
1156 (struct bstring, struct bcache): Move definition to "bcache.c".
1157 Replaced by opaque declaration.
1158 (bcache_xfree): Replace free_bcache.
1159 (bcache_xmalloc, bcache_memory_used): Declare.
1160
1161 * bcache.c: Update copyright.
1162 (struct bstring, struct bcache): Moved to here from "bcache.h".
1163 Update comments.
1164 (bcache_xmalloc, bcache_memory_used): New functions.
1165 (bcache_xfree): Replace function free_bcache.
1166
1167 * Makefile.in (objfiles.o): Add $(bcache_h).
1168 (objfiles_h): Remove $(bcache_h).
1169 (symfile.o): Add $(bcache_h).
1170
1171 * symmisc.c: Update copyright.
1172 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
1173 (print_objfile_statistics): Use bcache_memory_used.
1174
1175 * symfile.c: Include "bcache.h".
1176 (reread_symbols): Use bcache_xfree.
1177 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
1178 (add_psymbol_to_list): Pass psymbol_cache by value.
1179 (add_psymbol_with_dem_name_to_list): Ditto.
1180
1181 * objfiles.h: Update copyright.
1182 (struct bcache): Declare opaque. Do not include "bcache.h".
1183 (struct objfile): Change psymbol_cache and macro_cache to ``struct
1184 bcache'' pointers.
1185 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
1186
1187 * objfiles.c: Include "bcache.h". Update copyright.
1188 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
1189 macro_cache.
1190 (free_objfile): Use bcache_xfree.
1191
444199e7
GS
11922002-07-11 Grace Sainsbury <graces@redhat.com>
1193
1194 * monitor.c (monitor_fetch_register): Make name a constant.
1195 (monitor_store_register): Same.
1196
261397f8
DJ
11972002-07-11 Daniel Jacobowitz <drow@mvista.com>
1198
1199 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
1200 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
1201 (finish_block) For non-function blocks, hash the symbol table. For
1202 function blocks, mark the symbol table as unhashed.
1203 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
1204 (msymbol_hash_iw): Likewise.
1205 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
1206 value.
1207 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
1208 (lookup_minimal_symbol): Likewise for both.
1209 * symtab.h (struct block): Add `hashtable' flag. Comment the
1210 hashtable.
1211 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
1212 (ALL_BLOCK_SYMBOLS): Update.
1213 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
1214 (struct symbol): Add `hash_next' pointer.
1215 * symtab.c (lookup_block_symbol): Search using the hash table when
1216 possible.
1217 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
1218 (search_symbols, find_addr_symbol): Likewise.
1219
1220 * dstread.c (process_dst_block): Clear hashtable bit for new block.
1221 (read_dst_symtab): Likewise.
1222 * jv-lang.c (get_java_class_symtab): Likewise.
1223 * mdebugread.c: Include "gdb_assert.h".
1224 (shrink_block): Assert that the block being modified is not hashed.
1225 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
1226 * symmisc.c (free_symtab_block): Walk the hash table when freeing
1227 symbols.
1228 (dump_symtab): Recognize hashed blocks.
1229 * printcmd.c (print_frame_args): Assert that function blocks do not
1230 have hashed symbol tables.
1231 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
1232 (fill_in_ada_prototype, debug_print_block): Likewise.
1233 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
1234
6f0eaa01
CV
12352002-07-11 Corinna Vinschen <vinschen@redhat.com>
1236
1237 * stack.c (print_frame): Use result of frame_address_in_block()
1238 instead of fi->pc when evaluating symbols.
1239 (backtrace_command_1): Ditto.
1240
a208b0cb
AC
12412002-07-11 Andrew Cagney <cagney@redhat.com>
1242
1243 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
1244 Make static.
1245
1246 * arm-tdep.c (arm_register_name): Make return type constant.
1247
a6b6b089
AC
12482002-07-10 Andrew Cagney <ac131313@redhat.com>
1249
5ae5f592
AC
1250 * win32-nat.c (has_detach_ability): Convert to strict ISO C
1251 prototype.
1252 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
1253 * s390-tdep.c (s390_fp_regnum): Ditto.
1254 (s390_read_fp): Ditto.
1255 (s390_pop_frame): Ditto.
1256 (_initialize_s390_tdep): Ditto.
1257 * remote.c (get_remote_state): Ditto.
1258 * procfs.c (mappingflags): Ditto.
1259 * memattr.c (_initialize_mem): Ditto.
1260 * mcore-tdep.c (mcore_pop_frame): Ditto.
1261 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
1262 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
1263 * language.c (set_case_str): Ditto.
1264 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
1265 * frv-tdep.c (new_variant): Ditto.
1266 (frv_stopped_data_address): Ditto.
1267 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
1268 (context_alloc): Ditto.
1269 (frame_state_alloc): Ditto.
1270 (unwind_tmp_obstack_init): Ditto.
1271 (unwind_tmp_obstack_free): Ditto.
1272 (cfi_read_fp): Ditto.
1273 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
1274 (cris_pop_frame): Ditto.
1275 * c-lang.c (scanning_macro_expansion): Ditto.
1276 (finished_macro_expansion): Ditto.
1277 (c_preprocess_and_parse): Ditto.
1278 * gdbarch.sh: Ditto.
1279 * gdbarch.h, gdbarch.c: Regenerate.
1280 * config/mn10200/tm-mn10200.h: Adjust indentation.
1281 * target.c: Adjust indentation.
1282 * symtab.h: Adjust indentation.
1283 * stabsread.h: Adjust indentation.
1284 * remote-es.c: Adjust indentation.
1285 * os9kread.c: Adjust indentation.
1286
12872002-07-10 Andrew Cagney <ac131313@redhat.com>
1288
a6b6b089
AC
1289 * wince.c (_initialize_wince): Rename _initialize_inftarg.
1290 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
1291
a1789893
GS
12922002-07-10 Grace Sainsbury <graces@redhat.com>
1293
1294 * NEWS: Mention m68k, mcore multi-arching.
1295 * MAINTAINERS: Change status of m68k, mcore to reflect
1296 multi-arching.
1297
02f0d45d
DJ
12982002-07-10 Daniel Jacobowitz <drow@mvista.com>
1299
1300 * valops.c (find_overload_match): Free oload_syms.
1301
f15f768e
JB
13022002-07-09 Joel Brobecker <brobecker@gnat.com>
1303
1304 Define HAVE_SYS_PROC_H if sys/proc.h exists
1305 * configure.in: Add check for sys/proc.h
1306 * config.in: Regenerate.
1307 * configure: Regenerate.
1308
902a7139
GS
13092002-07-09 Grace Sainsbury <graces@redhat.com>
1310
1311 * config/m68k/tm-m68k.h: Remove macros wrapped in
1312 #if !GDB_MULTI_ARCH.
1313
82e0fd98
DB
13142002-07-09 David O'Brien <obrien@FreeBSD.org>
1315
1316 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
1317 (perror_with_name, remote_close, remote_open, expect, play): Static.
1318
a534e424
AC
13192002-07-08 Andrew Cagney <ac131313@redhat.com>
1320
1321 * config.in, configure: Regenerate.
1322
9b94f7bf
MK
13232002-07-08 Mark Kettenis <kettenis@gnu.org>
1324
1325 * dwarf2cfi.c: Include "gcore.h".
1326 (execute_stack_op): Fix implementation of the
1327 DW_OP_deref and DW_OP_deref_size operators by letting do their
1328 lookup in the target.
1329
1d34db41
MK
13302002-07-07 Mark Kettenis <kettenis@gnu.org>
1331
1332 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
1333 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
1334 tdep->sc_sp_offset.
1335
79d5b63a
DJ
13362002-07-05 Daniel Jacobowitz <drow@mvista.com>
1337
1338 Fix PR gdb/595, gdb/602
1339 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
1340 Don't call value_cast, just read the vtable pointer; update comments
1341 to match.
1342
3bb912e8
GS
13432002-07-05 Grace Sainsbury <graces@redhat.com>
1344
1345 * config/mcore/tm-mcore.h: Remove file.
1346 * config/mcore/mcore.mt: Remove definition of TM_FILE
1347 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
1348
ca39387d
MK
13492002-07-05 Mark Kettenis <kettenis@gnu.org>
1350
1351 * i386bsd-tdep.c: Include "gdb_string.h".
1352
efdc1108
GS
13532002-07-04 Grace Sainsbury <graces@redhat.com>
1354
1355 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
1356 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
1357 mcore-tdep.
1358 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
1359 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
1360 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
1361 (RETVAL_REGNUM): Move macros from tm-mcore.h
1362 (mcore_reg_struct_has_addr): New function.
1363 (mcore_gdbarch_init): Added initializations for the macros removed
1364 from tm-mcore.h.
1365
bb21884d
MK
13662002-07-04 Mark Kettenis <kettenis@gnu.org>
1367
1368 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
1369 traditonal string branding within the ELF header.
1370
228c6d41
DJ
13712002-07-04 Daniel Jacobowitz <drow@mvista.com>
1372
1373 * symtab.c (remove_params): New function.
1374 (make_symbol_overload_list): Use it instead of cplus_demangle.
1375 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
1376
2404952e
MK
13772002-07-04 Mark Kettenis <kettenis@gnu.org>
1378
e5e4acad
MK
1379 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
1380
baadce09
MK
1381 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
1382 New variables.
1383 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
1384 and tdep->sigtramp_end.
1385 * i386obsd-nat.c: New file.
1386 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
1387
2404952e
MK
1388 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
1389 Don't call get_current_frame().
1390
9b4f1ba7
PM
13912002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
1392
1393 * i386-nat.c (child_post_startup_inferior): New function
1394 calling i386_cleanup_dregs if
1395 I386_USE_GENERIC_WATCHPOINTS is defined.
1396 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
1397 conditional to acknowledge that i386-nat.c has its
1398 own child_post_startup_inferior function.
1399
c0d1d883
MK
14002002-07-04 Mark Kettenis <kettenis@gnu.org>
1401
00f8375e
MK
1402 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
1403 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
1404 instead of MAX_REGISTER_RAW_SIZE.
1405 (i386_extract_return_value, i386_extract_struct_value_address):
1406 Convert to use regcache.
1407 (i386_gdbarch_init): Set max_register_raw_size and
1408 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
1409 Set extract_return_value and extract_struct_value_address instead
1410 of their deprecated variants.
1411
c0d1d883
MK
1412 Convert i386 target to generic dummy frames.
1413 * i386-tdep.c: Include "symfile.h".
1414 (i386_frameless_signal_p): Consider a function to be frameless if
1415 the pc points at the first instruction of the function.
1416 (i386_frame_chain): Handle (generic) call dummies.
1417 (i386_frame_saved_pc): Likewise.
1418 (i386_frame_init_saved_regs): Remove code dealing with call
1419 dummies on the stack.
1420 (i386_push_dummy_frame): Removed.
1421 (i386_call_dummy_words): Removed.
1422 (i386_fix_call_dummy): Removed.
1423 (i386_push_return_address): New function.
1424 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
1425 parameter, and don't call get_current_frame.
1426 (i386_pop_frame): New function.
1427 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
1428 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
1429 entry_point_address, set call_dummy_breakpoint_offset to 0, set
1430 call_dummy_length to 0, set call_dummy_words to NULL, set
1431 sizeof_call_dummy_words to 0, set fix_call_dummy to
1432 generic_fix_call_dummy, set pc_in_call_dummy to
1433 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
1434 generic_push_dummy_frame, set push_return_address to
1435 i386_push_return_address and set frame_chain_valid to
1436 generic_file_frame_chain_valid.
1437
638c1580
ML
14382002-07-04 Michal Ludvig <mludvig@suse.cz>
1439
1440 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
1441 byte offsets instead of an array of indexes.
1442 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
1443
049ee0e4
AC
14442002-07-03 Andrew Cagney <ac131313@redhat.com>
1445
1446 * gdbarch.sh (struct regcache): Add opaque declaration.
1447 (EXTRACT_RETURN_VALUE): New architecture method.
1448 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
1449 * gdbarch.h, gdbarch.c: Regenerate.
1450 * arch-utils.c (legacy_extract_return_value): New function.
1451 * arch-utils.h (legacy_extract_return_value): Declare.
1452 * values.c (value_being_returned): Re-enable code handling
1453 EXTRACT_STRUCT_VALUE_ADDRESS. Move
1454 deprecated_grub_regcache_for_registers call to block handling
1455 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
1456 (EXTRACT_RETURN_VALUE): Do not define.
1457
4e0d9804
GS
14582002-07-03 Grace Sainsbury <graces@redhat.com>
1459
1460 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
1461 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
1462 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
1463 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
1464 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
1465 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
1466 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
1467 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
1468 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
1469 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
1470 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
1471 argument so the function fits the prototype in the architecture
1472 vector.
1473 (mcore_pop_frame): Remove argument so the function fits the
1474 prototype. Use get_current_frame instead of the argument.
1475 (mcore_push_arguments): Change type of struct_return so the
1476 function can be used in the architecture vector.
1477 (mcore_store_struct_return): Add.
1478 (mcore_frame_init_saved_regs): Add.
1479 (mcore_gdbarch_init): Add function calls to replace the macros
1480 removed from tm-mcore.h
1481
36160dc4
AC
14822002-07-03 Andrew Cagney <ac131313@redhat.com>
1483
1484 * infcmd.c (print_return_value): Remove compatibility code calling
1485 deprecated_grub_regcache_for_registers.
1486
1487 * values.c: Include "regcache.h".
1488 (value_being_returned): Update. Use
1489 deprecated_grub_regcache_for_registers to extract the register
1490 buffer address.
1491 * value.h (value_being_returned): Change ``retbuf'' parameter to a
1492 ``struct regcache''.
1493 * Makefile.in (values.o): Add dependency on $(regcache_h).
1494
1495 * inferior.h (run_stack_dummy): Change type of second parameter to
1496 a ``struct regcache''.
1497 * valops.c (hand_function_call): Change type of retbuf to ``struct
1498 regcache''. Allocate using regcache_xmalloc, clean using
1499 make_cleanup_regcache_xfree.
1500 * infcmd.c (run_stack_dummy): Update. Use
1501 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
1502
1503 * regcache.c (do_regcache_xfree): New function.
1504 (make_cleanup_regcache_xfree): New function.
1505 * regcache.h (make_cleanup_regcache_xfree): Declare.
1506
e64d9b3d
MH
15072002-07-03 Martin M. Hunt <hunt@redhat.com>
1508
4dd79c29
MH
1509 * event-top.c (command_line_handler): Don't read past
1510 beginning of buffer.
e64d9b3d 1511
4dd79c29
MH
15122002-07-03 Martin M. Hunt <hunt@redhat.com>
1513
e64d9b3d
MH
1514 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
1515 struct frame_id.
1516 (varobj_create): Store frame_id for root.
1517 (varobj_gen_name): Use xasprintf.
1518 (varobj_update): Save and restore frame using get_frame_id() and
1519 frame_find_by_id().
1520 (create_child): Use xasprintf.
1521 (new_root_variable): Initialize frame_id.
1522 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
1523 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
1524 to prevent memory leak.
1525
26e6c56a
AC
15262002-07-03 Andrew Cagney <ac131313@redhat.com>
1527
1528 * valops.c (hand_function_call): Move declaration of retbuf to
1529 start of function, allocate using malloc, add a cleanup but before
1530 the inf_status cleanup, cleanup the buffer. Rename local variable
1531 old_chain to inf_status_cleanup.
1532
f436dd25
MH
15332002-07-03 Martin M. Hunt <hunt@redhat.com>
1534
1535 * top.c (execute_command): Use cmd_func() and cmd_func_p().
1536
1537 * cli/cli-decode.c (cmd_func_p): New function.
1538 (cmd_func): New function.
1539
1540 * command.h: Add cmd_func() and cmd_func_p().
1541
4cfe2084
GS
15422002-07-03 Grace Sainsbury <graces@redhat.com>
1543
1544 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
1545 (REGISTER_SIZE): Remove.
1546 (MAX_REGISTER_RAW_SIZE): Remove.
1547 (REGISTER_VIRTUAL_TYPE): Remove.
1548 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
1549 (REGISTER_NAME): Remove.
1550 (USE_GENERIC_DUMMY_FRAMES): Remove.
1551 (CALL_DUMMY): Remove.
1552 (CALL_DUMMY_START_OFFSET): Remove.
1553 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
1554 (CALL_DUMMY_LOCATION): Remove.
1555 (FIX_CALL_DUMMY): Remove.
1556 (CALL_DUMMY_ADDRESS): Remove.
1557 (SIZEOF_CALL_DUMMY_WORDS): Remove.
1558 (SAVE_DUMMY_FRAME_TOS): Remove.
1559 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
1560 (mcore_register_virtual_type): New function.
1561 (mcore_register_byte): New function.
1562 (mcore_register_size): New function.
1563 (mcore_register_name): New function.
1564 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
1565 macros removed from tm-mcore.h.
1566 (mcore_dump_tdep): Add.
1567 (_initialize_mcore_tdep): Add gdbarch_register call.
1568
4fd667e9
MK
15692002-07-03 Mark Kettenis <kettenis@gnu.org>
1570
1571 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
1572 frameless_look_for_prologue, such that we actually call this
1573 function.
1574
42f99ac2
JB
15752002-07-02 Joel Brobecker <brobecker@gnat.com>
1576
1577 * frame.h (frame_address_in_block): New function.
1578
1579 * blockframe.c (frame_address_in_block): New function extracted
1580 from get_frame_block().
1581 (get_frame_block): Use frame_address_in_block().
1582 (block_innermost_frame): Use frame_address_in_block() to match
1583 the frame pc address against the block boundaries rather than
1584 the frame pc directly. This prevents a failure when a frame pc
1585 is actually a return-address pointing immediately after the end
1586 of the given block.
1587
103a1597 15882002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
1589
1590 * MAINTAINERS: Add self under write after approval.
1591
15922002-07-02 Grace Sainsbury <graces@redhat.com>
1593
103a1597
GS
1594 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
1595 used in architecture vector. The default is
1596 m68k_local_breakpoint_from_pc.
1597 (m68k_local_breakpoint_from_pc): Add.
1598 (enum): Add register numbers from tm-m68k.h.
1599 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
1600 vector.
1601 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
1602 GDB_MULTI_ARCH_PARTIAL.
1603 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
1604 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
1605 m68k-tdep.c.
1606 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
1607 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
1608 to enum in m68k-tdep.c
1609
7a5a0534
JB
16102002-07-02 Joel Brobecker <brobecker@gnat.com>
1611
1612 * solib-osf.c (open_map): Compute the list of shared libraries
1613 loaded by the inferior, rather than the list of libraries loaded
1614 by GDB itself. Otherwise, GDB ends up reading the symbols from
1615 the wrong shared libraries...
1616
6f558d74
MK
16172002-07-02 Mark Kettenis <kettenis@gnu.org>
1618
b7d15bf7
MK
1619 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
1620 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
1621 macros.
1622 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
1623 Remove functions.
1624 (FRAMELESS_SIGNAL): Remove function.
1625 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
1626 i386_linux_saved_pc_after_call): Removed.
1627 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
1628 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
1629 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
1630
6bff26de
MK
1631 * i386-tdep.c (i386_frameless_signal_p): New function.
1632 (i386_frame_chain): Deal with frameless signals.
1633 (i386_sigtramp_saved_sp): New function.
1634 (i386_frame_saved_pc): Deal with frameless signals.
1635 (i386_saved_pc_after_call): Make sure the correct value is
1636 returned just after entry into a sigtramp.
1637 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
1638 i386fbsd4_sc_sp_offset): New variables.
1639 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
1640 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
1641 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
1642 similiar to what we already did for sc_pc_offset.
1643 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
1644 tdep->sc_sp_offset.
1645
6f558d74
MK
1646 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
1647
145564b7
ML
16482002-07-02 Michal Ludvig <mludvig@suse.cz>
1649
1650 * config/i386/tm-x86-64linux.h: New.
1651 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
1652 definitions.
1653 * config/i386/nm-x86-64.h: Rename to ...
1654 * config/i386/nm-x86-64linux.h: ... this one.
1655 * config/i386/x86-64linux.mh: Reflect the above change.
1656
3a1e71e3
MK
16572002-07-01 Mark Kettenis <kettenis@gnu.org>
1658
21d0e8a4
MK
1659 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
1660 with sigcontext_addr. Add sc_sp_offset.
1661 (i386bsd_sigtramp_saved_pc): Remove prototype.
1662 (i386bsd_sicontext_addr): Add prototype.
1663 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
1664 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
1665 (i386_svr4_sigtramp_saved_pc): Removed.
1666 (i386_svr4_sigcontext_addr): New function.
1667 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
1668 Initialize tdep->sigcontext_addr instead. Initialize
1669 tdep->sc_pc_offset and tdep->sc_sp_offset.
1670 (i386_gdbarch_init): Likewise.
1671 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
1672 any more.
1673 (i386bsd_sigtramp_saved_pc): Remove function.
1674 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
1675 Initialize tdep->sigcontext_addr instead. Initialize
1676 tdep->sc_pc_offset.
1677 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
1678 of tdep->sigtramp_saved_pc.
1679 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
1680 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
1681 instead.
1682
3a1e71e3
MK
1683 * i386-tdep.c (i386_frameless_function_invocation,
1684 i386_frame_num_args, i386_frame_init_saved_regs,
1685 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
1686 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
1687 i386_extract_return_value, i386_store_return_value,
1688 i386_extract_struct_value_address, i386_register_virtual_type,
1689 i386_register_convertible, i386_register_convert_to_virtual,
1690 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
1691 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
1692 static.
1693
52e9098c
MK
16942002-07-01 Mark Kettenis <kettenis@gnu.org>
1695
77b13a25
MK
1696 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
1697
52e9098c
MK
1698 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
1699 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
1700 this macro. Include "value.h".
1701
1b372fff
AS
17022002-06-30 Aidan Skinner <aidan@velvet.net>
1703
1704 * ada-exp.tab.c: remove as it's a generated file
1705 * ada-lex.c: remove as it's a generated file
1706
9c5045b5
MK
17072002-06-30 Mark Kettenis <kettenis@gnu.org>
1708
4a93c5bb
MK
1709 * config/i386/tm-i386.h (struct frame_info, struct
1710 frame_saved_regs, struct value, struct type): Remove forward
1711 declarations.
1712
322d4fe0
MK
1713 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
1714 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
1715 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
1716 (FILL_FPXREGSET): Define.
1717
fdd8263d
MK
1718 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
1719
482e577b
MK
1720 * configure.tgt (i[3456]86-*-openbsd*): Fold into
1721 i[3456]86-*-netbsd* case.
1722 * config/i386/tm-obsd.h: Removed.
1723 * config/i386/obsd.mt: Removed.
1724 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
1725 core-aout.o.
1726 (MH_CFLAGS): Add -DYYDEBUG=0.
1727
6916549a
MK
1728 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
1729 i386nbsd_sc_pc_offset on OpenBSD too.
1730
9c5045b5
MK
1731 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
1732 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
1733 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
1734 define.
1735 * i386bsd-tdep.c: Include "arch-utils.h".
1736 (i386bsd_aout_in_solib_call_trampoline): New function.
1737 (i386bsd_init_abi): Set in_solib_call_trampoline to
1738 i386bsd_aout_in_solib_call_trampoline.
1739 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
1740 in_solib_call_trampoline to generic_in_solib_call_trampoline.
1741
aa84d1bb
AC
17422002-06-28 Andrew Cagney <ac131313@redhat.com>
1743
1744 * macrotab.h: Do not include "obstack.h" or "bcache.h".
1745 (struct obstack, struct bcache): Add opaque declarations.
1746 * Makefile.in (macrotab_h): Update
1747
b4d83933
AC
17482002-06-28 Andrew Cagney <ac131313@redhat.com>
1749
1750 * blockframe.c (generic_find_dummy_frame): Change return type to
1751 ``struct regcache''.
1752 (struct dummy_frame): Replace field ``registers'' with regcache, a
1753 struct regcache object.
1754 (generic_find_dummy_frame): Update.
1755 (generic_push_dummy_frame): Update. Use regcache_xfree,
1756 regcache_xmalloc and regcache_cpy.
1757 (generic_pop_dummy_frame): Update. Use regcache_cpy and
1758 regcache_xfree.
1759 (deprecated_generic_find_dummy_frame): Update.
1760 (generic_read_register_dummy): Update. Use
1761 regcache_read_as_address.
1762 (generic_call_dummy_register_unwind): Update. Use regcache_read.
1763 (generic_get_saved_register): Update. Use regcache_read.
1764
08c0b5bc
AC
17652002-06-28 Andrew Cagney <ac131313@redhat.com>
1766
1767 * Makefile.in (objfiles_h): Add $(bcache_h).
1768 * objfiles.h: Include "bcache.h".
1769
1770 * Makefile.in (symtab_h): Remove $(bcache_h).
1771 * symtab.h: Do not include "bcache.h".
1772
1f89801a
AC
17732002-06-28 Andrew Cagney <ac131313@redhat.com>
1774
1775 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
1776 generic_func_frame_chain_valid.
1777
b9644b58
DB
17782002-06-28 David O'Brien <obrien@FreeBSD.org>
1779
1780 * config/i386/nm-fbsd.h: Include <sys/param.h>.
1781 * config/i386/tm-fbsd.h: Likewise.
1782
dd486634
AC
17832002-06-28 Andrew Cagney <ac131313@redhat.com>
1784
1785 * rs6000-tdep.c (rs6000_gdbarch_init): Use
1786 generic_unwind_get_saved_register.
1787
0b434a00
AC
17882002-06-27 Andrew Cagney <ac131313@redhat.com>
1789
1790 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
1791 * regcache.c (supply_register): Add missing argument to
1792 register_buffer call.
1793
f30e5a77
AC
17942002-06-27 Andrew Cagney <ac131313@redhat.com>
1795
1796 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
1797 Solaris /bin/grep does not not like it. From Peter Schauer.
1798
9f064c95
TT
17992002-06-26 Tom Tromey <tromey@redhat.com>
1800
1801 * command.h (add_setshow_cmd): Declare.
1802 (add_setshow_cmd_full): Declare.
1803 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
1804 returns void. Use add_setshow_cmd_full.
1805 (add_setshow_cmd_full): New function.
1806 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
1807 (add_setshow_boolean_cmd): Likewise.
1808
099c7589
JT
18092002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
1810
1811 * config/vax/tm-vax.h: Protect from multiple inclusion.
1812 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
1813 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
1814 * config/vax/tm-vaxbsd.h: ...here. New file.
1815 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
1816
1d049c5e
JT
18172002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
1818
1819 * config/vax/tm-vax.h (BREAKPOINT): Remove.
1820 (BELIEVE_PCC_PROMOTION): Remove.
1821 (AP_REGNUM): Move to...
1822 * config/vax/nm-vax.h: ...here.
1823 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
1824 (vax_breakpoint_from_pc): New function.
1825 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
1826 and gdbarch_believe_pcc_promotion.
1827
4791e091
JT
18282002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
1829
1830 * Makefile.in (vax_tdep_h): Define.
1831 (vax-tdep.o): Use $(vax_tdep_h).
1832 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
1833 (vax_dump_tdep): New function.
1834 (_initialize_vax_tdep): Register vax_dump_tdep.
1835 * vax-tdep.h: Include osabi.h.
1836 (struct gdbarch_tdep): New.
1837
da130f98
AC
18382002-06-26 Andrew Cagney <cagney@redhat.com>
1839
1840 * frame.h (deprecated_generic_find_dummy_frame): Rename
1841 generic_find_dummy_frame.
1842 * blockframe.c (generic_find_dummy_frame): Make static.
1843 (deprecated_generic_find_dummy_frame): New function.
1844 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
1845 generic_find_dummy_frame with deprecated_find_dummy_frame.
1846 (sh64_nofp_frame_init_saved_regs): Ditto.
1847 (sh_fp_frame_init_saved_regs): Ditto.
1848 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
1849 (s390_frame_chain): Ditto.
1850 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
1851
6300c360
GS
18522002-06-26 Grace Sainsbury <graces@redhat.com>
1853
1854 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
1855 gdbarch vector are at the top.
1856 (NUM_REGS): Remove.
1857 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
1858 (FRAME_ARGS_ADDRESS): Remove.
1859 (FRAME_LOCALS_ADDRESS): Remove.
1860 (FRAME_NUM_ARGS): Remove.
1861 (FRAME_ARGS_SKIP): Remove.
1862 * m68k-tdep.c (enum): Add eumeration of special register numbers.
1863 (m68k_gdbarch_init): Add gdbarch initializations for macros
1864 undefined in tm-m68k.h
1865
1c617db8
GS
18662002-06-26 Grace Sainsbury <graces@redhat.com>
1867
1868 * monitor.h: Add the function regname to monitor_ops
1869 structure. This way NUM_REGS does not have to be a constant.
1870 * monitor.c (monitor_fetch_register): Added support for regname
1871 function. The function is called if the array regnames is NULL.
1872 (monitor_store_register): Same.
da130f98
AC
1873 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
1874 regnames array.
1c617db8
GS
1875 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
1876 cpu32bug_cmds.regname to point to new function.
1877 * abug-rom.c (abug_regname): Same as above.
1878 (init_abug_cmds): Same.
1879 * dbug-rom.c (dbug_regname): Same as above.
1880 (init_dbug_cmds): Same.
1881 * remote-est.c (est_regname): Same.
1882 (init_est_cmds): Same.
1883 * rom68k-rom.c (rom68k_regname): Same.
1884 (init_rom68k_cmds): Same.
1885
ea9365bb
TT
18862002-06-25 Tom Tromey <tromey@redhat.com>
1887
1888 * breakpoint.c (delete_command): Don't repeat `delete' commands.
1889
72cec141
AC
18902002-06-25 Andrew Cagney <cagney@redhat.com>
1891
1892 * infrun.c (stop_registers): Change variable's type to ``struct
1893 regcache'''.
1894 (xmalloc_inferior_status): Delete function.
1895 (free_inferior_status): Delete function.
1896 (normal_stop): Use regcache_cpy.
1897 (struct inferior_status): Change type of fields ``stop_registers''
1898 and ``registers'' to ``struct regcache''.
1899 (write_inferior_status_register): Use regcache_write.
1900 (save_inferior_status): Instead of calling
1901 xmalloc_inferior_status, allocate the inf_status buffer directly.
1902 Use regcache_dup_no_passthrough and regcache_dup to save the
1903 buffers.
1904 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
1905 Replace the stop_registers regcache instead of overriding it. Use
1906 regcache_xfree. Instead of calling free_inferior_status, xfree
1907 the buffer directly.
1908 (discard_inferior_status): Use regcache_xfree. Instead of calling
1909 free_inferior_status, xfree the buffer directly.
1910 (build_infrun): Use regcache_xmalloc.
1911 (_initialize_infrun): Delete redundant call to build_infrun.
1912
1913 * Makefile.in (infcmd.o): Add $(regcache_h).
1914
1915 * infcmd.c: Include "regcache.h".
1916 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
1917 obtain the address of `stop_registers' register buffer.
1918 (print_return_value): Ditto.
1919
1920 * inferior.h (struct regcache): Add opaque declaration.
1921 (stop_registers): Change variable's declared type to ``struct
1922 regcache''.
1923
defc6f8c
TT
19242002-06-24 Tom Tromey <tromey@redhat.com>
1925
c0e624e7
TT
1926 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
1927 * target.c (initialize_targets): Fixed typo in
1928 trust-readonly-sections `show' documentation.
1929
defc6f8c
TT
1930 * main.c: Marked all strings with _().
1931
2b236d82
DH
19322002-06-24 Don Howard <dhoward@redhat.com>
1933
1934 * memattr.c (create_mem_region): Treat hi == 0 as a special case
1935 that means max CORE_ADDR+1.
1936 (lookup_mem_region): Ditto.
1937 (mem_info_command): Ditto.
1938
942dc0e9
GS
19392002-06-24 Grace Sainsbury <graces@redhat.com>
1940
1941 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
1942 (REGISTER_BYTES_OK): Remove.
1943 (REGISTER_BYTES): Remove.
1944 (STORE_STRUCT_RETURN): Remove.
1945 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
1946 (STORE_RETURN_VALUE): Remove.
1947 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
1948 (FRAME_CHAIN): Remove.
1949 (FRAMELESS_FUNCTION_INVOCATION): Remove.
1950 (FRAME_SAVED_PC): Remove.
1951 * m68k-tdep.c (m68k_register_bytes_ok):Add.
1952 (m68k_store_struct_return): Add.
1953 (m68k_deprecated_extract_return_value): Add.
1954 (m68k_deprecated_extract_struct_value_address): Add.
1955 (m68k_store_return_value): Add.
1956 (m68k_frame_chain): Add.
1957 (m68k_frameless_function_invocation): Add.
1958 (m68k_frame_saved_pc): Add.
1959 (m68k_gdbarch_init): added set_gdbarch calls for new
1960 functions and deleted macros.
1961
03c30d4d
TT
19622002-06-23 Tom Tromey <tromey@redhat.com>
1963
1964 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
1965 (ALLDEPFILES): Likewise.
1966 (udiheaders): Removed.
1967 (udip2soc.o): Likewise.
1968 (udi2go32.o): Likewise.
1969 (udr.o): Likewise.
1970 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
1971
37e71372
AC
19722002-06-22 Andrew Cagney <ac131313@redhat.com>
1973
06a6ac57
AC
1974 * infrun.c (_initialize_infrun): Delete unnecessary call to
1975 build_infrun.
1976
37e71372
AC
1977 * regcache.h: Update comments describing the regcache_cpy family
1978 of functions.
1979 (regcache_save, regcache_restore): Delete declaration.
1980 (regcache_save_no_passthrough): Delete declaration.
1981 (regcache_restore_no_passthrough): Delete declaration.
1982 * regcache.c (regcache_save): Delete function.
1983 (regcache_save_no_passthrough): Delete function.
1984 (regcache_restore): Delete function.
1985 (regcache_restore_no_passthrough): Delete function.
1986
78f6d055
AC
19872002-06-21 Andrew Cagney <ac131313@redhat.com>
1988
1989 * config/m68k/tm-m68k.h: Fix typo.
1990 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
1991 (m68k_frame_init_saved_regs): Declare.
1992
78b119cb
JB
19932002-06-21 Jim Blandy <jimb@redhat.com>
1994
1995 Remove some vestiges of Harris 88k support.
1996 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
1997 register numbering quirk.
1998 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
1999 odd symbols occurring in Harris 88k ELF targets.
2000
0fbb3da7
TT
20012002-06-21 Tom Tromey <tromey@redhat.com>
2002
2003 * gdb_locale.h: New file.
2004 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2005 (defs_h): Added gdb_locale.h.
2006 * configure, config.in: Rebuilt.
2007 * configure.in (PACKAGE): Define.
2008 * defs.h: Include gdb_locale.h.
2009 * main.c (captured_main): Call setlocale, bindtextdomain,
2010 textdomain.
2011
456f8b9d
DB
20122002-06-21 Dave Brolley <brolley@redhat.com>
2013
2014 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2015 * config/frv/frv.mt: New file.
2016 * config/frv/tm-frv.h: New file.
2017 * configure.tgt: Support frv-*-*.
2018 * Makefile.in (frv-tdep.o): New target.
2019 * frv-tdep.c: New file.
2020 * NEWS: Mention frv.
2021
cdd463f9
DB
20222002-06-21 Dave Brolley <brolley@redhat.com>
2023
2024 * MAINTAINERS: Add self to "Write After Approval" list.
2025
5d3ed2e3
GS
20262002-06-21 Grace Sainsbury <graces@redhat.com>
2027
2028 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
2029 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2030 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
2031 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
2032 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
2033
2034 * m68k-tdep.c: Include arch-utils.h
2035 (m68k_register_raw_size): Add.
2036 (m68k_register_virtual_size): Add.
2037 (m68k_register_virtual_type): Add.
2038 (m68k_register_name): Add.
2039 (m68k_stack_align): Add.
2040 (m68k_register_byte): Add.
2041 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
2042 tm-m68k.h.
2043
7f8e7424
GS
20442002-06-21 Grace Sainsbury <graces@redhat.com>
2045
a2c6a6d5 2046 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
2047 m68k_find_saved_regs.
2048 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 2049 references to it with frame->saved_regs.
7f8e7424
GS
2050 (m68k_gdbarch_init): Added function calls to initialize the
2051 gdbarch structure.
a2c6a6d5
GS
2052 (m68k_fix_call_dummy): Add.
2053 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
2054 (CALL_DUMMY): Remove.
2055 (CALL_DUMMY_LENGTH): Remove.
2056 (CALL_DUMMY_START_OFFSET): Remove.
2057 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2058 (FIX_CALL_DUMMY): Remove.
2059 (PUSH_DUMMY_FRAME): Remove.
2060 (POP_FRAME): Remove.
7f8e7424 2061
f461f5cf
PM
20622002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
2063
2064 * parse.c (parse_fprintf): New function used to avoid calls to
2065 fprintf in bison parser generated debug code.
2066 * parser-defs.h: Declaration of new parse_fprintf function.
2067 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
2068 Set YYDEBUG to 1 by default.
2069 Set YYFPRINTF as parse_fprintf.
2070
7f0c12ed
ML
20712002-06-21 Michal Ludvig <mludvig@suse.cz>
2072
2073 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
2074 encoding anymore.
2075 (pointer_encoding, enum ptr_encoding): New.
2076 (execute_cfa_program): Take care about pointer encoding.
2077 (dwarf2_build_frame_info): Only call parse_frame_info for
2078 .debug_frame and .eh_frame.
2079 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
2080 fixed augmentation handling, added relative addressing,
2081 ignore duplicate FDEs. Added comments.
19d833a2 2082 * dwarf2cfi.c: Reindented.
7f0c12ed 2083
87c4a039
EZ
20842002-06-20 Elena Zannoni <ezannoni@redhat.com>
2085
2086 * event-top.c (command_handler): Don't use space_at_cmd_start
2087 unless there is sbrk() on the host. Assign time and space data
2088 to union fields of the appropriate length.
2089
1cf877ad
ML
20902002-06-20 Michal Ludvig <mludvig@suse.cz>
2091
2092 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
2093 x86_64_register_name. Return type changed to 'const char *'.
2094 (x86_64_register_name2nr): Rename to x86_64_register_number.
2095 (x86_64_gdbarch_init): Update to reflect the change.
2096 * x86-64-tdep.h: Ditto.
2097 * x86-64-linux-nat.c (x86_64_fxsave_offset)
2098 (supply_fpregset): Ditto.
2099
3fadccb3
AC
21002002-06-19 Andrew Cagney <cagney@redhat.com>
2101
2102 * regcache.h: Update copyright.
2103 (struct regcache, struct gdbarch): Add opaque declarations.
2104 (current_regcache): Declare global variable.
2105 (regcache_read, regcache_write): Add gdbarch parameter.
2106 (regcache_save, regcache_save_no_passthrough)
2107 (regcache_restore, regcache_restore_no_passthrough)
2108 (regcache_dup, regcache_dup_no_passthrough)
2109 (regcache_cpy, regcache_cpy_no_passthrough)
2110 (deprecated_grub_regcache_for_registers)
2111 (deprecated_grub_regcache_for_register_valid)
2112 (regcache_valid_p): Add function declarations.
2113
2114 * regcache.c: Update copyright.
2115 (regcache_descr_handle): New global variable.
2116 (struct regcache_descr): Define.
2117 (init_legacy_regcache_descr, init_regcache_descr): New functions.
2118 (regcache_descr, xfree_regcache_descr): New functions.
2119 (struct regcache): Define.
2120 (regcache_xmalloc, regcache_xfree): New functions.
2121 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
2122 (regcache_dup, regcache_dup_no_passthrough): New functions.
2123 (regcache_valid_p, regcache_read_as_address): New functions.
2124 (deprecated_grub_regcache_for_registers): New function.
2125 (deprecated_grub_regcache_for_register_valid): New function.
2126 (current_regcache): New global variable.
2127 (register_buffer): Add regcache parameter. Update calls.
2128 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
2129 (read_register_gen, write_register_gen): Update register_buffer
2130 call. Test for legacy_p instead of gdbarch_register_read_p or
2131 gdbarch_register_write_p.
2132 (regcache_collect): Update register_buffer call.
2133 (build_regcache): Rewrite. Use deprecated grub functions.
2134 (regcache_save, regcache_save_no_passthrough): New functions.
2135 (regcache_restore, regcache_restore_no_passthrough): New
2136 functions.
2137 (_initialize_regcache): Create the regcache_data_handle. Swap
2138 current_regcache global variable.
2139
2140 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
2141 parameter to regcache_read and regcache_write calls.
2142 (sh4_register_read): Ditto.
2143 (sh64_pseudo_register_read): Ditto.
2144 (sh64_register_read): Ditto.
2145 (sh_pseudo_register_write): Ditto.
2146 (sh4_register_write): Ditto.
2147 (sh64_pseudo_register_write): Ditto.
2148 (sh64_register_write): Ditto.
2149
2150 * defs.h (XCALLOC): Define.
2151
152d9db6
GS
21522002-06-19 Grace Sainsbury <graces@redhat.com>
2153
2154 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
2155 * m68k-tdep.c (m68k_gdbarch_init): Added.
2156 (m68k_dump_tdep): Added.
2157
170911c7
DJ
21582002-06-19 Daniel Jacobowitz <drow@mvista.com>
2159
2160 * ada-lang.c (fill_in_ada_prototype): Update comment.
2161
2e4ebe70
DJ
21622002-06-19 Daniel Jacobowitz <drow@mvista.com>
2163
2164 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
2165 MIPS_ABI_LAST.
2166 (mips_abi_string, mips_abi_strings): New.
2167 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
2168 (mips_gdbarch_init): Set tdep->found_abi. Don't set
2169 tdep->mips_abi_string. Honor mips_abi_string. Default to
2170 O32 if no ABI is found.
2171 (mips_dump_tdep): Use mips_abi_strings.
2172 (mips_abi_update): New function.
2173 (_initialize_mips_tdep): Initialize mips_abi_string. Add
2174 ``set mips abi'' and ``show mips abi''. Check the size of
2175 mips_abi_strings.
2176
16775908
AC
21772002-06-19 Andrew Cagney <cagney@redhat.com>
2178
2179 * i386-linux-tdep.c (i386_linux_register_name): Make return type
2180 constant.
2181
5051bfa4 21822002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 2183
5051bfa4
JB
2184 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
2185 current frame using only the first stack size adjustment. All
2186 subsequent size adjustments are not considered to be part of
2187 the "static" part of the current frame.
2188 Compute the address of the saved registers relative to the
2189 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
2190 in use in this frame.
2191
56468235
DH
21922002-06-18 Don Howard <dhoward@redhat.com>
2193
2194 * valops.c (value_ind): Use value_at_lazy() when dereferencing
2195 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
2196 suggesting this solution.
2197
0b624158
AC
21982002-06-18 Andrew Cagney <ac131313@redhat.com>
2199
2200 * config/romp/xm-rtbsd.h: Delete file.
2201 * config/romp/rtbsd.mh: Delete file.
2202
221ea385
KS
22032002-06-18 Keith Seitz <keiths@redhat.com>
2204
2205 * breakpoint.c (condition_command): Post breakpoint_modify
2206 when a condition is added to an existing breakpoint.
2207 (commands_command): Likewise for commands.
2208 (set_ignore_count): Likewise for ignore counts.
2209 If no tty, do not simply return, still need to send event
2210 notification.
2211 (ignore_command): Only print a newline if the command came
2212 from a tty.
2213 Don't call breakpoints_changed, since this is now properly
2214 handled by set_ignore_count.
2215
5402eed1
AC
22162002-06-18 Andrew Cagney <cagney@redhat.com>
2217
2218 * MAINTAINERS: Note that cris-elf target can be compiled with
2219 -Werror.
2220 * cris-tdep.c (cris_register_name): Make return type constant.
2221 (cris_breakpoint_from_pc): Ditto.
2222
cc22880b
ML
22232002-06-18 Michal Ludvig <mludvig@suse.cz>
2224
2225 * frame.h (struct frame_info): Change type of context to
2226 'struct context'.
2227
fa88f677
AC
22282002-06-17 Andrew Cagney <cagney@redhat.com>
2229
2230 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
2231 pointer.
2232 * gdbarch.h, gdbarch.c: Regenerate.
2233 * config/mips/tm-mips.h (mips_register_name): Update.
2234 * i386-tdep.h (i386_register_name): Update.
2235 * mips-tdep.c (mips_register_name): Update
2236 * alpha-tdep.c (alpha_register_name): Update.
2237 * arch-utils.c (legacy_register_name): Update.
2238 * arch-utils.h (legacy_register_name): Update.
2239 * avr-tdep.c (avr_register_name): Update.
2240 * ia64-tdep.c (ia64_register_name): Update.
2241 * i386-tdep.c (i386_register_name): Update.
2242 * sparc-tdep.c (sparc32_register_name): Update.
2243 (sparc64_register_name): Update.
2244 (sparclite_register_name): Update.
2245 (sparclet_register_name): Update.
2246 * sh-tdep.c (sh_generic_register_name): Update.
2247 (sh_sh_register_name): Update.
2248 (sh_sh3_register_name): Update.
2249 (sh_sh3e_register_name): Update.
2250 (sh_sh_dsp_register_name): Update.
2251 (sh_sh3_dsp_register_name): Update.
2252 (sh_sh4_register_name): Update.
2253 (sh_sh64_register_name): Update.
2254 * s390-tdep.c (s390_register_name): Update.
2255 * rs6000-tdep.c (rs6000_register_name): Update.
2256 * ns32k-tdep.c (ns32k_register_name_32082): Update.
2257 (ns32k_register_name_32382): Update.
2258 * d10v-tdep.c (d10v_ts2_register_name): Update.
2259 (d10v_ts3_register_name): Update.
2260 * xstormy16-tdep.c (xstormy16_register_name): Update.
2261 * vax-tdep.c (vax_register_name): Update.
2262 * v850-tdep.c (v850_register_name): Update.
2263 * m68hc11-tdep.c (m68hc11_register_name): Update.
2264 * mn10300-tdep.c (mn10300_generic_register_name): Update.
2265 (am33_register_name): Update.
2266
ea1e7ef6
GS
22672002-06-17 Grace Sainsbury <graces@redhat.com>
2268
2269 * m68k-tdep.c: Reindented.
2270
9b02dd1b
AC
22712002-06-17 Andrew Cagney <ac131313@redhat.com>
2272
2273 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
2274 list of predefined types.
2275
8758dec1
MK
22762002-06-16 Mark Kettenis <kettenis@gnu.org>
2277
b6197528
MK
2278 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
2279 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
2280 REGISTER_CONVERT_TO_RAW): Remove defines.
2281 (i386_register_virtual_type, i386_register_convertible,
2282 i386_register_convert_to_virtual, i386_register_convert_to_raw):
2283 Remove prototypes.
2284 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2285 macros mentioned above.
2286
82b47e62
MK
2287 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
2288 (i386lynx_saved_pc_after_call): Remove prototype.
2289 * i386ly-tdep.c: Include "i386-tdep.h".
2290 (i386lynx_saved_pc_after_call): Make static. Use
2291 read_memory_nobpt instead of read_memory. Use
2292 read_memory_unsigned_integer instead of read_memory_integer.
2293 (i386lynx_init_abi): New function.
2294 (i386lynx_coff_osabi_sniffer): New function.
2295 (_initialize_i386bsd_tdep): New function.
2296
8758dec1
MK
2297 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
2298 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
2299 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
2300 (i386_fix_call_dummy): Remove prototype.
2301 * i386-tdep.c (i386_call_dummy_words): New variable.
2302 (i386_gdbarch_init): Adjust for removal of the
2303 macros mentioned above.
2304
e9e68a56
AC
23052002-06-15 Andrew Cagney <ac131313@redhat.com>
2306
2307 * command.h (add_setshow_auto_boolean_cmd): Replace
2308 add_set_auto_boolean_cmd.
2309 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
2310 add_set_auto_boolean_cmd.
2311 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
2312 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
2313 mask-address'' command.
2314 (show_mask_address): Add cmd parameter.
2315 * remote.c (add_packet_config_cmd): Update. Change type of
2316 set_func and show_func to cmd_sfunc_ftype.
2317 (_initialize_remote): Update `set remote Z-packet'
2318 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
2319 (show_remote_protocol_e_packet_cmd): Ditto.
2320 (show_remote_protocol_E_packet_cmd): Ditto.
2321 (show_remote_protocol_P_packet_cmd): Ditto.
2322 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
2323 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
2324 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
2325 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
2326 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
2327 (show_remote_protocol_Z_packet_cmd): Ditto.
2328 (show_remote_protocol_binary_download_cmd): Ditto.
2329 (show_remote_cmd): Pass NULL to all of above.
2330
fc08ec52
MK
23312002-06-15 Mark Kettenis <kettenis@gnu.org>
2332
2333 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
2334 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
2335 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
2336 POP_FRAME): Remove defines.
2337 (i386_push_arguments, i386_store_struct_return,
2338 i386_extract_return_value, i386_store_return_value,
2339 i386_extract_struct_value_address, i386_push_dummy_frame,
2340 i386_pop_frame): Renove prototypes.
2341 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2342 macros mentioned above.
2343
e707bbc2
AC
23442002-06-15 Andrew Cagney <ac131313@redhat.com>
2345
2346 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
2347 add_set_boolean_cmd.
2348 (add_setshow_cmd): New function.
2349 * command.h (add_setshow_boolean_cmd): Replace
2350 add_set_boolean_cmd.
2351 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
2352 and ``set rdiromatzero''.
2353 * maint.c (_initialize_maint_cmds): Update commented out code.
2354 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
2355 * target.c (initialize_targets): Update `set
2356 trust-readonly-sections'.
2357 * remote.c (_initialize_remote): Update `set remotebreak'.
2358
42fdc8df
MK
23592002-06-15 Mark Kettenis <kettenis@gnu.org>
2360
93924b6b
MK
2361 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
2362 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
2363 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
2364 fit into multi-arch framework.
2365 (i386_breakpoint_from_pc): New function.
2366 (i386_gdbarch_init): Adjust for removal of the macros mentioned
2367 above.
2368
42fdc8df
MK
2369 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
2370 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
2371 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
2372 (i386_frameless_function_invocation, i386_frame_num_args,
2373 i386_frame_init_saved_regs): Remove prototypes.
2374 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2375 macros mentioned above.
2376
9773a94b
AC
23772002-06-15 Andrew Cagney <ac131313@redhat.com>
2378
2379 * cli/cli-decode.c (set_cmd_cfunc): Update.
2380 (set_cmd_sfunc): Update.
2381 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
2382 (set_cmd_sfunc, set_cmd_cfunc): Update.
2383 * cli/cli-decode.h: Update.
2384
6e157172
MK
23852002-06-15 Mark Kettenis <kettenis@gnu.org>
2386
2387 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
2388 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
2389
7f19b9a2
AC
23902002-06-15 Andrew Cagney <ac131313@redhat.com>
2391
2392 * defs.h (auto_boolean): Declare enum.
2393 * command.h (cmd_auto_boolean): Delete enum.
2394 * mips-tdep.c (mask_address_var): Update.
2395 (mips_mask_address_p): Update.
2396 (show_mask_address): Update.
2397 * remote.c (struct packet_config): Update.
2398 (update_packet_config): Update.
2399 (show_packet_config_cmd): Update.
2400 (packet_ok): Update.
2401 (add_packet_config_cmd): Update.
2402 (_initialize_remote):
2403 * command.h: Update.
2404 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
2405 (do_setshow_command): Update.
2406 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
2407 * cli/cli-decode.h: Update.
2408
1cf88de5
MK
24092002-06-15 Mark Kettenis <kettenis@gnu.org>
2410
22ba8cf2
MK
2411 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
2412 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
2413 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
2414 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
2415 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
2416 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
2417
762c5349
MK
2418 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
2419 list of DJGPP COFF targets.
2420
091198bb
MK
2421 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
2422 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
2423 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
2424 (FP0_REGNUM): Remove define.
2425 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
2426 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
2427 (i386_register_virtual_size): Remove protoype.
2428 * i386-tdep.c (i386_register_virtual_size): Removed.
2429 (i386_extract_return_value, i386_store_return_value): Use
2430 FP0_REGNUM instead of NUM_FREGS to determine whether the
2431 floating-point registers are available.
2432 (i386_gdbarch_init): Tweak FIXME about FPU registers.
2433 Adjust for removal of macros mentioned above.
2434
24352002-06-15 Mark Kettenis <kettenis@gnu.org>
2436
fcc9bf01
MK
2437 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
2438 comments.
2439 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
2440 Remove prototypes.
2441 (supply_gregset, fill_gregset): Remove use of register keyword and
2442 remove declaration for regmap. Use I386_NUM_GREGS instead of
2443 NUM_REGS and NUM_FREGS.
2444 (FPREGSET_FSAVE_OFFSET): Remove.
2445 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
2446 NUM_FREGS to determine whether the floating-point registers are
2447 available.
2448
65e78234
MK
2449 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
2450 gnu_store_registers): Replace usage of NUM_GREGS with
2451 I386_NUM_GREGS.
2452
98df6387
MK
2453 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
2454 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
2455 usage of NUM_GREGS with I386_NUM_GREGS.
2456
099a9414
MK
2457 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
2458
57976e88
MK
2459 * i386bsd-nat.c: Include "i386-tdep.h".
2460 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
2461 I386_NUM_GREGS.
2462
b335f4a6
MK
2463 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
2464 and associated comment. They no longer make any sense, since we
2465 don't use this file anymore on Linux.
2466
1cf88de5
MK
2467 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
2468 * i386-tdep.c (i386_register_offset, i386_register_size): Use
2469 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
2470 elements in these arrays.
2471 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
2472 MAX_NUM_REGS.
2473
daa66587
MK
24742002-06-15 Mark Kettenis <kettenis@gnu.org>
2475
2476 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
2477 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
2478
26e9b323
AC
24792002-06-14 Andrew Cagney <cagney@redhat.com>
2480
2481 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
2482 EXTRACT_RETURN_VALUE.
2483 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
2484 EXTRACT_STRUCT_VALUE_ADDRESS.
2485 * gdbarch.h, gdbarch.c: Regenerate.
2486
2487 * values.c (value_being_returned): Handle
2488 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2489 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
2490
2491 * arm-linux-tdep.c (arm_linux_init_abi): Update.
2492 * arm-tdep.c (arm_gdbarch_init): Update.
2493 * avr-tdep.c (avr_gdbarch_init): Update.
2494 * cris-tdep.c (cris_gdbarch_init): Update.
2495 * d10v-tdep.c (d10v_gdbarch_init): Update.
2496 * ia64-tdep.c (ia64_gdbarch_init): Update.
2497 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2498 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2499 * s390-tdep.c (s390_gdbarch_init): Update.
2500 * sh-tdep.c (sh_gdbarch_init): Update.
2501 * s390-tdep.c (s390_gdbarch_init): Update.
2502 * sparc-tdep.c (sparc_gdbarch_init): Update.
2503 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2504 * v850-tdep.c (v850_gdbarch_init): Update.
2505 * vax-tdep.c (vax_gdbarch_init): Update.
2506 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2507 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2508
2509 * config/arc/tm-arc.h: Update.
2510 * config/d30v/tm-d30v.h: Update.
2511 * config/fr30/tm-fr30.h: Update.
2512 * config/h8300/tm-h8300.h: Update.
2513 * config/h8500/tm-h8500.h: Update.
2514 * config/i386/tm-i386.h: Update.
2515 * config/i386/tm-ptx.h: Update.
2516 * config/i386/tm-symmetry.h: Update.
2517 * config/i960/tm-i960.h: Update.
2518 * config/m32r/tm-m32r.h: Update.
2519 * config/m68k/tm-delta68.h: Update.
2520 * config/m68k/tm-linux.h: Update.
2521 * config/m68k/tm-m68k.h: Update.
2522 * config/m88k/tm-m88k.h: Update.
2523 * config/mcore/tm-mcore.h: Update.
2524 * config/mips/tm-mips.h: Update.
2525 * config/mn10200/tm-mn10200.h: Update.
2526 * config/pa/tm-hppa.h: Update.
2527 * config/pa/tm-hppa64.h: Update.
2528 * config/sparc/tm-sp64.h: Update.
2529 * config/sparc/tm-sparc.h: Update.
2530 * config/sparc/tm-sparclet.h: Update.
2531 * config/z8k/tm-z8k.h: Update.
2532
5179e78f
AC
25332002-06-14 Andrew Cagney <cagney@redhat.com>
2534
2535 * Makefile.in (i386_linux_tdep_h): Define.
2536 (i386_tdep_h, i387_tdep_h): Define.
2537 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
2538 $(i386_tdep_h) and $(i387_tdep_h).
2539 * i386-linux-nat.c: Include "i386-linux-tdep.h".
2540
8201327c
MK
25412002-06-14 Mark Kettenis <kettenis@gnu.org>
2542
edf393ac
MK
2543 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
2544 Already covered by the default.
2545
896fb97d
MK
2546 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
2547 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
2548 (i386_gdbarch_init): Initialize long_double_format and long_double
2549 bit.
2550
8201327c
MK
2551 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
2552 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
2553 Move these to ...
2554 * config/i386/i386sol2.mh: ... here.
2555 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
2556 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
2557 (SIGCONTEXT_PC_OFFSET): Remove define.
2558 (IN_SIGTRAMP): Remove define.
2559 * i386-sol2-tdep.c: New file.
2560
2561 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
2562 * config/i386/tm-i386nw.h: Removed.
2563
2564 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
2565 USE_STRUCT_CONVENTION): Remove defines.
2566 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
2567 (get_longjmp_target): Remove prototype.
2568 (IN_SIGTRAMP): Remove define.
2569 (i386bsd_in_sigtramp): Remove prototype.
2570 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
2571 function. Update comment accordingly
2572 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
2573 (FRAME_SAVED_PC): Remove define.
2574 (i386bsd_frame_saved_pc): Remove prototype.
2575 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
2576 GET_LONGJMP_TARGET): Remove defines.
2577 (get_longjmp_target): Remove prototype.
2578 (IN_SIGTRAMP): Remove define.
2579 (i386bsd_in_sigtramp): Remove prototype.
2580 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
2581 function. Update comment accordingly
2582 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
2583 (FRAME_SAVED_PC): Remove define.
2584 (i386bsd_frame_saved_pc): Remove prototype.
2585 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
2586 Remove prototype.
2587 (USE_STRUCT_CONVENTION): Remove prototype.
2588 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
2589 declaration.
2590 (_initialize_i386bsd_nat): Revise logic to determine some
2591 constants at compile time when compiling a native GDB. Warn if
2592 things don't match up with what we expect.
2593 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
2594 Remove variables.
2595 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
2596 to use date stored in `struct gdbarch_tdep'.
2597 (i386bsd_sigcontext_offset): Remove varaible.
2598 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
2599 stored in `struct gdbarch_tdep'.
2600 (i386bsd_frame_saved_pc): Make static.
2601 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
2602 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
2603 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2604 i386fbsd4_sc_pc_offset): New variables.
2605 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
2606 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
2607 functions.
2608 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
2609 functions.
2610 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
2611 Modify the value of i386fbsd_sigtramp_start and
2612 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
2613 i386fbsd_sigtramp_end.
2614 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
2615 function.
2616
2617 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
2618 define to i386-linux-tdep.h.
2619 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
2620 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
2621 defines.
2622 (i386_linux_register_name, i386_linux_register_byte,
2623 i386_linux_register_raw_size): Remove prototypes.
2624 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
2625 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
2626 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
2627 TARGET_WRITE_PC): Remove defines.
2628 (i386_linux_in_sigtramp, i386_linux_frame_chain,
2629 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
2630 i386_linux_write_pc): Remove prototypes.
2631 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
2632 (get_longjmp_target): Remove prototype.
2633 * i386-linux-tdep.h: New file.
2634 * i386-linux-nat.c: Include "i386-linux-tdep.h".
2635 * i386-linux-tdep.c: Include "i386-tdep.h" and
2636 "i386-linux-tdep.h".
2637 (i386_linux_register_name, i386_linux_register_byte,
2638 i386_linux_register_raw_size, i386_linux_in_sigtramp,
2639 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
2640 Make static.
2641 (i386_linux_init_abi): New function.
2642 (_initialize_i386_linux_tdep): New function.
2643
2644 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
2645 (i386_saved_pc_after_call): Remove prototype.
2646 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
2647 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
2648 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
2649 (i386_register_name, i386_stab_reg_to_regnum,
2650 i386_dwarf_reg_to_regnum): Remove prototypes.
2651 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
2652 SIZEOF_SSE_REGS): Remove defines.
2653 (REGISTER_BYTES): Remove define.
2654 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
2655 (i386_register_byte, i386_register_raw_size): Remove prototypes.
2656 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
2657 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
2658 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
2659 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
2660 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
2661 (get_longjmp_target): Remove prototype.
2662 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
2663 (sigtramp_saved_pc): Remove define.
2664 (i386v4_sigtramp_saved_pc): Remove prototype.
2665 * config/i386/tm-go32.h (FRAME_CHAIN,
2666 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
2667 (i386go32_frame_saved_pc): Remove prototype.
2668 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
2669 (get_longjmp_target): Remove prototype.
2670 * i386-tdep.h: Include "osabi.h".
2671 (enum i386_abi): Removed.
2672 (enum struct_return): New enum.
2673 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
2674 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
2675 sc_pc_offset members.
2676 (i386_gdbarch_register_os_abi): Remove prototype.
2677 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
2678 I386_SSE_NUM_REGS): New defines.
2679 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
2680 I386_SSE_SIZEOF_REGS): New defines.
2681 (i386_register_name, i386_register_byte, i386_register_raw_size):
2682 New prototypes.
2683 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
2684 (i386bsd_sigtramp_saved_pc): New prototype.
2685 * i386-tdep.c: Don't include "elf-bfd.h".
2686 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
2687 i386_frame_chain, i386_saved_pc_after_call): Make static.
2688 (i386_frame_saved_pc): Rewrite to call architecture dependent
2689 function to deal with signal handlers. Make static.
2690 (i386go32_frame_saved_pc): Removed.
2691 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
2692 Removed.
2693 (i386_get_longjmp_target): New function.
2694 (default_struct_convention, pcc_struct_convention,
2695 reg_struct_convention, valid_conventions, struct_convention): New
2696 variables.
2697 (i386_use_struct_convention): New function.
2698 (i386v4_sigtramp_saved_pc): Renamed to
2699 i386_svr4_sigtramp_saved_pc. Made static. Moved.
2700 (i386_pc_in_sigtramp): New function.
2701 (i386_abi_names): Removed.
2702 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
2703 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
2704 Removed.
2705 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
2706 i386_gdbarch_register_os_abi): Removed.
2707 (struct i386_abi_handler): Removed.
2708 (i386_abi_handler_list): Removed.
2709 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
2710 functions.
2711 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
2712 i386_nw_init_abi): New functions.
2713 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
2714 Use set_gdbarch_xxx() calls instead of relying on macros for a
2715 number of calls.
2716 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
2717 (_initialize_i386_tdep): Add new 'struct-convcention' command.
2718 Register the various architecture variants defined in this file.
2719
ad2f7632
DJ
27202002-06-14 Daniel Jacobowitz <drow@mvista.com>
2721
2722 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
2723 (struct main_type): Remove arg_types member. Update comments for
2724 struct field.
2725 (TYPE_ARG_TYPES): Remove.
2726 (TYPE_FN_FIELD_ARGS): Update.
2727 (smash_to_method_type): Update prototype.
2728
2729 * c-typeprint.c (cp_type_print_method_args): Take method type
2730 instead of argument list. Use new argument layout. Simplify.
2731 (c_type_print_args): Use new argument layout. Simplify.
2732 (c_type_print_base): Update call to cp_type_print_method_args.
2733 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
2734 argument; use die->type instead. Update call to
2735 smash_to_method_type.
2736 (read_structure_scope): Update call to dwarf2_add_member_fn.
2737 * gdbtypes.c (allocate_stub_method): Update comment.
2738 (smash_to_method_type): Take new NARGS and VARARGS arguments.
2739 Use new argument layout.
2740 (check_stub_method): Use new argument layout. Don't count
2741 void as an argument.
2742 (print_arg_types): Update comments. Use new argument layout.
2743 (recursive_dump_type): Don't print arg_types member.
2744 * hpread.c (hpread_read_struct_type): Use new argument layout.
2745 (fixup_class_method_type): Likewise.
2746 (hpread_type_lookup): Likewise.
2747 * stabsread.c (read_type): Update calls to read_args and
2748 smash_to_method_type.
2749 (read_args): Use new argument layout. Simplify.
2750 * valops.c (typecmp): Use new argument layout. Update parameters
2751 and comments. Simplify.
2752 (hand_function_call): Use new argument layout.
2753 (search_struct_method): Update call to typecmp.
2754 (find_overload_match): Use new argument layout.
2755
6da02953
DJ
27562002-06-13 Daniel Jacobowitz <drow@mvista.com>
2757
2758 * NEWS: Mention multithreaded debug support for gdbserver.
2759
519b2366
DJ
27602002-06-13 Daniel Jacobowitz <drow@mvista.com>
2761
2762 * MAINTAINERS: Mention NEWS.
2763
a7f48742
DJ
27642002-06-13 Daniel Jacobowitz <drow@mvista.com>
2765
2766 * gdbserver/regcache.c: Add comment.
2767
6c0d6680
DJ
27682002-06-13 Daniel Jacobowitz <drow@mvista.com>
2769
2770 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
2771 (struct mips_objfile_private, compare_pdr_entries): New.
2772 (non_heuristic_proc_desc): Read the ".pdr" section if it
2773 is present.
2774
6529d2dd
AC
27752002-06-12 Andrew Cagney <ac131313@redhat.com>
2776
2777 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
2778 (arm_debug): New static variable.
2779 (_initialize_arm_tdep): Add ``set debug arm'' command.
2780
26216b98
AC
27812002-06-12 Andrew Cagney <ac131313@redhat.com>
2782
2783 * Makefile.in (sim_arm_h): Define.
2784 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
2785 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
2786 (arm_register_sim_regno): New function, map an internal REGNUM
2787 onto a simulator register number.
2788 (arm_gdbarch_init): Set register_sim_regno.
2789
814b3ba0
AH
27902002-06-09 Aldy Hernandez <aldyh@redhat.com>
2791
2792 * MAINTAINERS: Add self.
2793
475b0867
JB
27942002-06-11 Jim Blandy <jimb@redhat.com>
2795
919d772c
JB
2796 * source.c (source_info): Mention whether the symtab has
2797 information about preprocessor macros.
2798
475b0867
JB
2799 Call the command `info macro', not `show macro'.
2800 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
2801 Fix error message.
2802 (_initialize_macrocmd): Register `info_macro_command' in
2803 `infolist', not `showlist'.
2804
9e364162
DJ
28052002-06-11 Daniel Jacobowitz <drow@mvista.com>
2806
2807 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
2808 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
2809 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
2810 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
2811 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
2812 unconditionally.
2813 (set_mipsfpu_single_command, set_mipsfpu_double_command)
2814 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
2815 (_initialize_mips_tdep): Remove dead code.
2816 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
2817 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
2818 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
2819 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
2820 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
2821 MIPS_LAST_FP_ARG_REGNUM): Remove.
2822
28232002-06-11 Daniel Jacobowitz <drow@mvista.com>
2824
2825 * gdbserver/thread-db.c: New file.
2826 * gdbserver/proc-service.c: New file.
2827 * gdbserver/acinclude.m4: New file.
2828 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
2829 proc-service.o, and thread-db.o.
2830 (linux-low.o): Add USE_THREAD_DB.
2831 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
2832 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
2833 * gdbserver/aclocal.m4: Regenerated.
2834 * gdbserver/config.in: Regenerated.
2835 * gdbserver/configure: Regenerated.
2836 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
2837 thread_db.h, and linux/elf.h headrs.
2838 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
2839 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
2840 Check for -lthread_db and thread support.
2841 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
2842 PowerPC, and SuperH.
2843 * gdbserver/i387-fp.c: Constify arguments.
2844 * gdbserver/i387-fp.h: Likewise.
2845 * gdbserver/inferiors.c: (struct thread_info): Renamed from
2846 `struct inferior_info'. Remove PID member. Use generic inferior
2847 list header. All uses updated.
2848 (inferiors, signal_pid): Removed.
2849 (all_threads): New variable.
2850 (get_thread): Define.
2851 (add_inferior_to_list): New function.
2852 (for_each_inferior): New function.
2853 (change_inferior_id): New function.
2854 (add_inferior): Removed.
2855 (remove_inferior): New function.
2856 (add_thread): New function.
2857 (free_one_thread): New function.
2858 (remove_thread): New function.
2859 (clear_inferiors): Use for_each_inferior and free_one_thread.
2860 (find_inferior): New function.
2861 (find_inferior_id): New function.
2862 (inferior_target_data): Update argument type.
2863 (set_inferior_target_data): Likewise.
2864 (inferior_regcache_data): Likewise.
2865 (set_inferior_regcache_data): Likewise.
2866 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
2867 (all_processes, stopping_threads, using_thrads)
2868 (struct pending_signals, debug_threads, pid_of): New.
2869 (inferior_pid): Replace with macro.
2870 (struct inferior_linux_data): Remove.
2871 (get_stop_pc, add_process): New functions.
2872 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
2873 Use add_process and add_thread.
2874 (linux_attach_lwp): New function, based on old linux_attach. Use
2875 add_process and add_thread. Set stop_expected for new threads.
2876 (linux_attach): New function.
2877 (linux_kill_one_process): New function.
2878 (linux_kill): Kill all LWPs.
2879 (linux_thread_alive): Use find_inferior_id.
2880 (check_removed_breakpoints, status_pending_p): New functions.
2881 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
2882 Update. Use WNOHANG. Wait for cloned processes also. Update process
2883 struct for the found process.
2884 (linux_wait_for_event): New function.
2885 (linux_wait): Use it. Support LWPs.
2886 (send_sigstop, wait_for_sigstop, stop_all_processes)
2887 (linux_resume_one_process, linux_continue_one_process): New functions.
2888 (linux_resume): Support LWPs.
2889 (REGISTER_RAW_SIZE): Remove.
2890 (fetch_register): Use register_size instead. Call supply_register.
2891 (usr_store_inferior_registers): Likewise. Call collect_register.
2892 Fix recursive case.
2893 (regsets_fetch_inferior_registers): Improve error message.
2894 (regsets_store_inferior_registers): Add debugging.
2895 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
2896 (unstopped_p, linux_signal_pid): New functions.
2897 (linux_target_ops): Add linux_signal_pid.
2898 (linux_init_signals): New function.
2899 (initialize_low): Call it. Initialize using_threads.
2900 * gdbserver/regcache.c (inferior_regcache_data): Add valid
2901 flag.
2902 (get_regcache): Fetch registers lazily. Add fetch argument
2903 and update all callers.
2904 (regcache_invalidate_one, regcache_invalidate): New
2905 functions.
2906 (new_register_cache): Renamed from create_register_cache.
2907 Return the new regcache.
2908 (free_register_cache): Change argument to a void *.
2909 (registers_to_string, registers_from_string): Call get_regcache
2910 with fetch flag set.
2911 (register_data): Make static. Pass fetch flag to get_regcache.
2912 (supply_register): Call get_regcache with fetch flag clear.
2913 (collect_register): Call get_regcache with fetch flag set.
2914 (collect_register_as_string): New function.
2915 * gdbserver/regcache.h: Update.
2916 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
2917 stderr.
2918 Handle input interrupts while waiting for an ACK.
2919 (input_interrupt): Use signal_pid method.
2920 (getpkt): Flush after debug output and use stderr.
2921 (outreg): Use collect_register_as_string.
2922 (new_thread_notify, dead_thread_notify): New functions.
2923 (prepare_resume_reply): Check using_threads. Set thread_from_wait
2924 and general_thread.
2925 (look_up_one_symbol): Flush after debug output.
2926 * gdbserver/server.c (step_thread, server_waiting): New variables.
2927 (start_inferior): Don't use signal_pid. Update call to mywait.
2928 (attach_inferior): Update call to mywait.
2929 (handle_query): Handle qfThreadInfo and qsThreadInfo.
2930 (main): Don't fetch/store registers explicitly. Use
2931 set_desired_inferior. Support proposed ``Hs'' packet. Update
2932 calls to mywait.
2933 * gdbserver/server.h: Update.
2934 (struct inferior_list, struct_inferior_list_entry): New.
2935 * gdbserver/target.c (set_desired_inferior): New.
2936 (write_inferior_memory): Constify.
2937 (mywait): New function.
2938 * gdbserver/target.h: Update.
2939 (struct target_ops): New signal_pid method.
2940 (mywait): Removed macro, added prototype.
2941
2942 * gdbserver/linux-low.h (regset_func): Removed.
2943 (regset_fill_func, regset_store_func): New.
2944 (enum regset_type): New.
2945 (struct regset_info): Add type field. Use new operation types.
2946 (struct linux_target_ops): stop_pc renamed to get_pc.
2947 Add decr_pc_after_break and breakpoint_at.
2948 (get_process, get_thread_proess, get_process_thread)
2949 (strut process_info, all_processes, linux_attach_lwp)
2950 (thread_db_init): New.
2951
2952 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
2953 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
2954 (the_low_target): Add new members.
2955 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
2956 (i386_store_fpxregset): Constify.
2957 (target_regsets): Add new kind identifier.
2958 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
2959 (i386_set_pc): Add debugging.
2960 (i386_breakpoint_at): New function.
2961 (the_low_target): Add new members.
2962 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
2963 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
2964 (mips_breakpoint_at): New.
2965 (the_low_target): Add new members.
2966 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
2967 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
2968 (the_low_target): Add new members.
2969 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
2970 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
2971 (the_low_target): Add new members.
2972 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
2973 identifier.
2974
23aa4c72
ML
29752002-06-11 Michal Ludvig <mludvig@suse.cz>
2976
2977 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
2978 (unwind_tmp_obstack_free, parse_frame_info)
2979 (update_context, cfi_read_fp, cfi_write_fp)
2980 (cfi_frame_chain, cfi_init_extra_frame_info)
2981 (cfi_virtual_frame_pointer): Use the above function.
264d1763 2982 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 2983
70eb15a4
CV
29842002-06-11 Corinna Vinschen <vinschen@redhat.com>
2985
2986 * v850-tdep.c (v850_type_is_scalar): New function.
2987 (v850_use_struct_convention): Match current gcc implementation
2988 as close as possible.
2989 (v850_push_arguments): Fix stack_offset handling. Don't write
2990 struct_addr into register. This is done by v850_store_struct_return.
2991 (v850_extract_return_value): Care for structs.
2992 (v850_store_return_value): Ditto.
2993 (v850_store_struct_return): Actually write address.
2994
482a4d06
ML
29952002-06-11 Michal Ludvig <mludvig@suse.cz>
2996
2997 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
2998 without debug information too.
2999
d855c300
AC
30002002-06-10 Andrew Cagney <ac131313@redhat.com>
3001
3002 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3003 Make multi-arch pure.
3004 * gdbarch.h, gdbarch.c: Re-generate.
3005 * arm-tdep.c (arm_print_float_info): Update.
3006 * arch-utils.h (default_print_float_info): Update.
3007 * arch-utils.c (default_print_float_info): Update.
3008 * infcmd.c (float_info): Update call.
3009
dd12a101
AC
30102002-06-10 Andrew Cagney <ac131313@redhat.com>
3011
3012 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3013 the front of the initialize list.
3014
101dcfbe
AC
30152002-06-10 Andrew Cagney <ac131313@redhat.com>
3016
3017 * infrun.c (struct inferior_status): Replace fields
3018 selected_frame_address and selected_level with field
3019 selected_frame_id.
3020 (save_inferior_status): Update. Use get_frame_id.
3021 (struct restore_selected_frame_args): Delete.
3022 (restore_selected_frame): Update. Use frame_find_by_id.
3023 (restore_inferior_status): Update.
3024
3025 * breakpoint.h (struct breakpoint): Change type of
3026 watchpoint_frame to frame_id.
3027 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3028 call to get_current_frame.
3029 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3030 get_current_frame.
3031 (watchpoint_check): Use frame_find_by_id.
3032
3033 * frame.h (record_selected_frame): Delete declaration.
3034 * stack.c (record_selected_frame): Delete function.
3035
3036 * frame.h (struct frame_id): Define.
3037 (get_frame_id): Declare.
3038 (frame_find_by_id): Declare.
3039 * frame.c (frame_find_by_id): New function.
3040 (get_frame_id): New function.
3041
304270b6
AV
30422002-06-10 Andrey Volkov <avolkov@transas.com>
3043
3044 * ser-e7kpc.c: Fix duplicated define and call of
3045 _initialize_ser_e7000pc
3046
2f2cf184
DJ
30472002-06-09 Daniel Jacobowitz <drow@mvista.com>
3048
3049 * signals/signals.c (target_signal_from_host): Fix #ifdef
3050 SIGRTMIN case.
3051 (do_target_signal_to_host): Likewise.
3052
caaa3122
DJ
30532002-06-09 Daniel Jacobowitz <drow@mvista.com>
3054
3055 * mips-tdep.c (mips_find_abi_section): New function.
3056 (mips_gdbarch_init): Call it.
3057
6ac5df3a
MK
30582002-06-09 Mark Kettenis <kettenis@gnu.org>
3059
3060 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3061 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3062 after Andrew's 2002-06-08 gdbarch change.
3063
82ea117a
MK
30642002-06-09 Mark Kettenis <kettenis@gnu.org>
3065
3066 * i386-linux-nat.c (suppy_gregset): Don't supply
3067 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3068 register cache.
3069 (fill_gregset): Don't fetch it under the same circumstances.
3070
3c25f8c7
AC
30712002-06-09 Andrew Cagney <cagney@redhat.com>
3072
3073 * Makefile.in (callback_h): Define.
3074 (remote_sim_h): Update path to remote-sim.h.
3075 (remote-rdp.o): Add $(callback_h).
3076 (remote-sim.o): Use $(callback_h).
3077 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3078 * remote-rdp.c: Include "gdb/callback.h".
3079
1029b7fa
MK
30802002-06-09 Mark Kettenis <kettenis@gnu.org>
3081
3082 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3083 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3084
616675d3
AC
30852002-06-08 Andrew Cagney <ac131313@redhat.com>
3086
a3efda28
AC
3087 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3088 * rdi-share/serpardr.c: Ditto.
3089 * rdi-share/unixcomm.c: Ditto.
3090 * rdi-share/serdrv.c: Ditto.
3091 * rdi-share/hostchan.h: Ditto.
3092 * rdi-share/hostchan.c: Ditto.
3093 * rdi-share/host.h: Ditto.
3094 * rdi-share/devsw.c: Ditto.
3095
c5f10366
AC
3096 * objfiles.h: Change type of obj_private to void pointer.
3097 * pa64solib.c: Update copyright. Don't include "assert.h", use
3098 strcmp instead of STREQ, use LONGEST, do not use PTR
3099 * somsolib.c: Ditto.
3100
616675d3
AC
3101 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3102 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3103 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3104
e4b415d9
AC
31052002-06-08 Andrew Cagney <ac131313@redhat.com>
3106
3107 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3108 (default_get_saved_register): Delete function.
3109 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3110 generic_unwind_get_saved_register.
3111 * gdbarch.h, gdbarch.c: Re-generate.
3112
ca0d0b52
AC
31132002-06-08 Andrew Cagney <ac131313@redhat.com>
3114
3115 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3116 generic_func_frame_chain_valid.
3117 * gdbarch.h, gdbarch.c: Re-generate.
3118 * blockframe.c (generic_func_frame_chain_valid): Only check
3119 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3120 passing FP to PC_IN_CALL_DUMMY.
3121 Fix PR gdb/360.
3122
76860b5f
AC
31232002-06-08 Andrew Cagney <ac131313@redhat.com>
3124
3125 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3126 (register_gdbarch_data): Initialize init_p.
3127 (gdbarch_data): Initialize data pointer using the init function.
3128 (init_gdbarch_data): Delete function.
3129 (gdbarch_update_p): Update.
3130 (initialize_non_multiarch): Update.
3131 (struct gdbarch): Add field initialized_p.
3132 * gdbarch.h, gdbarch.c: Re-generate.
3133
8dda9770
ML
31342002-06-07 Michal Ludvig <mludvig@suse.cz>
3135
3136 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3137 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3138 better do the things actually here.
3139 * x86-64-tdep.c (x86_64_register_name2nr): New.
3140 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3141 (x86_64_gdbarch_init): Respect the above change.
3142 * x86-64-tdep.h (x86_64_register_name2nr)
3143 (x86_64_register_nr2name): Add prototypes.
3144 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3145
3d79a47c
MS
31462002-06-06 Michael Snyder <msnyder@redhat.com>
3147
7bd91a28
MS
3148 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3149 Delete extra braces and re-indent.
3150 (d10v_store_return_value): Char return values
3d79a47c
MS
3151 must be shifted over by one byte in R0.
3152 (d10v_extract_return_value): Delete extra braces, re-indent.
3153
095a4c96
EZ
31542002-06-06 Elena Zannoni <ezannoni@redhat.com>
3155
3156 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3157 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3158 (d10v_integer_to_address): Rewrite.
3159 (d10v_frame_init_saved_regs): When reading fp and sp registers use
3160 the d10v specific functions which take care of converting to the
3161 correct space.
3162
e8a77ca4
EZ
31632002-06-06 Elena Zannoni <ezannoni@redhat.com>
3164
3165 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3166 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3167
4f2e4a4f
AC
31682002-06-02 Andrew Cagney <ac131313@redhat.com>
3169
3170 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3171 includes.
3172 * config/tm-linux.h: Ditto.
3173 * config/alpha/tm-alphalinux.h: Ditto.
3174 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3175 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3176 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3177 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3178 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3179 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3180 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3181 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
3182 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
3183 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
3184 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
3185 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
3186 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
3187 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
3188 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
3189 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
3190 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
3191 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
3192 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
3193 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
3194 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
3195 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
3196 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
3197 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
3198 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
3199 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
3200 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
3201 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
3202 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
3203 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
3204 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
3205 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
3206 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
3207 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
3208 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
3209 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
3210 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
3211
ae2ab2ce
AS
32122002-05-04 Aidan Skinner <aidan@velvet.net>
3213
3214 * ada-exp.tab.c: New file
3215 * ada-exp.y: New file
3216 * ada-lang.c: New file
3217 * ada-lang.h: New file
3218 * ada-lex.c: New file
3219 * ada-lex.l: New file
3220 * ada-tasks.c: New file
3221 * ada-typeprint.c: New file
3222 * ada-valprint.c: New file
3223
0ddd0135
JT
32242002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3225
3226 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
3227 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
3228
750fbacc
JT
32292002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3230
3231 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
3232 insetead of ppc-linux-tdep.o.
3233 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
3234 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
3235
df94e18a
AC
32362002-06-02 Andrew Cagney <ac131313@redhat.com>
3237
3238 2002-05-07 Christian Groessler <chris@groessler.org>
3239 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
3240 bit register contents for little endian hosts.
3241
1a38ab75
AC
32422002-06-01 Andrew Cagney <ac131313@redhat.com>
3243
3244 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
3245 any maintainer.
3246
8b1632ac
AC
32472002-06-01 Andrew Cagney <ac131313@redhat.com>
3248
3249 * gdbarch.h: Regenerate.
3250
627054c8
AC
32512002-06-01 Andrew Cagney <ac131313@redhat.com>
3252
3253 * MAINTAINERS: Add everyone to write-after-approval list.
3254
4f460812
AC
32552002-06-01 Andrew Cagney <ac131313@redhat.com>
3256
3257 * stack.c (frame_info): Use frame_register_unwind instead of
3258 saved_regs. Mention when the SP is on the stack or in a register.
3259
3260 * frame.h (frame_register_unwind_ftype): Define. Document.
3261 (struct frame_info): Add field register_unwind and
3262 register_unwind_cache.
3263 (frame_register_unwind): Declare.
3264 (generic_unwind_get_saved_register): Declare.
3265
3266 * frame.c (frame_register_unwind): New function.
3267 (generic_unwind_get_saved_register): New function.
3268
3269 * blockframe.c (generic_call_dummy_register_unwind): New function.
3270 (frame_saved_regs_register_unwind): New function.
3271 (set_unwind_by_pc): New function.
3272 (create_new_frame): New function.
3273 (get_prev_frame): New function.
3274
de888f76
AC
32752002-05-30 Andrew Cagney <ac131313@redhat.com>
3276
3277 * a29k-share/: Delete directory.
3278 * remote-vx29k.c: Delete file.
3279
2f2c3626
JT
32802002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3281
3282 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
3283 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3284
9ce5c36a
JT
32852002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3286
3287 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
3288 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3289 (sparc64nbsd-nat.o)
3290 (sparcnbsd-nat.o)
3291 (sparcnbsd-tdep.o): New dependency lists.
3292 * NEWS: Note new UltraSPARC NetBSD native configuration.
3293 * configure.host (sparc64-*-netbsd*): New host.
3294 * configure.tgt (sparc-*-netbsdelf*)
3295 (sparc-*-netbsd*): Set gdb_target to nbsd.
3296 (sparc64-*-netbsd*): New target.
3297 * sparc64nbsd-nat.c: New file.
3298 * sparcnbsd-nat.c: New file.
3299 * sparcnbsd-tdep.c: New file.
3300 * sparcnbsd-tdep.h: New file.
3301 * config/sparc/nbsd.mt: New file.
3302 * config/sparc/nbsd64.mh: New file.
3303 * config/sparc/nbsd64.mt: New file.
3304 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
3305 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3306 (HOST_IPC): Remove.
3307 * config/sparc/nbsdaout.mt: Remove.
3308 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
3309 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3310 (HOST_IPC): Remove.
3311 * config/sparc/nbsdelf.mt: Remove.
3312 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
3313 sparc-nat.c compatiblity defines.
3314 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
3315 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
3316 * config/sparc/tm-nbsd64.h: New file.
3317 * config/sparc/tm-nbsdaout.h: Remove.
3318 * config/sparc/xm-nbsd.h: Remove.
3319
ef3cf062
JT
33202002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3321
3322 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
3323 * sparc-tdep.c: Include osabi.h.
3324 (gdbarch_tdep): Add osabi member.
3325 (_initialize_sparc_tdep): Use gdbarch_register.
3326 (sparc_gdbarch_init): Use generic OS ABI framework.
3327 (sparc_dump_tdep): New function.
3328
ee8ff470
KB
33292002-05-30 Kevin Buettner <kevinb@redhat.com>
3330
3331 * corefile.c (do_captured_read_memory_integer): Return non-zero
3332 result.
3333 (safe_read_memory_integer): Copy result of memory read when
3334 status is non-zero. Also, add comments.
3335
7b112f9c
JT
33362002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
3337
3338 * Makefile.in (ppc_tdep_h): Define.
3339 (ppc-linux-nat.o)
3340 (ppc-linux-tdep.o)
3341 (rs6000-tdep.o): Use $(ppc_tdep_h).
3342 (ppc-sysv-tdep.o)
3343 (ppcnbsd-nat.o)
3344 (ppcnbsd-tdep.o): New dependency lists.
3345 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
3346 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
3347 (ppc_linux_init_abi): New functions.
7b112f9c
JT
3348 (ppc_sysv_abi_broken_use_struct_convention)
3349 (ppc_sysv_abi_use_struct_convention)
3350 (ppc_sysv_abi_push_arguments): Move to...
3351 * ppc-sysv-tdep.c: ...here.
3352 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
3353 * rs6000-tdep.c (process_note_abi_tag_sections)
3354 (get_elfosabi): Remove.
3355 (rs6000_gdbarch_init): Use generic OS ABI framework.
3356 (rs6000_dump_tdep): New function.
3357 (_initialize_rs6000_tdep): Use gdbarch_register.
3358 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
3359 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
3360 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
3361 of ppc-linux-tdep.o.
3362 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
3363 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
3364 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
3365 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
3366 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
3367 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
3368
480dd42a
JB
33692002-05-29 Jim Blandy <jimb@redhat.com>
3370
3371 * macroscope.c (default_macro_scope): Put `void' in empty argument
3372 list.
3373
4182591f
AC
33742002-05-29 Andrew Cagney <ac131313@redhat.com>
3375
3376 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
3377 * arch-utils.c: Include "sim-regno.h".
3378 * gdbarch.sh: Don't include "sim-regno.h".
3379 * gdbarch.h, gdbarch.c: Regenerate.
3380 * sim-regno.h (legacy_register_sim_regno): Move declaration from
3381 here.
3382 * arch-utils.h (legacy_register_sim_regno): To here.
3383 * remote-sim.c (legacy_register_sim_regno): Move function from
3384 here.
3385 * arch-utils.c (legacy_register_sim_regno): To here.
3386
8238d0bf
AC
33872002-05-28 Andrew Cagney <ac131313@redhat.com>
3388
3389 * sim-regno.h: New file.
3390 * Makefile.in (sim_regno_h): Define.
3391 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
3392 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
3393 (legacy_register_sim_regno): New function.
3394 (one2one_register_sim_regno): New function.
3395 (gdbsim_fetch_register): Rewrite.
3396 (gdbsim_store_register): Only store a register when
3397 REGISTER_SIM_REGNO is valid.
3398 * d10v-tdep.c: Include "sim-regno.h".
3399 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
3400 (d10v_ts3_register_sim_regno): Ditto.
3401 * gdbarch.sh: Include "sim-regno.h".
3402 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
3403 * gdbarch.h, gdbarch.c: Regenerate.
3404 * arch-utils.h (default_register_sim_regno): Delete declaration.
3405 * arch-utils.c (default_register_sim_regno): Delete function.
3406
485721b1
JT
34072002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
3408
3409 * ppcnbsd-nat.c: Rewrite.
3410 * ppcnbsd-tdep.c: New file.
3411 * ppcnbsd-tdep.h: New file.
3412 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
3413 solib.o, and solib-svr4.o.
3414 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
3415 nbsd-tdep.o, and corelow.o.
3416
697f244d
AC
34172002-05-28 Andrew Cagney <ac131313@redhat.com>
3418
3419 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
3420 `tr' and `sed'. Mention that `broken' targets are not expected to
3421 build.
3422
f08caad1 34232002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
3424
3425 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
3426 Let PC point right after the prologue before looking up symbols.
3427
3139facc
MH
34282002-05-27 Martin M. Hunt <hunt@redhat.com>
3429
3430 * i386-tdep.c (i386_register_virtual_type): Return
3431 builtin_type_vec128i for SSE registers.
3432
3433 * gdbtypes.h (builtin_type_vec128i): Declare.
3434
3435 * gdbtypes.c (build_builtin_type_vec128i): New function.
3436 (builtin_type_v2_double, builtin_type_v4_int64): New types.
3437 (builtin_type_vec128i): New type for SSE2 128-bit registers.
3438 (build_gdbtypes): Initialize new builtin vector types.
3439 (_initialize_gdbtypes): Register new vector types with gdbarch.
3440
6e3ba3b8
JT
34412002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3442
3443 * MAINTAINERS: ns32k is not longer an obsolete candidate,
3444 since it has been multi-arch'd.
3445 * NEWS: Note that ns32k-*-* is now partial multi-arch.
3446 Move Alpha and VAX multi-arch news entries to same section
3447 as other multi-arch news.
3448
93d5585d
JT
34492002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3450
3451 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
3452 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
3453 static. Rename some register numbers to put them in ns32k-tdep
3454 private namespace.
3455 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
3456 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
3457 functions.
3458 (_initialize_ns32k_tdep): Use gdbarch_register.
3459 * ns32k-tdep.h: New file.
3460 * ns32knbsd-tdep.c: New file.
3461 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
3462 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
3463 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
3464 REGISTER_BYTES, REGISTER_BYTE): Remove.
3465 * config/ns32k/tm-ns32k.h: New file.
3466 * config/ns32k/tm-umax.h: Remove.
3467
efb2c70e
JT
34682002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3469
3470 * ns32k-tdep.c (ns32k_saved_pc_after_call,
3471 ns32k_store_struct_return, ns32k_extract_return_value,
3472 ns32k_store_return_value, ns32k_extract_struct_value_address): New
3473 functions.
3474 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
3475 ns32k_saved_pc_after_call.
3476 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
3477 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
3478 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
3479 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
3480 ns32k_extract_struct_value_address.
3481
7bcc927b
JT
34822002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3483
3484 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
3485 ns32k_fix_call_dummy): New.
3486 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
3487 ns32k_call_dummy_words.
3488 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
3489 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
3490 CALL_DUMMY_NARGS): Remove.
3491 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
3492
78f9d765
JT
34932002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3494
3495 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
3496 ns32k_frame_saved_pc, ns32k_frame_args_address,
3497 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
3498 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
3499 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
3500 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
3501 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
3502 (BREAKPOINT): Remove..
3503 (FRAME_CHAIN): Define as ns32k_frame_chain.
3504 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
3505 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
3506 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
3507 (FRAME_FIND_SAVED_REGS): Remove.
3508 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
3509 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
3510 (POP_FRAME): Define as ns32k_pop_frame.
3511
f2c762e0
JT
35122002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3513
3514 * ns32k-tdep.c (ns32k_register_byte_32082,
3515 ns32k_register_byte_32382, ns32k_register_raw_size,
3516 ns32k_register_virtual_size, ns32k_register_virtual_type): New
3517 functions.
3518 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
3519 ns32k_register_byte_32382.
3520 * config/ns32k/tm-umax.h: Update copyright years.
3521 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
3522 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
3523 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
3524 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
3525 (ns32k_get_enter_addr): Fix prototype.
3526
af137673
JT
35272002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3528
3529 * ns32k-tdep.c: Update copyright years.
3530 (ns32k_register_name_32082): New function.
3531 (ns32k_register_name_32382): Ditto.
3532 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
3533 (REGISTER_NAME): Define as ns32k_register_name_32382.
3534 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
3535 (REGISTER_NAME): Define as ns32k_register_name_32082.
3536
a8bc7b56
JB
35372002-05-24 Jim Blandy <jimb@redhat.com>
3538
3539 * dwarf2read.c (free_line_header): Use xfree, not free.
3540
83a45910
JT
35412002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
3542
3543 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
3544 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
3545
0db71247
AC
35462002-05-23 Andrew Cagney <ac131313@redhat.com>
3547
3548 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
3549
b9e5e4dd
AC
35502002-05-23 Andrew Cagney <ac131313@redhat.com>
3551
3552 From Ross Alexander at NEC Europe:
3553 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
3554
de530e84
MS
35552002-05-23 Michael Snyder <msnyder@redhat.com>
3556
3557 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
3558 for input, rather than parse_and_eval_address.
3559
b91b96f4
AC
35602002-05-23 Andrew Cagney <ac131313@redhat.com>
3561
3562 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
3563 * Makefile.in (sim_d10v_h): Update definition.
3564
8b279e7a
AC
35652002-05-24 Andrew Cagney <cagney@redhat.com>
3566
3567 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
3568 change `2002-05-22 Michael Snyder' below.
3569 (d10v_push_arguments): Ditto.
3570 (d10v_extract_return_value): Ditto.
3571
0a3d0425
JB
35722002-05-23 Jim Blandy <jimb@redhat.com>
3573
3574 * macrotab.c (check_for_redefinition): Don't complain if the new
3575 definition is the same as the previous one. Take more arguments
3576 to allow the comparison.
3577 (macro_define_object, macro_define_function): Pass more arguments
3578 to check_for_redefinition.
3579
78eac43e
MS
35802002-05-22 Michael Snyder <msnyder@redhat.com>
3581
3582 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
3583 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
3584 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
3585 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
3586 Don't bail if return_pc is PC_IN_CALL_DUMMY.
3587 Add a temp variable to save a call (and a memory read).
3588 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
3589 if possible (so that PC_IN_CALL_DUMMY will work).
3590
9bc1edb8
CV
35912002-05-22 Corinna Vinschen <vinschen@redhat.com>
3592
3593 * MAINTAINERS: Remove status `OBSOLETE' from v850.
3594
005ef3d2
ML
35952002-05-22 Michal Ludvig <mludvig@suse.cz>
3596
3597 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
3598 fde->cie_ptr.
3599 (dwarf2_build_frame_info): Corrected handling of eh_frame.
3600 (dwarf2_build_frame_info): Add offset to fde->initial_location
3601 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
3602 (execute_stack_op): Change type of 'result' from ULONGEST to
3603 CORE_ADDR.
005ef3d2 3604
fcf4f891
JT
36052002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3606
3607 * config/alpha/tm-nbsd.h: Include solib.h.
3608
cfef91e4
JT
36092002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3610
3611 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
3612 assumptions about the host's byte order.
3613
9964235a
JT
36142002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3615
3616 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
3617 to dependency list.
3618 * alphanbsd-tdep.c: Include solib-svr4.h.
3619 * shnbsd-tdep.c: Ditto.
3620
9eeef8ef
JT
36212002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3622
3623 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
3624 nbsd-tdep.h to dependency list.
3625 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
3626 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
3627 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
3628 nbsdaout.mh and nbsdelf.mh consistently.
3629 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
3630 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
3631 nbsdaout.mt and nbsdelf.mh consistently.
3632 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
3633 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
3634 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3635 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
3636 a.out shared library stuff from here...
3637 * config/nm-nbsdaout.h: ...to here.
3638 * config/tm-nbsd.h: Remove.
3639 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
3640 * config/arm/nbsd.mh: Remove.
3641 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
3642 nbsd-tdep.o.
3643 * config/arm/nbsdaout.mh: New file.
3644 * config/arm/nbsdelf.mh: New file.
3645 * config/arm/nm-nbsdaout.h: New file.
3646 * config/i386/nbsd.mh: Remove.
3647 * config/i386/nbsd.mt: Remove.
3648 * config/i386/nbsdaout.mh: New file.
3649 * config/i386/nbsdaout.mt: New file.
3650 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
3651 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
3652 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
3653 i386_register_u_addr): Remove.
3654 * config/i386/nm-nbsdaout.h: New file.
3655 * config/i386/nm-nbsdelf.h: Remove.
3656 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
3657 (USE_STRUCT_CONVENTION): Remove.
3658 * config/i386/tm-nbsdaout.h: New file.
3659 * config/i386/tm-nbsdelf.h: Remove.
3660 * config/m68k/nbsd.mh: Remove.
3661 * config/m68k/nbsd.mt: Remove.
3662 * config/m68k/nbsdaout.mh: New file.
3663 * config/m68k/nbsdaout.mt: New file.
3664 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
3665 * config/m68k/nm-nbsdaout.h: New file.
3666 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
3667 (IN_SOLIB_CALL_TRAMPOLINE): Define.
3668 * config/ns32k/nbsd.mh: Remove.
3669 * config/ns32k/nbsd.mt: Remove.
3670 * config/ns32k/nbsdaout.mh: New file.
3671 * config/ns32k/nbsdaout.mt: New file.
3672 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
3673 * config/ns32k/nm-nbsdaout.h: New file.
3674 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
3675 (IN_SOLIB_CALL_TRAMPOLINE): Define.
3676 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
3677 (SVR4_SHARED_LIBS): Remove.
3678 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
3679 * config/sparc/nbsd.mh: Remove.
3680 * config/sparc/nbsd.mt: Remove.
3681 * config/sparc/nbsdaout.mh: New file.
3682 * config/sparc/nbsdaout.mt: New file.
3683 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
3684 * config/sparc/nbsdelf.mt: New file.
3685 * config/sparc/nm-nbsdaout.h: New file.
3686 * config/sparc/nm-nbsdelf.h: Remove.
3687 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
3688 * config/sparc/tm-nbsdaout.h: New file.
3689
257ce470
JT
36902002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3691
3692 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
3693 mipsnbsd-tdep.c
3694 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
3695
76a6d5fe
JT
36962002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3697
3698 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
3699 shnbsd-nat.c.
3700 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
3701
45888261
JT
37022002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3703
3704 * NEWS: Note new MIPS NetBSD native configuration.
3705 * configure.host (mips*-*-netbsd*): New host.
3706 * configure.tgt (mips*-*-netbsd*): New target.
3707 * mipsnbsd-nat.c: New file.
3708 * mipsnbsd-tdep.c: New file.
3709 * mipsnbsd-tdep.h: New file.
3710 * config/mips/nbsd.mh: New file.
3711 * config/mips/nbsd.mt: New file.
3712 * config/mips/nm-nbsd.h: New file.
3713 * config/mips/tm-nbsd.h: New file.
3714
70f80edf
JT
37152002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3716
3717 * Makefile.in (SFILES): Add osabi.c.
3718 (COMMON_OBS): Add osabi.o.
3719 (osabi.o): New dependency list.
3720 * osabi.c: New file.
3721 * osabi.h: New file.
3722 * doc/gdbint.texinfo: Document new generic OS ABI framework.
3723
3724 * Makefile.in (alpha_tdep_h): Define and use instead of
3725 alpha-tdep.h.
3726 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
3727 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
3728 Remove.
3729 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
3730 * alpha-tdep.h: Include osabi.h.
3731 (alpha_abi): Remove.
3732 (gdbarch_tdep): Use generic OS ABI framework.
3733 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
3734 gdbarch_register_osabi.
3735 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
3736 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
3737 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
3738
3739 * Makefile.in (sh_tdep_h): Add osabi.h.
3740 * sh-tdep.h (sh_osabi): Remove.
3741 (gdbarch_tdep): Use generic OS ABI framework.
3742 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
3743 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
3744 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
3745 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
3746
3747 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
3748 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
3749 gdbarch_register_osabi.
3750 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
3751 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
3752 (get_elfosabi): Rename to...
3753 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
3754 ABI framework support routines.
3755 (arm_gdbarch_init): Use generic OS ABI framework.
3756 (arm_dump_tdep): Likewise.
3757 (_initialize_arm_tdep): Likewise.
3758 * arm-tdep.h: Include osabi.h.
3759 (arm_abi): Remove.
3760 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
3761 osabi member.
3762 (arm_gdbarch_register_os_abi): Remove prototype.
3763 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
3764 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
3765
3766 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
3767 * mips-tdep.c: Include osabi.h.
3768 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
3769 OS ABI framework.
3770
d194345b
KH
37712002-05-20 Kazu Hirata <kazu@cs.umass.edu>
3772
3773 * h8300-tdep.c: Fix formatting.
3774
70c6b0d1
EZ
37752002-05-20 Elena Zannoni <ezannoni@redhat.com>
3776
3777 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
3778 printing vector registers.
3779
165b8e33
AC
37802002-05-19 Andrew Cagney <ac131313@redhat.com>
3781
3782 From Fernando Nasser:
3783 * remote.c (remote_async_open_1): Re-throw the exception when the
3784 connection fails.
3785 (remote_cisco_open): Ditto.
3786 (remote_open_1): Ditto.
3787
36918e70
AC
37882002-05-19 Andrew Cagney <ac131313@redhat.com>
3789
3790 * remote.c (remote_start_remote_dummy): Add uiout parameter.
3791 (remote_start_remote): Add uiout parameter. Pass through to
3792 remote_start_remote_dummy.
3793 (remote_open_1): Use catch_exception instead of catch_errors.
3794 (remote_async_open_1): Ditto.
3795 (remote_cisco_open): Ditto.
3796
ae44c0c4
AC
37972002-05-19 Andrew Cagney <ac131313@redhat.com>
3798
3799 * remote.c (remote_start_remote): Replace PTR with void pointer.
3800 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
3801 static.
3802
8efe637d
AC
38032002-05-18 Andrew Cagney <ac131313@redhat.com>
3804
3805 * gdb_indent.sh: Allow the script to be run in the sim directory.
3806
2f1b5984
MK
38072002-05-18 Mark Kettenis <kettenis@gnu.org>
3808
f0f625e2
MK
3809 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
3810 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
3811
2f1b5984
MK
3812 * corelow.c (core_open): Only call set_gdbarch_from_file if
3813 exec_bfd is NULL.
3814
fc974602
AV
38152002-05-17 Andrey Volkov <avolkov@transas.com>
3816
3817 * h8300-tdep.c: Add support of EXR register
3818 * config/h8300/tm-h8300.h: Ditto.
3819
906709f4
AV
38202002-05-17 Andrey Volkov <avolkov@transas.com>
3821
3822 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
3823
6e591d68
AV
38242002-05-17 Andrey Volkov <avolkov@transas.com>
3825
3826 * h8300-tdep.c: Change literal regnums to REGNO.
3827
84f0252a
JB
38282002-05-17 Jim Blandy <jimb@redhat.com>
3829
e0e9281e
JB
3830 * NEWS: Note addition of macro support.
3831
84f0252a
JB
3832 Expand preprocessor macros in C expressions.
3833 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
3834 (scan_macro_expansion, scanning_macro_expansion,
3835 finished_macro_expansion): New function declarations.
3836 (expression_macro_lookup_func, expression_macro_lookup_baton): New
3837 variable declarations.
3838 * parser-defs.h (expression_context_pc): New declaration.
3839 * parse.c (expression_context_pc): New variable.
3840 (parse_exp_1): Set expression_context_pc, as well as
3841 expression_context_block.
3842 * c-exp.y (yylex): If we're not already reading the result of a
3843 macro expansion, try to macro-expand the next token. When we're
3844 done scanning a macro expansion, switch back to the mainline text.
3845 Commas and `if's in a macro's expansion don't terminate the input.
3846 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
3847 (macro_original_text, macro_expanded_text,
3848 expression_macro_lookup_func, expression_macro_lookup_baton): New
3849 variables.
3850 (scan_macro_expansion, scanning_macro_expansion,
3851 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
3852 c_preprocess_and_parse): New functions.
3853 (c_language_defn, cplus_language_defn, asm_language_defn): Call
3854 c_preprocess_and_parse, instead of c_parse.
3855 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
3856 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
3857
1c509ca8
JR
3858Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
3859
3860 * sh-tdep.c (gdb_print_insn_sh64): Delete.
3861 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
3862 (sh_gdbarch_init): Always use gdb_print_insn_sh.
3863
2250ee0c
CV
38642002-05-17 Corinna Vinschen <vinschen@redhat.com>
3865
3866 * NEWS: Add section for multi-arched targets. Add v850 to that section.
3867
ab3b8126
JT
38682002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
3869
3870 * Makefile.in (sh_tdep_h): Define and use.
3871 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
3872 register enum): Move to...
3873 * * sh-tdep.h: ...here.
3874 * sh-tdep.c: Include sh-tdep.h.
3875 * sh3-rom.c: Likewise.
3876 * shnbsd-tdep.c: Likewise.
3877
ed9d4749
MS
38782002-05-16 Michael Snyder <msnyder@redhat.com>
3879
3880 * arm-tdep.c: Spelling fix in comment.
3881
2e276125
JB
38822002-05-16 Jim Blandy <jimb@redhat.com>
3883
6821892e
JB
3884 Add commands for manually expanding macros and showing their
3885 definitions.
3886 * macrocmd.c, macroscope.c, macroscope.h: New files.
3887 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
3888 (macroscope_h): New variable.
3889 (HFILES_NO_SRCDIR): Add macroscope.h.
3890 (COMMON_OBS): Add macrocmd.o, macroscope.o.
3891 (macroscope.o, macrocmd.o): New rules.
3892
2e276125
JB
3893 Teach the Dwarf 2 reader to read macro information.
3894 * dwarf2read.c: #include "macrotab.h".
3895 (dwarf_macinfo_buffer): New variable.
3896 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
3897 dwarf_macinfo_size.
3898 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
3899 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
3900 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
3901 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
3902 dwarf2_macro_spaces_in_definition): New complaints.
3903 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
3904 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
3905 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
3906 the partial symbol table.
3907 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
3908 from what's recorded in the partial symbol table.
3909 (read_file_scope): If the compilation unit has a
3910 `DW_AT_macro_info' attribute, read its macro information.
3911 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
3912
2f53fe6c
DJ
39132002-05-16 Daniel Jacobowitz <drow@mvista.com>
3914
3915 Fix PR gdb/546
3916 * ser-tcp.c: Don't include <netinet/udp.h>.
3917
2be99286
SC
39182002-05-16 Stephane Carrez <stcarrez@nerim.fr>
3919
3920 * MAINTAINERS: Update my email address.
3921
c9af212b 39222002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
3923
3924 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
3925 include file of the same name.
3926
bf5f1a52
CV
39272002-05-16 Corinna Vinschen <vinschen@redhat.com>
3928
3929 * configure.tgt: Mark v850 as multi-arched.
3930 * config/v850/tm-v850.h: Remove file.
3931 * config/v850/v850.mt: Eliminate TM_FILE.
3932
435e042a
CV
39332002-05-16 Corinna Vinschen <vinschen@redhat.com>
3934
3935 * v850-tdep.c: Full multi-arch.
3936 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
3937 Define GDB_MULTI_ARCH to 2.
3938
9819c6c8
PM
39392002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
3940
3941 * p-exp.y (current_type): New static variable.
3942 Carries the type of the expression at the position that is parsed.
3943 (push_current_type, pop_current_type): Two new functions. Used
3944 to store/restore current_type in expression on specific tokens.
c9af212b
RE
3945 (search_field): New static variable. Set to one after parsing a point
3946 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
3947 (FIELDNAME): New token. After a point only a token belonging to
3948 current_type type definition is allowed.
3949 (all over token rules): reset and change current_type according
3950 to rules.
3951 (exp '[' rule): insert implicit array index field if
3952 exp is a pascal string type.
3953
3a06899a
CV
39542002-05-16 Corinna Vinschen <vinschen@redhat.com>
3955
3956 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
3957 frame info. Use frame_info's saved_regs instead of matching member
3958 in extra_frame_info throughout.
3959 (v850_frame_init_saved_regs): New function.
3960 (v850_init_extra_frame_info): Move most functionality into
3961 v850_frame_init_saved_regs().
3962 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
3963 (v850_frame_find_saved_regs): Remove declaration.
3964 (FRAME_FIND_SAVED_REGS): Remove definition.
3965 (v850_frame_init_saved_regs): Add declaration.
3966 (FRAME_INIT_SAVED_REGS): Add definition.
3967
6ed14b0e
CV
39682002-05-16 Corinna Vinschen <vinschen@redhat.com>
3969
3970 * v850-tdep.c: Begin multi-arch'ing v850.
3971 (v850_target_architecture_hook): Remove function.
3972 (v850_gdbarch_init): New function. Add code previously in
3973 v850_target_architecture_hook().
3974 (_initialize_v850_tdep): Don't set target_architecture_hook.
3975 Call register_gdbarch_init() instead.
3976
42725910
DJ
39772002-05-16 Daniel Jacobowitz <drow@mvista.com>
3978
3979 * gdbtypes.h (struct cplus_struct_type): Remove args field.
3980 * hpread.c (hpread_read_struct_type): Remove assignments to args.
3981 (fixup_class_method_type): Likewise.
3982
0bc68c49
DJ
39832002-05-15 Daniel Jacobowitz <drow@mvista.com>
3984
3985 From Martin Pool <mbp@samba.org>:
3986 * gdbserver/server.c (gdbserver_usage): New function.
3987 (main): Call it.
3988
99d9066e
JB
39892002-05-15 Jim Blandy <jimb@redhat.com>
3990
3991 Add macro structures to GDB's symbol tables. Nobody puts anything
3992 in them yet.
3993 * symtab.h (struct symtab): New member: `macro_table'.
3994 * buildsym.h (pending_macros): New global variable.
3995 * buildsym.c: #include "macrotab.h".
3996 (buildsym_init): Initialize `pending_macros'.
3997 (end_symtab): If we found macro information while reading a CU's
3998 debugging info, do build a symtab structure for it. Make the
3999 symtab point to the macro information, and clear the
4000 `pending_macros' pointer which held it while we were reading the
4001 debug info.
4002 (really_free_pendings): Free any pending macro table.
4003 * objfiles.h (struct objfile): New member: `macro_cache'.
4004 * objfiles.c (allocate_objfile): Set allocate and free functions
4005 for the macro cache's objstack.
4006 (free_objfile): Empty the macro cache's obstack.
4007 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4008 set new allocate and free functions for it.
4009 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4010 free functions for the macro cache's objstack. (Why is this
4011 function building its own objfile?)
4012 * symmisc.c (print_objfile_statistics): Print statistics on the
4013 macro bcache.
4014 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4015
c899585b
RE
40162002-05-15 Richard Earnshaw <rearnsha@arm.com>
4017
4018 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4019 (REGISTER_U_ADDR): Delete definition.
4020 (arm_register_u_addr): Delete declaration.
4021
a6cdd8c5
RE
40222002-05-15 Richard Earnshaw <rearnsha@arm.com>
4023
4024 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4025 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4026
fd3a5ca1
DJ
40272002-05-14 Daniel Jacobowitz <drow@mvista.com>
4028
4029 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
4030 stop_at -> stop_pc.
4031
c97dcfc7
AC
40322002-05-14 Andrew Cagney <ac131313@redhat.com>
4033
4034 * regcache.c (register_valid): Revise comments refering to "Not
4035 available" and "unavailable".
4036 * frame.c (frame_register_read): Ditto.
4037 * findvar.c (value_of_register): Ditto.
4038
93021b7d
AC
40392002-05-15 Andrew Cagney <cagney@redhat.com>
4040
4041 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4042 (remote-sim.o): Update dependencies.
4043 (d10v-tdep.o): Specify dependencies.
4044 (sim_d10v_h): Define.
4045
a86bc61c
JB
40462002-05-14 Jim Blandy <jimb@redhat.com>
4047
4048 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4049 * macrotab.c (macro_lookup_inclusion, find_definition,
4050 new_macro_table): Same.
4051
4052 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4053 not `! strcmp ()'. This is a dubious improvement.
4054 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4055
4056 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4057 although it's not necessary, to avoid a warning.
4058
2fdde8f8
DJ
40592002-05-14 Daniel Jacobowitz <drow@mvista.com>
4060
4061 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4062 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4063 TYPE_INSTANCE_FLAGS.
4064 (struct main_type): New.
4065 (struct type): Move most members to struct main_type. Change
4066 cv_type and as_type to new type_chain member. Add instance_flags.
4067 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4068 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4069 (finish_cv_type): Remove prototype.
4070 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4071 Set TYPE_CHAIN.
4072 (alloc_type_instance): New function.
4073 (smash_type): New function.
4074 (make_pointer_type, make_reference_type, make_function_type)
4075 (smash_to_member_type, smash_to_method_type): Call smash_type.
4076 (make_qualified_type): New function.
4077 (make_type_with_address_space): Call make_qualified_type.
4078 (make_cv_type): Likewise.
4079 (finish_cv_type): Remove unnecessary function.
4080 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4081 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4082 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4083 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4084 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4085 * hpread.c (hpread_read_struct_type): Likewise.
4086 * stabsread.c (read_struct_type): Likewise.
4087
843fedf4
EZ
40882002-05-14 Elena Zannoni <ezannoni@redhat.com>
4089
4090 * configure.tgt: Add a catch all sh* target, for cases like
4091 sh[2,3,4]-elf and sh-hms.
4092
05a6c72c
KS
40932002-05-14 Keith Seitz <keiths@redhat.com>
4094
4095 * event-loop.c (create_file_handler): Don't do anything but
4096 update data when we are given a fd which we are already
4097 monitoring.
4098
5d085aaf
ML
40992002-05-14 Michal Ludvig <mludvig@suse.cz>
4100
4101 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4102 (update_context): Use __func__ in warnings.
4103
9db8d71f
DJ
41042002-05-14 Daniel Jacobowitz <drow@mvista.com>
4105
4106 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4107 and tcp_close to net_open and net_close.
4108 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4109 using UDP if requested. Don't try to disable Nagle on UDP
4110 sockets.
4111 * remote.c (remote_serial_open): New function. Warn about UDP.
4112 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4113
5dbc6baa
EZ
41142002-05-13 Elena Zannoni <ezannoni@redhat.com>
4115
4116 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4117
cc3023f7
EZ
41182002-05-13 Elena Zannoni <ezannoni@redhat.com>
4119
4120 * configure.tgt: Remove sh-hms target.
4121 * MAINTAINERS: Don't list sh-hms as a separate target.
4122
ec2bcbe7
JB
41232002-05-13 Jim Blandy <jimb@redhat.com>
4124
4125 Add first preprocessor macro-expansion files.
4126 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4127 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4128 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4129 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4130 (COMMON_OBS): Add macrotab.o, macroexp.o.
4131 (macroexp.o, macrotab.o): New rules.
4132
6d531722
AC
41332002-05-13 Andrew Cagney <ac131313@redhat.com>
4134
4135 * config/m88k/tm-m88k.h: Update copyright.
4136 (m88k_target_write_pc): Declare
4137 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4138 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4139 (SHIFT_INST_REGS): Update definition.
4140 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4141 using old definition of TARGET_WRITE_PC.
4142 * regcache.c (generic_target_write_pc): Delete code handling
4143 NNPC_REGNUM.
4144 * gdbarch.sh (NNPC_REGNUM): Delete.
4145 * gdbarch.h, gdbarch.c: Regenerate.
4146
3e3f2739
RE
41472002-05-13 Richard Earnshaw <rearnsha@arm.com>
4148
4149 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4150 builtin reg number.
4151
0004e5a2
DJ
41522002-05-13 Daniel Jacobowitz <drow@mvista.com>
4153
4154 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4155 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4156 (gen_address_of, gen_struct_ref, gen_repeat): Use type
4157 access macros.
4158 * c-typeprint.c (cp_type_print_method_args): Likewise.
4159 (c_type_print_args): Likewise.
4160 * d10v-tdep.c (d10v_push_arguments): Likewise.
4161 (d10v_extract_return_value): Likewise.
4162 * expprint.c (print_subexp): Likewise.
4163 * gdbtypes.c (lookup_primitive_typename): Likewise.
4164 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4165 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4166 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4167 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4168 (TYPE_VECTOR): Likewise.
4169 * hpread.c (hpread_read_struct_type)
4170 (fix_static_member_physnames, fixup_class_method_type)
4171 (hpread_type_lookup): Likewise.
4172 * mdebugread.c (parse_symbol, parse_type): Likewise.
4173 * p-lang.c (is_pascal_string_type): Likewise.
4174 * valops.c (hand_function_call): Likewise.
4175 * x86-64-tdep.c (classify_argument): Likewise.
4176
4177 * hpread.c (hpread_read_function_type)
4178 (hpread_read_doc_function_type): Call replace_type.
4179 * dstread.c (create_new_type): Delete.
4180 (decode_dst_structure, process_dst_function): Call alloc_type.
4181 Use type access macros.
4182
dff95cc7
MK
41832002-05-12 Mark Kettenis <kettenis@gnu.org>
4184
4185 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4186 the're not supported by the current architecture.
4187 (i387_fill_fxsave): Likewise.
4188
bbcd32ad
FF
41892002-05-12 Fred Fish <fnf@redhat.com>
4190
4191 * symfile.c (default_symfile_offsets): Arrange for uninitialized
4192 sect_index_xxx members to index the first slot in section_offsets
4193 if all of the section_offsets are zero.
4194
89cf4787
MK
41952002-05-12 Mark Kettenis <kettenis@gnu.org>
4196
4197 * configure.tgt (sparc-*openbsd): Remove entry accidentially
4198 checked in with last change.
4199
1f77ffc5
MK
42002002-05-12 Mark Kettenis <kettenis@gnu.org>
4201
4202 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
4203 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
4204 config.sub.
4205
89b8b4a9
DJ
42062002-05-12 Daniel Jacobowitz <drow@mvista.com>
4207
4208 * Makefile.in: Update dependencies.
4209
14a5e767
AC
42102002-05-11 Andrew Cagney <ac131313@redhat.com>
4211
4212 * language.c (local_hex_string_custom): Simplify. Do not depend
4213 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
4214
4215 * memattr.c (mem_info_command): Replace calls to
4216 longest_local_hex_string and longest_local_hex_string_custom.
4217 * buildsym.c (make_blockvector): Ditto.
4218 * solib.c (info_sharedlibrary_command): Ditto.
4219 * tracepoint.c (tracepoints_info): Ditto.
4220 * symtab.c (print_msymbol_info): Ditto.
4221
4222 * language.c (local_hex_string): Delete.
4223 (local_hex_string_custom): Delete.
4224 (longest_local_hex_string): Rename to local_hex_string.
4225 (longest_local_hex_string_custom): Rename to
4226 local_hex_string_custom.
4227 * language.h (local_hex_string): Change parameter type to LONGEST.
4228 (local_hex_string_custom): Ditto.
4229 (longest_local_hex_string): Delete declaration.
4230 (longest_local_hex_string_custom): Ditto.
4231
4232 * solib.c: Update copyright.
4233 * memattr.c: Update copyright.
4234
13d01224
AC
42352002-05-11 Andrew Cagney <ac131313@redhat.com>
4236
4237 * arch-utils.h (legacy_register_to_value): Declare.
4238 (legacy_value_to_register): Declare.
4239 (legacy_convert_register_p): Declare.
4240 * arch-utils.c (legacy_register_to_value): New function.
4241 (legacy_value_to_register): New function.
4242 (legacy_convert_register_p): New function.
4243
4244 * gdbarch.sh (REGISTER_TO_VALUE): Define.
4245 (VALUE_TO_REGISTER): Define.
4246 (CONVERT_REGISTER_P): Define.
4247 * gdbarch.h, gdbarch.c: Regenerate.
4248
4249 * valops.c (value_assign): Use CONVERT_REGISTER_P and
4250 VALUE_TO_REGISTER.
4251 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
4252 CONVERT_REGISTER_P.
4253
4a1970e4
DJ
42542005-05-11 Daniel Jacobowitz <drow@mvista.com>
4255 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4256
4257 * Makefile.in: Update dependencies for valops.c.
4258 * valops.c: Include "gdb_assert.h".
4259 (typecmp): Skip THIS parameter to methods.
4260 (find_method_list): Remove static_memfuncp argument,
4261 update callers. Check for stub methods.
4262 (find_value_oload_method_list): Don't set *static_memfuncp.
4263 (find_overload_match): Don't check for stub methods. Assert
4264 that methods are not stubbed. Handle static methods.
4265 (value_find_oload_method_list): Remove static_memfuncp argument.
4266 * gdbtypes.c (check_stub_method): Do not add THIS pointer
4267 to the argument list for static stub methods.
4268 * value.h (value_find_oload_method_list): Update prototype.
4269
b2e75d78
AC
42702002-05-11 Andrew Cagney <ac131313@redhat.com>
4271
4272 * arch-utils.h (generic_register_size): Declare.
4273 (generic_register_raw_size, generic_register_virtual_size): Delete
4274 declarations.
4275 * arch-utils.c (generic_register_raw_size): Delete.
4276 (generic_register_size): New function.
4277 (generic_register_virtual_size): Delete.
4278
4279 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
4280 default generic_register_size.
4281 * gdbarch.h, gdbarch.c: Re-generate.
4282
4283 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
4284 register_virtual_size.
4285 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
4286 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4287
451fbdda
AC
42882002-05-11 Andrew Cagney <ac131313@redhat.com>
4289
4290 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
4291 * gdbarch.h, gdbarch.c: Regenerate.
4292 * gnu-v3-abi.c: Update copyright.
4293 (vtable_address_point_offset): Update.
4294 (gnuv3_rtti_type): Update.
4295 (gnuv3_baseclass_offset): Update.
4296 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
4297 (init_fetch_link_map_offsets): Update.
4298 * remote.c (get_remote_state): Update.
4299
6d2f5cea
DJ
43002002-05-11 Daniel Jacobowitz <drow@mvista.com>
4301
4302 * TODO: Remove value_headof/value_from_vtable_info comment.
4303 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
4304 * values.c (value_headof, value_from_vtable_info): Delete.
4305 * value.h (value_from_vtable_info): Delete prototype.
4306
d2324da4
AC
43072002-05-11 Andrew Cagney <ac131313@redhat.com>
4308
4309 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
4310 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
4311 $(gdb_regex_h).
4312 (gdb_assert_h): Define.
4313 (gdb_wait_h): Define.
4314 (gdb_regex_h): Define.
4315
5c717440
DJ
43162002-05-11 Daniel Jacobowitz <drow@mvista.com>
4317
4318 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
4319 * linespec.c (find_methods): Handle GCC 3.x template constructors.
4320
6c7861b3
JT
43212002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4322
4323 * nbsd-tdep.c: Fix comment.
4324
ea5bc2a6
JT
43252002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4326
4327 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
4328 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
4329 (nbsd-tdep.o): New dependency list.
4330 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
4331 nbsd-tdep.h.
4332 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
4333 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
4334 * nbsd-tdep.c: New file.
4335 * nbsd-tdep.h: New file.
4336 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
4337 nbsd-tdep.h.
4338 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
4339 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4340 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4341 * config/sh/nbsd.mt (TDEPFILES): Ditto.
4342
b28da865
JT
43432002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4344
4345 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
4346 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
4347 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
4348 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
4349 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
4350 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
4351
4b8ff1fa
JT
43522002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4353
4354 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
4355 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4356 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
4357 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
4358 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
4359 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
4360 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
4361
dfe6eb1f
JT
43622002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4363
4364 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
4365 fetch_elfcore_registers to...
4366 * i386nbsd-tdep.c: ...here.
4367 (i386nbsd_use_struct_convention): Rename to...
4368 (i386nbsd_aout_use_struct_convention): ...this.
4369 (i386nbsd_supply_reg): New function.
4370 (i386nbsd_fill_reg): New function.
4371 (fetch_core_registers): Use i386nbsd_supply_reg.
4372 (fetch_elfcore_registers): Likewise.
4373 (_initialize_i386nbsd_tdep): New function.
4374 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
4375 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4376 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
4377 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
4378 (i386nbsd_aout_use_struct_convention): ...this.
4379
20cb8cda
JT
43802002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4381
4382 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
4383 (store_inferior_registers): Use shnbsd_fill_reg.
4384 * shnbsd-tdep.c (sh_nbsd_supply_registers,
4385 sh_nbsd_supply_register): Collapse into...
4386 (shnbsd_supply_reg): ...this.
4387 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
4388 (shnbsd_fill_reg): ...this.
4389 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
4390 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
4391 (fetch_core_registers): Use shnbsd_supply_reg.
4392 (fetch_elfcore_registers): Use shnbsd_supply_reg.
4393 (sh_nbsd_core_fns): Rename to...
4394 (shnbsd_core_fns): ...this.
4395 (sh_nbsd_elfcore_fns): Rename to...
4396 (shnbsd_elfcore_fns): ...this.
4397 (sh_nbsd_init_abi): Rename to...
4398 (shnbsd_init_abi): ...this.
4399 (_initialize_sh_nbsd_tdep): Rename to...
4400 (_initialize_shnbsd_tdep): ...this.
4401 * shnbsd-tdep.h (sh_nbsd_supply_registers,
4402 sh_nbsd_supply_register, sh_nbsd_fill_registers,
4403 sh_nbsd_fill_register): Remove prototypes.
4404 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
4405
e750d25e
JT
44062002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4407
4408 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
4409 (i387-nat.o): Delete dependency list.
4410 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
4411 (x86-64-linux-nat.o): Likewise.
4412 * i387-nat.c: Delete file, moving contents to...
4413 * i387-tdep.c: ...here.
4414 * i387-nat.h: Rename...
4415 * i387-tdep.h: ...to this.
4416 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
4417 * i386-linux-nat.c: Likewise.
4418 * i386bsd-nat.c: Likewise.
4419 * i386gnu-nat.c: Likewise.
4420 * i386nbsd-nat.c: Likewise.
4421 * i386v4-nat.c: Likewise.
4422 * x86-64-linux-nat.c: Likewise.
4423 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
4424 * config/i386/go32.mh (NATDEPFILES): Likewise.
4425 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
4426 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
4427 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
4428 * config/i386/linux.mh (NATDEPFILES): Likewise.
4429 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
4430 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4431 * config/i386/obsd.mh (NATDEPFILES): Likewise.
4432 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4433
1aee598a
JT
44342002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4435
4436 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
4437 (alphanbsd-nat.o): Remove dependency list.
4438 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
4439 * alphanbsd-nat.c: Delete. Contents moved to...
4440 * alphanbsd-tdep.c: ...here.
4441 (_initialize_alphanbsd_tdep): Register core functions.
4442 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
4443
12bcb0fe
JT
44442002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4445
4446 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
4447 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
4448 (alphanbsd-nat.o): Likewise.
4449 (alphabsd-tdep.o): New dependency list.
4450 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
4451 (fill_gregset): Use alphabsd_fill_reg.
4452 (supply_fpregset): Use alphabsd_supply_fpreg.
4453 (fill_fpregset): Use alphabsd_fill_fpreg.
4454 (fetch_inferior_registers): Use struct reg and struct fpreg
4455 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
4456 and alphabsd_supply_fpreg.
4457 (store_inferior_registers): Use struct reg and struct fpreg
4458 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
4459 and alphabsd_fill_fpreg.
4460 * alphabsd-tdep.c: New file.
4461 * alphabsd-tdep.h: New file.
4462 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
4463 (fetch_elfcore_registers): Use alphabsd_supply_reg and
4464 alphabsd_supply_fpreg.
4465 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
4466 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4467
361d1df0
EC
44682002-05-11 Eric Christopher <echristo@redhat.com>
4469
4470 * mips-tdep.c (mips_double_register_type): Fix thinko.
4471 (mips_single_register_type): Ditto.
4472 * MAINTAINERS: Add self.
4473
92dd7cee
MK
44742002-05-11 Mark Kettenis <kettenis@gnu.org>
4475
4476 * i387-nat.c (i387_supply_register, i387_fill_fsave,
4477 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
4478 right thing on architectures with different endianness and/or
4479 integer sizes.
4480
e27da16d
JT
44812002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
4482
4483 From Christian Limpach <chris@Pin.LU>
4484 * configure.in: Change sed expression which comments out
4485 NATDEPFILES to also comment out continuation lines.
4486 * configure: Regenerate.
4487
ddde02bd
EZ
44882002-05-10 Elena Zannoni <ezannoni@redhat.com>
4489
4490 * sh-tdep.c: Clean up code erroneously reintroduced by previous
4491 big patch.
4492
1c922164
EZ
44932002-05-10 Elena Zannoni <ezannoni@redhat.com>
4494
4495 * sh-tdep.c: Include correct file.
4496
283150cd
EZ
44972002-05-10 Elena Zannoni <ezannoni@redhat.com>
4498
4499 New support for sh64-elf (sh5) target.
4500
4501 * configure.tgt: For sh64-elf target, default to sh-elf.
4502
4503 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
4504 (struct gdbarch_tdep): Add new fields for new registers and ABI
4505 info.
361d1df0 4506
283150cd
EZ
4507 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
4508 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
4509 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
4510 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
4511 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
4512 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
4513 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
4514 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
4515 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
4516 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
4517 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
4518 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
4519 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
4520 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
4521 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
4522 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
4523 sh64_get_gdb_regnum, sh64_media_reg_base_num,
4524 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
4525 sign_extend, sh64_nofp_frame_init_saved_regs,
4526 sh64_init_extra_frame_info, sh64_get_saved_register,
4527 sh64_extract_struct_value_address, sh64_pop_frame,
4528 sh64_push_arguments, sh64_extract_return_value,
4529 sh64_store_return_value, sh64_show_media_regs,
4530 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
4531 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
4532 sh_sh64_register_virtual_type,
4533 sh_sh64_register_convert_to_virtual,
4534 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
4535 sh64_register_read, sh64_pseudo_register_write,
4536 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
4537 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
4538 sh64_do_pseudo_register, sh_compact_do_registers_info,
4539 sh64_do_registers_info, sh_gdbarch_init): New functions.
4540
3117ed25
EZ
45412002-05-10 Elena Zannoni <ezannoni@redhat.com>
4542
4543 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
4544
2654e6d4
DJ
45452002-05-10 Daniel Jacobowitz <drow@mvista.com>
4546
4547 * linespec.c (decode_line_1): Check for a double quote after
4548 a filename correctly.
4549
9ab3e532
JB
45502002-05-10 Jim Blandy <jimb@redhat.com>
4551
4552 Properly track the size of the current objfile's .debug_line section.
4553 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
4554 (DWARF_LINE_SIZE): New macro.
4555 (dwarf2_build_psymtabs_hard): Record the line section's size in
4556 the partial symbol table.
4557 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
4558 symbol table.
4559
126fa72d
PS
45602002-05-10 Petr Sorfa <petrs@caldera.com>
4561
4562 * ia64-tdep.c: Handle breakpoints on L instruction type
4563 in MLX instruction bundle by moving the breakpoint to
4564 the third slot (X instruction type) as L holds only data.
4565
1f077a3e
KB
45662002-05-10 Kevin Buettner <kevinb@redhat.com>
4567
4568 * dbxread.c (discarding_local_symbols_complaint): New complaint.
4569 (process_one_symbol): Complain about discarding local symbols
4570 due to a misplaced N_LBRAC entry.
4571
8120c9d5 45722002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
4573
4574 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
4575 * linespec.c (find_toplevel_char): '<' and '>' also increase and
4576 decrease the depth we are at, in the case of templates.
361d1df0 4577
67b2c998
DJ
45782002-05-09 Daniel Jacobowitz <drow@mvista.com>
4579
4580 * mips-tdep.c (mips_float_register_type): New function.
4581 (mips_double_register_type): New function.
4582 (mips_print_register): Use them.
4583 (do_fp_register_row): Likewise.
4584
fd326606
DJ
45852002-05-09 Daniel Jacobowitz <drow@mvista.com>
4586
6609d9af 4587 * signals/signals.c (signals): Remove conditional compilation around
fd326606 4588 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 4589 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 4590
bef35864
MS
45912002-05-09 Michael Snyder <msnyder@redhat.com>
4592
4593 * remote-rdp.c (remote_rdp_can_run): Remove.
4594
c55a3f73
TT
45952002-05-09 Tom Tromey <tromey@redhat.com>
4596
4597 * jv-valprint.c (java_val_print): Handle `char' as a special case
4598 of TYPE_CODE_INT.
4599
b8d5e71d
MS
46002002-05-09 Michael Snyder <msnyder@redhat.com>
4601
4602 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
4603 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 4604 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 4605 str r(0123),[sp,#nn].
361d1df0 4606 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
4607 order-independent by placing it in a loop.
4608
e2cd42dd
MS
46092002-05-06 Michael Snyder <msnyder@redhat.com>
4610
4611 * stabsread.c (read_type): Add recognition for new attribute:
4612 "@V;" means that an array type is actually a vector.
4613 This is analogous to the vector flag that's been added to dwarf2.
4614
3ce1502b
MK
46152002-05-09 Mark Kettenis <kettenis@gnu.org>
4616
4617 * i386-tdep.h (i386_abi): New enum.
4618 (struct gdbarch_tdep): Replace os_ident member with abi.
4619 (i386_gdbarch_register_os_abi): New prototype.
4620 * i386-tdep.c (i386_abi_names): New array.
4621 (process_note_abi_tag_sections): Removed.
4622 (process_note_sections): New function.
4623 (i386_elf_abi_from_note, i386_elf_abi): New functions.
4624 (struct i386_abi_handler): New struct.
4625 (i386_abi_handler_list): New variable.
4626 (i386_gdbarch_register_os_abi): New function.
4627 (i386_gdbarch_init): Adapt for the changes given above.
4628
084c156a
DJ
46292002-05-08 Daniel Jacobowitz <drow@mvista.com>
4630
4631 * gregset.h: Say "GNU/Linux".
4632
6599f021
EZ
46332002-05-08 Elena Zannoni <ezannoni@redhat.com>
4634
4635 * gdbtypes.c : Add new builtin type for 64 bit vectors.
4636 (build_gdbtypes): Build builtin_type_v2_float.
4637 (_initialize_gdbtypes): Register new builtin type.
4638
40af4b0c
AC
46392002-05-08 Andrew Cagney <ac131313@redhat.com>
4640
4641 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
4642 (clear_gdbarch_swap): New function.
4643 (initialize_non_multiarch): Call.
4644 (gdbarch_update_p): Before calling init(), swap out and clear the
4645 existing architecture.
4646 * gdbarch.c: Regenerate.
4647
4fe84f46
JT
46482002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4649
4650 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
4651 alphanbsd-tdep.c.
4652
4015edd1
JT
46532002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4654
4655 * sh-nbsd-nat.c: Rename to...
4656 * shnbsd-nat.c: ...this.
4657 * sh-nbsd-tdep.c: Rename to...
4658 * shnbsd-tdep.c: ...this.
4659 * sh-nbsd-tdep.h: Rename to...
4660 * shnbsd-tdep.h: ...this.
4661 * config/sh/nbsd.mh: Use shnbsd-nat.o.
4662 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
4663
0e2bd219
RE
46642002-05-08 Richard Earnshaw <rearnsha@arm.com>
4665
4666 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
4667 concatenation for command help messages.
4668
13a38d45
JT
46692002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4670
4671 * NEWS: Note new sh*-*-netbsdelf* configuration.
4672 * configure.host: Set gdb_host_cpu to sh for all sh*.
4673 (sh*-*-netbsdelf*): New host.
4674 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
4675 (sh*-*-netbsdelf*): New target.
4676 * sh-nbsd-nat.c: New file.
4677 * sh-nbsd-tdep.c: New file.
4678 * sh-nbsd-tdep.h: New file.
4679 * config/sh/nbsd.mh: New file.
4680 * config/sh/nbsd.mt: New file.
4681 * config/sh/nm-nbsd.h: New file.
4682 * config/sh/tm-nbsd.h: New file.
4683
d658f924
JT
46842002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4685
4686 * sh-tdep.c (sh_osabi_names): Declare.
4687 (process_note_abi_tag_sections): New function.
4688 (get_elfosabi): Ditto.
4689 (sh_gdbarch_register_os_abi): Ditto.
4690 (sh_dump_tdep): Ditto.
4691 _initialize_sh_tdep): Use gdbarch_register to register
4692 sh_gdbarch_init and sh_dump_tdep.
4693 * config/sh/tm-sh.h (sh_osabi): Declare.
4694 (gdbarch_tdep): Add sh_osabi and osabi_name members.
4695
848cfffb
AC
46962002-05-07 Andrew Cagney <ac131313@redhat.com>
4697
4698 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
4699 (thumb_scan_prologue): Ditto.
4700 (arm_find_callers_reg): Ditto.
4701 (arm_frame_chain): Ditto.
4702 (arm_init_extra_frame_info): Ditto.
4703 (arm_frame_saved_pc): Ditto.
4704 (arm_pop_frame): Ditto.
4705 (arm_push_return_address): New function.
4706 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
4707 call_dummy_location, call_dummy_breakpoint_offset_p,
4708 call_dummy_breakpoint_offset, call_dummy_p,
4709 call_dummy_stack_adjust_p, call_dummy_words,
4710 sizeof_call_dummy_words, call_dummy_start_offset,
4711 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
4712 call_dummy_address, push_return_address and push_dummy_frame for
4713 generic dummy frames.
4714
e7d717c0
JT
47152002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
4716
4717 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
4718 size computation for alloca.
4719 (sh_fp_frame_init_saved_regs): Likewise.
4720
7bbcf283
RE
47212002-05-07 Richard Earnshaw <rearnsha@arm.com>
4722
4723 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
4724 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 4725 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
4726 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
4727 * remote-rdp.c (remote_rdp_fetch_register): Use
4728 ARM_MAX_REGISTER_RAW_SIZE.
4729 (remote_rdp_store_register): Likewise.
4730
4657573b
ML
47312002-05-07 Michal Ludvig <mludvig@suse.cz>
4732
361d1df0 4733 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
4734 added default labels to switch {} statements.
4735 * x86-64-tdep.c: Ditto.
4736 * x86-64-linux-nat.c: Ditto.
4737
010f3b2f
JT
47382002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
4739
4740 * solib.h: Protect against multiple inclusion.
4741
debd256d
JB
47422002-05-06 Jim Blandy <jimb@redhat.com>
4743
9ab3e532
JB
4744 Add first preprocessor macro-expansion files.
4745 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4746 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4747 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4748 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4749 (COMMON_OBS): Add macrotab.o, macroexp.o.
4750 (macroexp.o, macrotab.o): New rules.
4751
debd256d
JB
4752 Separate the job of reading the line number info statement program
4753 header (...expialidocious) out into its own function.
4754 * dwarf2read.c (struct line_head, struct filenames, struct
4755 directories): Replace with...
4756 (struct line_header): New structure, containing the full
4757 contents of the statement program header, including the
4758 include directory and file name tables.
4759 (read_file_scope): If we have line number info, instead of just
4760 calling dwarf_decode_lines to do all the work, call
4761 dwarf_decode_line_header first to get a `struct line_header'
4762 containing the data in the statement program header, and then
4763 pass that to dwarf_decode_lines, which will pick up where that
4764 left off. Be sure to clean up the `struct line_header' object.
4765 (dwarf_decode_line_header, free_line_header, add_include_dir,
4766 add_file_name): New functions.
4767 (dwarf_decode_lines): Move all the code to read the statement
4768 program header into dwarf_decode_line_header. Take the line
4769 header it built as the first argument, instead of the offset to
4770 the compilation unit's line number info. Use the new `struct
4771 line_header' type instead of the old structures. No need to do
4772 cleanups here now, since we don't allocate anything.
4773 (dwarf2_statement_list_fits_in_line_number_section,
4774 dwarf2_line_header_too_long): New complaints.
4775
ac3aafc7
EZ
47762002-05-06 Elena Zannoni <ezannoni@redhat.com>
4777
4778 * gdbtypes.c (init_vector_type): New function.
4779 (build_builtin_type_vec128): Simplify the representation of SIMD
4780 registers.
4781 (build_gdbtypes): Initialize new builtin vector types.
4782 (_initialize_gdbtypes): Register new vector types with gdbarch.
4783 (builtin_type_v4_float, builtin_type_v4_int32,
4784 builtin_type_v8_int16, builtin_type_v16_int8,
4785 builtin_type_v2_int32, builtin_type_v4_int16,
4786 builtin_type_v8_int8): New (renamed) SIMD types.
4787
13e49980
MK
47882002-05-06 Mark Kettenis <kettenis@gnu.org>
4789
4790 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
4791 (i387_fill_fxsave): Likewise.
4792
997b20b8
AO
47932002-05-05 Alexandre Oliva <aoliva@redhat.com>
4794
4795 * alpha-tdep.c (alpha_extract_return_value): Don't use
4796 non-constant array size in prototype.
4797
535c96ce
AC
47982002-05-04 Andrew Cagney <ac131313@redhat.com>
4799
4800 From Brian Taylor <briant at model dot com>:
4801 * ui-out.c (ui_out_field_core_addr): Use the function
4802 longest_local_hex_string_custom'to format addresses > 32 bits
4803 wide.
4804
4805 * ui-out.c (ui_out_field_core_addr): Update comment.
4806
bedfa57b
AC
48072002-05-04 Andrew Cagney <ac131313@redhat.com>
4808
4809 * stack.c (select_and_print_frame): Make static. Delete the
4810 parameter `level'.
4811 (func_command): Update call.
4812 (select_frame_command): Delete code computing the frame level.
4813 * frame.h (select_and_print_frame): Delete declaration.
4814
f621c63e
AC
48152002-05-04 Andrew Cagney <ac131313@redhat.com>
4816
4817 * sparc-tdep.c (sparc_get_saved_register): Comment why
4818 get_prev_frame call is safe.
4819
0f7d239c
AC
48202002-05-04 Andrew Cagney <ac131313@redhat.com>
4821
4822 * frame.h (select_frame): Delete level parameter.
4823 * stack.c (select_frame): Update. Use frame_relative_level to
4824 obtain the frame's level.
4825 (select_and_print_frame): Update call.
4826 (select_frame_command): Ditto.
4827 (up_silently_base): Ditto.
4828 (down_silently_base): Ditto.
4829 * ocd.c (ocd_start_remote): Ditto.
4830 * remote-rdp.c (remote_rdp_open): Ditto.
4831 * remote-mips.c (mips_initialize): Ditto.
4832 (common_open): Ditto.
4833 * remote-e7000.c (e7000_start_remote): Ditto.
4834 * m3-nat.c (select_thread): Ditto.
4835 * hppa-tdep.c (child_get_current_exception_event): Ditto.
4836 (child_get_current_exception_event): Ditto.
4837 * varobj.c (varobj_create): Ditto.
4838 (varobj_update): Ditto.
4839 (c_value_of_root): Ditto.
4840 * tracepoint.c (finish_tfind_command): Ditto.
4841 * corelow.c (core_open): Ditto.
4842 * arch-utils.c (generic_prepare_to_proceed): Ditto.
4843 * thread.c (info_threads_command): Ditto.
4844 (switch_to_thread): Ditto.
4845 * infrun.c (normal_stop): Ditto.
4846 (restore_selected_frame): Ditto.
4847 (restore_inferior_status): Ditto.
4848 * breakpoint.c (insert_breakpoints): Ditto.
4849 (watchpoint_check): Ditto.
4850 (bpstat_stop_status): Ditto.
4851 (do_enable_breakpoint): Ditto.
4852 * blockframe.c (flush_cached_frames): Ditto.
4853 (reinit_frame_cache): Ditto.
4854
71d6c7b1
AC
48552002-05-04 Andrew Cagney <ac131313@redhat.com>
4856
4857 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
4858 maintainer.
4859
cda6c68a
JB
48602002-05-04 Jim Blandy <jimb@redhat.com>
4861
4862 * gdbtypes.c (replace_type): Doc fix.
4863
5c1c87f0
AC
48642002-05-04 Andrew Cagney <ac131313@redhat.com>
4865
4866 * valprint.c (strcat_longest): Delete commented out function.
4867 Update copyright.
4868
cd9bfe15
AC
48692002-05-04 Andrew Cagney <ac131313@redhat.com>
4870
4871 * MAINTAINERS: Mark a29k as deleted.
4872 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
4873 Move new configurations to the top.
4874 * configure.tgt: Remove a29k.
4875 * config/a29k/tm-vx29k.h: Delete.
4876 * config/a29k/vx29k.mt: Delete.
4877 * config/a29k/tm-a29k.h: Delete.
4878 * config/a29k/a29k-udi.mt: Delete.
4879 * config/a29k/a29k.mt: Delete.
4880 * a29k-tdep.c: Delete.
4881 * remote-udi.c: Delete.
4882 * remote-mm.c: Delete.
4883 * remote-eb.c: Delete.
4884 * remote-adapt.c: Delete.
4885 * Makefile.in: Remove obsolete code.
4886 * gdbserver/Makefile.in: Ditto.
4887 * config/s390/s390x.mt: Ditto.
4888 * config/s390/s390.mt: Ditto.
4889 * config/sparc/sparclynx.mh: Ditto.
4890 * config/sparc/linux.mh: Ditto.
4891 * config/pa/hppaosf.mh: Ditto.
4892 * config/pa/hppabsd.mh: Ditto.
4893 * config/ns32k/nbsd.mt: Ditto.
4894 * config/mips/vr5000.mt: Ditto.
4895 * config/m68k/sun3os4.mh: Ditto.
4896 * config/m68k/nbsd.mt: Ditto.
4897 * config/m68k/m68klynx.mh: Ditto.
4898 * config/m32r/m32r.mt: Ditto.
4899 * config/i386/x86-64linux.mt: Ditto.
4900 * config/i386/nbsdelf.mt: Ditto.
4901 * config/i386/nbsd.mt: Ditto.
4902 * config/i386/i386lynx.mh: Ditto.
4903
bf0c5130
AC
49042002-05-04 Andrew Cagney <ac131313@redhat.com>
4905
4906 * target.c (debug_print_register): New function. Handle oversize
4907 registers.
4908 (debug_to_fetch_registers): Call.
4909 (debug_to_store_registers): Call.
4910
2ae1c2d2
JB
49112002-05-03 Jim Blandy <jimb@redhat.com>
4912
13a393b0
JB
4913 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
4914 (read_type): Doc fix.
4915 * gdbtypes.c (replace_type): Doc fix.
4916
2ae1c2d2
JB
4917 * stabsread.c (multiply_defined_struct): New complaint.
4918 (read_struct_type): If the type we were passed isn't empty, or
4919 incomplete, don't read the new struct type into it; complain,
4920 and return the original type unchanged. Take a new `type_code'
4921 argument, which is the type code for the new type.
4922 (read_type): Rather than storing the type's type code here, pass
4923 it as an argument to read_struct_type, and let that take care of
4924 storing it. That way, we don't overwrite the original type code,
4925 so read_struct_type can use it to decide whether we're overwriting
4926 something we shouldn't.
4927 (complain_about_struct_wipeout): New function.
4928
8de9bdc4
AC
49292002-05-03 Andrew Cagney <ac131313@redhat.com>
4930
4931 * gdbarch.sh: Assert that gdbarch is non-NULL.
4932 * gdbarch.c: Regenerate.
4933
f773fdbb
JM
49342002-05-03 Jason Merrill <jason@redhat.com>
4935
4936 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
4937 and return NULL.
4938
0e04a514
ML
49392002-05-03 Michal Ludvig <mludvig@suse.cz>
4940
4941 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
4942 (x86_64_dwarf2gdb_regno_map_length),
4943 (x86_64_dwarf2_reg_to_regnum): Added.
4944 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
4945 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
4946 (_initialize_x86_64_tdep): Synced with the change above.
4947 (x86_64_skip_prologue): Reformulated message.
4948
065432a8
PM
49492002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
4950
4951 * f-exp.y: Also use new prev_lexptr variable
4952 to improve error reporting. Based on Michael Snyder
4953 2002-04-24 dated patch to c-exp.y.
4954 * jv-exp.y: Likewise.
4955 * m2-exp.y: Likewise.
4956
a3162708
EZ
49572002-05-02 Elena Zannoni <ezannoni@redhat.com>
4958
4959 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
4960 we are dealing with vectors.
4961
03620c38
PM
49622002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
4963
4964 * config/m68k/tm-nbsd.h: Obvious fix,
4965 correct machine name.
4966
6604db2e
PM
49672002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
4968
4969 * p-typeprint.c (pascal_type_print_base): Add support
4970 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
4971
0906b739
PM
49722002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
4973
4974 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
4975 for fondamental pascal 'char' type.
4976
e2625b33
PM
49772002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
4978
4979 * p-lang.h (is_pascal_string_type): Declaration changed,
4980 new sixth argument of type char ** added.
361d1df0 4981 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
4982 changed. Args length_pos, length_size, string_pos, char_size
4983 can now be NULL. New argument arrayname set to the field
4984 name of the char array. Return value set to char array
4985 field index plus one.
361d1df0 4986 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
4987 is_pascal_string_type function.
4988
cf17c188
AC
49892002-05-02 Andrew Cagney <cagney@redhat.com>
4990
4991 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
4992 <cagney@redhat.com> change.
4993 * gdbarch.c: Regenerate.
4994
52bca491
AC
49952002-05-02 Andrew Cagney <cagney@redhat.com>
4996
4997 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
4998 before probing for a new one. Detect errorenous gdbarch_init
4999 functions.
5000 * gdbarch.c: Regenerate.
5001
d5e72505
AC
50022002-05-01 Andrew Cagney <cagney@redhat.com>
5003
5004 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5005 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5006 * config/v850/tm-v850.h: Ditto. Update copyright.
5007
af566d9f
AC
50082002-04-30 Andrew Cagney <ac131313@redhat.com>
5009
5010 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5011 current_gdbarch.
5012
880d85fa
MS
50132002-04-30 Michael Snyder <msnyder@redhat.com>
5014
94c30b78
MS
5015 * arm-tdep.c: Whitespace clean-ups.
5016 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
5017 should have been removed as part of 4/24 change.
5018
6f5987a6
KB
50192002-04-30 Kevin Buettner <kevinb@redhat.com>
5020
5021 * rs6000-tdep.c: Added comment describing how fpscr register
5022 numbers were chosen.
5023
1a113c93
MS
50242002-04-30 Michael Snyder <msnyder@redhat.com>
5025
5026 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5027
9a6f53fe
EZ
50282002-04-29 Elena Zannoni <ezannoni@redhat.com>
5029
5030 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5031 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5032 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5033
11ed25ac
KB
50342002-04-29 Kevin Buettner <kevinb@redhat.com>
5035
5036 From Louis Hamilton <hamilton@redhat.com>:
5037 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5038 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5039 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5040 not bfd-private xcoff data, to determine wordsize.
5041 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5042
ae232405
AC
50432002-04-29 Andrew Cagney <ac131313@redhat.com>
5044
5045 GDB 5.2 released from 5.2 branch.
5046
91fd20f7
ML
50472002-04-29 Michal Ludvig <mludvig@suse.cz>
5048
5049 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5050 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5051 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 5052
2dc5091b
EZ
50532002-04-29 Elena Zannoni <ezannoni@redhat.com>
5054
5055 * rs6000-tdep.c (rs6000_extract_return_value,
5056 rs6000_store_return_value): Handle returning vectors.
5057 (rs6000_gdbarch_init): Use
5058 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5059 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5060 New function.
5061 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5062 vectors.
5063 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5064 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 5065
2b9848d8
PM
50662002-04-24 Pierre Muller <ics.u-strasbg.fr>
5067
5068 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 5069 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
5070 with fprintf_unfiltered (gdb_stderr,...).
5071
f8d17dc5
PM
50722002-04-24 Pierre Muller <ics.u-strasbg.fr>
5073
5074 * remote-array.c (printf_monitor, write_monitor,
361d1df0 5075 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
5076 Replace fprintf (stderr,...
5077 with fprintf_unfiltered (gdb_stderr,....
5078 * remote-es.c: Likewise.
5079 * remote-os9k.c: Likewise.
5080 * remote-st.c: Likewise.
5081
2f2f1ad1
AS
50822002-04-28 Andreas Schwab <schwab@suse.de>
5083
5084 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5085 linux-proc.o and gcore.o.
5086
b6779aa2
AC
50872002-04-26 Michal Ludvig <mludvig@suse.cz>
5088
5089 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5090 code without frame pointers.
5091
7e57f5f4
AC
50922002-04-26 Andrew Cagney <ac131313@redhat.com>
5093
5094 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5095 ON_STACK is needed.
5096
2ceb85d0
BE
50972002-04-26 Ben Elliston <bje@redhat.com>
5098
5099 * target.c (do_xfer_memory): Correct reference to the new option
5100 "trust-readonly-sections".
5101
f5f8a009
EZ
51022002-04-26 Elena Zannoni <ezannoni@redhat.com>
5103
5104 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5105 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5106 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5107 vectors.
5108 (read_array_type): Record the fact that this array type is really a
5109 vector (i.e. are passed in by value).
5110
5868c862
JT
51112002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5112
5113 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5114 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5115 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5116 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5117 * alpha-linux-tdep.c: Include frame.h.
5118 (alpha_linux_sigcontext_addr): New function.
5119 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5120 alpha_linux_sigcontext_addr.
5121 * alpha-osf1-tdep.c: Include gdbcore.h.
5122 (alpha_osf1_sigcontext_addr): New function.
5123 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5124 alpha_osf1_sigcontext_addr.
5125 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5126 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5127
bfb01f37
AC
51282002-04-26 Andrew Cagney <ac131313@redhat.com>
5129
361d1df0 5130 * stack.c (selected_frame_level):
bfb01f37
AC
5131 (select_frame): Do not set selected_frame_level.
5132 * frame.h (selected_frame_level): Delete declaration.
5133
15813d3f
AC
51342002-04-26 Andrew Cagney <ac131313@redhat.com>
5135
5136 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5137 convert_from_func_ptr-addr when AIX / PowerOpen.
5138
6096c27a
AC
51392002-04-25 Andrew Cagney <ac131313@redhat.com>
5140
5141 * valops.c (hand_function_call): Call
5142 generic_save_call_dummy_addr.
5143 * frame.h (generic_save_call_dummy_addr): Declare.
5144 * blockframe.c (struct dummy_frame): Add fields call_lo and
5145 call_hi.
5146 (generic_find_dummy_frame): Check for PC in range call_lo to
5147 call_hi instead of entry_point_address.
5148 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5149 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5150 (generic_save_call_dummy_addr): New function.
5151
f510d44e
DM
51522002-04-24 David S. Miller <davem@redhat.com>
5153
5154 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5155 sparc_skip_prologue.
5156 (sparc_skip_prologue): Kill frameless_p arg, and use line number
5157 information to find prologue when possible.
5158 (sparc_prologue_frameless_p): Call examine_prologue directly.
5159 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5160 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5161 second argument.
5162 (SKIP_PROLOGUE): Likewise.
5163
15d72a92
JT
51642002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5165
5166 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5167 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5168 indicate that the condition it was testing is always true.
5169 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5170 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5171 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5172
accc6d1f
JT
51732002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5174
5175 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5176 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5177 tdep->jb_pc and tdep->jb_elt_size.
5178 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5179 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5180 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5181 * alpha-nat.c (get_longjmp_target): Remove.
5182 (JB_ELEMENT_SIZE): Ditto.
5183 (JB_PC): Ditto.
5184 * alpha-tdep.c (alpha_get_longjmp_target): New function.
5185 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
5186 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5187 to alpha_get_longjmp_target.
5188 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5189 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5190 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
5191
1bfdc549
AC
51922002-04-25 Andrew Cagney <ac131313@redhat.com>
5193
5194 * README: Update to GDB 5.2.
5195
1bd316f0
AC
51962002-04-25 Andrew Cagney <ac131313@redhat.com>
5197
5198 * gdbarch.sh (LC_ALL): Set to `c'.
5199
2e5ff58c
TR
52002002-04-25 Theodore A. Roth <troth@verinet.com>
5201
5202 * avr-tdep.c: Ran through gdb_indent.sh.
5203
e33ce519
TR
52042002-04-25 Theodore A. Roth <troth@verinet.com>
5205
5206 * MAINTAINERS: Add myself as AVR maintainer.
5207 * NEWS: Note new target avr.
5208
8818c391
TR
52092002-04-25 Theodore A. Roth <troth@verinet.com>
5210
5211 * Makefile.in: Add support for AVR target.
5212 * configure.tgt: Add support for AVR target.
5213 * avr-tdep.c: New file
5214 * config/avr/avr.mt: New file.
5215
79509c2d
TR
52162002-04-25 Theodore A. Roth <troth@verinet.com>
5217
5218 * MAINTAINERS: Add myself to write-after-approval.
5219
dac8068e
PM
52202002-04-24 Pierre Muller <ics.u-strasbg.fr>
5221
5222 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
5223 with fprintf_unfiltered (gdb_stderr,....
5224
25bf3106
PM
52252002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5226
5227 Fix PR gdb/508.
5228 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
5229
24467a86
PM
52302002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5231
5232 * p-exp.y: Also use new prev_lexptr variable
5233 to improve error reporting. Based on Michael Snyder
5234 2002-04-24 dated patch to c-exp.y.
5235
95b80706
JT
52362002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5237
5238 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
5239 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
5240 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
5241 to 0.
5242 * config/alpha/tm-alpha.h: Remove forward decls of struct type
5243 and struct value.
5244 (FUNCTION_START_OFFSET): Remove.
5245 (BREAKPOINT): Ditto.
5246
e90cc612
JT
52472002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5248
5249 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
5250 * NEWS: Ditto.
5251
6c72f9f9
JT
52522002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5253
5254 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
5255 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
5256 alpha_linux_pc_in_sigtramp.
5257 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
5258 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
5259 alpha_osf1_pc_in_sigtramp.
5260 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
5261 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
5262 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5263 alphafbsd_pc_in_sigtramp.
5264 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
5265 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5266 alphanbsd_pc_in_sigtramp.
5267 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
5268 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
5269
5e4f3379
JT
52702002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5271
5272 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5273
da8ca43d
JT
52742002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5275
5276 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
5277 alphanbsd-tdep.c.
5278 (alphanbsd-nat.o): New dependency list.
5279 (alphanbsd-tdep.o): Ditto.
5280 * NEWS: Note new native NetBSD/alpha configuration.
5281 * alphanbsd-nat.c: New file.
5282 * alphanbsd-tdep.c: Ditto.
5283 * configure.host (alpha*-*-netbsd*): New host.
5284 * configure.tgt (alpha*-*-netbsd*): New target.
5285 * config/alpha/nbsd.mh: New file.
5286 * config/alpha/nbsd.mt: Ditto.
5287 * config/alpha/nm-nbsd.h: Ditto.
5288 * config/alpha/tm-nbsd.h: Ditto.
5289
36a6271d
JT
52902002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5291
5292 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
5293 (alpha-osf1-tdep.o): New dependency list.
5294 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
5295 and skip_sigtramp_frame members.
5296 * alpha-linux-tdep.c: Include gdbcore.h.
5297 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
5298 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
5299 * alpha-osf1-tdep.c: New file.
5300 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
5301 alpha-osf1-dep.c.
5302 (alpha_frame_past_sigtramp_frame): New function.
5303 (alpha_dynamic_sigtramp_offset): Ditto.
5304 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
5305 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
5306 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
5307 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
5308 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
5309 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
5310 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
5311 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
5312 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
5313 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
5314 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
5315 to find_solib_trampoline_target.
5316 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
5317 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
5318 (SKIP_TRAMPOLINE_CODE): Remove.
5319 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5320 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5321 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5322 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5323 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
5324 (PROC_SIGTRAMP_MAGIC): Ditto.
5325 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5326 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5327 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5328 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5329 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5330
2f4bc57b
JT
53312002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5332
5333 * NEWS: Note that Alpha targets are now multi-arch.
5334
665132f9
MS
53352002-04-24 Michael Snyder <msnyder@redhat.com>
5336
5337 * parser-defs.h (prev_lexptr): New external variable.
5338 * parse.c (parse_exp_1): Set prev_lexptr to null before
5339 calling the language-specific parser.
5340 * c-exp.y (yylex): Set prev_lexptr to start of current token.
5341 (yyerror): Use prev_lexptr in error reporting.
5342
32872fa7
DJ
53432002-04-24 Daniel Jacobowitz <drow@mvista.com>
5344
5345 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
5346 * gregset.h: If FILL_FPXREGSET is defined, provide
5347 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
5348 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
5349 is defined, call fill_fpxregset.
5350
57e76fac
MS
53512002-04-24 Roland McGrath <roland@frob.com>
5352
5353 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
5354 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
5355 (supply_gregset, supply_fpregset): New functions.
5356
5357 * gnu-nat.c (gnu_find_memory_regions): New function.
5358 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
5359 (gnu_xfer_memory): Add a cast.
5360
f43845b3
MS
53612002-04-24 Michael Snyder <msnyder@redhat.com>
5362
361d1df0 5363 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
5364 loop. Add handling for "str lr, [sp, #-4]!" and for saves
5365 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 5366 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
5367 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
5368 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
5369
a0abec03
AC
5370Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
5371
5372 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
5373 NUM_PSEUDO_REGS can be used.
5374
d7bd68ca
AC
53752002-04-24 Andrew Cagney <ac131313@redhat.com>
5376
5377 * arch-utils.h: Update copyright.
5378
5379 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
5380 * gdbarch.h, gdbarch.c: Re-generate.
5381
5382 * inferior.h (IN_SIGTRAMP): Delete definition.
5383 * arch-utils.c (legacy_pc_in_sigtramp): New function.
5384 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
5385
5386 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
5387 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
5388 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
5389 (find_proc_framesize): Ditto.
5390 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
5391 (alpha_init_extra_frame_info): Ditto.
5392 * infrun.c (handle_inferior_event): Ditto.
5393 (handle_inferior_event): Ditto.
5394 (check_sigtramp2): Ditto.
5395 * blockframe.c (create_new_frame): Ditto.
5396 (get_prev_frame): Ditto.
5397 * ppc-linux-tdep.c: Update comments.
5398 * i386-linux-tdep.c: Update comments.
5399 * breakpoint.c (bpstat_what): Update comment.
5400
d06f167a
ML
54012002-04-24 Michal Ludvig <mludvig@suse.cz>
5402
5403 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
361d1df0 5404 (regsets_store_inferior_registers): Removed cast to int from
d06f167a
ML
5405 ptrace() calls.
5406 * gdbserver/regcache.h: Added declaration of struct inferior_info.
5407
4867e41e
DM
54082002-04-24 David S. Miller <davem@redhat.com>
5409
21d83aa5
DM
5410 * i960-tdep.c (register_in_window_p): New function.
5411 (i960_find_saved_register): Use it instead of
5412 REGISTER_IN_WINDOW_P.
5413 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
5414
4867e41e
DM
5415 * symtab.h (find_stab_function_addr): Kill extern.
5416 * minsyms.c (find_stab_function_addr): Remove from here...
5417 * dbxread.c: ... to here, and mark it static.
5418
69cdf6a2
DM
54192002-04-20 David S. Miller <davem@redhat.com>
5420
5421 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
5422 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
5423
5a595886
DM
54242002-04-21 David S. Miller <davem@redhat.com>
5425
5426 * remote-vxsparc.c (vx_read_register): Fix typo, we want
5427 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
5428 (vx_write_register): Likewise.
5429
1da1a192
JB
54302002-04-23 J. Brobecker <brobecker@gnat.com>
5431
5432 * source.c (is_regular_file): New function.
5433 (openp): Check wether file to open is a regular file
5434 to avoid opening directories.
5435
baa6f10b
JT
54362002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5437
5438 * findvar.c (extract_signed_integer): Cast printf argument
5439 to suppress format warning.
5440 (extract_unsigned_integer): Likewise.
5441 * infcmd.c (registers_info): Likewise.
5442 * top.c (get_prompt_1): Likewise.
5443 * valops.c (value_assign): Likewise.
5444 * valprint.c (print_decimal): Likewise.
5445
b2c4da81
L
54462002-04-22 H.J. Lu (hjl@gnu.org)
5447
5448 * c-exp.y (typebase): Support
361d1df0 5449
b2c4da81
L
5450 [long|long long|short] [signed|unsigned] [int|]
5451
5452 and
5453
5454 signed [long|long long|short] int
5455
f267bd6a
JT
54562002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5457
5458 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
5459 and vax-tdep.h.
5460 * vax-tdep.h: New file.
5461 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
5462 Make several routines static.
5463 (vax_get_saved_register): New function.
5464 (vax_gdbarch_init): New function.
5465 (_initialize_vax_tdep): Register vax_gdbarch_init.
5466 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
5467 Remove macros now under the control of gdbarch.
5468
da3c6d4a
MS
54692002-04-22 Michael Snyder <msnyder@redhat.com>
5470
11d3b27d
MS
5471 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
5472 Some whitespace and coding standards tweaks.
da3c6d4a 5473
a33f7558
JT
54742002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5475
5476 * vax-tdep.c: Include regcache.h.
5477 (vax_call_dummy_words): New.
5478 (sizeof_vax_call_dummy_words): New.
5479 (vax_fix_call_dummy): New function.
5480 (vax_saved_pc_after_call): Ditto.
5481 * config/vax/tm-vax.h: Don't include regcache.h.
5482 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
5483 (CALL_DUMMY): Remove.
5484 (CALL_DUMMY_WORDS): Define.
5485 (SIZEOF_CALL_DUMMY_WORDS): Define.
5486 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
5487
47a73475
MS
54882002-04-18 Michael Snyder <msnyder@redhat.com>
5489
5490 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
5491
52efde73
JT
54922002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5493
5494 * vax-tdep.c (vax_frame_chain): New function.
5495 (vax_push_dummy_frame): Ditto.
5496 (vax_pop_frame): Ditto.
5497 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
5498 (FRAMELESS_FUNCTION_INVOCATION): Use
5499 generic_frameless_function_invocation_not.
5500 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
5501 (POP_FRAME): Use vax_pop_frame.
5502
ea74468c
JT
55032002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5504
5505 * vax-tdep.c (vax_store_struct_return): New function.
5506 (vax_extract_return_value): Ditto.
5507 (vax_store_return_value): Ditto.
5508 (vax_extract_struct_value_address): Ditto.
5509 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
5510 vax_store_struct_return.
5511 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
5512 (STORE_RETURN_VALUE): Use vax_store_return_value.
5513 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
5514
5516aa92
JT
55152002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5516
5517 * vax-tdep.c (vax_frame_saved_pc): New function.
5518 (vax_frame_args_address_correct): Ditto.
5519 (vax_frame_args_address): Ditto.
5520 (vax_frame_locals_address): Ditto.
5521 (vax_frame_num_args): Move code to be in proximity to
5522 other frame-related functions.
5523 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
5524 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
5525 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
5526 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
5527 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
5528
36af0b35
L
55292002-04-22 H.J. Lu (hjl@gnu.org)
5530
5531 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
5532 includedir.
5533
ab62c900
JT
55342002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5535
5536 * vax-tdep.c (vax_frame_init_saved_regs): New function.
5537 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
5538 (FRAME_INIT_SAVED_REGS): New macro.
5539
7232b100
JT
55402002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5541
5542 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
5543
b70d2aee
JT
55442002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5545
5546 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
5547 where needed.
5548 (fetch_osf_core_registers): Likewise.
5549 (supply_gregset): Likewise.
5550
a0e8a2d1 55512002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 5552
a0e8a2d1
JB
5553 * symfile.h (get_section_index): Define.
5554 * symfile.c (get_section_index): New function.
5555 * mdebugread.c (SC_IS_SBSS): New macro.
5556 (SC_IS_BSS): Return true for the scBss storage class only, as
5557 the scSBss storage class refers to the .sbss section.
5558 (parse_partial_symbols): Discard the symbols which associated
5559 section does not exist.
5560 Make sure to use the .sbss section index for symbols which
5561 storage class is scBss, rather than using the .bss section index.
5562
51eb8b08
JT
55632002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5564
5565 * vax-tdep.c: Update copyright years.
5566 (vax_register_name): New function.
5567 (vax_register_byte): Ditto.
5568 (vax_register_raw_size): Ditto.
5569 (vax_register_virtual_size): Ditto.
5570 (vax_register_virtual_type): Ditto.
5571 * config/vax/tm-vax.h: Update copyright years.
5572 (REGISTER_NAMES): Remove.
5573 (REGISTER_NAME): Define.
5574 (REGISTER_BYTE): Use vax_register_byte.
5575 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
5576 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
5577 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
5578
6cc1c0a8
AC
55792002-04-21 Andrew Cagney <ac131313@redhat.com>
5580
5581 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
5582 declaration
5583 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
5584
9319a2fe
DM
55852002-04-21 David S. Miller <davem@redhat.com>
5586
5587 * arch-utils.c (generic_prologue_frameless_p): Kill
5588 SKIP_PROLOGUE_FRAMELESS_P code.
5589 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
5590 references.
5591 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
5592 * arc-tdep.c (arc_prologue_frameless_p): Implement.
5593 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
5594 references.
5595 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
5596 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
5597 (sparc_gdbarch_init): Pass it to
5598 set_gdbarch_prologue_frameless_p.
a0e8a2d1 5599
e9ed6d01
JT
56002002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5601
5602 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
5603 (alphabsd-nat.o): New dependency list.
5604
36012033
JT
56052002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5606
5607 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
5608 alphafbsd-tdep.c.
5609 (alpha-linux-tdep.o): New dependency list.
5610 (alphafbsd-tdep.o): Likewise.
5611
3379287a
JT
56122002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5613
5614 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
5615 to here...
5616 * alpha-tdep.c: ...from here.
5617 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
5618
4bcbd6cb
JT
56192002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5620
5621 * config/alpha/tm-alpha.h: Move alpha_software_single_step
5622 prototype from here...
5623 * alpha-tdep.h: ...to here.
5624
b31da25e
AC
56252002-04-21 Andrew Cagney <ac131313@redhat.com>
5626
5627 * frame.h (selected_frame_level): Document as deprecated.
5628 (frame_relative_level): Declare.
5629 * stack.c (frame_relative_level): New function.
5630 (selected_frame_level): Document as deprecated.
5631 (select_frame): Do not set the selected_frame_level.
5632
5633 * stack.c (frame_info, record_selected_frame): Update.
5634 (frame_command, current_frame_command): Update.
5635 (up_silently_base, up_command, down_silently_base): Update.
5636 (down_command): Update.
5637 * inflow.c (kill_command): Update.
5638 * tracepoint.c (finish_tfind_command): Update.
5639 * corelow.c (core_open): Update.
5640 * thread.c (info_threads_command): Update.
5641 (do_captured_thread_select): Update.
5642 * infcmd.c (finish_command): Update.
5643 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
5644
9c1d6fe5
JT
56452002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5646
5647 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
5648
ab89facf
AC
56492002-04-21 Andrew Cagney <ac131313@redhat.com>
5650
5651 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
5652 type const.
5653
82a4efa1
JT
56542002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5655
5656 * alphafbsd-tdep.c: Update copyright years. Include
5657 alpha-tdep.h.
5658 (alphafbsd_use_struct_convention): Make static.
5659 (alphafbsd_init_abi): New function.
5660 (_initialize_alphafbsd_tdep): New function.
5661 * config/alpha/tm-fbsd.h: Update copyright years.
5662 (USE_STRUCT_CONVENTION): Remove.
5663
44dffaac
JT
56642002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5665
5666 * alpha-tdep.c (alpha_abi_handler): New structure to describe
5667 an Alpha ABI variant.
5668 (alpha_abi_handler_list): Declare.
5669 (alpha_gdbarch_register_os_abi): New function.
5670 (alpha_gdbarch_init): Give registered ABI variant handlers a
5671 chance to tweak the gdbarch once we have set up defaults.
5672 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
5673
65585be4
JT
56742002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5675
5676 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
5677 to standard_coerce_float_to_double.
5678 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
5679
d9b023cc
JT
56802002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5681
5682 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
5683 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
5684 from gdbarch_tdep rather than a constant.
5685 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
5686 the default text address for all Alpha Unix ABIs.
5687 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
5688 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
5689
dc129d82
JT
56902002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5691
5692 * alpha-tdep.h: New file. Includes several Alpha target constants
5693 taken from...
5694 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
5695 let gdbarch deal with.
5696 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
5697 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
5698 to dependency list.
5699 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
5700 Alpha target register names.
5701 * alphabsd-nat.c: Likewise.
5702 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
5703 Alpha target register names. Make serveral routines static.
5704 (alpha_get_saved_register): New function.
5705 (alpha_abi_names): New.
5706 (process_note_abi_tag_sections): New function.
5707 (get_elfosabi): New function.
5708 (alpha_gdbarch_init): New function.
5709 (alpha_dump_tdep): New function.
5710 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
5711
d49d1e0a
AC
57122002-04-21 Andrew Cagney <ac131313@redhat.com>
5713
5714 * frame.c (find_saved_register): Delete #ifdef
5715 HAVE_REGISTER_WINDOWS code.
5716 * config/sparc/tm-sparc.h: Update comments.
5717 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
5718
92e8c9ed
AC
57192002-04-21 Andrew Cagney <ac131313@redhat.com>
5720
5721 * i960-tdep.c (i960_find_saved_register): New function.
5722 (i960_get_saved_register): New function.
5723 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
5724 (i960_get_saved_register): Declare.
5725 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
5726
e1925118
DM
57272002-04-20 David S. Miller <davem@redhat.com>
5728
5729 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
5730
29673b29
AC
57312002-04-20 Andrew Cagney <ac131313@redhat.com>
5732
5733 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
5734 instead of NUM_PSEUDO_REGS.
5735
6c86dcd5
DM
57362002-04-20 David S. Miller <davem@redhat.com>
5737
5738 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
5739 GDB_MULTI_ARCH_PARTIAL
5740 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
5741 define, let tm-sp64.h do it.
5742
aa40ec90
JT
57432002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
5744
5745 * frame.c (find_saved_register): Avoid a NULL pointer
5746 dereference and actually walk the frame list.
5747
0f79675b
AC
57482002-04-20 Andrew Cagney <ac131313@redhat.com>
5749
5750 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
5751 sorted in most most-recent-used order. Document.
5752 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 5753
c04a1aa8
DJ
57542002-04-20 Daniel Jacobowitz <drow@mvista.com>
5755
5756 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
5757 (add_inferior): Call create_register_cache.
5758 (clear_inferiors): Call free_register_cache.
5759 (inferior_regcache_data, set_inferior_regcache_data): New functions.
5760 * gdbserver/regcache.c (struct inferior_regcache_data): New.
5761 (registers): Remove.
5762 (get_regcache): New function.
5763 (create_register_cache, free_register_cache): New functions.
5764 (set_register_cache): Don't initialize the register cache here.
5765 (registers_to_string, registers_from_string, register_data): Call
5766 get_regcache.
5767 * gdbserver/regcache.h: Add prototypes.
5768 * gdbserver/server.h: Likewise.
5769
611cb4a5
DJ
57702002-04-20 Daniel Jacobowitz <drow@mvista.com>
5771
5772 * gdbserver/mem-break.c: New file.
5773 * gdbserver/mem-break.h: New file.
5774 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
5775 dependencies.
5776 * gdbserver/inferiors.c (struct inferior_info): Add target_data
5777 member.
5778 (clear_inferiors): Free target_data member if set.
5779 (inferior_target_data, set_inferior_target_data): New functions.
5780 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
5781 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
5782 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
5783 (struct inferior_linux_data): New.
5784 (linux_create_inferior): Use set_inferior_target_data.
5785 (linux_attach): Likewise. Call add_inferior.
5786 (linux_wait_for_one_inferior): New function.
5787 (linux_wait): Call it.
5788 (linux_write_memory): Add const.
5789 (initialize_low): Call set_breakpoint_data.
5790 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
5791 handling members.
5792 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
5793 call.
5794 * gdbserver/server.h: Include mem-break.h. Update inferior.c
5795 prototypes.
5796 * gdbserver/target.c (read_inferior_memory)
5797 (write_inferior_memory): New functions.
5798 * gdbserver/target.h (read_inferior_memory)
5799 (write_inferior_memory): Change macros to prototypes.
5800 (struct target_ops): Update comments. Add const to write_memory
5801 definition.
5802
f91305dd 58032002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
5804
5805 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
5806 instead of ->prev.
5807 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
5808 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
5809 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
5810 instead of ->prev.
5811
73d322b1
EZ
58122002-04-19 Elena Zannoni <ezannoni@redhat.com>
5813
5814 Fix PR gdb/471.
5815 * gdbtypes.c (init_simd_type): Rewrite using new functions.
5816 (build_builtin_type_vec128): Ditto.
5817 (append_composite_type_field): Fix calculation of type length in
5818 union case.
5819
ccd9a834
EZ
58202002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
5821
5822 * config/djgpp/README: Update.
5823
5824 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
5825 compiler warnings.
5826
a57f9e49
JT
58272002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
5828
5829 * alpha-tdep.c (setup_arbitrary_frame): Rename...
5830 (alpha_setup_arbitrary_frame): ...to this.
5831 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
5832 for alpha_setup_arbitrary_frame.
5833
f4f9705a
AC
58342002-04-18 Andrew Cagney <cagney@redhat.com>
5835
5836 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
5837 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 5838
f4f9705a
AC
5839 * defs.h (breakpoint_from_pc_fn): Delete type definition.
5840 * target.h (memory_breakpoint_from_pc): Update declaration.
5841 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
5842
5843 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
5844 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
5845 * mem-break.c (memory_breakpoint_from_pc): Ditto.
5846 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
5847 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
5848 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
5849 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
5850 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
5851 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
5852 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
5853 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
5854 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
5855
5856 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
5857 const pointer.
5858 * monitor.c (monitor_insert_breakpoint): Ditto.
5859 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
5860
5861 * config/mcore/tm-mcore.h: Update copyright.
5862 * mem-break.c: Ditto.
5863 * xstormy16-tdep.c: Ditto.
5864
29f319b8
PM
58652002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
5866
5867 * p-exp.y: Add precedence rule for '^' token.
5868 This removes the shift/reduce conflicts.
5869 Remove the comment concerning these shift/reduce conflicts.
5870
ebeac11a
EZ
58712002-04-18 Elena Zannoni <ezannoni@redhat.com>
5872
5873 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
5874 (registers_powerpc_nofp): New register set for processors
5875 without floating point unit.
5876
27c31547
DM
58772002-04-18 David S. Miller <davem@redhat.com>
5878
5879 * MAINTAINERS: Add myself to write-after-approval.
5880
47a73475
MS
58812002-04-17 Michael Snyder <msnyder@redhat.com>
5882
5883 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
5884
953836b2
AC
58852002-04-17 Andrew Cagney <ac131313@redhat.com>
5886
5887 * rs6000-tdep.c (frame_initial_stack_address): Use
5888 frame_register_read to read the alloca_reg.
5889
8b0d4340
AC
58902002-04-17 Andrew Cagney <ac131313@redhat.com>
5891
5892 * frame.c (find_saved_register): Find saved registers in the next
5893 not prev frame.
5894 Fix PR gdb/365.
5895
d8864532
AC
58962002-04-17 Andrew Cagney <ac131313@redhat.com>
5897
5898 * gdbarch.sh (LANG): Set to ``c''.
5899
36cc83a3 59002002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 5901
36cc83a3 5902 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 5903
2f4150cc 59042002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
5905
5906 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
5907 Update copyright.
5908
628703c6 5909 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 5910 Also fix PR gdb/391.
361d1df0 5911
56157b4a
AC
59122002-04-14 Andrew Cagney <ac131313@redhat.com>
5913
5914 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
5915 * aclocal.m4, configure: Re-generate.
5916 Fix PR gdb/391.
361d1df0 5917
6d1e3329
EZ
59182002-04-14 Elena Zannoni <ezannoni@redhat.com>
5919
5920 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
5921 instead of tm_print_insn.
5922
cb06fa07
EZ
59232002-04-14 Elena Zannoni <ezannoni@redhat.com>
5924
5925 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
5926
f208ba17
AC
59272002-04-14 Andrew Cagney <ac131313@redhat.com>
5928
5929 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
5930 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
5931 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
5932
20f01a46
DH
59332002-04-12 Don Howard <dhoward@redhat.com>
5934
5935 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
5936 max_user_call_depth.
5937 (init_cmd_lists): Initialize the new value;
5938 * cli/cli-script.c (execute_user_command): Limit the call depth of
5939 user defined commands. This avoids a core-dump when user commands
5940 are infinitly recursive.
5941
a88376a3
KB
59422002-04-12 Kevin Buettner <kevinb@redhat.com>
5943
5944 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
5945 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
5946 from tdep struct instead of DEFAULT_LR_SAVE.
5947 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
5948 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
5949 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
5950
f2172603
MS
59512002-04-12 Michael Snyder <msnyder@redhat.com>
5952
694f61fb 5953 * Remote.c: Spelling fix.
20fe79c8
MS
5954 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
5955 If no symbol found for "sbrk", try "_sbrk".
5956 (make_output_phdrs): Use bfd_section_name.
5957 (gcore_copy_callback): Use bfd_section_name.
62995fc4 5958 * eval.c: Indentation fix-ups.
169a7369
MS
5959 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
5960 in case it gets applied to an address that is already
5961 in the instruction space.
de74f71f
MS
5962 * cli/cli-decode.c (help_list): Allow long lines to wrap.
5963 * symfile.c: Fix indentation, long lines.
f2172603
MS
5964 * source.c: White space fix-up.
5965
cda5a58a
AC
59662002-04-12 Andrew Cagney <cagney@redhat.com>
5967
5968 * defs.h (read_relative_register_raw_bytes): Delete declaration.
5969 * frame.c (frame_register_read): New function. Return non-zero on
5970 success.
5971 (read_relative_register_raw_bytes_for_frame): Delete.
5972 (read_relative_register_raw_bytes): Delete.
5973 * frame.h (frame_register_read): Declare.
5974 * d30v-tdep.c: Update Copyright. Use frame_register_read.
5975 * sh-tdep.c: Ditto.
5976 * infcmd.c (do_registers_info): Ditto.
5977 * hppa-tdep.c: Ditto.
5978 * rs6000-tdep.c: Ditto.
5979 * h8500-tdep.c: Ditto.
5980 * mips-tdep.c: Ditto.
5981 * h8300-tdep.c: Ditto.
5982 * z8k-tdep.c: Ditto.
5983
2ea5f656
KB
59842002-04-12 Kevin Buettner <kevinb@redhat.com>
5985
5986 From Jimi X <jimix@watson.ibm.com>:
5987 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
5988 64-bit SysV ABI.
5989
27b15785
KB
59902002-04-12 Kevin Buettner <kevinb@redhat.com>
5991
5992 From Jimi X <jimix@watson.ibm.com>:
5993 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
5994 bfd info.
5995
5d57ee30
KB
59962002-04-12 Kevin Buettner <kevinb@redhat.com>
5997
5998 From Jimi X <jimix@watson.ibm.com>:
5999 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6000 register sets for these processor variants.
6001
bc1e36ca
DJ
60022002-04-11 Daniel Jacobowitz <drow@mvista.com>
6003
6004 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
6005 registers which are allowed to fail to store.
6006 * gdbserver/linux-low.h (linux_target_ops): Likewise.
6007 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
6008 (ppc_cannot_store_register): FPSCR may not be storable.
6009 * regformats/reg-ppc.dat: Support FPSCR.
6010
e3f36dbd
KB
60112002-04-11 Kevin Buettner <kevinb@redhat.com>
6012
6013 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6014 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6015 Add fpscr as an invalid/unfetchable register.
6016 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6017 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6018 (fill_fpregset): Add support for register fpscr.
6019 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6020 (fill_gregset): Account for the fact that register ``mq'' might
6021 not exist.
6022 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6023 (registers_power): Add fpscr to register set at slot 71.
6024 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6025 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6026
943c9c25
MS
60272002-04-11 Michael Snyder <msnyder@redhat.com>
6028
6029 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6030 * configure: Regenerate.
6031 * config.in: Regenerate.
6032 * acconfig.h: Add define for _SYSCALL32.
6033 * core-sol2.c: Remove #define _SYSCALL32.
6034 * solib-legacy.c: Remove #define _SYSCALL32.
6035
d8c0a2e7
AC
60362002-04-10 Andrew Cagney <ac131313@redhat.com>
6037
6038 * stack.c (select_frame): Cleanup internal error message, do not
6039 use %p.
6040
7cc19214
AC
60412002-04-10 Andrew Cagney <ac131313@redhat.com>
6042
6043 * stack.c (select_frame): Check that selected_frame and the
6044 specified level are as expected.
6045 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6046 Update copyright.
6047 * frame.h (struct frame_info): Add field `level'. Update
6048 copyright.
6049 Work-in-progress PR gdb/464.
6050
67a2b77e
AC
60512002-04-10 Andrew Cagney <ac131313@redhat.com>
6052
6053 * maint.c (maint_print_section_info): Rename print_section_info.
6054 (print_bfd_section_info, print_objfile_section_info): Update.
6055 * inferior.h (struct gdbarch): Add opaque declaration.
6056 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6057 * gdbarch.h: Regenerate.
6058
8cfda98c
ML
60592002-04-10 Michal Ludvig <mludvig@suse.cz>
6060
6061 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6062 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6063 (kernel_u_size): Added.
6064 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6065 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6066
ca439ad2 60672002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 6068
ca439ad2
JI
6069 * valarith.c (find_size_for_pointer_math): New function, either returns
6070 the size for a pointer's target, returns 1 for void *, or errors for
6071 incomplete types.
6072 (value_add, value_sub): use find_size_for_pointer_math.
6073
2f2893d9
DJ
60742002-04-09 Daniel Jacobowitz <drow@mvista.com>
6075
6076 * linux-low.c (linux_look_up_symbols): New hook.
6077 (linux_target_ops): Add linux_look_up_symbols.
6078 * remote-utils.c (decode_address): New function.
6079 (look_up_one_symbol): New function.
6080 * server.c (handle_query): Call target look_up_symbols hook.
6081 * server.h (look_up_one_symbol): Add prototype.
6082 * target.h (struct target_ops): Add look_up_symbols hook.
6083
2ec06d2e
DJ
60842002-04-09 Daniel Jacobowitz <drow@mvista.com>
6085
d64b8841
DJ
6086 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
6087 * ChangeLog: Correct paths in last ChangeLog entry.
6088
60892002-04-09 Daniel Jacobowitz <drow@mvista.com>
6090
6091 * gdbserver/linux-low.h: Remove obsolete prototypes.
2ec06d2e
DJ
6092 (struct linux_target_ops): New.
6093 (extern the_low_target): New.
d64b8841 6094 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2ec06d2e
DJ
6095 (register_addr): Use the_low_target explicitly.
6096 (fetch_register): Likewise.
6097 (usr_fetch_inferior_registers): Likewise.
6098 (usr_store_inferior_registers): Likewise.
d64b8841 6099 * gdbserver/linux-arm-low.c (num_regs): Remove.
2ec06d2e
DJ
6100 (arm_num_regs): Define.
6101 (arm_regmap): Renamed from regmap, made static.
6102 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
6103 made static.
6104 (arm_cannot_store_register): Renamed from cannot_store_register,
6105 made static.
6106 (the_low_target): New.
d64b8841 6107 * gdbserver/linux-i386-low.c (num_regs): Remove.
2ec06d2e
DJ
6108 (i386_num_regs): Define.
6109 (i386_regmap): Renamed from regmap, made static.
6110 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
6111 made static.
6112 (i386_cannot_store_register): Renamed from cannot_store_register,
6113 made static.
6114 (the_low_target): New.
d64b8841 6115 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2ec06d2e
DJ
6116 (ia64_num_regs): Define.
6117 (ia64_regmap): Renamed from regmap, made static.
6118 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
6119 made static.
6120 (ia64_cannot_store_register): Renamed from cannot_store_register,
6121 made static.
6122 (the_low_target): New.
d64b8841 6123 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2ec06d2e
DJ
6124 (m68k_num_regs): Define.
6125 (m68k_regmap): Renamed from regmap, made static.
6126 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
6127 made static.
6128 (m68k_cannot_store_register): Renamed from cannot_store_register,
6129 made static.
6130 (the_low_target): New.
d64b8841 6131 * gdbserver/linux-mips-low.c (num_regs): Remove.
2ec06d2e
DJ
6132 (mips_num_regs): Define.
6133 (mips_regmap): Renamed from regmap, made static.
6134 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
6135 made static.
6136 (mips_cannot_store_register): Renamed from cannot_store_register,
6137 made static.
6138 (the_low_target): New.
d64b8841 6139 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2ec06d2e
DJ
6140 (ppc_num_regs): Define.
6141 (ppc_regmap): Renamed from regmap, made static.
6142 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
6143 made static.
6144 (ppc_cannot_store_register): Renamed from cannot_store_register,
6145 made static.
6146 (the_low_target): New.
d64b8841 6147 * gdbserver/linux-s390-low.c (num_regs): Remove.
2ec06d2e
DJ
6148 (s390_num_regs): Define.
6149 (s390_regmap): Renamed from regmap, made static.
6150 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
6151 made static.
6152 (s390_cannot_store_register): Renamed from cannot_store_register,
6153 made static.
6154 (the_low_target): New.
d64b8841 6155 * gdbserver/linux-sh-low.c (num_regs): Remove.
2ec06d2e
DJ
6156 (sh_num_regs): Define.
6157 (sh_regmap): Renamed from regmap, made static.
6158 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
6159 made static.
6160 (sh_cannot_store_register): Renamed from cannot_store_register,
6161 made static.
6162 (the_low_target): New.
d64b8841 6163 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2ec06d2e
DJ
6164 (the_low_target): New.
6165
96cb11df
AC
61662002-04-09 Andrew Cagney <ac131313@redhat.com>
6167
6168 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6169 override FP_REGNUM with frame->fp. Update copyright.
6170 * parse.c (num_std_regs, std_regs): Delete.
6171 (target_map_name_to_register): Do not search std_regs. Update
6172 function description.
6173 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6174 declarations. Update copyright.
6175 Fix PR gdb/251.
361d1df0 6176
c3a3ccc7
DJ
61772002-04-09 Daniel Jacobowitz <drow@mvista.com>
6178
6179 * gdbserver/Makefile.in: Add stamp-h target.
6180 * gdbserver/configure.in: Create stamp-h.
6181 * gdbserver/configure: Regenerated.
6182
ce3a066d
DJ
61832002-04-09 Daniel Jacobowitz <drow@mvista.com>
6184
6185 * gdbserver/inferiors.c: New file.
6186 * gdbserver/target.c: New file.
6187 * gdbserver/target.h: New file.
6188 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
6189 dependencies.
6190 * gdbserver/linux-low.c (inferior_pid): New static variable,
6191 moved from server.c.
6192 (linux_create_inferior): Renamed from create_inferior.
6193 Call add_inferior. Return 0 on success instead of a PID.
6194 (linux_attach): Renamed from myattach.
6195 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
6196 (linux_thread_alive): Renamed from mythread_alive.
6197 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
6198 child dies.
6199 (linux_resume): Renamed from myresume. Add missing ``return 0''.
6200 (regsets_store_inferior_registers): Correct error message.
6201 Add missing ``return 0''.
6202 (linux_fetch_registers): Renamed from fetch_inferior_registers.
6203 (linux_store_registers): Renamed from store_inferior_registers.
6204 (linux_read_memory): Renamed from read_inferior_memory.
6205 (linux_write_memory): Renamed from write_inferior_memory.
6206 (linux_target_ops): New structure.
6207 (initialize_low): Call set_target_ops ().
6208 * gdbserver/remote-utils.c (unhexify): New function.
6209 (hexify): New function.
6210 (input_interrupt): Send signals to ``signal_pid''.
6211 * gdbserver/server.c (inferior_pid): Remove.
6212 (start_inferior): Update create_inferior call.
6213 (attach_inferior): Call add_inferior.
6214 (handle_query): New function.
6215 (main): Call handle_query for `q' packets.
6216 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
6217 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
6218
0729219d
DJ
62192002-04-09 Daniel Jacobowitz <drow@mvista.com>
6220
6221 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
6222 dependencies.
6223 * gdbserver/configure.in: Check for <string.h>
6224 * gdbserver/configure: Regenerate.
6225 * gdbserver/config.in: Regenerate.
6226 * gdbserver/gdbreplay.c: Include needed system headers.
6227 (remote_open): Remove strchr prototype.
6228 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
6229 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
6230 (supply_register_by_name): Likewise.
6231 (collect_register): Change buf argument to void *.
6232 (collect_register_by_name): Likewise.
6233 * gdbserver/regcache.h: Add missing prototypes.
6234 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
6235 * gdbserver/server.c (handle_query): New function.
6236 (attached): New static variable, moved out of main.
6237 (main): Quiet longjmp clobber warnings.
6238 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
6239 * gdbserver/utils.c (error): Remove NORETURN.
6240 (fatal): Likewise.
6241
97658e92
DJ
62422002-04-09 Daniel Jacobowitz <drow@mvista.com>
6243
6244 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6245 after the last symbol in a block.
6246
6044e3eb
PM
62472002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
6248
6249 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6250 is non zero as a found symbol.
6251
0406ec40
AC
62522002-04-08 Andrew Cagney <ac131313@redhat.com>
6253
6254 * findvar.c: Include "builtin-regs.h".
6255 (value_of_register): Call value_of_builtin_reg when applicable.
6256 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6257 (target_map_name_to_register): Call
6258 builtin_reg_map_name_to_regnum.
6259 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6260 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6261 (builtin_regs_h): Define.
6262 (builtin-regs.o): New target.
6263 (findvar.o): Add $(builtin_regs_h).
6264 * builtin-regs.c, builtin-regs.h: New files.
6265 * std-regs.c: New file.
6266 Partial fix for PR gdb/251.
6267
56a6dfb9
KB
62682002-04-08 Kevin Buettner <kevinb@redhat.com>
6269
6270 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6271 it's no longer required.
6272
3a808432
AC
62732002-04-08 Andrew Cagney <ac131313@redhat.com>
6274
6275 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6276
7c40d541
KB
62772002-04-08 Kevin Buettner <kevinb@redhat.com>
6278
6279 From Jimi X <jimix@watson.ibm.com>:
6280 * rs6000-tdep.c (rs6000_software_single_step): Use
6281 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6282 and size. Use target_insert_breakpoint() and
6283 target_remove_breakpoint() to insert and remove breakpoints
6284 instead of explicit memory reads and writes.
6285
cc9836a8
KB
62862002-04-08 Kevin Buettner <kevinb@redhat.com>
6287
6288 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6289 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6290 ELF_OBJECT_FORMAT ifdef.
6291
7495d1dc
KB
62922002-04-08 Kevin Buettner <kevinb@redhat.com>
6293
6294 From Jimi X <jimix@watson.ibm.com>:
6295 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6296
4288e836
KB
62972002-04-08 Kevin Buettner <kevinb@redhat.com>
6298
6299 From Jimi X <jimix@watson.ibm.com>:
6300 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6301 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6302
a4e4e501
MK
63032002-04-07 Mark Kettenis <kettenis@gnu.org>
6304
6305 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6306 s/asprintf/xasprintf/.
6307 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6308
006defba
AC
63092002-04-07 Andrew Cagney <ac131313@redhat.com>
6310
6311 I believe Jeff Law denies responsability for this one:
6312 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6313 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6314 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6315 Work-around for PR gdb/366.
6316
7aa83cac
EZ
63172002-04-07 Elena Zannoni <ezannoni@redhat.com>
6318
6319 * remote-e7000.c (write_small, e7000_read_inferior_memory,
6320 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6321 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6322
cf1fcca1
EZ
63232002-04-07 Elena Zannoni <ezannoni@redhat.com>
6324
6325 * sh-tdep.c (sh_fp_frame_init_saved_regs,
6326 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6327 information.
6328
3f289e6f
AC
63292002-04-07 Andrew Cagney <ac131313@redhat.com>
6330
6331 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
6332 maintainer.
6333
129188f6
AC
63342002-04-07 Andrew Cagney <ac131313@redhat.com>
6335
6336 * README (Reporting Bugs in GDB): Document the bug web page as the
6337 prefered way of submitting bugs.
6338 Fix PR gdb/402.
6339
1200cd6e
AC
63402002-04-06 Andrew Cagney <ac131313@redhat.com>
6341
6342 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
6343 -1. Update comment.
6344 * gdbarch.h, gdbarch.c: Re-generate.
6345
2853c33c
AS
63462002-04-07 Andreas Schwab <schwab@suse.de>
6347
6348 * m68klinux-nat.c (fill_fpregset): Properly pass address of
6349 buffer to regcache_collect.
6350
c2169756
AC
63512002-04-06 Andrew Cagney <ac131313@redhat.com>
6352
6353 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
6354 * gdbarch.c, gdbarch.h: Re-generate.
6355
25f1b008
AC
63562002-04-06 Andrew Cagney <ac131313@redhat.com>
6357
6358 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
6359 declaration. Fix -Werror.
6360
59263426
DJ
63612002-04-05 Daniel Jacobowitz <drow@mvista.com>
6362
6363 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
6364 * gdbarch.c: Regenerate.
6365
f5db4da3
MS
63662002-04-05 Michael Snyder <msnyder@redhat.com>
6367
80f8a6eb
MS
6368 * breakpoint.c (clear_command): Rewrite middle section to
6369 combine two loops with identical control conditions.
6370 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
6371 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
6372
ad3dcc5c
L
63732002-04-05 H.J. Lu (hjl@gnu.org)
6374
6375 * solib-svr4.c (bkpt_names): Add "__start".
6376
f32e7a74
AC
63772002-04-04 Andrew Cagney <ac131313@redhat.com>
6378
6379 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
6380 as test for 64 bit target.
6381
8227c0ff
AC
63822002-04-05 Andrew Cagney <ac131313@redhat.com>
6383
6384 * h8500-tdep.c (h8500_write_fp): Delete function.
6385 * dwarf2cfi.c (cfi_write_fp): Document as not used.
6386 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
6387 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
6388 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
6389 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
6390 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
6391 (s390_write_fp):
6392 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
6393 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
6394 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
6395 (d10v_write_fp): Delete function.
6396 * inferior.h (write_fp, generic_target_write_fp): Delete
6397 declarations.
6398 * regcache.c (generic_target_write_fp): Delete function.
6399 (write_fp): Delete function.
6400 * gdbarch.sh (TARGET_WRITE_FP): Delete.
6401 * gdbarch.h, gdbarch.c: Regenerate.
6402 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
6403 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
6404 (sparc64_write_fp): Delete declaration.
6405 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
6406 (h8500_write_fp): Delete declaration.
6407
2757dd86
AC
64082002-04-04 Andrew Cagney <ac131313@redhat.com>
6409
6410 * sparc-tdep.c (sparc64_write_fp): Delete.
6411 (sparc_push_dummy_frame): Replace write_fp call with code to store
6412 the FP directly.
6413 (sparc_gdbarch_init): Do not initialize write_fp.
6414
c69255e1
KB
64152002-04-05 Kevin Buettner <kevinb@redhat.com>
6416
6417 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
6418 clause.
6419
ae767bfb
JB
64202002-03-29 Jim Blandy <jimb@redhat.com>
6421
6422 * stack.c (get_selected_block): Add new argument `addr_in_block',
6423 used to return the exact code address we used to select the block,
6424 not just the block.
6425 * blockframe.c (get_frame_block, get_current_block): Same.
6426 * frame.h (get_frame_block, get_current_block,
6427 get_selected_block): Update declarations.
6428 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
6429 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
6430
84d2ac95
MS
64312002-04-05 Michael Snyder <msnyder@redhat.com>
6432
6433 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
6434 warning message.
6435
596aa3bf
JB
64362002-04-05 J. Brobecker <brobecker@gnat.com>
6437
6438 * utils.c (xfullpath): New function.
6439 * defs.h (xfullpath): Add declaration.
6440 * source.c (openp): Use xfullpath in place of gdb_realpath to
6441 avoid resolving the basename part of filenames when the
6442 associated file is a symbolic link. This fixes a potential
6443 inconsistency between the filenames known to GDB and the
6444 filenames it prints in the annotations.
6445 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
6446 to be able to match a filename with either the real filename, or
6447 the name of any symbolic link to this file.
6448 (lookup_partial_symtab): Ditto.
6449
c02f5703
MS
64502002-04-04 Michael Snyder <msnyder@redhat.com>
6451
6452 * breakpoint.c: Add support for hardware breakpoints in overlays.
6453 (overlay_events_enabled): New state variable.
6454 (insert_breakpoints): Use overlay_events_enabled to decide
6455 whether to attempt to set a breakpoint at the overlay load addr.
6456 Handle bp_hardware_breakpoint as well as bp_breakpoint.
6457 (remove_breakpoint): Use overlay_events_enabled to decide
6458 whether breakpoints need to be removed from overlay load addr.
6459 Handle bp_hardware_breakpoint as well as bp_breakpoint.
6460 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 6461 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
6462 disable_overlay_breakpoints): Update overlay_events_enabled.
6463
5fb290d7
DJ
64642002-04-04 Daniel Jacobowitz <drow@mvista.com>
6465
6466 * dwarf2read.c (struct function_range): New.
6467 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
6468 (check_cu_functions): New.
6469 (read_file_scope): Initialize global function lists.
6470 Call dwarf_decode_line after processing children.
6471 (read_func_scope): Add to global function list.
6472 (dwarf_decode_lines): Call check_cu_functions everywhere
6473 record_line is called. Call record_line with a linenumber
6474 of 0 to mark sequence ends.
6475
7b3fabf0
ML
64762002-04-04 Michal Ludvig <mludvig@suse.cz>
6477
361d1df0 6478 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
6479 change sync with glibc.
6480
bce58c09
JB
64812002-04-03 Jim Blandy <jimb@redhat.com>
6482
6483 * configure.in: Call AC_C_INLINE.
6484 * configure: Regenerated.
361d1df0 6485
2fccf04a
DJ
64862002-04-01 Daniel Jacobowitz <drow@mvista.com>
6487
6488 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
6489 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
6490
2d1bfe2e
MK
64912002-03-31 Mark Kettenis <kettenis@gnu.org>
6492
a5941fbf
MK
6493 * NEWS: Mention gcore support on FreeBSD/i386.
6494
a90cd31d
MK
6495 * fbsd-proc.c: New file.
6496 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
6497 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
6498
2d1bfe2e
MK
6499 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
6500 while statement.
6501
9eb6e5a1
JB
65022002-03-29 Jim Blandy <jimb@redhat.com>
6503
6504 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
6505 unescaped newlines in string literals, but newer ones don't. So
6506 escape them.
6507
f02df580
MS
65082002-03-26 Michael Snyder <msnyder@redhat.com>
6509 Andrew Cagney <cagney@redhat.com>
6510
361d1df0 6511 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
6512 restore file to memory.
6513 * cli/cli-dump.h: New file.
6514 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 6515 * NEWS: Mention new commands.
f02df580 6516
109f874e
MS
65172002-03-28 Michael Snyder <msnyder@redhat.com>
6518
6519 * symfile.c (symbol_file_add): Move test for null symbols to later.
6520
520f6ade
AC
65212002-03-27 Andrew Cagney <ac131313@redhat.com>
6522
6523 From veksler at il.ibm.com:
6524 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
6525 the xstrduped original path.
6526 Fix PR gdb/417.
6527
d4654627
MS
65282002-03-27 Michael Snyder <msnyder@redhat.com>
6529
6530 * breakpoint.c (_initialize_breakpoint): Clean up help string.
6531 * infcmd.c (_initialize_infcmd): Ditto.
6532 * language.c (_initialize_language): Ditto.
6533 * symfile.c (_initialize_symfile): Ditto.
6534 * top.c (_init_main): Ditto.
6535 * cli/cli-cmds.c (init_cli_cmds): Ditto.
6536
6be8bc0c
EZ
65372002-03-27 Elena Zannoni <ezannoni@redhat.com>
6538
6539 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
6540 vector registers handling.
6541 (skip_prologue): Handle new AltiVec instructions. Fill in new
6542 fields of frame data.
6543 (frame_get_saved_regs): Fill in information for AltiVec registers.
6544
12af6855
JB
65452002-03-27 Jim Blandy <jimb@redhat.com>
6546
6547 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
6548 a function; leave this macro here to invoke that function.
6549 (symbol_init_mangled_name): Declaration for that function.
6550 * symtab.c (symbol_init_mangled_name): New function.
6551
dc672865
AC
65522002-03-27 Andrew Cagney <ac131313@redhat.com>
6553
6554 * valarith.c: Replace strerror with safe_strerror.
6555 * tracepoint.c: Ditto.
6556 * lin-lwp.c: Ditto.
6557 * go32-nat.c: Ditto.
6558 * inflow.c: Ditto.
6559 * gnu-nat.c: Ditto.
6560
d96429cd
AS
65612002-03-27 Andreas Schwab <schwab@suse.de>
6562
6563 * event-top.c (command_line_handler): Remove useless if.
6564
7e336ba1
AJ
65652002-03-27 Andreas Jaeger <aj@suse.de>
6566
6567 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
6568 comment.
6569
de220d0f
ML
65702002-03-27 Michal Ludvig <mludvig@suse.cz>
6571
6572 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
6573 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
6574 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
6575 (x86_64_linux_dr_get_status, supply_gregset),
6576 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
6577 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
6578 (x86_64_register_info_table): Add.
6579 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
6580 (x86_64_register_raw_size, x86_64_register_virtual_type),
6581 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
6582 general x86_64_register_info_table.
6583 (i386_gdbarch_init): gdbarch_register_bytes is now set
6584 dynamicaly during initialization.
6585 * regformats/reg-x86-64.dat: Synced with changes to registers above.
6586 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 6587
0e98d0a7
DJ
65882002-03-27 Daniel Jacobowitz <drow@mvista.com>
6589
6590 * gdbserver/server.c (main): Call target_signal_to_host_p
6591 and target_signal_to_host on signals received from the remote.
6592 * gdbserver/remote-utils.c (prepare_resume_reply): Call
6593 target_signal_from_host on signals sent to the remote.
6594 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
6595 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
6596
3130066b
DJ
65972002-03-27 Daniel Jacobowitz <drow@mvista.com>
6598
6599 * signals/signals.c: Include "server.h" in gdbserver build.
6600 (target_signal_from_name): Don't use STREQ.
6601 (_initialize_signals): Likewise. Don't include function in
6602 gdbserver build.
6603
9aedf4f4
DJ
66042002-03-27 Daniel Jacobowitz <drow@mvista.com>
6605
6606 * signals.c: Moved to...
6607 * signals/signals.c: Here.
7e336ba1 6608 * Makefile (signals.o): Update.
9aedf4f4 6609
3fa41cdb
JL
66102002-03-26 Jeff Law (law@redhat.com)
6611
6612 * somread.c (som_symtab_read): Remove some commented out code and
6613 updated related comments. Do not set the minimal symbol table to
6614 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
6615 in a dynamic executable.
6616 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
6617 where we are unable to find the minimal symbol for the given
6618 PC value.
6619
ee677e8d
MS
66202002-03-25 Jeff Law (law@redhat.com)
6621
6622 * linux-proc.c (read_mapping): Scan up to end of line for filename.
6623
e76e1718
ML
66242002-03-25 Michal Ludvig <mludvig@suse.cz>
6625
6626 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
6627
18a642a1
AC
66282002-03-23 Andrew Cagney <ac131313@redhat.com>
6629
6630 * command.h: Update copyright.
6631 (struct cmd_list_element): Replace definition with opaque
6632 declaration.
6633 (enum cmd_types): Document that it will eventually be moved to
6634 cli/cli-decode.h
6635 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
6636 (MALLOCED_REPLACEMENT): Delete macro.
6637 * Makefile.in (cli_decode_h): Add $(command_h).
6638 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 6639 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
6640 * completer.c: Include "cli/cli-decode.h".
6641 * maint.c: Include "cli/cli-decode.h".
6642 * cli/cli-decode.h: Include "command.h".
6643 (enum command_class): Delete.
6644 (enum cmd_types): Comment out.
6645 (enum cmd_auto_boolean): Delete.
6646 (enum var_types): Delete.
6647
b2875cc0
AC
66482002-03-23 Andrew Cagney <ac131313@redhat.com>
6649
6650 * cli/cli-decode.c: Include "gdb_assert.h".
6651 (add_set_or_show_cmd): New static function.
6652 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
6653 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
6654 all fields, such as func, from the set command.
6655
3b45974e
AC
66562002-03-23 Andrew Cagney <ac131313@redhat.com>
6657
6658 * MAINTAINERS (sh-elf): Change warning flag to -w.
6659
823ca731
AC
66602002-03-23 Andrew Cagney <cagney@redhat.com>
6661
6662 * defs.h (error): Add printf format attribute.
6663 * thread-db.c (thread_from_lwp): Fix error format string.
6664 * stack.c (parse_frame_specification): Ditto.
6665 * cli/cli-decode.c (undef_cmd_error): Ditto.
6666 * scm-lang.c (scm_lookup_name): Ditto.
6667 * tracepoint.c (trace_error): Ditto.
6668 * remote-utils.c (usage): Ditto.
6669 * remote.c (compare_sections_command): Ditto.
6670 Fix PR gdb/328.
6671
0e101458
AC
66722002-03-22 Andrew Cagney <ac131313@redhat.com>
6673
6674 * gdbtypes.c (append_composite_type_field): New function.
6675 (init_composite_type): New function.
6676 * gdbtypes.h (append_composite_type_field): Declare.
6677 (init_composite_type): Ditto.
6678
8e0662df
EZ
66792002-03-22 Elena Zannoni <ezannoni@redhat.com>
6680
6681 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 6682 function.
8e0662df
EZ
6683 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
6684 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
6685 structure returning convention for SYSV ABI case, but not
6686 for GNU/Linux, FreeBSD, or NetBSD.
6687
3121eff0
DJ
66882002-03-22 Daniel Jacobowitz <drow@mvista.com>
6689
6690 * symtab.h (lookup_block_symbol): Add mangled_name argument
6691 to prototype.
6692
6693 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
6694 with new mangled_name argument.
6695 * linespec.c (decode_line_1): Likewise.
6696 * valops (value_of_this): Likewise.
6697 * symtab.c (lookup_transparent_type): Likewise.
6698 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
6699 (lookup_symbol): If we are given a mangled name, pass it down
6700 to lookup_symbol_aux.
6701 (lookup_block_symbol): If we are given a mangled name to check
6702 against, only return symbols which match it.
6703
349b409f
CF
67042002-03-22 Christopher Faylor <cgf@redhat.com>
6705
6706 * win32-nat.c (child_create_inferior): Check for proper shell to use
6707 here, in case the user changes it on the fly.
6708 (_initialize_inftarg): Remove shell path considerations.
6709
2a873819
EZ
67102002-03-21 Elena Zannoni <ezannoni@redhat.com>
6711
6712 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
6713 for gdbarch_max_register_raw_size and max_register_virtual_size.
6714 Adjust copyright year.
6715
a1b9830c
DJ
67162002-03-21 Daniel Jacobowitz <drow@mvista.com>
6717
6718 * dbxread.c (process_one_symbol): Extend the first N_SLINE
6719 in a function to cover the entire beginning of the function
6720 as well if it does not already.
6721
8b5790f2
TR
67222002-03-21 Tom Rix <trix@redhat.com>
6723
6724 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
6725 (rs6000_ptrace64): Renamed from ptrace64.
6726
bdbe5747
MH
67272002-03-20 Martin M. Hunt <hunt@redhat.com>
6728
6729 * gdbserver/remote-utils.c (remote_open): Don't call
6730 getprotobyname, we're all using TCP here so just use
6731 IPPROTO_TCP.
7e336ba1 6732 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
6733
67342002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 6735
bdbe5747
MH
6736 * regcache.c (_initialize_regcache): No need to call
6737 build_regcache() at this time; it gets called whenever
6738 the gdbarch changes.
6739
7781cd62
DB
67402002-03-20 David O'Brien <obrien@FreeBSD.org>
6741
6742 * sparc-nat.c: Include sys/param.h where possible.
6743
f65ca430
DJ
67442002-03-20 Daniel Jacobowitz <drow@mvista.com>
6745
6746 Fix PR gdb/422.
6747 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
6748 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
6749 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
6750 complex types.
6751 * stabsread.c (rs6000_builtin_type): Likewise.
6752 (read_sun_floating_type): Likewise.
6753
0c867556
PS
67542002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6755
6756 * stabsread.c (read_member_functions): Remove skip code for duplicate
6757 constructor/destructor methods. Use standard parsing for these
6758 methods and just do not chain them to the list of methods after
6759 parsing.
6760
12b9c64f
AO
67612002-03-19 Alexandre Oliva <aoliva@redhat.com>
6762
6763 * coffread.c: Remove redundant static declarations. Replace
6764 occurrences of `PTR' with `void *'.
6765 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
6766 * top.h (quit_cover): Likewise.
6767 * defs.h (catch_errors): Likewise.
6768
349c5d5f
AC
67692002-03-18 Andrew Cagney <ac131313@redhat.com>
6770
6771 * defs.h (XMALLOC): Define.
6772 * gdb-events.sh (XMALLOC): Delete macro.
6773 * gdb-events.c, gdb-events.h: Regenerate.
6774 * gdbarch.sh (XMALLOC): Delete macro.
6775 * gdbarch.c: Regenerate.
6776 * serial.c (XMALLOC): Delete macro.
6777 * ui-file.c (XMALLOC): Ditto.
6778 * ser-unix.h (XMALLOC): Ditto.
6779 * sh-tdep.c (XMALLOC): Ditto.
6780 * ui-out.c (XMALLOC): Ditto.
6781 * utils.c (XMALLOC): Ditto.
6782 * i386-tdep.c (XMALLOC): Ditto.
6783 * gdb-events.c (XMALLOC): Ditto.
6784 * d10v-tdep.c (XMALLOC): Ditto.
6785 * cli-out.c (XMALLOC): Ditto.
6786
6787 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
6788 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
6789 * ui-file.c, ui-out.c: Ditto.
6790
7d0766f3
AC
67912002-03-18 Andrew Cagney <ac131313@redhat.com>
6792
6793 * command.h (struct cmd_list_element): Add field context.
6794 (set_cmd_context, get_cmd_context): Declare.
6795 * cli/cli-decode.h: Ditto.
6796 * cli/cli-decode.c (get_cmd_context): New function.
6797 (set_cmd_context): New function.
6798 (add_cmd): Initialize context.
6799 Part of fixing PR gdb/145 and PR gdb/146.
6800
5913bcb0
AC
68012002-03-17 Andrew Cagney <ac131313@redhat.com>
6802
1868c04e
AC
6803 * cli/cli-decode.c (cmd_type): New function.
6804 * command.h (cmd_type): Declare.
6805 * infrun.c (set_schedlock_func): Call function cmd_type.
6806 * kod.c (kod_set_os): Call cmd_type.
6807 * cris-tdep.c (cris_version_update): Use function cmd_type.
6808 (cris_mode_update, cris_abi_update): Ditto.
6809
5913bcb0
AC
6810 * command.h: (execute_cmd_post_hook): Declare.
6811 (execute_cmd_pre_hook): Declare.
6812 * cli/cli-script.c (clear_hook_in_cleanup): New function.
6813 (execute_cmd_post_hook, execute_cmd_pre_hook): New
6814 functions. Execute pre/post hook while ensuring that afterwords
6815 hook_in is cleared.
6816 * top.c (execute_command): Use execute_cmd_post_hook, and
6817 execute_cmd_pre_hook to execute pre/post commands.
6818 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
6819 hook_stop_stub.
6820 (hook_stop_stub): Call execute_cmd_pre_hook.
6821
b51450c9
AC
68222002-03-17 Andrew Cagney <ac131313@redhat.com>
6823
6824 * kod.c (kod_set_os): Revert previous change. Is called by ``info
6825 set'' and this leads to a core dump. Move xstrdup of
6826 operating_system to after check that it is not NULL.
6827
f66c9f11
AC
68282002-03-17 Andrew Cagney <ac131313@redhat.com>
6829
8e694ecf
AC
6830 * kod.c (kod_set_os): Remove unnecessary check that
6831 ``command->type'' is set_cmd.
6832
f66c9f11
AC
6833 * valprint.c (set_input_radix): Use input_radix.
6834 (set_output_radix): Use output_radix.
6835 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
6836 isn't reverted.
6837
9d01611c
AC
68382002-03-16 Andrew Cagney <ac131313@redhat.com>
6839
6840 * value.h (struct value): Delete field ``substring_addr''. Change
6841 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
6842 force_core_addr_align and force_pointer_aligh.
6843
6844 * value.h (struct value): Fix typo in above change.
9d01611c 6845
4156bb53
PS
68462002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6847
6848 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
6849 to fix internal_error from ``maintenance print architecture''.
6850
0e5e3ea6
PS
68512002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6852
6853 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
6854 for gcc versions after gcc-2.8.1.
6855
9b013045
PS
68562002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6857
6858 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
6859 for method resolution. Restore adjustment of ``this'' pointer after
6860 calling value_struct_elt, which was accidentally removed during the
6861 HP merge.
6862
376c9600
AC
68632002-03-15 Andrew Cagney <ac131313@redhat.com>
6864
6865 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
6866 value_of_register.
6867 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
6868 get_saved_register.
6869 * value.h (value_of_register): Update.
6870
a4db0f07
RH
68712002-03-14 Richard Henderson <rth@redhat.com>
6872
6873 * configure.in: Detect declaration for canonicalize_file_name.
6874 * utils.c (canonicalize_file_name): Declare, if needed.
6875 (gdb_realpath): Prefer realpath if available and usable.
6876 * config.in, configure: Rebuild.
6877
96383835
RH
68782002-03-14 Richard Henderson <rth@redhat.com>
6879
6880 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
6881 a constant array bound.
6882
6883 * MAINTAINERS: Add myself to write-after-approval.
6884
75245b24
MS
68852002-03-14 Michael Snyder <msnyder@redhat.com>
6886
6887 * symfile.c (syms_from_objfile): Return immediately if no syms.
6888 (symbol_file_add): Return immediately if no syms.
6889 (find_sym_fns): Return immediately if no syms.
6890
e641a1ca
ML
68912002-03-13 Michal Ludvig <mludvig@suse.cz>
6892
6893 * gdbserver/remote-util.c (remote_open): Print remote-side's
6894 IP address when remote debugging over the network.
7e336ba1 6895
df08bfec
DB
68962002-03-12 David O'Brien <obrien@FreeBSD.org>
6897
6898 * config/sparc/fbsd.mh: Fix copyright.
6899 * config/sparc/fbsd.mt: Likewise.
6900
9a57864f
RE
69012002-03-11 Richard Earnshaw <rearnsha@arm.com>
6902
6903 * MAINTAINERS: Fix typo in name of gdb warnings option.
6904 (x86-64): Fix formating so that this can be parsed by awk.
6905
dd7bf85e
DJ
69062002-03-10 Daniel Jacobowitz <drow@mvista.com>
6907
6908 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
6909 * defs.h: Include "gdb/signals.h".
6910 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
6911
33a0a2ac
ML
69122002-03-10 Michal Ludvig <mludvig@suse.cz>
6913
6914 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 6915 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
6916 from x86-64-tdep.h
6917
dd824b04
DJ
69182002-03-10 Daniel Jacobowitz <drow@mvista.com>
6919 Don Howard <dhoward@redhat.com>
6920
6921 * mips-tdep.c (ST0_FR): Define.
6922 (mips2_fp_compat): New function, temporarily disabled.
6923 (mips_read_fp_register_single): New function.
6924 (mips_read_fp_register_double): New function.
6925 (mips_print_register): Use them.
6926 (do_fp_register_row): Likewise.
6927
6a41ff59
AC
69282002-03-09 Andrew Cagney <ac131313@redhat.com>
6929
6930 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
6931 approval''.
6932
4ea09c10
PS
69332002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6934
6935 * stabsread.c (read_member_functions): Fix is_stub test for
6936 static member functions, improve comment.
6937
6ccc741d
RE
69382002-03-07 Richard Earnshaw <rearnsha@arm.com>
6939
6940 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
6941 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
6942 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
6943 commands that set boolean values.
6944 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
6945 (arm_rdi_resume): Always initialize PC.
6946 (arm_rdi_open): Don't use rslt as a boolean.
6947 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
6948 (arm_rdi_fetch_registers, arm_rdi_store_registers)
6949 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
6950 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
6951
438013df
AO
69522002-03-06 Alexandre Oliva <aoliva@redhat.com>
6953
6954 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
6955 * configure: Rebuilt.
6956
70ed8774
SC
69572002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6958
6959 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
6960 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
6961
5ba2abeb
AC
69622002-03-06 Andrew Cagney <ac131313@redhat.com>
6963
6964 * cli/cli-decode.c (set_cmd_completer): New function.
6965 * command.h (set_cmd_completer): Declare.
6966 * cli/cli-decode.h (set_cmd_completer): Ditto.
6967
6968 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
6969 * cli/cli-cmds.c (init_cli_cmds): Ditto.
6970 * win32-nat.c (_initialize_inftarg): Ditto.
6971 * remote-rdi.c (_initialize_remote_rdi): Ditto.
6972 * proc-api.c (_initialize_proc_api): Ditto.
6973 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
6974 * source.c (_initialize_source): Ditto.
6975 * exec.c (_initialize_exec): Ditto.
6976 * solib.c (_initialize_solib): Ditto.
6977 * top.c (init_main): Ditto.
6978 * tracepoint.c (_initialize_tracepoint): Ditto.
6979 * symfile.c (_initialize_symfile): Ditto.
6980 * printcmd.c (_initialize_printcmd): Ditto.
6981 * infcmd.c (_initialize_infcmd): Ditto.
6982 * corefile.c (_initialize_core): Ditto.
6983
f779ca99
AC
69842002-03-05 Andrew Cagney <ac131313@redhat.com>
6985
6986 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
6987
01a3934b
AC
69882002-03-05 Andrew Cagney <ac131313@redhat.com>
6989
6990 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
6991
37057839
AC
69922002-03-05 Andrew Cagney <ac131313@redhat.com>
6993
6994 * NEWS: Update headings, 5.2 has branched.
6995
c6ecbae5
DJ
69962002-03-04 Daniel Jacobowitz <drow@mvista.com>
6997
6998 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
6999 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7000 (register_addr, REGISTER_RAW_SIZE): Likewise.
7001 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7002 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7003
e9f30c21
ML
70042002-03-03 Michal Ludvig <mludvig@suse.cz>
7005
7006 * MAINTAINERS (x86-64): Add myself.
7007 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7008 changed value_ptr -> struct value *
7009
54394ac3
DB
70102002-03-01 David O'Brien <obrien@FreeBSD.org>
7011
7012 * configure.host (sparc64-*-freebsd): Add.
7013 * configure.tgt: Likewise.
7014 * config/sparc/fbsd.mh: New file.
7015 * config/sparc/fbsd.mt: Likewise.
7016 * config/sparc/nm-fbsd.h: Likewise.
7017 * config/sparc/tm-fbsd.h: Likewise.
7018
bfe95955
DJ
70192002-03-01 Daniel Jacobowitz <drow@mvista.com>
7020
7021 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7022 regformats/reg-s390x.dat.
7023
f33c6cbf
AC
70242002-03-01 Andrew Cagney <ac131313@redhat.com>
7025
7026 * utils.c: Add FIXME explaining true/false problem.
7027
5ecaa7dd
AC
70282002-02-28 Andrew Cagney <ac131313@redhat.com>
7029
7030 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7031
2a251cc2
MC
70322002-02-28 Michael Chastain <mec@shout.net>
7033
7034 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7035
6a8031a3 70362002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
7037
7038 * gdbserver/linux-s390-low.c: New file.
7039 * regformats/reg-s390.dat: New file.
7040 * regformats/reg-s390x.dat: New file.
7041 * gdbserver/configure.srv: Add S/390.
7042 * gdbserver/Makefile.in: Add S/390.
7043 * configure.tgt: Enable gdbserver for S/390.
7044
ac469903
EZ
70452002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7046
7047 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7048 first line of the doc string for "info dos", except at the end of
7049 the sentence, since the short help stops at the first period.
7050
985cb1a3
JM
70512002-02-28 Jason Merrill <jason@redhat.com>
7052
7053 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7054
c570663e
FF
70552002-02-27 Fred Fish <fnf@redhat.com>
7056
7057 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7058 comment (dumy -> dummy).
7059
43630227
PS
70602002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7061
7062 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7063
b84911e8
RB
70642002-02-27 Rodney Brown <rbrown64@csc.com.au>
7065
7066 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7067
58caa3dc
DJ
70682002-02-27 Daniel Jacobowitz <drow@mvista.com>
7069
7070 * gdbserver/acconfig.h: New file.
7071 * gdbserver/i387-fp.c: New file.
7072 * gdbserver/i387-fp.h: New file.
7073 * gdbserver/linux-x86-64.c: New file.
7074 * regformats/reg-x86-64.dat: New file.
7075 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7076 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7077 * gdbserver/configure.in: Add support for regsets.
7078 * gdbserver/config.in: Regenerate.
7079 * gdbserver/configure: Regenerate.
7080 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7081 * gdbserver/linux-low.h: New file.
7082 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7083 for regsets.
7084 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7085 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7086 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7087 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7088 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7089 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7090 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7091 "i387-fp.h". Add PTRACE_GETREGS and friends.
7092 * gdbserver/regcache.c (supply_register): New function.
7093 (supply_register_by_name): New function.
7094 (collect_register): New function.
7095 (collect_register_by_name): New function.
7096
93652174
DJ
70972002-02-27 Daniel Jacobowitz <drow@mvista.com>
7098
7099 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7100 (config.status): Add configure.srv dependency.
7101 (server_h): Add config.h dependency.
7102
a02e4a61
DJ
71032002-02-27 Daniel Jacobowitz <drow@mvista.com>
7104
7105 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7106 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7107 * gdbserver/configure.srv: Change i386-*-linux* to use
7108 reg-i386-linux.o.
7109
ce0eebec
AC
71102002-02-26 Andrew Cagney <ac131313@redhat.com>
7111
7112 * x86-64-tdep.c: Re-indent. Update copyright date.
7113
82dbc5f7
AC
71142002-02-26 Andrew Cagney <ac131313@redhat.com>
7115
7116 From Michal Ludvig <mludvig@suse.cz>:
7117 * x86-64-tdep.c (value.h): Delete.
7118 (gdb_assert.h): Include.
7119 (x86_64_register_convert_to_virtual,
7120 x86_64_register_convert_to_raw ): Add check which lets only
7121 floating-point values to be converted.
7122 (value_push): Delete.
7123 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7124 (i386_gdbarch_init): Number of register_bytes fixed.
7125
e4621584
AC
71262002-02-26 Andrew Cagney <ac131313@redhat.com>
7127
7128 * MAINTAINERS: Add x86-64 target.
7129
81a9a963
AC
71302002-02-26 Andrew Cagney <ac131313@redhat.com>
7131
7132 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7133 * osfsolib.c (solib_map_sections): Ditto.
7134 * irix5-nat.c (solib_map_sections): Ditto.
7135 * corelow.c (gdb_check_format): Ditto.
7136 * symfile.c (symfile_bfd_open): Ditto.
7137 * solib.c (solib_map_sections): Ditto.
7138 Fix PR gdb/354.
7e336ba1 7139
0f017ab9
AC
71402002-02-26 Andrew Cagney <ac131313@redhat.com>
7141
7142 * remote.c (_initialize_remote): By default, disable ``e'' and
7143 ``E'' step out-of-range packets.
7144
75738c29
AS
71452002-02-26 Andreas Schwab <schwab@suse.de>
7146
7147 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7148 m68k_linux_frame_saved_pc.
7149 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7150 in_sigtramp.
7151 (SIGCONTEXT_PC_OFFSET): Remove.
7152 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7153 m68k_linux_sigtramp_saved_pc): New functions.
7154 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7155 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7156 (UCONTEXT_PC_OFFSET): Define.
7157 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7158 non-RT and RT signal trampolines.
7159
7e8ed687
RE
71602002-02-26 Richard Earnshaw <rearnsha@arm.com>
7161
7162 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7163 (TARGET_NBPG, STACK_END_ADDR): Delete
7164 (VARIABLES_INSIDE_BLOCK): Delete.
7165
6972bc8b
AC
71662002-02-25 Andrew Cagney <ac131313@redhat.com>
7167
7168 * utils.c (perror_with_name): Make string parameter constant.
7169 (print_sys_errmsg): Ditto.
7170 (query): Ditto.
7171 * defs.h (perror_with_name): Update.
7172 (print_sys_errmsg): Update.
7173 (query): Update.
7174
aa32f823
DJ
71752002-02-25 Daniel Jacobowitz <drow@mvista.com>
7176
7177 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7178 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7179
19caaa45
PS
71802002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7181
7182 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7183 if it already matches the current architecture from the exec file.
7184 Include arch-utils.h for gdbarch_info_init prototype.
7185 * Makefile.in (rs6000-nat.o): Update dependencies.
7186
d951901f
EZ
71872002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7188
7189 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7190 list of exported variables.
7191
7ea81414
DJ
71922002-02-24 Daniel Jacobowitz <drow@mvista.com>
7193
7194 * gdbserver/configure.srv: New file.
7195 * gdbserver/configure.in: Use configure.srv instead
7196 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7197 from it.
7198 * gdbserver/configure: Regenerated.
7199 * gdbserver/terminal.h: New file.
7200 * gdbserver/Makefile.in: Update for configure changes. Remove
7201 more unneeded include paths.
7202
080fe24b
AC
72032002-02-24 Andrew Cagney <ac131313@redhat.com>
7204
7205 From wiz at danbala:
7206 * config/sparc/tm-sp64.h: Fix grammar and typos.
7207 Fix PR gdb/287.
7208
8605d56e
AC
72092002-02-24 Andrew Cagney <ac131313@redhat.com>
7210
7211 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
7212 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7213 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7214 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
7215 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7216 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7217 * s390-tdep.c: Ditto.
92362027
AC
7218 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7219 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7220 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7221 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7222 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7223 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7224 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7225 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7226 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7227 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 7228 Fix PR gdb/378.
7e336ba1 7229
8ed32cc0
AC
72302002-02-23 Andrew Cagney <ac131313@redhat.com>
7231
a3007b6f
AC
7232 * lin-thread.c: Delete file.
7233 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7234 to gdb_proc_service.h.
7235 * configure: Re-generate.
7236
50a9e2f1
AC
7237 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7238 * serial.c (serial_open): Delete check for "ocd".
7239 Fix PR gdb/349.
7240
8b6e7932
AC
7241 * Makefile.in (linux-thread.o): Delete target.
7242 * linux-thread.c: Delete file.
7243
d155c46b
AC
7244 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
7245 renamed SH files to be consistent.
7246
8ed32cc0
AC
7247 * symtab.c (sort_search_symbols): Use xfree.
7248
0e18d038
RE
72492002-02-23 Richard Earnshaw <rearnsha@arm.com>
7250
7251 * arm-linux-tdep.c (arm_linux_init_abi): Register
7252 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7253 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7254 definition with undef, since we don't want the sysvr4 definition.
7255 (SKIP_TRAMPOLINE_CODE): Likewise.
7256
27aac7ff
AC
72572002-02-23 Andrew Cagney <ac131313@redhat.com>
7258
7259 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7260
7261 * configure.in: (AC_CHECK_FUNCS) Added test for
7262 canonicalize_file_name Regenerated.
7263 * config.in, configure: Regenerated.
7264 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7265 defined use canonicalize_file_name.
7e336ba1 7266
65a6e0ee
MC
72672002-02-23 Michael Chastain <mec@shout.net>
7268
7269 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7270
47b95330
AC
72712002-02-23 Andrew Cagney <ac131313@redhat.com>
7272
7273 * README: Remove references to cygnus.com.
7274 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7275 dot com'' form. Remove references to cygnus.com and sourceware.
7276
696f451b
AC
72772002-02-23 Andrew Cagney <ac131313@redhat.com>
7278
7279 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7280 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7281 1003.1-2001 no longer allows "head -1".
7282 * gdb/Makefile.in (version.c): Likewise.
7283 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7284 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7285 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
7286
bbaca940
AC
72872002-02-23 Andrew Cagney <ac131313@redhat.com>
7288
7289 * cli/cli-decode.c (cmd_cfunc_eq): New function.
7290 * command.h (cmd_cfunc_eq): Declare.
7291 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7292
7293 * cli/cli-cmds.h (is_complete_command): Change parameter to a
7294 ``struct cmd_list_element *''.
7295 * cli/cli-cmds.c (is_complete_command): Update. Use
7296 cmd_cfunc_eq.
7297 * top.c (execute_command): Pass the command to
7298 is_complete_command.
7299 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7300
b8b8b047
AC
73012002-02-23 Andrew Cagney <ac131313@redhat.com>
7302
7303 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7304 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7305 architecture defines.
7306 * s390-tdep.c (s390_gdbarch_init): Likewise.
7307
19d3fc80
RE
73082002-02-23 Richard Earnshaw <rearnsha@arm.com>
7309
7310 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7311 (arm_linux_push_arguments): Likewise.
7312 (arm_linux_init_abi): Register them. Also register linux-specific
7313 call_dummy_words.
7314 (find_minsym_and_objfile): Use strcmp, not STREQ.
7315 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7316 (arm_linux_call_dummy_words): Delete declaration.
7317 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7318 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7319 declarations.
7320 (LOWEST_PC): Delete.
7321
3ab13650
PS
73222002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7323
7324 * maint.c (print_section_info): Do not prepend `0x' to filepos
7325 output, it will be handled by local_hex_string_custom.
7326
19d3fc80 73272002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
7328
7329 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7330 (store_newfpe_double, store_newfpe_extended, store_fpregister)
7331 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
7332
d85a5daf
JB
73332002-02-22 Jim Blandy <jimb@redhat.com>
7334
7335 Indicate that the bcache functions don't change the strings
7336 they're passed.
7337 * bcache.h (bcache, hash): Add `const' keywords to declarations.
7338 * bcache.c (bcache, hash): Add `const' keywords to definitions.
7339
eeb25b8a
PM
73402002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
7341
7342 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
7343
6badb179
CF
73442002-02-21 Christopher Faylor <cgf@redhat.com>
7345
7346 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
7347 find the complete path to a loaded DLL.
7348
e8717518
FF
73492002-02-21 Fred Fish <fnf@redhat.com>
7350
7351 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
7352 that marks the end of the range of a function, enter a line number
7353 entry that has a line number of zero and a PC offset that matches
7354 the end of the function. This starts a range of PC's for which no
7355 line number information is known.
7356 * symtab.c (find_pc_sect_line): If our best fit is in a range of
7357 PC's for which no line number info is found (line number is zero)
7358 then we didn't find any valid line information.
7359 * symtab.h: Document use of zero line number entry.
7360
9abe5450
EZ
73612002-02-21 Elena Zannoni <ezannoni@redhat.com>
7362
7363 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
7364 (have_ptrace_getvrregs): Define for run time checks.
7365 (gdb_vrregset_t): New type for Altivec register handling.
7366 (fetch_register, store_register): Fetch/store altivec register
7367 when needed.
7368 (fetch_altivec_register, store_altivec_register): New functions.
7369 (supply_vrregset, fill_vrregset): New functions.
7370 (fetch_altivec_registers, store_altivec_registers): New functions.
7371 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
7372 registers as well.
7373
aaa38bb5
AJ
73742002-02-21 Jiri Smid <smid@suse.cz>
7375
7376 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
7377
b34db576
RE
73782002-02-21 Richard Earnshaw <rearnsha@arm.com>
7379
7380 * Makefile.in (armnbsd-nat.o): Update dependencies.
7381 * armnbsd-nat.c (supply_gregset): New function. Common code to
7382 supply the integer register set.
7383 (supply_fparegset): New function. Similar for FPA registers.
7384 (fetch_regs, fetch_fp_regs): Use them.
7385 (fetch_core_registers): Likewise.
7386 (fetch_elfcore_registers): New function.
7387 (arm_netbsd_elfcore_fns): New core-file type specification.
7388 (_initialize_arm_netbsd_nat): Register it.
7389
3e56fc4b
RE
73902002-02-21 Richard Earnshaw <rearnsha@arm.com>
7391
7392 * armnbsd-nat.c: Include gdbcore.h.
7393 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
7394 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
7395 'void' to declaration, to shut up ARI.
7396 (fetch_core_registers): Make static. Rewrite using supply_register.
7397 (arm_netbsd_core_fns): New core-file type specification.
7398 (_initialize_arm_netbsd_nat): New function.
7399
097f6b0b
CF
74002002-02-21 Christopher Faylor <cgf@redhat.com>
7401
7402 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
7403 value.
7404
c914e0cc
CF
74052002-02-20 Christopher Faylor <cgf@redhat.com>
7406
7407 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
7408 fails.
7409
385fa495
DJ
74102002-02-20 Daniel Jacobowitz <drow@mvista.com>
7411
7412 * jv-exp.y (parse_number): Change type of implicit longs
7413 to builtin_type_uint64.
7414
e5f1222d
DJ
74152002-02-20 Daniel Jacobowitz <drow@mvista.com>
7416
7417 * gdbserver/linux-low.c (mywait): Change argument to waitpid
7418 to be an integer instead of a `union wait'.
7419
75c9abc6
DJ
74202002-02-20 Daniel Jacobowitz <drow@mvista.com>
7421
7422 * mips-linux-nat.c: Call the operating system GNU/Linux.
7423 * mips-linux-tdep.c: Likewise.
7424 * mips-tdep.c: Likewise.
7425
551792a5
DJ
74262002-02-20 Daniel Jacobowitz <drow@mvista.com>
7427
7428 Fix PR gdb/265.
7429 * jv-exp.y (parse_number): Handle 64-bit integers.
7430
ee6e2b82
DJ
74312002-02-20 Daniel Jacobowitz <drow@mvista.com>
7432
7433 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
7434 AC_STDC_HEADERS to AC_HEADER_STDC.
7435 * gdbserver/configure: Regenerated.
7436
a48442a0
RE
74372002-02-20 Richard Earnshaw <rearnsha@arm.com>
7438
7439 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
7440 is defined.
7441 * sparc-tdep.c (get_longjmp_target): Likewise.
7442
fe419ffc
RE
74432002-02-20 Richard Earnshaw <rearnsha@arm.com>
7444
7445 * News: Add news about ARM and Multi-arch. Mention the new target
7446 arm*-*-netbsd*.
7447
5832ed7e
JB
74482002-02-19 Jim Blandy <jimb@redhat.com>
7449
7450 * stabsread.c (error_type_complaint): Improve error message.
7451
84563040
DJ
74522002-02-19 Daniel Jacobowitz <drow@mvista.com>
7453
7454 * gdbserver/README: Update documentation.
7455 * gdbserver/configure.in: Update configury to match documentation.
7456 * gdbserver/Makefile.in: Likewise.
7457 * gdbserver/configure: Regenerated.
7458 * gdbserver/aclocal.m4: New file, generated by aclocal.
7459 * gdbserver/config.in: New file, generated by autoheader.
7460
375fd65b
RE
74612002-02-19 Richard Earnshaw <rearnsha@arm.com>
7462
7463 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
7464 armnbsd-nat.c.
7465
08216dd7
RE
74662002-02-19 Richard Earnshaw <rearnsha@arm.com>
7467
7468 * arm-tdep.h (enum arm_float_model): New enum.
7469 (struct gdbarch_tdep): Add fp_model.
7470 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
7471 up floating-point conversions until we know the floating-point model
7472 in use by the inferior. Don't complain about being unable to
7473 determine the ABI of the inferior when we don't have one.
7474 (arm_extract_return_value): Support different floating-point models.
7475 (arm_store_return_value): Likewise.
aaa38bb5 7476 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
7477 ARM_FLOAT_SOFT.
7478 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
7479
65d6d66a
PS
74802002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7481
7482 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
7483 of ``current_gdbarch''.
7484
47221191
RE
74852002-02-19 Richard Earnshaw <rearnsha@arm.com>
7486
7487 * armnbsd-nat.c : ANSIfy all function declarations.
7488 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
7489 (fetch_inferior_registers): Re-implement in terms of above.
7490 (store_register, store_regs, store_fp_register, store_fp_regs): New.
7491 (store_inferior_registers): Re-implement in terms of above.
7492
fdf39c9a
RE
74932002-02-19 Richard Earnshaw <rearnsha@arm.com>
7494
aaa38bb5 7495 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
7496 kernel.
7497 * arm-linux-tdep.c: Likewise.
7498 * config/arm/tm-linux.h: Likewise.
7499
93247f88
RE
75002002-02-19 Richard Earnshaw <rearnsha@arm.com>
7501
7502 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
7503 * config/arm/nbsd.mt (TM_FILE): Delete.
7504 * config/arm/tm-nbsd.h: Delete.
7505
d7b486e7
RE
75062002-02-19 Richard Earnshaw <rearnsha@arm.com>
7507
7508 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
7509 Initialize CALL_DUMMY_LENGTH.
7510
41d39a95
RE
75112002-02-19 Richard Earnshaw <rearnsha@arm.com>
7512
7513 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
7514 function.
7515 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 7516 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
7517 defines one thing and that is incorrect for this port.
7518 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
7519
e1195560
PM
75202002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7521
7522 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
7523
c1748f97
PM
75242002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7525
7526 * win32-nat.c (display_selector): New function. Displays information
7527 about the information returned by GetThreadSelectorEntry API function.
7528 (display_selectors): New function. Displays the infomation of
7529 the selector given as argument, or of CS, DS ans FS selectors
7530 if no argument is given.
7531 ( _initialize_inftarg): Add "w32" as info prefix command.
7532 Add "info w32 selector" as command calling display_selectors.
7533
e41e6bbf
PM
75342002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
7535
7536 * i386-tdep.c (get_longjmp_target): Fix compilation failure
7537 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
7538 if not defined.
7539
0d3a9f48
RE
75402002-02-18 Richard Earnshaw <rearnsha@arm.com>
7541
7542 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
7543
3fb4b924
RE
75442002-02-18 Richard Earnshaw <rearnsha@arm.com>
7545
7546 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
7547 (arm_fix_call_dummy): Call it.
7548 (arm_call_dummy_breakpoint_offset): Delete.
7549 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
7550 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7551
7f55af32
AC
75522002-02-18 Andrew Cagney <ac131313@redhat.com>
7553
7554 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
7555 Default to func_frame_chain_valid.
7556 * gdbarch.h, gdbarch.c: Re-generate.
7557 * frame.h (FRAME_CHAIN_VALID): Delete definition.
7558
05f13b9c
EZ
75592002-02-18 Elena Zannoni <ezannoni@redhat.com>
7560
7561 * ppc-linux-nat.c: Update copyright.
7562 (fetch_register, store_register): Add tid parameter, don't compute
7563 tid here.
7564 (fetch_ppc_registers, store_ppc_registers): Add tid
7565 parameter. Pass it along to callees.
7566 (fetch_inferior_registers, store_inferior_registers): Compute tid
7567 here, and pass it to calleed functions.
7568 (fill_gregset, supply_fpregset): Clean up formatting.
7569
d7afb4c9
RE
75702002-02-18 Richard Earnshaw <rearnsha@arm.com>
7571
7572 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
7573 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
7574
9df628e0
RE
75752002-02-18 Richard Earnshaw <rearnsha@arm.com>
7576
7577 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
7578 * gdbarch.c gdbarch.h: Regenerate.
7579 * breakpoint.c (create_longjmp_breakpoint): Always compile this
7580 function.
7581 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
7582 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
7583 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
7584
7585 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
7586 * arm-tdep.c (arm_get_longjmp_target): New function.
7587 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
7588 this to a positive value register arm_get_longjmp_target as the
7589 longjmp handler.
7590 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
7591 (arm_linux_init_abi): Set up longjmp description in tdep.
7592 * armnbsd-nat.c (get_longjmp_target): Delete.
7593 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
7594 description in tdep.
7595 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
7596 (get_longjmp_target): Delete declaration.
7597 (GET_LONGJMP_TARGET): Delete.
7598 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
7599 (GET_LONGJMP_TARGET): Delete.
7600
57bc8964
KB
76012002-02-17 Kevin Buettner <kevinb@redhat.com>
7602
7603 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
7604 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
7605 of ``current_gdbarch''.
7606
83d31a92
TT
76072002-02-17 Tom Tromey <tromey@redhat.com>
7608
7609 * cli/cli-cmds.c (compare_strings): New function.
7610 (complete_command): Only print each unique item once.
7611 * completer.h (complete_line): Declare.
7612 * completer.c (complete_line): New function.
7613 (line_completion_function): Use it.
7614
17ef5d92
AC
76152002-02-16 Andrew Cagney <ac131313@redhat.com>
7616
7617 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
7618 * gdbarch.h, gdbarch.c: Re-generate.
7619
491b8946
DJ
76202002-02-16 Daniel Jacobowitz <drow@mvista.com>
7621
7622 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
7623
76242002-02-16 Daniel Jacobowitz <drow@mvista.com>
7625
7626 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7627 * valops.c (value_arg_coerce): Don't take the address of a reference
7628 to convert an argument to a reference.
7629
dfe7f3ac
CF
76302002-02-15 Christopher Faylor <cgf@redhat.com>
7631
7632 * win32-nat.c (get_image_name): New function.
7633 (handle_load_dll): Use get_image_name function.
7634 (get_child_debug_event): Avoid registering debug events until possibly
7635 execed process is started.
7636 (child_create_inferior): Allow invocation via shell so that command
7637 line redirection, etc. works ok.
7638 (_initialize_inftarg): Add new command: "set shell" to control whether
7639 a shell is used to start a process.
7640
1d33e73a
DJ
76412002-02-15 Daniel Jacobowitz <drow@mvista.com>
7642
7643 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
7644 instead of find_register_by_number.
7645 (cannot_store_register): Likewise.
7646
48cd0caa
PM
76472002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
7648
aaa38bb5 7649 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
7650 fprintf_unfiltered (gdb_stderr, ...).
7651
8656e7d8
DJ
76522002-02-15 Daniel Jacobowitz <drow@mvista.com>
7653
7654 * gdbserver/gdbserver.1: Document --attach.
7655
66e810cd
RE
76562002-02-15 Richard Earnshaw <rearnsha@arm.com>
7657
7658 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
7659 descriptions.
7660 * arm-tdep.c (arm_default_arm_le_breakpoint)
7661 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
7662 (arm_default_thumb_be_breakpoint): New. Initialize them from
7663 traditional breakpoint defines.
7664 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
7665 (arm_gdbarch_init): Initialize new breakpoint variables.
7666 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
7667 (arm_linux_init_abi): Initialize linux-specific breakpoint.
7668 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
7669 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
7670 code out to ...
7671 (arm_netbsd_init_abi_common): ... here; new function.
7672 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
7673 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
7674 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
7675 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
7676
97e03143
RE
76772002-02-15 Richard Earnshaw <rearnsha@arm.com>
7678
7679 * arm-tdep.h (enum arm_abi): New enum.
7680 (struct gdbarch_tdep): New structure.
7681 (LOWEST_PC): Provide a default.
7682 (arm_gdbarch_register_os_abi): Declare new function.
7683 * arm-tdep.c (arm_abi_names): New array.
7684 (process_note_abi_tag_sections): New function.
7685 (get_elfosabi): New function.
7686 (arm_gdbarch_register_os_abi): New function.
7687 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
7688 support for that ABI has been built in, then call the appropriate
7689 configuration routine. Use gdbarch_num_regs() to get the number
7690 of registers.
7691 (arm_dump_tdep): New function.
7692 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
7693 place-holder functions.
7694 (_initialize_arm_tdep): Register them.
7695 * config/arm/tm-arm.h (LOWEST_PC): Delete.
7696
7697 * armnbsd-tdep.c: New file.
7698 * Makefile.in (armnbsd-tdep.o): Add dependencies.
7699 * config/arm/nbsd.mt (TDEPFILES): Add it.
7700 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
7701
7702 * armnbsd-nat.c: Include regcache.h.
7703 * Makefile.in (armnbsd-nat.o): Update dependency list.
7704
7705 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
7706
ad68be46
DJ
77072002-02-14 Daniel Jacobowitz <drow@mvista.com>
7708
7709 * gdbserver/Makefile.in: Fix typos in target rules.
7710
003d6d1d
DJ
77112002-02-14 Daniel Jacobowitz <drow@mvista.com>
7712
aaa38bb5 7713 Fix part of PR gdb/267.
003d6d1d
DJ
7714 * linespec.c (find_methods): Handle constructors specially for now.
7715
6b230f1b
CV
77162002-02-14 Corinna Vinschen <vinschen@redhat.com>
7717
7718 * arm-tdep.c (arm_push_arguments): Eliminate special float type
7719 handling.
7720 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
7721 standard_coerce_float_to_double().
7722
1ea98d12
CF
77232002-02-14 Christopher Faylor <cgf@redhat.com>
7724
7725 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
7726 GDBINIT_FILENAME.
7727
dd47e6fd
EZ
77282002-02-14 Elena Zannoni <ezannoni@redhat.com>
7729
7730 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
7731 find_variant_by_name, because it confuses the multiarch
7732 framework. Return NULL if there isn't an architecture with the
7733 user supplied name, instead of forcing a different one without
7734 recording the change with the multiarch machinery.
7735 (find_variant_by_name): Delete.
7736
d7e39b9e
PS
77372002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7738
7739 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
7740 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
7741
76e42a4f
MH
77422002-02-13 Martin M. Hunt <hunt@redhat.com>
7743
aaa38bb5 7744 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
7745 print_frame_info_listing_hook, set current_source_symtab.
7746
0a30fbc4
DJ
77472002-02-14 Daniel Jacobowitz <drow@mvista.com>
7748
7749 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
7750 and remove unused $(INCLUDE_DIR).
7751 Add regcache.c to OBS.
7752 Add generated register protocol files to clean target.
7753 Update dependencies for new objects, obsolete old target code.
7754
7755 * gdbserver/linux-low.c: Remove all platform-specific code to
7756 new files. Remove various dead code. Update to use regcache
7757 functionality.
7758 * gdbserver/remote-utils.c (fromhex): Add return statement
7759 to quiet warning.
7760 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
7761 constant.
7762 (input_interrupt): Add integer parameter to match prototype
7763 of a signal handler.
7764 (outreg): Use register_data ().
7765 (prepare_resume_reply): Use gdbserver_expedite_regs.
7766 * gdbserver/server.c (main): Dynamically allocate own_buf because
7767 PBUFSIZ is no longer constant. Use registers_to_string () and
7768 registers_from_string ().
7769 * gdbserver/server.h: No longer include "defs.h". Add prototypes
7770 for error (), fatal (), and warning (). Update definition of
7771 PBUFSIZ to use regcache functionality. Add include guard.
7772 * gdbserver/utils.c (fatal): Add missing ``const''.
7773 (warning): New function.
7774
7775 * regformats/regdat.sh: Include "regcache.h" in generated files.
7776 Provide init_registers () function.
7777 * regformats/regdef.h: Add prototype for set_register_cache ().
7778 Add include guard.
7779
7780 * gdbserver/linux-arm-low.c: New file.
7781 * gdbserver/linux-i386-low.c: New file.
7782 * gdbserver/linux-ia64-low.c: New file.
7783 * gdbserver/linux-m68k-low.c: New file.
7784 * gdbserver/linux-mips-low.c: New file.
7785 * gdbserver/linux-ppc-low.c: New file.
7786 * gdbserver/linux-sh-low.c: New file.
7787
7788 * gdbserver/regcache.c: New file.
7789 * gdbserver/regcache.h: New file.
7790
7791 * gdbserver/low-linux.c: Removed obsolete file.
7792
4cc841d0
DJ
77932002-02-14 Daniel Jacobowitz <drow@mvista.com>
7794
7795 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
7796 * config/i386/linux.mt: Likewise.
7797 * config/ia64/linux.mt: Likewise.
7798 * config/m68k/linux.mh: Likewise.
7799 * config/powerpc/linux.mh: Likewise.
7800 * config/mips/linux.mt: Likewise.
7801
7802 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
7803
7804 * config/i386/i386lynx.mh: Mark gdbserver variables
7805 as (currently) obsolete for this target.
7806 * config/i386/nbsd.mt: Likewise.
7807 * config/i386/nbsdelf.mt: Likewise.
7808 * config/m32r/m32r.mt: Likewise.
7809 * config/m68k/m68klynx.mh: Likewise.
7810 * config/m68k/nbsd.mt: Likewise.
7811 * config/m68k/sun3os4.mh: Likewise.
7812 * config/mips/vr5000.mt: Likewise.
7813 * config/ns32k/nbsd.mt: Likewise.
7814 * config/pa/hppabsd.mh: Likewise.
7815 * config/pa/hppaosf.mh: Likewise.
7816 * config/powerpc/nbsd.mt: Likewise.
7817 * config/rs6000/rs6000lynx.mh: Likewise.
7818 * config/s390/s390.mt: Likewise.
7819 * config/s390/s390x.mt: Likewise.
7820 * config/sparc/sparclynx.mh: Likewise.
7821 * config/sparc/sun4os4.mh: Likewise.
7822 * config/i386/x86-64linux.mt: Likewise.
7823 * config/sparc/linux.mh: Likewise.
7824
a85f51e7
DJ
78252002-02-14 Daniel Jacobowitz <drow@mvista.com>
7826
7827 * configure.tgt: Configure gdbserver only for known working
7828 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
7829 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
7830 SUBDIRS if it is configured. Update comment for ${nativefile}.
7831 * configure: Regenerated.
7832
65554fef
MS
78332002-02-13 Michael Snyder <msnyder@redhat.com>
7834
670a52db
MS
7835 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
7836
6dbdc4a3
MS
7837 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
7838 (default_gcore_mach): Just return 0, work around a problem in bfd.
7839 (default_gcore_target): OK to return NULL if exec_bfd is null.
7840 (make_mem_sec): Use a cast, avoid a warning.
7841
7842 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 7843 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
7844 sizeof (host pointer) != sizeof (target pointer)).
7845 (procfs_make_note_section): Avoid overflow in psargs string.
7846
aaa38bb5 7847 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
7848 implementation return an error.
7849
78502002-02-13 Rodney Brown <rbrown64@csc.com.au>
7851
7852 * procfs.c (procfs_make_note_section): Provide a default definition
7853 (for alpha-dec-osf4.0f). Fix typos.
7854
1e4d76e7
EZ
78552002-02-13 Elena Zannoni <ezannoni@redhat.com>
7856
7857 * linux-proc.c: Add include of regcache.h.
7858 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
7859
b6d1a1d5
AC
78602002-02-13 Andrew Cagney <ac131313@redhat.com>
7861
7862 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
7863 * memattr.c (create_mem_region): Disallow useless empty region.
7864 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 7865 non-overlapping.
b6d1a1d5 7866
6c6ea35e
MC
78672002-02-13 Michael Chastain <mec@shout.net>
7868
7869 * defs.h: Kill CONST_PTR.
7870 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
7871 * c-lang.c (c_builtin_types): Likewise.
7872 * ch-lang.c (ch_builtin_types): Likewise.
7873 * f-lang.c (f_builtin_types): Likewise.
7874 * language.c (unknown_builtin_types): Likewise.
7875 * m2-lang.c (m2_builtin_types): Likewise.
7876 * p-lang.c (pascal_builtin_types): Likewise.
7877 * scm-lang.c (c_builtin_types): Likewise.
7878
3e0b0f48
KS
78792002-02-13 Keith Seitz <keiths@redhat.com>
7880
7881 * arm-tdep.h (arm_get_next_pc): Add declaration.
7882
67255d04
RE
78832002-02-13 Richard Earnshaw <rearnsha@arm.com>
7884
7885 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
7886 with other related struct-returning functions.
7887 (arm_extract_struct_value_address): New function.
7888 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
7889 initialize float_format, double_format and long_double_format as
7890 appropriate to the endianness of the target.
7891 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
7892 (arm_use_struct_convention): Delete declaration.
7893 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
7894
079777f6
KS
78952002-02-13 Keith Seitz <keiths@redhat.com>
7896
7897 * defs.h (core_addr_to_string_nz): New function.
7898
34588f23
MK
78992002-02-13 Mark Kettenis <kettenis@gnu.org>
7900
7901 Apply missing bits of 2002-01-15 patch.
7902 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
7903 (fill_fpregset): Use i387_fill_fsave.
7904
49b563f9
KS
79052002-02-12 Keith Seitz <keiths@redhat.com>
7906
49b563f9
KS
7907 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
7908 (core_addr_to_string_nz): New function.
7909
aeb98c60
RE
79102002-02-11 Richard Earnshaw <rearnsha@arm.com>
7911
7912 * arm-linux-nat.c: Really include arm-tdep.h.
7913 * config/arm/tm-linux.h (struct type, struct value): Declare.
7914
65554fef
MS
79152002-02-11 Michael Snyder <msnyder@redhat.com>
7916
7917 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
7918 (gcore section): Ifdef for Solaris and Unixware only.
7919 (procfs_do_thread_registers): Unixware needs one lwpstatus
7920 per thread (not one prstatus or pstatus).
7921 (procfs_make_note_section): Iterate only over kernel threads (lwps),
7922 not over all gdb threads. For unixware, call elfcore_write_pstatus
7923 once before iterating over threads.
7924
34e8f22d
RE
79252002-02-11 Richard Earnshaw <rearnsha@arm.com>
7926
7927 * arm-tdep.h: New file.
7928 * arm-tdep.c: Include arm-tdep.h.
7929 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
7930 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
7931 (arm_print_float_info, arm_register_type, convert_to_extended)
7932 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
7933 (arm_extract_return_value, arm_register_name): Make static.
7934 (arm_software_single_step): Similarly. Fix types in declaration.
7935 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
7936 (arm_store_return_value, arm_store_struct_return): New functions.
7937 (arm_gdbarch_init): Register the above functions. Also register
7938 call_dummy_start_offset, sizeof_call_dummy_words,
7939 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
7940 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 7941 max_register_virtual_size, register_size. Set up
34e8f22d
RE
7942 prologue_cache.saved_regs here, rather than ...
7943 (_initialize_arm_tdep): ... here.
7944 * config/arm/tm-arm.h (struct type, struct value): Delete forward
7945 declarations.
7946 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
7947 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
7948 (arm_print_float_info, arm_register_type, convert_to_extended)
7949 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
7950 (arm_extract_return_value, arm_register_name): Delete declarations.
7951 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
7952 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
7953 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
7954 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
7955 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7956 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
7957 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
7958 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
7959 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
7960 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
7961 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
7962 (arm_get_next_pc): No-longer static -- these are needed by the RDI
7963 interface.
7964 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
7965 * remote-rdi.c remote-rdp.c: Likewise.
7966 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
7967 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
7968 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
7969 definition.
7970
7971 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
7972 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
7973 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
7974 from non-ARM_ prefixed definitions.
7975 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
7976 all uses of above.
7977 * remote-rdi.c remote-rdp.c: Likewise.
7978 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
7979
148754e5
RE
79802002-02-11 Richard Earnshaw <rearnsha@arm.com>
7981
7982 * arm-tdep.c (arm_frameless_function_invocation)
7983 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
7984 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
7985 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
7986 (arm_pop_frame, arm_get_next_pc): Make static.
7987 (arm_gdbarch_init): Register above in gdbarch structure.
7988 (arm_read_fp): Renamed from arm_target_read_fp.
7989 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
7990 * config/arm/tm-arm.h (arm_frameless_function_invocation)
7991 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
7992 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
7993 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
7994 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
7995 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
7996 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
7997 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
7998 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
7999 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 8000
434d2d4f
DJ
80012002-02-10 Daniel Jacobowitz <drow@mvista.com>
8002
8003 * symtab.c (compare_search_syms): New function.
8004 (sort_search_symbols): New function.
8005 (search_symbols): Sort symbols after searching rather than
8006 before.
8007
55241689
AC
80082002-02-10 Andrew Cagney <ac131313@redhat.com>
8009
8010 * NEWS: Linux -> GNU/Linux.
8011
028c194b
AC
80122002-02-10 Andrew Cagney <ac131313@redhat.com>
8013
8014 * gdbarch.sh: For for level one methods, disallow a definition
8015 when partially multi-arched. Add comments explaining rationale.
8016 * gdbarch.h: Re-generate.
8017
6acf50cd
AC
80182002-02-10 Andrew Cagney <ac131313@redhat.com>
8019
8020 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8021 multi-arch partial.
aaa38bb5 8022
50248794
AC
80232002-02-10 Andrew Cagney <ac131313@redhat.com>
8024
8025 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8026 field. Use diff -u.
8027 * gdbarch.c: Re-generate.
8028
c30e0066
AC
80292002-02-10 Andrew Cagney <ac131313@redhat.com>
8030
9b56c5f3 8031 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
8032 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8033 partial.
8034
6e6d6484
AC
80352002-02-10 Andrew Cagney <ac131313@redhat.com>
8036
8037 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8038 multi-arch partial.
8039 (PUSH_ARGUMENTS): Switch to using predefault.
8040 * gdbarch.c: Regenerate.
8041
c203844d
AC
80422002-02-10 Andrew Cagney <ac131313@redhat.com>
8043
8044 * valops.c (PUSH_ARGUMENTS): Delete definition.
8045 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8046 partial. Default to default_push_arguments.
8047 * gdbarch.h, gdbarch.c: Regenerate.
8048
b5a2688f
AC
80492002-02-09 Andrew Cagney <ac131313@redhat.com>
8050
8051 * defs.h (throw_exception): Rename return_to_top_level. Update
8052 comments.
8053 * utils.c (error_stream, internal_verror, quit): Ditto.
8054 * top.c (throw_exception, catcher): Ditto.
8055 * sparclet-rom.c (sparclet_load): Ditto.
8056 * remote.c (interrupt_query, minitelnet): Ditto.
8057 * remote-sds.c (interrupt_query): Ditto.
8058 * remote-mips.c (mips_error, mips_kill): Ditto.
8059 * ocd.c (interrupt_query): Ditto.
8060 * monitor.c (monitor_interrupt_query): Ditto.
8061 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8062 * target.h: Update comment.
aaa38bb5 8063
b5a2688f 8064 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 8065
2fa5c1e0
AC
80662002-02-09 Andrew Cagney <ac131313@redhat.com>
8067
8068 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8069 default_double_format.
8070 * gdbarch.h, gdbarch.c: Re-generate.
8071 * findvar.c (floatformat_unknown): Delete variable definition.
8072 * doublest.h (floatformat_unknown): Delete variable declaration.
8073
da966255
JB
80742002-02-09 Jim Blandy <jimb@redhat.com>
8075
8076 * stabsread.c (read_type): Add code to parse Sun's syntax for
8077 prototyped function types.
8078
123a4891
AC
80792002-02-09 Andrew Cagney <ac131313@redhat.com>
8080
8081 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8082 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8083
fb39c8f3
PS
80842002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8085
8086 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8087 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8088 now _initialize_xcoffsolib gets called again and overrides the
8089 commands from solib.c in a native configuration.
8090
0b87a11d
MK
80912002-02-09 Mark Kettenis <kettenis@gnu.org>
8092
8093 * doublest.c (store_typed_floating): Don't try to return a value.
8094 Fixes PR gdb/290.
8095
bdc2fc72
JB
80962002-02-08 Jim Blandy <jimb@redhat.com>
8097
8098 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8099 is prototyped and has no arguments, print its argument list as
8100 `(void)'.
8101
da69bbcf
CD
81022002-02-08 Chris Demetriou <cgd@broadcom.com>
8103
8104 * MAINTAINERS (write-after-approval): Add myself.
8105 (paper-trail): I've escaped!
aaa38bb5 8106
b69571f5
CF
81072002-02-08 Christopher Faylor <cgf@redhat.com>
8108
8109 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8110 changes.
8111 (_initialize_check_for_gdb_ini): Ditto.
8112
f6871398
MH
81132002-02-08 Martin M. Hunt <hunt@redhat.com>
8114
8115 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8116 xaprintf -> xasprintf.
8117
4e52d31c
PM
81182002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8119
8120 * win32-nat.c: Remove use of printf and sprintf functions.
8121
39bbf761
RE
81222002-02-08 Richard Earnshaw <rearnsha@arm.com>
8123
8124 * arm-tdep.c (arm_frame_chain_valid): Make static.
8125 (arm_push_arguments): Likewise.
8126 (arm_gdbarch_init): New function.
8127 (_initialize_arm_tdep): Call it.
8128 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8129 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8130 (FRAME_CHAIN_VALID): Delete.
8131 (arm_frame_chain_valid): Delete declaration.
8132 (PUSH_ARGUMENTS): Delete.
8133 (arm_push_arguments): Delete declaration.
8134 (CALL_DUMMY_P): Delete.
8135
9c9532c9
CV
81362002-02-08 Andrew Cagney <ac131313@redhat.com>
8137 Corinna Vinschen <vinschen@redhat.com>
8138
8139 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8140 on builtin float types.
8141
4e8f7a8b
DJ
81422002-02-08 Daniel Jacobowitz <drow@mvista.com>
8143
8144 * utils.c: Include <curses.h> before "bfd.h".
8145 * tui/tui-hooks.c: Likewise.
8146 * tui/tui.c: Likewise.
8147 * tui/tuiCommand.c: Likewise.
8148 * tui/tuiData.c: Likewise.
8149 * tui/tuiDataWin.c: Likewise.
8150 * tui/tuiDisassem.c: Likewise.
8151 * tui/tuiGeneralWin.c: Likewise.
8152 * tui/tuiIO.c: Likewise.
8153 * tui/tuiLayout.c: Likewise.
8154 * tui/tuiRegs.c: Likewise.
8155 * tui/tuiSource.c: Likewise.
8156 * tui/tuiSourceWin.c: Likewise.
8157 * tui/tuiStack.c: Likewise.
8158 * tui/tuiWin.c: Likewise.
8159
cd4bffcf
EZ
81602002-02-07 Elena Zannoni <ezannoni@redhat.com>
8161
8162 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8163 to include space for pseudoregs as well. Update loops accordingly.
8164 (sh_fp_frame_init_saved_regs): Ditto.
8165 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8166
26806ce2
AC
81672002-02-07 Andrew Cagney <ac131313@redhat.com>
8168
8169 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8170 Add Richard Earnshaw to Arm maintainers.
8171
97fdab62
AC
81722002-02-07 Andrew Cagney <ac131313@redhat.com>
8173
a6b98203
AC
8174 * defs.h (warning_begin): Delete declaration.
8175
97fdab62
AC
8176 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8177 Delete macro.
8178
78b29b40
MS
81792002-02-07 Michael Snyder <msnyder@redhat.com>
8180
aaa38bb5 8181 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
8182 Logic bug, remove misplaced else.
8183
d8849953
KD
81842002-02-07 Klee Dienes <klee@apple.com>
8185
8186 * fork-inferior.c (fork_inferior): Add '!' to the list of
8187 characters that need to be quoted when building a string for the
8188 shell. Quote '!' specifically with a backslash, since CSH chokes
8189 when trying to evaluate "str!str".
aaa38bb5 8190
095778a0
NC
81912002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8192
8193 * rdi-share/host.h: Only provide a typedef for bool if it is not
8194 defined.
8195
1900040c
MS
81962002-02-04 Michael Snyder <msnyder@redhat.com>
8197
8198 * breakpoint.h (enum bptype): Add new overlay event bp type.
8199 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 8200
1900040c
MS
8201 * breakpoint.c (create_internal_breakpoint): New function.
8202 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8203 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8204 (create_thread_event_breakpoint): Ditto.
8205 (create_solib_event_breakpoint): Ditto.
8206 (create_overlay_event_breakpoint): New function.
8207 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8208 (update_breakpoints_after_exec): Delete and re-initialize
8209 overlay event breakpoints after an exec. Add FIXME comment
8210 about longjmp breakpoint.
8211 (print_it_typical): Ignore overlay event breakpoints.
8212 (print_one_breakpoint): Ditto.
8213 (mention): Ditto.
8214 (bpstat_what): Do not stop for overlay event breakpoints.
8215 (delete_breakpoint): Don't delete overlay event breakpoints.
8216 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8217 (breakpoint_re_set): Re-create overlay event breakpoint.
8218
8219 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8220 (overlay_manual_command): Disable overlay breakpoints.
8221 (overlay_off_command): Disable overlay breakpoints.
8222
082fc60d
RE
82232002-02-06 Richard Earnshaw <rearnsha@arm.com>
8224
8225 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8226 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8227 to here from config/tm-arm.h.
8228 (coff_sym_is_thumb): Make static.
8229 (arm_elf_make_msymbol_special): New function.
8230 (arm_coff_make_msymbol_special): New function.
8231 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8232 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8233 (coff_sym_is_thumb): Delete declaration.
8234 (arm_elf_make_msymbol_special): Declare.
8235 (arm_coff_make_msymbol_special): Declare.
8236 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8237 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8238
039c5766
RE
82392002-02-06 Richard Earnshaw <rearnsha@arm.com>
8240
8241 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8242
82432002-02-06 Richard Earnshaw <rearnsha@arm.com>
8244
8245 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8246 * gdbarch.c gdbarch.h: Regenerate.
8247 * arch-utils.c (default_print_float_info): New function.
8248 * arch-utils.h (default_print_float_info): Prototype it.
8249 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8250 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8251 (PRINT_FLOAT_INFO): Document it.
8252
8253 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8254 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8255 (PRINT_FLOAT_INFO): Define.
8256
58fa08f0
PM
82572002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8258
aaa38bb5 8259 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
8260 Add typecast to sprintf argument to suppress a warning.
8261
7393af7c
PM
82622002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
8263
58fa08f0 8264 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
8265 to allow easier handling of pass state.
8266 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8267 that gives exception name and address.
8268 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 8269 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 8270 exceptions added.
aaa38bb5
AJ
8271 (child_continue): Correctly report continue_status.
8272 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 8273 TARGET_SIGNAL_0 (new default value).
aaa38bb5 8274 (child_resume): consider sig argument passed to decide if
7393af7c
PM
8275 the exception should be passed to debuggee or not.
8276
6af4589c
MS
82772002-02-05 Michael Snyder <msnyder@redhat.com>
8278
8279 * regcache.c (fetch_register): Call target_fetch_register
8280 only if we don't call FETCH_PSEUDO_REGISTER.
8281 (store_register): Call target_store_register only if we
8282 don't call STORE_PSEUDO_REGISTER.
8283
a2cf933a
EZ
82842002-02-05 Elena Zannoni <ezannoni@redhat.com>
8285
8286 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8287 ELF_MAKE_MSYMBOL_SPECIAL.
8288 * gdbarch.c, gdbarch.h: Regenerate.
8289 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 8290 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
8291 * elfread.c (elf_symtab_read): Compile use of
8292 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8293 multiarched.
8294 * coffread.c (coff_symtab_read): Ditto, for
8295 COFF_MAKE_MSYMBOL_SPECIAL.
8296
6bb7be43
JB
82972002-02-05 Jim Blandy <jimb@redhat.com>
8298
8299 * solib-svr4.c (svr4_truncate_ptr): New function.
8300 (svr4_relocate_section_addresses): Do the address arithmetic with
8301 the appropriate truncation for target addresses, even when
8302 CORE_ADDR is larger than a target address.
8303
e18651ec
DJ
83042002-02-05 Daniel Jacobowitz <drow@mvista.com>
8305
8306 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8307 to (int *).
8308
6b2725be
DJ
83092002-02-05 Daniel Jacobowitz <drow@mvista.com>
8310
8311 * gdbserver/linux-low.c (kill_inferior): Remove commented out
8312 code.
8313
fca9e603
DJ
83142002-02-05 Daniel Jacobowitz <drow@mvista.com>
8315
8316 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8317
6c537a52
DJ
83182002-02-05 Daniel Jacobowitz <drow@mvista.com>
8319
8320 * gdbserver/linux-low.c: Remove unused include files.
8321
d844cde6
DJ
83222002-02-05 Daniel Jacobowitz <drow@mvista.com>
8323
8324 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8325 (read_inferior_memory): Use it.
8326 (write_inferior_memory): Likewise.
8327
d07c63e7
DJ
83282002-02-05 Daniel Jacobowitz <drow@mvista.com>
8329
8330 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8331 grubbing through sys_errlist.
8332
da6d8c04
DJ
83332002-02-05 Daniel Jacobowitz <drow@mvista.com>
8334
8335 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
8336
5b421780
PM
83372002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8338 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
8339
9f60d481
AC
83402002-02-04 Andrew Cagney <ac131313@redhat.com>
8341
8342 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
8343 (do_sfunc, set_cmd_sfunc): New functions.
8344
8345 * command.h (struct cmd_list_element): Add field func.
8346 * cli/cli-decode.h (struct cmd_list_element): Ditto.
8347 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
8348 * cli/cli-decode.h: Ditto.
8349
8350 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
8351 (help_all, help_cmd_list): Ditto.
8352 (find_cmd, complete_on_cmdlist): Ditto.
8353 * top.c (execute_command): Ditto.
8354
8355 * cli/cli-setshow.c (do_setshow_command): Call func instead of
8356 function.sfunc.
8357
8358 * infcmd.c (notice_args_read): Fix function signature.
8359
8360 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
8361 * cli/cli-decode.c (add_set_cmd): Ditto.
8362 * utils.c (initialize_utils): Ditto.
8363 * maint.c (_initialize_maint_cmds): Ditto.
8364 * infrun.c (_initialize_infrun): Ditto.
8365 * demangle.c (_initialize_demangler): Ditto.
8366 * remote.c (add_packet_config_cmd): Ditto.
8367 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8368 * cris-tdep.c (_initialize_cris_tdep): Ditto.
8369 * proc-api.c (_initialize_proc_api): Ditto.
8370 * kod.c (_initialize_kod): Ditto.
8371 * valprint.c (_initialize_valprint): Ditto.
8372 * top.c (init_main): Ditto.
8373 * infcmd.c (_initialize_infcmd): Ditto.
8374 * corefile.c (_initialize_core): Ditto.
8375 * arm-tdep.c (_initialize_arm_tdep): Ditto.
8376 * arch-utils.c (initialize_current_architecture): Ditto.
8377 (_initialize_gdbarch_utils): Ditto.
8378 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
8379
8380 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
8381 * wince.c (_initialize_inftarg): Ditto.
8382 * symfile.c (_initialize_symfile): Ditto.
8383 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8384 * language.c (_initialize_language): Ditto.
8385 * arc-tdep.c (_initialize_arc_tdep): Ditto.
8386
f9ba0717
MS
83872002-02-04 Michael Snyder <msnyder@redhat.com>
8388
8389 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
8390
0c74b2a7
DJ
83912002-02-04 Daniel Jacobowitz <drow@mvista.com>
8392
8393 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
8394 Add rules for building the register data files.
8395
c638789f
DJ
83962002-02-04 Daniel Jacobowitz <drow@mvista.com>
8397
8398 * regformats/regdat.sh: Add braces to the definition of
8399 expedite_regs_${arch}.
8400
db253027
DJ
84012002-02-04 Daniel Jacobowitz <drow@mvista.com>
8402
8403 * regformats/regdef.h (struct reg): Add comment describing the
8404 requirements for offset and size fields.
8405
206be19c
AS
84062002-02-04 Andreas Schwab <schwab@suse.de>
8407
8408 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
8409 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
8410
181c1381
RE
84112002-02-04 Richard Earnshaw <rearnsha@arm.com>
8412
8413 * gdbarch.sh (copyright): Update years in generated header.
8414 (SMASH_TEXT_ADDRESS): Add rule.
db253027 8415 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
8416 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
8417 * dbxread.c: Likewise.
8418 * dwarfread.c: Likewise.
8419 * elfread.c: Likewise.
8420 * somread.c: Likewise.
8421
8422 * arm-tdep.c (arm_smash_text_address): New function.
8423 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
8424
fa4ba8da
PM
84252002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8426
8427 Add support for hardware watchpoints on win32 native.
aaa38bb5 8428 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 8429 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 8430 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
8431 of debug registers.
8432 (debug_registers_changed): New variable. Reflects when debug registers
8433 are changed and need to be written to inferior.
aaa38bb5 8434 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
8435 was set, used when new threads are created.
8436 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
8437 i386-nat code.
8438 (thread_rec): Set dr array if id is the thread of current_event .
8439 (child_continue, child_resume): Change the debug registers for all
8440 threads if debug_registers_changed.
8441 (child_add_thread): Change the debug registers if debug_registers_used.
8442 * config/i386/cygwin.mh: Add use of i386-nat.o file.
8443 Link nm.h to new nm-cygwin.h file.
8444 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
8445 of hardware registers.
8446
a73c86fb
AC
84472002-02-03 Andrew Cagney <ac131313@redhat.com>
8448
8449 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
8450 Restore behavour broken by 2002-01-20 Andrew Cagney
8451 <ac131313@redhat.com> IEEE_FLOAT removal.
8452
acf5ed49
DJ
84532002-02-03 Daniel Jacobowitz <drow@mvista.com>
8454
8455 * c-valprint.c (c_val_print): Pass a proper valaddr to
8456 cp_print_class_method.
8457 * valops.c (search_struct_method): If there is only one method
8458 and args is NULL, return that method.
8459
493d28d5
DJ
84602002-02-03 Daniel Jacobowitz <drow@mvista.com>
8461
8462 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
8463 accessing tag_name directly.
8464
7495dfdb
DJ
84652002-02-03 Daniel Jacobowitz <drow@mvista.com>
8466
8467 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
8468 of accessing tag_name directly.
8469
dd6bda65
DJ
84702002-02-03 Daniel Jacobowitz <drow@mvista.com>
8471
8472 PR gdb/280
8473 * gdbtypes.c (replace_type): New function.
8474 * gdbtypes.h (replace_type): Add prototype.
8475 * stabsread.c (read_type): Use replace_type.
8476
88fe217c
RE
84772002-02-03 Richard Earnshaw <rearnsha@arm.com>
8478
8479 * Makefile.in (memattr.o): Add missing dependencies rule.
8480
e5d66720
PS
84812002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8482
8483 * breakpoint.c (break_at_finish_command): Really export.
8484 (break_at_finish_at_depth_command): Ditto.
8485 (tbreak_at_finish_command): Ditto.
8486 * hppa-tdep.c: Include completer.h.
8487 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
8488 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
8489
fffee0be
AC
84902002-02-01 Andrew Cagney <ac131313@redhat.com>
8491
8492 * utils.c (do_write): New function.
8493 (error_stream): Rewrite combining the code from error_begin and
8494 verror.
8495 (verror): Rewrite using error_stream.
8496 (error_begin): Delete function.
8497
255e7dbf
AC
84982002-02-01 Andrew Cagney <ac131313@redhat.com>
8499
8500 * utils.c (error_begin): Make static.
8501 * defs.h (error_begin): Delete declaration.
8502
8503 * linespec.c (cplusplus_error): Replace cplusplus_hint.
8504 (decode_line_1): Use cplusplus_error instead of error_begin,
8505 cplusplus_hint and return_to_top_level.
8506 * coffread.c (coff_symfile_read): Use error instead of error_begin
8507 and return_to_top_level.
8508 * infrun.c (default_skip_permanent_breakpoint): Ditto.
8509
ddfe3c15
AC
85102002-02-01 Andrew Cagney <ac131313@redhat.com>
8511
8512 * language.h (type_error, range_error): Make string parameter
8513 constant.
8514 * language.c (warning_pre_print): Delete extern declaration.
8515 * dwarfread.c (warning_pre_print): Ditto.
8516 * language.c (type_error, range_error): Rewrite to use verror and
8517 vwarning instead of warning_begin.
8518
03ac34d5
MS
85192002-02-01 Michael Snyder <msnyder@redhat.com>
8520
261c4ca2
MS
8521 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
8522 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 8523
e00d1dc8
AC
85242002-02-01 Andrew Cagney <ac131313@redhat.com>
8525
8526 * command.h (NO_FUNCTION): Delete macro.
8527 * cli/cli-decode.h (NO_FUNCTION): Ditto.
8528 * top.c (execute_command): Replace NO_FUNCTION with NULL.
8529 * tracepoint.c (_initialize_tracepoint): Ditto.
8530 * cli/cli-decode.c (add_set_cmd): Ditto.
8531 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 8532
76b79d6e
DJ
85332002-02-01 Daniel Jacobowitz <drow@mvista.com>
8534
8535 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
8536 Update ``this'' pointer when calling virtual functions.
8537
799f9e91
MS
85382002-02-01 Michael Snyder <msnyder@redhat.com>
8539
c7bd442c 8540 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
8541 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
8542
3cf384d4
DJ
85432002-02-01 Daniel Jacobowitz <drow@mvista.com>
8544
8545 * regformats/reg-arm.dat: New file.
8546 * regformats/reg-i386.dat: New file.
8547 * regformats/reg-ia64.dat: New file.
8548 * regformats/reg-m68k.dat: New file.
8549 * regformats/reg-mips.dat: New file.
8550 * regformats/reg-ppc.dat: New file.
8551 * regformats/reg-sh.dat: New file.
8552 * regformats/regdef.h: New file.
8553 * regformats/regdat.sh: New file.
8554
0defa245
RE
85552002-02-01 Richard Earnshaw <reanrsha@arm.com>
8556
8557 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
8558 (arm_frame_args_address, arm_frame_locals_address): New functions.
8559 (arm_frame_num_args): New function.
8560 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
8561 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
8562 (FRMA_NUM_ARGS): Call arm_frame_num_args.
8563
405f26e6
MS
85642002-01-31 Michael Snyder <msnyder@redhat.com>
8565
502fd408
MS
8566 * breakpoint.c (break_at_finish_command): Export.
8567 (break_at_finish_at_depth_command): Export.
8568 (tbreak_at_finish_command): Export.
8569 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
8570 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
8571 "tbreak" commands, which are HPPA specific.
8572
7d35e135
MS
8573 * printcmd.c (disassemble_command): Remove an ancient
8574 artifact of an old merge.
8575
aaa38bb5 8576 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
8577 Define enum constant values for overlay mode.
8578 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
8579 (overlay_is_mapped, overlay_auto_command,
8580 overlay_manual_command): Ditto.
d874f1e2 8581
aaa38bb5
AJ
8582 * breakpoint.c (insert_breakpoints, remove_breakpoint,
8583 breakpoint_here_p, breakpoint_inserted_here_p,
8584 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
8585 describe_other_breakpoints, check_duplicates, clear_command):
8586 Coding standard fixes.
8587
8add0441 8588 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 8589 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
8590 code: check bfd SEC_READONLY flag for section.
8591
e351066e
AC
85922002-01-31 Andrew Cagney <ac131313@redhat.com>
8593
7d35e135 8594 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 8595
8a48e967
DJ
85962002-01-30 Daniel Jacobowitz <drow@mvista.com>
8597
8598 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
8599 data symbols, since we search based on textlow and texthigh.
8600 (find_pc_sect_symtab): Likewise.
8601
f5a96129
AC
86022002-01-30 Andrew Cagney <ac131313@redhat.com>
8603
8604 * defs.h (vwarning): Declare.
f5a96129
AC
8605 * utils.c (vwarning): New function.
8606 (warning): Call vwarning.
8607 (warning_begin): Delete function.
8608
8609 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
8610 the warning message.
8611 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
8612 warning_begin.
8613
cefd4ef5
MS
86142002-01-30 Michael Snyder <msnyder@redhat.com>
8615
1a703748
MS
8616 * NEWS: Mention "set trust-readonly-sections" command.
8617 Mention generate-core-file command.
cefd4ef5 8618
3a11626d
MS
86192002-01-15 Michael Snyder <msnyder@redhat.com>
8620
8621 * target.c: New command, "set trust-readonly-sections on".
8622 (do_xfer_memory): Honor the suggestion to trust readonly sections
8623 by reading them from the object file instead of from the target.
8624 (initialize_targets): Register command "set trust-readonly-sections".
8625
d1c7e53b
AC
86262002-01-29 Andrew Cagney <ac131313@redhat.com>
8627
8628 * parse.c (target_map_name_to_register): Simplify, search regs and
8629 pseudo-regs using a single loop.
8630
e2c9a72c
AC
86312002-01-30 Andrew Cagney <ac131313@redhat.com>
8632
8633 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
8634
69824b4e
MK
86352002-01-15 Rodney Brown <rbrown64@csc.com.au>
8636
8637 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
8638 * config/i386/i386v42mp.mh: Add i387-nat.o .
8639 * i386v4-nat.c: Include i387-nat.h.
8640 (supply_fpregset): Use i387_supply_fsave.
8641 (fill_fpregset): Use i387_fill_fsave.
8642
6eb69eab
RE
86432002-01-30 Richard Earnshaw <rearnsha@arm.com>
8644
8645 * arm-tdep.c (arm_call_dummy_words): Define.
8646 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
8647 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
8648 (CALL_DUMMY_WORDS): Define.
8649 (arm_call_dummy_words): Declare.
8650 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
8651 (arm_linux_call_dummy_words): Declare.
8652
9852326a
AS
86532002-01-30 Andreas Schwab <schwab@suse.de>
8654
8655 * m68klinux-nat.c: Fix last change to use regcache_collect
8656 instead of referencing registers[] directly.
8657
977a3030
AC
86582002-01-29 Andrew Cagney <ac131313@redhat.com>
8659
8660 * parse.c (target_map_name_to_register): Delete code wrapped in
8661 #ifdef REGISTER_NAME_ALIAS_HOOK.
8662
2076c72b
MS
86632002-01-28 Michael Snyder <msnyder@redhat.com>
8664
8665 * regcache.c (legacy_read_register_gen): Need to be able to
8666 read pseudo-register as well as real register.
8667 (legacy_write_register_gen): Ditto.
8668
8fcc723b
AC
86692002-01-28 Andrew Cagney <ac131313@redhat.com>
8670
8671 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
8672 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
8673 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
8674 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
8675 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
8676 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
8677 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
8678 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
8679 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
8680 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
8681 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
8682 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
8683 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
8684 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
8685 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
8686 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
8687 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
8688 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
8689 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
8690 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
8691
afe64c1a
AC
86922002-01-28 Andrew Cagney <ac131313@redhat.com>
8693
8694 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
8695 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
8696 (initialize_current_architecture): Update target_byte_order using
8697 information from BFD.
aaa38bb5 8698 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
8699 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
8700
75bc7ddf
AC
87012002-01-28 Andrew Cagney <ac131313@redhat.com>
8702
8703 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
8704 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
8705
8706 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
8707 #ifdef INVALID_FLOAT.
8708 * infcmd.c (do_registers_info): Ditto.
8709 * values.c (unpack_double): Ditto. Add comment.
8710
8711 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
8712 already commented out.
8713
0280a90a
AS
87142002-01-26 Andreas Schwab <schwab@suse.de>
8715
8716 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8717 * m68klinux-nat.c: Update ptrace interface for fetching/storing
8718 registers and add support for PTRACE_GETREGS.
8719
7072a954
AC
87202002-01-24 Andrew Cagney <ac131313@redhat.com>
8721
8722 GDB 5.1.1 released from 5.1 branch.
8723 * NEWS: Add 5.1.1 news.
8724 * README: Sync with 5.1 branch.
8725
86f902e0
FF
87262002-01-23 Fred Fish <fnf@redhat.com>
8727
8728 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
8729 stabstring on initial malloc. Reallocing will copy it for us,
8730 if necessary.
8731
8af51c36
EZ
87322002-01-23 Elena Zannoni <ezannoni@redhat.com>
8733
aaa38bb5 8734 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
8735 (HFILES_NO_SRCDIR): Remove hpread.h.
8736 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
8737 (hpread.o): Update dependencies.
8738 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
8739
8740 * hp-psymtab-read.c: Remove file.
8741 * hp-symtab-read.c: Remove file.
8742 * hpread.h: Remove file.
8743
8744 * hpread.c: Merge all contents of hp-psymtab-read.c,
8745 hp-symtab-read.c and hpread.h into this file, as it was prior to
8746 January 1999.
8747
8748 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 8749 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
8750 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
8751 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
8752
dc5cfeb6
EZ
87532002-01-23 Elena Zannoni <ezannoni@redhat.com>
8754
8755 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
8756 fill_gregset): Call gdbarch_tdep() just once, assign result to
8757 variable and use that, instead of calling the function several
8758 times.
8759
ea87b71b
AO
87602002-01-24 Alexandre Oliva <aoliva@redhat.com>
8761
8762 * configure.host: Accept sparcv9 as alias for sparc64.
8763 * configure.tgt: Likewise.
8764
13fc0c2f
KB
87652002-01-22 Kevin Buettner <kevinb@redhat.com>
8766
8767 * solib-aix5.c (build_so_list_from_mapfile)
8768 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
8769 arguments is not reversed.
8770 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
8771 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 8772
7bd872fe
EZ
87732002-01-22 Elena Zannoni <ezannoni@redhat.com>
8774
8775 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
8776 modified version of obsolete sh_fetch_pseudo_register.
8777 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
8778 (sh4_register_read): New function.
8779 (sh_pseudo_register_write): New function. Renamed and modified
8780 version of obsolete sh_store_pseudo_register.
8781 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
8782 (sh4_register_write): New function.
8783 (sh_gdbarch_init): Remove setting of gdbarch function
8784 fetch_pseudo_register and store_pseudo_register. Remove setting of
8785 register_convert_to_raw, register_convert_to_virtual,
8786 register_convertible.
8787 (sh_sh4_register_convertible): Delete. No longer needed. All is
8788 taken care by architecture specific functions
8789 register_read/register_write.
8790 (sh_sh4_register_convert_to_virtual): Make static.
8791 (sh_sh4_register_convert_to_raw): Ditto.
8792
069e84fd
AC
87932002-01-22 Andrew Cagney <ac131313@redhat.com>
8794
8795 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
8796 (floatformat_is_nan, floatformat_mantissa): Ditto.
8797
8798 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
8799 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
8800 builtin_type_ieee_double_little,
8801 builtin_type_ieee_double_littlebyte_bigword,
8802 builtin_type_m68881_ext, builtin_type_i960_ext,
8803 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
8804 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
8805 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
8806 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
8807
211a4f69
CV
88082002-01-22 Corinna Vinschen <vinschen@redhat.com>
8809
8810 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
8811 parameter. Set frameless flag if it exists and depended of
8812 whether the scanned function is frameless or not.
8813 (xstormy16_skip_prologue): If function is frameless, return
8814 result of xstormy16_scan_prologue().
8815 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
8816 call.
8817
f81353e4
EZ
88182002-01-21 Elena Zannoni <ezannoni@redhat.com>
8819
8820 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
8821 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
8822 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
8823 sh_sh4_register_byte, sh_sh4_register_raw_size,
8824 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
8825 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
8826 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
8827 sh_store_pseudo_register, sh_do_pseudo_register): Call
8828 gdbarch_tdep() just once, assign result to variable and use that,
8829 instead of calling the function several times.
8830
63c73a17
MK
88312002-01-20 Mark Kettenis <kettenis@gnu.org>
8832
8833 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
8834 macros instead of LAST_FPU_CTRL_REGNUM.
8835 (store_register): Likewise.
8836
39ad761d
JB
88372002-01-21 Jim Blandy <jimb@redhat.com>
8838
8839 * infcmd.c (run_command): Check that the `exec' target layer's BFD
8840 is up-to-date before running the program, not just when a program
8841 exits.
8842
3d74b771
FF
88432002-01-21 Fred Fish <fnf@redhat.com>
8844
8845 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
8846 when we have found all instructions we are looking for.
8847
966fbf70
RE
88482002-01-21 Richard Earnshaw <rearnsha@arm.com>
8849
8850 * arm-tdep.c (arm_register_name): New function.
8851 (arm_registers_names): Make static.
8852 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
8853 (arm_register_name): Declare.
8854 (REGISTER_NAME): Use it.
8855
c3b4394c
RE
88562002-01-21 Richard Earnshaw <rearnsha@arm.com>
8857 Kevin Buettner <kevinb@redhat.com>
8858
8859 Convert arm targets to new FRAME interface.
8860 * arm-tdep.c (struct frame_extra_info): Remove fsr.
8861 (arm_frame_find_save_regs): Delete.
8862 (arm_frame_init_saved_regs): New.
8863 (arm_init_extra_frame_info): Alloacte saved_regs as required.
8864 Allocate extra_info as required. Convert all uses of fsr.regs
8865 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
8866 to use extra_info.
8867 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
8868 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
8869 (check_prologue_cache, save_prologue_cache): Likewise.
8870 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
8871 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
8872 (FRAME_FIND_SAVED_REGS): Delete.
8873 (arm_frame_find_saved_regs): Delete prototype.
8874 (arm_frame_init_saved_regs): New prototype.
8875 (FRAME_INIT_SAVED_REGS): Define.
8876
61d99182
AC
88772002-01-20 Andrew Cagney <ac131313@redhat.com>
8878
8879 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
8880
6aaea291
AC
88812002-01-20 Andrew Cagney <ac131313@redhat.com>
8882
8883 From Jeff Law <law@redhat.com>:
8884 * infttrace.c: Include <sys/pstat.h>.
8885 (child_pid_to_exec_file): Revamp. Use pstat call to get the
8886 exec file if the ttrace equivalent fails.
8887
15f698d2
AC
88882002-01-20 Andrew Cagney <ac131313@redhat.com>
8889
8890 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
8891 (closeLogFile): Ditto.
8892
f86ddd7c
MC
88932002-01-20 Michael Chastain <mec@shout.net>
8894
8895 * top.c (print_gdb_version): Bump copyright year to 2002.
8896
904507ce
AC
88972002-01-20 Andrew Cagney <ac131313@redhat.com>
8898
8899 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
8900 Zannoni and Eli Zaretskii.
8901
d7f0b9ce
DJ
89022002-01-20 Daniel Jacobowitz <drow@mvista.com>
8903
8904 * buildsym.c: Update copyright years.
8905 * c-typeprint.c: Likewise.
8906 * dwarf2read.c: Likewise.
8907 * f-typeprint.c: Likewise.
8908 * gdbtypes.c: Likewise.
8909 * gdbtypes.h: Likewise.
8910 * hp-symtab-read.c: Likewise.
8911 * hpread.c: Likewise.
8912 * mdebugread.c: Likewise.
8913 * p-typeprint.c: Likewise.
8914
3fd3d7d2
AC
89152002-01-20 Andrew Cagney <ac131313@redhat.com>
8916
8917 * remote-sim.c (gdbsim_open): Simplify code testing the macro
8918 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
8919 byte-order selectable.
8920 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
8921 * arch-utils.c: Ditto.
8922 (set_endian): Ditto.
8923 (set_endian_from_file): Ditto.
8924 * gdbserver/low-sim.c (create_inferior): Ditto.
8925 * gdbarch.sh: Ditto.
8926 * gdbarch.h: Re-generate.
aaa38bb5
AJ
8927 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
8928 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
8929 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
8930 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
8931 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
8932 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
8933 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
8934 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
8935 macro definition.
8936 * config/mips/tm-wince.h: Remove #undef of macro
8937 TARGET_BYTE_ORDER_SELECTABLE.
8938 * config/sh/tm-wince.h: Ditto.
8939
b02dede2
DJ
89402002-01-20 Daniel Jacobowitz <drow@mvista.com>
8941
8942 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
8943 member function fields. Add accessor macro
8944 TYPE_FN_FIELD_ARTIFICIAL.
8945 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
8946 * c-typeprint.c (c_type_print_base): Skip artificial member
8947 functions.
8948
c3643761
DJ
89492002-01-20 Daniel Jacobowitz <drow@mvista.com>
8950
8951 * f-typeprint.c: Delete unused function f_type_print_args.
8952 * p-typeprint.c: Delete unused function pascal_type_print_args.
8953
8176bb6d
DJ
89542002-01-20 Daniel Jacobowitz <drow@mvista.com>
8955
8956 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
8957 comment. Add ``artificial'' to ``union field_location''.
8958
8959 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
8960
8961 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
8962 * mdebugread.c (parse_symbol): Likewise.
8963 * stabsread.c (define_symbol): Likewise.
8964 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
8965 initializing TYPE_FIELD_BITPOS to n (obsolete).
8966 (hpread_doc_function_type): Likewise.
8967 * hpread.c (hpread_function_type): Likewise.
8968
7fd60527
AC
89692002-01-20 Andrew Cagney <ac131313@redhat.com>
8970
8971 * configure.in (host_makefile_frag): Only require a host makefile
8972 fragment when a native build.
8973 * configure: Re-generate.
8974
c2f05ac9
AC
89752002-01-20 Andrew Cagney <ac131313@redhat.com>
8976
8977 * doublest.h (floatformat_from_type): Declare.
8978 * doublest.c (floatformat_from_type): New function.
8979 (convert_typed_floating): Use.
8980
8981 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
8982 call to function floatformat_from_type.
8983
8984 * gdbarch.sh (IEEE_FLOAT): Delete.
8985 * gdbarch.h, gdbarch.c: Re-generate.
8986 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
8987 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
8988 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
8989 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
8990 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
8991 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
8992 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
8993 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
8994 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
8995 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
8996 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
8997 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
8998
8999 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9000 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9001 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9002 * sh-tdep.c (sh_gdbarch_init): Ditto.
9003 * mips-tdep.c (mips_gdbarch_init): Ditto.
9004 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9005 * cris-tdep.c (cris_gdbarch_init): Ditto.
9006
abf22e64
AJ
90072002-01-20 Jiri Smid <smid@suse.cz>
9008
9009 * configure.host, configure.tgt: Support x86-64.
9010 * NEWS: Note new target x86-64.
9011
b7c4cbf8
AJ
9012 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9013 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9014 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9015 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9016 x86-64-linux-nat.o): Fix dependencies.
9017
82600034
AC
90182002-01-19 Andrew Cagney <ac131313@redhat.com>
9019
9020 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9021 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9022 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9023 * config/sparc/xm-sun4os4.h: Delete file.
9024 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 9025
bbe5c628
AC
90262002-01-19 Andrew Cagney <ac131313@redhat.com>
9027
9028 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9029 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9030 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9031 * config/i386/i386lynx.mh (XM_FILE): Delete.
9032 * config/rs6000/xm-rs6000ly.h: Delete file.
9033 * config/sparc/xm-sparclynx.h: Delete file.
9034 * config/m68k/xm-m68klynx.h: Delete file.
9035 * config/i386/xm-i386lynx.h: Delete file.
9036 * config/xm-lynx.h: Delete file.
9037 * config/djgpp/fnchange.lst: Update.
9038
f8453e34
JT
90392002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9040
9041 * alpha-tdep.c (alpha_register_byte): New function.
9042 (alpha_register_raw_size): Ditto.
9043 (alpha_register_virtual_size): Ditto.
9044 (alpha_skip_prologue_internal): Renamed from
9045 alpha_skip_prologue.
9046 (alpha_skip_prologue): New version that calls
9047 alpha_skip_prologue_internal.
9048 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9049 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9050 second argument from alpha_skip_prologue.
9051 (REGISTER_BYTE): Use alpha_register_byte.
9052 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9053 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9054 (FRAMELESS_FUNCTION_INVOCATION): Use
9055 generic_frameless_function_invocation_not.
9056 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9057 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9058
52d9e613
AC
90592002-01-19 Andrew Cagney <ac131313@redhat.com>
9060
9061 * config/mips/xm-news-mips.h: Delete file.
9062 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9063
9064 * config/m88k/xm-m88k.h: Delete file.
9065 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9066 * config/m88k/xm-delta88v4.h: Ditto.
9067 * config/m88k/xm-delta88.h: Ditto.
9068
9069 * config/alpha/xm-fbsd.h: Delete file.
9070 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9071
9072 * config/sparc/xm-sparc.h: Delete file.
9073 * Makefile.in (xm-sun4os4.h): Delete dependency.
9074 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9075 * config/sparc/xm-sun4os4.h: Ditto.
9076 * config/sparc/xm-linux.h: Ditto.
9077
9078 * config/i386/xm-windows.h: Delete file.
9079
2d1b2124
AC
90802002-01-19 Andrew Cagney <ac131313@redhat.com>
9081
9082 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9083 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9084
ee1f65f0
JT
90852002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9086
9087 * alpha-tdep.c (alpha_call_dummy_words): New.
9088 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9089 (CALL_DUMMY_P): Define.
9090 (CALL_DUMMY_WORDS): Define.
9091 (SIZEOF_CALL_DUMMY_WORDS): Define.
9092
98081e55
PB
90932002-01-19 Per Bothner <per@bothner.com>
9094
9095 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9096 isn't NULL, which can happen with some gcj-3.x-produced code.
9097
0d056799
JT
90982002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9099
9100 * alpha-tdep.c (alpha_register_virtual_type): New function.
9101 (alpha_init_frame_pc_first): Ditto.
9102 (alpha_fix_call_dummy): Ditto.
9103 (alpha_store_struct_return): Ditto.
9104 (alpha_extract_struct_value_address): Ditto.
9105 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9106 alpha_register_virtual_type.
9107 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9108 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9109 alpha_extract_struct_value_address.
9110 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9111 (INIT_FRAME_PC): Use init_frame_pc_noop.
9112 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9113
4604bcad
MK
91142002-01-19 Mark Kettenis <kettenis@gnu.org>
9115
9116 * i386gnu-nat.c: Include "i386-tdep.h".
9117 (fetch_fpregs): Simplify code dealing with uninitialized floating
9118 point states such that it doesn't require FP7_REGNUM.
9119
140f9984
JT
91202002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9121
abf22e64
AJ
9122 * alpha-tdep.c (frame_extra_info): New.
9123 (alpha_find_saved_regs): Make static. Use
140f9984
JT
9124 frame->extra_info.
9125 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
9126 (alpha_frame_saved_pc): Use frame->extra_info.
9127 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9128 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
9129 (init_extra_frame_info): Rename to...
9130 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 9131 (alpha_print_extra_frame_info): New function.
140f9984
JT
9132 (alpha_frame_locals_address): Ditto.
9133 (alpha_frame_args_address): Ditto.
abf22e64 9134 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
9135 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9136 alpha_frame_args_address.
abf22e64 9137 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 9138 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
9139 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9140 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
9141 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9142 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9143
d734c450
JT
91442002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9145
9146 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9147 (alpha_cannot_fetch_register): Ditto.
9148 (alpha_cannot_store_register): Ditto.
9149 (alpha_register_convertible): Ditto.
9150 (alpha_use_struct_convention): Ditto.
9151 * config/alpha/tm-alpha.h: Update copyright years.
9152 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9153 (INNER_THAN): Use core_addr_lessthan.
9154 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9155 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9156 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9157 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9158 (FRAME_CHAIN): Remove unnecessary cast.
9159
b4ceaee6
AC
91602002-01-18 Andrew Cagney <ac131313@redhat.com>
9161
9162 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9163 obsolete.
9164
0a65a603
AC
91652002-01-18 Andrew Cagney <ac131313@redhat.com>
9166
9167 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9168 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9169 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9170 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9171 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9172 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9173 * x86-64-linux-nat.c: Ditto.
9174
636a6dfc
JT
91752002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9176
abf22e64 9177 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
9178 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9179 (REGISTER_NAME): Define.
9180
acceddb6
JT
91812002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9182
9183 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9184
ec32e4be
JT
91852002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9186
9187 * alpha-tdep.c: Update copyright years.
9188 (alpha_next_pc): New function.
9189 (alpha_software_single_step): Ditto.
9190 * config/alpha/tm-alpha.h: Add prototype for
9191 alpha_software_single_step.
9192
e771a871
JT
91932002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9194
9195 * alphabsd-nat.c: Update copyright years.
9196 (fill_gregset): Use regcache_collect.
9197 (fill_fpregset): Likewise.
9198 (fetch_inferior_registers): Only fetch integer registers
9199 if requested to do so.
9200 (store_inferior_registers): Only store integer registers
9201 if requested to do so.
9202
7708fa01
AC
92032002-01-17 Andrew Cagney <ac131313@redhat.com>
9204
9205 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9206 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9207 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9208 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9209 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9210 * config/arm/linux.mh (XDEPFILES): Delete.
9211 * config/arm/nbsd.mh (XDEPFILES): Delete.
9212 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9213 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9214 * config/i386/i386m3.mh (XDEPFILES): Delete.
9215 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9216 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9217 * config/i386/fbsd.mh (XDEPFILES): Delete.
9218 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9219 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9220 * config/i386/i386v4.mh (XDEPFILES): Delete.
9221 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9222 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9223 * config/i386/i386aix.mh (XDEPFILES): Delete.
9224 * config/i386/go32.mh (XDEPFILES): Delete.
9225 * config/i386/cygwin.mh (XDEPFILES): Delete.
9226 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9227 * config/i386/i386mach.mh (XDEPFILES): Delete.
9228 * config/i386/i386v32.mh (XDEPFILES): Delete.
9229 * config/i386/linux.mh (XDEPFILES): Delete.
9230 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9231 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9232 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9233 * config/i386/i386sco.mh (XDEPFILES): Delete.
9234 * config/i386/i386v.mh (XDEPFILES): Delete.
9235 * config/i386/nbsd.mh (XDEPFILES): Delete.
9236 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9237 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9238 * config/i386/symmetry.mh (XDEPFILES): Delete.
9239 * config/i386/obsd.mh (XDEPFILES): Delete.
9240 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9241 * config/ia64/linux.mh (XDEPFILES): Delete.
9242 * config/ia64/aix.mh (XDEPFILES): Delete.
9243 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9244 * config/m68k/dpx2.mh (XDEPFILES): Delete.
9245 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9246 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9247 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9248 * config/m68k/linux.mh (XDEPFILES): Delete.
9249 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9250 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9251 * config/m68k/nbsd.mh (XDEPFILES): Delete.
9252 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9253 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9254 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9255 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9256 * config/m88k/delta88.mh (XDEPFILES): Delete.
9257 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9258 * config/m88k/m88k.mh (XDEPFILES): Delete.
9259 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9260 * config/mips/linux.mh (XDEPFILES): Delete.
9261 * config/mips/irix6.mh (XDEPFILES): Delete.
9262 * config/mips/irix5.mh (XDEPFILES): Delete.
9263 * config/mips/irix4.mh (XDEPFILES): Delete.
9264 * config/mips/irix3.mh (XDEPFILES): Delete.
9265 * config/mips/decstation.mh (XDEPFILES): Delete.
9266 * config/mips/mipsm3.mh (XDEPFILES): Delete.
9267 (NATDEPFILES): Move core-aout.o to here.
9268 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9269 * config/pa/hpux1020.mh (XDEPFILES): Delete.
9270 * config/pa/hppabsd.mh (XDEPFILES): Delete.
9271 * config/pa/hppahpux.mh (XDEPFILES): Delete.
9272 * config/pa/hpux11w.mh (XDEPFILES): Delete.
9273 * config/pa/hppaosf.mh (XDEPFILES): Delete.
9274 * config/pa/hpux11.mh (XDEPFILES): Delete.
9275 * config/powerpc/aix.mh (XDEPFILES): Delete.
9276 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9277 * config/powerpc/linux.mh (XDEPFILES): Delete.
9278 * config/romp/rtbsd.mh: Rename XDEPFILES.
9279 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9280 * config/rs6000/aix4.mh (XDEPFILES): Delete.
9281 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9282 * config/s390/s390.mh (XDEPFILES): Delete.
9283 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9284 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9285 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9286 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9287 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9288 * config/sparc/nbsd.mh (XDEPFILES): Delete.
9289 * config/sparc/linux.mh (XDEPFILES): Delete.
9290 * config/vax/vaxult.mh (XDEPFILES): Delete.
9291 * config/vax/vaxult2.mh (XDEPFILES): Delete.
9292 * Makefile.in (DEPFILES): Remove XDEPFILES.
9293
375fc983
AC
92942002-01-17 Andrew Cagney <ac131313@redhat.com>
9295
9296 * utils.c (internal_verror): Fix comments, default is yes not no.
9297 Update queries to match. Default to quit and dump core.
9298
8926118c
AC
92992002-01-17 Andrew Cagney <ac131313@redhat.com>
9300
9301 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
9302 copyright.
9303 * defs.h, event-top.c, gdbcmd.h: Ditto.
9304 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9305 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9306 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9307 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9308 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9309 * mi/mi-main.c:Ditto.
9310
9311 * stack.c, symfile.c: Update copyright.
9312
45b7b345
DJ
93132002-01-17 Daniel Jacobowitz <drow@mvista.com>
9314
db728ff7
DJ
9315 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9316 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9317 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9318 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 9319
db728ff7
DJ
93202002-01-17 Daniel Jacobowitz <drow@mvista.com>
9321
9322 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9323 * gdbserver/low-lynx.c (myattach): Likewise.
9324 * gdbserver/low-nbsd.c (myattach): Likewise.
9325 * gdbserver/low-sim.c (myattach): Likewise.
9326 * gdbserver/low-sparc.c (myattach): Likewise.
9327 * gdbserver/low-sun3.c (myattach): Likewise.
9328
9329 * gdbserver/low-linux.c (myattach): New function.
45b7b345 9330
db728ff7 9331 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
9332 (main): Handle "--attach".
9333
8de3c354
AC
93342002-01-16 Andrew Cagney <ac131313@redhat.com>
9335
9336 * MAINTAINERS (language support): Daniel Jacobwitz is C++
9337 maintainer.
9338
b0129042
DJ
93392002-01-15 Daniel Jacobowitz <drow@mvista.com>
9340
9341 * c-typeprint.c (is_type_conversion_operator): Add additional
9342 check for non-conversion operators.
9343
ba8679fb 93442002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
9345
9346 * linux-proc.c: Add "info proc" command, a la procfs.c.
9347 (read_mapping): New function, abstract and re-use code.
9348 (linux_find_memory_regions): Use new func read_mapping.
9349 (linux_info_proc_cmd): New function, implement "info proc".
9350 (_initialize_linux_proc): Add new command "info proc".
9351
e4f9b4d5
MS
93522002-01-15 Michael Snyder <msnyder@redhat.com>
9353
9354 * symfile.c (generic_load): Use bfd_map_over_sections method
9355 instead of manipulating bfd structure members directly.
9356 (add_section_size_callback): New function, bfd sections callback
9357 used by generic_load.
9358 (load_sections_callback): New function, bfd sections callback
9359 used by generic_load.
9360
08cf96df
EZ
93612002-01-15 Elena Zannoni <ezannoni@redhat.com>
9362
abf22e64 9363 [Based on work by Jim Blandy]
08cf96df
EZ
9364 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
9365 (builtin_type_vec128): Export.
9366 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
9367 types.
9368 (builtin_type_vec128): New builtin type for 128 bit vector
9369 registers.
9370 (build_gdbtypes): Initialize builtin_type_v16qi and
9371 builtin_type_v8hi. Create the vec128 register builtin type
9372 structure.
9373 (build_builtin_type_vec128): New function.
abf22e64 9374 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
9375 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
9376 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
9377 AltiVec register to new builtin type.
9378
d7242108
DJ
93792001-01-15 Daniel Jacobowitz <drow@mvista.com>
9380
9381 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
9382 to make_cv_type.
9383
4ee3352d
AC
93842002-01-14 Andrew Cagney <ac131313@redhat.com>
9385
9386 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
9387 CLEAN_UP_REGISTER_VALUE.
9388 * regcache.c (supply_register): Update only call.
9389
f015b2e7
AC
93902002-01-14 Andrew Cagney <ac131313@redhat.com>
9391
9392 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
9393 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
9394 a29k-*-vxworks* targets as obsolete.
9395
356ae49d
MS
93962002-01-14 Michael Snyder <msnyder@redhat.com>
9397
9398 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
9399 until we can resolve portability issues.
9400 * gregset.h: Remove references to fpxregs.
9401 * gcore.c (gcore_command): Initialize note_sec to NULL.
9402
ade8f45e
AC
94032002-01-13 Andrew Cagney <ac131313@redhat.com>
9404
9405 * signals.c (target_signal_to_name): Rewrite. Only use
9406 signals[].name when in bounds and non-NULL.
abf22e64 9407
89c49e7a
AC
94082002-01-13 Andrew Cagney <ac131313@redhat.com>
9409
9410 From Petr Ledvina <ledvinap@kae.zcu.cz>:
9411 * signals.c (target_signal_to_name): Verify that SIG is within the
9412 bounds of the signals array.
9413
4daa9f9f
AC
94142002-01-13 Andrew Cagney <ac131313@redhat.com>
9415
9416 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
9417
ba4bbdcb
KS
94182002-01-13 Keith Seitz <keiths@redhat.com>
9419
9420 * stack.c (print_frame_info_base): Print the frame's pc
9421 only if when print_frame_info_listing_hook is not defined.
9422
575bbeb6
KS
94232002-01-13 Keith Seitz <keiths@redhat.com>
9424
9425 * varobj.c (varobj_set_value): Make sure that there were no
9426 errors evaluating the object before attempting to set its
9427 value.
9428 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
9429 so this offset adjustment is no longer necessary.
9430 (create_child): Don't set the error flag if the child is
9431 a CPLUS_FAKE_CHILD.
9432 (value_of_child): If value_fetch_lazy fails, return NULL
9433 so that callers will be notified that an error occurred.
9434 (c_value_of_variable): Delay check of variable's validity
9435 until later. We actually want all structs and unions to have
9436 the value "{...}".
9437 Do not return "???" for variables which could not be evaluated.
9438 This error condition must be returned to the caller so that it
9439 can get the error condition from gdb.
9440 (cplus_name_of_child): Adjust index for vptr before figuring
9441 out the name of the child.
9442 (cplus_value_of_child): If a child's (real) parent is not valid,
9443 don't even bother trying to give a value for it. Just return
9444 an error. Change all instances in this function.
9445 (cplus_type_of_child): If our parent is one of the "fake"
9446 parents, we need to get at the type of the real parent, and
9447 derive the child's true type using this information.
9448
b76898ab
AC
94492002-01-13 Andrew Cagney <ac131313@redhat.com>
9450
9451 From 2002-01-09 John Marshall <johnm@falch.net>:
9452 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
9453 sources.redhat.com, and tweak some related URLs which had
9454 suffered from linkrot.
9455
b6649e88
AC
94562002-01-13 Andrew Cagney <ac131313@redhat.com>
9457
9458 From Jeff law:
9459 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
9460 structures passed in registers.
9461
82cc5033
EZ
94622002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
9463
9464 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
9465 white space which prevented compilation. Reported by DSK
9466 <dsk@student.unsw.edu.au>.
9467
ba5f2f8a
MS
94682002-01-11 Michael Snyder <msnyder@redhat.com>
9469
fbd35540
MS
9470 * symfile.c (build_section_addr_info_from_section_tab):
9471 Use bfd access method instead of manipulating bfd directly.
9472 (syms_from_objfile): Ditto.
9473 (simple_overlay_update_1): Ditto.
9474 (simple_overlay_update): Ditto.
9475 (generic_load): Ditto.
9476 (overlay_unmapped_address): FIXME comment, bfd access methods.
9477 (sections_overlap): FIXME comment, bfd access methods.
9478 (pc_in_mapped_range): FIXME comment, bfd access methods.
9479 (pc_in_unmapped_range): FIXME comment, bfd access methods.
9480 (section_is_mapped): FIXME comment, bfd access methods.
9481 (section_is_overlay): FIXME comment, bfd access methods.
9482
ba5f2f8a
MS
9483 * symfile.c (generic_load): Whitespace and long line cleanups.
9484 Remove duplicate variable, change several local variables to
9485 more appropriate data types.
9486 (print_transfer_performance): Use %lu instead of %ld for ulongs.
9487
17df2af6
AC
94882002-01-12 Andrew Cagney <ac131313@redhat.com>
9489
9490 From Peter Schauer:
9491 * language.c (longest_local_hex_string_custom): Use phex_nz to
9492 convert NUM to a hex string.
9493
ec920329
EZ
94942002-01-12 Elena Zannoni <ezannoni@redhat.com>
9495
9496 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
9497 the function.
538a76d6 9498 Update Copyright year.
ec920329 9499
3abd2e01
AC
95002002-01-12 Andrew Cagney <ac131313@redhat.com>
9501
9502 * language.c (longest_raw_hex_string): Delete unused function.
9503
b21b22e0
PS
95042002-01-11 Petr Sorfa <petrs@caldera.com>
9505
9506 * MAINTAINERS (write-after-approval): Add myself.
9507 * dwarf2read.c (read_tag_string_type): Handling of
9508 DW_AT_byte_size.
9509 (read_tag_string_type): FORTRAN fix to prevent propagation of
9510 first string size.
9511 (set_cu_language): Handling of DW_LANG_Fortran95
9512
747fe712
RE
95132002-01-11 Richard Earnshaw <rearnsha@arm.com>
9514
9515 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
9516 GETPID(inferior_ptid).
9517 (store_inferior_registers): Likewise.
9518
f1bea926
JM
95192002-01-10 Jason Merrill <jason@redhat.com>
9520
9521 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
9522 Fix DW_OP_minus.
9523
ae940673
AC
95242002-01-10 Andrew Cagney <ac131313@redhat.com>
9525
9526 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
9527 and bfd/elf32-sh-nbsd.c.
9528
00546b04
MS
95292002-01-10 Michael Snyder <msnyder@redhat.com>
9530
352ed7b4
MS
9531 * NEWS: Mention --pid and corefile/proc-id behavior change.
9532
c18be923
MS
9533 * Makefile.in: Add rules for gcore.o and linux-proc.o.
9534 * gcore.c: Include cli/cli-decode.h instead of command.h.
9535
00546b04
MS
9536 * main.c (captured_main): Add new command line option "--pid".
9537 If the second command line argument (following the symbol-file)
9538 begins with a digit, try to attach to it before trying to open
9539 it as a corefile.
9540 (print_gdb_help): Document the "--pid" argument.
9541
db60ec62
EZ
95422002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
9543
9544 * completer.c (command_completer): New function.
9545
9546 * completer.h <command_completer>: Add prototype.
9547
9548 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
9549 completer for the "help" command.
9550
39c22d1a
JM
95512002-01-09 Jason Merrill <jason@redhat.com>
9552
9553 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
9554
c564377f
MS
95552002-01-09 Michael Snyder <msnyder@redhat.com>
9556
975aec09
MS
9557 * i386-linux-nat.c (fill_fpxregset): Make global.
9558 (store_fpxregset): Ditto.
9559
db4a10fa
MS
9560 * gregset.h (gdb_fpxregset_t): Define.
9561 (supply_fpxregset): Prototype.
9562 (fill_fpxregset): Prototype.
9563
c564377f
MS
9564 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
9565
c3d45d70
RE
95662002-01-09 Richard Earnshaw <rearnsha@arm.com>
9567
9568 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
9569 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
9570 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
9571
fcc87af1
AC
95722002-01-09 Andrew Cagney <ac131313@redhat.com>
9573
9574 * MAINTAINERS: Update target maintainer rules so that any
9575 Maintainer can approve a tested patch for a maintenance-only
9576 target.
9577
dd96c05b
RE
95782002-01-09 Richard Earnshaw <rearnsha@arm.com>
9579
d4297db9 9580 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 9581
d4297db9 9582 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
9583 IN_SIGTRAMP.
9584
145fdc6e
MS
95852002-01-08 Michael Snyder <msnyder@redhat.com>
9586
9587 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
9588 real name of the executable, rather than the /proc name.
9589
be4d1333
MS
95902002-01-03 Michael Snyder <msnyder@redhat.com>
9591
9592 Implement a "generate-core-file" command in gdb, save target state.
9593 * gcore.c: New file. Implement new command 'generate-core-file'.
9594 Save a corefile image of the current state of the inferior.
9595 * linux-proc.c: Add linux-specific code for saving corefiles.
9596 * target.h (struct target_ops): Add new target vectors for saving
9597 corefiles; to_find_memory_regions and to_make_corefile_notes.
9598 (target_find_memory_regions): New macro.
9599 (target_make_corefile_notes): New macro.
9600 * target.c (update_current_target): Inherit new target methods.
9601 (dummy_find_memory_regions): New place-holder method.
9602 (dummy_make_corefile_notes): New place-holder method.
9603 (init_dummy_target): Initialize new dummy target vectors.
9604 * exec.c (exec_set_find_memory_regions): New function.
9605 Allow the exec_ops vector for memory regions to be taken over.
9606 (exec_make_note_section): New function, target vector method.
9607 * defs.h (exec_set_find_memory_regions): Export prototype.
9608 * procfs.c (proc_find_memory_regions): New function, corefile method.
9609 (procfs_make_note_section): New function, corefile method.
9610 (init_procfs_ops): Set new target vector pointers.
9611 (find_memory_regions_callback): New function.
9612 (procfs_do_thread_registers): New function.
9613 (procfs_corefile_thread_callback): New function.
9614 * sol-thread.c (sol_find_memory_regions): New function.
9615 (sol_make_note_section): New function.
9616 (init_sol_thread_ops): Initialize new target vectors.
9617 * inftarg.c (inftarg_set_find_memory_regions): New function.
9618 Allow to_find_memory_regions vector to be taken over.
9619 (inftarg_set_make_corefile_notes): New function.
9620 Allow to_make_corefile_notes vector to be taken over.
9621 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
9622 interface layer if not target_has_execution (may be a corefile).
9623 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
9624 * config/sparc/sun4sol2.mh: Ditto.
9625 * config/alpha/alpha-linux.mh: Ditto.
9626 * config/arm/linux.mh: Ditto.
9627 * config/i386/x86-64linux.mh: Ditto.
9628 * config/ia64/linux.mh: Ditto.
9629 * config/m68k/linux.mh: Ditto.
9630 * config/mips/linux.mh: Ditto.
9631 * config/powerpc/linux.mh: Ditto.
9632 * config/sparc/linux.mh: Ditto.
9633
c6b92abd
MS
96342002-01-07 Michael Snyder <msnyder@redhat.com>
9635
9636 * arm-linux-nat.c: Remove references to regcache.c internal data
9637 (registers[] and register_valid[]).
9638
4b09dc8c
MS
96392002-01-07 Michael Snyder <msnyder@redhat.com>
9640
abf22e64
AJ
9641 * linux-proc.c: New file. Implement child_pid_to_exec_file,
9642 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
9643 symbol file and shlibs.
9644 * Makefile.in: Add rule for linux-proc.o.
9645 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
9646 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
9647 * config/arm/linux.mh: Ditto.
9648 * config/i386/linux.mh: Ditto.
9649 * config/i386/x86-64linux.mh: Ditto.
9650 * config/ia64/linux.mh: Ditto.
9651 * config/m68k/linux.mh: Ditto.
9652 * config/mips/linux.mh: Ditto.
9653 * config/powerpc/linux.mh: Ditto.
9654 * config/sparc/linux.mh: Ditto.
9655
c25b74ac
PM
96562002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
9657
9658 * win32-nat.c: Add i386-tdep.h dependency.
9659
94cd915f
MS
96602002-01-07 Michael Snyder <msnyder@redhat.com>
9661
c7cccb76
MS
9662 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
9663 instead of bfd_get_arch_size. Don't bail out just because
9664 there's no exec_bfd.
abf22e64 9665
34c0bd93
MS
9666 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
9667 * p-valprint.c (pascal_object_print_value): Ditto.
9668 * somread.c (som_symtab_read): Ditto.
9669 * symfile.c (simple_free_overlay_region_table): Ditto.
9670 * valops.c (value_assign): Ditto.
9671
21c1c920
MS
9672 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
9673 use tilde_expand and strerror for opening save-tracepoints file.
9674
5bbd998e
MS
9675 * thread-db.c (thread_db_new_objfile): Indendation fix.
9676
94cd915f
MS
9677 * infptrace.c (GDB_MAX_ALLOCA): New define.
9678 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 9679 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
9680 can be overridden with whatever value is appropriate to the host).
9681 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
9682 alloca to allocate potentially large buffer.
9683 * rs6000-nat.c (child_xfer_memory): Ditto.
9684 * symm-nat.c (child_xfer_memory): Ditto.
9685 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
9686
494e8a93
JSC
96872002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
9688
9689 From Nick Clifton <nickc@redhat.com>
9690 * d10v-tdep.c: Set STACK_START to 0x200bffe.
9691
d0e1d48e
MS
96922002-01-07 Michael Snyder <msnyder@redhat.com>
9693
abf22e64 9694 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
9695 Don't use exec_bfd if it's NULL.
9696
290b2c7a
MK
96972002-01-06 Mark Kettenis <kettenis@gnu.org>
9698
abf22e64 9699 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 9700
aef21287
AC
97012002-01-06 Andrew Cagney <ac131313@redhat.com>
9702
9703 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
9704 * gnu-nat.c: Ditto.
9705
30efa627
AC
97062002-01-06 Andrew Cagney <ac131313@redhat.com>
9707
9708 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
9709 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
9710 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
9711 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
9712 z8k-coff have not been multi-arched. Update z8k-coff build
9713 status.
9714
9b4ff276
AC
97152002-01-06 Andrew Cagney <ac131313@redhat.com>
9716
9717 * MAINTAINERS: Mark a29k target as obsolete.
9718 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
9719 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
9720 comments.
9721 * NEWS: Note that a29k targets are obsolete.
9722 * a29k-tdep.c: Mark as obsolete.
9723 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
9724 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
9725 a29k-*-vxworks* targets as obsolete.
9726 * remote-adapt.c: Obsolete.
9727 * remote-eb.c: Obsolete.
9728 * remote-mm.c: Obsolete.
9729 * remote-udi.c: Obsolete.
9730 * config/a29k/a29k-udi.mt: Obsolete.
9731 * config/a29k/a29k.mt: Obsolete.
9732 * config/a29k/tm-a29k.h: Obsolete.
9733 * config/a29k/tm-vx29k.h: Obsolete.
9734 * config/a29k/vx29k.mt: Obsolete.
9735
a9011d31
AC
97362002-01-05 Andrew Cagney <ac131313@redhat.com>
9737
9738 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
9739 with BFD_ENDIAN_BIG.
9740
9299404e
AC
97412002-01-05 Andrew Cagney <ac131313@redhat.com>
9742
9743 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
9744 * configure, config.in: Re-generate.
9745 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
9746 * defs.h: Do not include <endian.h>.
9747
7e89e357
JT
97482002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
9749
9750 * acconfig.h (HAVE_PT_GETXMMREGS): New.
9751 * config.in: Regenerate.
9752 * configure.in: Update copyright years.
9753 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
9754 * configure: Regenerate.
9755 * i386bsd-nat.c: Update copyright years.
9756 (fill_gregset): Use regcache_collect.
9757 (fetch_inferior_registers): Only fetch integer registers
9758 if requested to do so. Add support for XMM registers
9759 using PT_GETXMMREGS.
9760 (store_inferior_registers): Only store integer registers
9761 if requested to do so. Add support for XMM registers
9762 using PT_SETXMMREGS.
9763 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
9764 (store_inferior_registers): Remove.
9765 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
9766 (fetch_elfcore_registers): New function.
9767 (i386nbsd_elfcore_fns): New.
9768 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
9769 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
9770 i386bsd-nat.o.
9771 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9772 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
9773 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
9774 * config/i386/tm-nbsd.h: Update copyright years.
9775 (HAVE_SSE_REGS): Define.
9776 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
9777 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
9778 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
9779 (SIGCONTEXT_PC_OFFSET): Remove.
9780 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
9781
a752853e
AC
97822002-01-05 Andrew Cagney <ac131313@redhat.com>
9783
9784 * configure.tgt: Remove powerpc-*-macos* target.
9785 * config/m68k/xm-mpw.h: Delete file.
9786 * config/xm-mpw.h: Delete file.
9787 * ser-mac.c: Delete file.
9788 * mpw-make.sed: Delete file.
9789 * mpw-config.in: Delete file.
9790 * mac-xdep.c: Delete file.
9791 * mac-gdb.r: Delete file.
9792 * mac-defs.h: Delete file.
9793 * mac-nat.c: Delete file.
9794 * config/powerpc/macos.mh: Delete file.
9795 * config/powerpc/macos.mt: Delete file.
9796 * config/powerpc/nm-macos.h: Delete file.
9797 * config/powerpc/tm-macos.h: Delete file.
9798 * source.c (openp, open_source_file): Remove obsolete code.
9799 * top.c (gdb_readline): Ditto.
9800 * utils.c (query): Ditto.
9801 * event-top.c (display_gdb_prompt): Ditto.
9802 * Makefile.in (ser-mac.o): Delete obsolete target.
9803 * NEWS: Update.
9804
d7449b42
AC
98052002-01-04 Andrew Cagney <ac131313@redhat.com>
9806
9807 * defs.h (BIG_ENDIAN): Delete macro definition.
9808 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
9809 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
9810 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
9811 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
9812 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
9813 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
9814 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
9815 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
9816 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
9817 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
9818 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
9819 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
9820 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
9821 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
9822 * gdbarch.c: Re-generate.
9823
356374e8
DJ
98242002-01-04 Daniel Jacobowitz <drow@mvista.com>
9825
9826 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
9827 for core files.
9828
a2b8f8f8
JT
98292002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
9830
9831 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
9832
12466af9
AC
98332002-01-04 Andrew Cagney <ac131313@redhat.com>
9834
9835 * value.h (value_ptr): Delete typedef.
9836
3549ab40
JT
98372002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
9838
9839 * i386nbsd-nat.c: Update copyright years.
9840 Include i386-tdep.h.
9841
fedbd091
EZ
98422002-01-04 Elena Zannoni <ezannoni@redhat.com>
9843
9844 * stabsread.c: Update copyright years.
9845
9846 From Debashis Mahata <debashis.mahata@wipro.com>:
9847 (read_struct_fields): Deal with Sun C compiler erroneous stab
9848 output for structs and unions.
fec8b34f 9849 Fix PR gdb/269.
fedbd091 9850
eb43544b
DJ
98512002-01-04 Daniel Jacobowitz <drow@mvista.com>
9852
9853 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
9854 prototype.
9855
1514d34e
DJ
98562002-01-04 Daniel Jacobowitz <drow@mvista.com>
9857
9858 * cp-abi.c: Fix whitespace.
9859 (baseclass_offset): New wrapper function.
9860 * cp-abi.h (baseclass_offset): Add prototype.
9861 (struct cp_abi_ops): Add baseclass_offset pointer.
9862
9863 * valops.c (vb_match): Move to...
9864 * gnu-v2-abi.c (vb_match): here.
9865 * valops.c (baseclass_offset): Move to...
9866 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
9867
9868 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
9869
9870 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
9871 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
9872 * hpacc-abi.c (init_hpacc_ops): Likewise.
9873
7f8c9282
DJ
98742002-01-04 Daniel Jacobowitz <drow@mvista.com>
9875
9876 * valops.c (find_overload_match): Accept obj as a
9877 reference parameter. Update it before returning.
9878 * value.h (find_overload_match): Update prototype.
9879 * eval.c (evaluate_subexp_standard): Pass object to
9880 find_overload_match by reference.
9881
f23631e4
AC
98822002-01-03 Andrew Cagney <ac131313@redhat.com>
9883
9884 * valarith.c: Replace value_ptr with struct value pointer. Remove
9885 register attribute from value declarations.
9886 * valops.c: Ditto.
9887 * value.h: Ditto.
9888 * scm-lang.c (scm_lookup_name): Ditto.
9889
79e10fab 98902002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 9891
79e10fab
AC
9892 Abstract the functionality of iterating over mapped memory
9893 regions into a general purpose iterator function.
abf22e64 9894 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
9895 iterator for memory sections.
9896 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
9897 (solib_mappings_callback): New function, callback for above.
9898 (info_proc_mappings): Reimpliment using iterate_over_mappings.
9899 (info_mappings_callback): New function, callback for above.
9900
9901 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
9902
c5ad026a
MK
99032002-01-01 Mark Kettenis <kettenis@gnu.org>
9904
d2a7c97a
MK
9905 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
9906 * i386-tdep.c: Include "elf-bfd.h".
9907 (process_note_abi_tag_sections): New function.
9908 (i386_gdbarch_init): Add code to recognize various OS/ABI
9909 combinations.
9910
c5ad026a
MK
9911 * maint.c (_initialize_maint_cmds): Add missing \ in
9912 string-literal.
9913
a1a5b71e 9914For older changes see ChangeLog-2001
c906108c
SS
9915\f
9916Local Variables:
9917mode: change-log
9918left-margin: 8
9919fill-column: 74
9920version-control: never
9921End:
This page took 0.71031 seconds and 4 git commands to generate.