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