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