2002-08-19 Michael Snyder <msnyder@redhat.com>
[binutils.git] / gdb / ChangeLog
CommitLineData
b5d1566e
MS
12002-08-19 Michael Snyder <msnyder@redhat.com>
2
3 * mips-tdep.c (mips_frame_num_args): New function.
4 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5 frame_saved_pc, frame_args_address, frame_locals_address,
6 frame_num_args, and frame_args_skip.
7 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
8 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
9 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
10 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
11
2f1488ce
MS
122002-08-20 Michael Snyder <msnyder@redhat.com>
13
14 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
15 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
16 * mips-tdep.c (mips_store_struct_return): New function.
17 (mips_extract_struct_value_address): New function.
18 (mips_gdbarch_init): Set store_struct_return and
19 extract_struct_value_address.
20
41ff2da1
DC
212002-08-20 David Carlton <carlton@math.stanford.edu>
22
23 * dwarf2read.c (dwarf2_build_psymtabs): Check that
24 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
25 (read_file_scope): Check that line_header is nonzero before
26 decoding macro information.
27
e5451d58
MK
282002-08-20 Mark Kettenis <kettenis@gnu.org>
29
30 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
31 flag the general-purpose registers as floating-point on targets
32 that don't support the floating-point registers.
33
4a6daafa
EZ
342002-08-20 Elena Zannoni <ezannoni@redhat.com>
35
36 * rs6000-tdep.c (altivec_register_p): Delete.
37 (rs6000_do_altivec_registers): Delete.
38 (rs6000_altivec_registers_info): Delete.
39 (rs6000_do_registers_info): Delete.
40 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
41 (rs6000_gdbarch_init): Remove setting of do_registers_info.
42
ab4327e0
EZ
432002-08-20 Elena Zannoni <ezannoni@redhat.com>
44
45 * infcmd.c (do_registers_info): Print vector registers in hex
46 format only.
47 (print_vector_info): Check that printing registers
48 makes sense.
49 (print_float_info): Ditto.
50
cb1d2653
AC
512002-08-20 Andrew Cagney <ac131313@redhat.com>
52
53 * mips-tdep.c (mips_gdbarch_init): Update.
54 (mips_o32_extract_return_value): Rewrite.
55 (mips_o32_store_return_value): Rewrite.
56 (mips_o32_xfer_return_value): New function.
57 (mips_xfer_register): Tweak debug print message. Allow for
58 buf_offset when dumping the value transfered.
59
dfc3d9b2
AC
602002-08-20 Andrew Cagney <ac131313@redhat.com>
61
62 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
63 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
64 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
65 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
66 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
67
7807aa61
MS
682002-08-14 Michael Snyder <msnyder@redhat.com>
69
70 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
71
489461e2
EZ
722002-08-19 Elena Zannoni <ezannoni@redhat.com>
73
74 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
75 register.
76 (P): New macro to define a register as a pseudo register.
77 (R, R4, R8, R16, FR32, R64, R0): Updated.
78 (struct variant): Add new fields for number of pseudo registers
79 and number of total registers.
80 (tot_num_registers): New macro replacing....
81 (num_registers): ...deleted macro.
82 (num_registers): New function.
83 (num_pseudo_registers): New function.
84 (variants): Update all variants to intialize new fields correctly.
85 Postpone initialization of number of pseudo regs and real regs.
86 (init_variants): New function.
87 (rs6000_gdbarch_init): Initialize variants. Update calculation of
88 registers offsets.
89
fcaffe4c
DC
902002-08-19 David Carlton <carlton@math.stanford.edu>
91
2c2738a0
DC
92 * valops.c (search_struct_field): Change error message to treat
93 return value of 0 from value_static_field as meaning that field is
94 optimized out.
95 (value_struct_elt_for_reference): Ditto.
96 * values.c (value_static_field): Treat an unresolved location the
97 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
98 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
99 enclosed. Fix PR gdb/574.
fcaffe4c
DC
100 * MAINTAINERS: Add self to Write After Approval list.
101
88658117
AC
1022002-08-19 Andrew Cagney <ac131313@redhat.com>
103
104 * mips-tdep.c (mips_xfer_register): New function.
105 (mips_n32n64_extract_return_value): Rewrite.
106 (mips_gdbarch_init): For N32 and N64, set extract_return_value
107 instead of deprecated_extract_return_value.
108
21283beb
EZ
1092002-08-19 Elena Zannoni <ezannoni@redhat.com>
110
111 * rs6000-tdep.c (TDEP): Delete macro.
112 (branch_dest): Replace use of TDEP macro with its body.
113 (rs6000_pop_frame): Ditto.
114 (rs6000_push_arguments): Ditto.
115 (rs6000_skip_trampoline_code): Ditto.
116 (rs6000_frame_saved_pc): Ditto.
117 (rs6000_frame_chain): Ditto.
118 (rs6000_register_name): Ditto.
119 (rs6000_register_byte): Ditto.
120 (rs6000_register_raw_size): Ditto.
121 (rs6000_register_virtual_type): Ditto.
122 (rs6000_register_convertible): Ditto.
123 (rs6000_convert_from_func_ptr_addr): Ditto.
124
bf072999
DJ
1252002-08-19 Daniel Jacobowitz <drow@mvista.com>
126
127 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
128 conditionally.
129 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
130 MIPS_LINUX_JB_ELEMENT_SIZE.
131 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
132 for MAX_REGISTER_RAW_SIZE arrays.
133 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
134 MIPS_LINUX_JB_ELEMENT_SIZE.
135
9b949a49
PM
1362002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
137
138 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
139
6d3e79c6
AS
1402002-08-19 Aidan Skinner <aidan@velvet.net>
141
142 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
143 ada-valprint.c ada-tasks.c.
144 (YYFILES): Add ada-exp.y.
145 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
146 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
147 (ada-exp.tab.o): New target.
148
06c0b04e
AC
1492002-08-18 Andrew Cagney <ac131313@redhat.com>
150
151 * regcache.c (regcache_xfer_part): New function.
152 (regcache_raw_read_part): New function.
153 (regcache_raw_write_part): New function.
154 (regcache_cooked_read_part): New function.
155 (regcache_cooked_write_part): New function.
156 * regcache.h (regcache_raw_read_part): Declare.
157 (regcache_raw_write_part): Declare.
158 (regcache_cooked_read_part): Declare.
159 (regcache_cooked_write_part): Declare.
160
92d1e331
DJ
1612002-08-18 Daniel Jacobowitz <drow@mvista.com>
162
163 * remote.c (remote_open_1): Add async_p.
164 (remote_async_open_1): Delete.
165 (open_remote_target): Delete.
166 (remote_open, extended_remote_open): Update calls to remote_open_1.
167 (remote_async_open, extended_remote_async_open): Call
168 remote_open_1 instead of remote_async_open_1.
169
247055de
MK
1702002-08-19 Mark Kettenis <kettenis@gnu.org>
171
172 * blockframe.c: Fix a few coding standard violations.
173
641eda39
MK
1742002-08-19 Mark Kettenis <kettenis@gnu.org>
175
0b717710
MK
176 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
177 here from ...
178 * config/i386/tm-i386sco5.h: ... here. File removed.
179 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
180
26d28e12 181 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
182 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
183 (TM_FILE): Set to tm-i386.h.
184 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
185 * config/i386/tm-i386v.h: Remove file.
186 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
187 instead of "i386/tm-i386v.h".
188 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
189 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
190 "i386/tm-i386v.h".
191 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
192 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
193 "i386/tm-i386.h".
194
d4e0bab4
MK
1952002-08-18 Mark Kettenis <kettenis@gnu.org>
196
197 * config/i386/nm-i386v.h: Add protection against
198 multiple-inclusion.
199 (i386_register_u_addr): Remove prototype.
200 (register_u_addr): New prototype.
201 (REGISTER_U_ADDR): Redefine accordingly.
202 * i386v-nat.c: Improve several comments.
203 (i386_register_u_addr): Change signature and rename to
204 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
205 ubase variable.
206
46cac009
AC
2072002-08-18 Andrew Cagney <ac131313@redhat.com>
208
209 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
210 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
211 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
212 deprecated_extract_return_value.
213 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
214 rename mips_o32o64_push_arguments.
215 (mips_gdbarch_init): Update.
216 (mips_extract_return_value): Delete.
217 (mips_o32_extract_return_value): Clone mips_extract_return_value.
218 (mips_o64_extract_return_value): Clone mips_extract_return_value.
219 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
220 (mips_n32n64_extract_return_value): Clone
221 mips_extract_return_value.
222 (mips_store_return_value): Delete.
223 (mips_o32_store_return_value): Clone mips_store_return_value.
224 (mips_o64_store_return_value): Clone mips_store_return_value.
225 (mips_eabi_store_return_value): Clone mips_store_return_value.
226 (mips_n32n64_store_return_value): Clone mips_store_return_value.
227
d2e4a39e
AS
2282002-08-18 Aidan Skinner <aidan@velvet.net>
229
0c30c098
AS
230 * ada-lang.c: Use gdb_string.h instead of <string.h>.
231 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
232
2332002-08-18 Aidan Skinner <aidan@velvet.net>
234
235 * ada-lang.c: Run through gdb_indent.sh.
236 * ada-lang.h: Run through gdb_indent.sh.
237 * ada-tasks.c: Run through gdb_indent.sh.
238 * ada-typeprint.c: Run through gdb_indent.sh.
239 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 240
01fc4e33
AC
2412002-08-18 Andrew Cagney <ac131313@redhat.com>
242
243 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
244 ABI.
245
d8ee244c
MK
2462002-08-18 Mark Kettenis <kettenis@gnu.org>
247
c38d8261
MK
248 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
249
222db64c
MK
250 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
251 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
252
c2848c82
MK
253 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
254 write_register_gen instead of write_register_bytes.
255
d8ee244c
MK
256 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
257 i[3456]-*-osf1mk* configurations have been made obsolete.
258 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
259 i[3456]86-*-osf1mk* hosts obsolete.
260 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
261 targets obsolete.
262 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
263 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
264 config/i386/i386m3.mt, config/i386/nm-m3.h,
265 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
266 config/i386/i386mk.mh, config/i386/i386mk.mt,
267 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
268 obsolete.
269 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
270 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
271 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
272
61d8d407
AC
2732002-08-18 Andrew Cagney <ac131313@redhat.com>
274
275 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
276 (hppa_value_returned_from_stack): Declare.
277 (hppa_extract_return_value): Declare.
278 * config/pa/hppa.mt: New file.
279 * configure.tgt: Recognize hppa*-*-*.
280 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
281
0c52bd59
MK
2822002-08-18 Mark Kettenis <kettenis@gnu.org>
283
284 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
285 comment.
286
b5686e99
MK
2872002-08-17 Mark Kettenis <kettenis@gnu.org>
288
289 * top.c (gdb_rl_operate_and_get_next): Make sure
290 operate-and-get-next functions correctly even when the history
291 list is completely filled.
292
c1bab85b
AC
2932002-08-18 Andrew Cagney <ac131313@redhat.com>
294
295 * MAINTAINERS (Target Instruction Set Architectures): Rename
296 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
297 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
298 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
299 already listed under Host/Native.
300
301 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
302 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
303 mips*-*-*.
304
32089c7c
AC
3052002-08-17 Andrew Cagney <ac131313@redhat.com>
306
307 * config/ia64/ia64.mt: New file.
308 * config/alpha/alpha.mt: New file.
309 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
310 ia64-linux-gnu. Mention that ia64-elf is broken.
311 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
312
b4671f85
MK
3132002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
314
315 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
316 generic_func_frame_valid instead of func_frame_valid.
317
c8edd8b4
JB
3182002-08-16 Joel Brobecker <brobecker@gnat.com>
319
320 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
321 procfs appears to be broken when debugging on multi-processor
322 machines. So enable software single stepping in order to avoid
323 using the procfs interface to do next/step operations, using
324 internal breakpoints instead.
325
326 * infrun.c (handle_inferior_event): Readjust the stop_pc by
327 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
328 make this pc address equal to the value it would have if the
329 system stepping capability was used. Also set a new flag used
330 to ensure that we don't readjust the PC one more time later.
331
332 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
333 address by DECR_PC_AFTER_BREAK when software single step is
334 in use for this architecture, as this has already been taken
335 care of in handle_inferior_event().
336
238617f6
JB
3372002-08-16 Joel Brobecker <brobecker@gnat.com>
338
339 * infrun.c (handle_inferior_event): Minor reformatting, to make
340 a rather long condition expression easier to read.
341
541a7aac
AC
3422002-08-16 Andrew Cagney <ac131313@redhat.com>
343
344 * Makefile.in (gdbtk.o): Move to end of file.
345 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
346 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
347 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
348 (gdbtk-wrapper.o, gdbres.o): Ditto.
349
f92d4a7b
AC
3502002-08-16 Andrew Cagney <ac131313@redhat.com>
351
352 * Makefile.in (copying.o): Separate out compile rule.
353 (hpux-thread.o, procfs.o, signals.o): Ditto.
354 (v850ice.o, z8k-tdep.o): Ditto.
355 (tui-file.o): Move to TUI section.
356 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
357 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
358
1cce71eb
JB
3592002-08-16 Joel Brobecker <brobecker@gnat.com>
360
361 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
362 skip_trampoline_code, for better namespace-proofing.
363
364 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
365
0851f23d
JB
3662002-08-16 Joel Brobecker <brobecker@gnat.com>
367
368 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
369
f8d40ec8
JB
3702002-08-16 Joel Brobecker <brobecker@gnat.com>
371
372 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
373 signal, check whether we hit a breakpoint before checking for a
374 single step breakpoint. Otherwise, GDB fails to notice that a
375 breakpoint has been hit when stepping onto a breakpoint.
376
63d022e0
KS
3772002-08-16 Keith Seitz <keiths@redhat.com>
378
379 * gdb-events.sh (clear_gdb_event_hooks): New function.
380 * gdb-events.c: Regenerate.
381 * gdb-events.h: Regenerate.
382
6e31adb3
AC
3832002-08-16 Andrew Cagney <ac131313@redhat.com>
384
385 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
386 not_a_sw_breakpoint.
387 * breakpoint.h (bpstat_stop_status): Add parameter names.
388
c8189ed1
GS
3892002-08-16 Grace Sainsbury <graces@redhat.com>
390
391 * remote.c (remote_insert_hw_breakpoint)
392 (remote_remove_hw_breakpoint): Fix calculation of length field
393 for Z-packet.
394
d05285fa
MS
3952002-08-15 Michael Snyder <msnyder@redhat.com>
396
466d7106
MS
397 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
398 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
399 (supply_fpregset): Ditto.
400
d05285fa
MS
401 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
402 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
403 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 404 (TARGET_READ_SP): Delete.
bf1f5b4c 405 (DO_REGISTERS_INFO): Delete.
102182a9
MS
406 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
407 Delete.
408 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
409 from macros to functions.
bf1f5b4c 410
d05285fa
MS
411 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
412 (mips_register_convertible, mips_register_convert_to_virtual,
413 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
414 (mips_read_sp): New function.
415 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
416 (mips_do_registers_info): Make static.
417 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
418 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
419 (mips_register_convert_from_type, mips_register_convert_to_type):
420 New functions.
421 (mips_gdbarch_init): Set up function_start_offset,
422 register_virtual_size, pc_in_sigtramp.
d05285fa 423
e76f1f2e
AC
4242002-08-15 Andrew Cagney <ac131313@redhat.com>
425
426 * infcmd.c (vector_info): New function.
427 (_initialize_infcmd): Add command "info vector".
428 (print_vector_info): New function.
429
430 * gdbarch.sh (PRINT_VECTOR_INFO): New method
431 * gdbarch.h, gdbarch.c: Regenerate.
432
4782dc19
AC
4332002-08-15 Andrew Cagney <ac131313@redhat.com>
434
435 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
436 ``print_all''. Only print vector registers when ``print_all''.
437
23e3a7ac
AC
4382002-08-15 Andrew Cagney <ac131313@redhat.com>
439
8e186fd6
AC
440 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
441 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
442
23e3a7ac
AC
443 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
444 Add `args' parameter.
445 * gdbarch.h, gdbarch.c: Regenerate.
446
447 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
448
449 * infcmd.c (float_info): Call print_float_info.
450 (print_float_info): New function. By default, print the
451 floating-point registers.
452
453 * arch-utils.h (default_print_float_info): Delete declaration.
454 * arch-utils.c (default_print_float_info): Delete function.
455
e0ca2bb9
MK
4562002-08-16 Mark Kettenis <kettenis@gnu.org>
457
3f733acc
MK
458 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
459 out define.
460
7d8d2918
MK
461 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
462 FRAME.
463
1c7cc583
MK
464 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
465 * configure.host: Make i[3456]86-*-aix host obsolete.
466 * configure.tgt: Make i[3456]86-*-aix target obsolete.
467 * config/i386/i386aix.mh, config/i386/i386aix.mt,
468 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
469 config/i386/xm-i386aix.h: Make files obsolete.
470 * i386aix-nat.c: Make file obsolete.
471 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
472 (i386aix-nat.o): Make target obsolete.
473
e0ca2bb9
MK
474 * config/i386/nm-gnu.h: Removed.
475 * config/i386/nm-i386gnu.h: New file.
476 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
477 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
478 Moved here from ...
479 * config/i386/tm-i386gnu.h: ... here. Removed.
480 * config/i386/xm-i386gnu.h: Removed.
481 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
482 (NAT_FILE): Set to nm-i386gnu.h.
483 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
484 * i386-tdep.c: New file.
485 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
486 (i386gnu-tdep.o): Specify dependencies.
487
16057ec7 4882002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 489
6b99ee2e
MK
490 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
491 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
492 Adjust a few comments to reflect reality a bit closer.
493 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
494 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
495 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
496 target_insert_watchpoint, target_remove_watchpoint):
497 Move defines to ...
498 * config/i386/nm-i386sco5.h: ... here.
499 (kernel_u_size): Add prototype. Improve a few comments and add
500 protection against multiple inclusion.
501
d9a6f65c
MK
502 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
503 out define.
504
047eff6a
MK
505 * uw-thread.c (SP_ARG0): Define if not already defined.
506 * config/i386/tm-i386.h (SO_ARG0): Remove define.
507
dcdb1290
MK
508 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
509
5d2d0b2a
MK
510 * config/i386/tm-i386.h: Don't include "regcache.h".
511
61113f8b
MK
512 * i387-tdep.h (i387_print_float_info): New prototype.
513 * i387-tdep.c (print_i387_value, print_i387_ext,
514 print_i387_status_word, print_i387_control_word): Add `struct
515 ui_file *' argument and use it for output.
516 (i387_print_float_info): Renamed from i387_float_info. Add
517 `struct gdbarch *' and `struct ui_file *' arguments and use the
518 latter for output.
519 * i386-tdep.c: Include "i387-tdep.h".
520 (i386_gdbarch_init): Set print_float_info.
521 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
522 (FLOAT_INFO): Remove define.
523
46e0f506
MS
5242002-08-13 Michael Snyder <msnyder@redhat.com>
525
526 * mips-tdep.c (mips_push_arguments): Rename to
527 mips_eabi_push_arguments, and tune for EABI.
528 (MIPS_REGS_HAVE_HOME_P): Delete.
529 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
530 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
531 Delete references to mips_regs_have_home_p.
532
409268de
KS
5332002-08-14 Keith Seitz <keiths@redhat.com>
534
535 * Makefile.in (install-gdbtk): Create insight plugin directory.
536 Install plugins.tcl file.
537
ffc6a242
KS
5382002-08-14 Keith Seitz <keiths@redhat.com>
539
540 * configure.in: Move SUBDIRS to near top of the file so that
541 --enable options may add things to it.
542 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
543 * configure: Regenerate.
544
ebafbe83
MS
5452002-08-13 Michael Snyder <msnyder@redhat.com>
546
547 * mips-tdep.c (mips_o32o64_push_arguments): New function,
548 cloned from mips_push_arguments, tuned for o32/o64 ABI.
549 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
550
32f6f25d
AC
5512002-08-13 Andrew Cagney <ac131313@redhat.com>
552
553 * vax-tdep.c (vax_get_saved_register): Delete function.
554 (vax_gdbarch_init): Update.
555 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
556 (ns32k_gdbarch_init): Update.
557 * alpha-tdep.c (alpha_get_saved_register): Delete function.
558 (alpha_gdbarch_init): Update.
559
53826de9
AC
5602002-08-13 Andrew Cagney <cagney@redhat.com>
561
562 * regcache.c (init_regcache_descr): Overallocate the
563 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
564 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
565 nr_raw_registers.
566 (set_register_cached): Add range checking assertions. Use
567 current_regcache.
568
16057ec7 5692002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
570
571 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
572 numbers for MMX registers.
573
7b4c2dce
AC
5742002-08-13 Andrew Cagney <cagney@redhat.com>
575
576 * i386-tdep.c (i386_gdbarch_init): Use
577 generic_unwind_get_saved_register.
578
1e03ad20
KB
5792002-08-13 Kevin Buettner <kevinb@redhat.com>
580
581 * procfs.c (procfs_can_use_hw_breakpoint): New function.
582 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
583 target vector.
584 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
585 Delete. Add comment regarding this now-deleted target method.
586
548bcbec
SC
5872002-08-13 Stephane Carrez <stcarrez@nerim.fr>
588
589 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
590 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
591 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
592 real PC and the page number (if it's within the memory bank window).
593 (m68hc11_pseudo_register_write): Likewise when saving.
594 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
595 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
596 (m68hc11_register_raw_size): And use 32-bit for it.
597 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
598 16K memory bank is used by the prog; also use the virtual pc.
599
7df11f59
SC
6002002-08-13 Stephane Carrez <stcarrez@nerim.fr>
601
602 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
603 (m68hc11_gdbarch_init): Install it in gdbarch.
604 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
605 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
606 (MSYMBOL_SIZE): New for documentation.
607 (insn_return_kind): Enum to specify how a function returns.
608 (frame_extra_info): Cleanup and record the return mode.
609 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
610 register in address computation.
611 (m68hc11_get_return_insn): New to obtain the return instruction used
612 by the function.
613 (m68hc11_frame_init_saved_regs): Take into account the return
614 instruction used by the function for far and interrupt functions.
615 (m68hc11_init_extra_frame_info): Take into account page register.
616 (m68hc11_frame_args_address): Adjust according to the return mode.
617 (show_regs): Print page register only when it's used.
618
5706502a
SC
6192002-08-13 Stephane Carrez <stcarrez@nerim.fr>
620
621 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
622 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
623 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
624 registers.
625 (m68hc11_register_raw_size): Likewise.
626
28fc6740
AC
6272002-08-13 Andrew Cagney <cagney@redhat.com>
628
629 * i386-tdep.c (i386_register_name): Handle mmx registers.
630 (mmx_regnum_p): New function.
631 (i386_mmx_names): New array.
632 (mmx_num_regs): New variable.
633 (i386_pseudo_register_read): New function.
634 (i386_pseudo_register_write): New function.
635 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
636
637 * regcache.c (regcache_raw_read_unsigned): New function.
638 (regcache_raw_read_signed): New function.
639 * regcache.h (regcache_raw_read_unsigned): Declare.
640 (regcache_raw_read_signed): Declare.
641
a378f419
AC
6422002-08-13 Andrew Cagney <cagney@redhat.com>
643
644 * regcache.c (regcache_raw_read_as_address): Delete function.
645 (regcache_cooked_read_signed): New function.
646 (regcache_cooked_read_unsigned): New function.
647 * regcache.h (regcache_cooked_read_signed): Declare.
648 (regcache_cooked_read_unsigned): Declare.
649 (regcache_raw_read_as_address): Delete declaration.
650
651 * blockframe.c (generic_read_register_dummy): Use
652 regcache_cooked_read_unsigned.
653 * i386-tdep.c (i386_extract_struct_value_address): Use
654 regcache_cooked_read_unsigned.
655
81967506
SC
6562002-08-13 Stephane Carrez <stcarrez@nerim.fr>
657
658 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
659 double sizes according to ELF ABI flags.
660 (gdbarch_tdep): Record elf_flags.
661
ffe1f3ee
SC
6622002-08-13 Stephane Carrez <stcarrez@nerim.fr>
663
664 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
665 (m6812_prolog): They can appear in 68HC12 function prologue.
666 (m68hc11_frame_chain): Cleanup.
667
98216c5d
AC
6682002-08-12 Andrew Cagney <cagney@redhat.com>
669
670 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
671 declarations.
672 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
673 (i386_linux_register_raw_size): Delete function.
674 (i386_linux_init_abi): Update.
675 * i386-tdep.c (i386_register_raw_size): Delete function.
676 (i386_register_byte): Delete function.
677 (i386_gdbarch_init): Update.
678 (i386_register_size): Delete array.
679 (i386_register_offset): Delete array.
680
681 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
682 (REGISTER_RAW_SIZE): Delete macro.
683 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
684 (REGISTER_BYTE): Delete macro.
685
3b19021e
AS
6862002-08-11 Aidan Skinner <aidan@velvet.net>
687
688 * ada-lang.c (ada_lookup_partial_symbol)
689 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
690 prototype names so that grep ^func works properly.
691
692 * ada-lang.c (ada_array_element_type)
693 (ada_lookup_partial_symbol): Fix typos in parameter list.
694
695 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
696 Fix prototype names so that grep ^func works properly.
697
b063e7a2
AC
6982002-08-10 Andrew Cagney <cagney@redhat.com>
699 Elena Zannoni <ezannoni@redhat.com>
700 Martin M. Hunt <hunt@redhat.com>
701
702 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
703 (build_builtin_type_vec128i): Set the vector bit.
704 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
705 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
706 (build_builtin_type_vec64): New function.
707 (build_builtin_type_vec64i): New function.
708 (build_gdbtypes): Initialize builtin_type_vec64 and
709 builtin_type_vec64i.
710
a7e3c2ad
AC
7112002-08-09 Andrew Cagney <cagney@redhat.com>
712
713 * regcache.c (regcache_dump): Compare the register offset
714 with REGISTER_BYTE.
715 * arch-utils.c (generic_register_byte): New function.
716 * arch-utils.h (generic_register_byte): Declare.
717 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
718 * gdbarch.h, gdbarch.c: Regenerate.
719
af030b9a
AC
7202002-08-09 Andrew Cagney <cagney@redhat.com>
721
722 * regcache.c: Include "gdbcmd.h"
723 (_initialize_regcache): Add commands "maintenance print
724 registers", "maintenance print raw-registers" and "maintenance
725 print cooked-registers".
726 (enum regcache_dump_what): Define.
727 (dump_endian_bytes): New function.
728 (regcache_dump): New function.
729 (regcache_print): New function.
730 (maintenance_print_registers): New function.
731 (maintenance_print_raw_registers): New function.
732 (maintenance_print_cooked_registers): New function.
733 * Makefile.in (regcache.o): Update dependencies.
734
cb3d25d1
MS
7352002-08-09 Michael Snyder <msnyder@redhat.com>
736
737 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
738 (mips_push_arguments): Correct some comments. Use paddr_nz
739 for printing addresses in debug output. Replace static
740 allocation using MAX_REGISTER_RAW_SIZE with alloca.
741 (mips_n32n64_push_arguments): New function, cloned from
742 mips_push_arguments and tuned for the n32/n64 ABI.
743 (mips_push_register): Buffer needs dynamic allocation.
744 (mips_print_register): Ditto.
745 (do_gp_register_row): Ditto.
746 (mips_store_return_value): Ditto.
747 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
748
2163ab9d
DH
7492002-08-09 Don Howard <dhoward@redhat.com>
750
751 * memattr.c (mem_info_command): Print special case of upper bound
752 as max CORE_ADDR + 1.
753
b78bcb18
MS
7542002-08-08 Michael Snyder <msnyder@redhat.com>
755
756 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
757 returns structs by ref if they're too big to fit in two registers.
758
ffabd70d
KB
7592002-08-09 Kevin Buettner <kevinb@redhat.com>
760
761 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
762 saved regs value.
763 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
764 mips_find_saved_regs().
765 (mips_pop_frame): Likewise.
766
fbcdb4a3
KB
7672002-08-09 Kevin Buettner <kevinb@redhat.com>
768
769 * blockframe.c (frame_saved_regs_register_unwind): Revise
770 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
771 frames are in use.
772
3c3bea1c
GS
7732002-08-09 Grace Sainsbury <graces@redhat.com>
774
775 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
776 T-packets; the 'a' is not taken as a register number.
777 (remote_check_watch_resources, remote_stopped_by_watchpoint)
778 (remote_stopped_data_address): New functions; add to target
779 vector.
780 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
781 prototypes to match other implementations of this
782 function. replace integer argument with pointer -- the length
783 field in the Z-packet is the length of what is pointed to or 1 if
784 pointer is null. Add to target vector.
785 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
786 target vector.
787
788 From Mark Salter:
789 * remote.c (remote_wait): Add support to extract optional
790 watchpoint information from T-packet. Ignore unrecognized
791 optional info in T-packet.
792 (remote_async_wait): Ditto.
793
5d1d95de
CV
7942002-08-09 Corinna Vinschen <vinschen@redhat.com>
795
796 * cli/cli-dump.c: Change fopen modes to use binary open modes
797 as defined in include/fopen-bin.h throughout.
798
c86b5b38
MS
7992002-08-08 Michael Snyder <msnyder@redhat.com>
800
801 * mips-tdep.c: Minor whitespace and indentation clean-ups.
802
b30590dc
KB
8032002-08-08 Kevin Buettner <kevinb@redhat.com>
804
805 * doublest.c (store_floating): Avoid floatformat_from_doublest()
806 assertion failure by returning early after a warning.
807
498868ed
KB
8082002-08-08 Kevin Buettner <kevinb@redhat.com>
809
810 * mips-tdep.c (mips_find_saved_regs): Make static.
811 (mips_frame_init_saved_regs): New function.
812 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
813 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
814 (mips_find_saved_regs): Delete declaration.
815
b2dd6311
GS
8162002-08-08 Grace Sainsbury <graces@redhat.com>
817
3c3bea1c
GS
818 * remote.c (remote_wait, remote_async_wait): Change
819 thread_num from int to ULONGEST.
820 (unpack_varlen_hex): Change result parameter from
821 int * to ULONGEST *.
b2dd6311 822
ea47855f
AC
8232002-08-08 Andrew Cagney <ac131313@redhat.com>
824
825 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
826 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
827 powerpc*-*-*.
828 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
829
69db8bae
AC
8302002-08-08 Andrew Cagney <cagney@redhat.com>
831
832 * gcore.c (override_derive_stack_segment): Delete variable.
833 (preempt_derive_stack_segment): Delete function.
834 (derive_stack_segment): Delete function.
835 (default_derive_stack_segment): Renamed to derive_stack_segment.
836 (override_derive_heap_segment): Delete variable.
837 (preempt_derive_heap_segment): Delete function.
838 (derive_heap_segment): Delete function.
839 (default_derive_heap_segment): Rename to derive_heap_segment.
840
cb811fe7
MS
8412002-08-06 Michael Snyder <msnyder@redhat.com>
842
843 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
844 * mips-tdep.c (mips_EABI_use_struct_convention,
845 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
846 New functions. (mips_use_struct_convention): Delete.
847 (mips_gdbarch_init): set use_gdbarch_convention.
848
8b389c40
MS
8492002-08-06 Michael Snyder <msnyder@redhat.com>
850
851 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
852 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
853 mips_o32_reg_struct_has_addr): New functions.
854 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
855
5c27f28a
AC
8562002-08-07 Andrew Cagney <ac131313@redhat.com>
857
858 * regcache.c (pseudo_register): Delete function.
859 (fetch_register): Delete function.
860 (store_register): Delete function.
861 (regcache_raw_read, legacy_read_register_gen): Use
862 target_fetch_registers instead of fetch_register.
863 (legacy_write_register_gen, regcache_raw_write): Use
864 target_store_register instead of store_register.
865 (write_register_bytes): Ditto.
866
867 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
868 (STORE_PSEUDO_REGISTER): Delete.
869 * gdbarch.h, gdbarch.c: Regenerate.
870
5b331675
CV
8712002-08-06 Corinna Vinschen <vinschen@redhat.com>
872
873 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
874 write dump file binary.
875
6acdf5c7
MS
8762002-08-05 Michael Snyder <msnyder@redhat.com>
877
878 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
879 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
880 (mips_gdbarch_init): Set N32 target to be mips64.
881
b2f01c35
KB
8822002-08-06 Kevin Buettner <kevinb@redhat.com>
883
884 * frame.c (find_saved_register): Break out of loop once saved
885 register address is found. Don't mention sparc in loop comment
886 anymore.
887
63db5580
KB
8882002-08-06 Kevin Buettner <kevinb@redhat.com>
889
890 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
891 mips_default_saved_regsize to 8.
892
5e34e75e
AC
8932002-08-06 Andrew Cagney <ac131313@redhat.com>
894
895 * gcore.c: Do not include <sys/procfs.h>.
896 * Makefile.in (gcore.o): Update dependencies.
897
eb4c54a2
AC
8982002-08-06 Andrew Cagney <cagney@redhat.com>
899
900 * configure.tgt: Make arc-*-* obsolete.
901 * NEWS: Mention that arc-*-* has been identifed as obsolete.
902 * MAINTAINERS: Make arc-elf obsolete.
903 * arc-tdep.c: Make file obsolete.
904 * config/arc/arc.mt: Ditto.
905 * config/arc/tm-arc.h: Ditto.
906
ced15480
TR
9072002-08-05 Theodore A. Roth <troth@verinet.com>
908
c1bab85b 909 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 910
b4743822
AC
9112002-08-05 Andrew Cagney <ac131313@redhat.com>
912
913 * mcore-tdep.c (mcore_gdbarch_init): Use
914 generic_unwind_get_saved_register instead of
915 generic_get_saved_register.
916 * v850-tdep.c (v850_gdbarch_init): Ditto.
917 * frv-tdep.c (frv_gdbarch_init): Ditto.
918 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
919 * s390-tdep.c (s390_gdbarch_init): Ditto.
920 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
921 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
922 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
923
3956d554
JB
9242002-08-05 Joel Brobecker <brobecker@gnat.com>
925
926 * objfiles.h: Add missing #include "symfile.h"
927
928 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
929
8249c0d6
AC
9302002-08-04 Andrew Cagney <ac131313@redhat.com>
931
932 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
933 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
934 of FIELD_BITSIZE.
935
b9d14705
DJ
9362002-08-04 Daniel Jacobowitz <drow@mvista.com>
937
938 * NEWS: Cleanup and nitpick.
939
dd73b9bb
AC
9402002-08-03 Andrew Cagney <ac131313@redhat.com>
941
942 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
943
043a27f8
AC
9442002-08-03 Andrew Cagney <ac131313@redhat.com>
945
946 * Makefile.in (gdbtk-bp.o): Update dependencies.
947 (gdbtk-register.o): Ditto.
948 (gdbtk-varobj.o): Ditto.
949
46ce284d
AC
9502002-08-03 Andrew Cagney <cagney@redhat.com>
951
952 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
953 m68hc11_fetch_pseudo_register.
954 (m68hc11_pseudo_register_write): Replace
955 m68hc11_store_pseudo_register.
956 (m68hc11_gdbarch_init): Update.
957
b66d6d2e
AC
958Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
959
960 * gdbarch.sh: Include "gdb_string.h".
961 * gdbarch.c: Regenerate.
962
963 * regcache.c: Include "gdb_string.h".
964 * ax-general.c: Ditto.
965 * varobj.c: Ditto.
966 * std-regs.c: Ditto.
967 * fbsd-proc.c: Ditto.
968 * thread.c: Ditto.
969
970 * Makefile.in (regcache.o): Update dependencies.
971 (thread.o, gdbarch.o): Ditto.
972 (ax-general.o, gdbarch.o): Ditto.
973 (varobj.o, std-regs.o): Ditto.
974 (fbsd-proc.o): Specify dependencies.
975
29e1842b
AC
9762002-08-02 Andrew Cagney <cagney@redhat.com>
977
978 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
979 regnum.
980 (regcache_cooked_write): Ditto.
981
68365089
AC
9822002-08-02 Andrew Cagney <ac131313@redhat.com>
983
984 * regcache.c (regcache_cooked_read): New function.
985 (regcache_cooked_write): New function.
986 (read_register_gen): Rewrite using regcache_cooked_read.
987 (write_register_gen): Rewrite using regcache_cooked_write.
988
989 * regcache.h (regcache_cooked_read, regcache_cooked_write):
990 Declare.
991
d8124050
AC
9922002-08-02 Andrew Cagney <cagney@redhat.com>
993
994 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
995 Replace the architecture methods register_read and register_write.
996 * gdbarch.h, gdbarch.c: Regenerate.
997 * regcache.c (init_regcache_descr): Update.
998 (read_register_gen): Update.
999 (write_register_gen): Update.
1000 (supply_register): Update comment.
1001
1002 * sh-tdep.c (sh_gdbarch_init): Update.
1003 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1004 `regcache' and `gdbarch' parameters. Make `buffer' a void
1005 pointer. Update code.
1006 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1007 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1008 void pointer. Update code.
1009 (sh64_register_write): Delete.
1010 (sh4_register_read): Delete.
1011 (sh64_register_read): Delete.
1012 (sh4_register_write): Delete.
1013 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1014 void pointer, `to' parameter a void pointer.
1015 (sh_sh64_register_convert_to_raw): Ditto.
1016
a6425924
KB
10172002-08-01 Kevin Buettner <kevinb@redhat.com>
1018
1019 * mips-tdep.c (mips_register_virtual_type): Use architecture
1020 invariant return values.
1021
ff5922b5
AC
10222002-08-01 Andrew Cagney <cagney@redhat.com>
1023
1024 * linux-proc.c: Include "gdb_string.h".
1025 * Makefile.in (linux-proc.o): Update dependency list.
1026
32a6503c
KB
10272002-08-01 Kevin Buettner <kevinb@redhat.com>
1028
1029 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1030 comment.
1031
ccaa32c7
GS
10322002-08-01 Grace Sainsbury <graces@redhat.com>
1033
1034 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1035 to_insert_watchpoint, to_remove_watchpoint,
1036 to_stopped_by_watchpoint, to_stopped_data_address,
1037 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1038 target vecctor. Define their corresponding macros so they call
1039 them.
1040
1041 * target.c: Add default and debug versions of for
1042 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1043 to_insert_watchpoint, to_remove_watchpoint,
1044 to_stopped_by_watchpoint, to_stopped_data_address,
1045 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1046
78fde5f8
KB
10472002-08-01 Kevin Buettner <kevinb@redhat.com>
1048
1049 * mips-tdep.c (mips_register_virtual_type): New function.
1050 (mips_gdbarch_init): Register mips_register_virtual_type()
1051 with gdbarch machinery.
1052 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1053 this file instead of tm-bigmips.h.
1054 (MIPS_REGSIZE): Delete this macro.
1055 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1056 multiarch version in mips-tdep.c will be found.
1057
db034ac5
AC
10582002-08-01 Andrew Cagney <cagney@redhat.com>
1059
1060 * NEWS: Menion that CHILL has been made obsolete.
1061
1062 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1063 * gdbserver/Makefile.in: Ditto.
1064 * stabsread.c (read_range_type): Ditto.
1065 * gdbtypes.h: Ditto.
1066 * language.c (binop_type_check): Ditto.
1067 (binop_result_type): Ditto.
1068 (integral_type): Ditto.
1069 (character_type): Ditto.
1070 (string_type): Ditto.
1071 (boolean_type): Ditto.
1072 (structured_type): Ditto.
1073 (lang_bool_type): Ditto.
1074 (binop_type_check): Ditto.
1075 * language.h (_LANG_chill): Ditto.
1076 * dwarfread.c (set_cu_language): Ditto.
1077 * dwarfread.c (CHILL_PRODUCER): Ditto.
1078 * dwarfread.c (handle_producer): Ditto.
1079 * expression.h (enum exp_opcode): Ditto.
1080 * eval.c: Ditto for comments.
1081 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1082 * expprint.c (print_subexp): Ditto.
1083 (print_subexp): Ditto.
1084 * valops.c (value_cast): Ditto.
1085 (search_struct_field): Ditto.
1086 * value.h (COERCE_VARYING_ARRAY): Ditto.
1087 * symfile.c (init_filename_language_table): Ditto.
1088 (add_psymbol_with_dem_name_to_list): Ditto.
1089 * valarith.c (value_binop): Ditto.
1090 (value_neg): Ditto.
1091 * valops.c (value_slice): Ditto.
1092 * symtab.h (union language_specific): Ditto.
1093 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1094 (SYMBOL_DEMANGLED_NAME): Ditto.
1095 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1096 * defs.h (enum language): Ditto.
1097 * symtab.c (got_symtab): Ditto.
1098 * utils.c (fprintf_symbol_filtered): Ditto.
1099
1100 * ch-typeprint.c: Make file obsolete.
1101 * ch-valprint.c: Make file obsolete.
1102 * ch-lang.h: Make file obsolete.
1103 * ch-exp.c: Make file obsolete.
1104 * ch-lang.c: Make file obsolete.
1105
1106 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1107 CHILL_LIB.
1108 (TARGET_FLAGS_TO_PASS): Ditto.
1109 (CHILLFLAGS): Obsolete.
1110 (CHILL): Obsolete.
1111 (CHILL_FOR_TARGET): Obsolete.
1112 (CHILL_LIB): Obsolete.
1113 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1114 ch-valprint.c.
1115 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1116 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1117 ch-lang.o.
1118 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1119 targets.
1120
8aaf0b47
JB
11212002-07-31 Joel Brobecker <brobecker@gnat.com>
1122
1123 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1124 This does not change anything at the moment, but will be helpful
1125 later when full Ada support is integrated.
1126
f3a7b3a5
KB
11272002-07-31 Kevin Buettner <kevinb@redhat.com>
1128
1129 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1130 help message.
1131
fb850278
KB
11322002-07-31 Kevin Buettner <kevinb@redhat.com>
1133
1134 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1135 and save it in a local variable. Use variable in later test.
1136
e3bddbfa
KB
11372002-07-31 Kevin Buettner <kevinb@redhat.com>
1138
1139 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1140 test. (Thanks to Daniel Jacobowitz.)
1141
28d169de
KB
11422002-07-31 Kevin Buettner <kevinb@redhat.com>
1143
1144 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1145 (mips_abi_strings): Add "n64".
1146 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1147
7fe7e44e
KB
11482002-07-31 Kevin Buettner <kevinb@redhat.com>
1149
1150 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1151 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1152
c6caf090
KB
11532002-07-31 Kevin Buettner <kevinb@redhat.com>
1154
1155 * utils.c (host_pointer_to_address, address_to_host_pointer):
1156 Use gdb_assert() instead of explicit call to internal_error().
1157
c41669e0
KB
11582002-07-30 Kevin Buettner <kevinb@redhat.com>
1159
1160 * Makefile.in (rs6000-nat.o): Update dependencies.
1161
1162 From Nicholas Duffek:
1163 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1164 (aix-thread.o): New rule.
1165 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1166 * config/powerpc/aix432.mh: New file.
1167
2fda4977
DJ
11682002-07-30 Daniel Jacobowitz <drow@mvista.com>
1169
1170 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1171 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1172 (fetch_core_registers, ppc_linux_supply_gregset)
1173 (ppc_linux_supply_fpregset): New functions.
1174 (ppc_linux_regset_core_fns): New.
1175 (_initialize_ppc_linux_tdep): Call add_core_fns.
1176 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1177 and ppc_linux_supply_gregset.
1178 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1179 (supply_fpregset): Call ppc_linux_supply_fpregset.
1180 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1181 corelow.o.
1182 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1183
729051e6
DJ
11842002-07-30 Daniel Jacobowitz <drow@mvista.com>
1185
1186 * symtab.c (lookup_symbol): Demangle before lowercasing.
1187
5f8a3188
AC
11882002-07-30 Andrew Cagney <ac131313@redhat.com>
1189
1190 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1191 declaration.
1192 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1193 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1194 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1195 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1196 "gdb_string.h".
1197 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1198 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1199 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1200 (avr-tdep.o, mon960-rom.o): Ditto.
1201 (aout_stabs_gnu_h): Define.
1202 (symtab_h): Remove $(gdb_obstack_h).
1203
67f07146
JB
12042002-07-30 Jim Blandy <jimb@redhat.com>
1205
1206 Patch from David Carlton <carlton@math.stanford.edu>:
1207 * gdbinit.in: Move the `dir' commands that add GDB's own source
1208 directory to the search path to the end, so that the `gdb' source
1209 directory will be searched first.
1210
04ea0df1
AC
12112002-07-29 Andrew Cagney <ac131313@redhat.com>
1212
1213 * gdb_obstack.h: New file.
1214 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1215 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1216 * objfiles.h: Include "gdb_obstack.h".
1217 * Makefile.in (gdb_obstack_h): Define.
1218 (symtab_h): Add $(gdb_obstack_h).
1219 (objfiles_h): Add $(gdb_obstack_h).
1220
1221 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1222 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1223 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1224 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1225 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1226 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1227 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1228 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1229
1230 * Makefile.in (bcache.o): Update dependencies.
1231 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1232 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1233 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1234 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1235 (stabsread.o, symfile.o, symmisc.o): Ditto.
1236 (symtab.o, typeprint.o, macroexp.o): Ditto.
1237 (macrotab.o, mdebugread.o): Ditto.
1238 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1239 (coff_ecoff_h, aout_aout64_h): Define.
1240 (aout_stabs_gnu_h, libaout_h): Define.
1241
d138e37a
AC
12422002-07-29 Andrew Cagney <cagney@redhat.com>
1243
1244 * regcache.c (struct regcache_descr): Rename nr_registers to
1245 nr_cooked_registers. Revise comments describing the structure
1246 member fields.
1247 (init_regcache_descr): Update.
1248 (init_legacy_regcache_descr): Update.
1249 (read_register_gen, write_register_gen): When a cooked register in
1250 the raw register range, directly access the value from the raw
1251 register cache.
1252
460e6ec3
AC
12532002-07-29 Andrew Cagney <ac131313@redhat.com>
1254
1255 * z8k-tdep.c: Do not include "obstack.h".
1256 * h8300-tdep.c, h8500-tdep.c: Ditto.
1257 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1258 * valprint.c, v850-tdep.c: Ditto.
1259 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1260 * mn10200-tdep.c: Ditto.
1261
1262 * Makefile.in (z8k-tdep.o): Update dependencies.
1263 (m68hc11-tdep.o, valprint.o): Ditto.
1264 (v850-tdep.o, d10v-tdep.o): Ditto.
1265 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1266 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1267 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1268 (sh_opc_h, gdb_sim_sh_h): Define.
1269 (elf_sh_h, elf_bfd_h): Define.
1270 (opcode_m68hc11_h): Define.
1271 (OPCODES_SRC, OPCODES_DIR): define.
1272 (OPCODES): Use $(OPCODES_DIR).
1273 (gdb_sim_d10v_h): Rename sim_d10v_h.
1274 (gdb_sim_arm_h): Rename sim_arm_h.
1275
790c9cf0
KB
12762002-07-26 Kevin Buettner <kevinb@redhat.com>
1277
1278 * utils.c (host_pointer_to_address, address_to_host_pointer):
1279 Change internal_error() message to indicate function responsible
1280 for the error.
1281
9647fa49
KB
12822002-07-26 Kevin Buettner <kevinb@redhat.com>
1283
1284 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1285 calls to local_hex_string_custom().
1286
dabbe2c0
KB
12872002-07-26 Kevin Buettner <kevinb@redhat.com>
1288
1289 * irix5-nat.c: Move IRIX shared library support from here...
1290 * solib-irix.c: ...to here. Revised substantially to work with
1291 generic solib framework.
1292
b96d0a4e
KB
1293 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1294 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1295 * mips-irix-tdep.c: New file.
1296
313fb2f6
KB
1297 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1298 (mips-irix-tdep.o, solib-irix.o): New rules.
1299 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1300 solib-irix.o.
1301 * config/mips/irix6.mt (TDEPFILES): Likewise.
1302 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1303
ab2eaf26
KB
13042002-07-26 Kevin Buettner <kevinb@redhat.com>
1305
177e4768 1306 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
1307 disabled (via ``#if 0'') includes.
1308
7244546a
KB
13092002-07-26 Kevin Buettner <kevinb@redhat.com>
1310
1311 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1312 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1313 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1314 Add support for the fpscr register.
1315 * rs6000-nat.c (regmap, fetch_inferior_registers)
1316 (store_inferior_registers, fetch_core_registers): Likewise.
1317
dd7be90a
KB
13182002-07-26 Kevin Buettner <kevinb@redhat.com>
1319
1320 * rs6000-nat.c (language.h): Include.
1321 (special_regs): Delete this array.
1322 (regmap): New function.
1323 (fetch_register, store_register): Use regmap() to map gdb
1324 register numbers to ptrace register numbers. Also, use
1325 outputs from regmap() to make decisions regarding type of
1326 ptrace() call to make. In particular, don't compare against
1327 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1328 (fetch_inferior_registers, store_inferior_registers): Where
1329 possible, obtain register numbers from tdep struct. Don't
1330 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1331 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1332 (LAST_UISA_SP_REGNUM): Delete.
1333
11bf77db
KB
13342002-07-25 Kevin Buettner <kevinb@redhat.com>
1335
1336 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
1337 (fetch_registers, store_register, fetch_core_registers): Don't
1338 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
1339 regcache_collect() as appropriate.
1340 (find_toc_address): Format hex address with local_hex_string().
1341
06afebeb
AC
13422002-07-25 Andrew Cagney <ac131313@redhat.com>
1343
1344 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1345 bfd/elf32-frv.c.
1346
8c554d79
TT
13472002-07-24 Tom Tromey <tromey@redhat.com>
1348
1349 * jv-exp.y: Marked all strings with _().
1350 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1351 internal_error.
1352 (MethodInvocation, CastExpression, parse_number, yyerror,
1353 java_type_from_name, push_expression_name, yylex): Typo fixes.
1354
e4c242d9
DJ
13552002-07-24 Daniel Jacobowitz <drow@mvista.com>
1356
1357 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1358 (tee_file_flush, tee_file_write, tee_file_fputs)
1359 (tee_file_isatty): New.
1360 * ui-file.h (tee_file_new): Add prototype.
1361
ebf56fd3
AS
13622002-07-24 Aidan Skinner <aidan@velvet.net>
1363
1364 * ada-lang.c: Change k&r style function definitions to prototyped
1365 form.
1366 * ada-typeprint.c: Change k&r style function definitions to prototyped
1367 form.
1368 * ada-valprint.c: Change k&r style function definitions to prototyped
1369 form.
1370
7fb623f7
AC
13712002-07-24 Andrew Cagney <cagney@redhat.com>
1372
1373 * README: Remove reference to remote-bug.
1374 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1375 remote-bug.c.
1376 (m88k-nat.o): Delete rule.
1377 (m88k-tdep.o): Delete rule.
1378 (remote-bug.o): Delete rule.
1379 * MAINTAINERS: Mark as obsolete.
1380 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1381 * m88k-tdep.c: Make file obsolete.
1382 * config/m88k/m88k.mh: Ditto.
1383 * config/m88k/delta88v4.mh: Ditto.
1384 * config/m88k/delta88v4.mt: Ditto.
1385 * config/m88k/delta88.mt: Ditto.
1386 * config/m88k/delta88.mh: Ditto.
1387 * remote-bug.c: Ditto.
1388 * config/m88k/tm-delta88.h: Ditto.
1389 * config/m88k/nm-delta88v4.h: Ditto.
1390 * config/m88k/xm-delta88.h: Ditto.
1391 * config/m88k/xm-dgux.h: Ditto.
1392 * config/m88k/tm-m88k.h: Ditto.
1393 * config/m88k/nm-m88k.h: Ditto.
1394 * config/m88k/tm-delta88v4.h: Ditto.
1395 * m88k-nat.c: Ditto.
1396 * cxux-nat.c: Ditto.
1397 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1398 and m88*-*-* obsolete.
1399 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1400 m88*-*-* obsolete.
1401
37611a2b
AC
14022002-07-24 Andrew Cagney <cagney@redhat.com>
1403
1404 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1405 constant. Same for local pointer variables.
1406 (extract_signed_integer): Ditto.
1407 * defs.h (extract_unsigned_integer): Update.
1408 (extract_signed_integer): Update.
1409
18ff0538
KB
14102002-07-24 Kevin Buettner <kevinb@redhat.com>
1411
1412 * gdbserver/configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
1413 * gdbserver/configure: Regenerate.
1414 * gdbserver/config.in: Regenerate.
1415
1aaa5f99
AC
14162002-07-24 Andrew Cagney <cagney@redhat.com>
1417
1418 * regcache.c (regcache_raw_write): Change buf parameter to a
1419 constant void pointer.
1420 (regcache_raw_read): Change buf parameter to a void pointer.
1421 (legacy_write_register_gen): Change myaddr parameter a constant
1422 void pointer.
1423 (supply_register): Change val parameter to a const void pointer.
1424 * regcache.h (regcache_raw_write): Update declaration.
1425 (regcache_raw_read): Update declaration.
1426 (supply_register): Update declaration.
1427
b4f5539f
TT
14282002-07-24 Tom Tromey <tromey@redhat.com>
1429
1430 * defs.h (gdb_readline_wrapper): Declare.
1431 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1432 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1433 * top.c (gdb_readline_wrapper): New function.
1434 (command_line_input): Use it.
1435
0818c12a
AC
14362002-07-24 Andrew Cagney <cagney@redhat.com>
1437
1438 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1439 regcache_read and regcache_write.
1440 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1441 * regcache.c: Update.
1442 * sh-tdep.c (sh64_push_arguments): Update comment.
1443 (sh_pseudo_register_read): Update.
1444 (sh_pseudo_register_write): Update.
1445 (sh4_register_read): Update.
1446 (sh4_register_write): Update.
1447 (sh64_pseudo_register_read): Update.
1448 (sh64_pseudo_register_write): Update.
1449 (sh64_register_read): Update.
1450 (sh64_register_write): Update.
1451 * i386-tdep.c (i386_extract_return_value): Update.
1452 (i386_extract_struct_value_address): Update.
1453 (i386_extract_return_value): Update.
1454 * blockframe.c (generic_read_register_dummy): Update.
1455 (generic_call_dummy_register_unwind): Update
1456 * infrun.c (write_inferior_status_register): Update.
1457
f7321c06
JB
14582002-07-23 Jim Blandy <jimb@redhat.com>
1459
1460 * parser-defs.h (expression_context_pc): Make this extern.
1461 (Thanks to Michael Snyder.)
1462
2037aebb
AC
14632002-07-23 Andrew Cagney <ac131313@redhat.com>
1464
1465 GDB 5.2.1 released from 5.2 branch.
1466 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1467 * README: Update to mention 5.2.1.
1468
66504d44
MS
14692002-07-23 Mark Salter <msalter@redhat.com>
1470
1471 * remote.c (remote_read_bytes): Fix check for error.
1472
27bae383
KB
14732002-07-22 Kevin Buettner <kevinb@redhat.com>
1474
1475 * aix-thread.c (language.h): Include.
1476 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1477 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1478 Print newlines at end of debug messages.
1479 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1480 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1481
14822002-07-22 Kevin Buettner <kevinb@redhat.com>
1483
1484 * aix-thread.c (ppc-tdep.h): Include.
1485 (special_register_p): New function.
1486 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1487 (store_regs_user_thread): Use register number information from
1488 gdbarch_tdep struct instead of hardcoded offsets relative to
1489 FIRST_UISA_SP_REGNUM.
1490 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1491 special_register_p() instead of using FPLAST_REGNUM and
1492 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1493 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1494 will be MQ's register number.
1495
14962002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
1497
1498 * aix-thread.c (ops): Rename to aix_thread_ops.
1499 (base_ops): Rename to base_target.
1500 (ops_attach): Rename to aix_thread_attach.
1501 (ops_detach): Rename to aix_thread_detach.
1502 (ops_resume): Rename to aix_thread_detach.
1503 (ops_wait): Rename to aix_thread_wait.
1504 (ops_kill): Rename to aix_thread_kill.
1505 (init_ops): Rename to init_aix_thread_ops.
1506 (ops_fetch_register): Rename to aix_thread_fetch_register.
1507 (ops_store_register): Rename to aix_thread_store_register.
1508 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1509 (ops_thread_alive): Rename to aix_thread_thread_alive.
1510 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1511 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1512 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1513 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1514 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1515 (store_regs_lib): Rename to store_regs_user_thread.
1516 (store_regs_kern): Rename to store_regs_kernel_thread.
1517
27bae383 15182002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
1519
1520 * aix-thread.c (ops_prepare_to_store): Eliminate.
1521 (init_ops): Don't initialize ops.prepare_to_store.
1522 (store_regs_kern): Pre-fetch register buffers from child,
1523 because some registers may not be in the cache. Copy
1524 regs from register cache only if they are cached.
1525 (store_regs_lib): Copy regs from register cache only
1526 if they are cached.
1527 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1528 fill_gprs64): Ditto.
1529
61c5da0b
KB
15302002-07-22 Kevin Buettner <kevinb@redhat.com>
1531
1532 * aix-thread.c (gdb_assert.h): Include.
1533 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1534 register sizes (from register cache) match size of buffer holding
1535 register data.
1536 (fill_sprs32): Change parameter types to match those in the ptrace()
1537 buffer.
1538 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1539 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1540
15412002-07-22 Michael Snyder <msnyder@redhat.com>
1542
1543 * aix-thread.c (supply_sprs64): Cosmetic change.
1544 (supply_sprs32): Cosmetic change.
1545 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1546 (fill_sprs64): Use regcache_collect instead of read_register.
1547 (store_regs_lib): Use regcache_collect instead of
1548 read_register. Use fill_sprs32 instead of fill_sprs64,
1549 if debugging a 32-bit architecture.
1550 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1551 out of the register cache, instead of passing a pointer into
1552 the register cache directly to ptrace. Use regcache_collect
1553 insteaad of read_register.
1554 (ops_prepare_to_store): Use target_read_registers instead
1555 of read_register_bytes.
1556
36479eb1
AS
15572002-07-20 Aidan Skinner <aidan@velvet.net>
1558
1559 * MAINTAINERS: Add self under write after approval.
1560
80ae6ee2
AS
15612002-07-20 Aidan Skinner <aidan@velvet.net>
1562
1563 * ada-tasks.c: Change k&r style function definitions to prototyped
1564 form.
1565
8a8ab2b9
AC
15662002-07-19 Andrew Cagney <ac131313@redhat.com>
1567
1568 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1569 * x86-64-tdep.c: Include "objfiles.h".
1570 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1571 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1572
fb16b900
ML
15732002-07-17 Michal Ludvig <michal@suse.cz>
1574
1575 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1576 (update_context): Initialise cfa variable.
1577
0fe7bf7b
MS
15782002-07-17 Michael Snyder <msnyder@redhat.com>
1579
1580 * aix-thread.c: Shorten some long lines.
1581 Bring comments into line with code spec.
1582
488f131b
JB
15832002-07-18 Joel Brobecker <brobecker@gnat.com>
1584
1585 * infrun.c: Re-indent using gdb_indent.sh.
1586
46c415d2
JB
15872002-07-18 Joel Brobecker <brobecker@gnat.com>
1588
1589 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1590 Leave the indentation temporarily untouched, to minimize the diffs.
1591
cdecafbe
EZ
15922002-07-18 Elena Zannoni <ezannoni@redhat.com>
1593
1594 * stabsread.c: Make os9k sections of the code obsolete,
1595 for real this time.
1596 * stabsread.h: Make os9k sections of the code obsolete.
1597
7b6aa020
ML
15982002-07-18 Michal Ludvig <mludvig@suse.cz>
1599
09ec9b38
ML
1600 * linux-low.c (regsets_store_inferior_registers): Add free()
1601 at the end of a loop to prevent memory leak.
1602 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1603 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
1604 * config/sparc/tm-sp64linux.h: Make the rest of #endif
1605 line a comment.
4894ac5d 1606 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 1607
233282cd
JB
16082002-07-17 Jim Blandy <jimb@redhat.com>
1609
1610 * macrocmd.c (info_macro_command): Remove newline from error
1611 message.
1612
7b6aa020 16132002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
1614
1615 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
1616 (sh_gdbarch_init): Use it for sh-dsp.
1617
f7ef9339
KB
16182002-07-16 Kevin Buettner <kevinb@redhat.com>
1619
1620 * dwarf2read.c (read_initial_length): Handle older, non-standard,
1621 64-bit DWARF2 format.
1622
8dd72958
JB
16232002-07-16 Joel Brobecker <brobecker@gnat.com>
1624
1625 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1626 <sys/proc.h> when not available.
1627
a99a9e1b
AC
16282002-07-16 Andrew Cagney <ac131313@redhat.com>
1629
1630 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1631 * stabsread.c: Make os9k sections of the code obsolete.
1632 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1633 * config/i386/i386os9k.mt: Make file obsolete.
1634 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1635 (COMMON_OBS): Remove os9kread.o
1636 (SFILES): Remove os9kread.c.
1637 (os9kread.o, remote-os9k.o): Make target obsolete.
1638 * remote-os9k.c: Make file obsolete.
1639 * os9kread.c: Make file obsolete.
1640 * Makefile.in
1641
7a3085c1
AC
16422002-07-16 Andrew Cagney <ac131313@redhat.com>
1643
1644 * NEWS: Mention that the FR30 has been made obsolete.
1645 * fr30-tdep.c: Make file obsolete.
1646 * config/fr30/tm-fr30.h: Ditto.
1647 * config/fr30/fr30.mt: Ditto.
1648 * configure.tgt: Make fr30-*-elf obsolete.
1649 * MAINTAINERS: Make fr30-elf obsolete.
1650
28a93f5a
PM
16512002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
1652
1653 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
1654 found is not inside a section.
1655
be006b8b
KB
16562002-07-15 Kevin Buettner <kevinb@redhat.com>
1657
1658 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
1659 strerror().
1660 (pdc_realloc): Use xrealloc() instead of realloc().
1661
14fa3751
KB
16622002-07-15 Kevin Buettner <kevinb@redhat.com>
1663
1664 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
1665 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
1666 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
1667 macros.
1668
42cc437f
KB
16692002-07-15 Kevin Buettner <kevinb@redhat.com>
1670
1671 * aix-thread.c (ptrace_check): Eliminate goto.
1672 (sync_threadlists): Eliminate gotos. Also, fix array overrun
1673 problem.
1674
8e2c28d4
KB
16752002-07-15 Kevin Buettner <kevinb@redhat.com>
1676
1677 * aix-thread.c (gdbcmd.h): Include.
1678 (DEBUG, DBG, DBG2, dbg): Eliminate.
1679 (debug_aix_thread): New static global.
1680 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1681 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
1682 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
1683 invocations to DBG and DBG2 macros to test against
1684 ``debug_aix_thread'' and call fprintf_unfiltered().
1685 (_initialize_aix_thread): Add new command "set debug aix-thread".
1686
30413464
AC
16872002-07-15 Andrew Cagney <ac131313@redhat.com>
1688
1689 From Gerhard Tonn <TON@de.ibm.com>:
1690 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
1691 instead of supply_register.
1692
7c43edc1
AC
16932002-07-15 Andrew Cagney <ac131313@redhat.com>
1694
1695 * dwarf2cfi.c: Include "gdb_assert.h".
1696 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
1697 non-NULL.
1698 (update_context): Do not use __func__. Add missing ``break''.
1699 (update_context): Do not use __func__.
1700
9364a0ef
EZ
17012002-07-15 Elena Zannoni <ezannoni@redhat.com>
1702
1703 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
1704 and its setting. Set gdbarch instruction printing functions
1705 directly. For non-rs6000 case use new function
1706 gdb_print_insn_powerpc.
1707 (gdb_print_insn_powerpc): New function.
1708
3fbeef0b
AC
17092002-07-13 Andrew Cagney <ac131313@redhat.com>
1710
92eb23c5 1711 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
1712 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
1713 * configure.tgt: Mark d30v-*-* as obsolete.
1714 * d30v-tdep.c: Mark file as obsolete.
1715 * config/d30v/d30v.mt: Ditto.
1716 * config/d30v/tm-d30v.h: Ditto.
1717
aacb1f0a
AS
17182002-07-13 Aidan Skinner <aidan@velvet.net>
1719
1720 * ada-tasks.c (add_task_entry): replace calls to
1721 malloc() with xmalloc
1722 * ada-tasks.c (init_task_list): replace calls to free with xfree()
1723
1724 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
1725 ada_finish_decode_line_1, all_sals_for_line
1726 ada_breakpoint_rewrite): replace calls to free() with xfree()
1727
c11d79f2
KB
17282002-07-12 Kevin Buettner <kevinb@redhat.com>
1729
1730 From Nicholas Duffek (with minor changes by Martin Hunt,
1731 Louis Hamilton, and Kevin Buettner):
1732 * aix-thread.c: New file.
1733
8e19ed76
PS
17342002-07-12 Petr Sorfa <petrs@caldera.com>
1735
1736 * dwarf2read.c (dwarf2_invalid_attrib_class): New
1737 complaint for invalid attribute class or form.
1738 (read_func_scope): DW_AT_frame_base
1739 better handling of DW_AT_block*.
1740 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
1741 better handling of DW_AT_block*.
1742 (read_common_block): DW_AT_location
1743 better handling of DW_AT_block*.
1744 (read_partial_die): DW_AT_location better handling
1745 of DW_AT_block*.
1746 (new_symbol): DW_AT_external better handling of
1747 DW_AT_block*. Proper initialization of variable
1748 "addr".
1749 (attr_form_is_block): New function that returns true
1750 if the attribute's form is of DW_FORM_block*.
1751
295401f7
DJ
17522002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
1753
1754 * valops.c (find_method_list): Remove comment about
1755 removed STATIC_MEMFUNCP argument.
1756 (value_find_oload_method_list): Likewise.
1757
e42dc924
KB
17582002-07-12 Kevin Buettner <kevinb@redhat.com>
1759
1760 From Nicholas Duffek:
1761 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
1762 target_new_objfile_hook.
1763
6904b546
KB
17642002-07-12 Kevin Buettner <kevinb@redhat.com>
1765
1766 From Nicholas Duffek:
1767 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
1768 csect.
1769
53fe9346
AC
17702002-07-12 Andrew Cagney <cagney@redhat.com>
1771
1772 * MAINTAINERS: Mention --enable-sim-build-warnings.
1773 (m68hc11-elf): Disable sim build warnings.
1774 (m32r-elf): Mark as broken obsolete candidate.
1775 (x86_64-linux-gnu): Mark as buildable with -Werror.
1776 (arm-elf): Change -w to ``,'' which enables warnings but not
1777 -Werror.
1778
af5f3db6
AC
17792002-07-12 Andrew Cagney <ac131313@redhat.com>
1780
1781 * bcache.h: Update copyright.
1782 (struct bstring, struct bcache): Move definition to "bcache.c".
1783 Replaced by opaque declaration.
1784 (bcache_xfree): Replace free_bcache.
1785 (bcache_xmalloc, bcache_memory_used): Declare.
1786
1787 * bcache.c: Update copyright.
1788 (struct bstring, struct bcache): Moved to here from "bcache.h".
1789 Update comments.
1790 (bcache_xmalloc, bcache_memory_used): New functions.
1791 (bcache_xfree): Replace function free_bcache.
1792
1793 * Makefile.in (objfiles.o): Add $(bcache_h).
1794 (objfiles_h): Remove $(bcache_h).
1795 (symfile.o): Add $(bcache_h).
1796
1797 * symmisc.c: Update copyright.
1798 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
1799 (print_objfile_statistics): Use bcache_memory_used.
1800
1801 * symfile.c: Include "bcache.h".
1802 (reread_symbols): Use bcache_xfree.
1803 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
1804 (add_psymbol_to_list): Pass psymbol_cache by value.
1805 (add_psymbol_with_dem_name_to_list): Ditto.
1806
1807 * objfiles.h: Update copyright.
1808 (struct bcache): Declare opaque. Do not include "bcache.h".
1809 (struct objfile): Change psymbol_cache and macro_cache to ``struct
1810 bcache'' pointers.
1811 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
1812
1813 * objfiles.c: Include "bcache.h". Update copyright.
1814 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
1815 macro_cache.
1816 (free_objfile): Use bcache_xfree.
1817
444199e7
GS
18182002-07-11 Grace Sainsbury <graces@redhat.com>
1819
1820 * monitor.c (monitor_fetch_register): Make name a constant.
1821 (monitor_store_register): Same.
1822
261397f8
DJ
18232002-07-11 Daniel Jacobowitz <drow@mvista.com>
1824
1825 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
1826 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
1827 (finish_block) For non-function blocks, hash the symbol table. For
1828 function blocks, mark the symbol table as unhashed.
1829 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
1830 (msymbol_hash_iw): Likewise.
1831 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
1832 value.
1833 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
1834 (lookup_minimal_symbol): Likewise for both.
1835 * symtab.h (struct block): Add `hashtable' flag. Comment the
1836 hashtable.
1837 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
1838 (ALL_BLOCK_SYMBOLS): Update.
1839 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
1840 (struct symbol): Add `hash_next' pointer.
1841 * symtab.c (lookup_block_symbol): Search using the hash table when
1842 possible.
1843 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
1844 (search_symbols, find_addr_symbol): Likewise.
1845
1846 * dstread.c (process_dst_block): Clear hashtable bit for new block.
1847 (read_dst_symtab): Likewise.
1848 * jv-lang.c (get_java_class_symtab): Likewise.
1849 * mdebugread.c: Include "gdb_assert.h".
1850 (shrink_block): Assert that the block being modified is not hashed.
1851 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
1852 * symmisc.c (free_symtab_block): Walk the hash table when freeing
1853 symbols.
1854 (dump_symtab): Recognize hashed blocks.
1855 * printcmd.c (print_frame_args): Assert that function blocks do not
1856 have hashed symbol tables.
1857 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
1858 (fill_in_ada_prototype, debug_print_block): Likewise.
1859 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
1860
6f0eaa01
CV
18612002-07-11 Corinna Vinschen <vinschen@redhat.com>
1862
1863 * stack.c (print_frame): Use result of frame_address_in_block()
1864 instead of fi->pc when evaluating symbols.
1865 (backtrace_command_1): Ditto.
1866
a208b0cb
AC
18672002-07-11 Andrew Cagney <cagney@redhat.com>
1868
1869 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
1870 Make static.
1871
1872 * arm-tdep.c (arm_register_name): Make return type constant.
1873
a6b6b089
AC
18742002-07-10 Andrew Cagney <ac131313@redhat.com>
1875
5ae5f592
AC
1876 * win32-nat.c (has_detach_ability): Convert to strict ISO C
1877 prototype.
1878 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
1879 * s390-tdep.c (s390_fp_regnum): Ditto.
1880 (s390_read_fp): Ditto.
1881 (s390_pop_frame): Ditto.
1882 (_initialize_s390_tdep): Ditto.
1883 * remote.c (get_remote_state): Ditto.
1884 * procfs.c (mappingflags): Ditto.
1885 * memattr.c (_initialize_mem): Ditto.
1886 * mcore-tdep.c (mcore_pop_frame): Ditto.
1887 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
1888 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
1889 * language.c (set_case_str): Ditto.
1890 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
1891 * frv-tdep.c (new_variant): Ditto.
1892 (frv_stopped_data_address): Ditto.
1893 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
1894 (context_alloc): Ditto.
1895 (frame_state_alloc): Ditto.
1896 (unwind_tmp_obstack_init): Ditto.
1897 (unwind_tmp_obstack_free): Ditto.
1898 (cfi_read_fp): Ditto.
1899 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
1900 (cris_pop_frame): Ditto.
1901 * c-lang.c (scanning_macro_expansion): Ditto.
1902 (finished_macro_expansion): Ditto.
1903 (c_preprocess_and_parse): Ditto.
1904 * gdbarch.sh: Ditto.
1905 * gdbarch.h, gdbarch.c: Regenerate.
1906 * config/mn10200/tm-mn10200.h: Adjust indentation.
1907 * target.c: Adjust indentation.
1908 * symtab.h: Adjust indentation.
1909 * stabsread.h: Adjust indentation.
1910 * remote-es.c: Adjust indentation.
1911 * os9kread.c: Adjust indentation.
1912
19132002-07-10 Andrew Cagney <ac131313@redhat.com>
1914
a6b6b089
AC
1915 * wince.c (_initialize_wince): Rename _initialize_inftarg.
1916 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
1917
a1789893
GS
19182002-07-10 Grace Sainsbury <graces@redhat.com>
1919
1920 * NEWS: Mention m68k, mcore multi-arching.
1921 * MAINTAINERS: Change status of m68k, mcore to reflect
1922 multi-arching.
1923
02f0d45d
DJ
19242002-07-10 Daniel Jacobowitz <drow@mvista.com>
1925
1926 * valops.c (find_overload_match): Free oload_syms.
1927
f15f768e
JB
19282002-07-09 Joel Brobecker <brobecker@gnat.com>
1929
1930 Define HAVE_SYS_PROC_H if sys/proc.h exists
1931 * configure.in: Add check for sys/proc.h
1932 * config.in: Regenerate.
1933 * configure: Regenerate.
1934
902a7139
GS
19352002-07-09 Grace Sainsbury <graces@redhat.com>
1936
1937 * config/m68k/tm-m68k.h: Remove macros wrapped in
1938 #if !GDB_MULTI_ARCH.
1939
82e0fd98
DB
19402002-07-09 David O'Brien <obrien@FreeBSD.org>
1941
1942 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
1943 (perror_with_name, remote_close, remote_open, expect, play): Static.
1944
a534e424
AC
19452002-07-08 Andrew Cagney <ac131313@redhat.com>
1946
1947 * config.in, configure: Regenerate.
1948
9b94f7bf
MK
19492002-07-08 Mark Kettenis <kettenis@gnu.org>
1950
1951 * dwarf2cfi.c: Include "gcore.h".
1952 (execute_stack_op): Fix implementation of the
1953 DW_OP_deref and DW_OP_deref_size operators by letting do their
1954 lookup in the target.
1955
1d34db41
MK
19562002-07-07 Mark Kettenis <kettenis@gnu.org>
1957
1958 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
1959 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
1960 tdep->sc_sp_offset.
1961
79d5b63a
DJ
19622002-07-05 Daniel Jacobowitz <drow@mvista.com>
1963
1964 Fix PR gdb/595, gdb/602
1965 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
1966 Don't call value_cast, just read the vtable pointer; update comments
1967 to match.
1968
3bb912e8
GS
19692002-07-05 Grace Sainsbury <graces@redhat.com>
1970
1971 * config/mcore/tm-mcore.h: Remove file.
1972 * config/mcore/mcore.mt: Remove definition of TM_FILE
1973 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
1974
ca39387d
MK
19752002-07-05 Mark Kettenis <kettenis@gnu.org>
1976
1977 * i386bsd-tdep.c: Include "gdb_string.h".
1978
efdc1108
GS
19792002-07-04 Grace Sainsbury <graces@redhat.com>
1980
1981 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
1982 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
1983 mcore-tdep.
1984 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
1985 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
1986 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
1987 (RETVAL_REGNUM): Move macros from tm-mcore.h
1988 (mcore_reg_struct_has_addr): New function.
1989 (mcore_gdbarch_init): Added initializations for the macros removed
1990 from tm-mcore.h.
1991
bb21884d
MK
19922002-07-04 Mark Kettenis <kettenis@gnu.org>
1993
1994 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
1995 traditonal string branding within the ELF header.
1996
228c6d41
DJ
19972002-07-04 Daniel Jacobowitz <drow@mvista.com>
1998
1999 * symtab.c (remove_params): New function.
2000 (make_symbol_overload_list): Use it instead of cplus_demangle.
2001 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2002
2404952e
MK
20032002-07-04 Mark Kettenis <kettenis@gnu.org>
2004
e5e4acad
MK
2005 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2006
baadce09
MK
2007 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2008 New variables.
2009 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2010 and tdep->sigtramp_end.
2011 * i386obsd-nat.c: New file.
2012 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2013
2404952e
MK
2014 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2015 Don't call get_current_frame().
2016
9b4f1ba7
PM
20172002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2018
2019 * i386-nat.c (child_post_startup_inferior): New function
2020 calling i386_cleanup_dregs if
2021 I386_USE_GENERIC_WATCHPOINTS is defined.
2022 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2023 conditional to acknowledge that i386-nat.c has its
2024 own child_post_startup_inferior function.
2025
c0d1d883
MK
20262002-07-04 Mark Kettenis <kettenis@gnu.org>
2027
00f8375e
MK
2028 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2029 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2030 instead of MAX_REGISTER_RAW_SIZE.
2031 (i386_extract_return_value, i386_extract_struct_value_address):
2032 Convert to use regcache.
2033 (i386_gdbarch_init): Set max_register_raw_size and
2034 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2035 Set extract_return_value and extract_struct_value_address instead
2036 of their deprecated variants.
2037
c0d1d883
MK
2038 Convert i386 target to generic dummy frames.
2039 * i386-tdep.c: Include "symfile.h".
2040 (i386_frameless_signal_p): Consider a function to be frameless if
2041 the pc points at the first instruction of the function.
2042 (i386_frame_chain): Handle (generic) call dummies.
2043 (i386_frame_saved_pc): Likewise.
2044 (i386_frame_init_saved_regs): Remove code dealing with call
2045 dummies on the stack.
2046 (i386_push_dummy_frame): Removed.
2047 (i386_call_dummy_words): Removed.
2048 (i386_fix_call_dummy): Removed.
2049 (i386_push_return_address): New function.
2050 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2051 parameter, and don't call get_current_frame.
2052 (i386_pop_frame): New function.
2053 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2054 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2055 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2056 call_dummy_length to 0, set call_dummy_words to NULL, set
2057 sizeof_call_dummy_words to 0, set fix_call_dummy to
2058 generic_fix_call_dummy, set pc_in_call_dummy to
2059 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2060 generic_push_dummy_frame, set push_return_address to
2061 i386_push_return_address and set frame_chain_valid to
2062 generic_file_frame_chain_valid.
2063
638c1580
ML
20642002-07-04 Michal Ludvig <mludvig@suse.cz>
2065
2066 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
2067 byte offsets instead of an array of indexes.
2068 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
2069
049ee0e4
AC
20702002-07-03 Andrew Cagney <ac131313@redhat.com>
2071
2072 * gdbarch.sh (struct regcache): Add opaque declaration.
2073 (EXTRACT_RETURN_VALUE): New architecture method.
2074 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2075 * gdbarch.h, gdbarch.c: Regenerate.
2076 * arch-utils.c (legacy_extract_return_value): New function.
2077 * arch-utils.h (legacy_extract_return_value): Declare.
2078 * values.c (value_being_returned): Re-enable code handling
2079 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2080 deprecated_grub_regcache_for_registers call to block handling
2081 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2082 (EXTRACT_RETURN_VALUE): Do not define.
2083
4e0d9804
GS
20842002-07-03 Grace Sainsbury <graces@redhat.com>
2085
2086 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2087 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2088 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2089 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2090 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2091 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2092 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2093 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2094 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2095 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2096 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2097 argument so the function fits the prototype in the architecture
2098 vector.
2099 (mcore_pop_frame): Remove argument so the function fits the
2100 prototype. Use get_current_frame instead of the argument.
2101 (mcore_push_arguments): Change type of struct_return so the
2102 function can be used in the architecture vector.
2103 (mcore_store_struct_return): Add.
2104 (mcore_frame_init_saved_regs): Add.
2105 (mcore_gdbarch_init): Add function calls to replace the macros
2106 removed from tm-mcore.h
2107
36160dc4
AC
21082002-07-03 Andrew Cagney <ac131313@redhat.com>
2109
2110 * infcmd.c (print_return_value): Remove compatibility code calling
2111 deprecated_grub_regcache_for_registers.
2112
2113 * values.c: Include "regcache.h".
2114 (value_being_returned): Update. Use
2115 deprecated_grub_regcache_for_registers to extract the register
2116 buffer address.
2117 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2118 ``struct regcache''.
2119 * Makefile.in (values.o): Add dependency on $(regcache_h).
2120
2121 * inferior.h (run_stack_dummy): Change type of second parameter to
2122 a ``struct regcache''.
2123 * valops.c (hand_function_call): Change type of retbuf to ``struct
2124 regcache''. Allocate using regcache_xmalloc, clean using
2125 make_cleanup_regcache_xfree.
2126 * infcmd.c (run_stack_dummy): Update. Use
2127 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2128
2129 * regcache.c (do_regcache_xfree): New function.
2130 (make_cleanup_regcache_xfree): New function.
2131 * regcache.h (make_cleanup_regcache_xfree): Declare.
2132
e64d9b3d
MH
21332002-07-03 Martin M. Hunt <hunt@redhat.com>
2134
4dd79c29
MH
2135 * event-top.c (command_line_handler): Don't read past
2136 beginning of buffer.
e64d9b3d 2137
4dd79c29
MH
21382002-07-03 Martin M. Hunt <hunt@redhat.com>
2139
e64d9b3d
MH
2140 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2141 struct frame_id.
2142 (varobj_create): Store frame_id for root.
2143 (varobj_gen_name): Use xasprintf.
2144 (varobj_update): Save and restore frame using get_frame_id() and
2145 frame_find_by_id().
2146 (create_child): Use xasprintf.
2147 (new_root_variable): Initialize frame_id.
2148 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2149 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2150 to prevent memory leak.
2151
26e6c56a
AC
21522002-07-03 Andrew Cagney <ac131313@redhat.com>
2153
2154 * valops.c (hand_function_call): Move declaration of retbuf to
2155 start of function, allocate using malloc, add a cleanup but before
2156 the inf_status cleanup, cleanup the buffer. Rename local variable
2157 old_chain to inf_status_cleanup.
2158
f436dd25
MH
21592002-07-03 Martin M. Hunt <hunt@redhat.com>
2160
2161 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2162
2163 * cli/cli-decode.c (cmd_func_p): New function.
2164 (cmd_func): New function.
2165
2166 * command.h: Add cmd_func() and cmd_func_p().
2167
4cfe2084
GS
21682002-07-03 Grace Sainsbury <graces@redhat.com>
2169
2170 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2171 (REGISTER_SIZE): Remove.
2172 (MAX_REGISTER_RAW_SIZE): Remove.
2173 (REGISTER_VIRTUAL_TYPE): Remove.
2174 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2175 (REGISTER_NAME): Remove.
2176 (USE_GENERIC_DUMMY_FRAMES): Remove.
2177 (CALL_DUMMY): Remove.
2178 (CALL_DUMMY_START_OFFSET): Remove.
2179 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2180 (CALL_DUMMY_LOCATION): Remove.
2181 (FIX_CALL_DUMMY): Remove.
2182 (CALL_DUMMY_ADDRESS): Remove.
2183 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2184 (SAVE_DUMMY_FRAME_TOS): Remove.
2185 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2186 (mcore_register_virtual_type): New function.
2187 (mcore_register_byte): New function.
2188 (mcore_register_size): New function.
2189 (mcore_register_name): New function.
2190 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2191 macros removed from tm-mcore.h.
2192 (mcore_dump_tdep): Add.
2193 (_initialize_mcore_tdep): Add gdbarch_register call.
2194
4fd667e9
MK
21952002-07-03 Mark Kettenis <kettenis@gnu.org>
2196
2197 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2198 frameless_look_for_prologue, such that we actually call this
2199 function.
2200
42f99ac2
JB
22012002-07-02 Joel Brobecker <brobecker@gnat.com>
2202
2203 * frame.h (frame_address_in_block): New function.
2204
2205 * blockframe.c (frame_address_in_block): New function extracted
2206 from get_frame_block().
2207 (get_frame_block): Use frame_address_in_block().
2208 (block_innermost_frame): Use frame_address_in_block() to match
2209 the frame pc address against the block boundaries rather than
2210 the frame pc directly. This prevents a failure when a frame pc
2211 is actually a return-address pointing immediately after the end
2212 of the given block.
2213
103a1597 22142002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
2215
2216 * MAINTAINERS: Add self under write after approval.
2217
22182002-07-02 Grace Sainsbury <graces@redhat.com>
2219
103a1597
GS
2220 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2221 used in architecture vector. The default is
2222 m68k_local_breakpoint_from_pc.
2223 (m68k_local_breakpoint_from_pc): Add.
2224 (enum): Add register numbers from tm-m68k.h.
2225 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2226 vector.
2227 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2228 GDB_MULTI_ARCH_PARTIAL.
2229 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2230 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2231 m68k-tdep.c.
2232 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2233 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2234 to enum in m68k-tdep.c
2235
7a5a0534
JB
22362002-07-02 Joel Brobecker <brobecker@gnat.com>
2237
2238 * solib-osf.c (open_map): Compute the list of shared libraries
2239 loaded by the inferior, rather than the list of libraries loaded
2240 by GDB itself. Otherwise, GDB ends up reading the symbols from
2241 the wrong shared libraries...
2242
6f558d74
MK
22432002-07-02 Mark Kettenis <kettenis@gnu.org>
2244
b7d15bf7
MK
2245 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2246 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2247 macros.
2248 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2249 Remove functions.
2250 (FRAMELESS_SIGNAL): Remove function.
2251 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2252 i386_linux_saved_pc_after_call): Removed.
2253 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2254 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2255 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2256
6bff26de
MK
2257 * i386-tdep.c (i386_frameless_signal_p): New function.
2258 (i386_frame_chain): Deal with frameless signals.
2259 (i386_sigtramp_saved_sp): New function.
2260 (i386_frame_saved_pc): Deal with frameless signals.
2261 (i386_saved_pc_after_call): Make sure the correct value is
2262 returned just after entry into a sigtramp.
2263 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2264 i386fbsd4_sc_sp_offset): New variables.
2265 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2266 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2267 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2268 similiar to what we already did for sc_pc_offset.
2269 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2270 tdep->sc_sp_offset.
2271
6f558d74
MK
2272 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2273
145564b7
ML
22742002-07-02 Michal Ludvig <mludvig@suse.cz>
2275
2276 * config/i386/tm-x86-64linux.h: New.
2277 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2278 definitions.
2279 * config/i386/nm-x86-64.h: Rename to ...
2280 * config/i386/nm-x86-64linux.h: ... this one.
2281 * config/i386/x86-64linux.mh: Reflect the above change.
2282
3a1e71e3
MK
22832002-07-01 Mark Kettenis <kettenis@gnu.org>
2284
21d0e8a4
MK
2285 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2286 with sigcontext_addr. Add sc_sp_offset.
2287 (i386bsd_sigtramp_saved_pc): Remove prototype.
2288 (i386bsd_sicontext_addr): Add prototype.
2289 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2290 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2291 (i386_svr4_sigtramp_saved_pc): Removed.
2292 (i386_svr4_sigcontext_addr): New function.
2293 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2294 Initialize tdep->sigcontext_addr instead. Initialize
2295 tdep->sc_pc_offset and tdep->sc_sp_offset.
2296 (i386_gdbarch_init): Likewise.
2297 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2298 any more.
2299 (i386bsd_sigtramp_saved_pc): Remove function.
2300 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2301 Initialize tdep->sigcontext_addr instead. Initialize
2302 tdep->sc_pc_offset.
2303 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2304 of tdep->sigtramp_saved_pc.
2305 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2306 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2307 instead.
2308
3a1e71e3
MK
2309 * i386-tdep.c (i386_frameless_function_invocation,
2310 i386_frame_num_args, i386_frame_init_saved_regs,
2311 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2312 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2313 i386_extract_return_value, i386_store_return_value,
2314 i386_extract_struct_value_address, i386_register_virtual_type,
2315 i386_register_convertible, i386_register_convert_to_virtual,
2316 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2317 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2318 static.
2319
52e9098c
MK
23202002-07-01 Mark Kettenis <kettenis@gnu.org>
2321
77b13a25
MK
2322 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2323
52e9098c
MK
2324 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2325 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2326 this macro. Include "value.h".
2327
1b372fff
AS
23282002-06-30 Aidan Skinner <aidan@velvet.net>
2329
2330 * ada-exp.tab.c: remove as it's a generated file
2331 * ada-lex.c: remove as it's a generated file
2332
9c5045b5
MK
23332002-06-30 Mark Kettenis <kettenis@gnu.org>
2334
4a93c5bb
MK
2335 * config/i386/tm-i386.h (struct frame_info, struct
2336 frame_saved_regs, struct value, struct type): Remove forward
2337 declarations.
2338
322d4fe0
MK
2339 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2340 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2341 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2342 (FILL_FPXREGSET): Define.
2343
fdd8263d
MK
2344 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2345
482e577b
MK
2346 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2347 i[3456]86-*-netbsd* case.
2348 * config/i386/tm-obsd.h: Removed.
2349 * config/i386/obsd.mt: Removed.
2350 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2351 core-aout.o.
2352 (MH_CFLAGS): Add -DYYDEBUG=0.
2353
6916549a
MK
2354 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2355 i386nbsd_sc_pc_offset on OpenBSD too.
2356
9c5045b5
MK
2357 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2358 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2359 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2360 define.
2361 * i386bsd-tdep.c: Include "arch-utils.h".
2362 (i386bsd_aout_in_solib_call_trampoline): New function.
2363 (i386bsd_init_abi): Set in_solib_call_trampoline to
2364 i386bsd_aout_in_solib_call_trampoline.
2365 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2366 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2367
aa84d1bb
AC
23682002-06-28 Andrew Cagney <ac131313@redhat.com>
2369
2370 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2371 (struct obstack, struct bcache): Add opaque declarations.
2372 * Makefile.in (macrotab_h): Update
2373
b4d83933
AC
23742002-06-28 Andrew Cagney <ac131313@redhat.com>
2375
2376 * blockframe.c (generic_find_dummy_frame): Change return type to
2377 ``struct regcache''.
2378 (struct dummy_frame): Replace field ``registers'' with regcache, a
2379 struct regcache object.
2380 (generic_find_dummy_frame): Update.
2381 (generic_push_dummy_frame): Update. Use regcache_xfree,
2382 regcache_xmalloc and regcache_cpy.
2383 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2384 regcache_xfree.
2385 (deprecated_generic_find_dummy_frame): Update.
2386 (generic_read_register_dummy): Update. Use
2387 regcache_read_as_address.
2388 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2389 (generic_get_saved_register): Update. Use regcache_read.
2390
08c0b5bc
AC
23912002-06-28 Andrew Cagney <ac131313@redhat.com>
2392
2393 * Makefile.in (objfiles_h): Add $(bcache_h).
2394 * objfiles.h: Include "bcache.h".
2395
2396 * Makefile.in (symtab_h): Remove $(bcache_h).
2397 * symtab.h: Do not include "bcache.h".
2398
1f89801a
AC
23992002-06-28 Andrew Cagney <ac131313@redhat.com>
2400
2401 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2402 generic_func_frame_chain_valid.
2403
b9644b58
DB
24042002-06-28 David O'Brien <obrien@FreeBSD.org>
2405
2406 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2407 * config/i386/tm-fbsd.h: Likewise.
2408
dd486634
AC
24092002-06-28 Andrew Cagney <ac131313@redhat.com>
2410
2411 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2412 generic_unwind_get_saved_register.
2413
0b434a00
AC
24142002-06-27 Andrew Cagney <ac131313@redhat.com>
2415
2416 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2417 * regcache.c (supply_register): Add missing argument to
2418 register_buffer call.
2419
f30e5a77
AC
24202002-06-27 Andrew Cagney <ac131313@redhat.com>
2421
2422 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2423 Solaris /bin/grep does not not like it. From Peter Schauer.
2424
9f064c95
TT
24252002-06-26 Tom Tromey <tromey@redhat.com>
2426
2427 * command.h (add_setshow_cmd): Declare.
2428 (add_setshow_cmd_full): Declare.
2429 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2430 returns void. Use add_setshow_cmd_full.
2431 (add_setshow_cmd_full): New function.
2432 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2433 (add_setshow_boolean_cmd): Likewise.
2434
099c7589
JT
24352002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2436
2437 * config/vax/tm-vax.h: Protect from multiple inclusion.
2438 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2439 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2440 * config/vax/tm-vaxbsd.h: ...here. New file.
2441 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2442
1d049c5e
JT
24432002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2444
2445 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2446 (BELIEVE_PCC_PROMOTION): Remove.
2447 (AP_REGNUM): Move to...
2448 * config/vax/nm-vax.h: ...here.
2449 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2450 (vax_breakpoint_from_pc): New function.
2451 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2452 and gdbarch_believe_pcc_promotion.
2453
4791e091
JT
24542002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2455
2456 * Makefile.in (vax_tdep_h): Define.
2457 (vax-tdep.o): Use $(vax_tdep_h).
2458 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2459 (vax_dump_tdep): New function.
2460 (_initialize_vax_tdep): Register vax_dump_tdep.
2461 * vax-tdep.h: Include osabi.h.
2462 (struct gdbarch_tdep): New.
2463
da130f98
AC
24642002-06-26 Andrew Cagney <cagney@redhat.com>
2465
2466 * frame.h (deprecated_generic_find_dummy_frame): Rename
2467 generic_find_dummy_frame.
2468 * blockframe.c (generic_find_dummy_frame): Make static.
2469 (deprecated_generic_find_dummy_frame): New function.
2470 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2471 generic_find_dummy_frame with deprecated_find_dummy_frame.
2472 (sh64_nofp_frame_init_saved_regs): Ditto.
2473 (sh_fp_frame_init_saved_regs): Ditto.
2474 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2475 (s390_frame_chain): Ditto.
2476 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2477
6300c360
GS
24782002-06-26 Grace Sainsbury <graces@redhat.com>
2479
2480 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2481 gdbarch vector are at the top.
2482 (NUM_REGS): Remove.
2483 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2484 (FRAME_ARGS_ADDRESS): Remove.
2485 (FRAME_LOCALS_ADDRESS): Remove.
2486 (FRAME_NUM_ARGS): Remove.
2487 (FRAME_ARGS_SKIP): Remove.
2488 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2489 (m68k_gdbarch_init): Add gdbarch initializations for macros
2490 undefined in tm-m68k.h
2491
1c617db8
GS
24922002-06-26 Grace Sainsbury <graces@redhat.com>
2493
2494 * monitor.h: Add the function regname to monitor_ops
2495 structure. This way NUM_REGS does not have to be a constant.
2496 * monitor.c (monitor_fetch_register): Added support for regname
2497 function. The function is called if the array regnames is NULL.
2498 (monitor_store_register): Same.
da130f98
AC
2499 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2500 regnames array.
1c617db8
GS
2501 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2502 cpu32bug_cmds.regname to point to new function.
2503 * abug-rom.c (abug_regname): Same as above.
2504 (init_abug_cmds): Same.
2505 * dbug-rom.c (dbug_regname): Same as above.
2506 (init_dbug_cmds): Same.
2507 * remote-est.c (est_regname): Same.
2508 (init_est_cmds): Same.
2509 * rom68k-rom.c (rom68k_regname): Same.
2510 (init_rom68k_cmds): Same.
2511
ea9365bb
TT
25122002-06-25 Tom Tromey <tromey@redhat.com>
2513
2514 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2515
72cec141
AC
25162002-06-25 Andrew Cagney <cagney@redhat.com>
2517
2518 * infrun.c (stop_registers): Change variable's type to ``struct
2519 regcache'''.
2520 (xmalloc_inferior_status): Delete function.
2521 (free_inferior_status): Delete function.
2522 (normal_stop): Use regcache_cpy.
2523 (struct inferior_status): Change type of fields ``stop_registers''
2524 and ``registers'' to ``struct regcache''.
2525 (write_inferior_status_register): Use regcache_write.
2526 (save_inferior_status): Instead of calling
2527 xmalloc_inferior_status, allocate the inf_status buffer directly.
2528 Use regcache_dup_no_passthrough and regcache_dup to save the
2529 buffers.
2530 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2531 Replace the stop_registers regcache instead of overriding it. Use
2532 regcache_xfree. Instead of calling free_inferior_status, xfree
2533 the buffer directly.
2534 (discard_inferior_status): Use regcache_xfree. Instead of calling
2535 free_inferior_status, xfree the buffer directly.
2536 (build_infrun): Use regcache_xmalloc.
2537 (_initialize_infrun): Delete redundant call to build_infrun.
2538
2539 * Makefile.in (infcmd.o): Add $(regcache_h).
2540
2541 * infcmd.c: Include "regcache.h".
2542 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2543 obtain the address of `stop_registers' register buffer.
2544 (print_return_value): Ditto.
2545
2546 * inferior.h (struct regcache): Add opaque declaration.
2547 (stop_registers): Change variable's declared type to ``struct
2548 regcache''.
2549
defc6f8c
TT
25502002-06-24 Tom Tromey <tromey@redhat.com>
2551
c0e624e7
TT
2552 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2553 * target.c (initialize_targets): Fixed typo in
2554 trust-readonly-sections `show' documentation.
2555
defc6f8c
TT
2556 * main.c: Marked all strings with _().
2557
2b236d82
DH
25582002-06-24 Don Howard <dhoward@redhat.com>
2559
2560 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2561 that means max CORE_ADDR+1.
2562 (lookup_mem_region): Ditto.
2563 (mem_info_command): Ditto.
2564
942dc0e9
GS
25652002-06-24 Grace Sainsbury <graces@redhat.com>
2566
2567 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2568 (REGISTER_BYTES_OK): Remove.
2569 (REGISTER_BYTES): Remove.
2570 (STORE_STRUCT_RETURN): Remove.
2571 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2572 (STORE_RETURN_VALUE): Remove.
2573 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2574 (FRAME_CHAIN): Remove.
2575 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2576 (FRAME_SAVED_PC): Remove.
2577 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2578 (m68k_store_struct_return): Add.
2579 (m68k_deprecated_extract_return_value): Add.
2580 (m68k_deprecated_extract_struct_value_address): Add.
2581 (m68k_store_return_value): Add.
2582 (m68k_frame_chain): Add.
2583 (m68k_frameless_function_invocation): Add.
2584 (m68k_frame_saved_pc): Add.
2585 (m68k_gdbarch_init): added set_gdbarch calls for new
2586 functions and deleted macros.
2587
03c30d4d
TT
25882002-06-23 Tom Tromey <tromey@redhat.com>
2589
2590 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2591 (ALLDEPFILES): Likewise.
2592 (udiheaders): Removed.
2593 (udip2soc.o): Likewise.
2594 (udi2go32.o): Likewise.
2595 (udr.o): Likewise.
2596 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2597
37e71372
AC
25982002-06-22 Andrew Cagney <ac131313@redhat.com>
2599
06a6ac57
AC
2600 * infrun.c (_initialize_infrun): Delete unnecessary call to
2601 build_infrun.
2602
37e71372
AC
2603 * regcache.h: Update comments describing the regcache_cpy family
2604 of functions.
2605 (regcache_save, regcache_restore): Delete declaration.
2606 (regcache_save_no_passthrough): Delete declaration.
2607 (regcache_restore_no_passthrough): Delete declaration.
2608 * regcache.c (regcache_save): Delete function.
2609 (regcache_save_no_passthrough): Delete function.
2610 (regcache_restore): Delete function.
2611 (regcache_restore_no_passthrough): Delete function.
2612
78f6d055
AC
26132002-06-21 Andrew Cagney <ac131313@redhat.com>
2614
2615 * config/m68k/tm-m68k.h: Fix typo.
2616 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2617 (m68k_frame_init_saved_regs): Declare.
2618
78b119cb
JB
26192002-06-21 Jim Blandy <jimb@redhat.com>
2620
2621 Remove some vestiges of Harris 88k support.
2622 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2623 register numbering quirk.
2624 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2625 odd symbols occurring in Harris 88k ELF targets.
2626
0fbb3da7
TT
26272002-06-21 Tom Tromey <tromey@redhat.com>
2628
2629 * gdb_locale.h: New file.
2630 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2631 (defs_h): Added gdb_locale.h.
2632 * configure, config.in: Rebuilt.
2633 * configure.in (PACKAGE): Define.
2634 * defs.h: Include gdb_locale.h.
2635 * main.c (captured_main): Call setlocale, bindtextdomain,
2636 textdomain.
2637
456f8b9d
DB
26382002-06-21 Dave Brolley <brolley@redhat.com>
2639
2640 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2641 * config/frv/frv.mt: New file.
2642 * config/frv/tm-frv.h: New file.
2643 * configure.tgt: Support frv-*-*.
2644 * Makefile.in (frv-tdep.o): New target.
2645 * frv-tdep.c: New file.
2646 * NEWS: Mention frv.
2647
cdd463f9
DB
26482002-06-21 Dave Brolley <brolley@redhat.com>
2649
2650 * MAINTAINERS: Add self to "Write After Approval" list.
2651
5d3ed2e3
GS
26522002-06-21 Grace Sainsbury <graces@redhat.com>
2653
2654 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
2655 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2656 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
2657 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
2658 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
2659
2660 * m68k-tdep.c: Include arch-utils.h
2661 (m68k_register_raw_size): Add.
2662 (m68k_register_virtual_size): Add.
2663 (m68k_register_virtual_type): Add.
2664 (m68k_register_name): Add.
2665 (m68k_stack_align): Add.
2666 (m68k_register_byte): Add.
2667 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
2668 tm-m68k.h.
2669
7f8e7424
GS
26702002-06-21 Grace Sainsbury <graces@redhat.com>
2671
a2c6a6d5 2672 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
2673 m68k_find_saved_regs.
2674 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 2675 references to it with frame->saved_regs.
7f8e7424
GS
2676 (m68k_gdbarch_init): Added function calls to initialize the
2677 gdbarch structure.
a2c6a6d5
GS
2678 (m68k_fix_call_dummy): Add.
2679 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
2680 (CALL_DUMMY): Remove.
2681 (CALL_DUMMY_LENGTH): Remove.
2682 (CALL_DUMMY_START_OFFSET): Remove.
2683 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2684 (FIX_CALL_DUMMY): Remove.
2685 (PUSH_DUMMY_FRAME): Remove.
2686 (POP_FRAME): Remove.
7f8e7424 2687
f461f5cf
PM
26882002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
2689
2690 * parse.c (parse_fprintf): New function used to avoid calls to
2691 fprintf in bison parser generated debug code.
2692 * parser-defs.h: Declaration of new parse_fprintf function.
2693 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
2694 Set YYDEBUG to 1 by default.
2695 Set YYFPRINTF as parse_fprintf.
2696
7f0c12ed
ML
26972002-06-21 Michal Ludvig <mludvig@suse.cz>
2698
2699 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
2700 encoding anymore.
2701 (pointer_encoding, enum ptr_encoding): New.
2702 (execute_cfa_program): Take care about pointer encoding.
2703 (dwarf2_build_frame_info): Only call parse_frame_info for
2704 .debug_frame and .eh_frame.
2705 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
2706 fixed augmentation handling, added relative addressing,
2707 ignore duplicate FDEs. Added comments.
19d833a2 2708 * dwarf2cfi.c: Reindented.
7f0c12ed 2709
87c4a039
EZ
27102002-06-20 Elena Zannoni <ezannoni@redhat.com>
2711
2712 * event-top.c (command_handler): Don't use space_at_cmd_start
2713 unless there is sbrk() on the host. Assign time and space data
2714 to union fields of the appropriate length.
2715
1cf877ad
ML
27162002-06-20 Michal Ludvig <mludvig@suse.cz>
2717
2718 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
2719 x86_64_register_name. Return type changed to 'const char *'.
2720 (x86_64_register_name2nr): Rename to x86_64_register_number.
2721 (x86_64_gdbarch_init): Update to reflect the change.
2722 * x86-64-tdep.h: Ditto.
2723 * x86-64-linux-nat.c (x86_64_fxsave_offset)
2724 (supply_fpregset): Ditto.
2725
3fadccb3
AC
27262002-06-19 Andrew Cagney <cagney@redhat.com>
2727
2728 * regcache.h: Update copyright.
2729 (struct regcache, struct gdbarch): Add opaque declarations.
2730 (current_regcache): Declare global variable.
2731 (regcache_read, regcache_write): Add gdbarch parameter.
2732 (regcache_save, regcache_save_no_passthrough)
2733 (regcache_restore, regcache_restore_no_passthrough)
2734 (regcache_dup, regcache_dup_no_passthrough)
2735 (regcache_cpy, regcache_cpy_no_passthrough)
2736 (deprecated_grub_regcache_for_registers)
2737 (deprecated_grub_regcache_for_register_valid)
2738 (regcache_valid_p): Add function declarations.
2739
2740 * regcache.c: Update copyright.
2741 (regcache_descr_handle): New global variable.
2742 (struct regcache_descr): Define.
2743 (init_legacy_regcache_descr, init_regcache_descr): New functions.
2744 (regcache_descr, xfree_regcache_descr): New functions.
2745 (struct regcache): Define.
2746 (regcache_xmalloc, regcache_xfree): New functions.
2747 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
2748 (regcache_dup, regcache_dup_no_passthrough): New functions.
2749 (regcache_valid_p, regcache_read_as_address): New functions.
2750 (deprecated_grub_regcache_for_registers): New function.
2751 (deprecated_grub_regcache_for_register_valid): New function.
2752 (current_regcache): New global variable.
2753 (register_buffer): Add regcache parameter. Update calls.
2754 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
2755 (read_register_gen, write_register_gen): Update register_buffer
2756 call. Test for legacy_p instead of gdbarch_register_read_p or
2757 gdbarch_register_write_p.
2758 (regcache_collect): Update register_buffer call.
2759 (build_regcache): Rewrite. Use deprecated grub functions.
2760 (regcache_save, regcache_save_no_passthrough): New functions.
2761 (regcache_restore, regcache_restore_no_passthrough): New
2762 functions.
2763 (_initialize_regcache): Create the regcache_data_handle. Swap
2764 current_regcache global variable.
2765
2766 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
2767 parameter to regcache_read and regcache_write calls.
2768 (sh4_register_read): Ditto.
2769 (sh64_pseudo_register_read): Ditto.
2770 (sh64_register_read): Ditto.
2771 (sh_pseudo_register_write): Ditto.
2772 (sh4_register_write): Ditto.
2773 (sh64_pseudo_register_write): Ditto.
2774 (sh64_register_write): Ditto.
2775
2776 * defs.h (XCALLOC): Define.
2777
152d9db6
GS
27782002-06-19 Grace Sainsbury <graces@redhat.com>
2779
2780 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
2781 * m68k-tdep.c (m68k_gdbarch_init): Added.
2782 (m68k_dump_tdep): Added.
2783
170911c7
DJ
27842002-06-19 Daniel Jacobowitz <drow@mvista.com>
2785
2786 * ada-lang.c (fill_in_ada_prototype): Update comment.
2787
2e4ebe70
DJ
27882002-06-19 Daniel Jacobowitz <drow@mvista.com>
2789
2790 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
2791 MIPS_ABI_LAST.
2792 (mips_abi_string, mips_abi_strings): New.
2793 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
2794 (mips_gdbarch_init): Set tdep->found_abi. Don't set
2795 tdep->mips_abi_string. Honor mips_abi_string. Default to
2796 O32 if no ABI is found.
2797 (mips_dump_tdep): Use mips_abi_strings.
2798 (mips_abi_update): New function.
2799 (_initialize_mips_tdep): Initialize mips_abi_string. Add
2800 ``set mips abi'' and ``show mips abi''. Check the size of
2801 mips_abi_strings.
2802
16775908
AC
28032002-06-19 Andrew Cagney <cagney@redhat.com>
2804
2805 * i386-linux-tdep.c (i386_linux_register_name): Make return type
2806 constant.
2807
5051bfa4 28082002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 2809
5051bfa4
JB
2810 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
2811 current frame using only the first stack size adjustment. All
2812 subsequent size adjustments are not considered to be part of
2813 the "static" part of the current frame.
2814 Compute the address of the saved registers relative to the
2815 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
2816 in use in this frame.
2817
56468235
DH
28182002-06-18 Don Howard <dhoward@redhat.com>
2819
2820 * valops.c (value_ind): Use value_at_lazy() when dereferencing
2821 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
2822 suggesting this solution.
2823
0b624158
AC
28242002-06-18 Andrew Cagney <ac131313@redhat.com>
2825
2826 * config/romp/xm-rtbsd.h: Delete file.
2827 * config/romp/rtbsd.mh: Delete file.
2828
221ea385
KS
28292002-06-18 Keith Seitz <keiths@redhat.com>
2830
2831 * breakpoint.c (condition_command): Post breakpoint_modify
2832 when a condition is added to an existing breakpoint.
2833 (commands_command): Likewise for commands.
2834 (set_ignore_count): Likewise for ignore counts.
2835 If no tty, do not simply return, still need to send event
2836 notification.
2837 (ignore_command): Only print a newline if the command came
2838 from a tty.
2839 Don't call breakpoints_changed, since this is now properly
2840 handled by set_ignore_count.
2841
5402eed1
AC
28422002-06-18 Andrew Cagney <cagney@redhat.com>
2843
2844 * MAINTAINERS: Note that cris-elf target can be compiled with
2845 -Werror.
2846 * cris-tdep.c (cris_register_name): Make return type constant.
2847 (cris_breakpoint_from_pc): Ditto.
2848
cc22880b
ML
28492002-06-18 Michal Ludvig <mludvig@suse.cz>
2850
2851 * frame.h (struct frame_info): Change type of context to
2852 'struct context'.
2853
fa88f677
AC
28542002-06-17 Andrew Cagney <cagney@redhat.com>
2855
2856 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
2857 pointer.
2858 * gdbarch.h, gdbarch.c: Regenerate.
2859 * config/mips/tm-mips.h (mips_register_name): Update.
2860 * i386-tdep.h (i386_register_name): Update.
2861 * mips-tdep.c (mips_register_name): Update
2862 * alpha-tdep.c (alpha_register_name): Update.
2863 * arch-utils.c (legacy_register_name): Update.
2864 * arch-utils.h (legacy_register_name): Update.
2865 * avr-tdep.c (avr_register_name): Update.
2866 * ia64-tdep.c (ia64_register_name): Update.
2867 * i386-tdep.c (i386_register_name): Update.
2868 * sparc-tdep.c (sparc32_register_name): Update.
2869 (sparc64_register_name): Update.
2870 (sparclite_register_name): Update.
2871 (sparclet_register_name): Update.
2872 * sh-tdep.c (sh_generic_register_name): Update.
2873 (sh_sh_register_name): Update.
2874 (sh_sh3_register_name): Update.
2875 (sh_sh3e_register_name): Update.
2876 (sh_sh_dsp_register_name): Update.
2877 (sh_sh3_dsp_register_name): Update.
2878 (sh_sh4_register_name): Update.
2879 (sh_sh64_register_name): Update.
2880 * s390-tdep.c (s390_register_name): Update.
2881 * rs6000-tdep.c (rs6000_register_name): Update.
2882 * ns32k-tdep.c (ns32k_register_name_32082): Update.
2883 (ns32k_register_name_32382): Update.
2884 * d10v-tdep.c (d10v_ts2_register_name): Update.
2885 (d10v_ts3_register_name): Update.
2886 * xstormy16-tdep.c (xstormy16_register_name): Update.
2887 * vax-tdep.c (vax_register_name): Update.
2888 * v850-tdep.c (v850_register_name): Update.
2889 * m68hc11-tdep.c (m68hc11_register_name): Update.
2890 * mn10300-tdep.c (mn10300_generic_register_name): Update.
2891 (am33_register_name): Update.
2892
ea1e7ef6
GS
28932002-06-17 Grace Sainsbury <graces@redhat.com>
2894
2895 * m68k-tdep.c: Reindented.
2896
9b02dd1b
AC
28972002-06-17 Andrew Cagney <ac131313@redhat.com>
2898
2899 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
2900 list of predefined types.
2901
8758dec1
MK
29022002-06-16 Mark Kettenis <kettenis@gnu.org>
2903
b6197528
MK
2904 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
2905 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
2906 REGISTER_CONVERT_TO_RAW): Remove defines.
2907 (i386_register_virtual_type, i386_register_convertible,
2908 i386_register_convert_to_virtual, i386_register_convert_to_raw):
2909 Remove prototypes.
2910 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2911 macros mentioned above.
2912
82b47e62
MK
2913 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
2914 (i386lynx_saved_pc_after_call): Remove prototype.
2915 * i386ly-tdep.c: Include "i386-tdep.h".
2916 (i386lynx_saved_pc_after_call): Make static. Use
2917 read_memory_nobpt instead of read_memory. Use
2918 read_memory_unsigned_integer instead of read_memory_integer.
2919 (i386lynx_init_abi): New function.
2920 (i386lynx_coff_osabi_sniffer): New function.
2921 (_initialize_i386bsd_tdep): New function.
2922
8758dec1
MK
2923 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
2924 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
2925 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
2926 (i386_fix_call_dummy): Remove prototype.
2927 * i386-tdep.c (i386_call_dummy_words): New variable.
2928 (i386_gdbarch_init): Adjust for removal of the
2929 macros mentioned above.
2930
e9e68a56
AC
29312002-06-15 Andrew Cagney <ac131313@redhat.com>
2932
2933 * command.h (add_setshow_auto_boolean_cmd): Replace
2934 add_set_auto_boolean_cmd.
2935 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
2936 add_set_auto_boolean_cmd.
2937 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
2938 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
2939 mask-address'' command.
2940 (show_mask_address): Add cmd parameter.
2941 * remote.c (add_packet_config_cmd): Update. Change type of
2942 set_func and show_func to cmd_sfunc_ftype.
2943 (_initialize_remote): Update `set remote Z-packet'
2944 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
2945 (show_remote_protocol_e_packet_cmd): Ditto.
2946 (show_remote_protocol_E_packet_cmd): Ditto.
2947 (show_remote_protocol_P_packet_cmd): Ditto.
2948 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
2949 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
2950 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
2951 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
2952 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
2953 (show_remote_protocol_Z_packet_cmd): Ditto.
2954 (show_remote_protocol_binary_download_cmd): Ditto.
2955 (show_remote_cmd): Pass NULL to all of above.
2956
fc08ec52
MK
29572002-06-15 Mark Kettenis <kettenis@gnu.org>
2958
2959 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
2960 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
2961 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
2962 POP_FRAME): Remove defines.
2963 (i386_push_arguments, i386_store_struct_return,
2964 i386_extract_return_value, i386_store_return_value,
2965 i386_extract_struct_value_address, i386_push_dummy_frame,
2966 i386_pop_frame): Renove prototypes.
2967 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2968 macros mentioned above.
2969
e707bbc2
AC
29702002-06-15 Andrew Cagney <ac131313@redhat.com>
2971
2972 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
2973 add_set_boolean_cmd.
2974 (add_setshow_cmd): New function.
2975 * command.h (add_setshow_boolean_cmd): Replace
2976 add_set_boolean_cmd.
2977 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
2978 and ``set rdiromatzero''.
2979 * maint.c (_initialize_maint_cmds): Update commented out code.
2980 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
2981 * target.c (initialize_targets): Update `set
2982 trust-readonly-sections'.
2983 * remote.c (_initialize_remote): Update `set remotebreak'.
2984
42fdc8df
MK
29852002-06-15 Mark Kettenis <kettenis@gnu.org>
2986
93924b6b
MK
2987 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
2988 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
2989 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
2990 fit into multi-arch framework.
2991 (i386_breakpoint_from_pc): New function.
2992 (i386_gdbarch_init): Adjust for removal of the macros mentioned
2993 above.
2994
42fdc8df
MK
2995 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
2996 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
2997 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
2998 (i386_frameless_function_invocation, i386_frame_num_args,
2999 i386_frame_init_saved_regs): Remove prototypes.
3000 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3001 macros mentioned above.
3002
9773a94b
AC
30032002-06-15 Andrew Cagney <ac131313@redhat.com>
3004
3005 * cli/cli-decode.c (set_cmd_cfunc): Update.
3006 (set_cmd_sfunc): Update.
3007 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3008 (set_cmd_sfunc, set_cmd_cfunc): Update.
3009 * cli/cli-decode.h: Update.
3010
6e157172
MK
30112002-06-15 Mark Kettenis <kettenis@gnu.org>
3012
3013 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3014 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3015
7f19b9a2
AC
30162002-06-15 Andrew Cagney <ac131313@redhat.com>
3017
3018 * defs.h (auto_boolean): Declare enum.
3019 * command.h (cmd_auto_boolean): Delete enum.
3020 * mips-tdep.c (mask_address_var): Update.
3021 (mips_mask_address_p): Update.
3022 (show_mask_address): Update.
3023 * remote.c (struct packet_config): Update.
3024 (update_packet_config): Update.
3025 (show_packet_config_cmd): Update.
3026 (packet_ok): Update.
3027 (add_packet_config_cmd): Update.
3028 (_initialize_remote):
3029 * command.h: Update.
3030 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3031 (do_setshow_command): Update.
3032 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3033 * cli/cli-decode.h: Update.
3034
1cf88de5
MK
30352002-06-15 Mark Kettenis <kettenis@gnu.org>
3036
22ba8cf2
MK
3037 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3038 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3039 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3040 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3041 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3042 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3043
762c5349
MK
3044 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3045 list of DJGPP COFF targets.
3046
091198bb
MK
3047 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3048 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3049 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3050 (FP0_REGNUM): Remove define.
3051 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3052 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3053 (i386_register_virtual_size): Remove protoype.
3054 * i386-tdep.c (i386_register_virtual_size): Removed.
3055 (i386_extract_return_value, i386_store_return_value): Use
3056 FP0_REGNUM instead of NUM_FREGS to determine whether the
3057 floating-point registers are available.
3058 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3059 Adjust for removal of macros mentioned above.
3060
30612002-06-15 Mark Kettenis <kettenis@gnu.org>
3062
fcc9bf01
MK
3063 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3064 comments.
3065 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3066 Remove prototypes.
3067 (supply_gregset, fill_gregset): Remove use of register keyword and
3068 remove declaration for regmap. Use I386_NUM_GREGS instead of
3069 NUM_REGS and NUM_FREGS.
3070 (FPREGSET_FSAVE_OFFSET): Remove.
3071 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3072 NUM_FREGS to determine whether the floating-point registers are
3073 available.
3074
65e78234
MK
3075 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3076 gnu_store_registers): Replace usage of NUM_GREGS with
3077 I386_NUM_GREGS.
3078
98df6387
MK
3079 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3080 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3081 usage of NUM_GREGS with I386_NUM_GREGS.
3082
099a9414
MK
3083 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3084
57976e88
MK
3085 * i386bsd-nat.c: Include "i386-tdep.h".
3086 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3087 I386_NUM_GREGS.
3088
b335f4a6
MK
3089 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3090 and associated comment. They no longer make any sense, since we
3091 don't use this file anymore on Linux.
3092
1cf88de5
MK
3093 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3094 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3095 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3096 elements in these arrays.
3097 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3098 MAX_NUM_REGS.
3099
daa66587
MK
31002002-06-15 Mark Kettenis <kettenis@gnu.org>
3101
3102 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3103 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3104
26e9b323
AC
31052002-06-14 Andrew Cagney <cagney@redhat.com>
3106
3107 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3108 EXTRACT_RETURN_VALUE.
3109 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3110 EXTRACT_STRUCT_VALUE_ADDRESS.
3111 * gdbarch.h, gdbarch.c: Regenerate.
3112
3113 * values.c (value_being_returned): Handle
3114 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3115 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3116
3117 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3118 * arm-tdep.c (arm_gdbarch_init): Update.
3119 * avr-tdep.c (avr_gdbarch_init): Update.
3120 * cris-tdep.c (cris_gdbarch_init): Update.
3121 * d10v-tdep.c (d10v_gdbarch_init): Update.
3122 * ia64-tdep.c (ia64_gdbarch_init): Update.
3123 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3124 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3125 * s390-tdep.c (s390_gdbarch_init): Update.
3126 * sh-tdep.c (sh_gdbarch_init): Update.
3127 * s390-tdep.c (s390_gdbarch_init): Update.
3128 * sparc-tdep.c (sparc_gdbarch_init): Update.
3129 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3130 * v850-tdep.c (v850_gdbarch_init): Update.
3131 * vax-tdep.c (vax_gdbarch_init): Update.
3132 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3133 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3134
3135 * config/arc/tm-arc.h: Update.
3136 * config/d30v/tm-d30v.h: Update.
3137 * config/fr30/tm-fr30.h: Update.
3138 * config/h8300/tm-h8300.h: Update.
3139 * config/h8500/tm-h8500.h: Update.
3140 * config/i386/tm-i386.h: Update.
3141 * config/i386/tm-ptx.h: Update.
3142 * config/i386/tm-symmetry.h: Update.
3143 * config/i960/tm-i960.h: Update.
3144 * config/m32r/tm-m32r.h: Update.
3145 * config/m68k/tm-delta68.h: Update.
3146 * config/m68k/tm-linux.h: Update.
3147 * config/m68k/tm-m68k.h: Update.
3148 * config/m88k/tm-m88k.h: Update.
3149 * config/mcore/tm-mcore.h: Update.
3150 * config/mips/tm-mips.h: Update.
3151 * config/mn10200/tm-mn10200.h: Update.
3152 * config/pa/tm-hppa.h: Update.
3153 * config/pa/tm-hppa64.h: Update.
3154 * config/sparc/tm-sp64.h: Update.
3155 * config/sparc/tm-sparc.h: Update.
3156 * config/sparc/tm-sparclet.h: Update.
3157 * config/z8k/tm-z8k.h: Update.
3158
5179e78f
AC
31592002-06-14 Andrew Cagney <cagney@redhat.com>
3160
3161 * Makefile.in (i386_linux_tdep_h): Define.
3162 (i386_tdep_h, i387_tdep_h): Define.
3163 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3164 $(i386_tdep_h) and $(i387_tdep_h).
3165 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3166
8201327c
MK
31672002-06-14 Mark Kettenis <kettenis@gnu.org>
3168
edf393ac
MK
3169 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3170 Already covered by the default.
3171
896fb97d
MK
3172 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3173 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3174 (i386_gdbarch_init): Initialize long_double_format and long_double
3175 bit.
3176
8201327c
MK
3177 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3178 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3179 Move these to ...
3180 * config/i386/i386sol2.mh: ... here.
3181 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3182 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3183 (SIGCONTEXT_PC_OFFSET): Remove define.
3184 (IN_SIGTRAMP): Remove define.
3185 * i386-sol2-tdep.c: New file.
3186
3187 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3188 * config/i386/tm-i386nw.h: Removed.
3189
3190 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3191 USE_STRUCT_CONVENTION): Remove defines.
3192 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3193 (get_longjmp_target): Remove prototype.
3194 (IN_SIGTRAMP): Remove define.
3195 (i386bsd_in_sigtramp): Remove prototype.
3196 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3197 function. Update comment accordingly
3198 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3199 (FRAME_SAVED_PC): Remove define.
3200 (i386bsd_frame_saved_pc): Remove prototype.
3201 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3202 GET_LONGJMP_TARGET): Remove defines.
3203 (get_longjmp_target): Remove prototype.
3204 (IN_SIGTRAMP): Remove define.
3205 (i386bsd_in_sigtramp): Remove prototype.
3206 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3207 function. Update comment accordingly
3208 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3209 (FRAME_SAVED_PC): Remove define.
3210 (i386bsd_frame_saved_pc): Remove prototype.
3211 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3212 Remove prototype.
3213 (USE_STRUCT_CONVENTION): Remove prototype.
3214 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3215 declaration.
3216 (_initialize_i386bsd_nat): Revise logic to determine some
3217 constants at compile time when compiling a native GDB. Warn if
3218 things don't match up with what we expect.
3219 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3220 Remove variables.
3221 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3222 to use date stored in `struct gdbarch_tdep'.
3223 (i386bsd_sigcontext_offset): Remove varaible.
3224 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3225 stored in `struct gdbarch_tdep'.
3226 (i386bsd_frame_saved_pc): Make static.
3227 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3228 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3229 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3230 i386fbsd4_sc_pc_offset): New variables.
3231 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3232 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3233 functions.
3234 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3235 functions.
3236 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3237 Modify the value of i386fbsd_sigtramp_start and
3238 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3239 i386fbsd_sigtramp_end.
3240 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3241 function.
3242
3243 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3244 define to i386-linux-tdep.h.
3245 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3246 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3247 defines.
3248 (i386_linux_register_name, i386_linux_register_byte,
3249 i386_linux_register_raw_size): Remove prototypes.
3250 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3251 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3252 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3253 TARGET_WRITE_PC): Remove defines.
3254 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3255 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3256 i386_linux_write_pc): Remove prototypes.
3257 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3258 (get_longjmp_target): Remove prototype.
3259 * i386-linux-tdep.h: New file.
3260 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3261 * i386-linux-tdep.c: Include "i386-tdep.h" and
3262 "i386-linux-tdep.h".
3263 (i386_linux_register_name, i386_linux_register_byte,
3264 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3265 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3266 Make static.
3267 (i386_linux_init_abi): New function.
3268 (_initialize_i386_linux_tdep): New function.
3269
3270 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3271 (i386_saved_pc_after_call): Remove prototype.
3272 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3273 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3274 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3275 (i386_register_name, i386_stab_reg_to_regnum,
3276 i386_dwarf_reg_to_regnum): Remove prototypes.
3277 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3278 SIZEOF_SSE_REGS): Remove defines.
3279 (REGISTER_BYTES): Remove define.
3280 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3281 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3282 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3283 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3284 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3285 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3286 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3287 (get_longjmp_target): Remove prototype.
3288 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3289 (sigtramp_saved_pc): Remove define.
3290 (i386v4_sigtramp_saved_pc): Remove prototype.
3291 * config/i386/tm-go32.h (FRAME_CHAIN,
3292 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3293 (i386go32_frame_saved_pc): Remove prototype.
3294 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3295 (get_longjmp_target): Remove prototype.
3296 * i386-tdep.h: Include "osabi.h".
3297 (enum i386_abi): Removed.
3298 (enum struct_return): New enum.
3299 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3300 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3301 sc_pc_offset members.
3302 (i386_gdbarch_register_os_abi): Remove prototype.
3303 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3304 I386_SSE_NUM_REGS): New defines.
3305 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3306 I386_SSE_SIZEOF_REGS): New defines.
3307 (i386_register_name, i386_register_byte, i386_register_raw_size):
3308 New prototypes.
3309 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3310 (i386bsd_sigtramp_saved_pc): New prototype.
3311 * i386-tdep.c: Don't include "elf-bfd.h".
3312 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3313 i386_frame_chain, i386_saved_pc_after_call): Make static.
3314 (i386_frame_saved_pc): Rewrite to call architecture dependent
3315 function to deal with signal handlers. Make static.
3316 (i386go32_frame_saved_pc): Removed.
3317 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3318 Removed.
3319 (i386_get_longjmp_target): New function.
3320 (default_struct_convention, pcc_struct_convention,
3321 reg_struct_convention, valid_conventions, struct_convention): New
3322 variables.
3323 (i386_use_struct_convention): New function.
3324 (i386v4_sigtramp_saved_pc): Renamed to
3325 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3326 (i386_pc_in_sigtramp): New function.
3327 (i386_abi_names): Removed.
3328 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3329 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3330 Removed.
3331 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3332 i386_gdbarch_register_os_abi): Removed.
3333 (struct i386_abi_handler): Removed.
3334 (i386_abi_handler_list): Removed.
3335 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3336 functions.
3337 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3338 i386_nw_init_abi): New functions.
3339 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3340 Use set_gdbarch_xxx() calls instead of relying on macros for a
3341 number of calls.
3342 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3343 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3344 Register the various architecture variants defined in this file.
3345
ad2f7632
DJ
33462002-06-14 Daniel Jacobowitz <drow@mvista.com>
3347
3348 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3349 (struct main_type): Remove arg_types member. Update comments for
3350 struct field.
3351 (TYPE_ARG_TYPES): Remove.
3352 (TYPE_FN_FIELD_ARGS): Update.
3353 (smash_to_method_type): Update prototype.
3354
3355 * c-typeprint.c (cp_type_print_method_args): Take method type
3356 instead of argument list. Use new argument layout. Simplify.
3357 (c_type_print_args): Use new argument layout. Simplify.
3358 (c_type_print_base): Update call to cp_type_print_method_args.
3359 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3360 argument; use die->type instead. Update call to
3361 smash_to_method_type.
3362 (read_structure_scope): Update call to dwarf2_add_member_fn.
3363 * gdbtypes.c (allocate_stub_method): Update comment.
3364 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3365 Use new argument layout.
3366 (check_stub_method): Use new argument layout. Don't count
3367 void as an argument.
3368 (print_arg_types): Update comments. Use new argument layout.
3369 (recursive_dump_type): Don't print arg_types member.
3370 * hpread.c (hpread_read_struct_type): Use new argument layout.
3371 (fixup_class_method_type): Likewise.
3372 (hpread_type_lookup): Likewise.
3373 * stabsread.c (read_type): Update calls to read_args and
3374 smash_to_method_type.
3375 (read_args): Use new argument layout. Simplify.
3376 * valops.c (typecmp): Use new argument layout. Update parameters
3377 and comments. Simplify.
3378 (hand_function_call): Use new argument layout.
3379 (search_struct_method): Update call to typecmp.
3380 (find_overload_match): Use new argument layout.
3381
6da02953
DJ
33822002-06-13 Daniel Jacobowitz <drow@mvista.com>
3383
3384 * NEWS: Mention multithreaded debug support for gdbserver.
3385
519b2366
DJ
33862002-06-13 Daniel Jacobowitz <drow@mvista.com>
3387
3388 * MAINTAINERS: Mention NEWS.
3389
a7f48742
DJ
33902002-06-13 Daniel Jacobowitz <drow@mvista.com>
3391
3392 * gdbserver/regcache.c: Add comment.
3393
6c0d6680
DJ
33942002-06-13 Daniel Jacobowitz <drow@mvista.com>
3395
3396 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3397 (struct mips_objfile_private, compare_pdr_entries): New.
3398 (non_heuristic_proc_desc): Read the ".pdr" section if it
3399 is present.
3400
6529d2dd
AC
34012002-06-12 Andrew Cagney <ac131313@redhat.com>
3402
3403 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3404 (arm_debug): New static variable.
3405 (_initialize_arm_tdep): Add ``set debug arm'' command.
3406
26216b98
AC
34072002-06-12 Andrew Cagney <ac131313@redhat.com>
3408
3409 * Makefile.in (sim_arm_h): Define.
3410 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3411 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3412 (arm_register_sim_regno): New function, map an internal REGNUM
3413 onto a simulator register number.
3414 (arm_gdbarch_init): Set register_sim_regno.
3415
814b3ba0
AH
34162002-06-09 Aldy Hernandez <aldyh@redhat.com>
3417
3418 * MAINTAINERS: Add self.
3419
475b0867
JB
34202002-06-11 Jim Blandy <jimb@redhat.com>
3421
919d772c
JB
3422 * source.c (source_info): Mention whether the symtab has
3423 information about preprocessor macros.
3424
475b0867
JB
3425 Call the command `info macro', not `show macro'.
3426 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3427 Fix error message.
3428 (_initialize_macrocmd): Register `info_macro_command' in
3429 `infolist', not `showlist'.
3430
9e364162
DJ
34312002-06-11 Daniel Jacobowitz <drow@mvista.com>
3432
3433 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3434 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3435 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3436 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3437 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3438 unconditionally.
3439 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3440 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3441 (_initialize_mips_tdep): Remove dead code.
3442 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3443 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3444 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3445 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3446 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3447 MIPS_LAST_FP_ARG_REGNUM): Remove.
3448
34492002-06-11 Daniel Jacobowitz <drow@mvista.com>
3450
3451 * gdbserver/thread-db.c: New file.
3452 * gdbserver/proc-service.c: New file.
3453 * gdbserver/acinclude.m4: New file.
3454 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
3455 proc-service.o, and thread-db.o.
3456 (linux-low.o): Add USE_THREAD_DB.
3457 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
3458 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
3459 * gdbserver/aclocal.m4: Regenerated.
3460 * gdbserver/config.in: Regenerated.
3461 * gdbserver/configure: Regenerated.
3462 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
3463 thread_db.h, and linux/elf.h headrs.
3464 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
3465 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
3466 Check for -lthread_db and thread support.
3467 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
3468 PowerPC, and SuperH.
3469 * gdbserver/i387-fp.c: Constify arguments.
3470 * gdbserver/i387-fp.h: Likewise.
3471 * gdbserver/inferiors.c: (struct thread_info): Renamed from
3472 `struct inferior_info'. Remove PID member. Use generic inferior
3473 list header. All uses updated.
3474 (inferiors, signal_pid): Removed.
3475 (all_threads): New variable.
3476 (get_thread): Define.
3477 (add_inferior_to_list): New function.
3478 (for_each_inferior): New function.
3479 (change_inferior_id): New function.
3480 (add_inferior): Removed.
3481 (remove_inferior): New function.
3482 (add_thread): New function.
3483 (free_one_thread): New function.
3484 (remove_thread): New function.
3485 (clear_inferiors): Use for_each_inferior and free_one_thread.
3486 (find_inferior): New function.
3487 (find_inferior_id): New function.
3488 (inferior_target_data): Update argument type.
3489 (set_inferior_target_data): Likewise.
3490 (inferior_regcache_data): Likewise.
3491 (set_inferior_regcache_data): Likewise.
3492 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
3493 (all_processes, stopping_threads, using_thrads)
3494 (struct pending_signals, debug_threads, pid_of): New.
3495 (inferior_pid): Replace with macro.
3496 (struct inferior_linux_data): Remove.
3497 (get_stop_pc, add_process): New functions.
3498 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
3499 Use add_process and add_thread.
3500 (linux_attach_lwp): New function, based on old linux_attach. Use
3501 add_process and add_thread. Set stop_expected for new threads.
3502 (linux_attach): New function.
3503 (linux_kill_one_process): New function.
3504 (linux_kill): Kill all LWPs.
3505 (linux_thread_alive): Use find_inferior_id.
3506 (check_removed_breakpoints, status_pending_p): New functions.
3507 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
3508 Update. Use WNOHANG. Wait for cloned processes also. Update process
3509 struct for the found process.
3510 (linux_wait_for_event): New function.
3511 (linux_wait): Use it. Support LWPs.
3512 (send_sigstop, wait_for_sigstop, stop_all_processes)
3513 (linux_resume_one_process, linux_continue_one_process): New functions.
3514 (linux_resume): Support LWPs.
3515 (REGISTER_RAW_SIZE): Remove.
3516 (fetch_register): Use register_size instead. Call supply_register.
3517 (usr_store_inferior_registers): Likewise. Call collect_register.
3518 Fix recursive case.
3519 (regsets_fetch_inferior_registers): Improve error message.
3520 (regsets_store_inferior_registers): Add debugging.
3521 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
3522 (unstopped_p, linux_signal_pid): New functions.
3523 (linux_target_ops): Add linux_signal_pid.
3524 (linux_init_signals): New function.
3525 (initialize_low): Call it. Initialize using_threads.
3526 * gdbserver/regcache.c (inferior_regcache_data): Add valid
3527 flag.
3528 (get_regcache): Fetch registers lazily. Add fetch argument
3529 and update all callers.
3530 (regcache_invalidate_one, regcache_invalidate): New
3531 functions.
3532 (new_register_cache): Renamed from create_register_cache.
3533 Return the new regcache.
3534 (free_register_cache): Change argument to a void *.
3535 (registers_to_string, registers_from_string): Call get_regcache
3536 with fetch flag set.
3537 (register_data): Make static. Pass fetch flag to get_regcache.
3538 (supply_register): Call get_regcache with fetch flag clear.
3539 (collect_register): Call get_regcache with fetch flag set.
3540 (collect_register_as_string): New function.
3541 * gdbserver/regcache.h: Update.
3542 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
3543 stderr.
3544 Handle input interrupts while waiting for an ACK.
3545 (input_interrupt): Use signal_pid method.
3546 (getpkt): Flush after debug output and use stderr.
3547 (outreg): Use collect_register_as_string.
3548 (new_thread_notify, dead_thread_notify): New functions.
3549 (prepare_resume_reply): Check using_threads. Set thread_from_wait
3550 and general_thread.
3551 (look_up_one_symbol): Flush after debug output.
3552 * gdbserver/server.c (step_thread, server_waiting): New variables.
3553 (start_inferior): Don't use signal_pid. Update call to mywait.
3554 (attach_inferior): Update call to mywait.
3555 (handle_query): Handle qfThreadInfo and qsThreadInfo.
3556 (main): Don't fetch/store registers explicitly. Use
3557 set_desired_inferior. Support proposed ``Hs'' packet. Update
3558 calls to mywait.
3559 * gdbserver/server.h: Update.
3560 (struct inferior_list, struct_inferior_list_entry): New.
3561 * gdbserver/target.c (set_desired_inferior): New.
3562 (write_inferior_memory): Constify.
3563 (mywait): New function.
3564 * gdbserver/target.h: Update.
3565 (struct target_ops): New signal_pid method.
3566 (mywait): Removed macro, added prototype.
3567
3568 * gdbserver/linux-low.h (regset_func): Removed.
3569 (regset_fill_func, regset_store_func): New.
3570 (enum regset_type): New.
3571 (struct regset_info): Add type field. Use new operation types.
3572 (struct linux_target_ops): stop_pc renamed to get_pc.
3573 Add decr_pc_after_break and breakpoint_at.
3574 (get_process, get_thread_proess, get_process_thread)
3575 (strut process_info, all_processes, linux_attach_lwp)
3576 (thread_db_init): New.
3577
3578 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
3579 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
3580 (the_low_target): Add new members.
3581 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
3582 (i386_store_fpxregset): Constify.
3583 (target_regsets): Add new kind identifier.
3584 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
3585 (i386_set_pc): Add debugging.
3586 (i386_breakpoint_at): New function.
3587 (the_low_target): Add new members.
3588 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
3589 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
3590 (mips_breakpoint_at): New.
3591 (the_low_target): Add new members.
3592 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
3593 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
3594 (the_low_target): Add new members.
3595 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
3596 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
3597 (the_low_target): Add new members.
3598 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
3599 identifier.
3600
23aa4c72
ML
36012002-06-11 Michal Ludvig <mludvig@suse.cz>
3602
3603 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3604 (unwind_tmp_obstack_free, parse_frame_info)
3605 (update_context, cfi_read_fp, cfi_write_fp)
3606 (cfi_frame_chain, cfi_init_extra_frame_info)
3607 (cfi_virtual_frame_pointer): Use the above function.
264d1763 3608 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 3609
70eb15a4
CV
36102002-06-11 Corinna Vinschen <vinschen@redhat.com>
3611
3612 * v850-tdep.c (v850_type_is_scalar): New function.
3613 (v850_use_struct_convention): Match current gcc implementation
3614 as close as possible.
3615 (v850_push_arguments): Fix stack_offset handling. Don't write
3616 struct_addr into register. This is done by v850_store_struct_return.
3617 (v850_extract_return_value): Care for structs.
3618 (v850_store_return_value): Ditto.
3619 (v850_store_struct_return): Actually write address.
3620
482a4d06
ML
36212002-06-11 Michal Ludvig <mludvig@suse.cz>
3622
3623 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3624 without debug information too.
3625
d855c300
AC
36262002-06-10 Andrew Cagney <ac131313@redhat.com>
3627
3628 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3629 Make multi-arch pure.
3630 * gdbarch.h, gdbarch.c: Re-generate.
3631 * arm-tdep.c (arm_print_float_info): Update.
3632 * arch-utils.h (default_print_float_info): Update.
3633 * arch-utils.c (default_print_float_info): Update.
3634 * infcmd.c (float_info): Update call.
3635
dd12a101
AC
36362002-06-10 Andrew Cagney <ac131313@redhat.com>
3637
3638 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3639 the front of the initialize list.
3640
101dcfbe
AC
36412002-06-10 Andrew Cagney <ac131313@redhat.com>
3642
3643 * infrun.c (struct inferior_status): Replace fields
3644 selected_frame_address and selected_level with field
3645 selected_frame_id.
3646 (save_inferior_status): Update. Use get_frame_id.
3647 (struct restore_selected_frame_args): Delete.
3648 (restore_selected_frame): Update. Use frame_find_by_id.
3649 (restore_inferior_status): Update.
3650
3651 * breakpoint.h (struct breakpoint): Change type of
3652 watchpoint_frame to frame_id.
3653 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3654 call to get_current_frame.
3655 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3656 get_current_frame.
3657 (watchpoint_check): Use frame_find_by_id.
3658
3659 * frame.h (record_selected_frame): Delete declaration.
3660 * stack.c (record_selected_frame): Delete function.
3661
3662 * frame.h (struct frame_id): Define.
3663 (get_frame_id): Declare.
3664 (frame_find_by_id): Declare.
3665 * frame.c (frame_find_by_id): New function.
3666 (get_frame_id): New function.
3667
304270b6
AV
36682002-06-10 Andrey Volkov <avolkov@transas.com>
3669
3670 * ser-e7kpc.c: Fix duplicated define and call of
3671 _initialize_ser_e7000pc
3672
2f2cf184
DJ
36732002-06-09 Daniel Jacobowitz <drow@mvista.com>
3674
3675 * signals/signals.c (target_signal_from_host): Fix #ifdef
3676 SIGRTMIN case.
3677 (do_target_signal_to_host): Likewise.
3678
caaa3122
DJ
36792002-06-09 Daniel Jacobowitz <drow@mvista.com>
3680
3681 * mips-tdep.c (mips_find_abi_section): New function.
3682 (mips_gdbarch_init): Call it.
3683
6ac5df3a
MK
36842002-06-09 Mark Kettenis <kettenis@gnu.org>
3685
3686 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3687 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3688 after Andrew's 2002-06-08 gdbarch change.
3689
82ea117a
MK
36902002-06-09 Mark Kettenis <kettenis@gnu.org>
3691
3692 * i386-linux-nat.c (suppy_gregset): Don't supply
3693 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3694 register cache.
3695 (fill_gregset): Don't fetch it under the same circumstances.
3696
3c25f8c7
AC
36972002-06-09 Andrew Cagney <cagney@redhat.com>
3698
3699 * Makefile.in (callback_h): Define.
3700 (remote_sim_h): Update path to remote-sim.h.
3701 (remote-rdp.o): Add $(callback_h).
3702 (remote-sim.o): Use $(callback_h).
3703 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3704 * remote-rdp.c: Include "gdb/callback.h".
3705
1029b7fa
MK
37062002-06-09 Mark Kettenis <kettenis@gnu.org>
3707
3708 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3709 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3710
616675d3
AC
37112002-06-08 Andrew Cagney <ac131313@redhat.com>
3712
a3efda28
AC
3713 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3714 * rdi-share/serpardr.c: Ditto.
3715 * rdi-share/unixcomm.c: Ditto.
3716 * rdi-share/serdrv.c: Ditto.
3717 * rdi-share/hostchan.h: Ditto.
3718 * rdi-share/hostchan.c: Ditto.
3719 * rdi-share/host.h: Ditto.
3720 * rdi-share/devsw.c: Ditto.
3721
c5f10366
AC
3722 * objfiles.h: Change type of obj_private to void pointer.
3723 * pa64solib.c: Update copyright. Don't include "assert.h", use
3724 strcmp instead of STREQ, use LONGEST, do not use PTR
3725 * somsolib.c: Ditto.
3726
616675d3
AC
3727 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3728 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3729 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3730
e4b415d9
AC
37312002-06-08 Andrew Cagney <ac131313@redhat.com>
3732
3733 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3734 (default_get_saved_register): Delete function.
3735 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3736 generic_unwind_get_saved_register.
3737 * gdbarch.h, gdbarch.c: Re-generate.
3738
ca0d0b52
AC
37392002-06-08 Andrew Cagney <ac131313@redhat.com>
3740
3741 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3742 generic_func_frame_chain_valid.
3743 * gdbarch.h, gdbarch.c: Re-generate.
3744 * blockframe.c (generic_func_frame_chain_valid): Only check
3745 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3746 passing FP to PC_IN_CALL_DUMMY.
3747 Fix PR gdb/360.
3748
76860b5f
AC
37492002-06-08 Andrew Cagney <ac131313@redhat.com>
3750
3751 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3752 (register_gdbarch_data): Initialize init_p.
3753 (gdbarch_data): Initialize data pointer using the init function.
3754 (init_gdbarch_data): Delete function.
3755 (gdbarch_update_p): Update.
3756 (initialize_non_multiarch): Update.
3757 (struct gdbarch): Add field initialized_p.
3758 * gdbarch.h, gdbarch.c: Re-generate.
3759
8dda9770
ML
37602002-06-07 Michal Ludvig <mludvig@suse.cz>
3761
3762 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3763 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3764 better do the things actually here.
3765 * x86-64-tdep.c (x86_64_register_name2nr): New.
3766 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3767 (x86_64_gdbarch_init): Respect the above change.
3768 * x86-64-tdep.h (x86_64_register_name2nr)
3769 (x86_64_register_nr2name): Add prototypes.
3770 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3771
3d79a47c
MS
37722002-06-06 Michael Snyder <msnyder@redhat.com>
3773
7bd91a28
MS
3774 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3775 Delete extra braces and re-indent.
3776 (d10v_store_return_value): Char return values
3d79a47c
MS
3777 must be shifted over by one byte in R0.
3778 (d10v_extract_return_value): Delete extra braces, re-indent.
3779
095a4c96
EZ
37802002-06-06 Elena Zannoni <ezannoni@redhat.com>
3781
3782 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3783 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3784 (d10v_integer_to_address): Rewrite.
3785 (d10v_frame_init_saved_regs): When reading fp and sp registers use
3786 the d10v specific functions which take care of converting to the
3787 correct space.
3788
e8a77ca4
EZ
37892002-06-06 Elena Zannoni <ezannoni@redhat.com>
3790
3791 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3792 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3793
4f2e4a4f
AC
37942002-06-02 Andrew Cagney <ac131313@redhat.com>
3795
3796 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3797 includes.
3798 * config/tm-linux.h: Ditto.
3799 * config/alpha/tm-alphalinux.h: Ditto.
3800 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3801 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3802 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3803 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3804 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3805 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3806 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3807 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
3808 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
3809 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
3810 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
3811 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
3812 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
3813 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
3814 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
3815 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
3816 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
3817 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
3818 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
3819 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
3820 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
3821 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
3822 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
3823 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
3824 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
3825 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
3826 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
3827 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
3828 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
3829 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
3830 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
3831 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
3832 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
3833 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
3834 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
3835 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
3836 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
3837
ae2ab2ce
AS
38382002-05-04 Aidan Skinner <aidan@velvet.net>
3839
3840 * ada-exp.tab.c: New file
3841 * ada-exp.y: New file
3842 * ada-lang.c: New file
3843 * ada-lang.h: New file
3844 * ada-lex.c: New file
3845 * ada-lex.l: New file
3846 * ada-tasks.c: New file
3847 * ada-typeprint.c: New file
3848 * ada-valprint.c: New file
3849
0ddd0135
JT
38502002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3851
3852 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
3853 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
3854
750fbacc
JT
38552002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3856
3857 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
3858 insetead of ppc-linux-tdep.o.
3859 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
3860 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
3861
df94e18a
AC
38622002-06-02 Andrew Cagney <ac131313@redhat.com>
3863
3864 2002-05-07 Christian Groessler <chris@groessler.org>
3865 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
3866 bit register contents for little endian hosts.
3867
1a38ab75
AC
38682002-06-01 Andrew Cagney <ac131313@redhat.com>
3869
3870 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
3871 any maintainer.
3872
8b1632ac
AC
38732002-06-01 Andrew Cagney <ac131313@redhat.com>
3874
3875 * gdbarch.h: Regenerate.
3876
627054c8
AC
38772002-06-01 Andrew Cagney <ac131313@redhat.com>
3878
3879 * MAINTAINERS: Add everyone to write-after-approval list.
3880
4f460812
AC
38812002-06-01 Andrew Cagney <ac131313@redhat.com>
3882
3883 * stack.c (frame_info): Use frame_register_unwind instead of
3884 saved_regs. Mention when the SP is on the stack or in a register.
3885
3886 * frame.h (frame_register_unwind_ftype): Define. Document.
3887 (struct frame_info): Add field register_unwind and
3888 register_unwind_cache.
3889 (frame_register_unwind): Declare.
3890 (generic_unwind_get_saved_register): Declare.
3891
3892 * frame.c (frame_register_unwind): New function.
3893 (generic_unwind_get_saved_register): New function.
3894
3895 * blockframe.c (generic_call_dummy_register_unwind): New function.
3896 (frame_saved_regs_register_unwind): New function.
3897 (set_unwind_by_pc): New function.
3898 (create_new_frame): New function.
3899 (get_prev_frame): New function.
3900
de888f76
AC
39012002-05-30 Andrew Cagney <ac131313@redhat.com>
3902
3903 * a29k-share/: Delete directory.
3904 * remote-vx29k.c: Delete file.
3905
2f2c3626
JT
39062002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3907
3908 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
3909 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3910
9ce5c36a
JT
39112002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3912
3913 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
3914 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3915 (sparc64nbsd-nat.o)
3916 (sparcnbsd-nat.o)
3917 (sparcnbsd-tdep.o): New dependency lists.
3918 * NEWS: Note new UltraSPARC NetBSD native configuration.
3919 * configure.host (sparc64-*-netbsd*): New host.
3920 * configure.tgt (sparc-*-netbsdelf*)
3921 (sparc-*-netbsd*): Set gdb_target to nbsd.
3922 (sparc64-*-netbsd*): New target.
3923 * sparc64nbsd-nat.c: New file.
3924 * sparcnbsd-nat.c: New file.
3925 * sparcnbsd-tdep.c: New file.
3926 * sparcnbsd-tdep.h: New file.
3927 * config/sparc/nbsd.mt: New file.
3928 * config/sparc/nbsd64.mh: New file.
3929 * config/sparc/nbsd64.mt: New file.
3930 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
3931 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3932 (HOST_IPC): Remove.
3933 * config/sparc/nbsdaout.mt: Remove.
3934 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
3935 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3936 (HOST_IPC): Remove.
3937 * config/sparc/nbsdelf.mt: Remove.
3938 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
3939 sparc-nat.c compatiblity defines.
3940 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
3941 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
3942 * config/sparc/tm-nbsd64.h: New file.
3943 * config/sparc/tm-nbsdaout.h: Remove.
3944 * config/sparc/xm-nbsd.h: Remove.
3945
ef3cf062
JT
39462002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3947
3948 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
3949 * sparc-tdep.c: Include osabi.h.
3950 (gdbarch_tdep): Add osabi member.
3951 (_initialize_sparc_tdep): Use gdbarch_register.
3952 (sparc_gdbarch_init): Use generic OS ABI framework.
3953 (sparc_dump_tdep): New function.
3954
ee8ff470
KB
39552002-05-30 Kevin Buettner <kevinb@redhat.com>
3956
3957 * corefile.c (do_captured_read_memory_integer): Return non-zero
3958 result.
3959 (safe_read_memory_integer): Copy result of memory read when
3960 status is non-zero. Also, add comments.
3961
7b112f9c
JT
39622002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
3963
3964 * Makefile.in (ppc_tdep_h): Define.
3965 (ppc-linux-nat.o)
3966 (ppc-linux-tdep.o)
3967 (rs6000-tdep.o): Use $(ppc_tdep_h).
3968 (ppc-sysv-tdep.o)
3969 (ppcnbsd-nat.o)
3970 (ppcnbsd-tdep.o): New dependency lists.
3971 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
3972 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
3973 (ppc_linux_init_abi): New functions.
7b112f9c
JT
3974 (ppc_sysv_abi_broken_use_struct_convention)
3975 (ppc_sysv_abi_use_struct_convention)
3976 (ppc_sysv_abi_push_arguments): Move to...
3977 * ppc-sysv-tdep.c: ...here.
3978 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
3979 * rs6000-tdep.c (process_note_abi_tag_sections)
3980 (get_elfosabi): Remove.
3981 (rs6000_gdbarch_init): Use generic OS ABI framework.
3982 (rs6000_dump_tdep): New function.
3983 (_initialize_rs6000_tdep): Use gdbarch_register.
3984 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
3985 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
3986 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
3987 of ppc-linux-tdep.o.
3988 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
3989 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
3990 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
3991 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
3992 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
3993 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
3994
480dd42a
JB
39952002-05-29 Jim Blandy <jimb@redhat.com>
3996
3997 * macroscope.c (default_macro_scope): Put `void' in empty argument
3998 list.
3999
4182591f
AC
40002002-05-29 Andrew Cagney <ac131313@redhat.com>
4001
4002 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4003 * arch-utils.c: Include "sim-regno.h".
4004 * gdbarch.sh: Don't include "sim-regno.h".
4005 * gdbarch.h, gdbarch.c: Regenerate.
4006 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4007 here.
4008 * arch-utils.h (legacy_register_sim_regno): To here.
4009 * remote-sim.c (legacy_register_sim_regno): Move function from
4010 here.
4011 * arch-utils.c (legacy_register_sim_regno): To here.
4012
8238d0bf
AC
40132002-05-28 Andrew Cagney <ac131313@redhat.com>
4014
4015 * sim-regno.h: New file.
4016 * Makefile.in (sim_regno_h): Define.
4017 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4018 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4019 (legacy_register_sim_regno): New function.
4020 (one2one_register_sim_regno): New function.
4021 (gdbsim_fetch_register): Rewrite.
4022 (gdbsim_store_register): Only store a register when
4023 REGISTER_SIM_REGNO is valid.
4024 * d10v-tdep.c: Include "sim-regno.h".
4025 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4026 (d10v_ts3_register_sim_regno): Ditto.
4027 * gdbarch.sh: Include "sim-regno.h".
4028 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4029 * gdbarch.h, gdbarch.c: Regenerate.
4030 * arch-utils.h (default_register_sim_regno): Delete declaration.
4031 * arch-utils.c (default_register_sim_regno): Delete function.
4032
485721b1
JT
40332002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4034
4035 * ppcnbsd-nat.c: Rewrite.
4036 * ppcnbsd-tdep.c: New file.
4037 * ppcnbsd-tdep.h: New file.
4038 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4039 solib.o, and solib-svr4.o.
4040 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4041 nbsd-tdep.o, and corelow.o.
4042
697f244d
AC
40432002-05-28 Andrew Cagney <ac131313@redhat.com>
4044
4045 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4046 `tr' and `sed'. Mention that `broken' targets are not expected to
4047 build.
4048
f08caad1 40492002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
4050
4051 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4052 Let PC point right after the prologue before looking up symbols.
4053
3139facc
MH
40542002-05-27 Martin M. Hunt <hunt@redhat.com>
4055
4056 * i386-tdep.c (i386_register_virtual_type): Return
4057 builtin_type_vec128i for SSE registers.
4058
4059 * gdbtypes.h (builtin_type_vec128i): Declare.
4060
4061 * gdbtypes.c (build_builtin_type_vec128i): New function.
4062 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4063 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4064 (build_gdbtypes): Initialize new builtin vector types.
4065 (_initialize_gdbtypes): Register new vector types with gdbarch.
4066
6e3ba3b8
JT
40672002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4068
4069 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4070 since it has been multi-arch'd.
4071 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4072 Move Alpha and VAX multi-arch news entries to same section
4073 as other multi-arch news.
4074
93d5585d
JT
40752002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4076
4077 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4078 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4079 static. Rename some register numbers to put them in ns32k-tdep
4080 private namespace.
4081 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4082 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4083 functions.
4084 (_initialize_ns32k_tdep): Use gdbarch_register.
4085 * ns32k-tdep.h: New file.
4086 * ns32knbsd-tdep.c: New file.
4087 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4088 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4089 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4090 REGISTER_BYTES, REGISTER_BYTE): Remove.
4091 * config/ns32k/tm-ns32k.h: New file.
4092 * config/ns32k/tm-umax.h: Remove.
4093
efb2c70e
JT
40942002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4095
4096 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4097 ns32k_store_struct_return, ns32k_extract_return_value,
4098 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4099 functions.
4100 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4101 ns32k_saved_pc_after_call.
4102 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4103 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4104 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4105 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4106 ns32k_extract_struct_value_address.
4107
7bcc927b
JT
41082002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4109
4110 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4111 ns32k_fix_call_dummy): New.
4112 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4113 ns32k_call_dummy_words.
4114 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4115 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4116 CALL_DUMMY_NARGS): Remove.
4117 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4118
78f9d765
JT
41192002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4120
4121 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4122 ns32k_frame_saved_pc, ns32k_frame_args_address,
4123 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4124 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4125 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4126 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4127 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4128 (BREAKPOINT): Remove..
4129 (FRAME_CHAIN): Define as ns32k_frame_chain.
4130 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4131 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4132 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4133 (FRAME_FIND_SAVED_REGS): Remove.
4134 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4135 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4136 (POP_FRAME): Define as ns32k_pop_frame.
4137
f2c762e0
JT
41382002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4139
4140 * ns32k-tdep.c (ns32k_register_byte_32082,
4141 ns32k_register_byte_32382, ns32k_register_raw_size,
4142 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4143 functions.
4144 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4145 ns32k_register_byte_32382.
4146 * config/ns32k/tm-umax.h: Update copyright years.
4147 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4148 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4149 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4150 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4151 (ns32k_get_enter_addr): Fix prototype.
4152
af137673
JT
41532002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4154
4155 * ns32k-tdep.c: Update copyright years.
4156 (ns32k_register_name_32082): New function.
4157 (ns32k_register_name_32382): Ditto.
4158 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4159 (REGISTER_NAME): Define as ns32k_register_name_32382.
4160 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4161 (REGISTER_NAME): Define as ns32k_register_name_32082.
4162
a8bc7b56
JB
41632002-05-24 Jim Blandy <jimb@redhat.com>
4164
4165 * dwarf2read.c (free_line_header): Use xfree, not free.
4166
83a45910
JT
41672002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4168
4169 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4170 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4171
0db71247
AC
41722002-05-23 Andrew Cagney <ac131313@redhat.com>
4173
4174 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4175
b9e5e4dd
AC
41762002-05-23 Andrew Cagney <ac131313@redhat.com>
4177
4178 From Ross Alexander at NEC Europe:
4179 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4180
de530e84
MS
41812002-05-23 Michael Snyder <msnyder@redhat.com>
4182
4183 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4184 for input, rather than parse_and_eval_address.
4185
b91b96f4
AC
41862002-05-23 Andrew Cagney <ac131313@redhat.com>
4187
4188 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4189 * Makefile.in (sim_d10v_h): Update definition.
4190
8b279e7a
AC
41912002-05-24 Andrew Cagney <cagney@redhat.com>
4192
4193 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4194 change `2002-05-22 Michael Snyder' below.
4195 (d10v_push_arguments): Ditto.
4196 (d10v_extract_return_value): Ditto.
4197
0a3d0425
JB
41982002-05-23 Jim Blandy <jimb@redhat.com>
4199
4200 * macrotab.c (check_for_redefinition): Don't complain if the new
4201 definition is the same as the previous one. Take more arguments
4202 to allow the comparison.
4203 (macro_define_object, macro_define_function): Pass more arguments
4204 to check_for_redefinition.
4205
78eac43e
MS
42062002-05-22 Michael Snyder <msnyder@redhat.com>
4207
4208 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4209 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4210 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4211 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4212 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4213 Add a temp variable to save a call (and a memory read).
4214 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4215 if possible (so that PC_IN_CALL_DUMMY will work).
4216
9bc1edb8
CV
42172002-05-22 Corinna Vinschen <vinschen@redhat.com>
4218
4219 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4220
005ef3d2
ML
42212002-05-22 Michal Ludvig <mludvig@suse.cz>
4222
4223 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4224 fde->cie_ptr.
4225 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4226 (dwarf2_build_frame_info): Add offset to fde->initial_location
4227 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
4228 (execute_stack_op): Change type of 'result' from ULONGEST to
4229 CORE_ADDR.
005ef3d2 4230
fcf4f891
JT
42312002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4232
4233 * config/alpha/tm-nbsd.h: Include solib.h.
4234
cfef91e4
JT
42352002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4236
4237 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4238 assumptions about the host's byte order.
4239
9964235a
JT
42402002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4241
4242 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4243 to dependency list.
4244 * alphanbsd-tdep.c: Include solib-svr4.h.
4245 * shnbsd-tdep.c: Ditto.
4246
9eeef8ef
JT
42472002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4248
4249 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4250 nbsd-tdep.h to dependency list.
4251 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4252 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4253 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4254 nbsdaout.mh and nbsdelf.mh consistently.
4255 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4256 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4257 nbsdaout.mt and nbsdelf.mh consistently.
4258 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4259 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4260 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4261 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4262 a.out shared library stuff from here...
4263 * config/nm-nbsdaout.h: ...to here.
4264 * config/tm-nbsd.h: Remove.
4265 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4266 * config/arm/nbsd.mh: Remove.
4267 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4268 nbsd-tdep.o.
4269 * config/arm/nbsdaout.mh: New file.
4270 * config/arm/nbsdelf.mh: New file.
4271 * config/arm/nm-nbsdaout.h: New file.
4272 * config/i386/nbsd.mh: Remove.
4273 * config/i386/nbsd.mt: Remove.
4274 * config/i386/nbsdaout.mh: New file.
4275 * config/i386/nbsdaout.mt: New file.
4276 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4277 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4278 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4279 i386_register_u_addr): Remove.
4280 * config/i386/nm-nbsdaout.h: New file.
4281 * config/i386/nm-nbsdelf.h: Remove.
4282 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4283 (USE_STRUCT_CONVENTION): Remove.
4284 * config/i386/tm-nbsdaout.h: New file.
4285 * config/i386/tm-nbsdelf.h: Remove.
4286 * config/m68k/nbsd.mh: Remove.
4287 * config/m68k/nbsd.mt: Remove.
4288 * config/m68k/nbsdaout.mh: New file.
4289 * config/m68k/nbsdaout.mt: New file.
4290 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4291 * config/m68k/nm-nbsdaout.h: New file.
4292 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4293 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4294 * config/ns32k/nbsd.mh: Remove.
4295 * config/ns32k/nbsd.mt: Remove.
4296 * config/ns32k/nbsdaout.mh: New file.
4297 * config/ns32k/nbsdaout.mt: New file.
4298 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4299 * config/ns32k/nm-nbsdaout.h: New file.
4300 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4301 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4302 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4303 (SVR4_SHARED_LIBS): Remove.
4304 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4305 * config/sparc/nbsd.mh: Remove.
4306 * config/sparc/nbsd.mt: Remove.
4307 * config/sparc/nbsdaout.mh: New file.
4308 * config/sparc/nbsdaout.mt: New file.
4309 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4310 * config/sparc/nbsdelf.mt: New file.
4311 * config/sparc/nm-nbsdaout.h: New file.
4312 * config/sparc/nm-nbsdelf.h: Remove.
4313 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4314 * config/sparc/tm-nbsdaout.h: New file.
4315
257ce470
JT
43162002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4317
4318 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4319 mipsnbsd-tdep.c
4320 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4321
76a6d5fe
JT
43222002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4323
4324 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4325 shnbsd-nat.c.
4326 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4327
45888261
JT
43282002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4329
4330 * NEWS: Note new MIPS NetBSD native configuration.
4331 * configure.host (mips*-*-netbsd*): New host.
4332 * configure.tgt (mips*-*-netbsd*): New target.
4333 * mipsnbsd-nat.c: New file.
4334 * mipsnbsd-tdep.c: New file.
4335 * mipsnbsd-tdep.h: New file.
4336 * config/mips/nbsd.mh: New file.
4337 * config/mips/nbsd.mt: New file.
4338 * config/mips/nm-nbsd.h: New file.
4339 * config/mips/tm-nbsd.h: New file.
4340
70f80edf
JT
43412002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4342
4343 * Makefile.in (SFILES): Add osabi.c.
4344 (COMMON_OBS): Add osabi.o.
4345 (osabi.o): New dependency list.
4346 * osabi.c: New file.
4347 * osabi.h: New file.
4348 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4349
4350 * Makefile.in (alpha_tdep_h): Define and use instead of
4351 alpha-tdep.h.
4352 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4353 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4354 Remove.
4355 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4356 * alpha-tdep.h: Include osabi.h.
4357 (alpha_abi): Remove.
4358 (gdbarch_tdep): Use generic OS ABI framework.
4359 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4360 gdbarch_register_osabi.
4361 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4362 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4363 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4364
4365 * Makefile.in (sh_tdep_h): Add osabi.h.
4366 * sh-tdep.h (sh_osabi): Remove.
4367 (gdbarch_tdep): Use generic OS ABI framework.
4368 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4369 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4370 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4371 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4372
4373 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4374 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4375 gdbarch_register_osabi.
4376 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4377 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4378 (get_elfosabi): Rename to...
4379 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4380 ABI framework support routines.
4381 (arm_gdbarch_init): Use generic OS ABI framework.
4382 (arm_dump_tdep): Likewise.
4383 (_initialize_arm_tdep): Likewise.
4384 * arm-tdep.h: Include osabi.h.
4385 (arm_abi): Remove.
4386 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4387 osabi member.
4388 (arm_gdbarch_register_os_abi): Remove prototype.
4389 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4390 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4391
4392 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4393 * mips-tdep.c: Include osabi.h.
4394 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4395 OS ABI framework.
4396
d194345b
KH
43972002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4398
4399 * h8300-tdep.c: Fix formatting.
4400
70c6b0d1
EZ
44012002-05-20 Elena Zannoni <ezannoni@redhat.com>
4402
4403 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4404 printing vector registers.
4405
165b8e33
AC
44062002-05-19 Andrew Cagney <ac131313@redhat.com>
4407
4408 From Fernando Nasser:
4409 * remote.c (remote_async_open_1): Re-throw the exception when the
4410 connection fails.
4411 (remote_cisco_open): Ditto.
4412 (remote_open_1): Ditto.
4413
36918e70
AC
44142002-05-19 Andrew Cagney <ac131313@redhat.com>
4415
4416 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4417 (remote_start_remote): Add uiout parameter. Pass through to
4418 remote_start_remote_dummy.
4419 (remote_open_1): Use catch_exception instead of catch_errors.
4420 (remote_async_open_1): Ditto.
4421 (remote_cisco_open): Ditto.
4422
ae44c0c4
AC
44232002-05-19 Andrew Cagney <ac131313@redhat.com>
4424
4425 * remote.c (remote_start_remote): Replace PTR with void pointer.
4426 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4427 static.
4428
8efe637d
AC
44292002-05-18 Andrew Cagney <ac131313@redhat.com>
4430
4431 * gdb_indent.sh: Allow the script to be run in the sim directory.
4432
2f1b5984
MK
44332002-05-18 Mark Kettenis <kettenis@gnu.org>
4434
f0f625e2
MK
4435 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4436 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4437
2f1b5984
MK
4438 * corelow.c (core_open): Only call set_gdbarch_from_file if
4439 exec_bfd is NULL.
4440
fc974602
AV
44412002-05-17 Andrey Volkov <avolkov@transas.com>
4442
4443 * h8300-tdep.c: Add support of EXR register
4444 * config/h8300/tm-h8300.h: Ditto.
4445
906709f4
AV
44462002-05-17 Andrey Volkov <avolkov@transas.com>
4447
4448 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4449
6e591d68
AV
44502002-05-17 Andrey Volkov <avolkov@transas.com>
4451
4452 * h8300-tdep.c: Change literal regnums to REGNO.
4453
84f0252a
JB
44542002-05-17 Jim Blandy <jimb@redhat.com>
4455
e0e9281e
JB
4456 * NEWS: Note addition of macro support.
4457
84f0252a
JB
4458 Expand preprocessor macros in C expressions.
4459 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4460 (scan_macro_expansion, scanning_macro_expansion,
4461 finished_macro_expansion): New function declarations.
4462 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4463 variable declarations.
4464 * parser-defs.h (expression_context_pc): New declaration.
4465 * parse.c (expression_context_pc): New variable.
4466 (parse_exp_1): Set expression_context_pc, as well as
4467 expression_context_block.
4468 * c-exp.y (yylex): If we're not already reading the result of a
4469 macro expansion, try to macro-expand the next token. When we're
4470 done scanning a macro expansion, switch back to the mainline text.
4471 Commas and `if's in a macro's expansion don't terminate the input.
4472 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4473 (macro_original_text, macro_expanded_text,
4474 expression_macro_lookup_func, expression_macro_lookup_baton): New
4475 variables.
4476 (scan_macro_expansion, scanning_macro_expansion,
4477 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4478 c_preprocess_and_parse): New functions.
4479 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4480 c_preprocess_and_parse, instead of c_parse.
4481 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4482 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4483
1c509ca8
JR
4484Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4485
4486 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4487 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4488 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4489
2250ee0c
CV
44902002-05-17 Corinna Vinschen <vinschen@redhat.com>
4491
4492 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4493
ab3b8126
JT
44942002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4495
4496 * Makefile.in (sh_tdep_h): Define and use.
4497 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4498 register enum): Move to...
4499 * * sh-tdep.h: ...here.
4500 * sh-tdep.c: Include sh-tdep.h.
4501 * sh3-rom.c: Likewise.
4502 * shnbsd-tdep.c: Likewise.
4503
ed9d4749
MS
45042002-05-16 Michael Snyder <msnyder@redhat.com>
4505
4506 * arm-tdep.c: Spelling fix in comment.
4507
2e276125
JB
45082002-05-16 Jim Blandy <jimb@redhat.com>
4509
6821892e
JB
4510 Add commands for manually expanding macros and showing their
4511 definitions.
4512 * macrocmd.c, macroscope.c, macroscope.h: New files.
4513 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4514 (macroscope_h): New variable.
4515 (HFILES_NO_SRCDIR): Add macroscope.h.
4516 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4517 (macroscope.o, macrocmd.o): New rules.
4518
2e276125
JB
4519 Teach the Dwarf 2 reader to read macro information.
4520 * dwarf2read.c: #include "macrotab.h".
4521 (dwarf_macinfo_buffer): New variable.
4522 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4523 dwarf_macinfo_size.
4524 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4525 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4526 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4527 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4528 dwarf2_macro_spaces_in_definition): New complaints.
4529 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4530 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4531 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4532 the partial symbol table.
4533 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4534 from what's recorded in the partial symbol table.
4535 (read_file_scope): If the compilation unit has a
4536 `DW_AT_macro_info' attribute, read its macro information.
4537 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4538
2f53fe6c
DJ
45392002-05-16 Daniel Jacobowitz <drow@mvista.com>
4540
4541 Fix PR gdb/546
4542 * ser-tcp.c: Don't include <netinet/udp.h>.
4543
2be99286
SC
45442002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4545
4546 * MAINTAINERS: Update my email address.
4547
c9af212b 45482002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
4549
4550 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4551 include file of the same name.
4552
bf5f1a52
CV
45532002-05-16 Corinna Vinschen <vinschen@redhat.com>
4554
4555 * configure.tgt: Mark v850 as multi-arched.
4556 * config/v850/tm-v850.h: Remove file.
4557 * config/v850/v850.mt: Eliminate TM_FILE.
4558
435e042a
CV
45592002-05-16 Corinna Vinschen <vinschen@redhat.com>
4560
4561 * v850-tdep.c: Full multi-arch.
4562 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4563 Define GDB_MULTI_ARCH to 2.
4564
9819c6c8
PM
45652002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4566
4567 * p-exp.y (current_type): New static variable.
4568 Carries the type of the expression at the position that is parsed.
4569 (push_current_type, pop_current_type): Two new functions. Used
4570 to store/restore current_type in expression on specific tokens.
c9af212b
RE
4571 (search_field): New static variable. Set to one after parsing a point
4572 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
4573 (FIELDNAME): New token. After a point only a token belonging to
4574 current_type type definition is allowed.
4575 (all over token rules): reset and change current_type according
4576 to rules.
4577 (exp '[' rule): insert implicit array index field if
4578 exp is a pascal string type.
4579
3a06899a
CV
45802002-05-16 Corinna Vinschen <vinschen@redhat.com>
4581
4582 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4583 frame info. Use frame_info's saved_regs instead of matching member
4584 in extra_frame_info throughout.
4585 (v850_frame_init_saved_regs): New function.
4586 (v850_init_extra_frame_info): Move most functionality into
4587 v850_frame_init_saved_regs().
4588 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4589 (v850_frame_find_saved_regs): Remove declaration.
4590 (FRAME_FIND_SAVED_REGS): Remove definition.
4591 (v850_frame_init_saved_regs): Add declaration.
4592 (FRAME_INIT_SAVED_REGS): Add definition.
4593
6ed14b0e
CV
45942002-05-16 Corinna Vinschen <vinschen@redhat.com>
4595
4596 * v850-tdep.c: Begin multi-arch'ing v850.
4597 (v850_target_architecture_hook): Remove function.
4598 (v850_gdbarch_init): New function. Add code previously in
4599 v850_target_architecture_hook().
4600 (_initialize_v850_tdep): Don't set target_architecture_hook.
4601 Call register_gdbarch_init() instead.
4602
42725910
DJ
46032002-05-16 Daniel Jacobowitz <drow@mvista.com>
4604
4605 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4606 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4607 (fixup_class_method_type): Likewise.
4608
0bc68c49
DJ
46092002-05-15 Daniel Jacobowitz <drow@mvista.com>
4610
4611 From Martin Pool <mbp@samba.org>:
4612 * gdbserver/server.c (gdbserver_usage): New function.
4613 (main): Call it.
4614
99d9066e
JB
46152002-05-15 Jim Blandy <jimb@redhat.com>
4616
4617 Add macro structures to GDB's symbol tables. Nobody puts anything
4618 in them yet.
4619 * symtab.h (struct symtab): New member: `macro_table'.
4620 * buildsym.h (pending_macros): New global variable.
4621 * buildsym.c: #include "macrotab.h".
4622 (buildsym_init): Initialize `pending_macros'.
4623 (end_symtab): If we found macro information while reading a CU's
4624 debugging info, do build a symtab structure for it. Make the
4625 symtab point to the macro information, and clear the
4626 `pending_macros' pointer which held it while we were reading the
4627 debug info.
4628 (really_free_pendings): Free any pending macro table.
4629 * objfiles.h (struct objfile): New member: `macro_cache'.
4630 * objfiles.c (allocate_objfile): Set allocate and free functions
4631 for the macro cache's objstack.
4632 (free_objfile): Empty the macro cache's obstack.
4633 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4634 set new allocate and free functions for it.
4635 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4636 free functions for the macro cache's objstack. (Why is this
4637 function building its own objfile?)
4638 * symmisc.c (print_objfile_statistics): Print statistics on the
4639 macro bcache.
4640 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4641
c899585b
RE
46422002-05-15 Richard Earnshaw <rearnsha@arm.com>
4643
4644 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4645 (REGISTER_U_ADDR): Delete definition.
4646 (arm_register_u_addr): Delete declaration.
4647
a6cdd8c5
RE
46482002-05-15 Richard Earnshaw <rearnsha@arm.com>
4649
4650 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4651 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4652
fd3a5ca1
DJ
46532002-05-14 Daniel Jacobowitz <drow@mvista.com>
4654
4655 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
4656 stop_at -> stop_pc.
4657
c97dcfc7
AC
46582002-05-14 Andrew Cagney <ac131313@redhat.com>
4659
4660 * regcache.c (register_valid): Revise comments refering to "Not
4661 available" and "unavailable".
4662 * frame.c (frame_register_read): Ditto.
4663 * findvar.c (value_of_register): Ditto.
4664
93021b7d
AC
46652002-05-15 Andrew Cagney <cagney@redhat.com>
4666
4667 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4668 (remote-sim.o): Update dependencies.
4669 (d10v-tdep.o): Specify dependencies.
4670 (sim_d10v_h): Define.
4671
a86bc61c
JB
46722002-05-14 Jim Blandy <jimb@redhat.com>
4673
4674 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4675 * macrotab.c (macro_lookup_inclusion, find_definition,
4676 new_macro_table): Same.
4677
4678 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4679 not `! strcmp ()'. This is a dubious improvement.
4680 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4681
4682 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4683 although it's not necessary, to avoid a warning.
4684
2fdde8f8
DJ
46852002-05-14 Daniel Jacobowitz <drow@mvista.com>
4686
4687 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4688 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4689 TYPE_INSTANCE_FLAGS.
4690 (struct main_type): New.
4691 (struct type): Move most members to struct main_type. Change
4692 cv_type and as_type to new type_chain member. Add instance_flags.
4693 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4694 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4695 (finish_cv_type): Remove prototype.
4696 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4697 Set TYPE_CHAIN.
4698 (alloc_type_instance): New function.
4699 (smash_type): New function.
4700 (make_pointer_type, make_reference_type, make_function_type)
4701 (smash_to_member_type, smash_to_method_type): Call smash_type.
4702 (make_qualified_type): New function.
4703 (make_type_with_address_space): Call make_qualified_type.
4704 (make_cv_type): Likewise.
4705 (finish_cv_type): Remove unnecessary function.
4706 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4707 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4708 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4709 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4710 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4711 * hpread.c (hpread_read_struct_type): Likewise.
4712 * stabsread.c (read_struct_type): Likewise.
4713
843fedf4
EZ
47142002-05-14 Elena Zannoni <ezannoni@redhat.com>
4715
4716 * configure.tgt: Add a catch all sh* target, for cases like
4717 sh[2,3,4]-elf and sh-hms.
4718
05a6c72c
KS
47192002-05-14 Keith Seitz <keiths@redhat.com>
4720
4721 * event-loop.c (create_file_handler): Don't do anything but
4722 update data when we are given a fd which we are already
4723 monitoring.
4724
5d085aaf
ML
47252002-05-14 Michal Ludvig <mludvig@suse.cz>
4726
4727 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4728 (update_context): Use __func__ in warnings.
4729
9db8d71f
DJ
47302002-05-14 Daniel Jacobowitz <drow@mvista.com>
4731
4732 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4733 and tcp_close to net_open and net_close.
4734 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4735 using UDP if requested. Don't try to disable Nagle on UDP
4736 sockets.
4737 * remote.c (remote_serial_open): New function. Warn about UDP.
4738 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4739
5dbc6baa
EZ
47402002-05-13 Elena Zannoni <ezannoni@redhat.com>
4741
4742 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4743
cc3023f7
EZ
47442002-05-13 Elena Zannoni <ezannoni@redhat.com>
4745
4746 * configure.tgt: Remove sh-hms target.
4747 * MAINTAINERS: Don't list sh-hms as a separate target.
4748
ec2bcbe7
JB
47492002-05-13 Jim Blandy <jimb@redhat.com>
4750
4751 Add first preprocessor macro-expansion files.
4752 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4753 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4754 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4755 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4756 (COMMON_OBS): Add macrotab.o, macroexp.o.
4757 (macroexp.o, macrotab.o): New rules.
4758
6d531722
AC
47592002-05-13 Andrew Cagney <ac131313@redhat.com>
4760
4761 * config/m88k/tm-m88k.h: Update copyright.
4762 (m88k_target_write_pc): Declare
4763 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4764 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4765 (SHIFT_INST_REGS): Update definition.
4766 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4767 using old definition of TARGET_WRITE_PC.
4768 * regcache.c (generic_target_write_pc): Delete code handling
4769 NNPC_REGNUM.
4770 * gdbarch.sh (NNPC_REGNUM): Delete.
4771 * gdbarch.h, gdbarch.c: Regenerate.
4772
3e3f2739
RE
47732002-05-13 Richard Earnshaw <rearnsha@arm.com>
4774
4775 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4776 builtin reg number.
4777
0004e5a2
DJ
47782002-05-13 Daniel Jacobowitz <drow@mvista.com>
4779
4780 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4781 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4782 (gen_address_of, gen_struct_ref, gen_repeat): Use type
4783 access macros.
4784 * c-typeprint.c (cp_type_print_method_args): Likewise.
4785 (c_type_print_args): Likewise.
4786 * d10v-tdep.c (d10v_push_arguments): Likewise.
4787 (d10v_extract_return_value): Likewise.
4788 * expprint.c (print_subexp): Likewise.
4789 * gdbtypes.c (lookup_primitive_typename): Likewise.
4790 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4791 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4792 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4793 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4794 (TYPE_VECTOR): Likewise.
4795 * hpread.c (hpread_read_struct_type)
4796 (fix_static_member_physnames, fixup_class_method_type)
4797 (hpread_type_lookup): Likewise.
4798 * mdebugread.c (parse_symbol, parse_type): Likewise.
4799 * p-lang.c (is_pascal_string_type): Likewise.
4800 * valops.c (hand_function_call): Likewise.
4801 * x86-64-tdep.c (classify_argument): Likewise.
4802
4803 * hpread.c (hpread_read_function_type)
4804 (hpread_read_doc_function_type): Call replace_type.
4805 * dstread.c (create_new_type): Delete.
4806 (decode_dst_structure, process_dst_function): Call alloc_type.
4807 Use type access macros.
4808
dff95cc7
MK
48092002-05-12 Mark Kettenis <kettenis@gnu.org>
4810
4811 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4812 the're not supported by the current architecture.
4813 (i387_fill_fxsave): Likewise.
4814
bbcd32ad
FF
48152002-05-12 Fred Fish <fnf@redhat.com>
4816
4817 * symfile.c (default_symfile_offsets): Arrange for uninitialized
4818 sect_index_xxx members to index the first slot in section_offsets
4819 if all of the section_offsets are zero.
4820
89cf4787
MK
48212002-05-12 Mark Kettenis <kettenis@gnu.org>
4822
4823 * configure.tgt (sparc-*openbsd): Remove entry accidentially
4824 checked in with last change.
4825
1f77ffc5
MK
48262002-05-12 Mark Kettenis <kettenis@gnu.org>
4827
4828 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
4829 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
4830 config.sub.
4831
89b8b4a9
DJ
48322002-05-12 Daniel Jacobowitz <drow@mvista.com>
4833
4834 * Makefile.in: Update dependencies.
4835
14a5e767
AC
48362002-05-11 Andrew Cagney <ac131313@redhat.com>
4837
4838 * language.c (local_hex_string_custom): Simplify. Do not depend
4839 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
4840
4841 * memattr.c (mem_info_command): Replace calls to
4842 longest_local_hex_string and longest_local_hex_string_custom.
4843 * buildsym.c (make_blockvector): Ditto.
4844 * solib.c (info_sharedlibrary_command): Ditto.
4845 * tracepoint.c (tracepoints_info): Ditto.
4846 * symtab.c (print_msymbol_info): Ditto.
4847
4848 * language.c (local_hex_string): Delete.
4849 (local_hex_string_custom): Delete.
4850 (longest_local_hex_string): Rename to local_hex_string.
4851 (longest_local_hex_string_custom): Rename to
4852 local_hex_string_custom.
4853 * language.h (local_hex_string): Change parameter type to LONGEST.
4854 (local_hex_string_custom): Ditto.
4855 (longest_local_hex_string): Delete declaration.
4856 (longest_local_hex_string_custom): Ditto.
4857
4858 * solib.c: Update copyright.
4859 * memattr.c: Update copyright.
4860
13d01224
AC
48612002-05-11 Andrew Cagney <ac131313@redhat.com>
4862
4863 * arch-utils.h (legacy_register_to_value): Declare.
4864 (legacy_value_to_register): Declare.
4865 (legacy_convert_register_p): Declare.
4866 * arch-utils.c (legacy_register_to_value): New function.
4867 (legacy_value_to_register): New function.
4868 (legacy_convert_register_p): New function.
4869
4870 * gdbarch.sh (REGISTER_TO_VALUE): Define.
4871 (VALUE_TO_REGISTER): Define.
4872 (CONVERT_REGISTER_P): Define.
4873 * gdbarch.h, gdbarch.c: Regenerate.
4874
4875 * valops.c (value_assign): Use CONVERT_REGISTER_P and
4876 VALUE_TO_REGISTER.
4877 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
4878 CONVERT_REGISTER_P.
4879
4a1970e4
DJ
48802005-05-11 Daniel Jacobowitz <drow@mvista.com>
4881 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4882
4883 * Makefile.in: Update dependencies for valops.c.
4884 * valops.c: Include "gdb_assert.h".
4885 (typecmp): Skip THIS parameter to methods.
4886 (find_method_list): Remove static_memfuncp argument,
4887 update callers. Check for stub methods.
4888 (find_value_oload_method_list): Don't set *static_memfuncp.
4889 (find_overload_match): Don't check for stub methods. Assert
4890 that methods are not stubbed. Handle static methods.
4891 (value_find_oload_method_list): Remove static_memfuncp argument.
4892 * gdbtypes.c (check_stub_method): Do not add THIS pointer
4893 to the argument list for static stub methods.
4894 * value.h (value_find_oload_method_list): Update prototype.
4895
b2e75d78
AC
48962002-05-11 Andrew Cagney <ac131313@redhat.com>
4897
4898 * arch-utils.h (generic_register_size): Declare.
4899 (generic_register_raw_size, generic_register_virtual_size): Delete
4900 declarations.
4901 * arch-utils.c (generic_register_raw_size): Delete.
4902 (generic_register_size): New function.
4903 (generic_register_virtual_size): Delete.
4904
4905 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
4906 default generic_register_size.
4907 * gdbarch.h, gdbarch.c: Re-generate.
4908
4909 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
4910 register_virtual_size.
4911 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
4912 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4913
451fbdda
AC
49142002-05-11 Andrew Cagney <ac131313@redhat.com>
4915
4916 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
4917 * gdbarch.h, gdbarch.c: Regenerate.
4918 * gnu-v3-abi.c: Update copyright.
4919 (vtable_address_point_offset): Update.
4920 (gnuv3_rtti_type): Update.
4921 (gnuv3_baseclass_offset): Update.
4922 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
4923 (init_fetch_link_map_offsets): Update.
4924 * remote.c (get_remote_state): Update.
4925
6d2f5cea
DJ
49262002-05-11 Daniel Jacobowitz <drow@mvista.com>
4927
4928 * TODO: Remove value_headof/value_from_vtable_info comment.
4929 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
4930 * values.c (value_headof, value_from_vtable_info): Delete.
4931 * value.h (value_from_vtable_info): Delete prototype.
4932
d2324da4
AC
49332002-05-11 Andrew Cagney <ac131313@redhat.com>
4934
4935 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
4936 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
4937 $(gdb_regex_h).
4938 (gdb_assert_h): Define.
4939 (gdb_wait_h): Define.
4940 (gdb_regex_h): Define.
4941
5c717440
DJ
49422002-05-11 Daniel Jacobowitz <drow@mvista.com>
4943
4944 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
4945 * linespec.c (find_methods): Handle GCC 3.x template constructors.
4946
6c7861b3
JT
49472002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4948
4949 * nbsd-tdep.c: Fix comment.
4950
ea5bc2a6
JT
49512002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4952
4953 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
4954 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
4955 (nbsd-tdep.o): New dependency list.
4956 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
4957 nbsd-tdep.h.
4958 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
4959 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
4960 * nbsd-tdep.c: New file.
4961 * nbsd-tdep.h: New file.
4962 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
4963 nbsd-tdep.h.
4964 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
4965 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4966 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4967 * config/sh/nbsd.mt (TDEPFILES): Ditto.
4968
b28da865
JT
49692002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4970
4971 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
4972 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
4973 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
4974 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
4975 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
4976 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
4977
4b8ff1fa
JT
49782002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4979
4980 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
4981 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4982 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
4983 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
4984 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
4985 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
4986 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
4987
dfe6eb1f
JT
49882002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4989
4990 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
4991 fetch_elfcore_registers to...
4992 * i386nbsd-tdep.c: ...here.
4993 (i386nbsd_use_struct_convention): Rename to...
4994 (i386nbsd_aout_use_struct_convention): ...this.
4995 (i386nbsd_supply_reg): New function.
4996 (i386nbsd_fill_reg): New function.
4997 (fetch_core_registers): Use i386nbsd_supply_reg.
4998 (fetch_elfcore_registers): Likewise.
4999 (_initialize_i386nbsd_tdep): New function.
5000 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5001 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5002 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5003 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5004 (i386nbsd_aout_use_struct_convention): ...this.
5005
20cb8cda
JT
50062002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5007
5008 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5009 (store_inferior_registers): Use shnbsd_fill_reg.
5010 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5011 sh_nbsd_supply_register): Collapse into...
5012 (shnbsd_supply_reg): ...this.
5013 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5014 (shnbsd_fill_reg): ...this.
5015 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5016 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5017 (fetch_core_registers): Use shnbsd_supply_reg.
5018 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5019 (sh_nbsd_core_fns): Rename to...
5020 (shnbsd_core_fns): ...this.
5021 (sh_nbsd_elfcore_fns): Rename to...
5022 (shnbsd_elfcore_fns): ...this.
5023 (sh_nbsd_init_abi): Rename to...
5024 (shnbsd_init_abi): ...this.
5025 (_initialize_sh_nbsd_tdep): Rename to...
5026 (_initialize_shnbsd_tdep): ...this.
5027 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5028 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5029 sh_nbsd_fill_register): Remove prototypes.
5030 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5031
e750d25e
JT
50322002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5033
5034 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5035 (i387-nat.o): Delete dependency list.
5036 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5037 (x86-64-linux-nat.o): Likewise.
5038 * i387-nat.c: Delete file, moving contents to...
5039 * i387-tdep.c: ...here.
5040 * i387-nat.h: Rename...
5041 * i387-tdep.h: ...to this.
5042 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5043 * i386-linux-nat.c: Likewise.
5044 * i386bsd-nat.c: Likewise.
5045 * i386gnu-nat.c: Likewise.
5046 * i386nbsd-nat.c: Likewise.
5047 * i386v4-nat.c: Likewise.
5048 * x86-64-linux-nat.c: Likewise.
5049 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5050 * config/i386/go32.mh (NATDEPFILES): Likewise.
5051 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5052 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5053 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5054 * config/i386/linux.mh (NATDEPFILES): Likewise.
5055 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5056 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5057 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5058 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5059
1aee598a
JT
50602002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5061
5062 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5063 (alphanbsd-nat.o): Remove dependency list.
5064 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5065 * alphanbsd-nat.c: Delete. Contents moved to...
5066 * alphanbsd-tdep.c: ...here.
5067 (_initialize_alphanbsd_tdep): Register core functions.
5068 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5069
12bcb0fe
JT
50702002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5071
5072 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5073 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5074 (alphanbsd-nat.o): Likewise.
5075 (alphabsd-tdep.o): New dependency list.
5076 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5077 (fill_gregset): Use alphabsd_fill_reg.
5078 (supply_fpregset): Use alphabsd_supply_fpreg.
5079 (fill_fpregset): Use alphabsd_fill_fpreg.
5080 (fetch_inferior_registers): Use struct reg and struct fpreg
5081 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5082 and alphabsd_supply_fpreg.
5083 (store_inferior_registers): Use struct reg and struct fpreg
5084 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5085 and alphabsd_fill_fpreg.
5086 * alphabsd-tdep.c: New file.
5087 * alphabsd-tdep.h: New file.
5088 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5089 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5090 alphabsd_supply_fpreg.
5091 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5092 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5093
361d1df0
EC
50942002-05-11 Eric Christopher <echristo@redhat.com>
5095
5096 * mips-tdep.c (mips_double_register_type): Fix thinko.
5097 (mips_single_register_type): Ditto.
5098 * MAINTAINERS: Add self.
5099
92dd7cee
MK
51002002-05-11 Mark Kettenis <kettenis@gnu.org>
5101
5102 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5103 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5104 right thing on architectures with different endianness and/or
5105 integer sizes.
5106
e27da16d
JT
51072002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5108
5109 From Christian Limpach <chris@Pin.LU>
5110 * configure.in: Change sed expression which comments out
5111 NATDEPFILES to also comment out continuation lines.
5112 * configure: Regenerate.
5113
ddde02bd
EZ
51142002-05-10 Elena Zannoni <ezannoni@redhat.com>
5115
5116 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5117 big patch.
5118
1c922164
EZ
51192002-05-10 Elena Zannoni <ezannoni@redhat.com>
5120
5121 * sh-tdep.c: Include correct file.
5122
283150cd
EZ
51232002-05-10 Elena Zannoni <ezannoni@redhat.com>
5124
5125 New support for sh64-elf (sh5) target.
5126
5127 * configure.tgt: For sh64-elf target, default to sh-elf.
5128
5129 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5130 (struct gdbarch_tdep): Add new fields for new registers and ABI
5131 info.
361d1df0 5132
283150cd
EZ
5133 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5134 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5135 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5136 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5137 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5138 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5139 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5140 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5141 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5142 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5143 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5144 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5145 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5146 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5147 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5148 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5149 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5150 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5151 sign_extend, sh64_nofp_frame_init_saved_regs,
5152 sh64_init_extra_frame_info, sh64_get_saved_register,
5153 sh64_extract_struct_value_address, sh64_pop_frame,
5154 sh64_push_arguments, sh64_extract_return_value,
5155 sh64_store_return_value, sh64_show_media_regs,
5156 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5157 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5158 sh_sh64_register_virtual_type,
5159 sh_sh64_register_convert_to_virtual,
5160 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5161 sh64_register_read, sh64_pseudo_register_write,
5162 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5163 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5164 sh64_do_pseudo_register, sh_compact_do_registers_info,
5165 sh64_do_registers_info, sh_gdbarch_init): New functions.
5166
3117ed25
EZ
51672002-05-10 Elena Zannoni <ezannoni@redhat.com>
5168
5169 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5170
2654e6d4
DJ
51712002-05-10 Daniel Jacobowitz <drow@mvista.com>
5172
5173 * linespec.c (decode_line_1): Check for a double quote after
5174 a filename correctly.
5175
9ab3e532
JB
51762002-05-10 Jim Blandy <jimb@redhat.com>
5177
5178 Properly track the size of the current objfile's .debug_line section.
5179 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5180 (DWARF_LINE_SIZE): New macro.
5181 (dwarf2_build_psymtabs_hard): Record the line section's size in
5182 the partial symbol table.
5183 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5184 symbol table.
5185
126fa72d
PS
51862002-05-10 Petr Sorfa <petrs@caldera.com>
5187
5188 * ia64-tdep.c: Handle breakpoints on L instruction type
5189 in MLX instruction bundle by moving the breakpoint to
5190 the third slot (X instruction type) as L holds only data.
5191
1f077a3e
KB
51922002-05-10 Kevin Buettner <kevinb@redhat.com>
5193
5194 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5195 (process_one_symbol): Complain about discarding local symbols
5196 due to a misplaced N_LBRAC entry.
5197
8120c9d5 51982002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
5199
5200 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
5201 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5202 decrease the depth we are at, in the case of templates.
361d1df0 5203
67b2c998
DJ
52042002-05-09 Daniel Jacobowitz <drow@mvista.com>
5205
5206 * mips-tdep.c (mips_float_register_type): New function.
5207 (mips_double_register_type): New function.
5208 (mips_print_register): Use them.
5209 (do_fp_register_row): Likewise.
5210
fd326606
DJ
52112002-05-09 Daniel Jacobowitz <drow@mvista.com>
5212
6609d9af 5213 * signals/signals.c (signals): Remove conditional compilation around
fd326606 5214 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 5215 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 5216
bef35864
MS
52172002-05-09 Michael Snyder <msnyder@redhat.com>
5218
5219 * remote-rdp.c (remote_rdp_can_run): Remove.
5220
c55a3f73
TT
52212002-05-09 Tom Tromey <tromey@redhat.com>
5222
5223 * jv-valprint.c (java_val_print): Handle `char' as a special case
5224 of TYPE_CODE_INT.
5225
b8d5e71d
MS
52262002-05-09 Michael Snyder <msnyder@redhat.com>
5227
5228 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5229 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 5230 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 5231 str r(0123),[sp,#nn].
361d1df0 5232 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
5233 order-independent by placing it in a loop.
5234
e2cd42dd
MS
52352002-05-06 Michael Snyder <msnyder@redhat.com>
5236
5237 * stabsread.c (read_type): Add recognition for new attribute:
5238 "@V;" means that an array type is actually a vector.
5239 This is analogous to the vector flag that's been added to dwarf2.
5240
3ce1502b
MK
52412002-05-09 Mark Kettenis <kettenis@gnu.org>
5242
5243 * i386-tdep.h (i386_abi): New enum.
5244 (struct gdbarch_tdep): Replace os_ident member with abi.
5245 (i386_gdbarch_register_os_abi): New prototype.
5246 * i386-tdep.c (i386_abi_names): New array.
5247 (process_note_abi_tag_sections): Removed.
5248 (process_note_sections): New function.
5249 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5250 (struct i386_abi_handler): New struct.
5251 (i386_abi_handler_list): New variable.
5252 (i386_gdbarch_register_os_abi): New function.
5253 (i386_gdbarch_init): Adapt for the changes given above.
5254
084c156a
DJ
52552002-05-08 Daniel Jacobowitz <drow@mvista.com>
5256
5257 * gregset.h: Say "GNU/Linux".
5258
6599f021
EZ
52592002-05-08 Elena Zannoni <ezannoni@redhat.com>
5260
5261 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5262 (build_gdbtypes): Build builtin_type_v2_float.
5263 (_initialize_gdbtypes): Register new builtin type.
5264
40af4b0c
AC
52652002-05-08 Andrew Cagney <ac131313@redhat.com>
5266
5267 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5268 (clear_gdbarch_swap): New function.
5269 (initialize_non_multiarch): Call.
5270 (gdbarch_update_p): Before calling init(), swap out and clear the
5271 existing architecture.
5272 * gdbarch.c: Regenerate.
5273
4fe84f46
JT
52742002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5275
5276 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5277 alphanbsd-tdep.c.
5278
4015edd1
JT
52792002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5280
5281 * sh-nbsd-nat.c: Rename to...
5282 * shnbsd-nat.c: ...this.
5283 * sh-nbsd-tdep.c: Rename to...
5284 * shnbsd-tdep.c: ...this.
5285 * sh-nbsd-tdep.h: Rename to...
5286 * shnbsd-tdep.h: ...this.
5287 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5288 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5289
0e2bd219
RE
52902002-05-08 Richard Earnshaw <rearnsha@arm.com>
5291
5292 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5293 concatenation for command help messages.
5294
13a38d45
JT
52952002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5296
5297 * NEWS: Note new sh*-*-netbsdelf* configuration.
5298 * configure.host: Set gdb_host_cpu to sh for all sh*.
5299 (sh*-*-netbsdelf*): New host.
5300 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5301 (sh*-*-netbsdelf*): New target.
5302 * sh-nbsd-nat.c: New file.
5303 * sh-nbsd-tdep.c: New file.
5304 * sh-nbsd-tdep.h: New file.
5305 * config/sh/nbsd.mh: New file.
5306 * config/sh/nbsd.mt: New file.
5307 * config/sh/nm-nbsd.h: New file.
5308 * config/sh/tm-nbsd.h: New file.
5309
d658f924
JT
53102002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5311
5312 * sh-tdep.c (sh_osabi_names): Declare.
5313 (process_note_abi_tag_sections): New function.
5314 (get_elfosabi): Ditto.
5315 (sh_gdbarch_register_os_abi): Ditto.
5316 (sh_dump_tdep): Ditto.
5317 _initialize_sh_tdep): Use gdbarch_register to register
5318 sh_gdbarch_init and sh_dump_tdep.
5319 * config/sh/tm-sh.h (sh_osabi): Declare.
5320 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5321
848cfffb
AC
53222002-05-07 Andrew Cagney <ac131313@redhat.com>
5323
5324 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5325 (thumb_scan_prologue): Ditto.
5326 (arm_find_callers_reg): Ditto.
5327 (arm_frame_chain): Ditto.
5328 (arm_init_extra_frame_info): Ditto.
5329 (arm_frame_saved_pc): Ditto.
5330 (arm_pop_frame): Ditto.
5331 (arm_push_return_address): New function.
5332 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5333 call_dummy_location, call_dummy_breakpoint_offset_p,
5334 call_dummy_breakpoint_offset, call_dummy_p,
5335 call_dummy_stack_adjust_p, call_dummy_words,
5336 sizeof_call_dummy_words, call_dummy_start_offset,
5337 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5338 call_dummy_address, push_return_address and push_dummy_frame for
5339 generic dummy frames.
5340
e7d717c0
JT
53412002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5342
5343 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5344 size computation for alloca.
5345 (sh_fp_frame_init_saved_regs): Likewise.
5346
7bbcf283
RE
53472002-05-07 Richard Earnshaw <rearnsha@arm.com>
5348
5349 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5350 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 5351 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
5352 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5353 * remote-rdp.c (remote_rdp_fetch_register): Use
5354 ARM_MAX_REGISTER_RAW_SIZE.
5355 (remote_rdp_store_register): Likewise.
5356
4657573b
ML
53572002-05-07 Michal Ludvig <mludvig@suse.cz>
5358
361d1df0 5359 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
5360 added default labels to switch {} statements.
5361 * x86-64-tdep.c: Ditto.
5362 * x86-64-linux-nat.c: Ditto.
5363
010f3b2f
JT
53642002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5365
5366 * solib.h: Protect against multiple inclusion.
5367
debd256d
JB
53682002-05-06 Jim Blandy <jimb@redhat.com>
5369
9ab3e532
JB
5370 Add first preprocessor macro-expansion files.
5371 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5372 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5373 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5374 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5375 (COMMON_OBS): Add macrotab.o, macroexp.o.
5376 (macroexp.o, macrotab.o): New rules.
5377
debd256d
JB
5378 Separate the job of reading the line number info statement program
5379 header (...expialidocious) out into its own function.
5380 * dwarf2read.c (struct line_head, struct filenames, struct
5381 directories): Replace with...
5382 (struct line_header): New structure, containing the full
5383 contents of the statement program header, including the
5384 include directory and file name tables.
5385 (read_file_scope): If we have line number info, instead of just
5386 calling dwarf_decode_lines to do all the work, call
5387 dwarf_decode_line_header first to get a `struct line_header'
5388 containing the data in the statement program header, and then
5389 pass that to dwarf_decode_lines, which will pick up where that
5390 left off. Be sure to clean up the `struct line_header' object.
5391 (dwarf_decode_line_header, free_line_header, add_include_dir,
5392 add_file_name): New functions.
5393 (dwarf_decode_lines): Move all the code to read the statement
5394 program header into dwarf_decode_line_header. Take the line
5395 header it built as the first argument, instead of the offset to
5396 the compilation unit's line number info. Use the new `struct
5397 line_header' type instead of the old structures. No need to do
5398 cleanups here now, since we don't allocate anything.
5399 (dwarf2_statement_list_fits_in_line_number_section,
5400 dwarf2_line_header_too_long): New complaints.
5401
ac3aafc7
EZ
54022002-05-06 Elena Zannoni <ezannoni@redhat.com>
5403
5404 * gdbtypes.c (init_vector_type): New function.
5405 (build_builtin_type_vec128): Simplify the representation of SIMD
5406 registers.
5407 (build_gdbtypes): Initialize new builtin vector types.
5408 (_initialize_gdbtypes): Register new vector types with gdbarch.
5409 (builtin_type_v4_float, builtin_type_v4_int32,
5410 builtin_type_v8_int16, builtin_type_v16_int8,
5411 builtin_type_v2_int32, builtin_type_v4_int16,
5412 builtin_type_v8_int8): New (renamed) SIMD types.
5413
13e49980
MK
54142002-05-06 Mark Kettenis <kettenis@gnu.org>
5415
5416 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5417 (i387_fill_fxsave): Likewise.
5418
997b20b8
AO
54192002-05-05 Alexandre Oliva <aoliva@redhat.com>
5420
5421 * alpha-tdep.c (alpha_extract_return_value): Don't use
5422 non-constant array size in prototype.
5423
535c96ce
AC
54242002-05-04 Andrew Cagney <ac131313@redhat.com>
5425
5426 From Brian Taylor <briant at model dot com>:
5427 * ui-out.c (ui_out_field_core_addr): Use the function
5428 longest_local_hex_string_custom'to format addresses > 32 bits
5429 wide.
5430
5431 * ui-out.c (ui_out_field_core_addr): Update comment.
5432
bedfa57b
AC
54332002-05-04 Andrew Cagney <ac131313@redhat.com>
5434
5435 * stack.c (select_and_print_frame): Make static. Delete the
5436 parameter `level'.
5437 (func_command): Update call.
5438 (select_frame_command): Delete code computing the frame level.
5439 * frame.h (select_and_print_frame): Delete declaration.
5440
f621c63e
AC
54412002-05-04 Andrew Cagney <ac131313@redhat.com>
5442
5443 * sparc-tdep.c (sparc_get_saved_register): Comment why
5444 get_prev_frame call is safe.
5445
0f7d239c
AC
54462002-05-04 Andrew Cagney <ac131313@redhat.com>
5447
5448 * frame.h (select_frame): Delete level parameter.
5449 * stack.c (select_frame): Update. Use frame_relative_level to
5450 obtain the frame's level.
5451 (select_and_print_frame): Update call.
5452 (select_frame_command): Ditto.
5453 (up_silently_base): Ditto.
5454 (down_silently_base): Ditto.
5455 * ocd.c (ocd_start_remote): Ditto.
5456 * remote-rdp.c (remote_rdp_open): Ditto.
5457 * remote-mips.c (mips_initialize): Ditto.
5458 (common_open): Ditto.
5459 * remote-e7000.c (e7000_start_remote): Ditto.
5460 * m3-nat.c (select_thread): Ditto.
5461 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5462 (child_get_current_exception_event): Ditto.
5463 * varobj.c (varobj_create): Ditto.
5464 (varobj_update): Ditto.
5465 (c_value_of_root): Ditto.
5466 * tracepoint.c (finish_tfind_command): Ditto.
5467 * corelow.c (core_open): Ditto.
5468 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5469 * thread.c (info_threads_command): Ditto.
5470 (switch_to_thread): Ditto.
5471 * infrun.c (normal_stop): Ditto.
5472 (restore_selected_frame): Ditto.
5473 (restore_inferior_status): Ditto.
5474 * breakpoint.c (insert_breakpoints): Ditto.
5475 (watchpoint_check): Ditto.
5476 (bpstat_stop_status): Ditto.
5477 (do_enable_breakpoint): Ditto.
5478 * blockframe.c (flush_cached_frames): Ditto.
5479 (reinit_frame_cache): Ditto.
5480
71d6c7b1
AC
54812002-05-04 Andrew Cagney <ac131313@redhat.com>
5482
5483 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5484 maintainer.
5485
cda6c68a
JB
54862002-05-04 Jim Blandy <jimb@redhat.com>
5487
5488 * gdbtypes.c (replace_type): Doc fix.
5489
5c1c87f0
AC
54902002-05-04 Andrew Cagney <ac131313@redhat.com>
5491
5492 * valprint.c (strcat_longest): Delete commented out function.
5493 Update copyright.
5494
cd9bfe15
AC
54952002-05-04 Andrew Cagney <ac131313@redhat.com>
5496
5497 * MAINTAINERS: Mark a29k as deleted.
5498 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5499 Move new configurations to the top.
5500 * configure.tgt: Remove a29k.
5501 * config/a29k/tm-vx29k.h: Delete.
5502 * config/a29k/vx29k.mt: Delete.
5503 * config/a29k/tm-a29k.h: Delete.
5504 * config/a29k/a29k-udi.mt: Delete.
5505 * config/a29k/a29k.mt: Delete.
5506 * a29k-tdep.c: Delete.
5507 * remote-udi.c: Delete.
5508 * remote-mm.c: Delete.
5509 * remote-eb.c: Delete.
5510 * remote-adapt.c: Delete.
5511 * Makefile.in: Remove obsolete code.
5512 * gdbserver/Makefile.in: Ditto.
5513 * config/s390/s390x.mt: Ditto.
5514 * config/s390/s390.mt: Ditto.
5515 * config/sparc/sparclynx.mh: Ditto.
5516 * config/sparc/linux.mh: Ditto.
5517 * config/pa/hppaosf.mh: Ditto.
5518 * config/pa/hppabsd.mh: Ditto.
5519 * config/ns32k/nbsd.mt: Ditto.
5520 * config/mips/vr5000.mt: Ditto.
5521 * config/m68k/sun3os4.mh: Ditto.
5522 * config/m68k/nbsd.mt: Ditto.
5523 * config/m68k/m68klynx.mh: Ditto.
5524 * config/m32r/m32r.mt: Ditto.
5525 * config/i386/x86-64linux.mt: Ditto.
5526 * config/i386/nbsdelf.mt: Ditto.
5527 * config/i386/nbsd.mt: Ditto.
5528 * config/i386/i386lynx.mh: Ditto.
5529
bf0c5130
AC
55302002-05-04 Andrew Cagney <ac131313@redhat.com>
5531
5532 * target.c (debug_print_register): New function. Handle oversize
5533 registers.
5534 (debug_to_fetch_registers): Call.
5535 (debug_to_store_registers): Call.
5536
2ae1c2d2
JB
55372002-05-03 Jim Blandy <jimb@redhat.com>
5538
13a393b0
JB
5539 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5540 (read_type): Doc fix.
5541 * gdbtypes.c (replace_type): Doc fix.
5542
2ae1c2d2
JB
5543 * stabsread.c (multiply_defined_struct): New complaint.
5544 (read_struct_type): If the type we were passed isn't empty, or
5545 incomplete, don't read the new struct type into it; complain,
5546 and return the original type unchanged. Take a new `type_code'
5547 argument, which is the type code for the new type.
5548 (read_type): Rather than storing the type's type code here, pass
5549 it as an argument to read_struct_type, and let that take care of
5550 storing it. That way, we don't overwrite the original type code,
5551 so read_struct_type can use it to decide whether we're overwriting
5552 something we shouldn't.
5553 (complain_about_struct_wipeout): New function.
5554
8de9bdc4
AC
55552002-05-03 Andrew Cagney <ac131313@redhat.com>
5556
5557 * gdbarch.sh: Assert that gdbarch is non-NULL.
5558 * gdbarch.c: Regenerate.
5559
f773fdbb
JM
55602002-05-03 Jason Merrill <jason@redhat.com>
5561
5562 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5563 and return NULL.
5564
0e04a514
ML
55652002-05-03 Michal Ludvig <mludvig@suse.cz>
5566
5567 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5568 (x86_64_dwarf2gdb_regno_map_length),
5569 (x86_64_dwarf2_reg_to_regnum): Added.
5570 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5571 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5572 (_initialize_x86_64_tdep): Synced with the change above.
5573 (x86_64_skip_prologue): Reformulated message.
5574
065432a8
PM
55752002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5576
5577 * f-exp.y: Also use new prev_lexptr variable
5578 to improve error reporting. Based on Michael Snyder
5579 2002-04-24 dated patch to c-exp.y.
5580 * jv-exp.y: Likewise.
5581 * m2-exp.y: Likewise.
5582
a3162708
EZ
55832002-05-02 Elena Zannoni <ezannoni@redhat.com>
5584
5585 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5586 we are dealing with vectors.
5587
03620c38
PM
55882002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5589
5590 * config/m68k/tm-nbsd.h: Obvious fix,
5591 correct machine name.
5592
6604db2e
PM
55932002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5594
5595 * p-typeprint.c (pascal_type_print_base): Add support
5596 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5597
0906b739
PM
55982002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5599
5600 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5601 for fondamental pascal 'char' type.
5602
e2625b33
PM
56032002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5604
5605 * p-lang.h (is_pascal_string_type): Declaration changed,
5606 new sixth argument of type char ** added.
361d1df0 5607 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
5608 changed. Args length_pos, length_size, string_pos, char_size
5609 can now be NULL. New argument arrayname set to the field
5610 name of the char array. Return value set to char array
5611 field index plus one.
361d1df0 5612 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
5613 is_pascal_string_type function.
5614
cf17c188
AC
56152002-05-02 Andrew Cagney <cagney@redhat.com>
5616
5617 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5618 <cagney@redhat.com> change.
5619 * gdbarch.c: Regenerate.
5620
52bca491
AC
56212002-05-02 Andrew Cagney <cagney@redhat.com>
5622
5623 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5624 before probing for a new one. Detect errorenous gdbarch_init
5625 functions.
5626 * gdbarch.c: Regenerate.
5627
d5e72505
AC
56282002-05-01 Andrew Cagney <cagney@redhat.com>
5629
5630 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5631 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5632 * config/v850/tm-v850.h: Ditto. Update copyright.
5633
af566d9f
AC
56342002-04-30 Andrew Cagney <ac131313@redhat.com>
5635
5636 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5637 current_gdbarch.
5638
880d85fa
MS
56392002-04-30 Michael Snyder <msnyder@redhat.com>
5640
94c30b78
MS
5641 * arm-tdep.c: Whitespace clean-ups.
5642 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
5643 should have been removed as part of 4/24 change.
5644
6f5987a6
KB
56452002-04-30 Kevin Buettner <kevinb@redhat.com>
5646
5647 * rs6000-tdep.c: Added comment describing how fpscr register
5648 numbers were chosen.
5649
1a113c93
MS
56502002-04-30 Michael Snyder <msnyder@redhat.com>
5651
5652 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5653
9a6f53fe
EZ
56542002-04-29 Elena Zannoni <ezannoni@redhat.com>
5655
5656 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5657 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5658 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5659
11ed25ac
KB
56602002-04-29 Kevin Buettner <kevinb@redhat.com>
5661
5662 From Louis Hamilton <hamilton@redhat.com>:
5663 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5664 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5665 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5666 not bfd-private xcoff data, to determine wordsize.
5667 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5668
ae232405
AC
56692002-04-29 Andrew Cagney <ac131313@redhat.com>
5670
5671 GDB 5.2 released from 5.2 branch.
5672
91fd20f7
ML
56732002-04-29 Michal Ludvig <mludvig@suse.cz>
5674
5675 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5676 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5677 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 5678
2dc5091b
EZ
56792002-04-29 Elena Zannoni <ezannoni@redhat.com>
5680
5681 * rs6000-tdep.c (rs6000_extract_return_value,
5682 rs6000_store_return_value): Handle returning vectors.
5683 (rs6000_gdbarch_init): Use
5684 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5685 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5686 New function.
5687 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5688 vectors.
5689 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5690 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 5691
2b9848d8
PM
56922002-04-24 Pierre Muller <ics.u-strasbg.fr>
5693
5694 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 5695 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
5696 with fprintf_unfiltered (gdb_stderr,...).
5697
f8d17dc5
PM
56982002-04-24 Pierre Muller <ics.u-strasbg.fr>
5699
5700 * remote-array.c (printf_monitor, write_monitor,
361d1df0 5701 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
5702 Replace fprintf (stderr,...
5703 with fprintf_unfiltered (gdb_stderr,....
5704 * remote-es.c: Likewise.
5705 * remote-os9k.c: Likewise.
5706 * remote-st.c: Likewise.
5707
2f2f1ad1
AS
57082002-04-28 Andreas Schwab <schwab@suse.de>
5709
5710 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5711 linux-proc.o and gcore.o.
5712
b6779aa2
AC
57132002-04-26 Michal Ludvig <mludvig@suse.cz>
5714
5715 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5716 code without frame pointers.
5717
7e57f5f4
AC
57182002-04-26 Andrew Cagney <ac131313@redhat.com>
5719
5720 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5721 ON_STACK is needed.
5722
2ceb85d0
BE
57232002-04-26 Ben Elliston <bje@redhat.com>
5724
5725 * target.c (do_xfer_memory): Correct reference to the new option
5726 "trust-readonly-sections".
5727
f5f8a009
EZ
57282002-04-26 Elena Zannoni <ezannoni@redhat.com>
5729
5730 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5731 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5732 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5733 vectors.
5734 (read_array_type): Record the fact that this array type is really a
5735 vector (i.e. are passed in by value).
5736
5868c862
JT
57372002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5738
5739 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5740 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5741 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5742 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5743 * alpha-linux-tdep.c: Include frame.h.
5744 (alpha_linux_sigcontext_addr): New function.
5745 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5746 alpha_linux_sigcontext_addr.
5747 * alpha-osf1-tdep.c: Include gdbcore.h.
5748 (alpha_osf1_sigcontext_addr): New function.
5749 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5750 alpha_osf1_sigcontext_addr.
5751 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5752 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5753
bfb01f37
AC
57542002-04-26 Andrew Cagney <ac131313@redhat.com>
5755
361d1df0 5756 * stack.c (selected_frame_level):
bfb01f37
AC
5757 (select_frame): Do not set selected_frame_level.
5758 * frame.h (selected_frame_level): Delete declaration.
5759
15813d3f
AC
57602002-04-26 Andrew Cagney <ac131313@redhat.com>
5761
5762 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5763 convert_from_func_ptr-addr when AIX / PowerOpen.
5764
6096c27a
AC
57652002-04-25 Andrew Cagney <ac131313@redhat.com>
5766
5767 * valops.c (hand_function_call): Call
5768 generic_save_call_dummy_addr.
5769 * frame.h (generic_save_call_dummy_addr): Declare.
5770 * blockframe.c (struct dummy_frame): Add fields call_lo and
5771 call_hi.
5772 (generic_find_dummy_frame): Check for PC in range call_lo to
5773 call_hi instead of entry_point_address.
5774 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5775 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5776 (generic_save_call_dummy_addr): New function.
5777
f510d44e
DM
57782002-04-24 David S. Miller <davem@redhat.com>
5779
5780 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5781 sparc_skip_prologue.
5782 (sparc_skip_prologue): Kill frameless_p arg, and use line number
5783 information to find prologue when possible.
5784 (sparc_prologue_frameless_p): Call examine_prologue directly.
5785 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5786 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5787 second argument.
5788 (SKIP_PROLOGUE): Likewise.
5789
15d72a92
JT
57902002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5791
5792 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5793 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5794 indicate that the condition it was testing is always true.
5795 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5796 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5797 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5798
accc6d1f
JT
57992002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5800
5801 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5802 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5803 tdep->jb_pc and tdep->jb_elt_size.
5804 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5805 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5806 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5807 * alpha-nat.c (get_longjmp_target): Remove.
5808 (JB_ELEMENT_SIZE): Ditto.
5809 (JB_PC): Ditto.
5810 * alpha-tdep.c (alpha_get_longjmp_target): New function.
5811 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
5812 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5813 to alpha_get_longjmp_target.
5814 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5815 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5816 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
5817
1bfdc549
AC
58182002-04-25 Andrew Cagney <ac131313@redhat.com>
5819
5820 * README: Update to GDB 5.2.
5821
1bd316f0
AC
58222002-04-25 Andrew Cagney <ac131313@redhat.com>
5823
5824 * gdbarch.sh (LC_ALL): Set to `c'.
5825
2e5ff58c
TR
58262002-04-25 Theodore A. Roth <troth@verinet.com>
5827
5828 * avr-tdep.c: Ran through gdb_indent.sh.
5829
e33ce519
TR
58302002-04-25 Theodore A. Roth <troth@verinet.com>
5831
5832 * MAINTAINERS: Add myself as AVR maintainer.
5833 * NEWS: Note new target avr.
5834
8818c391
TR
58352002-04-25 Theodore A. Roth <troth@verinet.com>
5836
5837 * Makefile.in: Add support for AVR target.
5838 * configure.tgt: Add support for AVR target.
5839 * avr-tdep.c: New file
5840 * config/avr/avr.mt: New file.
5841
79509c2d
TR
58422002-04-25 Theodore A. Roth <troth@verinet.com>
5843
5844 * MAINTAINERS: Add myself to write-after-approval.
5845
dac8068e
PM
58462002-04-24 Pierre Muller <ics.u-strasbg.fr>
5847
5848 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
5849 with fprintf_unfiltered (gdb_stderr,....
5850
25bf3106
PM
58512002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5852
5853 Fix PR gdb/508.
5854 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
5855
24467a86
PM
58562002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5857
5858 * p-exp.y: Also use new prev_lexptr variable
5859 to improve error reporting. Based on Michael Snyder
5860 2002-04-24 dated patch to c-exp.y.
5861
95b80706
JT
58622002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5863
5864 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
5865 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
5866 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
5867 to 0.
5868 * config/alpha/tm-alpha.h: Remove forward decls of struct type
5869 and struct value.
5870 (FUNCTION_START_OFFSET): Remove.
5871 (BREAKPOINT): Ditto.
5872
e90cc612
JT
58732002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5874
5875 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
5876 * NEWS: Ditto.
5877
6c72f9f9
JT
58782002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5879
5880 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
5881 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
5882 alpha_linux_pc_in_sigtramp.
5883 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
5884 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
5885 alpha_osf1_pc_in_sigtramp.
5886 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
5887 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
5888 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5889 alphafbsd_pc_in_sigtramp.
5890 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
5891 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5892 alphanbsd_pc_in_sigtramp.
5893 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
5894 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
5895
5e4f3379
JT
58962002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5897
5898 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5899
da8ca43d
JT
59002002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5901
5902 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
5903 alphanbsd-tdep.c.
5904 (alphanbsd-nat.o): New dependency list.
5905 (alphanbsd-tdep.o): Ditto.
5906 * NEWS: Note new native NetBSD/alpha configuration.
5907 * alphanbsd-nat.c: New file.
5908 * alphanbsd-tdep.c: Ditto.
5909 * configure.host (alpha*-*-netbsd*): New host.
5910 * configure.tgt (alpha*-*-netbsd*): New target.
5911 * config/alpha/nbsd.mh: New file.
5912 * config/alpha/nbsd.mt: Ditto.
5913 * config/alpha/nm-nbsd.h: Ditto.
5914 * config/alpha/tm-nbsd.h: Ditto.
5915
36a6271d
JT
59162002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5917
5918 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
5919 (alpha-osf1-tdep.o): New dependency list.
5920 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
5921 and skip_sigtramp_frame members.
5922 * alpha-linux-tdep.c: Include gdbcore.h.
5923 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
5924 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
5925 * alpha-osf1-tdep.c: New file.
5926 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
5927 alpha-osf1-dep.c.
5928 (alpha_frame_past_sigtramp_frame): New function.
5929 (alpha_dynamic_sigtramp_offset): Ditto.
5930 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
5931 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
5932 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
5933 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
5934 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
5935 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
5936 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
5937 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
5938 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
5939 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
5940 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
5941 to find_solib_trampoline_target.
5942 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
5943 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
5944 (SKIP_TRAMPOLINE_CODE): Remove.
5945 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5946 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5947 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5948 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5949 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
5950 (PROC_SIGTRAMP_MAGIC): Ditto.
5951 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5952 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5953 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5954 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5955 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5956
2f4bc57b
JT
59572002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5958
5959 * NEWS: Note that Alpha targets are now multi-arch.
5960
665132f9
MS
59612002-04-24 Michael Snyder <msnyder@redhat.com>
5962
5963 * parser-defs.h (prev_lexptr): New external variable.
5964 * parse.c (parse_exp_1): Set prev_lexptr to null before
5965 calling the language-specific parser.
5966 * c-exp.y (yylex): Set prev_lexptr to start of current token.
5967 (yyerror): Use prev_lexptr in error reporting.
5968
32872fa7
DJ
59692002-04-24 Daniel Jacobowitz <drow@mvista.com>
5970
5971 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
5972 * gregset.h: If FILL_FPXREGSET is defined, provide
5973 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
5974 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
5975 is defined, call fill_fpxregset.
5976
57e76fac
MS
59772002-04-24 Roland McGrath <roland@frob.com>
5978
5979 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
5980 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
5981 (supply_gregset, supply_fpregset): New functions.
5982
5983 * gnu-nat.c (gnu_find_memory_regions): New function.
5984 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
5985 (gnu_xfer_memory): Add a cast.
5986
f43845b3
MS
59872002-04-24 Michael Snyder <msnyder@redhat.com>
5988
361d1df0 5989 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
5990 loop. Add handling for "str lr, [sp, #-4]!" and for saves
5991 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 5992 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
5993 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
5994 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
5995
a0abec03
AC
5996Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
5997
5998 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
5999 NUM_PSEUDO_REGS can be used.
6000
d7bd68ca
AC
60012002-04-24 Andrew Cagney <ac131313@redhat.com>
6002
6003 * arch-utils.h: Update copyright.
6004
6005 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6006 * gdbarch.h, gdbarch.c: Re-generate.
6007
6008 * inferior.h (IN_SIGTRAMP): Delete definition.
6009 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6010 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6011
6012 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6013 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6014 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6015 (find_proc_framesize): Ditto.
6016 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6017 (alpha_init_extra_frame_info): Ditto.
6018 * infrun.c (handle_inferior_event): Ditto.
6019 (handle_inferior_event): Ditto.
6020 (check_sigtramp2): Ditto.
6021 * blockframe.c (create_new_frame): Ditto.
6022 (get_prev_frame): Ditto.
6023 * ppc-linux-tdep.c: Update comments.
6024 * i386-linux-tdep.c: Update comments.
6025 * breakpoint.c (bpstat_what): Update comment.
6026
d06f167a
ML
60272002-04-24 Michal Ludvig <mludvig@suse.cz>
6028
6029 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
361d1df0 6030 (regsets_store_inferior_registers): Removed cast to int from
d06f167a
ML
6031 ptrace() calls.
6032 * gdbserver/regcache.h: Added declaration of struct inferior_info.
6033
4867e41e
DM
60342002-04-24 David S. Miller <davem@redhat.com>
6035
21d83aa5
DM
6036 * i960-tdep.c (register_in_window_p): New function.
6037 (i960_find_saved_register): Use it instead of
6038 REGISTER_IN_WINDOW_P.
6039 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6040
4867e41e
DM
6041 * symtab.h (find_stab_function_addr): Kill extern.
6042 * minsyms.c (find_stab_function_addr): Remove from here...
6043 * dbxread.c: ... to here, and mark it static.
6044
69cdf6a2
DM
60452002-04-20 David S. Miller <davem@redhat.com>
6046
6047 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6048 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6049
5a595886
DM
60502002-04-21 David S. Miller <davem@redhat.com>
6051
6052 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6053 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6054 (vx_write_register): Likewise.
6055
1da1a192
JB
60562002-04-23 J. Brobecker <brobecker@gnat.com>
6057
6058 * source.c (is_regular_file): New function.
6059 (openp): Check wether file to open is a regular file
6060 to avoid opening directories.
6061
baa6f10b
JT
60622002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6063
6064 * findvar.c (extract_signed_integer): Cast printf argument
6065 to suppress format warning.
6066 (extract_unsigned_integer): Likewise.
6067 * infcmd.c (registers_info): Likewise.
6068 * top.c (get_prompt_1): Likewise.
6069 * valops.c (value_assign): Likewise.
6070 * valprint.c (print_decimal): Likewise.
6071
b2c4da81
L
60722002-04-22 H.J. Lu (hjl@gnu.org)
6073
6074 * c-exp.y (typebase): Support
361d1df0 6075
b2c4da81
L
6076 [long|long long|short] [signed|unsigned] [int|]
6077
6078 and
6079
6080 signed [long|long long|short] int
6081
f267bd6a
JT
60822002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6083
6084 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6085 and vax-tdep.h.
6086 * vax-tdep.h: New file.
6087 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6088 Make several routines static.
6089 (vax_get_saved_register): New function.
6090 (vax_gdbarch_init): New function.
6091 (_initialize_vax_tdep): Register vax_gdbarch_init.
6092 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6093 Remove macros now under the control of gdbarch.
6094
da3c6d4a
MS
60952002-04-22 Michael Snyder <msnyder@redhat.com>
6096
11d3b27d
MS
6097 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6098 Some whitespace and coding standards tweaks.
da3c6d4a 6099
a33f7558
JT
61002002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6101
6102 * vax-tdep.c: Include regcache.h.
6103 (vax_call_dummy_words): New.
6104 (sizeof_vax_call_dummy_words): New.
6105 (vax_fix_call_dummy): New function.
6106 (vax_saved_pc_after_call): Ditto.
6107 * config/vax/tm-vax.h: Don't include regcache.h.
6108 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6109 (CALL_DUMMY): Remove.
6110 (CALL_DUMMY_WORDS): Define.
6111 (SIZEOF_CALL_DUMMY_WORDS): Define.
6112 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6113
47a73475
MS
61142002-04-18 Michael Snyder <msnyder@redhat.com>
6115
6116 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6117
52efde73
JT
61182002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6119
6120 * vax-tdep.c (vax_frame_chain): New function.
6121 (vax_push_dummy_frame): Ditto.
6122 (vax_pop_frame): Ditto.
6123 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6124 (FRAMELESS_FUNCTION_INVOCATION): Use
6125 generic_frameless_function_invocation_not.
6126 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6127 (POP_FRAME): Use vax_pop_frame.
6128
ea74468c
JT
61292002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6130
6131 * vax-tdep.c (vax_store_struct_return): New function.
6132 (vax_extract_return_value): Ditto.
6133 (vax_store_return_value): Ditto.
6134 (vax_extract_struct_value_address): Ditto.
6135 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6136 vax_store_struct_return.
6137 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6138 (STORE_RETURN_VALUE): Use vax_store_return_value.
6139 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6140
5516aa92
JT
61412002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6142
6143 * vax-tdep.c (vax_frame_saved_pc): New function.
6144 (vax_frame_args_address_correct): Ditto.
6145 (vax_frame_args_address): Ditto.
6146 (vax_frame_locals_address): Ditto.
6147 (vax_frame_num_args): Move code to be in proximity to
6148 other frame-related functions.
6149 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6150 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6151 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6152 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6153 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6154
36af0b35
L
61552002-04-22 H.J. Lu (hjl@gnu.org)
6156
6157 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6158 includedir.
6159
ab62c900
JT
61602002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6161
6162 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6163 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6164 (FRAME_INIT_SAVED_REGS): New macro.
6165
7232b100
JT
61662002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6167
6168 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6169
b70d2aee
JT
61702002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6171
6172 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6173 where needed.
6174 (fetch_osf_core_registers): Likewise.
6175 (supply_gregset): Likewise.
6176
a0e8a2d1 61772002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 6178
a0e8a2d1
JB
6179 * symfile.h (get_section_index): Define.
6180 * symfile.c (get_section_index): New function.
6181 * mdebugread.c (SC_IS_SBSS): New macro.
6182 (SC_IS_BSS): Return true for the scBss storage class only, as
6183 the scSBss storage class refers to the .sbss section.
6184 (parse_partial_symbols): Discard the symbols which associated
6185 section does not exist.
6186 Make sure to use the .sbss section index for symbols which
6187 storage class is scBss, rather than using the .bss section index.
6188
51eb8b08
JT
61892002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6190
6191 * vax-tdep.c: Update copyright years.
6192 (vax_register_name): New function.
6193 (vax_register_byte): Ditto.
6194 (vax_register_raw_size): Ditto.
6195 (vax_register_virtual_size): Ditto.
6196 (vax_register_virtual_type): Ditto.
6197 * config/vax/tm-vax.h: Update copyright years.
6198 (REGISTER_NAMES): Remove.
6199 (REGISTER_NAME): Define.
6200 (REGISTER_BYTE): Use vax_register_byte.
6201 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6202 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6203 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6204
6cc1c0a8
AC
62052002-04-21 Andrew Cagney <ac131313@redhat.com>
6206
6207 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6208 declaration
6209 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6210
9319a2fe
DM
62112002-04-21 David S. Miller <davem@redhat.com>
6212
6213 * arch-utils.c (generic_prologue_frameless_p): Kill
6214 SKIP_PROLOGUE_FRAMELESS_P code.
6215 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6216 references.
6217 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6218 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6219 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6220 references.
6221 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6222 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6223 (sparc_gdbarch_init): Pass it to
6224 set_gdbarch_prologue_frameless_p.
a0e8a2d1 6225
e9ed6d01
JT
62262002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6227
6228 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6229 (alphabsd-nat.o): New dependency list.
6230
36012033
JT
62312002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6232
6233 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6234 alphafbsd-tdep.c.
6235 (alpha-linux-tdep.o): New dependency list.
6236 (alphafbsd-tdep.o): Likewise.
6237
3379287a
JT
62382002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6239
6240 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6241 to here...
6242 * alpha-tdep.c: ...from here.
6243 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6244
4bcbd6cb
JT
62452002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6246
6247 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6248 prototype from here...
6249 * alpha-tdep.h: ...to here.
6250
b31da25e
AC
62512002-04-21 Andrew Cagney <ac131313@redhat.com>
6252
6253 * frame.h (selected_frame_level): Document as deprecated.
6254 (frame_relative_level): Declare.
6255 * stack.c (frame_relative_level): New function.
6256 (selected_frame_level): Document as deprecated.
6257 (select_frame): Do not set the selected_frame_level.
6258
6259 * stack.c (frame_info, record_selected_frame): Update.
6260 (frame_command, current_frame_command): Update.
6261 (up_silently_base, up_command, down_silently_base): Update.
6262 (down_command): Update.
6263 * inflow.c (kill_command): Update.
6264 * tracepoint.c (finish_tfind_command): Update.
6265 * corelow.c (core_open): Update.
6266 * thread.c (info_threads_command): Update.
6267 (do_captured_thread_select): Update.
6268 * infcmd.c (finish_command): Update.
6269 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6270
9c1d6fe5
JT
62712002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6272
6273 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6274
ab89facf
AC
62752002-04-21 Andrew Cagney <ac131313@redhat.com>
6276
6277 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6278 type const.
6279
82a4efa1
JT
62802002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6281
6282 * alphafbsd-tdep.c: Update copyright years. Include
6283 alpha-tdep.h.
6284 (alphafbsd_use_struct_convention): Make static.
6285 (alphafbsd_init_abi): New function.
6286 (_initialize_alphafbsd_tdep): New function.
6287 * config/alpha/tm-fbsd.h: Update copyright years.
6288 (USE_STRUCT_CONVENTION): Remove.
6289
44dffaac
JT
62902002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6291
6292 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6293 an Alpha ABI variant.
6294 (alpha_abi_handler_list): Declare.
6295 (alpha_gdbarch_register_os_abi): New function.
6296 (alpha_gdbarch_init): Give registered ABI variant handlers a
6297 chance to tweak the gdbarch once we have set up defaults.
6298 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6299
65585be4
JT
63002002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6301
6302 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6303 to standard_coerce_float_to_double.
6304 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6305
d9b023cc
JT
63062002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6307
6308 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6309 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6310 from gdbarch_tdep rather than a constant.
6311 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6312 the default text address for all Alpha Unix ABIs.
6313 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6314 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6315
dc129d82
JT
63162002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6317
6318 * alpha-tdep.h: New file. Includes several Alpha target constants
6319 taken from...
6320 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6321 let gdbarch deal with.
6322 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6323 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6324 to dependency list.
6325 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6326 Alpha target register names.
6327 * alphabsd-nat.c: Likewise.
6328 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6329 Alpha target register names. Make serveral routines static.
6330 (alpha_get_saved_register): New function.
6331 (alpha_abi_names): New.
6332 (process_note_abi_tag_sections): New function.
6333 (get_elfosabi): New function.
6334 (alpha_gdbarch_init): New function.
6335 (alpha_dump_tdep): New function.
6336 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6337
d49d1e0a
AC
63382002-04-21 Andrew Cagney <ac131313@redhat.com>
6339
6340 * frame.c (find_saved_register): Delete #ifdef
6341 HAVE_REGISTER_WINDOWS code.
6342 * config/sparc/tm-sparc.h: Update comments.
6343 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6344
92e8c9ed
AC
63452002-04-21 Andrew Cagney <ac131313@redhat.com>
6346
6347 * i960-tdep.c (i960_find_saved_register): New function.
6348 (i960_get_saved_register): New function.
6349 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6350 (i960_get_saved_register): Declare.
6351 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6352
e1925118
DM
63532002-04-20 David S. Miller <davem@redhat.com>
6354
6355 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6356
29673b29
AC
63572002-04-20 Andrew Cagney <ac131313@redhat.com>
6358
6359 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6360 instead of NUM_PSEUDO_REGS.
6361
6c86dcd5
DM
63622002-04-20 David S. Miller <davem@redhat.com>
6363
6364 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6365 GDB_MULTI_ARCH_PARTIAL
6366 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6367 define, let tm-sp64.h do it.
6368
aa40ec90
JT
63692002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6370
6371 * frame.c (find_saved_register): Avoid a NULL pointer
6372 dereference and actually walk the frame list.
6373
0f79675b
AC
63742002-04-20 Andrew Cagney <ac131313@redhat.com>
6375
6376 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6377 sorted in most most-recent-used order. Document.
6378 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6379
c04a1aa8
DJ
63802002-04-20 Daniel Jacobowitz <drow@mvista.com>
6381
6382 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
6383 (add_inferior): Call create_register_cache.
6384 (clear_inferiors): Call free_register_cache.
6385 (inferior_regcache_data, set_inferior_regcache_data): New functions.
6386 * gdbserver/regcache.c (struct inferior_regcache_data): New.
6387 (registers): Remove.
6388 (get_regcache): New function.
6389 (create_register_cache, free_register_cache): New functions.
6390 (set_register_cache): Don't initialize the register cache here.
6391 (registers_to_string, registers_from_string, register_data): Call
6392 get_regcache.
6393 * gdbserver/regcache.h: Add prototypes.
6394 * gdbserver/server.h: Likewise.
6395
611cb4a5
DJ
63962002-04-20 Daniel Jacobowitz <drow@mvista.com>
6397
6398 * gdbserver/mem-break.c: New file.
6399 * gdbserver/mem-break.h: New file.
6400 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
6401 dependencies.
6402 * gdbserver/inferiors.c (struct inferior_info): Add target_data
6403 member.
6404 (clear_inferiors): Free target_data member if set.
6405 (inferior_target_data, set_inferior_target_data): New functions.
6406 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
6407 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
6408 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
6409 (struct inferior_linux_data): New.
6410 (linux_create_inferior): Use set_inferior_target_data.
6411 (linux_attach): Likewise. Call add_inferior.
6412 (linux_wait_for_one_inferior): New function.
6413 (linux_wait): Call it.
6414 (linux_write_memory): Add const.
6415 (initialize_low): Call set_breakpoint_data.
6416 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
6417 handling members.
6418 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
6419 call.
6420 * gdbserver/server.h: Include mem-break.h. Update inferior.c
6421 prototypes.
6422 * gdbserver/target.c (read_inferior_memory)
6423 (write_inferior_memory): New functions.
6424 * gdbserver/target.h (read_inferior_memory)
6425 (write_inferior_memory): Change macros to prototypes.
6426 (struct target_ops): Update comments. Add const to write_memory
6427 definition.
6428
f91305dd 64292002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
6430
6431 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6432 instead of ->prev.
6433 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6434 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6435 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6436 instead of ->prev.
6437
73d322b1
EZ
64382002-04-19 Elena Zannoni <ezannoni@redhat.com>
6439
6440 Fix PR gdb/471.
6441 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6442 (build_builtin_type_vec128): Ditto.
6443 (append_composite_type_field): Fix calculation of type length in
6444 union case.
6445
ccd9a834
EZ
64462002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6447
6448 * config/djgpp/README: Update.
6449
6450 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6451 compiler warnings.
6452
a57f9e49
JT
64532002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6454
6455 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6456 (alpha_setup_arbitrary_frame): ...to this.
6457 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6458 for alpha_setup_arbitrary_frame.
6459
f4f9705a
AC
64602002-04-18 Andrew Cagney <cagney@redhat.com>
6461
6462 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6463 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6464
f4f9705a
AC
6465 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6466 * target.h (memory_breakpoint_from_pc): Update declaration.
6467 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6468
6469 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6470 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6471 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6472 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6473 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6474 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6475 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6476 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6477 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6478 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6479 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6480 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6481
6482 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6483 const pointer.
6484 * monitor.c (monitor_insert_breakpoint): Ditto.
6485 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6486
6487 * config/mcore/tm-mcore.h: Update copyright.
6488 * mem-break.c: Ditto.
6489 * xstormy16-tdep.c: Ditto.
6490
29f319b8
PM
64912002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6492
6493 * p-exp.y: Add precedence rule for '^' token.
6494 This removes the shift/reduce conflicts.
6495 Remove the comment concerning these shift/reduce conflicts.
6496
ebeac11a
EZ
64972002-04-18 Elena Zannoni <ezannoni@redhat.com>
6498
6499 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6500 (registers_powerpc_nofp): New register set for processors
6501 without floating point unit.
6502
27c31547
DM
65032002-04-18 David S. Miller <davem@redhat.com>
6504
6505 * MAINTAINERS: Add myself to write-after-approval.
6506
47a73475
MS
65072002-04-17 Michael Snyder <msnyder@redhat.com>
6508
6509 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6510
953836b2
AC
65112002-04-17 Andrew Cagney <ac131313@redhat.com>
6512
6513 * rs6000-tdep.c (frame_initial_stack_address): Use
6514 frame_register_read to read the alloca_reg.
6515
8b0d4340
AC
65162002-04-17 Andrew Cagney <ac131313@redhat.com>
6517
6518 * frame.c (find_saved_register): Find saved registers in the next
6519 not prev frame.
6520 Fix PR gdb/365.
6521
d8864532
AC
65222002-04-17 Andrew Cagney <ac131313@redhat.com>
6523
6524 * gdbarch.sh (LANG): Set to ``c''.
6525
36cc83a3 65262002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 6527
36cc83a3 6528 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 6529
2f4150cc 65302002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
6531
6532 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6533 Update copyright.
6534
628703c6 6535 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 6536 Also fix PR gdb/391.
361d1df0 6537
56157b4a
AC
65382002-04-14 Andrew Cagney <ac131313@redhat.com>
6539
6540 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6541 * aclocal.m4, configure: Re-generate.
6542 Fix PR gdb/391.
361d1df0 6543
6d1e3329
EZ
65442002-04-14 Elena Zannoni <ezannoni@redhat.com>
6545
6546 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6547 instead of tm_print_insn.
6548
cb06fa07
EZ
65492002-04-14 Elena Zannoni <ezannoni@redhat.com>
6550
6551 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6552
f208ba17
AC
65532002-04-14 Andrew Cagney <ac131313@redhat.com>
6554
6555 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6556 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6557 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6558
20f01a46
DH
65592002-04-12 Don Howard <dhoward@redhat.com>
6560
6561 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6562 max_user_call_depth.
6563 (init_cmd_lists): Initialize the new value;
6564 * cli/cli-script.c (execute_user_command): Limit the call depth of
6565 user defined commands. This avoids a core-dump when user commands
6566 are infinitly recursive.
6567
a88376a3
KB
65682002-04-12 Kevin Buettner <kevinb@redhat.com>
6569
6570 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6571 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6572 from tdep struct instead of DEFAULT_LR_SAVE.
6573 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6574 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6575 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6576
f2172603
MS
65772002-04-12 Michael Snyder <msnyder@redhat.com>
6578
694f61fb 6579 * Remote.c: Spelling fix.
20fe79c8
MS
6580 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6581 If no symbol found for "sbrk", try "_sbrk".
6582 (make_output_phdrs): Use bfd_section_name.
6583 (gcore_copy_callback): Use bfd_section_name.
62995fc4 6584 * eval.c: Indentation fix-ups.
169a7369
MS
6585 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6586 in case it gets applied to an address that is already
6587 in the instruction space.
de74f71f
MS
6588 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6589 * symfile.c: Fix indentation, long lines.
f2172603
MS
6590 * source.c: White space fix-up.
6591
cda5a58a
AC
65922002-04-12 Andrew Cagney <cagney@redhat.com>
6593
6594 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6595 * frame.c (frame_register_read): New function. Return non-zero on
6596 success.
6597 (read_relative_register_raw_bytes_for_frame): Delete.
6598 (read_relative_register_raw_bytes): Delete.
6599 * frame.h (frame_register_read): Declare.
6600 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6601 * sh-tdep.c: Ditto.
6602 * infcmd.c (do_registers_info): Ditto.
6603 * hppa-tdep.c: Ditto.
6604 * rs6000-tdep.c: Ditto.
6605 * h8500-tdep.c: Ditto.
6606 * mips-tdep.c: Ditto.
6607 * h8300-tdep.c: Ditto.
6608 * z8k-tdep.c: Ditto.
6609
2ea5f656
KB
66102002-04-12 Kevin Buettner <kevinb@redhat.com>
6611
6612 From Jimi X <jimix@watson.ibm.com>:
6613 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6614 64-bit SysV ABI.
6615
27b15785
KB
66162002-04-12 Kevin Buettner <kevinb@redhat.com>
6617
6618 From Jimi X <jimix@watson.ibm.com>:
6619 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6620 bfd info.
6621
5d57ee30
KB
66222002-04-12 Kevin Buettner <kevinb@redhat.com>
6623
6624 From Jimi X <jimix@watson.ibm.com>:
6625 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6626 register sets for these processor variants.
6627
bc1e36ca
DJ
66282002-04-11 Daniel Jacobowitz <drow@mvista.com>
6629
6630 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
6631 registers which are allowed to fail to store.
6632 * gdbserver/linux-low.h (linux_target_ops): Likewise.
6633 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
6634 (ppc_cannot_store_register): FPSCR may not be storable.
6635 * regformats/reg-ppc.dat: Support FPSCR.
6636
e3f36dbd
KB
66372002-04-11 Kevin Buettner <kevinb@redhat.com>
6638
6639 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6640 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6641 Add fpscr as an invalid/unfetchable register.
6642 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6643 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6644 (fill_fpregset): Add support for register fpscr.
6645 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6646 (fill_gregset): Account for the fact that register ``mq'' might
6647 not exist.
6648 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6649 (registers_power): Add fpscr to register set at slot 71.
6650 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6651 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6652
943c9c25
MS
66532002-04-11 Michael Snyder <msnyder@redhat.com>
6654
6655 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6656 * configure: Regenerate.
6657 * config.in: Regenerate.
6658 * acconfig.h: Add define for _SYSCALL32.
6659 * core-sol2.c: Remove #define _SYSCALL32.
6660 * solib-legacy.c: Remove #define _SYSCALL32.
6661
d8c0a2e7
AC
66622002-04-10 Andrew Cagney <ac131313@redhat.com>
6663
6664 * stack.c (select_frame): Cleanup internal error message, do not
6665 use %p.
6666
7cc19214
AC
66672002-04-10 Andrew Cagney <ac131313@redhat.com>
6668
6669 * stack.c (select_frame): Check that selected_frame and the
6670 specified level are as expected.
6671 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6672 Update copyright.
6673 * frame.h (struct frame_info): Add field `level'. Update
6674 copyright.
6675 Work-in-progress PR gdb/464.
6676
67a2b77e
AC
66772002-04-10 Andrew Cagney <ac131313@redhat.com>
6678
6679 * maint.c (maint_print_section_info): Rename print_section_info.
6680 (print_bfd_section_info, print_objfile_section_info): Update.
6681 * inferior.h (struct gdbarch): Add opaque declaration.
6682 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6683 * gdbarch.h: Regenerate.
6684
8cfda98c
ML
66852002-04-10 Michal Ludvig <mludvig@suse.cz>
6686
6687 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6688 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6689 (kernel_u_size): Added.
6690 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6691 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6692
ca439ad2 66932002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 6694
ca439ad2
JI
6695 * valarith.c (find_size_for_pointer_math): New function, either returns
6696 the size for a pointer's target, returns 1 for void *, or errors for
6697 incomplete types.
6698 (value_add, value_sub): use find_size_for_pointer_math.
6699
2f2893d9
DJ
67002002-04-09 Daniel Jacobowitz <drow@mvista.com>
6701
6702 * linux-low.c (linux_look_up_symbols): New hook.
6703 (linux_target_ops): Add linux_look_up_symbols.
6704 * remote-utils.c (decode_address): New function.
6705 (look_up_one_symbol): New function.
6706 * server.c (handle_query): Call target look_up_symbols hook.
6707 * server.h (look_up_one_symbol): Add prototype.
6708 * target.h (struct target_ops): Add look_up_symbols hook.
6709
2ec06d2e
DJ
67102002-04-09 Daniel Jacobowitz <drow@mvista.com>
6711
d64b8841
DJ
6712 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
6713 * ChangeLog: Correct paths in last ChangeLog entry.
6714
67152002-04-09 Daniel Jacobowitz <drow@mvista.com>
6716
6717 * gdbserver/linux-low.h: Remove obsolete prototypes.
2ec06d2e
DJ
6718 (struct linux_target_ops): New.
6719 (extern the_low_target): New.
d64b8841 6720 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2ec06d2e
DJ
6721 (register_addr): Use the_low_target explicitly.
6722 (fetch_register): Likewise.
6723 (usr_fetch_inferior_registers): Likewise.
6724 (usr_store_inferior_registers): Likewise.
d64b8841 6725 * gdbserver/linux-arm-low.c (num_regs): Remove.
2ec06d2e
DJ
6726 (arm_num_regs): Define.
6727 (arm_regmap): Renamed from regmap, made static.
6728 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
6729 made static.
6730 (arm_cannot_store_register): Renamed from cannot_store_register,
6731 made static.
6732 (the_low_target): New.
d64b8841 6733 * gdbserver/linux-i386-low.c (num_regs): Remove.
2ec06d2e
DJ
6734 (i386_num_regs): Define.
6735 (i386_regmap): Renamed from regmap, made static.
6736 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
6737 made static.
6738 (i386_cannot_store_register): Renamed from cannot_store_register,
6739 made static.
6740 (the_low_target): New.
d64b8841 6741 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2ec06d2e
DJ
6742 (ia64_num_regs): Define.
6743 (ia64_regmap): Renamed from regmap, made static.
6744 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
6745 made static.
6746 (ia64_cannot_store_register): Renamed from cannot_store_register,
6747 made static.
6748 (the_low_target): New.
d64b8841 6749 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2ec06d2e
DJ
6750 (m68k_num_regs): Define.
6751 (m68k_regmap): Renamed from regmap, made static.
6752 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
6753 made static.
6754 (m68k_cannot_store_register): Renamed from cannot_store_register,
6755 made static.
6756 (the_low_target): New.
d64b8841 6757 * gdbserver/linux-mips-low.c (num_regs): Remove.
2ec06d2e
DJ
6758 (mips_num_regs): Define.
6759 (mips_regmap): Renamed from regmap, made static.
6760 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
6761 made static.
6762 (mips_cannot_store_register): Renamed from cannot_store_register,
6763 made static.
6764 (the_low_target): New.
d64b8841 6765 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2ec06d2e
DJ
6766 (ppc_num_regs): Define.
6767 (ppc_regmap): Renamed from regmap, made static.
6768 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
6769 made static.
6770 (ppc_cannot_store_register): Renamed from cannot_store_register,
6771 made static.
6772 (the_low_target): New.
d64b8841 6773 * gdbserver/linux-s390-low.c (num_regs): Remove.
2ec06d2e
DJ
6774 (s390_num_regs): Define.
6775 (s390_regmap): Renamed from regmap, made static.
6776 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
6777 made static.
6778 (s390_cannot_store_register): Renamed from cannot_store_register,
6779 made static.
6780 (the_low_target): New.
d64b8841 6781 * gdbserver/linux-sh-low.c (num_regs): Remove.
2ec06d2e
DJ
6782 (sh_num_regs): Define.
6783 (sh_regmap): Renamed from regmap, made static.
6784 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
6785 made static.
6786 (sh_cannot_store_register): Renamed from cannot_store_register,
6787 made static.
6788 (the_low_target): New.
d64b8841 6789 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2ec06d2e
DJ
6790 (the_low_target): New.
6791
96cb11df
AC
67922002-04-09 Andrew Cagney <ac131313@redhat.com>
6793
6794 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6795 override FP_REGNUM with frame->fp. Update copyright.
6796 * parse.c (num_std_regs, std_regs): Delete.
6797 (target_map_name_to_register): Do not search std_regs. Update
6798 function description.
6799 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6800 declarations. Update copyright.
6801 Fix PR gdb/251.
361d1df0 6802
c3a3ccc7
DJ
68032002-04-09 Daniel Jacobowitz <drow@mvista.com>
6804
6805 * gdbserver/Makefile.in: Add stamp-h target.
6806 * gdbserver/configure.in: Create stamp-h.
6807 * gdbserver/configure: Regenerated.
6808
ce3a066d
DJ
68092002-04-09 Daniel Jacobowitz <drow@mvista.com>
6810
6811 * gdbserver/inferiors.c: New file.
6812 * gdbserver/target.c: New file.
6813 * gdbserver/target.h: New file.
6814 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
6815 dependencies.
6816 * gdbserver/linux-low.c (inferior_pid): New static variable,
6817 moved from server.c.
6818 (linux_create_inferior): Renamed from create_inferior.
6819 Call add_inferior. Return 0 on success instead of a PID.
6820 (linux_attach): Renamed from myattach.
6821 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
6822 (linux_thread_alive): Renamed from mythread_alive.
6823 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
6824 child dies.
6825 (linux_resume): Renamed from myresume. Add missing ``return 0''.
6826 (regsets_store_inferior_registers): Correct error message.
6827 Add missing ``return 0''.
6828 (linux_fetch_registers): Renamed from fetch_inferior_registers.
6829 (linux_store_registers): Renamed from store_inferior_registers.
6830 (linux_read_memory): Renamed from read_inferior_memory.
6831 (linux_write_memory): Renamed from write_inferior_memory.
6832 (linux_target_ops): New structure.
6833 (initialize_low): Call set_target_ops ().
6834 * gdbserver/remote-utils.c (unhexify): New function.
6835 (hexify): New function.
6836 (input_interrupt): Send signals to ``signal_pid''.
6837 * gdbserver/server.c (inferior_pid): Remove.
6838 (start_inferior): Update create_inferior call.
6839 (attach_inferior): Call add_inferior.
6840 (handle_query): New function.
6841 (main): Call handle_query for `q' packets.
6842 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
6843 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
6844
0729219d
DJ
68452002-04-09 Daniel Jacobowitz <drow@mvista.com>
6846
6847 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
6848 dependencies.
6849 * gdbserver/configure.in: Check for <string.h>
6850 * gdbserver/configure: Regenerate.
6851 * gdbserver/config.in: Regenerate.
6852 * gdbserver/gdbreplay.c: Include needed system headers.
6853 (remote_open): Remove strchr prototype.
6854 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
6855 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
6856 (supply_register_by_name): Likewise.
6857 (collect_register): Change buf argument to void *.
6858 (collect_register_by_name): Likewise.
6859 * gdbserver/regcache.h: Add missing prototypes.
6860 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
6861 * gdbserver/server.c (handle_query): New function.
6862 (attached): New static variable, moved out of main.
6863 (main): Quiet longjmp clobber warnings.
6864 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
6865 * gdbserver/utils.c (error): Remove NORETURN.
6866 (fatal): Likewise.
6867
97658e92
DJ
68682002-04-09 Daniel Jacobowitz <drow@mvista.com>
6869
6870 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6871 after the last symbol in a block.
6872
6044e3eb
PM
68732002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
6874
6875 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6876 is non zero as a found symbol.
6877
0406ec40
AC
68782002-04-08 Andrew Cagney <ac131313@redhat.com>
6879
6880 * findvar.c: Include "builtin-regs.h".
6881 (value_of_register): Call value_of_builtin_reg when applicable.
6882 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6883 (target_map_name_to_register): Call
6884 builtin_reg_map_name_to_regnum.
6885 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6886 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6887 (builtin_regs_h): Define.
6888 (builtin-regs.o): New target.
6889 (findvar.o): Add $(builtin_regs_h).
6890 * builtin-regs.c, builtin-regs.h: New files.
6891 * std-regs.c: New file.
6892 Partial fix for PR gdb/251.
6893
56a6dfb9
KB
68942002-04-08 Kevin Buettner <kevinb@redhat.com>
6895
6896 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6897 it's no longer required.
6898
3a808432
AC
68992002-04-08 Andrew Cagney <ac131313@redhat.com>
6900
6901 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6902
7c40d541
KB
69032002-04-08 Kevin Buettner <kevinb@redhat.com>
6904
6905 From Jimi X <jimix@watson.ibm.com>:
6906 * rs6000-tdep.c (rs6000_software_single_step): Use
6907 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6908 and size. Use target_insert_breakpoint() and
6909 target_remove_breakpoint() to insert and remove breakpoints
6910 instead of explicit memory reads and writes.
6911
cc9836a8
KB
69122002-04-08 Kevin Buettner <kevinb@redhat.com>
6913
6914 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6915 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6916 ELF_OBJECT_FORMAT ifdef.
6917
7495d1dc
KB
69182002-04-08 Kevin Buettner <kevinb@redhat.com>
6919
6920 From Jimi X <jimix@watson.ibm.com>:
6921 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6922
4288e836
KB
69232002-04-08 Kevin Buettner <kevinb@redhat.com>
6924
6925 From Jimi X <jimix@watson.ibm.com>:
6926 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6927 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6928
a4e4e501
MK
69292002-04-07 Mark Kettenis <kettenis@gnu.org>
6930
6931 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6932 s/asprintf/xasprintf/.
6933 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6934
006defba
AC
69352002-04-07 Andrew Cagney <ac131313@redhat.com>
6936
6937 I believe Jeff Law denies responsability for this one:
6938 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6939 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6940 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6941 Work-around for PR gdb/366.
6942
7aa83cac
EZ
69432002-04-07 Elena Zannoni <ezannoni@redhat.com>
6944
6945 * remote-e7000.c (write_small, e7000_read_inferior_memory,
6946 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6947 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6948
cf1fcca1
EZ
69492002-04-07 Elena Zannoni <ezannoni@redhat.com>
6950
6951 * sh-tdep.c (sh_fp_frame_init_saved_regs,
6952 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6953 information.
6954
3f289e6f
AC
69552002-04-07 Andrew Cagney <ac131313@redhat.com>
6956
6957 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
6958 maintainer.
6959
129188f6
AC
69602002-04-07 Andrew Cagney <ac131313@redhat.com>
6961
6962 * README (Reporting Bugs in GDB): Document the bug web page as the
6963 prefered way of submitting bugs.
6964 Fix PR gdb/402.
6965
1200cd6e
AC
69662002-04-06 Andrew Cagney <ac131313@redhat.com>
6967
6968 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
6969 -1. Update comment.
6970 * gdbarch.h, gdbarch.c: Re-generate.
6971
2853c33c
AS
69722002-04-07 Andreas Schwab <schwab@suse.de>
6973
6974 * m68klinux-nat.c (fill_fpregset): Properly pass address of
6975 buffer to regcache_collect.
6976
c2169756
AC
69772002-04-06 Andrew Cagney <ac131313@redhat.com>
6978
6979 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
6980 * gdbarch.c, gdbarch.h: Re-generate.
6981
25f1b008
AC
69822002-04-06 Andrew Cagney <ac131313@redhat.com>
6983
6984 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
6985 declaration. Fix -Werror.
6986
59263426
DJ
69872002-04-05 Daniel Jacobowitz <drow@mvista.com>
6988
6989 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
6990 * gdbarch.c: Regenerate.
6991
f5db4da3
MS
69922002-04-05 Michael Snyder <msnyder@redhat.com>
6993
80f8a6eb
MS
6994 * breakpoint.c (clear_command): Rewrite middle section to
6995 combine two loops with identical control conditions.
6996 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
6997 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
6998
ad3dcc5c
L
69992002-04-05 H.J. Lu (hjl@gnu.org)
7000
7001 * solib-svr4.c (bkpt_names): Add "__start".
7002
f32e7a74
AC
70032002-04-04 Andrew Cagney <ac131313@redhat.com>
7004
7005 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7006 as test for 64 bit target.
7007
8227c0ff
AC
70082002-04-05 Andrew Cagney <ac131313@redhat.com>
7009
7010 * h8500-tdep.c (h8500_write_fp): Delete function.
7011 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7012 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7013 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7014 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7015 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7016 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7017 (s390_write_fp):
7018 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7019 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7020 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7021 (d10v_write_fp): Delete function.
7022 * inferior.h (write_fp, generic_target_write_fp): Delete
7023 declarations.
7024 * regcache.c (generic_target_write_fp): Delete function.
7025 (write_fp): Delete function.
7026 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7027 * gdbarch.h, gdbarch.c: Regenerate.
7028 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7029 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7030 (sparc64_write_fp): Delete declaration.
7031 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7032 (h8500_write_fp): Delete declaration.
7033
2757dd86
AC
70342002-04-04 Andrew Cagney <ac131313@redhat.com>
7035
7036 * sparc-tdep.c (sparc64_write_fp): Delete.
7037 (sparc_push_dummy_frame): Replace write_fp call with code to store
7038 the FP directly.
7039 (sparc_gdbarch_init): Do not initialize write_fp.
7040
c69255e1
KB
70412002-04-05 Kevin Buettner <kevinb@redhat.com>
7042
7043 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7044 clause.
7045
ae767bfb
JB
70462002-03-29 Jim Blandy <jimb@redhat.com>
7047
7048 * stack.c (get_selected_block): Add new argument `addr_in_block',
7049 used to return the exact code address we used to select the block,
7050 not just the block.
7051 * blockframe.c (get_frame_block, get_current_block): Same.
7052 * frame.h (get_frame_block, get_current_block,
7053 get_selected_block): Update declarations.
7054 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7055 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7056
84d2ac95
MS
70572002-04-05 Michael Snyder <msnyder@redhat.com>
7058
7059 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7060 warning message.
7061
596aa3bf
JB
70622002-04-05 J. Brobecker <brobecker@gnat.com>
7063
7064 * utils.c (xfullpath): New function.
7065 * defs.h (xfullpath): Add declaration.
7066 * source.c (openp): Use xfullpath in place of gdb_realpath to
7067 avoid resolving the basename part of filenames when the
7068 associated file is a symbolic link. This fixes a potential
7069 inconsistency between the filenames known to GDB and the
7070 filenames it prints in the annotations.
7071 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7072 to be able to match a filename with either the real filename, or
7073 the name of any symbolic link to this file.
7074 (lookup_partial_symtab): Ditto.
7075
c02f5703
MS
70762002-04-04 Michael Snyder <msnyder@redhat.com>
7077
7078 * breakpoint.c: Add support for hardware breakpoints in overlays.
7079 (overlay_events_enabled): New state variable.
7080 (insert_breakpoints): Use overlay_events_enabled to decide
7081 whether to attempt to set a breakpoint at the overlay load addr.
7082 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7083 (remove_breakpoint): Use overlay_events_enabled to decide
7084 whether breakpoints need to be removed from overlay load addr.
7085 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7086 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 7087 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
7088 disable_overlay_breakpoints): Update overlay_events_enabled.
7089
5fb290d7
DJ
70902002-04-04 Daniel Jacobowitz <drow@mvista.com>
7091
7092 * dwarf2read.c (struct function_range): New.
7093 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7094 (check_cu_functions): New.
7095 (read_file_scope): Initialize global function lists.
7096 Call dwarf_decode_line after processing children.
7097 (read_func_scope): Add to global function list.
7098 (dwarf_decode_lines): Call check_cu_functions everywhere
7099 record_line is called. Call record_line with a linenumber
7100 of 0 to mark sequence ends.
7101
7b3fabf0
ML
71022002-04-04 Michal Ludvig <mludvig@suse.cz>
7103
361d1df0 7104 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
7105 change sync with glibc.
7106
bce58c09
JB
71072002-04-03 Jim Blandy <jimb@redhat.com>
7108
7109 * configure.in: Call AC_C_INLINE.
7110 * configure: Regenerated.
361d1df0 7111
2fccf04a
DJ
71122002-04-01 Daniel Jacobowitz <drow@mvista.com>
7113
7114 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7115 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7116
2d1bfe2e
MK
71172002-03-31 Mark Kettenis <kettenis@gnu.org>
7118
a5941fbf
MK
7119 * NEWS: Mention gcore support on FreeBSD/i386.
7120
a90cd31d
MK
7121 * fbsd-proc.c: New file.
7122 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7123 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7124
2d1bfe2e
MK
7125 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7126 while statement.
7127
9eb6e5a1
JB
71282002-03-29 Jim Blandy <jimb@redhat.com>
7129
7130 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7131 unescaped newlines in string literals, but newer ones don't. So
7132 escape them.
7133
f02df580
MS
71342002-03-26 Michael Snyder <msnyder@redhat.com>
7135 Andrew Cagney <cagney@redhat.com>
7136
361d1df0 7137 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
7138 restore file to memory.
7139 * cli/cli-dump.h: New file.
7140 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 7141 * NEWS: Mention new commands.
f02df580 7142
109f874e
MS
71432002-03-28 Michael Snyder <msnyder@redhat.com>
7144
7145 * symfile.c (symbol_file_add): Move test for null symbols to later.
7146
520f6ade
AC
71472002-03-27 Andrew Cagney <ac131313@redhat.com>
7148
7149 From veksler at il.ibm.com:
7150 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7151 the xstrduped original path.
7152 Fix PR gdb/417.
7153
d4654627
MS
71542002-03-27 Michael Snyder <msnyder@redhat.com>
7155
7156 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7157 * infcmd.c (_initialize_infcmd): Ditto.
7158 * language.c (_initialize_language): Ditto.
7159 * symfile.c (_initialize_symfile): Ditto.
7160 * top.c (_init_main): Ditto.
7161 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7162
6be8bc0c
EZ
71632002-03-27 Elena Zannoni <ezannoni@redhat.com>
7164
7165 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7166 vector registers handling.
7167 (skip_prologue): Handle new AltiVec instructions. Fill in new
7168 fields of frame data.
7169 (frame_get_saved_regs): Fill in information for AltiVec registers.
7170
12af6855
JB
71712002-03-27 Jim Blandy <jimb@redhat.com>
7172
7173 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7174 a function; leave this macro here to invoke that function.
7175 (symbol_init_mangled_name): Declaration for that function.
7176 * symtab.c (symbol_init_mangled_name): New function.
7177
dc672865
AC
71782002-03-27 Andrew Cagney <ac131313@redhat.com>
7179
7180 * valarith.c: Replace strerror with safe_strerror.
7181 * tracepoint.c: Ditto.
7182 * lin-lwp.c: Ditto.
7183 * go32-nat.c: Ditto.
7184 * inflow.c: Ditto.
7185 * gnu-nat.c: Ditto.
7186
d96429cd
AS
71872002-03-27 Andreas Schwab <schwab@suse.de>
7188
7189 * event-top.c (command_line_handler): Remove useless if.
7190
7e336ba1
AJ
71912002-03-27 Andreas Jaeger <aj@suse.de>
7192
7193 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7194 comment.
7195
de220d0f
ML
71962002-03-27 Michal Ludvig <mludvig@suse.cz>
7197
7198 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7199 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7200 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7201 (x86_64_linux_dr_get_status, supply_gregset),
7202 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7203 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7204 (x86_64_register_info_table): Add.
7205 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7206 (x86_64_register_raw_size, x86_64_register_virtual_type),
7207 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7208 general x86_64_register_info_table.
7209 (i386_gdbarch_init): gdbarch_register_bytes is now set
7210 dynamicaly during initialization.
7211 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7212 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 7213
0e98d0a7
DJ
72142002-03-27 Daniel Jacobowitz <drow@mvista.com>
7215
7216 * gdbserver/server.c (main): Call target_signal_to_host_p
7217 and target_signal_to_host on signals received from the remote.
7218 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7219 target_signal_from_host on signals sent to the remote.
7220 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7221 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7222
3130066b
DJ
72232002-03-27 Daniel Jacobowitz <drow@mvista.com>
7224
7225 * signals/signals.c: Include "server.h" in gdbserver build.
7226 (target_signal_from_name): Don't use STREQ.
7227 (_initialize_signals): Likewise. Don't include function in
7228 gdbserver build.
7229
9aedf4f4
DJ
72302002-03-27 Daniel Jacobowitz <drow@mvista.com>
7231
7232 * signals.c: Moved to...
7233 * signals/signals.c: Here.
7e336ba1 7234 * Makefile (signals.o): Update.
9aedf4f4 7235
3fa41cdb
JL
72362002-03-26 Jeff Law (law@redhat.com)
7237
7238 * somread.c (som_symtab_read): Remove some commented out code and
7239 updated related comments. Do not set the minimal symbol table to
7240 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7241 in a dynamic executable.
7242 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7243 where we are unable to find the minimal symbol for the given
7244 PC value.
7245
ee677e8d
MS
72462002-03-25 Jeff Law (law@redhat.com)
7247
7248 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7249
e76e1718
ML
72502002-03-25 Michal Ludvig <mludvig@suse.cz>
7251
7252 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7253
18a642a1
AC
72542002-03-23 Andrew Cagney <ac131313@redhat.com>
7255
7256 * command.h: Update copyright.
7257 (struct cmd_list_element): Replace definition with opaque
7258 declaration.
7259 (enum cmd_types): Document that it will eventually be moved to
7260 cli/cli-decode.h
7261 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7262 (MALLOCED_REPLACEMENT): Delete macro.
7263 * Makefile.in (cli_decode_h): Add $(command_h).
7264 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 7265 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
7266 * completer.c: Include "cli/cli-decode.h".
7267 * maint.c: Include "cli/cli-decode.h".
7268 * cli/cli-decode.h: Include "command.h".
7269 (enum command_class): Delete.
7270 (enum cmd_types): Comment out.
7271 (enum cmd_auto_boolean): Delete.
7272 (enum var_types): Delete.
7273
b2875cc0
AC
72742002-03-23 Andrew Cagney <ac131313@redhat.com>
7275
7276 * cli/cli-decode.c: Include "gdb_assert.h".
7277 (add_set_or_show_cmd): New static function.
7278 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7279 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7280 all fields, such as func, from the set command.
7281
3b45974e
AC
72822002-03-23 Andrew Cagney <ac131313@redhat.com>
7283
7284 * MAINTAINERS (sh-elf): Change warning flag to -w.
7285
823ca731
AC
72862002-03-23 Andrew Cagney <cagney@redhat.com>
7287
7288 * defs.h (error): Add printf format attribute.
7289 * thread-db.c (thread_from_lwp): Fix error format string.
7290 * stack.c (parse_frame_specification): Ditto.
7291 * cli/cli-decode.c (undef_cmd_error): Ditto.
7292 * scm-lang.c (scm_lookup_name): Ditto.
7293 * tracepoint.c (trace_error): Ditto.
7294 * remote-utils.c (usage): Ditto.
7295 * remote.c (compare_sections_command): Ditto.
7296 Fix PR gdb/328.
7297
0e101458
AC
72982002-03-22 Andrew Cagney <ac131313@redhat.com>
7299
7300 * gdbtypes.c (append_composite_type_field): New function.
7301 (init_composite_type): New function.
7302 * gdbtypes.h (append_composite_type_field): Declare.
7303 (init_composite_type): Ditto.
7304
8e0662df
EZ
73052002-03-22 Elena Zannoni <ezannoni@redhat.com>
7306
7307 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 7308 function.
8e0662df
EZ
7309 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7310 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7311 structure returning convention for SYSV ABI case, but not
7312 for GNU/Linux, FreeBSD, or NetBSD.
7313
3121eff0
DJ
73142002-03-22 Daniel Jacobowitz <drow@mvista.com>
7315
7316 * symtab.h (lookup_block_symbol): Add mangled_name argument
7317 to prototype.
7318
7319 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7320 with new mangled_name argument.
7321 * linespec.c (decode_line_1): Likewise.
7322 * valops (value_of_this): Likewise.
7323 * symtab.c (lookup_transparent_type): Likewise.
7324 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7325 (lookup_symbol): If we are given a mangled name, pass it down
7326 to lookup_symbol_aux.
7327 (lookup_block_symbol): If we are given a mangled name to check
7328 against, only return symbols which match it.
7329
349b409f
CF
73302002-03-22 Christopher Faylor <cgf@redhat.com>
7331
7332 * win32-nat.c (child_create_inferior): Check for proper shell to use
7333 here, in case the user changes it on the fly.
7334 (_initialize_inftarg): Remove shell path considerations.
7335
2a873819
EZ
73362002-03-21 Elena Zannoni <ezannoni@redhat.com>
7337
7338 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7339 for gdbarch_max_register_raw_size and max_register_virtual_size.
7340 Adjust copyright year.
7341
a1b9830c
DJ
73422002-03-21 Daniel Jacobowitz <drow@mvista.com>
7343
7344 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7345 in a function to cover the entire beginning of the function
7346 as well if it does not already.
7347
8b5790f2
TR
73482002-03-21 Tom Rix <trix@redhat.com>
7349
7350 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7351 (rs6000_ptrace64): Renamed from ptrace64.
7352
bdbe5747
MH
73532002-03-20 Martin M. Hunt <hunt@redhat.com>
7354
7355 * gdbserver/remote-utils.c (remote_open): Don't call
7356 getprotobyname, we're all using TCP here so just use
7357 IPPROTO_TCP.
7e336ba1 7358 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
7359
73602002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 7361
bdbe5747
MH
7362 * regcache.c (_initialize_regcache): No need to call
7363 build_regcache() at this time; it gets called whenever
7364 the gdbarch changes.
7365
7781cd62
DB
73662002-03-20 David O'Brien <obrien@FreeBSD.org>
7367
7368 * sparc-nat.c: Include sys/param.h where possible.
7369
f65ca430
DJ
73702002-03-20 Daniel Jacobowitz <drow@mvista.com>
7371
7372 Fix PR gdb/422.
7373 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7374 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7375 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7376 complex types.
7377 * stabsread.c (rs6000_builtin_type): Likewise.
7378 (read_sun_floating_type): Likewise.
7379
0c867556
PS
73802002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7381
7382 * stabsread.c (read_member_functions): Remove skip code for duplicate
7383 constructor/destructor methods. Use standard parsing for these
7384 methods and just do not chain them to the list of methods after
7385 parsing.
7386
12b9c64f
AO
73872002-03-19 Alexandre Oliva <aoliva@redhat.com>
7388
7389 * coffread.c: Remove redundant static declarations. Replace
7390 occurrences of `PTR' with `void *'.
7391 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7392 * top.h (quit_cover): Likewise.
7393 * defs.h (catch_errors): Likewise.
7394
349c5d5f
AC
73952002-03-18 Andrew Cagney <ac131313@redhat.com>
7396
7397 * defs.h (XMALLOC): Define.
7398 * gdb-events.sh (XMALLOC): Delete macro.
7399 * gdb-events.c, gdb-events.h: Regenerate.
7400 * gdbarch.sh (XMALLOC): Delete macro.
7401 * gdbarch.c: Regenerate.
7402 * serial.c (XMALLOC): Delete macro.
7403 * ui-file.c (XMALLOC): Ditto.
7404 * ser-unix.h (XMALLOC): Ditto.
7405 * sh-tdep.c (XMALLOC): Ditto.
7406 * ui-out.c (XMALLOC): Ditto.
7407 * utils.c (XMALLOC): Ditto.
7408 * i386-tdep.c (XMALLOC): Ditto.
7409 * gdb-events.c (XMALLOC): Ditto.
7410 * d10v-tdep.c (XMALLOC): Ditto.
7411 * cli-out.c (XMALLOC): Ditto.
7412
7413 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7414 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7415 * ui-file.c, ui-out.c: Ditto.
7416
7d0766f3
AC
74172002-03-18 Andrew Cagney <ac131313@redhat.com>
7418
7419 * command.h (struct cmd_list_element): Add field context.
7420 (set_cmd_context, get_cmd_context): Declare.
7421 * cli/cli-decode.h: Ditto.
7422 * cli/cli-decode.c (get_cmd_context): New function.
7423 (set_cmd_context): New function.
7424 (add_cmd): Initialize context.
7425 Part of fixing PR gdb/145 and PR gdb/146.
7426
5913bcb0
AC
74272002-03-17 Andrew Cagney <ac131313@redhat.com>
7428
1868c04e
AC
7429 * cli/cli-decode.c (cmd_type): New function.
7430 * command.h (cmd_type): Declare.
7431 * infrun.c (set_schedlock_func): Call function cmd_type.
7432 * kod.c (kod_set_os): Call cmd_type.
7433 * cris-tdep.c (cris_version_update): Use function cmd_type.
7434 (cris_mode_update, cris_abi_update): Ditto.
7435
5913bcb0
AC
7436 * command.h: (execute_cmd_post_hook): Declare.
7437 (execute_cmd_pre_hook): Declare.
7438 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7439 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7440 functions. Execute pre/post hook while ensuring that afterwords
7441 hook_in is cleared.
7442 * top.c (execute_command): Use execute_cmd_post_hook, and
7443 execute_cmd_pre_hook to execute pre/post commands.
7444 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7445 hook_stop_stub.
7446 (hook_stop_stub): Call execute_cmd_pre_hook.
7447
b51450c9
AC
74482002-03-17 Andrew Cagney <ac131313@redhat.com>
7449
7450 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7451 set'' and this leads to a core dump. Move xstrdup of
7452 operating_system to after check that it is not NULL.
7453
f66c9f11
AC
74542002-03-17 Andrew Cagney <ac131313@redhat.com>
7455
8e694ecf
AC
7456 * kod.c (kod_set_os): Remove unnecessary check that
7457 ``command->type'' is set_cmd.
7458
f66c9f11
AC
7459 * valprint.c (set_input_radix): Use input_radix.
7460 (set_output_radix): Use output_radix.
7461 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7462 isn't reverted.
7463
9d01611c
AC
74642002-03-16 Andrew Cagney <ac131313@redhat.com>
7465
7466 * value.h (struct value): Delete field ``substring_addr''. Change
7467 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
7468 force_core_addr_align and force_pointer_aligh.
7469
7470 * value.h (struct value): Fix typo in above change.
9d01611c 7471
4156bb53
PS
74722002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7473
7474 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7475 to fix internal_error from ``maintenance print architecture''.
7476
0e5e3ea6
PS
74772002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7478
7479 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7480 for gcc versions after gcc-2.8.1.
7481
9b013045
PS
74822002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7483
7484 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7485 for method resolution. Restore adjustment of ``this'' pointer after
7486 calling value_struct_elt, which was accidentally removed during the
7487 HP merge.
7488
376c9600
AC
74892002-03-15 Andrew Cagney <ac131313@redhat.com>
7490
7491 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7492 value_of_register.
7493 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7494 get_saved_register.
7495 * value.h (value_of_register): Update.
7496
a4db0f07
RH
74972002-03-14 Richard Henderson <rth@redhat.com>
7498
7499 * configure.in: Detect declaration for canonicalize_file_name.
7500 * utils.c (canonicalize_file_name): Declare, if needed.
7501 (gdb_realpath): Prefer realpath if available and usable.
7502 * config.in, configure: Rebuild.
7503
96383835
RH
75042002-03-14 Richard Henderson <rth@redhat.com>
7505
7506 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7507 a constant array bound.
7508
7509 * MAINTAINERS: Add myself to write-after-approval.
7510
75245b24
MS
75112002-03-14 Michael Snyder <msnyder@redhat.com>
7512
7513 * symfile.c (syms_from_objfile): Return immediately if no syms.
7514 (symbol_file_add): Return immediately if no syms.
7515 (find_sym_fns): Return immediately if no syms.
7516
e641a1ca
ML
75172002-03-13 Michal Ludvig <mludvig@suse.cz>
7518
7519 * gdbserver/remote-util.c (remote_open): Print remote-side's
7520 IP address when remote debugging over the network.
7e336ba1 7521
df08bfec
DB
75222002-03-12 David O'Brien <obrien@FreeBSD.org>
7523
7524 * config/sparc/fbsd.mh: Fix copyright.
7525 * config/sparc/fbsd.mt: Likewise.
7526
9a57864f
RE
75272002-03-11 Richard Earnshaw <rearnsha@arm.com>
7528
7529 * MAINTAINERS: Fix typo in name of gdb warnings option.
7530 (x86-64): Fix formating so that this can be parsed by awk.
7531
dd7bf85e
DJ
75322002-03-10 Daniel Jacobowitz <drow@mvista.com>
7533
7534 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7535 * defs.h: Include "gdb/signals.h".
7536 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7537
33a0a2ac
ML
75382002-03-10 Michal Ludvig <mludvig@suse.cz>
7539
7540 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 7541 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
7542 from x86-64-tdep.h
7543
dd824b04
DJ
75442002-03-10 Daniel Jacobowitz <drow@mvista.com>
7545 Don Howard <dhoward@redhat.com>
7546
7547 * mips-tdep.c (ST0_FR): Define.
7548 (mips2_fp_compat): New function, temporarily disabled.
7549 (mips_read_fp_register_single): New function.
7550 (mips_read_fp_register_double): New function.
7551 (mips_print_register): Use them.
7552 (do_fp_register_row): Likewise.
7553
6a41ff59
AC
75542002-03-09 Andrew Cagney <ac131313@redhat.com>
7555
7556 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7557 approval''.
7558
4ea09c10
PS
75592002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7560
7561 * stabsread.c (read_member_functions): Fix is_stub test for
7562 static member functions, improve comment.
7563
6ccc741d
RE
75642002-03-07 Richard Earnshaw <rearnsha@arm.com>
7565
7566 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7567 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7568 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7569 commands that set boolean values.
7570 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7571 (arm_rdi_resume): Always initialize PC.
7572 (arm_rdi_open): Don't use rslt as a boolean.
7573 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7574 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7575 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7576 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7577
438013df
AO
75782002-03-06 Alexandre Oliva <aoliva@redhat.com>
7579
7580 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7581 * configure: Rebuilt.
7582
70ed8774
SC
75832002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7584
7585 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7586 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7587
5ba2abeb
AC
75882002-03-06 Andrew Cagney <ac131313@redhat.com>
7589
7590 * cli/cli-decode.c (set_cmd_completer): New function.
7591 * command.h (set_cmd_completer): Declare.
7592 * cli/cli-decode.h (set_cmd_completer): Ditto.
7593
7594 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7595 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7596 * win32-nat.c (_initialize_inftarg): Ditto.
7597 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7598 * proc-api.c (_initialize_proc_api): Ditto.
7599 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7600 * source.c (_initialize_source): Ditto.
7601 * exec.c (_initialize_exec): Ditto.
7602 * solib.c (_initialize_solib): Ditto.
7603 * top.c (init_main): Ditto.
7604 * tracepoint.c (_initialize_tracepoint): Ditto.
7605 * symfile.c (_initialize_symfile): Ditto.
7606 * printcmd.c (_initialize_printcmd): Ditto.
7607 * infcmd.c (_initialize_infcmd): Ditto.
7608 * corefile.c (_initialize_core): Ditto.
7609
f779ca99
AC
76102002-03-05 Andrew Cagney <ac131313@redhat.com>
7611
7612 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7613
01a3934b
AC
76142002-03-05 Andrew Cagney <ac131313@redhat.com>
7615
7616 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7617
37057839
AC
76182002-03-05 Andrew Cagney <ac131313@redhat.com>
7619
7620 * NEWS: Update headings, 5.2 has branched.
7621
c6ecbae5
DJ
76222002-03-04 Daniel Jacobowitz <drow@mvista.com>
7623
7624 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7625 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7626 (register_addr, REGISTER_RAW_SIZE): Likewise.
7627 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7628 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7629
e9f30c21
ML
76302002-03-03 Michal Ludvig <mludvig@suse.cz>
7631
7632 * MAINTAINERS (x86-64): Add myself.
7633 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7634 changed value_ptr -> struct value *
7635
54394ac3
DB
76362002-03-01 David O'Brien <obrien@FreeBSD.org>
7637
7638 * configure.host (sparc64-*-freebsd): Add.
7639 * configure.tgt: Likewise.
7640 * config/sparc/fbsd.mh: New file.
7641 * config/sparc/fbsd.mt: Likewise.
7642 * config/sparc/nm-fbsd.h: Likewise.
7643 * config/sparc/tm-fbsd.h: Likewise.
7644
bfe95955
DJ
76452002-03-01 Daniel Jacobowitz <drow@mvista.com>
7646
7647 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7648 regformats/reg-s390x.dat.
7649
f33c6cbf
AC
76502002-03-01 Andrew Cagney <ac131313@redhat.com>
7651
7652 * utils.c: Add FIXME explaining true/false problem.
7653
5ecaa7dd
AC
76542002-02-28 Andrew Cagney <ac131313@redhat.com>
7655
7656 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7657
2a251cc2
MC
76582002-02-28 Michael Chastain <mec@shout.net>
7659
7660 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7661
6a8031a3 76622002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
7663
7664 * gdbserver/linux-s390-low.c: New file.
7665 * regformats/reg-s390.dat: New file.
7666 * regformats/reg-s390x.dat: New file.
7667 * gdbserver/configure.srv: Add S/390.
7668 * gdbserver/Makefile.in: Add S/390.
7669 * configure.tgt: Enable gdbserver for S/390.
7670
ac469903
EZ
76712002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7672
7673 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7674 first line of the doc string for "info dos", except at the end of
7675 the sentence, since the short help stops at the first period.
7676
985cb1a3
JM
76772002-02-28 Jason Merrill <jason@redhat.com>
7678
7679 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7680
c570663e
FF
76812002-02-27 Fred Fish <fnf@redhat.com>
7682
7683 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7684 comment (dumy -> dummy).
7685
43630227
PS
76862002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7687
7688 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7689
b84911e8
RB
76902002-02-27 Rodney Brown <rbrown64@csc.com.au>
7691
7692 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7693
58caa3dc
DJ
76942002-02-27 Daniel Jacobowitz <drow@mvista.com>
7695
7696 * gdbserver/acconfig.h: New file.
7697 * gdbserver/i387-fp.c: New file.
7698 * gdbserver/i387-fp.h: New file.
7699 * gdbserver/linux-x86-64.c: New file.
7700 * regformats/reg-x86-64.dat: New file.
7701 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7702 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7703 * gdbserver/configure.in: Add support for regsets.
7704 * gdbserver/config.in: Regenerate.
7705 * gdbserver/configure: Regenerate.
7706 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7707 * gdbserver/linux-low.h: New file.
7708 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7709 for regsets.
7710 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7711 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7712 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7713 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7714 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7715 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7716 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7717 "i387-fp.h". Add PTRACE_GETREGS and friends.
7718 * gdbserver/regcache.c (supply_register): New function.
7719 (supply_register_by_name): New function.
7720 (collect_register): New function.
7721 (collect_register_by_name): New function.
7722
93652174
DJ
77232002-02-27 Daniel Jacobowitz <drow@mvista.com>
7724
7725 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7726 (config.status): Add configure.srv dependency.
7727 (server_h): Add config.h dependency.
7728
a02e4a61
DJ
77292002-02-27 Daniel Jacobowitz <drow@mvista.com>
7730
7731 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7732 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7733 * gdbserver/configure.srv: Change i386-*-linux* to use
7734 reg-i386-linux.o.
7735
ce0eebec
AC
77362002-02-26 Andrew Cagney <ac131313@redhat.com>
7737
7738 * x86-64-tdep.c: Re-indent. Update copyright date.
7739
82dbc5f7
AC
77402002-02-26 Andrew Cagney <ac131313@redhat.com>
7741
7742 From Michal Ludvig <mludvig@suse.cz>:
7743 * x86-64-tdep.c (value.h): Delete.
7744 (gdb_assert.h): Include.
7745 (x86_64_register_convert_to_virtual,
7746 x86_64_register_convert_to_raw ): Add check which lets only
7747 floating-point values to be converted.
7748 (value_push): Delete.
7749 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7750 (i386_gdbarch_init): Number of register_bytes fixed.
7751
e4621584
AC
77522002-02-26 Andrew Cagney <ac131313@redhat.com>
7753
7754 * MAINTAINERS: Add x86-64 target.
7755
81a9a963
AC
77562002-02-26 Andrew Cagney <ac131313@redhat.com>
7757
7758 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7759 * osfsolib.c (solib_map_sections): Ditto.
7760 * irix5-nat.c (solib_map_sections): Ditto.
7761 * corelow.c (gdb_check_format): Ditto.
7762 * symfile.c (symfile_bfd_open): Ditto.
7763 * solib.c (solib_map_sections): Ditto.
7764 Fix PR gdb/354.
7e336ba1 7765
0f017ab9
AC
77662002-02-26 Andrew Cagney <ac131313@redhat.com>
7767
7768 * remote.c (_initialize_remote): By default, disable ``e'' and
7769 ``E'' step out-of-range packets.
7770
75738c29
AS
77712002-02-26 Andreas Schwab <schwab@suse.de>
7772
7773 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7774 m68k_linux_frame_saved_pc.
7775 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7776 in_sigtramp.
7777 (SIGCONTEXT_PC_OFFSET): Remove.
7778 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7779 m68k_linux_sigtramp_saved_pc): New functions.
7780 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7781 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7782 (UCONTEXT_PC_OFFSET): Define.
7783 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7784 non-RT and RT signal trampolines.
7785
7e8ed687
RE
77862002-02-26 Richard Earnshaw <rearnsha@arm.com>
7787
7788 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7789 (TARGET_NBPG, STACK_END_ADDR): Delete
7790 (VARIABLES_INSIDE_BLOCK): Delete.
7791
6972bc8b
AC
77922002-02-25 Andrew Cagney <ac131313@redhat.com>
7793
7794 * utils.c (perror_with_name): Make string parameter constant.
7795 (print_sys_errmsg): Ditto.
7796 (query): Ditto.
7797 * defs.h (perror_with_name): Update.
7798 (print_sys_errmsg): Update.
7799 (query): Update.
7800
aa32f823
DJ
78012002-02-25 Daniel Jacobowitz <drow@mvista.com>
7802
7803 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7804 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7805
19caaa45
PS
78062002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7807
7808 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7809 if it already matches the current architecture from the exec file.
7810 Include arch-utils.h for gdbarch_info_init prototype.
7811 * Makefile.in (rs6000-nat.o): Update dependencies.
7812
d951901f
EZ
78132002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7814
7815 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7816 list of exported variables.
7817
7ea81414
DJ
78182002-02-24 Daniel Jacobowitz <drow@mvista.com>
7819
7820 * gdbserver/configure.srv: New file.
7821 * gdbserver/configure.in: Use configure.srv instead
7822 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7823 from it.
7824 * gdbserver/configure: Regenerated.
7825 * gdbserver/terminal.h: New file.
7826 * gdbserver/Makefile.in: Update for configure changes. Remove
7827 more unneeded include paths.
7828
080fe24b
AC
78292002-02-24 Andrew Cagney <ac131313@redhat.com>
7830
7831 From wiz at danbala:
7832 * config/sparc/tm-sp64.h: Fix grammar and typos.
7833 Fix PR gdb/287.
7834
8605d56e
AC
78352002-02-24 Andrew Cagney <ac131313@redhat.com>
7836
7837 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
7838 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7839 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7840 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
7841 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7842 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7843 * s390-tdep.c: Ditto.
92362027
AC
7844 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7845 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7846 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7847 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7848 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7849 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7850 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7851 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7852 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7853 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 7854 Fix PR gdb/378.
7e336ba1 7855
8ed32cc0
AC
78562002-02-23 Andrew Cagney <ac131313@redhat.com>
7857
a3007b6f
AC
7858 * lin-thread.c: Delete file.
7859 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7860 to gdb_proc_service.h.
7861 * configure: Re-generate.
7862
50a9e2f1
AC
7863 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7864 * serial.c (serial_open): Delete check for "ocd".
7865 Fix PR gdb/349.
7866
8b6e7932
AC
7867 * Makefile.in (linux-thread.o): Delete target.
7868 * linux-thread.c: Delete file.
7869
d155c46b
AC
7870 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
7871 renamed SH files to be consistent.
7872
8ed32cc0
AC
7873 * symtab.c (sort_search_symbols): Use xfree.
7874
0e18d038
RE
78752002-02-23 Richard Earnshaw <rearnsha@arm.com>
7876
7877 * arm-linux-tdep.c (arm_linux_init_abi): Register
7878 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7879 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7880 definition with undef, since we don't want the sysvr4 definition.
7881 (SKIP_TRAMPOLINE_CODE): Likewise.
7882
27aac7ff
AC
78832002-02-23 Andrew Cagney <ac131313@redhat.com>
7884
7885 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7886
7887 * configure.in: (AC_CHECK_FUNCS) Added test for
7888 canonicalize_file_name Regenerated.
7889 * config.in, configure: Regenerated.
7890 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7891 defined use canonicalize_file_name.
7e336ba1 7892
65a6e0ee
MC
78932002-02-23 Michael Chastain <mec@shout.net>
7894
7895 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7896
47b95330
AC
78972002-02-23 Andrew Cagney <ac131313@redhat.com>
7898
7899 * README: Remove references to cygnus.com.
7900 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7901 dot com'' form. Remove references to cygnus.com and sourceware.
7902
696f451b
AC
79032002-02-23 Andrew Cagney <ac131313@redhat.com>
7904
7905 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7906 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7907 1003.1-2001 no longer allows "head -1".
7908 * gdb/Makefile.in (version.c): Likewise.
7909 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7910 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7911 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
7912
bbaca940
AC
79132002-02-23 Andrew Cagney <ac131313@redhat.com>
7914
7915 * cli/cli-decode.c (cmd_cfunc_eq): New function.
7916 * command.h (cmd_cfunc_eq): Declare.
7917 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7918
7919 * cli/cli-cmds.h (is_complete_command): Change parameter to a
7920 ``struct cmd_list_element *''.
7921 * cli/cli-cmds.c (is_complete_command): Update. Use
7922 cmd_cfunc_eq.
7923 * top.c (execute_command): Pass the command to
7924 is_complete_command.
7925 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7926
b8b8b047
AC
79272002-02-23 Andrew Cagney <ac131313@redhat.com>
7928
7929 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7930 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7931 architecture defines.
7932 * s390-tdep.c (s390_gdbarch_init): Likewise.
7933
19d3fc80
RE
79342002-02-23 Richard Earnshaw <rearnsha@arm.com>
7935
7936 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7937 (arm_linux_push_arguments): Likewise.
7938 (arm_linux_init_abi): Register them. Also register linux-specific
7939 call_dummy_words.
7940 (find_minsym_and_objfile): Use strcmp, not STREQ.
7941 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7942 (arm_linux_call_dummy_words): Delete declaration.
7943 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7944 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7945 declarations.
7946 (LOWEST_PC): Delete.
7947
3ab13650
PS
79482002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7949
7950 * maint.c (print_section_info): Do not prepend `0x' to filepos
7951 output, it will be handled by local_hex_string_custom.
7952
19d3fc80 79532002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
7954
7955 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7956 (store_newfpe_double, store_newfpe_extended, store_fpregister)
7957 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
7958
d85a5daf
JB
79592002-02-22 Jim Blandy <jimb@redhat.com>
7960
7961 Indicate that the bcache functions don't change the strings
7962 they're passed.
7963 * bcache.h (bcache, hash): Add `const' keywords to declarations.
7964 * bcache.c (bcache, hash): Add `const' keywords to definitions.
7965
eeb25b8a
PM
79662002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
7967
7968 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
7969
6badb179
CF
79702002-02-21 Christopher Faylor <cgf@redhat.com>
7971
7972 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
7973 find the complete path to a loaded DLL.
7974
e8717518
FF
79752002-02-21 Fred Fish <fnf@redhat.com>
7976
7977 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
7978 that marks the end of the range of a function, enter a line number
7979 entry that has a line number of zero and a PC offset that matches
7980 the end of the function. This starts a range of PC's for which no
7981 line number information is known.
7982 * symtab.c (find_pc_sect_line): If our best fit is in a range of
7983 PC's for which no line number info is found (line number is zero)
7984 then we didn't find any valid line information.
7985 * symtab.h: Document use of zero line number entry.
7986
9abe5450
EZ
79872002-02-21 Elena Zannoni <ezannoni@redhat.com>
7988
7989 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
7990 (have_ptrace_getvrregs): Define for run time checks.
7991 (gdb_vrregset_t): New type for Altivec register handling.
7992 (fetch_register, store_register): Fetch/store altivec register
7993 when needed.
7994 (fetch_altivec_register, store_altivec_register): New functions.
7995 (supply_vrregset, fill_vrregset): New functions.
7996 (fetch_altivec_registers, store_altivec_registers): New functions.
7997 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
7998 registers as well.
7999
aaa38bb5
AJ
80002002-02-21 Jiri Smid <smid@suse.cz>
8001
8002 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8003
b34db576
RE
80042002-02-21 Richard Earnshaw <rearnsha@arm.com>
8005
8006 * Makefile.in (armnbsd-nat.o): Update dependencies.
8007 * armnbsd-nat.c (supply_gregset): New function. Common code to
8008 supply the integer register set.
8009 (supply_fparegset): New function. Similar for FPA registers.
8010 (fetch_regs, fetch_fp_regs): Use them.
8011 (fetch_core_registers): Likewise.
8012 (fetch_elfcore_registers): New function.
8013 (arm_netbsd_elfcore_fns): New core-file type specification.
8014 (_initialize_arm_netbsd_nat): Register it.
8015
3e56fc4b
RE
80162002-02-21 Richard Earnshaw <rearnsha@arm.com>
8017
8018 * armnbsd-nat.c: Include gdbcore.h.
8019 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8020 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8021 'void' to declaration, to shut up ARI.
8022 (fetch_core_registers): Make static. Rewrite using supply_register.
8023 (arm_netbsd_core_fns): New core-file type specification.
8024 (_initialize_arm_netbsd_nat): New function.
8025
097f6b0b
CF
80262002-02-21 Christopher Faylor <cgf@redhat.com>
8027
8028 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8029 value.
8030
c914e0cc
CF
80312002-02-20 Christopher Faylor <cgf@redhat.com>
8032
8033 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8034 fails.
8035
385fa495
DJ
80362002-02-20 Daniel Jacobowitz <drow@mvista.com>
8037
8038 * jv-exp.y (parse_number): Change type of implicit longs
8039 to builtin_type_uint64.
8040
e5f1222d
DJ
80412002-02-20 Daniel Jacobowitz <drow@mvista.com>
8042
8043 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8044 to be an integer instead of a `union wait'.
8045
75c9abc6
DJ
80462002-02-20 Daniel Jacobowitz <drow@mvista.com>
8047
8048 * mips-linux-nat.c: Call the operating system GNU/Linux.
8049 * mips-linux-tdep.c: Likewise.
8050 * mips-tdep.c: Likewise.
8051
551792a5
DJ
80522002-02-20 Daniel Jacobowitz <drow@mvista.com>
8053
8054 Fix PR gdb/265.
8055 * jv-exp.y (parse_number): Handle 64-bit integers.
8056
ee6e2b82
DJ
80572002-02-20 Daniel Jacobowitz <drow@mvista.com>
8058
8059 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8060 AC_STDC_HEADERS to AC_HEADER_STDC.
8061 * gdbserver/configure: Regenerated.
8062
a48442a0
RE
80632002-02-20 Richard Earnshaw <rearnsha@arm.com>
8064
8065 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8066 is defined.
8067 * sparc-tdep.c (get_longjmp_target): Likewise.
8068
fe419ffc
RE
80692002-02-20 Richard Earnshaw <rearnsha@arm.com>
8070
8071 * News: Add news about ARM and Multi-arch. Mention the new target
8072 arm*-*-netbsd*.
8073
5832ed7e
JB
80742002-02-19 Jim Blandy <jimb@redhat.com>
8075
8076 * stabsread.c (error_type_complaint): Improve error message.
8077
84563040
DJ
80782002-02-19 Daniel Jacobowitz <drow@mvista.com>
8079
8080 * gdbserver/README: Update documentation.
8081 * gdbserver/configure.in: Update configury to match documentation.
8082 * gdbserver/Makefile.in: Likewise.
8083 * gdbserver/configure: Regenerated.
8084 * gdbserver/aclocal.m4: New file, generated by aclocal.
8085 * gdbserver/config.in: New file, generated by autoheader.
8086
375fd65b
RE
80872002-02-19 Richard Earnshaw <rearnsha@arm.com>
8088
8089 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8090 armnbsd-nat.c.
8091
08216dd7
RE
80922002-02-19 Richard Earnshaw <rearnsha@arm.com>
8093
8094 * arm-tdep.h (enum arm_float_model): New enum.
8095 (struct gdbarch_tdep): Add fp_model.
8096 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8097 up floating-point conversions until we know the floating-point model
8098 in use by the inferior. Don't complain about being unable to
8099 determine the ABI of the inferior when we don't have one.
8100 (arm_extract_return_value): Support different floating-point models.
8101 (arm_store_return_value): Likewise.
aaa38bb5 8102 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
8103 ARM_FLOAT_SOFT.
8104 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8105
65d6d66a
PS
81062002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8107
8108 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8109 of ``current_gdbarch''.
8110
47221191
RE
81112002-02-19 Richard Earnshaw <rearnsha@arm.com>
8112
8113 * armnbsd-nat.c : ANSIfy all function declarations.
8114 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8115 (fetch_inferior_registers): Re-implement in terms of above.
8116 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8117 (store_inferior_registers): Re-implement in terms of above.
8118
fdf39c9a
RE
81192002-02-19 Richard Earnshaw <rearnsha@arm.com>
8120
aaa38bb5 8121 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
8122 kernel.
8123 * arm-linux-tdep.c: Likewise.
8124 * config/arm/tm-linux.h: Likewise.
8125
93247f88
RE
81262002-02-19 Richard Earnshaw <rearnsha@arm.com>
8127
8128 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8129 * config/arm/nbsd.mt (TM_FILE): Delete.
8130 * config/arm/tm-nbsd.h: Delete.
8131
d7b486e7
RE
81322002-02-19 Richard Earnshaw <rearnsha@arm.com>
8133
8134 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8135 Initialize CALL_DUMMY_LENGTH.
8136
41d39a95
RE
81372002-02-19 Richard Earnshaw <rearnsha@arm.com>
8138
8139 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8140 function.
8141 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 8142 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
8143 defines one thing and that is incorrect for this port.
8144 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8145
e1195560
PM
81462002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8147
8148 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8149
c1748f97
PM
81502002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8151
8152 * win32-nat.c (display_selector): New function. Displays information
8153 about the information returned by GetThreadSelectorEntry API function.
8154 (display_selectors): New function. Displays the infomation of
8155 the selector given as argument, or of CS, DS ans FS selectors
8156 if no argument is given.
8157 ( _initialize_inftarg): Add "w32" as info prefix command.
8158 Add "info w32 selector" as command calling display_selectors.
8159
e41e6bbf
PM
81602002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8161
8162 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8163 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8164 if not defined.
8165
0d3a9f48
RE
81662002-02-18 Richard Earnshaw <rearnsha@arm.com>
8167
8168 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8169
3fb4b924
RE
81702002-02-18 Richard Earnshaw <rearnsha@arm.com>
8171
8172 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8173 (arm_fix_call_dummy): Call it.
8174 (arm_call_dummy_breakpoint_offset): Delete.
8175 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8176 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8177
7f55af32
AC
81782002-02-18 Andrew Cagney <ac131313@redhat.com>
8179
8180 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8181 Default to func_frame_chain_valid.
8182 * gdbarch.h, gdbarch.c: Re-generate.
8183 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8184
05f13b9c
EZ
81852002-02-18 Elena Zannoni <ezannoni@redhat.com>
8186
8187 * ppc-linux-nat.c: Update copyright.
8188 (fetch_register, store_register): Add tid parameter, don't compute
8189 tid here.
8190 (fetch_ppc_registers, store_ppc_registers): Add tid
8191 parameter. Pass it along to callees.
8192 (fetch_inferior_registers, store_inferior_registers): Compute tid
8193 here, and pass it to calleed functions.
8194 (fill_gregset, supply_fpregset): Clean up formatting.
8195
d7afb4c9
RE
81962002-02-18 Richard Earnshaw <rearnsha@arm.com>
8197
8198 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8199 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8200
9df628e0
RE
82012002-02-18 Richard Earnshaw <rearnsha@arm.com>
8202
8203 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8204 * gdbarch.c gdbarch.h: Regenerate.
8205 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8206 function.
8207 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8208 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8209 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8210
8211 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8212 * arm-tdep.c (arm_get_longjmp_target): New function.
8213 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8214 this to a positive value register arm_get_longjmp_target as the
8215 longjmp handler.
8216 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8217 (arm_linux_init_abi): Set up longjmp description in tdep.
8218 * armnbsd-nat.c (get_longjmp_target): Delete.
8219 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8220 description in tdep.
8221 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8222 (get_longjmp_target): Delete declaration.
8223 (GET_LONGJMP_TARGET): Delete.
8224 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8225 (GET_LONGJMP_TARGET): Delete.
8226
57bc8964
KB
82272002-02-17 Kevin Buettner <kevinb@redhat.com>
8228
8229 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8230 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8231 of ``current_gdbarch''.
8232
83d31a92
TT
82332002-02-17 Tom Tromey <tromey@redhat.com>
8234
8235 * cli/cli-cmds.c (compare_strings): New function.
8236 (complete_command): Only print each unique item once.
8237 * completer.h (complete_line): Declare.
8238 * completer.c (complete_line): New function.
8239 (line_completion_function): Use it.
8240
17ef5d92
AC
82412002-02-16 Andrew Cagney <ac131313@redhat.com>
8242
8243 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8244 * gdbarch.h, gdbarch.c: Re-generate.
8245
491b8946
DJ
82462002-02-16 Daniel Jacobowitz <drow@mvista.com>
8247
8248 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8249
82502002-02-16 Daniel Jacobowitz <drow@mvista.com>
8251
8252 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8253 * valops.c (value_arg_coerce): Don't take the address of a reference
8254 to convert an argument to a reference.
8255
dfe7f3ac
CF
82562002-02-15 Christopher Faylor <cgf@redhat.com>
8257
8258 * win32-nat.c (get_image_name): New function.
8259 (handle_load_dll): Use get_image_name function.
8260 (get_child_debug_event): Avoid registering debug events until possibly
8261 execed process is started.
8262 (child_create_inferior): Allow invocation via shell so that command
8263 line redirection, etc. works ok.
8264 (_initialize_inftarg): Add new command: "set shell" to control whether
8265 a shell is used to start a process.
8266
1d33e73a
DJ
82672002-02-15 Daniel Jacobowitz <drow@mvista.com>
8268
8269 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8270 instead of find_register_by_number.
8271 (cannot_store_register): Likewise.
8272
48cd0caa
PM
82732002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8274
aaa38bb5 8275 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
8276 fprintf_unfiltered (gdb_stderr, ...).
8277
8656e7d8
DJ
82782002-02-15 Daniel Jacobowitz <drow@mvista.com>
8279
8280 * gdbserver/gdbserver.1: Document --attach.
8281
66e810cd
RE
82822002-02-15 Richard Earnshaw <rearnsha@arm.com>
8283
8284 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8285 descriptions.
8286 * arm-tdep.c (arm_default_arm_le_breakpoint)
8287 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8288 (arm_default_thumb_be_breakpoint): New. Initialize them from
8289 traditional breakpoint defines.
8290 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8291 (arm_gdbarch_init): Initialize new breakpoint variables.
8292 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8293 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8294 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8295 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8296 code out to ...
8297 (arm_netbsd_init_abi_common): ... here; new function.
8298 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8299 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8300 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8301 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8302
97e03143
RE
83032002-02-15 Richard Earnshaw <rearnsha@arm.com>
8304
8305 * arm-tdep.h (enum arm_abi): New enum.
8306 (struct gdbarch_tdep): New structure.
8307 (LOWEST_PC): Provide a default.
8308 (arm_gdbarch_register_os_abi): Declare new function.
8309 * arm-tdep.c (arm_abi_names): New array.
8310 (process_note_abi_tag_sections): New function.
8311 (get_elfosabi): New function.
8312 (arm_gdbarch_register_os_abi): New function.
8313 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8314 support for that ABI has been built in, then call the appropriate
8315 configuration routine. Use gdbarch_num_regs() to get the number
8316 of registers.
8317 (arm_dump_tdep): New function.
8318 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8319 place-holder functions.
8320 (_initialize_arm_tdep): Register them.
8321 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8322
8323 * armnbsd-tdep.c: New file.
8324 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8325 * config/arm/nbsd.mt (TDEPFILES): Add it.
8326 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8327
8328 * armnbsd-nat.c: Include regcache.h.
8329 * Makefile.in (armnbsd-nat.o): Update dependency list.
8330
8331 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8332
ad68be46
DJ
83332002-02-14 Daniel Jacobowitz <drow@mvista.com>
8334
8335 * gdbserver/Makefile.in: Fix typos in target rules.
8336
003d6d1d
DJ
83372002-02-14 Daniel Jacobowitz <drow@mvista.com>
8338
aaa38bb5 8339 Fix part of PR gdb/267.
003d6d1d
DJ
8340 * linespec.c (find_methods): Handle constructors specially for now.
8341
6b230f1b
CV
83422002-02-14 Corinna Vinschen <vinschen@redhat.com>
8343
8344 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8345 handling.
8346 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8347 standard_coerce_float_to_double().
8348
1ea98d12
CF
83492002-02-14 Christopher Faylor <cgf@redhat.com>
8350
8351 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8352 GDBINIT_FILENAME.
8353
dd47e6fd
EZ
83542002-02-14 Elena Zannoni <ezannoni@redhat.com>
8355
8356 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8357 find_variant_by_name, because it confuses the multiarch
8358 framework. Return NULL if there isn't an architecture with the
8359 user supplied name, instead of forcing a different one without
8360 recording the change with the multiarch machinery.
8361 (find_variant_by_name): Delete.
8362
d7e39b9e
PS
83632002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8364
8365 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8366 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8367
76e42a4f
MH
83682002-02-13 Martin M. Hunt <hunt@redhat.com>
8369
aaa38bb5 8370 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
8371 print_frame_info_listing_hook, set current_source_symtab.
8372
0a30fbc4
DJ
83732002-02-14 Daniel Jacobowitz <drow@mvista.com>
8374
8375 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8376 and remove unused $(INCLUDE_DIR).
8377 Add regcache.c to OBS.
8378 Add generated register protocol files to clean target.
8379 Update dependencies for new objects, obsolete old target code.
8380
8381 * gdbserver/linux-low.c: Remove all platform-specific code to
8382 new files. Remove various dead code. Update to use regcache
8383 functionality.
8384 * gdbserver/remote-utils.c (fromhex): Add return statement
8385 to quiet warning.
8386 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8387 constant.
8388 (input_interrupt): Add integer parameter to match prototype
8389 of a signal handler.
8390 (outreg): Use register_data ().
8391 (prepare_resume_reply): Use gdbserver_expedite_regs.
8392 * gdbserver/server.c (main): Dynamically allocate own_buf because
8393 PBUFSIZ is no longer constant. Use registers_to_string () and
8394 registers_from_string ().
8395 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8396 for error (), fatal (), and warning (). Update definition of
8397 PBUFSIZ to use regcache functionality. Add include guard.
8398 * gdbserver/utils.c (fatal): Add missing ``const''.
8399 (warning): New function.
8400
8401 * regformats/regdat.sh: Include "regcache.h" in generated files.
8402 Provide init_registers () function.
8403 * regformats/regdef.h: Add prototype for set_register_cache ().
8404 Add include guard.
8405
8406 * gdbserver/linux-arm-low.c: New file.
8407 * gdbserver/linux-i386-low.c: New file.
8408 * gdbserver/linux-ia64-low.c: New file.
8409 * gdbserver/linux-m68k-low.c: New file.
8410 * gdbserver/linux-mips-low.c: New file.
8411 * gdbserver/linux-ppc-low.c: New file.
8412 * gdbserver/linux-sh-low.c: New file.
8413
8414 * gdbserver/regcache.c: New file.
8415 * gdbserver/regcache.h: New file.
8416
8417 * gdbserver/low-linux.c: Removed obsolete file.
8418
4cc841d0
DJ
84192002-02-14 Daniel Jacobowitz <drow@mvista.com>
8420
8421 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8422 * config/i386/linux.mt: Likewise.
8423 * config/ia64/linux.mt: Likewise.
8424 * config/m68k/linux.mh: Likewise.
8425 * config/powerpc/linux.mh: Likewise.
8426 * config/mips/linux.mt: Likewise.
8427
8428 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8429
8430 * config/i386/i386lynx.mh: Mark gdbserver variables
8431 as (currently) obsolete for this target.
8432 * config/i386/nbsd.mt: Likewise.
8433 * config/i386/nbsdelf.mt: Likewise.
8434 * config/m32r/m32r.mt: Likewise.
8435 * config/m68k/m68klynx.mh: Likewise.
8436 * config/m68k/nbsd.mt: Likewise.
8437 * config/m68k/sun3os4.mh: Likewise.
8438 * config/mips/vr5000.mt: Likewise.
8439 * config/ns32k/nbsd.mt: Likewise.
8440 * config/pa/hppabsd.mh: Likewise.
8441 * config/pa/hppaosf.mh: Likewise.
8442 * config/powerpc/nbsd.mt: Likewise.
8443 * config/rs6000/rs6000lynx.mh: Likewise.
8444 * config/s390/s390.mt: Likewise.
8445 * config/s390/s390x.mt: Likewise.
8446 * config/sparc/sparclynx.mh: Likewise.
8447 * config/sparc/sun4os4.mh: Likewise.
8448 * config/i386/x86-64linux.mt: Likewise.
8449 * config/sparc/linux.mh: Likewise.
8450
a85f51e7
DJ
84512002-02-14 Daniel Jacobowitz <drow@mvista.com>
8452
8453 * configure.tgt: Configure gdbserver only for known working
8454 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8455 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8456 SUBDIRS if it is configured. Update comment for ${nativefile}.
8457 * configure: Regenerated.
8458
65554fef
MS
84592002-02-13 Michael Snyder <msnyder@redhat.com>
8460
670a52db
MS
8461 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8462
6dbdc4a3
MS
8463 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8464 (default_gcore_mach): Just return 0, work around a problem in bfd.
8465 (default_gcore_target): OK to return NULL if exec_bfd is null.
8466 (make_mem_sec): Use a cast, avoid a warning.
8467
8468 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 8469 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
8470 sizeof (host pointer) != sizeof (target pointer)).
8471 (procfs_make_note_section): Avoid overflow in psargs string.
8472
aaa38bb5 8473 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
8474 implementation return an error.
8475
84762002-02-13 Rodney Brown <rbrown64@csc.com.au>
8477
8478 * procfs.c (procfs_make_note_section): Provide a default definition
8479 (for alpha-dec-osf4.0f). Fix typos.
8480
1e4d76e7
EZ
84812002-02-13 Elena Zannoni <ezannoni@redhat.com>
8482
8483 * linux-proc.c: Add include of regcache.h.
8484 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8485
b6d1a1d5
AC
84862002-02-13 Andrew Cagney <ac131313@redhat.com>
8487
8488 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
8489 * memattr.c (create_mem_region): Disallow useless empty region.
8490 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 8491 non-overlapping.
b6d1a1d5 8492
6c6ea35e
MC
84932002-02-13 Michael Chastain <mec@shout.net>
8494
8495 * defs.h: Kill CONST_PTR.
8496 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8497 * c-lang.c (c_builtin_types): Likewise.
8498 * ch-lang.c (ch_builtin_types): Likewise.
8499 * f-lang.c (f_builtin_types): Likewise.
8500 * language.c (unknown_builtin_types): Likewise.
8501 * m2-lang.c (m2_builtin_types): Likewise.
8502 * p-lang.c (pascal_builtin_types): Likewise.
8503 * scm-lang.c (c_builtin_types): Likewise.
8504
3e0b0f48
KS
85052002-02-13 Keith Seitz <keiths@redhat.com>
8506
8507 * arm-tdep.h (arm_get_next_pc): Add declaration.
8508
67255d04
RE
85092002-02-13 Richard Earnshaw <rearnsha@arm.com>
8510
8511 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8512 with other related struct-returning functions.
8513 (arm_extract_struct_value_address): New function.
8514 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8515 initialize float_format, double_format and long_double_format as
8516 appropriate to the endianness of the target.
8517 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8518 (arm_use_struct_convention): Delete declaration.
8519 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8520
079777f6
KS
85212002-02-13 Keith Seitz <keiths@redhat.com>
8522
8523 * defs.h (core_addr_to_string_nz): New function.
8524
34588f23
MK
85252002-02-13 Mark Kettenis <kettenis@gnu.org>
8526
8527 Apply missing bits of 2002-01-15 patch.
8528 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8529 (fill_fpregset): Use i387_fill_fsave.
8530
49b563f9
KS
85312002-02-12 Keith Seitz <keiths@redhat.com>
8532
49b563f9
KS
8533 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8534 (core_addr_to_string_nz): New function.
8535
aeb98c60
RE
85362002-02-11 Richard Earnshaw <rearnsha@arm.com>
8537
8538 * arm-linux-nat.c: Really include arm-tdep.h.
8539 * config/arm/tm-linux.h (struct type, struct value): Declare.
8540
65554fef
MS
85412002-02-11 Michael Snyder <msnyder@redhat.com>
8542
8543 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8544 (gcore section): Ifdef for Solaris and Unixware only.
8545 (procfs_do_thread_registers): Unixware needs one lwpstatus
8546 per thread (not one prstatus or pstatus).
8547 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8548 not over all gdb threads. For unixware, call elfcore_write_pstatus
8549 once before iterating over threads.
8550
34e8f22d
RE
85512002-02-11 Richard Earnshaw <rearnsha@arm.com>
8552
8553 * arm-tdep.h: New file.
8554 * arm-tdep.c: Include arm-tdep.h.
8555 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8556 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8557 (arm_print_float_info, arm_register_type, convert_to_extended)
8558 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8559 (arm_extract_return_value, arm_register_name): Make static.
8560 (arm_software_single_step): Similarly. Fix types in declaration.
8561 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8562 (arm_store_return_value, arm_store_struct_return): New functions.
8563 (arm_gdbarch_init): Register the above functions. Also register
8564 call_dummy_start_offset, sizeof_call_dummy_words,
8565 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8566 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 8567 max_register_virtual_size, register_size. Set up
34e8f22d
RE
8568 prologue_cache.saved_regs here, rather than ...
8569 (_initialize_arm_tdep): ... here.
8570 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8571 declarations.
8572 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8573 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8574 (arm_print_float_info, arm_register_type, convert_to_extended)
8575 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8576 (arm_extract_return_value, arm_register_name): Delete declarations.
8577 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8578 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8579 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8580 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8581 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8582 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8583 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8584 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8585 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8586 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8587 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8588 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8589 interface.
8590 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8591 * remote-rdi.c remote-rdp.c: Likewise.
8592 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8593 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8594 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8595 definition.
8596
8597 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8598 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8599 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8600 from non-ARM_ prefixed definitions.
8601 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8602 all uses of above.
8603 * remote-rdi.c remote-rdp.c: Likewise.
8604 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8605
148754e5
RE
86062002-02-11 Richard Earnshaw <rearnsha@arm.com>
8607
8608 * arm-tdep.c (arm_frameless_function_invocation)
8609 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8610 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8611 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8612 (arm_pop_frame, arm_get_next_pc): Make static.
8613 (arm_gdbarch_init): Register above in gdbarch structure.
8614 (arm_read_fp): Renamed from arm_target_read_fp.
8615 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8616 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8617 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8618 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8619 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8620 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8621 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
8622 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8623 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8624 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8625 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 8626
434d2d4f
DJ
86272002-02-10 Daniel Jacobowitz <drow@mvista.com>
8628
8629 * symtab.c (compare_search_syms): New function.
8630 (sort_search_symbols): New function.
8631 (search_symbols): Sort symbols after searching rather than
8632 before.
8633
55241689
AC
86342002-02-10 Andrew Cagney <ac131313@redhat.com>
8635
8636 * NEWS: Linux -> GNU/Linux.
8637
028c194b
AC
86382002-02-10 Andrew Cagney <ac131313@redhat.com>
8639
8640 * gdbarch.sh: For for level one methods, disallow a definition
8641 when partially multi-arched. Add comments explaining rationale.
8642 * gdbarch.h: Re-generate.
8643
6acf50cd
AC
86442002-02-10 Andrew Cagney <ac131313@redhat.com>
8645
8646 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8647 multi-arch partial.
aaa38bb5 8648
50248794
AC
86492002-02-10 Andrew Cagney <ac131313@redhat.com>
8650
8651 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8652 field. Use diff -u.
8653 * gdbarch.c: Re-generate.
8654
c30e0066
AC
86552002-02-10 Andrew Cagney <ac131313@redhat.com>
8656
9b56c5f3 8657 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
8658 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8659 partial.
8660
6e6d6484
AC
86612002-02-10 Andrew Cagney <ac131313@redhat.com>
8662
8663 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8664 multi-arch partial.
8665 (PUSH_ARGUMENTS): Switch to using predefault.
8666 * gdbarch.c: Regenerate.
8667
c203844d
AC
86682002-02-10 Andrew Cagney <ac131313@redhat.com>
8669
8670 * valops.c (PUSH_ARGUMENTS): Delete definition.
8671 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8672 partial. Default to default_push_arguments.
8673 * gdbarch.h, gdbarch.c: Regenerate.
8674
b5a2688f
AC
86752002-02-09 Andrew Cagney <ac131313@redhat.com>
8676
8677 * defs.h (throw_exception): Rename return_to_top_level. Update
8678 comments.
8679 * utils.c (error_stream, internal_verror, quit): Ditto.
8680 * top.c (throw_exception, catcher): Ditto.
8681 * sparclet-rom.c (sparclet_load): Ditto.
8682 * remote.c (interrupt_query, minitelnet): Ditto.
8683 * remote-sds.c (interrupt_query): Ditto.
8684 * remote-mips.c (mips_error, mips_kill): Ditto.
8685 * ocd.c (interrupt_query): Ditto.
8686 * monitor.c (monitor_interrupt_query): Ditto.
8687 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8688 * target.h: Update comment.
aaa38bb5 8689
b5a2688f 8690 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 8691
2fa5c1e0
AC
86922002-02-09 Andrew Cagney <ac131313@redhat.com>
8693
8694 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8695 default_double_format.
8696 * gdbarch.h, gdbarch.c: Re-generate.
8697 * findvar.c (floatformat_unknown): Delete variable definition.
8698 * doublest.h (floatformat_unknown): Delete variable declaration.
8699
da966255
JB
87002002-02-09 Jim Blandy <jimb@redhat.com>
8701
8702 * stabsread.c (read_type): Add code to parse Sun's syntax for
8703 prototyped function types.
8704
123a4891
AC
87052002-02-09 Andrew Cagney <ac131313@redhat.com>
8706
8707 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8708 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8709
fb39c8f3
PS
87102002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8711
8712 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8713 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8714 now _initialize_xcoffsolib gets called again and overrides the
8715 commands from solib.c in a native configuration.
8716
0b87a11d
MK
87172002-02-09 Mark Kettenis <kettenis@gnu.org>
8718
8719 * doublest.c (store_typed_floating): Don't try to return a value.
8720 Fixes PR gdb/290.
8721
bdc2fc72
JB
87222002-02-08 Jim Blandy <jimb@redhat.com>
8723
8724 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8725 is prototyped and has no arguments, print its argument list as
8726 `(void)'.
8727
da69bbcf
CD
87282002-02-08 Chris Demetriou <cgd@broadcom.com>
8729
8730 * MAINTAINERS (write-after-approval): Add myself.
8731 (paper-trail): I've escaped!
aaa38bb5 8732
b69571f5
CF
87332002-02-08 Christopher Faylor <cgf@redhat.com>
8734
8735 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8736 changes.
8737 (_initialize_check_for_gdb_ini): Ditto.
8738
f6871398
MH
87392002-02-08 Martin M. Hunt <hunt@redhat.com>
8740
8741 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8742 xaprintf -> xasprintf.
8743
4e52d31c
PM
87442002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8745
8746 * win32-nat.c: Remove use of printf and sprintf functions.
8747
39bbf761
RE
87482002-02-08 Richard Earnshaw <rearnsha@arm.com>
8749
8750 * arm-tdep.c (arm_frame_chain_valid): Make static.
8751 (arm_push_arguments): Likewise.
8752 (arm_gdbarch_init): New function.
8753 (_initialize_arm_tdep): Call it.
8754 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8755 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8756 (FRAME_CHAIN_VALID): Delete.
8757 (arm_frame_chain_valid): Delete declaration.
8758 (PUSH_ARGUMENTS): Delete.
8759 (arm_push_arguments): Delete declaration.
8760 (CALL_DUMMY_P): Delete.
8761
9c9532c9
CV
87622002-02-08 Andrew Cagney <ac131313@redhat.com>
8763 Corinna Vinschen <vinschen@redhat.com>
8764
8765 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8766 on builtin float types.
8767
4e8f7a8b
DJ
87682002-02-08 Daniel Jacobowitz <drow@mvista.com>
8769
8770 * utils.c: Include <curses.h> before "bfd.h".
8771 * tui/tui-hooks.c: Likewise.
8772 * tui/tui.c: Likewise.
8773 * tui/tuiCommand.c: Likewise.
8774 * tui/tuiData.c: Likewise.
8775 * tui/tuiDataWin.c: Likewise.
8776 * tui/tuiDisassem.c: Likewise.
8777 * tui/tuiGeneralWin.c: Likewise.
8778 * tui/tuiIO.c: Likewise.
8779 * tui/tuiLayout.c: Likewise.
8780 * tui/tuiRegs.c: Likewise.
8781 * tui/tuiSource.c: Likewise.
8782 * tui/tuiSourceWin.c: Likewise.
8783 * tui/tuiStack.c: Likewise.
8784 * tui/tuiWin.c: Likewise.
8785
cd4bffcf
EZ
87862002-02-07 Elena Zannoni <ezannoni@redhat.com>
8787
8788 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8789 to include space for pseudoregs as well. Update loops accordingly.
8790 (sh_fp_frame_init_saved_regs): Ditto.
8791 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8792
26806ce2
AC
87932002-02-07 Andrew Cagney <ac131313@redhat.com>
8794
8795 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8796 Add Richard Earnshaw to Arm maintainers.
8797
97fdab62
AC
87982002-02-07 Andrew Cagney <ac131313@redhat.com>
8799
a6b98203
AC
8800 * defs.h (warning_begin): Delete declaration.
8801
97fdab62
AC
8802 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8803 Delete macro.
8804
78b29b40
MS
88052002-02-07 Michael Snyder <msnyder@redhat.com>
8806
aaa38bb5 8807 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
8808 Logic bug, remove misplaced else.
8809
d8849953
KD
88102002-02-07 Klee Dienes <klee@apple.com>
8811
8812 * fork-inferior.c (fork_inferior): Add '!' to the list of
8813 characters that need to be quoted when building a string for the
8814 shell. Quote '!' specifically with a backslash, since CSH chokes
8815 when trying to evaluate "str!str".
aaa38bb5 8816
095778a0
NC
88172002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8818
8819 * rdi-share/host.h: Only provide a typedef for bool if it is not
8820 defined.
8821
1900040c
MS
88222002-02-04 Michael Snyder <msnyder@redhat.com>
8823
8824 * breakpoint.h (enum bptype): Add new overlay event bp type.
8825 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 8826
1900040c
MS
8827 * breakpoint.c (create_internal_breakpoint): New function.
8828 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8829 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8830 (create_thread_event_breakpoint): Ditto.
8831 (create_solib_event_breakpoint): Ditto.
8832 (create_overlay_event_breakpoint): New function.
8833 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8834 (update_breakpoints_after_exec): Delete and re-initialize
8835 overlay event breakpoints after an exec. Add FIXME comment
8836 about longjmp breakpoint.
8837 (print_it_typical): Ignore overlay event breakpoints.
8838 (print_one_breakpoint): Ditto.
8839 (mention): Ditto.
8840 (bpstat_what): Do not stop for overlay event breakpoints.
8841 (delete_breakpoint): Don't delete overlay event breakpoints.
8842 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8843 (breakpoint_re_set): Re-create overlay event breakpoint.
8844
8845 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8846 (overlay_manual_command): Disable overlay breakpoints.
8847 (overlay_off_command): Disable overlay breakpoints.
8848
082fc60d
RE
88492002-02-06 Richard Earnshaw <rearnsha@arm.com>
8850
8851 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8852 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8853 to here from config/tm-arm.h.
8854 (coff_sym_is_thumb): Make static.
8855 (arm_elf_make_msymbol_special): New function.
8856 (arm_coff_make_msymbol_special): New function.
8857 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8858 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8859 (coff_sym_is_thumb): Delete declaration.
8860 (arm_elf_make_msymbol_special): Declare.
8861 (arm_coff_make_msymbol_special): Declare.
8862 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8863 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8864
039c5766
RE
88652002-02-06 Richard Earnshaw <rearnsha@arm.com>
8866
8867 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8868
88692002-02-06 Richard Earnshaw <rearnsha@arm.com>
8870
8871 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8872 * gdbarch.c gdbarch.h: Regenerate.
8873 * arch-utils.c (default_print_float_info): New function.
8874 * arch-utils.h (default_print_float_info): Prototype it.
8875 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8876 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8877 (PRINT_FLOAT_INFO): Document it.
8878
8879 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8880 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8881 (PRINT_FLOAT_INFO): Define.
8882
58fa08f0
PM
88832002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8884
aaa38bb5 8885 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
8886 Add typecast to sprintf argument to suppress a warning.
8887
7393af7c
PM
88882002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
8889
58fa08f0 8890 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
8891 to allow easier handling of pass state.
8892 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8893 that gives exception name and address.
8894 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 8895 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 8896 exceptions added.
aaa38bb5
AJ
8897 (child_continue): Correctly report continue_status.
8898 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 8899 TARGET_SIGNAL_0 (new default value).
aaa38bb5 8900 (child_resume): consider sig argument passed to decide if
7393af7c
PM
8901 the exception should be passed to debuggee or not.
8902
6af4589c
MS
89032002-02-05 Michael Snyder <msnyder@redhat.com>
8904
8905 * regcache.c (fetch_register): Call target_fetch_register
8906 only if we don't call FETCH_PSEUDO_REGISTER.
8907 (store_register): Call target_store_register only if we
8908 don't call STORE_PSEUDO_REGISTER.
8909
a2cf933a
EZ
89102002-02-05 Elena Zannoni <ezannoni@redhat.com>
8911
8912 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8913 ELF_MAKE_MSYMBOL_SPECIAL.
8914 * gdbarch.c, gdbarch.h: Regenerate.
8915 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 8916 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
8917 * elfread.c (elf_symtab_read): Compile use of
8918 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8919 multiarched.
8920 * coffread.c (coff_symtab_read): Ditto, for
8921 COFF_MAKE_MSYMBOL_SPECIAL.
8922
6bb7be43
JB
89232002-02-05 Jim Blandy <jimb@redhat.com>
8924
8925 * solib-svr4.c (svr4_truncate_ptr): New function.
8926 (svr4_relocate_section_addresses): Do the address arithmetic with
8927 the appropriate truncation for target addresses, even when
8928 CORE_ADDR is larger than a target address.
8929
e18651ec
DJ
89302002-02-05 Daniel Jacobowitz <drow@mvista.com>
8931
8932 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8933 to (int *).
8934
6b2725be
DJ
89352002-02-05 Daniel Jacobowitz <drow@mvista.com>
8936
8937 * gdbserver/linux-low.c (kill_inferior): Remove commented out
8938 code.
8939
fca9e603
DJ
89402002-02-05 Daniel Jacobowitz <drow@mvista.com>
8941
8942 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8943
6c537a52
DJ
89442002-02-05 Daniel Jacobowitz <drow@mvista.com>
8945
8946 * gdbserver/linux-low.c: Remove unused include files.
8947
d844cde6
DJ
89482002-02-05 Daniel Jacobowitz <drow@mvista.com>
8949
8950 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8951 (read_inferior_memory): Use it.
8952 (write_inferior_memory): Likewise.
8953
d07c63e7
DJ
89542002-02-05 Daniel Jacobowitz <drow@mvista.com>
8955
8956 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8957 grubbing through sys_errlist.
8958
da6d8c04
DJ
89592002-02-05 Daniel Jacobowitz <drow@mvista.com>
8960
8961 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
8962
5b421780
PM
89632002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8964 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
8965
9f60d481
AC
89662002-02-04 Andrew Cagney <ac131313@redhat.com>
8967
8968 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
8969 (do_sfunc, set_cmd_sfunc): New functions.
8970
8971 * command.h (struct cmd_list_element): Add field func.
8972 * cli/cli-decode.h (struct cmd_list_element): Ditto.
8973 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
8974 * cli/cli-decode.h: Ditto.
8975
8976 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
8977 (help_all, help_cmd_list): Ditto.
8978 (find_cmd, complete_on_cmdlist): Ditto.
8979 * top.c (execute_command): Ditto.
8980
8981 * cli/cli-setshow.c (do_setshow_command): Call func instead of
8982 function.sfunc.
8983
8984 * infcmd.c (notice_args_read): Fix function signature.
8985
8986 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
8987 * cli/cli-decode.c (add_set_cmd): Ditto.
8988 * utils.c (initialize_utils): Ditto.
8989 * maint.c (_initialize_maint_cmds): Ditto.
8990 * infrun.c (_initialize_infrun): Ditto.
8991 * demangle.c (_initialize_demangler): Ditto.
8992 * remote.c (add_packet_config_cmd): Ditto.
8993 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8994 * cris-tdep.c (_initialize_cris_tdep): Ditto.
8995 * proc-api.c (_initialize_proc_api): Ditto.
8996 * kod.c (_initialize_kod): Ditto.
8997 * valprint.c (_initialize_valprint): Ditto.
8998 * top.c (init_main): Ditto.
8999 * infcmd.c (_initialize_infcmd): Ditto.
9000 * corefile.c (_initialize_core): Ditto.
9001 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9002 * arch-utils.c (initialize_current_architecture): Ditto.
9003 (_initialize_gdbarch_utils): Ditto.
9004 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9005
9006 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9007 * wince.c (_initialize_inftarg): Ditto.
9008 * symfile.c (_initialize_symfile): Ditto.
9009 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9010 * language.c (_initialize_language): Ditto.
9011 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9012
f9ba0717
MS
90132002-02-04 Michael Snyder <msnyder@redhat.com>
9014
9015 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9016
0c74b2a7
DJ
90172002-02-04 Daniel Jacobowitz <drow@mvista.com>
9018
9019 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9020 Add rules for building the register data files.
9021
c638789f
DJ
90222002-02-04 Daniel Jacobowitz <drow@mvista.com>
9023
9024 * regformats/regdat.sh: Add braces to the definition of
9025 expedite_regs_${arch}.
9026
db253027
DJ
90272002-02-04 Daniel Jacobowitz <drow@mvista.com>
9028
9029 * regformats/regdef.h (struct reg): Add comment describing the
9030 requirements for offset and size fields.
9031
206be19c
AS
90322002-02-04 Andreas Schwab <schwab@suse.de>
9033
9034 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9035 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9036
181c1381
RE
90372002-02-04 Richard Earnshaw <rearnsha@arm.com>
9038
9039 * gdbarch.sh (copyright): Update years in generated header.
9040 (SMASH_TEXT_ADDRESS): Add rule.
db253027 9041 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
9042 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9043 * dbxread.c: Likewise.
9044 * dwarfread.c: Likewise.
9045 * elfread.c: Likewise.
9046 * somread.c: Likewise.
9047
9048 * arm-tdep.c (arm_smash_text_address): New function.
9049 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9050
fa4ba8da
PM
90512002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9052
9053 Add support for hardware watchpoints on win32 native.
aaa38bb5 9054 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 9055 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 9056 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
9057 of debug registers.
9058 (debug_registers_changed): New variable. Reflects when debug registers
9059 are changed and need to be written to inferior.
aaa38bb5 9060 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
9061 was set, used when new threads are created.
9062 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9063 i386-nat code.
9064 (thread_rec): Set dr array if id is the thread of current_event .
9065 (child_continue, child_resume): Change the debug registers for all
9066 threads if debug_registers_changed.
9067 (child_add_thread): Change the debug registers if debug_registers_used.
9068 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9069 Link nm.h to new nm-cygwin.h file.
9070 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9071 of hardware registers.
9072
a73c86fb
AC
90732002-02-03 Andrew Cagney <ac131313@redhat.com>
9074
9075 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9076 Restore behavour broken by 2002-01-20 Andrew Cagney
9077 <ac131313@redhat.com> IEEE_FLOAT removal.
9078
acf5ed49
DJ
90792002-02-03 Daniel Jacobowitz <drow@mvista.com>
9080
9081 * c-valprint.c (c_val_print): Pass a proper valaddr to
9082 cp_print_class_method.
9083 * valops.c (search_struct_method): If there is only one method
9084 and args is NULL, return that method.
9085
493d28d5
DJ
90862002-02-03 Daniel Jacobowitz <drow@mvista.com>
9087
9088 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9089 accessing tag_name directly.
9090
7495dfdb
DJ
90912002-02-03 Daniel Jacobowitz <drow@mvista.com>
9092
9093 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9094 of accessing tag_name directly.
9095
dd6bda65
DJ
90962002-02-03 Daniel Jacobowitz <drow@mvista.com>
9097
9098 PR gdb/280
9099 * gdbtypes.c (replace_type): New function.
9100 * gdbtypes.h (replace_type): Add prototype.
9101 * stabsread.c (read_type): Use replace_type.
9102
88fe217c
RE
91032002-02-03 Richard Earnshaw <rearnsha@arm.com>
9104
9105 * Makefile.in (memattr.o): Add missing dependencies rule.
9106
e5d66720
PS
91072002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9108
9109 * breakpoint.c (break_at_finish_command): Really export.
9110 (break_at_finish_at_depth_command): Ditto.
9111 (tbreak_at_finish_command): Ditto.
9112 * hppa-tdep.c: Include completer.h.
9113 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9114 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9115
fffee0be
AC
91162002-02-01 Andrew Cagney <ac131313@redhat.com>
9117
9118 * utils.c (do_write): New function.
9119 (error_stream): Rewrite combining the code from error_begin and
9120 verror.
9121 (verror): Rewrite using error_stream.
9122 (error_begin): Delete function.
9123
255e7dbf
AC
91242002-02-01 Andrew Cagney <ac131313@redhat.com>
9125
9126 * utils.c (error_begin): Make static.
9127 * defs.h (error_begin): Delete declaration.
9128
9129 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9130 (decode_line_1): Use cplusplus_error instead of error_begin,
9131 cplusplus_hint and return_to_top_level.
9132 * coffread.c (coff_symfile_read): Use error instead of error_begin
9133 and return_to_top_level.
9134 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9135
ddfe3c15
AC
91362002-02-01 Andrew Cagney <ac131313@redhat.com>
9137
9138 * language.h (type_error, range_error): Make string parameter
9139 constant.
9140 * language.c (warning_pre_print): Delete extern declaration.
9141 * dwarfread.c (warning_pre_print): Ditto.
9142 * language.c (type_error, range_error): Rewrite to use verror and
9143 vwarning instead of warning_begin.
9144
03ac34d5
MS
91452002-02-01 Michael Snyder <msnyder@redhat.com>
9146
261c4ca2
MS
9147 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9148 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 9149
e00d1dc8
AC
91502002-02-01 Andrew Cagney <ac131313@redhat.com>
9151
9152 * command.h (NO_FUNCTION): Delete macro.
9153 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9154 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9155 * tracepoint.c (_initialize_tracepoint): Ditto.
9156 * cli/cli-decode.c (add_set_cmd): Ditto.
9157 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 9158
76b79d6e
DJ
91592002-02-01 Daniel Jacobowitz <drow@mvista.com>
9160
9161 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9162 Update ``this'' pointer when calling virtual functions.
9163
799f9e91
MS
91642002-02-01 Michael Snyder <msnyder@redhat.com>
9165
c7bd442c 9166 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
9167 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9168
3cf384d4
DJ
91692002-02-01 Daniel Jacobowitz <drow@mvista.com>
9170
9171 * regformats/reg-arm.dat: New file.
9172 * regformats/reg-i386.dat: New file.
9173 * regformats/reg-ia64.dat: New file.
9174 * regformats/reg-m68k.dat: New file.
9175 * regformats/reg-mips.dat: New file.
9176 * regformats/reg-ppc.dat: New file.
9177 * regformats/reg-sh.dat: New file.
9178 * regformats/regdef.h: New file.
9179 * regformats/regdat.sh: New file.
9180
0defa245
RE
91812002-02-01 Richard Earnshaw <reanrsha@arm.com>
9182
9183 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9184 (arm_frame_args_address, arm_frame_locals_address): New functions.
9185 (arm_frame_num_args): New function.
9186 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9187 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9188 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9189
405f26e6
MS
91902002-01-31 Michael Snyder <msnyder@redhat.com>
9191
502fd408
MS
9192 * breakpoint.c (break_at_finish_command): Export.
9193 (break_at_finish_at_depth_command): Export.
9194 (tbreak_at_finish_command): Export.
9195 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9196 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9197 "tbreak" commands, which are HPPA specific.
9198
7d35e135
MS
9199 * printcmd.c (disassemble_command): Remove an ancient
9200 artifact of an old merge.
9201
aaa38bb5 9202 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
9203 Define enum constant values for overlay mode.
9204 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
9205 (overlay_is_mapped, overlay_auto_command,
9206 overlay_manual_command): Ditto.
d874f1e2 9207
aaa38bb5
AJ
9208 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9209 breakpoint_here_p, breakpoint_inserted_here_p,
9210 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
9211 describe_other_breakpoints, check_duplicates, clear_command):
9212 Coding standard fixes.
9213
8add0441 9214 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 9215 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
9216 code: check bfd SEC_READONLY flag for section.
9217
e351066e
AC
92182002-01-31 Andrew Cagney <ac131313@redhat.com>
9219
7d35e135 9220 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 9221
8a48e967
DJ
92222002-01-30 Daniel Jacobowitz <drow@mvista.com>
9223
9224 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9225 data symbols, since we search based on textlow and texthigh.
9226 (find_pc_sect_symtab): Likewise.
9227
f5a96129
AC
92282002-01-30 Andrew Cagney <ac131313@redhat.com>
9229
9230 * defs.h (vwarning): Declare.
f5a96129
AC
9231 * utils.c (vwarning): New function.
9232 (warning): Call vwarning.
9233 (warning_begin): Delete function.
9234
9235 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9236 the warning message.
9237 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9238 warning_begin.
9239
cefd4ef5
MS
92402002-01-30 Michael Snyder <msnyder@redhat.com>
9241
1a703748
MS
9242 * NEWS: Mention "set trust-readonly-sections" command.
9243 Mention generate-core-file command.
cefd4ef5 9244
3a11626d
MS
92452002-01-15 Michael Snyder <msnyder@redhat.com>
9246
9247 * target.c: New command, "set trust-readonly-sections on".
9248 (do_xfer_memory): Honor the suggestion to trust readonly sections
9249 by reading them from the object file instead of from the target.
9250 (initialize_targets): Register command "set trust-readonly-sections".
9251
d1c7e53b
AC
92522002-01-29 Andrew Cagney <ac131313@redhat.com>
9253
9254 * parse.c (target_map_name_to_register): Simplify, search regs and
9255 pseudo-regs using a single loop.
9256
e2c9a72c
AC
92572002-01-30 Andrew Cagney <ac131313@redhat.com>
9258
9259 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9260
69824b4e
MK
92612002-01-15 Rodney Brown <rbrown64@csc.com.au>
9262
9263 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9264 * config/i386/i386v42mp.mh: Add i387-nat.o .
9265 * i386v4-nat.c: Include i387-nat.h.
9266 (supply_fpregset): Use i387_supply_fsave.
9267 (fill_fpregset): Use i387_fill_fsave.
9268
6eb69eab
RE
92692002-01-30 Richard Earnshaw <rearnsha@arm.com>
9270
9271 * arm-tdep.c (arm_call_dummy_words): Define.
9272 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9273 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9274 (CALL_DUMMY_WORDS): Define.
9275 (arm_call_dummy_words): Declare.
9276 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9277 (arm_linux_call_dummy_words): Declare.
9278
9852326a
AS
92792002-01-30 Andreas Schwab <schwab@suse.de>
9280
9281 * m68klinux-nat.c: Fix last change to use regcache_collect
9282 instead of referencing registers[] directly.
9283
977a3030
AC
92842002-01-29 Andrew Cagney <ac131313@redhat.com>
9285
9286 * parse.c (target_map_name_to_register): Delete code wrapped in
9287 #ifdef REGISTER_NAME_ALIAS_HOOK.
9288
2076c72b
MS
92892002-01-28 Michael Snyder <msnyder@redhat.com>
9290
9291 * regcache.c (legacy_read_register_gen): Need to be able to
9292 read pseudo-register as well as real register.
9293 (legacy_write_register_gen): Ditto.
9294
8fcc723b
AC
92952002-01-28 Andrew Cagney <ac131313@redhat.com>
9296
9297 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9298 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9299 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9300 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9301 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9302 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9303 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9304 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9305 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9306 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9307 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9308 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9309 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9310 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9311 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9312 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9313 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9314 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9315 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9316 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9317
afe64c1a
AC
93182002-01-28 Andrew Cagney <ac131313@redhat.com>
9319
9320 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9321 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9322 (initialize_current_architecture): Update target_byte_order using
9323 information from BFD.
aaa38bb5 9324 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
9325 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9326
75bc7ddf
AC
93272002-01-28 Andrew Cagney <ac131313@redhat.com>
9328
9329 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9330 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9331
9332 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9333 #ifdef INVALID_FLOAT.
9334 * infcmd.c (do_registers_info): Ditto.
9335 * values.c (unpack_double): Ditto. Add comment.
9336
9337 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9338 already commented out.
9339
0280a90a
AS
93402002-01-26 Andreas Schwab <schwab@suse.de>
9341
9342 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9343 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9344 registers and add support for PTRACE_GETREGS.
9345
7072a954
AC
93462002-01-24 Andrew Cagney <ac131313@redhat.com>
9347
9348 GDB 5.1.1 released from 5.1 branch.
9349 * NEWS: Add 5.1.1 news.
9350 * README: Sync with 5.1 branch.
9351
86f902e0
FF
93522002-01-23 Fred Fish <fnf@redhat.com>
9353
9354 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9355 stabstring on initial malloc. Reallocing will copy it for us,
9356 if necessary.
9357
8af51c36
EZ
93582002-01-23 Elena Zannoni <ezannoni@redhat.com>
9359
aaa38bb5 9360 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
9361 (HFILES_NO_SRCDIR): Remove hpread.h.
9362 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9363 (hpread.o): Update dependencies.
9364 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9365
9366 * hp-psymtab-read.c: Remove file.
9367 * hp-symtab-read.c: Remove file.
9368 * hpread.h: Remove file.
9369
9370 * hpread.c: Merge all contents of hp-psymtab-read.c,
9371 hp-symtab-read.c and hpread.h into this file, as it was prior to
9372 January 1999.
9373
9374 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 9375 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
9376 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9377 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9378
dc5cfeb6
EZ
93792002-01-23 Elena Zannoni <ezannoni@redhat.com>
9380
9381 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9382 fill_gregset): Call gdbarch_tdep() just once, assign result to
9383 variable and use that, instead of calling the function several
9384 times.
9385
ea87b71b
AO
93862002-01-24 Alexandre Oliva <aoliva@redhat.com>
9387
9388 * configure.host: Accept sparcv9 as alias for sparc64.
9389 * configure.tgt: Likewise.
9390
13fc0c2f
KB
93912002-01-22 Kevin Buettner <kevinb@redhat.com>
9392
9393 * solib-aix5.c (build_so_list_from_mapfile)
9394 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9395 arguments is not reversed.
9396 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9397 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 9398
7bd872fe
EZ
93992002-01-22 Elena Zannoni <ezannoni@redhat.com>
9400
9401 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9402 modified version of obsolete sh_fetch_pseudo_register.
9403 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9404 (sh4_register_read): New function.
9405 (sh_pseudo_register_write): New function. Renamed and modified
9406 version of obsolete sh_store_pseudo_register.
9407 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9408 (sh4_register_write): New function.
9409 (sh_gdbarch_init): Remove setting of gdbarch function
9410 fetch_pseudo_register and store_pseudo_register. Remove setting of
9411 register_convert_to_raw, register_convert_to_virtual,
9412 register_convertible.
9413 (sh_sh4_register_convertible): Delete. No longer needed. All is
9414 taken care by architecture specific functions
9415 register_read/register_write.
9416 (sh_sh4_register_convert_to_virtual): Make static.
9417 (sh_sh4_register_convert_to_raw): Ditto.
9418
069e84fd
AC
94192002-01-22 Andrew Cagney <ac131313@redhat.com>
9420
9421 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9422 (floatformat_is_nan, floatformat_mantissa): Ditto.
9423
9424 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9425 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9426 builtin_type_ieee_double_little,
9427 builtin_type_ieee_double_littlebyte_bigword,
9428 builtin_type_m68881_ext, builtin_type_i960_ext,
9429 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9430 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9431 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9432 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9433
211a4f69
CV
94342002-01-22 Corinna Vinschen <vinschen@redhat.com>
9435
9436 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9437 parameter. Set frameless flag if it exists and depended of
9438 whether the scanned function is frameless or not.
9439 (xstormy16_skip_prologue): If function is frameless, return
9440 result of xstormy16_scan_prologue().
9441 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9442 call.
9443
f81353e4
EZ
94442002-01-21 Elena Zannoni <ezannoni@redhat.com>
9445
9446 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9447 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9448 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9449 sh_sh4_register_byte, sh_sh4_register_raw_size,
9450 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9451 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9452 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9453 sh_store_pseudo_register, sh_do_pseudo_register): Call
9454 gdbarch_tdep() just once, assign result to variable and use that,
9455 instead of calling the function several times.
9456
63c73a17
MK
94572002-01-20 Mark Kettenis <kettenis@gnu.org>
9458
9459 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9460 macros instead of LAST_FPU_CTRL_REGNUM.
9461 (store_register): Likewise.
9462
39ad761d
JB
94632002-01-21 Jim Blandy <jimb@redhat.com>
9464
9465 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9466 is up-to-date before running the program, not just when a program
9467 exits.
9468
3d74b771
FF
94692002-01-21 Fred Fish <fnf@redhat.com>
9470
9471 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9472 when we have found all instructions we are looking for.
9473
966fbf70
RE
94742002-01-21 Richard Earnshaw <rearnsha@arm.com>
9475
9476 * arm-tdep.c (arm_register_name): New function.
9477 (arm_registers_names): Make static.
9478 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9479 (arm_register_name): Declare.
9480 (REGISTER_NAME): Use it.
9481
c3b4394c
RE
94822002-01-21 Richard Earnshaw <rearnsha@arm.com>
9483 Kevin Buettner <kevinb@redhat.com>
9484
9485 Convert arm targets to new FRAME interface.
9486 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9487 (arm_frame_find_save_regs): Delete.
9488 (arm_frame_init_saved_regs): New.
9489 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9490 Allocate extra_info as required. Convert all uses of fsr.regs
9491 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9492 to use extra_info.
9493 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9494 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9495 (check_prologue_cache, save_prologue_cache): Likewise.
9496 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9497 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9498 (FRAME_FIND_SAVED_REGS): Delete.
9499 (arm_frame_find_saved_regs): Delete prototype.
9500 (arm_frame_init_saved_regs): New prototype.
9501 (FRAME_INIT_SAVED_REGS): Define.
9502
61d99182
AC
95032002-01-20 Andrew Cagney <ac131313@redhat.com>
9504
9505 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9506
6aaea291
AC
95072002-01-20 Andrew Cagney <ac131313@redhat.com>
9508
9509 From Jeff Law <law@redhat.com>:
9510 * infttrace.c: Include <sys/pstat.h>.
9511 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9512 exec file if the ttrace equivalent fails.
9513
15f698d2
AC
95142002-01-20 Andrew Cagney <ac131313@redhat.com>
9515
9516 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9517 (closeLogFile): Ditto.
9518
f86ddd7c
MC
95192002-01-20 Michael Chastain <mec@shout.net>
9520
9521 * top.c (print_gdb_version): Bump copyright year to 2002.
9522
904507ce
AC
95232002-01-20 Andrew Cagney <ac131313@redhat.com>
9524
9525 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9526 Zannoni and Eli Zaretskii.
9527
d7f0b9ce
DJ
95282002-01-20 Daniel Jacobowitz <drow@mvista.com>
9529
9530 * buildsym.c: Update copyright years.
9531 * c-typeprint.c: Likewise.
9532 * dwarf2read.c: Likewise.
9533 * f-typeprint.c: Likewise.
9534 * gdbtypes.c: Likewise.
9535 * gdbtypes.h: Likewise.
9536 * hp-symtab-read.c: Likewise.
9537 * hpread.c: Likewise.
9538 * mdebugread.c: Likewise.
9539 * p-typeprint.c: Likewise.
9540
3fd3d7d2
AC
95412002-01-20 Andrew Cagney <ac131313@redhat.com>
9542
9543 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9544 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9545 byte-order selectable.
9546 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9547 * arch-utils.c: Ditto.
9548 (set_endian): Ditto.
9549 (set_endian_from_file): Ditto.
9550 * gdbserver/low-sim.c (create_inferior): Ditto.
9551 * gdbarch.sh: Ditto.
9552 * gdbarch.h: Re-generate.
aaa38bb5
AJ
9553 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9554 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9555 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9556 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9557 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9558 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9559 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
9560 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9561 macro definition.
9562 * config/mips/tm-wince.h: Remove #undef of macro
9563 TARGET_BYTE_ORDER_SELECTABLE.
9564 * config/sh/tm-wince.h: Ditto.
9565
b02dede2
DJ
95662002-01-20 Daniel Jacobowitz <drow@mvista.com>
9567
9568 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9569 member function fields. Add accessor macro
9570 TYPE_FN_FIELD_ARTIFICIAL.
9571 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9572 * c-typeprint.c (c_type_print_base): Skip artificial member
9573 functions.
9574
c3643761
DJ
95752002-01-20 Daniel Jacobowitz <drow@mvista.com>
9576
9577 * f-typeprint.c: Delete unused function f_type_print_args.
9578 * p-typeprint.c: Delete unused function pascal_type_print_args.
9579
8176bb6d
DJ
95802002-01-20 Daniel Jacobowitz <drow@mvista.com>
9581
9582 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9583 comment. Add ``artificial'' to ``union field_location''.
9584
9585 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9586
9587 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9588 * mdebugread.c (parse_symbol): Likewise.
9589 * stabsread.c (define_symbol): Likewise.
9590 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9591 initializing TYPE_FIELD_BITPOS to n (obsolete).
9592 (hpread_doc_function_type): Likewise.
9593 * hpread.c (hpread_function_type): Likewise.
9594
7fd60527
AC
95952002-01-20 Andrew Cagney <ac131313@redhat.com>
9596
9597 * configure.in (host_makefile_frag): Only require a host makefile
9598 fragment when a native build.
9599 * configure: Re-generate.
9600
c2f05ac9
AC
96012002-01-20 Andrew Cagney <ac131313@redhat.com>
9602
9603 * doublest.h (floatformat_from_type): Declare.
9604 * doublest.c (floatformat_from_type): New function.
9605 (convert_typed_floating): Use.
9606
9607 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9608 call to function floatformat_from_type.
9609
9610 * gdbarch.sh (IEEE_FLOAT): Delete.
9611 * gdbarch.h, gdbarch.c: Re-generate.
9612 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9613 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9614 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9615 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9616 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9617 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9618 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9619 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9620 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9621 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9622 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
9623 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9624
9625 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9626 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9627 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9628 * sh-tdep.c (sh_gdbarch_init): Ditto.
9629 * mips-tdep.c (mips_gdbarch_init): Ditto.
9630 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9631 * cris-tdep.c (cris_gdbarch_init): Ditto.
9632
abf22e64
AJ
96332002-01-20 Jiri Smid <smid@suse.cz>
9634
9635 * configure.host, configure.tgt: Support x86-64.
9636 * NEWS: Note new target x86-64.
9637
b7c4cbf8
AJ
9638 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9639 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9640 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9641 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9642 x86-64-linux-nat.o): Fix dependencies.
9643
82600034
AC
96442002-01-19 Andrew Cagney <ac131313@redhat.com>
9645
9646 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9647 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9648 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9649 * config/sparc/xm-sun4os4.h: Delete file.
9650 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 9651
bbe5c628
AC
96522002-01-19 Andrew Cagney <ac131313@redhat.com>
9653
9654 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9655 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9656 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9657 * config/i386/i386lynx.mh (XM_FILE): Delete.
9658 * config/rs6000/xm-rs6000ly.h: Delete file.
9659 * config/sparc/xm-sparclynx.h: Delete file.
9660 * config/m68k/xm-m68klynx.h: Delete file.
9661 * config/i386/xm-i386lynx.h: Delete file.
9662 * config/xm-lynx.h: Delete file.
9663 * config/djgpp/fnchange.lst: Update.
9664
f8453e34
JT
96652002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9666
9667 * alpha-tdep.c (alpha_register_byte): New function.
9668 (alpha_register_raw_size): Ditto.
9669 (alpha_register_virtual_size): Ditto.
9670 (alpha_skip_prologue_internal): Renamed from
9671 alpha_skip_prologue.
9672 (alpha_skip_prologue): New version that calls
9673 alpha_skip_prologue_internal.
9674 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9675 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9676 second argument from alpha_skip_prologue.
9677 (REGISTER_BYTE): Use alpha_register_byte.
9678 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9679 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9680 (FRAMELESS_FUNCTION_INVOCATION): Use
9681 generic_frameless_function_invocation_not.
9682 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9683 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9684
52d9e613
AC
96852002-01-19 Andrew Cagney <ac131313@redhat.com>
9686
9687 * config/mips/xm-news-mips.h: Delete file.
9688 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9689
9690 * config/m88k/xm-m88k.h: Delete file.
9691 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9692 * config/m88k/xm-delta88v4.h: Ditto.
9693 * config/m88k/xm-delta88.h: Ditto.
9694
9695 * config/alpha/xm-fbsd.h: Delete file.
9696 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9697
9698 * config/sparc/xm-sparc.h: Delete file.
9699 * Makefile.in (xm-sun4os4.h): Delete dependency.
9700 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9701 * config/sparc/xm-sun4os4.h: Ditto.
9702 * config/sparc/xm-linux.h: Ditto.
9703
9704 * config/i386/xm-windows.h: Delete file.
9705
2d1b2124
AC
97062002-01-19 Andrew Cagney <ac131313@redhat.com>
9707
9708 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9709 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9710
ee1f65f0
JT
97112002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9712
9713 * alpha-tdep.c (alpha_call_dummy_words): New.
9714 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9715 (CALL_DUMMY_P): Define.
9716 (CALL_DUMMY_WORDS): Define.
9717 (SIZEOF_CALL_DUMMY_WORDS): Define.
9718
98081e55
PB
97192002-01-19 Per Bothner <per@bothner.com>
9720
9721 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9722 isn't NULL, which can happen with some gcj-3.x-produced code.
9723
0d056799
JT
97242002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9725
9726 * alpha-tdep.c (alpha_register_virtual_type): New function.
9727 (alpha_init_frame_pc_first): Ditto.
9728 (alpha_fix_call_dummy): Ditto.
9729 (alpha_store_struct_return): Ditto.
9730 (alpha_extract_struct_value_address): Ditto.
9731 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9732 alpha_register_virtual_type.
9733 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9734 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9735 alpha_extract_struct_value_address.
9736 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9737 (INIT_FRAME_PC): Use init_frame_pc_noop.
9738 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9739
4604bcad
MK
97402002-01-19 Mark Kettenis <kettenis@gnu.org>
9741
9742 * i386gnu-nat.c: Include "i386-tdep.h".
9743 (fetch_fpregs): Simplify code dealing with uninitialized floating
9744 point states such that it doesn't require FP7_REGNUM.
9745
140f9984
JT
97462002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9747
abf22e64
AJ
9748 * alpha-tdep.c (frame_extra_info): New.
9749 (alpha_find_saved_regs): Make static. Use
140f9984
JT
9750 frame->extra_info.
9751 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
9752 (alpha_frame_saved_pc): Use frame->extra_info.
9753 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9754 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
9755 (init_extra_frame_info): Rename to...
9756 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 9757 (alpha_print_extra_frame_info): New function.
140f9984
JT
9758 (alpha_frame_locals_address): Ditto.
9759 (alpha_frame_args_address): Ditto.
abf22e64 9760 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
9761 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9762 alpha_frame_args_address.
abf22e64 9763 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 9764 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
9765 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9766 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
9767 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9768 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9769
d734c450
JT
97702002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9771
9772 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9773 (alpha_cannot_fetch_register): Ditto.
9774 (alpha_cannot_store_register): Ditto.
9775 (alpha_register_convertible): Ditto.
9776 (alpha_use_struct_convention): Ditto.
9777 * config/alpha/tm-alpha.h: Update copyright years.
9778 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9779 (INNER_THAN): Use core_addr_lessthan.
9780 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9781 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9782 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9783 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9784 (FRAME_CHAIN): Remove unnecessary cast.
9785
b4ceaee6
AC
97862002-01-18 Andrew Cagney <ac131313@redhat.com>
9787
9788 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9789 obsolete.
9790
0a65a603
AC
97912002-01-18 Andrew Cagney <ac131313@redhat.com>
9792
9793 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9794 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9795 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9796 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9797 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9798 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9799 * x86-64-linux-nat.c: Ditto.
9800
636a6dfc
JT
98012002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9802
abf22e64 9803 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
9804 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9805 (REGISTER_NAME): Define.
9806
acceddb6
JT
98072002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9808
9809 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9810
ec32e4be
JT
98112002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9812
9813 * alpha-tdep.c: Update copyright years.
9814 (alpha_next_pc): New function.
9815 (alpha_software_single_step): Ditto.
9816 * config/alpha/tm-alpha.h: Add prototype for
9817 alpha_software_single_step.
9818
e771a871
JT
98192002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9820
9821 * alphabsd-nat.c: Update copyright years.
9822 (fill_gregset): Use regcache_collect.
9823 (fill_fpregset): Likewise.
9824 (fetch_inferior_registers): Only fetch integer registers
9825 if requested to do so.
9826 (store_inferior_registers): Only store integer registers
9827 if requested to do so.
9828
7708fa01
AC
98292002-01-17 Andrew Cagney <ac131313@redhat.com>
9830
9831 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9832 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9833 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9834 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9835 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9836 * config/arm/linux.mh (XDEPFILES): Delete.
9837 * config/arm/nbsd.mh (XDEPFILES): Delete.
9838 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9839 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9840 * config/i386/i386m3.mh (XDEPFILES): Delete.
9841 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9842 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9843 * config/i386/fbsd.mh (XDEPFILES): Delete.
9844 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9845 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9846 * config/i386/i386v4.mh (XDEPFILES): Delete.
9847 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9848 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9849 * config/i386/i386aix.mh (XDEPFILES): Delete.
9850 * config/i386/go32.mh (XDEPFILES): Delete.
9851 * config/i386/cygwin.mh (XDEPFILES): Delete.
9852 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9853 * config/i386/i386mach.mh (XDEPFILES): Delete.
9854 * config/i386/i386v32.mh (XDEPFILES): Delete.
9855 * config/i386/linux.mh (XDEPFILES): Delete.
9856 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9857 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9858 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9859 * config/i386/i386sco.mh (XDEPFILES): Delete.
9860 * config/i386/i386v.mh (XDEPFILES): Delete.
9861 * config/i386/nbsd.mh (XDEPFILES): Delete.
9862 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9863 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9864 * config/i386/symmetry.mh (XDEPFILES): Delete.
9865 * config/i386/obsd.mh (XDEPFILES): Delete.
9866 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9867 * config/ia64/linux.mh (XDEPFILES): Delete.
9868 * config/ia64/aix.mh (XDEPFILES): Delete.
9869 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9870 * config/m68k/dpx2.mh (XDEPFILES): Delete.
9871 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9872 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9873 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9874 * config/m68k/linux.mh (XDEPFILES): Delete.
9875 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9876 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9877 * config/m68k/nbsd.mh (XDEPFILES): Delete.
9878 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9879 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9880 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9881 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9882 * config/m88k/delta88.mh (XDEPFILES): Delete.
9883 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9884 * config/m88k/m88k.mh (XDEPFILES): Delete.
9885 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9886 * config/mips/linux.mh (XDEPFILES): Delete.
9887 * config/mips/irix6.mh (XDEPFILES): Delete.
9888 * config/mips/irix5.mh (XDEPFILES): Delete.
9889 * config/mips/irix4.mh (XDEPFILES): Delete.
9890 * config/mips/irix3.mh (XDEPFILES): Delete.
9891 * config/mips/decstation.mh (XDEPFILES): Delete.
9892 * config/mips/mipsm3.mh (XDEPFILES): Delete.
9893 (NATDEPFILES): Move core-aout.o to here.
9894 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9895 * config/pa/hpux1020.mh (XDEPFILES): Delete.
9896 * config/pa/hppabsd.mh (XDEPFILES): Delete.
9897 * config/pa/hppahpux.mh (XDEPFILES): Delete.
9898 * config/pa/hpux11w.mh (XDEPFILES): Delete.
9899 * config/pa/hppaosf.mh (XDEPFILES): Delete.
9900 * config/pa/hpux11.mh (XDEPFILES): Delete.
9901 * config/powerpc/aix.mh (XDEPFILES): Delete.
9902 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9903 * config/powerpc/linux.mh (XDEPFILES): Delete.
9904 * config/romp/rtbsd.mh: Rename XDEPFILES.
9905 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9906 * config/rs6000/aix4.mh (XDEPFILES): Delete.
9907 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9908 * config/s390/s390.mh (XDEPFILES): Delete.
9909 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9910 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9911 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9912 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9913 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9914 * config/sparc/nbsd.mh (XDEPFILES): Delete.
9915 * config/sparc/linux.mh (XDEPFILES): Delete.
9916 * config/vax/vaxult.mh (XDEPFILES): Delete.
9917 * config/vax/vaxult2.mh (XDEPFILES): Delete.
9918 * Makefile.in (DEPFILES): Remove XDEPFILES.
9919
375fc983
AC
99202002-01-17 Andrew Cagney <ac131313@redhat.com>
9921
9922 * utils.c (internal_verror): Fix comments, default is yes not no.
9923 Update queries to match. Default to quit and dump core.
9924
8926118c
AC
99252002-01-17 Andrew Cagney <ac131313@redhat.com>
9926
9927 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
9928 copyright.
9929 * defs.h, event-top.c, gdbcmd.h: Ditto.
9930 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9931 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9932 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9933 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9934 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9935 * mi/mi-main.c:Ditto.
9936
9937 * stack.c, symfile.c: Update copyright.
9938
45b7b345
DJ
99392002-01-17 Daniel Jacobowitz <drow@mvista.com>
9940
db728ff7
DJ
9941 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9942 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9943 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9944 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 9945
db728ff7
DJ
99462002-01-17 Daniel Jacobowitz <drow@mvista.com>
9947
9948 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9949 * gdbserver/low-lynx.c (myattach): Likewise.
9950 * gdbserver/low-nbsd.c (myattach): Likewise.
9951 * gdbserver/low-sim.c (myattach): Likewise.
9952 * gdbserver/low-sparc.c (myattach): Likewise.
9953 * gdbserver/low-sun3.c (myattach): Likewise.
9954
9955 * gdbserver/low-linux.c (myattach): New function.
45b7b345 9956
db728ff7 9957 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
9958 (main): Handle "--attach".
9959
8de3c354
AC
99602002-01-16 Andrew Cagney <ac131313@redhat.com>
9961
9962 * MAINTAINERS (language support): Daniel Jacobwitz is C++
9963 maintainer.
9964
b0129042
DJ
99652002-01-15 Daniel Jacobowitz <drow@mvista.com>
9966
9967 * c-typeprint.c (is_type_conversion_operator): Add additional
9968 check for non-conversion operators.
9969
ba8679fb 99702002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
9971
9972 * linux-proc.c: Add "info proc" command, a la procfs.c.
9973 (read_mapping): New function, abstract and re-use code.
9974 (linux_find_memory_regions): Use new func read_mapping.
9975 (linux_info_proc_cmd): New function, implement "info proc".
9976 (_initialize_linux_proc): Add new command "info proc".
9977
e4f9b4d5
MS
99782002-01-15 Michael Snyder <msnyder@redhat.com>
9979
9980 * symfile.c (generic_load): Use bfd_map_over_sections method
9981 instead of manipulating bfd structure members directly.
9982 (add_section_size_callback): New function, bfd sections callback
9983 used by generic_load.
9984 (load_sections_callback): New function, bfd sections callback
9985 used by generic_load.
9986
08cf96df
EZ
99872002-01-15 Elena Zannoni <ezannoni@redhat.com>
9988
abf22e64 9989 [Based on work by Jim Blandy]
08cf96df
EZ
9990 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
9991 (builtin_type_vec128): Export.
9992 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
9993 types.
9994 (builtin_type_vec128): New builtin type for 128 bit vector
9995 registers.
9996 (build_gdbtypes): Initialize builtin_type_v16qi and
9997 builtin_type_v8hi. Create the vec128 register builtin type
9998 structure.
9999 (build_builtin_type_vec128): New function.
abf22e64 10000 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
10001 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10002 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10003 AltiVec register to new builtin type.
10004
d7242108
DJ
100052001-01-15 Daniel Jacobowitz <drow@mvista.com>
10006
10007 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10008 to make_cv_type.
10009
4ee3352d
AC
100102002-01-14 Andrew Cagney <ac131313@redhat.com>
10011
10012 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10013 CLEAN_UP_REGISTER_VALUE.
10014 * regcache.c (supply_register): Update only call.
10015
f015b2e7
AC
100162002-01-14 Andrew Cagney <ac131313@redhat.com>
10017
10018 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10019 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10020 a29k-*-vxworks* targets as obsolete.
10021
356ae49d
MS
100222002-01-14 Michael Snyder <msnyder@redhat.com>
10023
10024 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10025 until we can resolve portability issues.
10026 * gregset.h: Remove references to fpxregs.
10027 * gcore.c (gcore_command): Initialize note_sec to NULL.
10028
ade8f45e
AC
100292002-01-13 Andrew Cagney <ac131313@redhat.com>
10030
10031 * signals.c (target_signal_to_name): Rewrite. Only use
10032 signals[].name when in bounds and non-NULL.
abf22e64 10033
89c49e7a
AC
100342002-01-13 Andrew Cagney <ac131313@redhat.com>
10035
10036 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10037 * signals.c (target_signal_to_name): Verify that SIG is within the
10038 bounds of the signals array.
10039
4daa9f9f
AC
100402002-01-13 Andrew Cagney <ac131313@redhat.com>
10041
10042 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10043
ba4bbdcb
KS
100442002-01-13 Keith Seitz <keiths@redhat.com>
10045
10046 * stack.c (print_frame_info_base): Print the frame's pc
10047 only if when print_frame_info_listing_hook is not defined.
10048
575bbeb6
KS
100492002-01-13 Keith Seitz <keiths@redhat.com>
10050
10051 * varobj.c (varobj_set_value): Make sure that there were no
10052 errors evaluating the object before attempting to set its
10053 value.
10054 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10055 so this offset adjustment is no longer necessary.
10056 (create_child): Don't set the error flag if the child is
10057 a CPLUS_FAKE_CHILD.
10058 (value_of_child): If value_fetch_lazy fails, return NULL
10059 so that callers will be notified that an error occurred.
10060 (c_value_of_variable): Delay check of variable's validity
10061 until later. We actually want all structs and unions to have
10062 the value "{...}".
10063 Do not return "???" for variables which could not be evaluated.
10064 This error condition must be returned to the caller so that it
10065 can get the error condition from gdb.
10066 (cplus_name_of_child): Adjust index for vptr before figuring
10067 out the name of the child.
10068 (cplus_value_of_child): If a child's (real) parent is not valid,
10069 don't even bother trying to give a value for it. Just return
10070 an error. Change all instances in this function.
10071 (cplus_type_of_child): If our parent is one of the "fake"
10072 parents, we need to get at the type of the real parent, and
10073 derive the child's true type using this information.
10074
b76898ab
AC
100752002-01-13 Andrew Cagney <ac131313@redhat.com>
10076
10077 From 2002-01-09 John Marshall <johnm@falch.net>:
10078 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10079 sources.redhat.com, and tweak some related URLs which had
10080 suffered from linkrot.
10081
b6649e88
AC
100822002-01-13 Andrew Cagney <ac131313@redhat.com>
10083
10084 From Jeff law:
10085 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10086 structures passed in registers.
10087
82cc5033
EZ
100882002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10089
10090 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10091 white space which prevented compilation. Reported by DSK
10092 <dsk@student.unsw.edu.au>.
10093
ba5f2f8a
MS
100942002-01-11 Michael Snyder <msnyder@redhat.com>
10095
fbd35540
MS
10096 * symfile.c (build_section_addr_info_from_section_tab):
10097 Use bfd access method instead of manipulating bfd directly.
10098 (syms_from_objfile): Ditto.
10099 (simple_overlay_update_1): Ditto.
10100 (simple_overlay_update): Ditto.
10101 (generic_load): Ditto.
10102 (overlay_unmapped_address): FIXME comment, bfd access methods.
10103 (sections_overlap): FIXME comment, bfd access methods.
10104 (pc_in_mapped_range): FIXME comment, bfd access methods.
10105 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10106 (section_is_mapped): FIXME comment, bfd access methods.
10107 (section_is_overlay): FIXME comment, bfd access methods.
10108
ba5f2f8a
MS
10109 * symfile.c (generic_load): Whitespace and long line cleanups.
10110 Remove duplicate variable, change several local variables to
10111 more appropriate data types.
10112 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10113
17df2af6
AC
101142002-01-12 Andrew Cagney <ac131313@redhat.com>
10115
10116 From Peter Schauer:
10117 * language.c (longest_local_hex_string_custom): Use phex_nz to
10118 convert NUM to a hex string.
10119
ec920329
EZ
101202002-01-12 Elena Zannoni <ezannoni@redhat.com>
10121
10122 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10123 the function.
538a76d6 10124 Update Copyright year.
ec920329 10125
3abd2e01
AC
101262002-01-12 Andrew Cagney <ac131313@redhat.com>
10127
10128 * language.c (longest_raw_hex_string): Delete unused function.
10129
b21b22e0
PS
101302002-01-11 Petr Sorfa <petrs@caldera.com>
10131
10132 * MAINTAINERS (write-after-approval): Add myself.
10133 * dwarf2read.c (read_tag_string_type): Handling of
10134 DW_AT_byte_size.
10135 (read_tag_string_type): FORTRAN fix to prevent propagation of
10136 first string size.
10137 (set_cu_language): Handling of DW_LANG_Fortran95
10138
747fe712
RE
101392002-01-11 Richard Earnshaw <rearnsha@arm.com>
10140
10141 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10142 GETPID(inferior_ptid).
10143 (store_inferior_registers): Likewise.
10144
f1bea926
JM
101452002-01-10 Jason Merrill <jason@redhat.com>
10146
10147 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10148 Fix DW_OP_minus.
10149
ae940673
AC
101502002-01-10 Andrew Cagney <ac131313@redhat.com>
10151
10152 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10153 and bfd/elf32-sh-nbsd.c.
10154
00546b04
MS
101552002-01-10 Michael Snyder <msnyder@redhat.com>
10156
352ed7b4
MS
10157 * NEWS: Mention --pid and corefile/proc-id behavior change.
10158
c18be923
MS
10159 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10160 * gcore.c: Include cli/cli-decode.h instead of command.h.
10161
00546b04
MS
10162 * main.c (captured_main): Add new command line option "--pid".
10163 If the second command line argument (following the symbol-file)
10164 begins with a digit, try to attach to it before trying to open
10165 it as a corefile.
10166 (print_gdb_help): Document the "--pid" argument.
10167
db60ec62
EZ
101682002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10169
10170 * completer.c (command_completer): New function.
10171
10172 * completer.h <command_completer>: Add prototype.
10173
10174 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10175 completer for the "help" command.
10176
39c22d1a
JM
101772002-01-09 Jason Merrill <jason@redhat.com>
10178
10179 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10180
c564377f
MS
101812002-01-09 Michael Snyder <msnyder@redhat.com>
10182
975aec09
MS
10183 * i386-linux-nat.c (fill_fpxregset): Make global.
10184 (store_fpxregset): Ditto.
10185
db4a10fa
MS
10186 * gregset.h (gdb_fpxregset_t): Define.
10187 (supply_fpxregset): Prototype.
10188 (fill_fpxregset): Prototype.
10189
c564377f
MS
10190 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10191
c3d45d70
RE
101922002-01-09 Richard Earnshaw <rearnsha@arm.com>
10193
10194 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10195 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10196 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10197
fcc87af1
AC
101982002-01-09 Andrew Cagney <ac131313@redhat.com>
10199
10200 * MAINTAINERS: Update target maintainer rules so that any
10201 Maintainer can approve a tested patch for a maintenance-only
10202 target.
10203
dd96c05b
RE
102042002-01-09 Richard Earnshaw <rearnsha@arm.com>
10205
d4297db9 10206 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 10207
d4297db9 10208 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
10209 IN_SIGTRAMP.
10210
145fdc6e
MS
102112002-01-08 Michael Snyder <msnyder@redhat.com>
10212
10213 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10214 real name of the executable, rather than the /proc name.
10215
be4d1333
MS
102162002-01-03 Michael Snyder <msnyder@redhat.com>
10217
10218 Implement a "generate-core-file" command in gdb, save target state.
10219 * gcore.c: New file. Implement new command 'generate-core-file'.
10220 Save a corefile image of the current state of the inferior.
10221 * linux-proc.c: Add linux-specific code for saving corefiles.
10222 * target.h (struct target_ops): Add new target vectors for saving
10223 corefiles; to_find_memory_regions and to_make_corefile_notes.
10224 (target_find_memory_regions): New macro.
10225 (target_make_corefile_notes): New macro.
10226 * target.c (update_current_target): Inherit new target methods.
10227 (dummy_find_memory_regions): New place-holder method.
10228 (dummy_make_corefile_notes): New place-holder method.
10229 (init_dummy_target): Initialize new dummy target vectors.
10230 * exec.c (exec_set_find_memory_regions): New function.
10231 Allow the exec_ops vector for memory regions to be taken over.
10232 (exec_make_note_section): New function, target vector method.
10233 * defs.h (exec_set_find_memory_regions): Export prototype.
10234 * procfs.c (proc_find_memory_regions): New function, corefile method.
10235 (procfs_make_note_section): New function, corefile method.
10236 (init_procfs_ops): Set new target vector pointers.
10237 (find_memory_regions_callback): New function.
10238 (procfs_do_thread_registers): New function.
10239 (procfs_corefile_thread_callback): New function.
10240 * sol-thread.c (sol_find_memory_regions): New function.
10241 (sol_make_note_section): New function.
10242 (init_sol_thread_ops): Initialize new target vectors.
10243 * inftarg.c (inftarg_set_find_memory_regions): New function.
10244 Allow to_find_memory_regions vector to be taken over.
10245 (inftarg_set_make_corefile_notes): New function.
10246 Allow to_make_corefile_notes vector to be taken over.
10247 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10248 interface layer if not target_has_execution (may be a corefile).
10249 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10250 * config/sparc/sun4sol2.mh: Ditto.
10251 * config/alpha/alpha-linux.mh: Ditto.
10252 * config/arm/linux.mh: Ditto.
10253 * config/i386/x86-64linux.mh: Ditto.
10254 * config/ia64/linux.mh: Ditto.
10255 * config/m68k/linux.mh: Ditto.
10256 * config/mips/linux.mh: Ditto.
10257 * config/powerpc/linux.mh: Ditto.
10258 * config/sparc/linux.mh: Ditto.
10259
c6b92abd
MS
102602002-01-07 Michael Snyder <msnyder@redhat.com>
10261
10262 * arm-linux-nat.c: Remove references to regcache.c internal data
10263 (registers[] and register_valid[]).
10264
4b09dc8c
MS
102652002-01-07 Michael Snyder <msnyder@redhat.com>
10266
abf22e64
AJ
10267 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10268 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
10269 symbol file and shlibs.
10270 * Makefile.in: Add rule for linux-proc.o.
10271 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10272 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10273 * config/arm/linux.mh: Ditto.
10274 * config/i386/linux.mh: Ditto.
10275 * config/i386/x86-64linux.mh: Ditto.
10276 * config/ia64/linux.mh: Ditto.
10277 * config/m68k/linux.mh: Ditto.
10278 * config/mips/linux.mh: Ditto.
10279 * config/powerpc/linux.mh: Ditto.
10280 * config/sparc/linux.mh: Ditto.
10281
c25b74ac
PM
102822002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10283
10284 * win32-nat.c: Add i386-tdep.h dependency.
10285
94cd915f
MS
102862002-01-07 Michael Snyder <msnyder@redhat.com>
10287
c7cccb76
MS
10288 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10289 instead of bfd_get_arch_size. Don't bail out just because
10290 there's no exec_bfd.
abf22e64 10291
34c0bd93
MS
10292 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10293 * p-valprint.c (pascal_object_print_value): Ditto.
10294 * somread.c (som_symtab_read): Ditto.
10295 * symfile.c (simple_free_overlay_region_table): Ditto.
10296 * valops.c (value_assign): Ditto.
10297
21c1c920
MS
10298 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10299 use tilde_expand and strerror for opening save-tracepoints file.
10300
5bbd998e
MS
10301 * thread-db.c (thread_db_new_objfile): Indendation fix.
10302
94cd915f
MS
10303 * infptrace.c (GDB_MAX_ALLOCA): New define.
10304 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 10305 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
10306 can be overridden with whatever value is appropriate to the host).
10307 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10308 alloca to allocate potentially large buffer.
10309 * rs6000-nat.c (child_xfer_memory): Ditto.
10310 * symm-nat.c (child_xfer_memory): Ditto.
10311 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10312
494e8a93
JSC
103132002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10314
10315 From Nick Clifton <nickc@redhat.com>
10316 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10317
d0e1d48e
MS
103182002-01-07 Michael Snyder <msnyder@redhat.com>
10319
abf22e64 10320 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
10321 Don't use exec_bfd if it's NULL.
10322
290b2c7a
MK
103232002-01-06 Mark Kettenis <kettenis@gnu.org>
10324
abf22e64 10325 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 10326
aef21287
AC
103272002-01-06 Andrew Cagney <ac131313@redhat.com>
10328
10329 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10330 * gnu-nat.c: Ditto.
10331
30efa627
AC
103322002-01-06 Andrew Cagney <ac131313@redhat.com>
10333
10334 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10335 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10336 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10337 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10338 z8k-coff have not been multi-arched. Update z8k-coff build
10339 status.
10340
9b4ff276
AC
103412002-01-06 Andrew Cagney <ac131313@redhat.com>
10342
10343 * MAINTAINERS: Mark a29k target as obsolete.
10344 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10345 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10346 comments.
10347 * NEWS: Note that a29k targets are obsolete.
10348 * a29k-tdep.c: Mark as obsolete.
10349 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10350 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10351 a29k-*-vxworks* targets as obsolete.
10352 * remote-adapt.c: Obsolete.
10353 * remote-eb.c: Obsolete.
10354 * remote-mm.c: Obsolete.
10355 * remote-udi.c: Obsolete.
10356 * config/a29k/a29k-udi.mt: Obsolete.
10357 * config/a29k/a29k.mt: Obsolete.
10358 * config/a29k/tm-a29k.h: Obsolete.
10359 * config/a29k/tm-vx29k.h: Obsolete.
10360 * config/a29k/vx29k.mt: Obsolete.
10361
a9011d31
AC
103622002-01-05 Andrew Cagney <ac131313@redhat.com>
10363
10364 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10365 with BFD_ENDIAN_BIG.
10366
9299404e
AC
103672002-01-05 Andrew Cagney <ac131313@redhat.com>
10368
10369 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10370 * configure, config.in: Re-generate.
10371 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10372 * defs.h: Do not include <endian.h>.
10373
7e89e357
JT
103742002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10375
10376 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10377 * config.in: Regenerate.
10378 * configure.in: Update copyright years.
10379 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10380 * configure: Regenerate.
10381 * i386bsd-nat.c: Update copyright years.
10382 (fill_gregset): Use regcache_collect.
10383 (fetch_inferior_registers): Only fetch integer registers
10384 if requested to do so. Add support for XMM registers
10385 using PT_GETXMMREGS.
10386 (store_inferior_registers): Only store integer registers
10387 if requested to do so. Add support for XMM registers
10388 using PT_SETXMMREGS.
10389 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10390 (store_inferior_registers): Remove.
10391 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10392 (fetch_elfcore_registers): New function.
10393 (i386nbsd_elfcore_fns): New.
10394 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10395 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10396 i386bsd-nat.o.
10397 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10398 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10399 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10400 * config/i386/tm-nbsd.h: Update copyright years.
10401 (HAVE_SSE_REGS): Define.
10402 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10403 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10404 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10405 (SIGCONTEXT_PC_OFFSET): Remove.
10406 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10407
a752853e
AC
104082002-01-05 Andrew Cagney <ac131313@redhat.com>
10409
10410 * configure.tgt: Remove powerpc-*-macos* target.
10411 * config/m68k/xm-mpw.h: Delete file.
10412 * config/xm-mpw.h: Delete file.
10413 * ser-mac.c: Delete file.
10414 * mpw-make.sed: Delete file.
10415 * mpw-config.in: Delete file.
10416 * mac-xdep.c: Delete file.
10417 * mac-gdb.r: Delete file.
10418 * mac-defs.h: Delete file.
10419 * mac-nat.c: Delete file.
10420 * config/powerpc/macos.mh: Delete file.
10421 * config/powerpc/macos.mt: Delete file.
10422 * config/powerpc/nm-macos.h: Delete file.
10423 * config/powerpc/tm-macos.h: Delete file.
10424 * source.c (openp, open_source_file): Remove obsolete code.
10425 * top.c (gdb_readline): Ditto.
10426 * utils.c (query): Ditto.
10427 * event-top.c (display_gdb_prompt): Ditto.
10428 * Makefile.in (ser-mac.o): Delete obsolete target.
10429 * NEWS: Update.
10430
d7449b42
AC
104312002-01-04 Andrew Cagney <ac131313@redhat.com>
10432
10433 * defs.h (BIG_ENDIAN): Delete macro definition.
10434 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10435 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10436 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10437 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10438 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10439 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10440 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10441 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10442 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10443 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10444 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10445 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10446 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10447 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10448 * gdbarch.c: Re-generate.
10449
356374e8
DJ
104502002-01-04 Daniel Jacobowitz <drow@mvista.com>
10451
10452 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10453 for core files.
10454
a2b8f8f8
JT
104552002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10456
10457 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10458
12466af9
AC
104592002-01-04 Andrew Cagney <ac131313@redhat.com>
10460
10461 * value.h (value_ptr): Delete typedef.
10462
3549ab40
JT
104632002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10464
10465 * i386nbsd-nat.c: Update copyright years.
10466 Include i386-tdep.h.
10467
fedbd091
EZ
104682002-01-04 Elena Zannoni <ezannoni@redhat.com>
10469
10470 * stabsread.c: Update copyright years.
10471
10472 From Debashis Mahata <debashis.mahata@wipro.com>:
10473 (read_struct_fields): Deal with Sun C compiler erroneous stab
10474 output for structs and unions.
fec8b34f 10475 Fix PR gdb/269.
fedbd091 10476
eb43544b
DJ
104772002-01-04 Daniel Jacobowitz <drow@mvista.com>
10478
10479 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10480 prototype.
10481
1514d34e
DJ
104822002-01-04 Daniel Jacobowitz <drow@mvista.com>
10483
10484 * cp-abi.c: Fix whitespace.
10485 (baseclass_offset): New wrapper function.
10486 * cp-abi.h (baseclass_offset): Add prototype.
10487 (struct cp_abi_ops): Add baseclass_offset pointer.
10488
10489 * valops.c (vb_match): Move to...
10490 * gnu-v2-abi.c (vb_match): here.
10491 * valops.c (baseclass_offset): Move to...
10492 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10493
10494 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10495
10496 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10497 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10498 * hpacc-abi.c (init_hpacc_ops): Likewise.
10499
7f8c9282
DJ
105002002-01-04 Daniel Jacobowitz <drow@mvista.com>
10501
10502 * valops.c (find_overload_match): Accept obj as a
10503 reference parameter. Update it before returning.
10504 * value.h (find_overload_match): Update prototype.
10505 * eval.c (evaluate_subexp_standard): Pass object to
10506 find_overload_match by reference.
10507
f23631e4
AC
105082002-01-03 Andrew Cagney <ac131313@redhat.com>
10509
10510 * valarith.c: Replace value_ptr with struct value pointer. Remove
10511 register attribute from value declarations.
10512 * valops.c: Ditto.
10513 * value.h: Ditto.
10514 * scm-lang.c (scm_lookup_name): Ditto.
10515
79e10fab 105162002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 10517
79e10fab
AC
10518 Abstract the functionality of iterating over mapped memory
10519 regions into a general purpose iterator function.
abf22e64 10520 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
10521 iterator for memory sections.
10522 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10523 (solib_mappings_callback): New function, callback for above.
10524 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10525 (info_mappings_callback): New function, callback for above.
10526
10527 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10528
c5ad026a
MK
105292002-01-01 Mark Kettenis <kettenis@gnu.org>
10530
d2a7c97a
MK
10531 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10532 * i386-tdep.c: Include "elf-bfd.h".
10533 (process_note_abi_tag_sections): New function.
10534 (i386_gdbarch_init): Add code to recognize various OS/ABI
10535 combinations.
10536
c5ad026a
MK
10537 * maint.c (_initialize_maint_cmds): Add missing \ in
10538 string-literal.
10539
a1a5b71e 10540For older changes see ChangeLog-2001
c906108c
SS
10541\f
10542Local Variables:
10543mode: change-log
10544left-margin: 8
10545fill-column: 74
10546version-control: never
10547End:
This page took 1.926876 seconds and 4 git commands to generate.