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