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