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