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