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