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