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