2002-11-30 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
020cc13c
AC
12002-11-30 Andrew Cagney <cagney@redhat.com>
2
3 * exec.c (xfer_memory): Replace boolean with int.
4 * p-exp.y: Use 0 instead of false.
5 * corelow.c (gdb_check_format): Change return type to int from
6 boolean.
7 * utils.c: Don't include <curses.h> or <term.h> first.
8
1d9b2aa8
SC
92002-11-29 Stephane Carrez <stcarrez@nerim.fr>
10
11 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
12 (m68hc11_register_byte): Remove.
13 (m68hc11_gdbarch_init): Don't set the above.
14
a193e397
AC
152002-11-29 Andrew Cagney <cagney@redhat.com>
16
17 * remote-mips.c (mips_initialize): Force a selected frame rebuild
18 by calling get_selected_frame.
19 * ocd.c (ocd_start_remote): Use get_selected frame instead of
20 set_current_frame, create_new_frame, select_frame and
21 get_current_frame.
22 * remote-e7000.c (e7000_start_remote): Ditto.
23 * remote-mips.c (common_open): Ditto
24 * remote-rdp.c (remote_rdp_open): Ditto.
25
b5fc49aa
AS
262002-11-29 Andreas Schwab <schwab@suse.de>
27
28 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
29 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
30 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
31 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
32 read_memory_unsigned_integer instead of read_memory_integer when
33 dealing with addresses and instruction opcodes.
34 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
35 (m68k_linux_frame_saved_pc): Likewise.
36
6e7f8b9c
AC
372002-11-29 Andrew Cagney <ac131313@redhat.com>
38
39 * stack.c (selected_frame, select_frame): Move from here ...
40 * frame.c (selected_frame, select_frame): ... to here. Include
41 "language.h".
42 * Makefile.in (frame.o): Update dependencies.
43 * frame.c (get_selected_frame): New function.
44 * frame.h (get_selected_frame): Declare.
45 (deprecated_selected_frame): Rename selected_frame.
46 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
47 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
48 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
49 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
50 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
51 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
52 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
53 * z8k-tdep.c, cli/cli-cmds.c: Update.
54
805e2818
AC
552002-11-29 Andrew Cagney <ac131313@redhat.com>
56
57 * frame.h (get_selected_block): Add comments.
58
1058bca7
AC
592002-11-28 Andrew Cagney <ac131313@redhat.com>
60
61 * frame.c (pc_notcurrent): New function.
62 (find_frame_sal): New function.
63 * frame.h (find_frame_sal): Declare.
64 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
65 * stack.c (print_frame_info_base): Use find_frame_sal instead of
66 find_pc_line.
1058bca7
AC
67 (frame_info): Ditto.
68 * ada-lang.c (find_printable_frame): Ditto.
69
d92419e5
JB
702002-11-28 J. Brobecker <brobecker@gnat.com>
71
72 * configure.in: Check that the pthdebug library is recent enough
73 before enabling thread support on native AiX.
74 * configure: Regenerate.
75
76 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
77 from the list of object files as it is now appended by configure
78 if thread support is enabled.
79 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
80 if thread support is enabled.
81
8c69fc49
AC
822002-11-28 Andrew Cagney <cagney@redhat.com>
83
84 * stack.c (get_selected_block): In-line get_current_block.
85 * frame.h (get_current_block): Delete declaration.
86 * blockframe.c (get_current_block): Delete function.
87
07555a72
AC
882002-11-28 Andrew Cagney <ac131313@redhat.com>
89
90 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
91 USE_GENERIC_DUMMY_FRAMES.
92 * gdbarch.h, gdbarch.c: Regenerate.
93 * valops.c, frame.c: Update.
94 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
95 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
96 * config/pa/tm-hppa.h, blockframe.c: Update.
97 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
98 * m68k-tdep.c, alpha-tdep.c: Ditto.
99
100 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
101 * mips-tdep.c: Ditto.
102
b99fa2d2
AC
1032002-11-27 Andrew Cagney <ac131313@redhat.com>
104
105 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
106 (USE_GENERIC_DUMMY_FRAMES): Default to true.
107 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
108 * gdbarch.c, gdbarch.h: Re-generate.
109 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
110 (CALL_DUMMY_LOCATION): Delete macro definition.
111 (PC_IN_CALL_DUMMY): Delete macro definitions.
112
113 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
114 default is already generic_pc_in_call_dummy.
115 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
116 * v850-tdep.c (v850_gdbarch_init): Ditto.
117 * sh-tdep.c (sh_gdbarch_init): Ditto.
118 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
119 * mips-tdep.c (mips_gdbarch_init): Ditto.
120 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
121 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
122 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
123 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
124 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
125 * avr-tdep.c (avr_gdbarch_init): Ditto.
126
127 * arm-tdep.c (arm_gdbarch_init): Do not set
128 use_generic_dummy_frames, default is already 1.
129 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
130 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
131 * v850-tdep.c (v850_gdbarch_init): Ditto.
132 * sh-tdep.c (sh_gdbarch_init): Ditto.
133 * s390-tdep.c (s390_gdbarch_init): Ditto.
134 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
135 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
136 * mips-tdep.c (mips_gdbarch_init): Ditto.
137 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
138 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
139 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
140 * i386-tdep.c (i386_gdbarch_init): Ditto.
141 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
142 * frv-tdep.c (frv_gdbarch_init): Ditto.
143 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
144 * cris-tdep.c (cris_gdbarch_init): Ditto.
145 * avr-tdep.c (avr_gdbarch_init): Ditto.
146
147 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
148 call_dummy_location, default is already AT_ENTRY_POINT.
149 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
150 * v850-tdep.c (v850_gdbarch_init): Ditto.
151 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
152 * sh-tdep.c (sh_gdbarch_init): Ditto.
153 * s390-tdep.c (s390_gdbarch_init): Ditto.
154 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
155 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
156 * mips-tdep.c (mips_gdbarch_init): Ditto.
157 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
158 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
159 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
160 * i386-tdep.c (i386_gdbarch_init): Ditto.
161 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
162 * frv-tdep.c (frv_gdbarch_init): Ditto.
163 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
164 * cris-tdep.c (cris_gdbarch_init): Ditto.
165 * avr-tdep.c (avr_gdbarch_init): Ditto.
166 * arm-tdep.c (arm_gdbarch_init): Ditto.
167 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
168
abc0af47
AC
1692002-11-28 Andrew Cagney <cagney@redhat.com>
170
171 * frame.h: Update comments on set_current_frame, create_new_frame,
172 flush_cached_frames, reinit_frame_cache, select_frame and
173 selected_frame.
174
ed5cedc5
AC
1752002-11-27 Andrew Cagney <cagney@redhat.com>
176
177 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
178 deprecated pc_in_call_dummy function.
179 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
180 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
181 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
182 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
183 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
184
b2a1bd4f
MH
1852002-11-26 Martin M. Hunt <hunt@redhat.com>
186
187 * Makefile.in: Remove Tix dependencies.
188 * acinclude.m4: Ditto.
189 * aclocal.m4: Ditto.
190 * configure.in: Ditto.
191 * configure: Regenerated.
192
f09cffaa
AC
1932002-11-26 Andrew Cagney <ac131313@redhat.com>
194
195 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
196 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
197 * gdbarch.c: Re-generate.
198
e92b0cc9
AC
1992002-11-26 Andrew Cagney <ac131313@redhat.com>
200
201 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
202 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
203 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
204 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
205 pc_in_call_dummy_at_entry_point.
206 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
207 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
208 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
209 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
210 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
211 pc_in_call_dummy_on_stack.
212 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
213 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
214 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
215 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
216 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
217
b4b88177
AC
2182002-11-26 Andrew Cagney <ac131313@redhat.com>
219
220 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
221 pc_in_call_dummy_before_text_end
222 (deprecated_pc_in_call_dummy_after_text_end): Rename
223 pc_in_call_dummy_after_text_end.
224 (deprecated_pc_in_call_dummy_on_stack): Rename
225 pc_in_call_dummy_on_stack.
226 (deprecated_pc_in_call_dummy_at_entry_point): Rename
227 pc_in_call_dummy_at_entry_point.
228 * m68k-tdep.c (m68k_gdbarch_init): Update.
229 * s390-tdep.c (s390_gdbarch_init): Update.
230 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
231 * vax-tdep.c (vax_gdbarch_init): Update.
232 * sparc-tdep.c (sparc_gdbarch_init): Update.
233 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
234 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
235 * i386-tdep.c (i386_gdbarch_init): Update.
236 * frv-tdep.c (frv_gdbarch_init): Update.
237 * cris-tdep.c (cris_gdbarch_init): Update.
238 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
239 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
240 (deprecated_pc_in_call_dummy_after_text_end)
241 (deprecated_pc_in_call_dummy_on_stack)
242 (deprecated_pc_in_call_dummy_at_entry_point): Update.
243 * alpha-tdep.c (alpha_gdbarch_init): Update.
244
eb784848
DJ
2452002-11-25 Daniel Jacobowitz <drow@mvista.com>
246
247 * acconfig.h (HAVE_PREAD64): Add.
248 * configure.in: Check for pread64.
249 * config.in: Regenerated.
250 * configure: Regenerated.
251 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
252 * linux-proc.c (linux_proc_xfer_memory): New function.
253 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
254
933c6fe4
DC
2552002-11-25 David Carlton <carlton@math.stanford.edu>
256
257 * dwarf2read.c (scan_partial_symbols): Descend into namespace
258 pdi's with no name.
259
158a8022
AC
2602002-11-25 Andrew Cagney <ac131313@redhat.com>
261
262 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
263 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
264
481d0f41
JB
2652002-11-25 Jim Blandy <jimb@redhat.com>
266
e8289572
JB
267 * symfile.c (init_objfile_sect_indices): New function.
268 (default_symfile_offsets): Move the section-index-initializing
269 stuff into init_objfile_sect_indices, and call that.
270
b29c9944
JB
271 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
272 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
273
13de58df
JB
274 * symfile.c (syms_from_objfile): Adjust indentation.
275
481d0f41
JB
276 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
277 || info_verbose isn't true.
278
7d6a26a7
AC
2792002-11-24 Andrew Cagney <ac131313@redhat.com>
280
281 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
282 default to get_frame_base.
283 * gdbarch.h, gdbarch.c: Regenerate.
284 * arch-utils.c (default_frame_address): Delete function.
285 * arch-utils.h (default_frame_address): Delete declaration
286
6abe1021
PM
2872002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
288
289 * varobj.c (find_frame_addr_in_frame_chain):
290 Use get_frame_base instead of FRAME_FP,
291 obvious fix.
292
c193f6ac
AC
2932002-11-19 Andrew Cagney <ac131313@redhat.com>
294
295 * frame.h (FRAME_FP): Delete macro.
296 (get_frame_base): New function declaration.
297 * frame.c (get_frame_base): New function.
298 (get_frame_id): Use ->frame.
299 (frame_find_by_id): Rewrite to use get_frame_id.
300 * blockframe.c: Use get_frame_base instead of FRAME_FP.
301 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
302 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
303 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
304 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
305 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
306 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
307
e5d2af14
AC
3082002-11-24 Andrew Cagney <ac131313@redhat.com>
309
310 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
311
931d12c6
AC
3122002-11-24 Andrew Cagney <ac131313@redhat.com>
313
314 * frame.c (set_unwind_by_pc): Revert change below, use
315 PC_IN_CALL_DUMMY.
316 (get_prev_frame): Ditto.
317
5e0f933e
AC
3182002-11-24 Andrew Cagney <ac131313@redhat.com>
319
320 * dummy-frame.c (pc_in_dummy_frame): New function.
321 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
322 (find_dummy_frame): Update comment.
323 (generic_pop_current_frame): Use get_frame_type.
324 * dummy-frame.h (pc_in_dummy_frame): Declare.
325 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
326 (create_new_frame): Use pc_in_dummy_frame.
327 (get_prev_frame): Use pc_in_dummy_frame.
328 (frame_saved_regs_register_unwind): Use get_prev_frame.
329 (deprecated_generic_get_saved_register): Use get_prev_frame.
330
7d8547c9
AC
3312002-11-23 Andrew Cagney <ac131313@redhat.com>
332
333 * blockframe.c (find_frame_addr_in_frame_chain): Move function
334 from here ...
335 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
336 (varobj_create): Note that frame ID should be used.
337 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
338
0225421b
AC
3392002-11-23 Andrew Cagney <ac131313@redhat.com>
340
341 * breakpoint.c: Include "gdb_assert.h".
342 (deprecated_frame_in_dummy): Assert that generic dummy frames are
343 not being used.
344 * Makefile.in (breakpoint.o): Update dependencies.
345 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
346 deprecated_frame_in_dummy.
347 * stack.c (print_frame_info_base): Ditto.
348 (frame_info): Ditto.
349 (print_frame_info_base): Ditto. Delete dead code.
350
32eeb91a
AS
3512002-11-23 Andreas Schwab <schwab@suse.de>
352
353 * Makefile.in (m68k_tdep_h): Define.
354 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
355 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
356 * m68k-tdep.c: Move register number enum ...
357 * m68k-tdep.h: ... to this new file and rename the constants from
358 E_* to M68K_*. All uses changed.
359 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
360 * abug-rom.c: Include "m68k-tdep.h". Use
361 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
362 * cpu32bug-rom.c: Likewise.
363 * dbug-rom.c: Likewise.
364 * m68k-tdep.c: Likewise.
365 * m68klinux-nat.c: Likewise.
366 * remote-est.c: Likewise.
367 * rom68k-rom.c: Likewise.
368 * config/m68k/tm-linux.h: Likewise.
369
9648bac8
AC
3702002-11-23 Andrew Cagney <ac131313@redhat.com>
371
372 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
373 dummy frame initialization code.
374 * mips-tdep.c (mips_gdbarch_init): Ditto.
375
91a175b3
CF
3762002-11-22 Christopher Faylor <cgf@redhat.com>
377
378 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
379 attach will hang.
380
f4ded5b1
AC
3812002-11-22 Andrew Cagney <ac131313@redhat.com>
382
383 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
384 to default_frame_address.
385 * gdbarch.h, gdbarch.c: Re-generate.
386
387 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
388 or frame_locals_address to default_frame_address.
389 * m68k-tdep.c (m68k_gdbarch_init): Update.
390 * i386-tdep.c (i386_gdbarch_init): Update.
391 * frv-tdep.c (frv_gdbarch_init): Update.
392 * sh-tdep.c (sh_gdbarch_init): Update.
393 * v850-tdep.c (v850_gdbarch_init): Update.
394 * sparc-tdep.c (sparc_gdbarch_init): Update.
395 * mips-tdep.c (mips_gdbarch_init): Update.
396 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
397 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
398 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
399
400 * cris-tdep.c (cris_frame_args_address): Delete function.
401 (cris_frame_locals_address): Delete function.
402 (cris_gdbarch_init): Do not set frame_args_address or
403 frame_locals_address.
404
f7c1e0f3
MS
4052002-11-22 Michael Snyder <msnyder@redhat.com>
406
407 * thread-db.c (thread_db_load): Tell the user what's going on
408 if dlopen fails on libthread_db.
409
03dac896
AS
4102002-11-23 Andreas Schwab <schwab@suse.de>
411
412 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
413 invariant return values.
414
7a67d0fe
AS
4152002-11-22 Andreas Schwab <schwab@suse.de>
416
417 * valops.c (value_slice): Move declaration of `offset' to avoid
418 warning.
419
5633f842
CF
4202002-11-22 Christopher Faylor <cgf@redhat.com>
421
422 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
423 (struct so_stuff): Add end_addr field.
424 (register_loaded_dll): Calculate and store end address of loaded dll.
425 (solib_address): New function.
426 (child_solib_loaded_library_pathname): Pass carefully constructed
427 section info to safe_symbol_file_add rather than ignoring it.
428 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
429 DLL is loaded.
430 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
431 (child_create_inferior): Fix a compiler warning.
432 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
433 (solib_address): Declare new function.
434
d85fe7f7
AS
4352002-11-22 Andreas Schwab <schwab@suse.de>
436
437 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
438 and FPS registers.
439
8308e54c
DJ
4402002-11-21 Daniel Jacobowitz <drow@mvista.com>
441
442 * maint.c (_initialize_maint_cmds): Fix typo. From
443 Francesco Potorti` <pot@gnu.org>.
444
8997bd5e
AC
4452002-11-21 Andrew Cagney <cagney@redhat.com>
446
447 * mips-tdep.c (mips_dump_tdep): Delete references to
448 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
449 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
450 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
451 * printcmd.c (build_address_symbolic): Delete calls to
452 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
453 (address_info): Ditto.
454 Fix PR gdb/773.
455
4e87b832
KD
4562002-11-19 Klee Dienes <kdienes@apple.com>
457 Adam Fedor <fedor@gnu.org>
458
459 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
460 the ability to explicitly specify the quote characters and word
461 break characters; if NULL is specified for either, use the old
462 behavior of using the characters used by the completer.
463 (skip_chars): New function. Convenience wrapper around
464 skip_quoted_chars to provide the original skip_chars behavior.
465 * completer.h (skip_quoted_chars): Add prototype.
466
9ba8d803
AC
4672002-11-19 Andrew Cagney <ac131313@redhat.com>
468
469 Problems reported by Paul Eggert.
470 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
471
0a595803
AS
4722002-11-19 Andreas Schwab <schwab@suse.de>
473
474 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
475 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
476 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
477 (m68k_linux_frame_saved_pc): Move to ...
478 * m68klinux-tdep.c: ... here. New file.
479 * Makefile.in (m68klinux-tdep.o): Add dependencies.
480 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
481
e8afa4d7
AF
4822002-11-19 Adam Fedor <fedor@gnu.org>
483
484 * objc-exp.y: Revert to old skip_quoted usage.
485
a76c9d72
AF
4862002-11-19 Adam Fedor <fedor@gnu.org>
487
488 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
489 (objc_lang_h): Define.
490 (YYFILES): Add objc-exp.tab.c.
491 (local-maintainer-clean): Remove objc-exp.tab.c.
492 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
493
fd0e9d45
PM
4942002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
495
496 * p-exp.y (typecast rule): Add automatic dereference of
497 pascal classes if needed.
498 (THIS): Set current_type.
499 Automatically dereference pascal classes.
500 (typebase rule): Add ^typebase recognition.
501
82eeeb94
AF
5022002-11-18 Adam Fedor <fedor@gnu.org>
503
504 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
505 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
506 (op_name): Handle OP_OBJC_SELF.
507 * Makefile.in (expprint.o): Add additional depends.
508
646df18d
AF
5092002-11-18 Adam Fedor <fedor@gnu.org>
510
511 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
512 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
513 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
514 * objc-exp.y: Likewise.
515
379b85df
AF
5162002-11-18 Adam Fedor <fedor@gnu.org>
517
518 * gdb/parser-defs.h: (struct objc_class_str): New structure
519 for parsing ObjC classes.
520
85cf597a
AC
5212002-11-18 Andrew Cagney <ac131313@redhat.com>
522
523 * stack.c (frame_relative_level): Copy function from here ...
524 * frame.c (frame_relative_level): ...to here.
525
5a203e44
AC
5262002-11-18 Andrew Cagney <ac131313@redhat.com>
527
528 * frame.h (enum frame_type): Define.
529 (get_frame_type): Declare.
530 (struct frame_info): Add field `type'. Delete field
531 signal_handler_caller.
532 (deprecated_set_frame_signal_handler_caller): Declare.
533 * frame.c (get_frame_type): New function.
534 (deprecated_set_frame_type): New function.
535 (create_new_frame): Set the frame's type.
536 (get_prev_frame): Similar.
537 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
538 * s390-tdep.c: Ditto.
539 * m68klinux-nat.c: Ditto.
540 * ns32k-tdep.c: Ditto.
541 * x86-64-linux-tdep.c: Ditto.
542 * vax-tdep.c: Ditto.
543 * rs6000-tdep.c: Ditto.
544 * ppc-linux-tdep.c: Ditto.
545 * i386-interix-tdep.c: Ditto.
546 * mips-tdep.c: Ditto.
547 * m68k-tdep.c: Ditto.
548 * hppa-tdep.c: Ditto.
549 * ia64-tdep.c: Ditto.
550 * cris-tdep.c: Ditto.
551 * arm-tdep.c: Ditto.
552 * alpha-tdep.c: Ditto.
553 * i386-tdep.c: Ditto.
554 * stack.c: Ditto.
555 * ada-lang.c: Ditto.
556 * blockframe.c: Update.
557 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
558 deprecated_set_frame_type instead of signal_handler_caller.
559 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
560 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
561 * breakpoint.h: Delete FIXME suggesting get_frame_type.
562
bf4ae8b2
KD
5632002-11-18 Klee Dienes <kdienes@apple.com>
564
565 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
566
a672ef13
KD
5672002-11-18 Klee Dienes <kdienes@apple.com>
568
569 * buildsym.c (pop_context): Add comment.
570
0c5e171a
KD
5712002-11-18 Klee Dienes <kdienes@apple.com>
572
573 * buildsym.h (pop_context): Convert to function, defined in
574 buildsym.c.
575 * buildsym.c: Include gdb_assert.h.
576 (pop_context): Implement as C function. Add check for stack
577 underflow.
578 * dbxread.c (process_one_symbol): Complain and stop processing
579 that symbol if we are already at the top of the context stack for
580 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
581 when processing N_RBRAC.
582
8a1f4c4c
DJ
5832002-11-16 Daniel Jacobowitz <drow@mvista.com>
584
585 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
586 define.
587 (struct target_waitstatus): Add opaque definition.
588 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
589 * exec.c (init_exec_ops): Likewise.
590 * fork-child.c (clone_and_follow_inferior): Remove.
591 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
592 * inferior.h (clone_and_follow_inferior): Remove prototype.
593 * infrun.c (follow_fork_mode_both): Remove.
594 (follow_fork_mode_kind_names): Remove commented out "both".
595 (follow_inferior_fork): Remove follow_fork_mode_both support.
596 * inftarg.c (child_clone_and_follow_inferior): Remove.
597 (child_post_follow_inferior_by_clone): Remove.
598 (init_child_ops): Don't set to_clone_and_follow_inferior
599 or to_post_follow_inferior_by_clone.
600 * target.c (default_clone_and_follow_inferior): Remove.
601 (cleanup_target): Don't set to_clone_and_follow_inferior
602 or to_post_follow_inferior_by_clone.
603 (find_default_clone_and_follow_inferior): Remove.
604 (init_dummy_target): Don't set to_clone_and_follow_inferior.
605 (debug_to_clone_and_follow_inferior): Remove.
606 (debug_to_post_follow_inferior_by_clone): Remove.
607 (setup_target_debug): Don't set to_clone_and_follow_inferior
608 or to_post_follow_inferior_by_clone.
609 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
610 and to_post_follow_inferior_by_clone.
611 (child_clone_and_follow_inferior): Remove prototype.
612 (child_post_follow_inferior_by_clone): Remove prototype.
613 (target_clone_and_follow_inferior): Remove macro.
614 (target_post_follow_inferior_by_clone): Remove macro.
615 (find_default_clone_and_follow_inferior): Remove prototype.
616
47932f85
DJ
6172002-11-16 Daniel Jacobowitz <drow@mvista.com>
618
619 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
620 inferior_has_vforked, and inferior_has_execd instead of
621 target_has_forked, target_has_vforked, and target_has_execd.
622 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
623 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
624 (CHILD_WAIT): Define.
625 (child_wait): Add prototype.
626 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
627 Add prototype.
628 (hpux_has_vforked): Likewise, from child_has_vforked.
629 (hpux_has_execd): Likewise, from child_has_execd.
630 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
631 (not_same_real_pid, child_wait): New, copied from inftarg.c.
632 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
633 and hpux_has_syscall_event instead of the target hooks.
634 * infrun.c (inferior_has_forked, inferior_has_vforked)
635 (inferior_has_execd): New functions.
636 * inftarg.c (not_same_real_pid): Remove.
637 (child_wait): Remove references to not_same_real_pid,
638 target_has_forked, target_has_vforked, target_has_execd,
639 and target_has_syscall_event.
640 (child_has_forked, child_has_vforked, child_has_execd)
641 (child_has_syscall_event): Remove.
642 (init_child_ops): Remove references to child_has_forked,
643 child_has_vforked, child_has_execd, and child_has_syscall_event.
644 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
645 (hpux_has_vforked): Likewise, from child_has_vforked.
646 (hpux_has_execd): Likewise, from child_has_execd.
647 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
648 * target.c (cleanup_target): Remove references to
649 to_has_forked, to_has_vforked, to_has_execd, and
650 to_has_syscall_event.
651 (update_current_target): Likewise.
652 (setup_target_debug): Likewise.
653 (debug_to_has_forked): Remove.
654 (debug_to_has_vforked): Remove.
655 (debug_to_has_execd): Remove.
656 (debug_to_has_syscall_event): Remove.
657 * target.h (struct target_ops): Remove to_has_forked.
658 to_has_vforked, to_has_execd, and to_has_syscall_event.
659 (child_has_forked, child_has_vforked, child_has_execd)
660 (child_has_syscall_event): Remove prototypes.
661 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
662 prototypes.
663 (target_has_forked, target_has_vforked, target_has_execd)
664 (target_has_syscall_event): Remove macros.
665
4088142a
DJ
6662002-11-16 Daniel Jacobowitz <drow@mvista.com>
667
668 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
669 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
670 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
671 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
672 * target.c (cleanup_target): Remove reference to
673 to_can_follow_vfork_prior_to_exec.
674 (update_current_target): Likewise.
675 (debug_to_can_follow_vfork_prior_to_exec): Remove.
676 (setup_target_debug): Remove reference to
677 to_can_follow_vfork_prior_to_exec.
678 * target.h (struct target_ops): Remove
679 to_can_follow_vfork_prior_to_exec.
680 (child_can_follow_vfork_prior_to_exec): Remove prototype.
681 (target_can_follow_vfork_prior_to_exec): Remove definition.
682 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
683 define.
684 * infrun.c (follow_vfork_when_exec): Remove.
685 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
686 (follow_exec): Likewise.
687 (handle_inferior_event): Likewise.
688 (keep_going): Likewise.
689
18cde8d5
AC
6902002-11-15 Andrew Cagney <cagney@redhat.com>
691
692 * frame.c (generic_unwind_get_saved_register): Make static.
693 * frame.h (generic_unwind_get_saved_register): Delete declaration.
694 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
695 defaults to generic_unwind_get_saved_register.
696 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
697 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
698 * frv-tdep.c (frv_gdbarch_init): Ditto.
699 * i386-tdep.c (i386_gdbarch_init): Ditto.
700 * s390-tdep.c (s390_gdbarch_init): Ditto.
701 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
702 * v850-tdep.c (v850_gdbarch_init): Ditto.
703 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
704 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
705 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
706
a6b063af
AC
7072002-11-15 Andrew Cagney <cagney@redhat.com>
708
709 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
710 i386-tdep.c.
711
f407986f
AC
7122002-11-15 Andrew Cagney <cagney@redhat.com>
713
714 * frame.h (sigtramp_saved_pc): Delete declaration.
715 * blockframe.c (sigtramp_saved_pc): Delete function.
716 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
717 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
718 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
719 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
720
f18c5a73
AC
7212002-11-15 Andrew Cagney <ac131313@redhat.com>
722
723 * frame.c (frame_pc_unwind): New function.
724 (frame_saved_regs_pc_unwind): New function.
725 (frame_register_unwind): Pass unwind_cache instead of
726 register_unwind_cache.
727 (set_unwind_by_pc): Add unwind_pc parameter, set.
728 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
729 (get_prev_frame): Ditto.
730 * frame.h (frame_pc_unwind_ftype): Declare.
731 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
732 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
733 (frame_pc_unwind): Declare.
734 * dummy-frame.c (dummy_frame_pc_unwind): New function.
735 (struct dummy_frame): Add comment mentioning that values are for
736 previous frame.
737 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
738 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
739 (generic_file_frame_chain_valid): Ditto.
740 * stack.c (frame_info): Ditto.
741
d9285969 7422002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
743
744 * linespec.c (locate_first_half): New function.
745 (decode_line_1): Move code into locate_first_half.
746
d741b867
AC
7472002-11-15 Andrew Cagney <ac131313@redhat.com>
748
749 * complaints.h: Add comment explaining how to eliminate a
750 deprecated_complain call.
24382c5c 751 * complaints.h: Fix spelling errors.
d741b867 752
82d03c99
DC
7532002-11-15 David Carlton <carlton@math.stanford.edu>
754
755 * printcmd.c: Remove #include "disasm.h".
756
c97eb5d9
AC
7572002-11-14 Andrew Cagney <ac131313@redhat.com>
758
759 * frame.h: Move the most relevant interface functions to the start
760 of the file.
761
524d7c18
AC
7622002-11-14 Andrew Cagney <ac131313@redhat.com>
763
764 * regcache.h (deprecated_registers): Rename registers.
765 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
766 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
767 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
768 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
769 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
770 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
771 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
772 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
773 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
774 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
775 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
776 * v850ice.c: Update.
777
6411e720
AC
778Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
779
780 * utils.c (gdb_realpath): Add comment mentioning realpath with a
781 NULL buffer.
782
73937e03
AC
7832002-11-13 Andrew Cagney <cagney@redhat.com>
784
785 * regcache.h (deprecated_read_register_bytes): Rename
786 read_register_bytes.
787 (deprecated_write_register_bytes): Rename write_register_bytes.
788 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
789 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
790 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
791 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
792 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
793 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
794 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
795 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
796 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
797 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
798 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
799 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
800 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
801 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
802
fb0cd46e
JB
8032002-11-13 Jim Blandy <jimb@redhat.com>
804
805 * findvar.c (read_var_value): Doc fix.
806
2d28509a
AC
8072002-11-13 Andrew Cagney <cagney@redhat.com>
808
809 * regcache.c (struct regcache): Replace passthough_p with
810 readonly_p.
811 (regcache_xmalloc): Initialize readonly_p.
812 (build_regcache): Initialize readonly_p.
813 (regcache_save): New function.
814 (regcache_restore): New function.
815 (regcache_cpy): Re-implement using regcache_save and
816 regcache_restore.
817 (regcache_raw_read): Update.
818 (regcache_cooked_read): When a read-only cache, checked for cached
819 pseudo register values.
820 (regcache_raw_write): Assert that the cache is not read-only.
821 Remove code handling a non-passthrough cache.
822 * regcache.h (regcache_save): Declare.
823 (regcache_restore): Declare.
824
067df2e5
AC
8252002-11-13 Andrew Cagney <cagney@redhat.com>
826
827 * regcache.c (struct regcache_descr): Add fields
828 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
829 (init_legacy_regcache_descr): Compute the size of a cooked
830 register cache and then assign that to sizeof_raw_registers. Set
831 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
832 (init_legacy_regcache_descr): Ditto.
833
51b1fe4e
AC
8342002-11-13 Andrew Cagney <cagney@redhat.com>
835
836 * regcache.c (register_buffer): Move to near start of file, update
837 description.
838 (regcache_raw_read): Use.
839 (regcache_raw_write): Use.
840 (struct regcache): Rename raw_registers to registers and
841 raw_register_valid_p to register_valid_p.
842 (regcache_xmalloc): Update.
843 (regcache_xfree): Update.
844 (register_buffer): Update.
845 (regcache_cpy): Update.
846 (regcache_cpy_no_passthrough): Update.
847 (regcache_valid_p): Update.
848 (deprecated_grub_regcache_for_registers): Update.
849 (deprecated_grub_regcache_for_register_valid): Update.
850 (set_register_cached): Update.
851 (regcache_raw_write): Update.
852
80b4c677
PM
8532002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
854
855 * p-exp.y (name_not_typename): Use copy_name to
856 set current_type variable for fields of THIS.
857
0f3fafde
DJ
8582002-11-12 Daniel Jacobowitz <drow@mvista.com>
859
860 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
861 * monitor.c (init_base_monitor_ops): Likewise.
862 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
863 * remote-array.c (init_array_ops): Likewise.
864 * remote-e7000.c (init_e7000_ops): Likewise.
865 * remote-es.c (init_es1800_ops): Likewise.
866 (init_es1800_child_ops): Likewise.
867 * remote-rdp.c (init_remote_rdp_ops): Likewise.
868 * remote-sim.c (init_gdbsim_ops): Likewise.
869 * remote-st.c (init_st2000_ops): Likewise.
870 * sol-thread.c (init_sol_core_ops): Likewise.
871 (init_sol_thread_ops): Likewise.
872 * v850ice.c (init_850ice_ops): Likewise.
873 * win32-nat.c (init_child_ops): Likewise.
874 * wince.c (init_child_ops): Likewise.
875
82c0260e
AC
8762002-11-12 Andrew Cagney <ac131313@redhat.com>
877
878 * utils.c (gdb_realpath): Make rp a constant pointer.
879
70d35819
AC
8802002-11-12 Andrew Cagney <ac131313@redhat.com>
881
882 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
883 a constant buffer; cannonicalize_file_name(); realpath() with a
884 pathconf() defined buffer, xstrdup().
885
9835a8b0
AC
8862002-11-12 Andrew Cagney <ac131313@redhat.com>
887
888 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
889 to hang2.C; hang3.c to hang3.C.
890
3f47be5c
EZ
8912002-11-11 Elena Zannoni <ezannoni@redhat.com>
892
893 * findvar.c (read_var_value): Reenable TLS code.
894
8952002-11-11 Elena Zannoni <ezannoni@redhat.com>
896 Jim Blandy <jimb@redhat.com>
897
898 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
899 * target.c (update_current_target): Add
900 to_get_thread_local_address.
901 * target.h (to_get_thread_local_address): Export.
902 (target_get_thread_local_address): Define.
903 (target_get_thread_local_address_p): Define.
904 * thread-db.c: Include solib-svr4.h.
905 (td_thr_tls_get_addr_p): Define.
906 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
907 (thread_db_get_thread_local_address): New function.
908 (init_thread_db_ops): Initialize to_get_thread_local_address.
909 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
910 * configure: Regenerate.
911 * config.in: Regenerate.
912
636b1a6d
DC
9132002-11-11 David Carlton <carlton@math.stanford.edu>
914
915 * linespec.c (set_flags): New function.
916 (decode_line_1): Move code into set_flags.
917
44fe14ab
DC
9182002-11-11 David Carlton <carlton@math.stanford.edu>
919
920 * linespec.c (decode_line_1): Move chunks of code to separate
921 functions.
922 (initialize_defaults): New function.
923 (decode_indirect): New function.
924
e6f181f5
AC
9252002-11-11 Andrew Cagney <ac131313@redhat.com>
926
8971b011
AC
927 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
928 instead of void_code_ptr.
929 (sigtramp_saved_pc): Ditto.
930
e6f181f5
AC
931 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
932 i386_fp_regnum_p.
933
01ad7f36
DJ
9342002-11-10 Daniel Jacobowitz <drow@mvista.com>
935
936 * gdbtypes.h (struct main_type): Move artificial flag out of
937 loc. New member of ``struct field'' named static_kind. Reduce
938 overloaded meaning of bitsize.
939 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
940 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
941 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
942
943 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
944 new fields.
945 (template_to_fixed_record_type, template_to_static_fixed_type)
946 (to_record_with_fixed_variant_part): Likewise.
947 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
948 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
949 * dwarfread.c (struct_type, enum_type): Likewise.
950 * hpread.c (hpread_read_enum_type)
951 (hpread_read_function_type, hpread_read_doc_function_type)
952 (hpread_read_struct_type): Likewise.
953 * mdebugread.c (parse_symbol): Likewise.
954
bf1e52be
AC
9552002-11-10 Andrew Cagney <ac131313@redhat.com>
956
957 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
958 * stack.c (print_frame_info_base): Update.
959 (print_frame_info_base, frame_info): Update.
960 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
961 (sparc_frame_saved_pc): Update.
962 * ada-lang.c (find_printable_frame): Update.
963 * breakpoint.c (deprecated_frame_in_dummy): Update.
964
ce556f85
MK
9652002-11-09 Mark Kettenis <kettenis@gnu.org>
966
967 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
968 defined.
969 (regmap): Extend to cover all registers.
970 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
971 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
972 definitions.
973 (fetch_register, sore_register): Simplify.
974 (old_fetch_inferior_registers, old_store_inferior_registers):
975 Remove functions.
976 (cannot_fetch_register, cannot_store_register): Change
977 implementation to use regmap array to decide which registers
978 cannot be fetched/stored. This removes $orig_eax from the
979 registers that cannot be fetched/stored.
980 (fetch_inferior_registers): Call fetch_register directly instead
981 of calling old_fetch_inferior_registers.
982 (store_inferior_registers): Call store_register directly instead
983 of calling old_store_inferior_registers.
984 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
985 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
986 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
987
932bb524
KD
9882002-11-09 Klee Dienes <kdienes@apple.com>
989
990 * i387-tdep.c (i387_supply_register): When called with NULL as a
991 buffer, mark the register as not provided (to mirror the behavior
992 of supply_register).
993 (i387_supply_fxsave): Ditto.
994 (i387_supply_fsave): Ditto (inherits the behavior from
995 i387_supply_register).
996
ebe68b27
KD
9972002-11-09 Klee Dienes <kdienes@apple.com>
998
999 * blockframe.c (sigtramp_saved_pc): Use
1000 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1001 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1002 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1003
15220c65
AC
10042002-11-09 Andrew Cagney <ac131313@redhat.com>
1005
1006 * frame.c (get_prev_frame): Test prev_p to identify a previously
1007 unwound frame. Initialize prev_p.
1008 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1009 comment.
1010
95adb866
AC
10112002-11-09 Andrew Cagney <ac131313@redhat.com>
1012
1013 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1014 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1015 more comments. Zap dead code.
1016
e71ecd70
MK
10172002-11-09 Mark Kettenis <kettenis@gnu.org>
1018
1019 * infcmd.c (print_vector_info, print_float_info): Move code that
1020 checks whether the target has any registers and whether there is a
1021 selected frame up, such that it is also used if a target provides
1022 multi-arch definitions of these functions.
1023
c525330d
AC
10242002-11-08 Andrew Cagney <ac131313@redhat.com>
1025
72bdd927
AC
1026 * Makefile.in (DESTDIR): Define.
1027 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1028 prefix.
1029
c525330d
AC
1030 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1031 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1032
38c968cf
AC
10332002-11-08 Andrew Cagney <ac131313@redhat.com>
1034
1035 * i386-linux-tdep.c: Include "reggroups.h".
1036 (i386_linux_register_reggroup_p): New function.
1037 (i386_linux_init_abi): Set register_reggroup_p to
1038 i386_linux_register_reggroup_p.
1039 * i386-tdep.h (i386_register_reggroup_p): Declare.
1040 * i386-tdep.c: Include "reggroups.h".
1041 (i386_init_reggroups): New function.
1042 (i386_add_reggroups): New function.
1043 (i386_register_reggroup_p): New function.
1044 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1045 (_initialize_i386_tdep): Call i386_init_reggroups.
1046 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1047 specific reggroups.
1048
19e33363
MK
10492002-11-09 Mark Kettenis <kettenis@gnu.org>
1050
371a6e84
MK
1051 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1052 request that's available in *BSD.
1053
94ba925a
MK
1054 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1055
19e33363
MK
1056 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1057 FDOFF_REGNUM.
1058
8779790c
AC
10592002-11-08 Andrew Cagney <ac131313@redhat.com>
1060
1061 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1062 * dummy-frame.c (find_dummy_frame): Rename
1063 generic_find_dummy_frame, make static. Return the dummy frame
1064 instead of the regcache.
1065 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1066 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1067 (dummy_frame_register_unwind): Rename
1068 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1069 * dummy-frame.h (dummy_frame_register_unwind): Rename
1070 generic_call_dummy_register_unwind.
1071
8674b74f
MK
10722002-11-08 Mark Kettenis <kettenis@gnu.org>
1073
1074 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1075 except the inclusion of "i386/tm-i386.h", to...
1076 * config/i386/nm-i386v42mp.h: ...here.
1077 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1078
4c1e7e9d
AC
10792002-11-08 Andrew Cagney <ac131313@redhat.com>
1080
1081 * Makefile.in (frame.o): Update dependencies.
1082 * blockframe.c (current_frame, frame_obstack_alloc)
1083 (frame_saved_regs_zalloc, get_current_frame)
1084 (set_current_frame, create_new_frame)
1085 (set_unwind_by_pc, get_next_frame)
1086 (flush_cached_frames, reinit_frame_cache)
1087 (frame_saved_regs_register_unwind)
1088 (deprecated_generic_get_saved_register)
1089 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1090 (_initialize_blockframe): Move frame code from here...
1091 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1092 "annotate.h" and "dummy-frame.h".
1093 (_initialize_frame): New function.
1094
921e78cf
JB
10952002-11-08 Jim Blandy <jimb@redhat.com>
1096
1097 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1098 when we finish a function a context.
1099 * buildsym.h (outermost_context_p): New macro.
1100 (Bug analyzed by David Edelsohn.)
1101
9c1412c1
AC
11022002-11-08 Andrew Cagney <ac131313@redhat.com>
1103
1104 * blockframe.c: Include "dummy-frame.h".
1105 (struct dummy_frame, dummy_frame_stack)
1106 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1107 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1108 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1109 (generic_save_call_dummy_addr, generic_pop_current_frame)
1110 (generic_pop_dummy_frame, generic_fix_call_dummy)
1111 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1112 dummy frame code from here...
1113 * dummy-frame.c: ...to here. New file.
1114 * dummy-frame.h: New file.
1115 (generic_call_dummy_register_unwind): Declare.
1116 (generic_find_dummy_frame): Declare.
1117 * Makefile.in (SFILES): Add dummy-frame.c.
1118 (dummy-frame.o): Specify dependencies.
1119 (dummy_frame_h): Define.
1120 (COMMON_OBS): Add dummy-frame.o.
1121 (blockframe.o): Update dependencies.
1122
208d8187
JB
11232002-11-08 Jim Blandy <jimb@redhat.com>
1124
1125 * dwarf2read.c (read_func_scope): Restore local_symbols and
1126 param_symbols after we finish the function context. (Based on a
1127 patch from David Edelsohn.)
1128
413dad4d
DC
11292002-11-08 David Carlton <carlton@math.stanford.edu>
1130
1131 * linespec.c (symbol_found): New function.
1132 (minsym_found): New function.
1133 (decode_line_1): Separate out some code into separate functions.
1134
5512c44a
JB
11352002-11-08 Joel Brobecker <brobecker@gnat.com>
1136
1137 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1138 the benefit of the interix target.
1139 * i386-tdep.h (i386_frameless_signal_p): Declare.
1140
1b33ef47
AC
11412002-11-08 Andrew Cagney <ac131313@redhat.com>
1142
1143 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1144 declaration that snuck in from change below.
1145
23a34459
AC
11462002-11-06 Andrew Cagney <cagney@redhat.com>
1147
1148 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1149 all callers.
1150 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1151 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1152 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1153 (i386_mxcsr_regnum_p): new function. Use instead of
1154 MXCSR_REGNUM_P.
1155 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1156 (i386_sse_regnum_p): Declare.
1157 (i386_mxcsr_regnum_p): Declare.
1158 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1159 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1160 (IS_FP_REGNUM): Update definition.
1161 (IS_FPU_CTRL_REGNUM): Update definition..
1162 (IS_SSE_REGNUM): Update definition..
1163 * i386v-nat.c (register_u_addr): Update.
1164 * go32-nat.c (fetch_register): Update.
1165 (store_register): Update.
1166
d709c020
JB
11672002-11-07 Joel Brobecker <brobecker@gnat.com>
1168
1169 Preparation work to convert the hppa targets to multiarch partial.
1170
1171 * hppa-tdep.c: Add new functions replacing macro bodies from
1172 config/pa/tm-hppa.h. These function will be used to initialize
1173 the gdbarch structure. Import some comments from tm-hppa.h,
1174 and place them where appropriate, to avoid loosing them when
1175 we cleanup this file.
1176 (hppa_reg_struct_has_addr): New function.
1177 (hppa_inner_than): New function.
1178 (hppa_stack_align): New function.
1179 (hppa_pc_requires_run_before_use): New function.
1180 (hppa_instruction_nullified): New function.
1181 (hppa_register_byte): New function.
1182 (hppa_register_virtual_type): New function.
1183 (hppa_store_struct_return): New function.
1184 (hppa_cannot_store_register): New function.
1185 (hppa_frame_args_address): New function.
1186 (hppa_frame_locals_address): New function.
1187 (hppa_smash_text_address): New function.
1188 (hppa_coerce_float_to_double): New function. Requires the inclusion
1189 of "language.h".
1190
1191 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1192
1193 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1194 gdbarch-eligible macro to a call to the new associated function
1195 created in hppa-tdep.c.
1196 (INNER_THAN): Likewise.
1197 (STACK_ALIGN): Likewise.
1198 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1199 (INSTRUCTION_NULLIFIED): Likewise.
1200 (REGISTER_BYTE): Likewise.
1201 (REGISTER_VIRTUAL_TYPE): Likewise.
1202 (STORE_STRUCT_RETURN): Likewise.
1203 (CANNOT_STORE_REGISTER): Likewise.
1204 (FRAME_ARGS_ADDRESS): Likewise.
1205 (FRAME_LOCALS_ADDRESS): Likewise.
1206 (SMASH_TEXT_ADDRESS): Likewise.
1207 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1208 (ABOUT_TO_RETURN): Delete, as no longer used.
1209
83c31e7d
FN
12102002-11-07 Fernando Nasser <fnasser@redhat.com>
1211
1212 * printcmd.c (disassemble_command): Remove obsolete function.
1213 (_initialize_printcmd): Do not create disassemble command here.
1214 * cli/cli-cmds.c (disassemble_command): New function. Implements
1215 disassemble command.
1216 (init_cli_cmds): Create disassemble command here instead.
1217
0ec30a36
AC
12182002-11-07 Andrew Cagney <ac131313@redhat.com>
1219
1220 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1221
e600bd34
AC
12222002-11-07 Andrew Cagney <ac131313@redhat.com>
1223
1224 * regcache.h (regcache_cooked_read_using_offset_hack)
1225 (regcache_cooked_write_using_offset_hack): Delete declarations.
1226 (register_changed): Delete declaration.
1227 * regcache.c (regcache_cooked_read_using_offset_hack)
1228 (regcache_cooked_write_using_offset_hack): Delete functions.
1229 (cooked_xfer_using_offset_hack): Delete function.
1230 (register_changed): Delete function.
1231
568f8739
JB
12322002-11-07 Jim Blandy <jimb@redhat.com>
1233
1234 * macroscope.c: #include "complaints.h".
1235 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1236 but not in the macro table.
1237 * Makefile.in (macroscope.o): Record dependency.
1238
b0718b7b
JB
12392002-11-07 Joel Brobecker <brobecker@gnat.com>
1240
1241 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1242
2b9e5f3f
AC
12432002-11-07 Andrew Cagney <ac131313@redhat.com>
1244
1245 * regcache.c (deprecated_registers_fetched): Update.
1246 * regcache.h (deprecated_registers_fetched): Rename
1247 registers_fetched.
1248 * remote-vxsparc.c (vx_read_register): Update.
1249 * remote-vxmips.c (vx_read_register): Update.
1250 * remote-vx68.c (vx_read_register): Update.
1251 * irix5-nat.c (fetch_core_registers): Update.
1252 * mipsm3-nat.c (fetch_inferior_registers): Update.
1253 * sun3-nat.c (fetch_inferior_registers): Update.
1254 * symm-nat.c (fetch_inferior_registers): Update.
1255 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1256 (fetch_core_registers): Update.
1257 (fetch_kcore_registers): Update.
1258 * mips-nat.c (fetch_inferior_registers): Update.
1259 * corelow.c (get_core_registers): Update.
1260 * a68v-nat.c (fetch_inferior_registers): Update.
1261
e6e68f1f
JB
12622002-11-06 Joel Brobecker <brobecker@gnat.com>
1263
1264 Put in place the framework necessary for multiarching the hppa targets.
1265 * hppa-tdep.c (hppa_gdbarch_init): New function.
1266 (hppa_dump_tdep): New function.
1267 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1268 tdep structure dumper.
1269 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1270 until the multi-arching conversion has partially been completed.
1271
492254e9
AC
12722002-11-06 Andrew Cagney <ac131313@redhat.com>
1273
1274 * valops.c (value_assign): Merge lval_register case into
1275 lval_reg_frame_relative. Use frame_register and
1276 regcache_cooked_write instead of get_saved_register and
1277 write_register_bytes. After flushing the register cache, try to
1278 re-select the selected frame.
1279
8262ee23
AC
12802002-11-06 Andrew Cagney <ac131313@redhat.com>
1281
1282 * regcache.h (deprecated_register_valid): Rename register_valid.
1283 * regcache.c: Update.
1284 * ia64-aix-nat.c: Update.
1285 * i386gnu-nat.c: Update.
1286 * alpha-nat.c: Update.
1287 * sparc-nat.c: Update.
1288 * lynx-nat.c: Update.
1289 * remote-mips.c: Update.
1290
4facf7e8
JB
12912002-11-06 Joel Brobecker <brobecker@gnat.com>
1292
1293 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1294 to end of file, to be more consistent with the pratice followed
1295 by other targets.
1296
f9418c0f
AC
12972002-11-06 Andrew Cagney <ac131313@redhat.com>
1298
1299 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1300 (print_float_info): Print registers in float_reggroup.
1301 (print_vector_info): Print registers in vector_reggroup.
1302 (default_print_registers_info): When all, print registers in
1303 all_reggroup. Otherwize, print registers in general_reggroup.
1304 (registers_info): Rewrite. Add support for register groups.
1305 Eliminate a goto.
1306
3fe235a7
EZ
13072002-11-06 Elena Zannoni <ezannoni@redhat.com>
1308
1309 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1310 ages.
1311 (symtab_symbol_info): Remove eons old ifdeffed out code.
1312 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1313 command.
1314
ef944135
TR
13152002-11-06 Theodore A. Roth <troth@openavr.org>
1316
1317 * c-exp.y: Add missing semi-colons.
1318 * f-exp.y: Add missing semi-colons.
1319 * m2-exp.y: Add missing semi-colons.
1320 * p-exp.y: Add missing semi-colons.
1321 Add empty action to start rule to avoid a type clash error when
1322 building with bison >= 1.50.
1323
f8302a57
JB
13242002-11-06 Jim Blandy <jimb@redhat.com>
1325
1326 * macrotab.h (struct macro_source_file): Doc fix.
1327
6e382aa3
JJ
13282002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1329
1330 * varobj.c (child_exists, cplus_number_of_children): Change
1331 STREQ macro references to strcmp.
1332 (cplus_name_of_child): Change code to handle the fact that
1333 fields are not necessarily contiguous with regards to their
1334 access control. This is a fix for PR gdb/792.
1335
a216a322
AC
13362002-11-05 Andrew Cagney <ac131313@redhat.com>
1337
1338 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1339 * gdbarch.h, gdbarch.c: Regnerate.
1340 * frame.h (frame_register): Declare.
1341 * frame.c (frame_register): New function.
1342 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1343 GET_SAVED_REGISTER, otherwize call
1344 generic_unwind_get_saved_register.
1345 (frame_register_read): Use frame_register instead of
1346 get_saved_register.
1347
7d5b6fdd
EZ
13482002-11-05 Elena Zannoni <ezannoni@redhat.com>
1349
1350 From Jim Ingham <jingham@apple.com>:
1351 * event-top.c (gdb_disable_readline): New function.
1352 (_initialize_event_loop): Move comment.
1353
b7c64260
EZ
13542002-11-05 Elena Zannoni <ezannoni@redhat.com>
1355
1356 * event-loop.c (start_event_loop): Add comment.
1357 Update copyright.
1358
c2e1b8f2
AC
13592002-11-05 Andrew Cagney <ac131313@redhat.com>
1360
1361 * infcmd.c (default_print_registers_info): Do not call
1362 PRINT_REGISTER_HOOK.
1363
87647bb0
AC
13642002-11-05 Andrew Cagney <ac131313@redhat.com>
1365
1366 * sparc-tdep.c (sparc_print_register_hook): Make static.
1367 (sparc_print_registers_info): New function.
1368 (sparc_do_registers_info): New function.
1369 (sparclet_print_registers_info): New function.
1370 (sparclet_do_registers_info): New function.
1371 (do_sparc_print_registers_info): New function.
1372 (sparc_print_registers): New static function, clone of infcmd.c's
1373 default_print_registers_info.
1374 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1375 (sparclet_do_registers_info): Declare.
1376 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1377 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1378 Re-define.
1379 (sparc_do_registers_info): Declare.
1380 (PRINT_REGISTER_HOOK): Delete macro.
1381 (sparc_print_register_hook): Delete declaration.
1382
8155455b
DC
13832002-11-05 David Carlton <carlton@math.stanford.edu>
1384
1385 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1386 functions.
1387 (lookup_symbol_aux_local): New function.
1388 (lookup_symbol_aux_symtabs): New function.
1389 (lookup_symbol_aux_psymtabs): New function.
1390
29924310
DC
13912002-11-05 David Carlton <carlton@math.stanford.edu>
1392
1393 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1394 previous values of 'objfile' and 'block'.
1395
cc303028
PM
13962002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1397
1398 * values.c (value_change_enclosing_type): Set
1399 enclosing_type field correctly also for the case where
1400 more memory needs to be allocated.
1401
1d70089a
MK
14022002-11-03 Mark Kettenis <kettenis@gnu.org>
1403
f16a25ae
MK
1404 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1405 of puts_filtered.
1406
1d70089a
MK
1407 * i387-tdep.c (i387_print_float_info): Replace calls to
1408 register_read and deprecated_read_register_gen with calls to
1409 frame_register_read, and make the necessary adjustments to the
1410 surrounding code.
1411
7e20f3fb
AC
14122002-11-02 Andrew Cagney <ac131313@redhat.com>
1413
1414 * gdbarch.sh (register_reggroup_p): Allow default value.
1415 * gdbarch.h, gdbarch.c: Regenerate.
1416
192dbe33
AC
14172002-11-02 Andrew Cagney <ac131313@redhat.com>
1418
1419 * regcache.h: Add coment indicating replacements for deprecated
1420 functions.
1421
b59ff9d5
AC
14222002-11-02 Andrew Cagney <cagney@redhat.com>
1423
1424 * reggroups.h, reggroups.c: New files.
1425 * regcache.c: Include "reggroups.h".
1426 (enum regcache_dump_what): Add `regcache_dump_groups'.
1427 (regcache_dump): Contract size of the "Type" column. When
1428 specified, dump the register's groups.
1429 (maintenance_print_register_groups): New function.
1430 (_initialize_regcache): Add command `maint print register-groups'.
1431 * Makefile.in (COMMON_OBS): Add reggroups.o
1432 (SFILES): Add reggroups.c.
1433 (reggroups_h): Define.
1434 (regcache.o, gdbarch.o): Update dependencies.
1435 (reggroups.o): Specify dependencies.
1436 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1437 Add opaque declaration for `struct reggroup' in generated .h file.
1438 Include "reggroups.h" in generated .c file.
1439 gdbarch.h, gdbarch.c: Re-generate.
1440
4caf0990
AC
14412002-11-02 Andrew Cagney <cagney@redhat.com>
1442
1443 * regcache.h (deprecated_read_register_gen): Rename
1444 read_register_gen.
1445 (deprecated_write_register_gen): Rename write_register_gen.
1446 * i387-tdep.c: Update.
1447 * x86-64-linux-nat.c: Update
1448 * wince.c: Update.
1449 * thread-db.c: Update.
1450 * win32-nat.c: Update.
1451 * mips-tdep.c: Update.
1452 * d10v-tdep.c: Update.
1453 * cris-tdep.c: Update.
1454 * remote-sim.c: Update.
1455 * remote-rdi.c: Update.
1456 * remote-rdp.c: Update.
1457 * frame.c: Update.
1458 * target.c: Update.
1459 * blockframe.c: Update.
1460 * x86-64-tdep.c: Update.
1461 * xstormy16-tdep.c: Update.
1462 * sh-tdep.c: Update.
1463 * s390-tdep.c: Update.
1464 * rs6000-tdep.c: Update.
1465 * sparc-tdep.c: Update.
1466 * i386-tdep.c: Update.
1467 * dwarf2cfi.c: Update.
1468 * regcache.c: Update.
1469
7a7adcdf
JB
14702002-11-01 Joel Brobecker <brobecker@gnat.com>
1471
1472 New interix-specific files:
1473 * config/i386/nm-interix.h: New file.
1474 * config/i386/interix.mh: New file.
1475 * config/i386/interix.mt: New file.
1476 * i386-interix-nat.c: New file.
1477 * i386-interix-tdep.c: New file.
1478
bdcdd535
AC
14792002-11-01 Andrew Cagney <cagney@redhat.com>
1480
1481 * frame.h (deprecated_generic_get_saved_register): Rename
1482 generic_get_saved_register.
1483 * blockframe.c (deprecated_generic_get_saved_register): Update.
1484 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1485 (xstormy16_frame_saved_register): Update.
1486 * sh-tdep.c (sh_gdbarch_init): Update.
1487 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1488 * ia64-tdep.c (ia64_get_saved_register): Update.
1489 * cris-tdep.c (cris_gdbarch_init): Update.
1490 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1491 * arm-tdep.c (arm_gdbarch_init): Update.
1492
2a4b7c45
DJ
14932002-10-31 Daniel Jacobowitz <drow@mvista.com>
1494
1495 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1496
ef17e74b
DJ
14972002-10-31 Daniel Jacobowitz <drow@mvista.com>
1498
1499 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1500 trampolines in sigaction.
1501
4904ba5b
AC
15022002-10-31 Andrew Cagney <cagney@redhat.com>
1503
1504 * h8300-tdep.c: Include "gdb_assert.h".
1505 (h8300_print_register): Add gdbarch, file and frame parameters.
1506 Use frame_read_unsigned_register to read the register's value.
1507 Use fprintf_filtered to display output.
1508 (h8300_print_registers_info): Replace h8300_do_registers_info.
1509 (h8300_gdbarch_init): Set print_registers_info.
1510
f908a0eb
AC
15112002-10-31 Andrew Cagney <cagney@redhat.com>
1512
1513 * frame.c (frame_read_unsigned_register): New function.
1514 (frame_read_signed_register): New function.
1515 * frame.h (frame_read_unsigned_register): Declare.
1516 (frame_read_signed_register): Declare.
1517
c5646e11
AC
15182002-10-31 Andrew Cagney <cagney@redhat.com>
1519
1520 * h8500-tdep.c (h8500_print_registers_info): New static function,
1521 clone of infcmd.c's default_print_registers_info.
1522 (h8500_do_registers_info): New funtion.
1523 (h8500_print_register_hook): Rename print_register_hook, make
1524 static.
1525
1526 * config/h8500/tm-h8500.h: Update copyright.
1527 (DEPRECATED_DO_REGISTERS_INFO): Define.
1528 (h8500_do_registers_info: Declare.
1529 (PRINT_REGISTER_HOOK): Delete macro.
1530 (print_register_hook): Delete function.
1531
0bdd672b
AC
15322002-10-31 Andrew Cagney <cagney@redhat.com>
1533
1534 * z8k-tdep.c (z8k_print_register_hook): Make static.
1535 (z8k_print_registers_info): New static function, clone of
1536 infcmd.c's default_print_registers_info.
1537 (z8k_do_registers_info): New function. Wrap
1538 z8k_print_registers_info.
1539 * config/z8k/tm-z8k.h: Update copyright.
1540 (PRINT_REGISTER_HOOK): Delete macro.
1541 (z8k_print_register_hook): Delete declaration.
1542 (DEPRECATED_DO_REGISTERS_INFO): Define.
1543 (z8k_do_registers_info): Declare.
1544
bf9c25dc
JB
15452002-10-30 Joel Brobecker <brobecker@gnat.com>
1546
1547 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1548 as this is already provided by value.h, and was actually causing
1549 a compilation error because of a conflict in parameter type
1550 declaration due to a missing const keyword.
1551 (low_text_segment_addres): Fix a compilation warning.
1552
2c665b51
DJ
15532002-10-29 Daniel Jacobowitz <drow@mvista.com>
1554
1555 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1556 registers without a name.
1557 (mips_linux_cannot_store_register): Don't store registers without
1558 a name.
1559
e70ea697
DC
15602002-10-28 David Carlton <carlton@math.stanford.edu>
1561
1562 * symtab.c (find_addr_symbol): Delete. (It was already commented
1563 out.)
1564 * symtab.h: Delete prototype for find_addr_symbol.
1565
903ad3a6
AC
15662002-10-26 Andrew Cagney <cagney@redhat.com>
1567
1568 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1569 DO_REGISTERS_INFO.
1570 gdbarch.h, gdbarch.c: Re-generate.
1571 * infcmd.c (default_print_registers_info): Update reference.
1572 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1573 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1574 * sh-tdep.c (sh_gdbarch_init): Ditto.
1575 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1576 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1577
ab91194c
MK
15782002-10-26 Mark Kettenis <kettenis@gnu.org>
1579
e3033f15
MK
1580 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1581 cfi_init_extra_frame_info.
1582 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1583 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1584
b83b026c
MK
1585 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1586 target where necessary. Add more comments and remove the ones
1587 that don't provide any useful information.
1588
267bf4bb
MK
1589 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1590 deprecated_read_register_dummy with
1591 frame_unwind_unsigned_register.
1592
751f1375
MK
1593 * i386-tdep.c (i386_extract_struct_value_address): Use
1594 regcache_raw_read_unsigned instead of
1595 regcache_cooked_read_unsigned since we know that the register
1596 we're reading isn't a pseudo register. Rename variable 'val' into
1597 the more descriptive 'addr'.
1598
26abbdc4
MK
1599 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1600 (x86_64_push_return_address): Add comment.
1601 (x86_64_pop_frame): Make static.
1602 (examine_argument): Clarify comment.
1603 (x86_64_skip_prologue): Make prolog_expact variable static.
1604
9f1549cc
MK
1605 * dwarf2cfi.c: Fix some formatting problems.
1606 (context_cpy, read_encoded_pointer): Clarify comments.
1607
ab91194c
MK
1608 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1609 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1610 i386 target back into x86_64_gdbarch_init. Add some comments and
1611 remove meaningless ones.
1612
72367fb4
AC
16132002-10-25 Andrew Cagney <cagney@redhat.com>
1614
1615 * complaints.h (struct deprecated_complaint): Rename `struct
1616 complaint'.
1617 * complaints.c (complain): Update.
1618 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1619 incorrect comment indicating that "symfile.h" was being included
1620 for the `struct complaint' definition.
1621 * remote-vx.c: Update.
1622 * objc-lang.c: Update.
1623 * xcoffread.c: Update.
1624 * hpread.c: Update.
1625 * mdebugread.c: Update.
1626 * stabsread.c: Update.
1627 * dwarf2read.c: Update.
1628 * dwarfread.c: Update.
1629 * elfread.c: Update.
1630 * coffread.c: Update.
1631 * stabsread.h: Update.
1632 * dbxread.c: Update.
1633 * buildsym.c: Update.
1634 * gdbtypes.c: Update.
1635 * macrotab.c: Update.
1636
1f2baacc
MK
16372002-10-25 Mark Kettenis <kettenis@gnu.org>
1638
0c1a73d6
MK
1639 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1640 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1641 (x86_64_init_abi): ...new function.
1642
6aee4d54 1643 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
1644 * i386v-nat.c: Include "i386-tdep.h".
1645
8f9cbe01
AC
16462002-10-25 Andrew Cagney <cagney@redhat.com>
1647
5f11f355
AC
1648 * gdbtypes.c (address_space_name_to_int): Update.
1649 (address_space_int_to_name): Update.
1650 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1651 multi-arch predicate.
1652 (address_class_name_to_type_flags): Ditto.
1653 * gdbarch.h, gdbarch.c: Re-generate.
1654
8f9cbe01
AC
1655 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1656
e8d96a5d
MH
16572002-10-24 Martin M. Hunt <hunt@redhat.com>
1658
1659 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1660
fe39c653
EZ
16612002-10-24 Elena Zannoni <ezannoni@redhat.com>
1662
1663 * symtab.h (INIT_SAL): Delete macro.
1664 (init_sal): Export.
1665 * symtab.c (init_sal): New function.
1666
1667 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1668 to init_sal function call.
1669 (find_sal_from_funcs_and_line): Ditto.
1670 (all_sals_for_line): Ditto.
1671 * breakpoint.c (create_internal_breakpoint): Ditto.
1672 (create_fork_vfork_event_catchpoint): Ditto.
1673 (create_exec_event_catchpoint): Ditto.
1674 (parse_breakpoint_sals): Ditto.
1675 (watch_command_1): Ditto.
1676 (handle_gnu_4_16_catch_command): Ditto.
1677 (clear_command): Ditto.
1678 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1679 * infcmd.c (run_stack_dummy): Ditto.
1680 * infrun.c (process_event_stop_test): Ditto.
1681 (check_sigtramp2): Ditto.
1682 (step_over_function): Ditto.
1683 * linespec.c (decode_line_2): Ditto.
1684 (decode_line_1): Ditto.
1685 * source.c (line_info): Ditto.
1686 * symtab.c (find_pc_sect_line): Ditto.
1687
baed091b
ML
16882002-10-24 Michal Ludvig <mludvig@suse.cz>
1689
1690 * dwarf2cfi.c (struct context)
1691 (struct context_reg): Moved to dwarf2cfi.h
1692 (context_alloc, frame_state_alloc, context_cpy):
1693 Made extern instead of static, removed prototypes.
1694 * dwarf2cfi.h (struct context)
1695 (struct context_reg): New, moved from dwarf2cfi.c
1696 (context_alloc, frame_state_alloc, context_cpy):
1697 New prototypes.
1698 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1699 Changed from static to extern.
1700 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1701 (LINUX_SIGCONTEXT_FP_OFFSET)
1702 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1703 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1704 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1705 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1706 set_gdbarch_*() calls now use x86-64 specific functions
1707 instead of DWARF2 CFI ones.
1708 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1709 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1710 (x86_64_init_extra_frame_info): New prototypes.
1711
c38da1af
DC
17122002-10-23 David Carlton <carlton@math.stanford.edu>
1713
1714 * linespec.c: #include "parser-defs.h".
1715 Delete prototype for find_template_name_end.
1716 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1717
fb9b6b35
JJ
17182002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1719
1720 * NEWS: add recent mi fixes.
1721 * varobj.c (struct varobj): Add new "updated" flag.
1722 (new_variable): Default "updated" flag to 0.
1723 (varobj_set_value): Set "updated" flag to 1 if value
1724 changes.
1725 (varobj_update): Check varobj "updated" flag before
1726 comparing old and refreshed values. Fix for
1727 PR gdb/702.
1728
8da065d5
DC
17292002-10-23 David Carlton <carlton@math.stanford.edu>
1730
1731 * parse.c (parse_exp_1): Use BLOCK_START.
1732 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1733 SYMBOL_BLOCK_VALUE.
1734 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1735
87f2f08c
DC
17362002-10-23 David Carlton <carlton@math.stanford.edu>
1737
1738 * symtab.c: Delete cplusplus_hint.
1739 Delete prototype for find_template_name_end.
1740
88cda038
EZ
17412002-10-23 Elena Zannoni <ezannoni@redhat.com>
1742
1743 * symtab.h: Update comment.
1744
2625d86c
MS
17452002-10-23 Michael Snyder <msnyder@redhat.com>
1746
1747 * printcmd.c (address_info): Restore quotes in output.
1748 * valops.c (value_of_local): Restore quotes in error message.
1749
9cc0d196
EZ
17502002-10-23 Elena Zannoni <ezannoni@redhat.com>
1751
1752 * symtab.c (symbol_demangled_name): New function.
1753 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1754 turning most of it into a function.
1755 (symbol_demangled_name): Export.
1756
19de93d0
MS
17572002-10-23 Michael Snyder <msnyder@redhat.com>
1758
1759 * valops.c (value_of_local): Restore quotes in error message.
1760
89aad1f9
EZ
17612002-10-23 Elena Zannoni <ezannoni@redhat.com>
1762
1763 * symtab.c (symbol_init_language_specific): New function.
1764 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1765 turning most of it into a function.
1766 (symbol_init_language_specific): Export.
1767
d9fa45fe
DC
17682002-10-23 David Carlton <carlton@math.stanford.edu>
1769
1770 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1771 (dwarf_attr_name): Ditto.
1772 (dwarf_type_encoding_name): Ditto.
1773 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1774 (process_die): Handle DW_TAG_namespace,
1775 DW_TAG_imported_declaration, DW_TAG_imported_module.
1776 (read_namespace): New function.
1777
1045b512
JB
17782002-10-22 Joel Brobecker <brobecker@gnat.com>
1779
1780 * configure.in: Define NEW_PROC_API on Interix too.
1781 * configure: Regenerate.
1782
17832002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
1784
1785 * configure: Regenerate using the proper version of autoconf.
1786
3987b9d4
EZ
17872002-10-21 Elena Zannoni <ezannoni@redhat.com>
1788
1789 * findvar.c (read_var_value): Temporarily disable TLS code, until
1790 complete TLS support is added.
1791
9d774e44
EZ
17922002-10-21 Jim Blandy <jimb@redhat.com>
1793 Elena Zannoni <ezannoni@redhat.com>
1794
1795 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1796 for thread local storage locations.
1797 (struct symbol): Add objfile field.
1798 (SYMBOL_OBJFILE): Define.
1799 * dwarf2read.c (is_thread_local): New static variable.
1800 (new_symbol): If variable is in thread local fill in address class
1801 and objfile appropriately.
1802 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1803 stack operation.
1804 * printcmd.c (address_info): Print the information for thread
1805 local storage variable.
1806 * findvar.c (read_var_value): In case of thread local variable,
1807 defer to the target vector code to compute address.
1808
bc4a16ae
EZ
18092002-10-21 Elena Zannoni <ezannoni@redhat.com>
1810
1811 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1812 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1813
407caf07
EZ
18142002-10-21 Elena Zannoni <ezannoni@redhat.com>
1815
1816 * symtab.h (address_class): Rename
1817 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1818 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1819 * printcmd.c (address_info): Ditto.
1820 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1821
005328e3
MK
18222002-10-20 Mark Kettenis <kettenis@gnu.org>
1823
afdb036a
MK
1824 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1825 DBREG_DRX macro to acces debug registers.
1826
ca02e098
MK
1827 * Makefile.in (i386obsd-tdep.o): New target.
1828
03cc47f7
MK
1829 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1830 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1831
005328e3
MK
1832 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1833 * config/i386/obsd.mt: New file.
1834 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1835 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1836 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1837 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1838 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1839 * i386obsd-tdep.c: New file.
1840
9c96f9f2
AF
18412002-10-19 Adam Fedor <fedor@gnu.org>
1842
1843 * objc-exp.y (name_not_typename): Fix invalid comment.
1844
ce1ed485
MK
18452002-10-20 Mark Kettenis <kettenis@gnu.org>
1846
1847 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1848 to allocate partial syms and macro byte caches.
1849
1efc7aaa
DC
18502002-10-18 David Carlton <carlton@math.stanford.edu>
1851
1852 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1853
7e1d63ec
AF
18542002-10-18 Adam Fedor <fedor@gnu.org>
1855
1856 * stabsread.c (find_name_end): New function.
1857 (define_symbol): Use it.
1858
6e8d29a9
DJ
18592002-10-18 Daniel Jacobowitz <drow@mvista.com>
1860
1861 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1862 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1863 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1864 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1865
1efc7aaa 18662002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
1867
1868 * symfile.h: Add opaque declaration for struct obstack.
1869 Declare obsavestring to take a const char *.
1870 * symfile.c (obsavestring): Make first argument a const char *.
1871
1aeae86e
AF
18722002-10-16 Adam Fedor <fedor@gnu.org>
1873
1874 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1875 names when matching breakpoints in current file.
1876
8b2dbe47
KB
18772002-10-16 Kevin Buettner <kevinb@redhat.com>
1878
1879 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1880 (read_tag_pointer_type): Add address class support.
1881 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1882 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1883 New methods.
1884 * gdbarch.h, gdbarch.c: Regenerate.
1885 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1886 (make_type_with_address_space, recursive_type_dump): Add address
1887 class support.
1888 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1889 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1890 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1891
74451869
KD
18922002-10-16 Klee Dienes <kdienes@apple.com>
1893
1894 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1895 to get the last character of a char[] buffer, not
1896 name[sizeof(vptr_name)-1].
1897
ff4cb3e8
AF
18982002-10-14 Adam Fedor <fedor@gnu.org>
1899
1900 * symtab.h: New objc_specific struct.
1901 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1902 (SYMBOL_DEMANGLED_NAME): Likewise.
1903
da2cf7e0
AF
19042002-10-14 Adam Fedor <fedor@gnu.org>
1905
1906 * symfile.c (init_filename_language_table): Add ObjC file extension.
1907
4a351cef
AF
19082002-10-14 Adam Fedor <fedor@gnu.org>
1909
1910 * utils.c (puts_filtered_tabular): New function.
1911 (fprintf_symbol_filtered): Get ObjC demangled name.
1912 * defs.h (puts_filtered_tabular): Declared.
1913
9750e763
KB
19142002-10-14 Kevin Buettner <kevinb@redhat.com>
1915
1916 * c-lang.h (c_type_print_varspec_prefix): Delete.
1917 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1918 ``need_post_space'' parameter. Adjust all callers.
1919
eee771c1
DJ
19202002-10-14 Daniel Jacobowitz <drow@mvista.com>
1921
1922 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1923 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1924 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1925 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1926
46c82446
AF
19272002-10-13 Adam Fedor <fedor@gnu.org>
1928
1929 * source.c (print_source_lines): Update comments.
1930
d069f99d
AF
19312002-10-13 Adam Fedor <fedor@gnu.org>
1932
1933 * valops.c (value_of_local): New function.
1934 (value_of_this): Use it.
1935 * value.h (value_of_local): Declared.
1936
53c551b7
AF
19372002-10-13 Adam Fedor <fedor@gnu.org>
1938
1939 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1940 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1941
eb392fbf
AF
19422002-10-12 Adam Fedor <fedor@gnu.org>
1943
1944 * language.c (binop_result_type): Add language_objc to case.
1945 (integral_type): Likewise.
1946 (character_type): Likewise.
1947 (string_type): Likewise.
1948 (boolean_type): Likewise.
1949 (structured_type): Likewise.
1950 (binop_type_check): Likewise.
1951
e2b23ee9
AF
19522002-10-11 Adam Fedor <fedor@gnu.org>
1953
1954 * printcmd.c (address_info): Print 'self' for ObjC.
1955
b01ab485
AF
19562002-10-11 Adam Fedor <fedor@gnu.org>
1957
1958 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1959 OP_SELF.
1960
806e6073
AF
19612002-10-11 Adam Fedor <fedor@gnu.org>
1962
1963 * language.h (CAST_IS_CONVERSION): Add language_objc.
1964
50f85cdf
AF
19652002-10-11 Adam Fedor <fedor@gnu.org>
1966
1967 * defs.h (enum language): Add language_objc.
1968
0d540cdf
KD
19692002-10-11 Klee Dienes <kdienes@apple.com>
1970
69266111 1971 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
1972 * gdbcore.h (read_memory_typed_address): Add prototype.
1973 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1974 to read a value destined for a CORE_ADDR, not read_memory_integer.
1975 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1976 (f77_get_dynamic_lowerbound): Ditto.
1977
d5dc7960
MH
19782002-10-11 Martin M. Hunt <hunt@redhat.com>
1979
1980 * utils.c (string_to_core_addr): After turning string into
1981 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1982 which will do necessary sign-extension, etc.
1983
8343f86c
DJ
19842002-10-11 Daniel Jacobowitz <drow@mvista.com>
1985
1986 * c-exp.y (THIS): Delete token and grammar rule.
1987 (yylex): Don't return THIS.
1988 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1989 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1990 * demangle.c (cplus_markers): Update comment. Put '$'
1991 first. Remove CPLUS_MARKER.
1992 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1993 * jv-exp.y (THIS): Delete token and grammar rule.
1994 (yylex): Don't return THIS.
1995 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1996 * objc-exp.y (THIS): Delete token and grammar rule.
1997 (yylex): Don't return THIS.
1998 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1999 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2000 (read_member_functions): Likewise for opname.
2001 (read_tilde_fields): Use is_cplus_marker.
2002
2003 * defs.h (CPLUS_MARKER): Don't define.
2004 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2005 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2006 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2007 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2008 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2009
2010 * config/i386/tm-i386v4.h: Delete file.
2011 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2012 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2013 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2014 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2015 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2016 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2017 * config/i386/i386v4.mt (TM_FILE): Likewise.
2018 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2019
967c0d83
MM
20202002-10-10 Marko Mlinar <markom@opencores.org>
2021
2022 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2023 accidentially not commited 2002-10-09
2024 * gdbarch.h, gdbarch.c: Re-generate.
2025
f74fa174
MM
20262002-10-09 Marko Mlinar <markom@opencores.org>
2027
2028 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2029 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2030 * gdbarch.h, gdbarch.c: Re-generate.
2031
57349743
JB
20322002-10-08 Petr Sorfa <petrs@caldera.com>
2033
2034 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2035
2036 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2037 so we can work on more than one compilation unit at a time. This
2038 helps prepare GDB to handle inter-CU die references.
2039 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2040 the code to be defined before struct comp_unit_head.
2041 (comp_unit_head): Added new members - offset, cu_head,
2042 begin_die, next and dwarf2_abbrevs.
2043 (dwarf2_abbrevs): Removed single static var; now member of
2044 struct comp_unit_head.
2045 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2046 members.
2047 (psymtab_to_symtab_1): Changed to work with the new
2048 struct comp_unit_head.
2049 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2050 constructs the dwarf2_abbrevs[] inside the cu_header.
2051 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2052 dwarf2_abbrev table to clean up.
2053 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2054 handling of dwarf2_abbrevs inside the cu_header.
2055 (read_partial_die): Now supports the call to the new
2056 dwarf2_lookup_abbrev.
2057 (read_full_die): Now supports the call to the new
2058 dwarf2_lookup_abbrev.
2059
4092aadb
CF
20602002-10-06 Christopher Faylor <cgf@redhat.com>
2061
2062 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2063 insure that shell variables, such as "transformed_name" are propagated
2064 to later shell statements in rule.
2065
af0b2512
MK
20662002-10-06 Mark Kettenis <kettenis@gnu.org>
2067
2068 * config/i386/nm-i386sco.h: Add protection against
2069 multiple-inclusion. Include "i386/nm-i386v.h".
2070 (REGISTER_U_ADDR): Remove define.
2071 (i386_register_u_addr): Remove prototype.
2072
d6020d45
MS
20732002-10-04 Michael Snyder <msnyder@redhat.com>
2074
2075 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2076 before treating it as a single-step event.
2077
7248f48e
AF
20782002-10-03 Adam Fedor <fedor@gnu.org>
2079
2080 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2081 (objc_demangle): Remove assignment in if statements, Replace
2082 free with xfree.
2083 (add_msglist): Likewise.
2084 (end_msglist): Likewise.
2085 (complare_selectors): Likewise.
2086 (selectors_info): Likewise.
2087 (compare_classes): Likewise.
2088 (classes_info): Likewise.
2089 (print_object_command): Likewise.
2090 (find_objc_msgcall_submethod): Replace PTR with void *.
2091 * objc-lang.h: Remove check for __STDC__.
2092
52c6a6ac
JJ
20932002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2094
2095 * ui-out.h (ui_out_field_fmt_int): New prototype.
2096 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2097 of field width and alignment.
2098 * stack.c (print_frame_info_base): When printing frame level, use
2099 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2100 PR gdb/192
2101
7e3cec17
JJ
21022002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2103
2104 * MAINTAINERS: Add self to Write After Approval list.
2105
a58dd373
EZ
21062002-10-02 Elena Zannoni <ezannoni@redhat.com>
2107
2108 * infcmd.c (interrupt_target_command_wrapper): Delete.
2109 (interrupt_target_command): Make non static.
2110 (nofp_registers_info): Make static.
2111 * stack.c (return_command_wrapper): Delete.
2112 (return_command): Make non static.
2113
cee6ddeb
EZ
21142002-10-02 Elena Zannoni <ezannoni@redhat.com>
2115
2116 * event-top.c (gdb_setup_readline): New function. Code moved from
2117 _initialize_event_loop().
2118 (_initialize_event_loop): Call gdb_setup_readline().
2119
c4ed33b9
AC
21202002-10-02 Andrew Cagney <ac131313@redhat.com>
2121
2122 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2123 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2124 * gdbarch.h, gdbarch.c: Re-generate.
2125
cef4f5dd
DJ
21262002-10-02 Daniel Jacobowitz <drow@mvista.com>
2127
2128 Fix PR gdb/778
2129 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2130 before recursing.
2131 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2132 of fill_in_vptr_fieldno.
2133
36dc181b 21342002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 2135
36dc181b
EZ
2136 * inferior.h (registers_info, stepi_command, nexti_command,
2137 continue_command, interrupt_target_command): Export from infcmd.c.
2138 * frame.h (args_info, selected_frame_level_changed_hook,
2139 return_command): Export from stack.c.
2140 * v850ice.c (stepi_command, nexti_command, continue_command): use
2141 prototypes from inferior.h.
2142 * tracepoint.c (registers_info, args_info, locals_info): Use
2143 prototypes from frame.h and inferior.h.
2144 * Makefile.in (mi-main.o): Add dependency on frame.h.
2145
6f99cb26
AC
21462002-10-02 Andrew Cagney <ac131313@redhat.com>
2147
da3eff49
AC
2148 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2149 value in register 3 adjusted by ppc_gp0_regnum.
2150
6f99cb26
AC
2151 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2152
da615bee
MM
21532002-10-02 Marko Mlinar <markom@opencores.org>
2154
2155 * MAINTAINERS: Add myself to the Write After Approval list.
2156
d154bee2
AO
21572002-10-01 Alexandre Oliva <aoliva@redhat.com>
2158
62a49b2c
AO
2159 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2160 of the section for the N64 ABI, fixed.
2161
d154bee2
AO
2162 * config/mips/tm-irix6.h: Include solib.h.
2163
ed348acc
EZ
21642002-10-01 Elena Zannoni <ezannoni@redhat.com>
2165
2166 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2167 GNU operators.
2168
da0f9dcd
AC
21692002-10-01 Andrew Cagney <ac131313@redhat.com>
2170
2171 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2172 and that "mi0" syntax has been removed.
2173
bdf64bac
DC
21742002-09-30 David Carlton <carlton@math.stanford.edu>
2175
2176 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2177 * ppc-sysv-tdep.c: #include "gdb_string.h".
2178 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2179 pacify GCC.
2180
54c2a1e6
AC
21812002-10-01 Andrew Cagney <ac131313@redhat.com>
2182
2183 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2184 "vrsave"'s register number.
2185
cedea778
AC
21862002-09-30 Andrew Cagney <ac131313@redhat.com>
2187
2188 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2189 use frame_unwind_signed_register to obtain the PC.
2190 (mips_frame_chain): Handle a generic dummy frame.
2191 (mips_init_extra_frame_info): When a generic dummy frame, don't
2192 re-compute the frame base.
2193 (mips_pop_frame): Handle generic dummy frames.
2194 (mips_gdbarch_init): When generic dummy frames, set
2195 use_generic_dummy_frames, push_dummy_frame to
2196 generic_push_dummy_frame, pc_in_call_dummy to
2197 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2198 generic_save_dummy_frame_tos.
2199
68315eb8
AC
22002002-09-30 Andrew Cagney <ac131313@redhat.com>
2201
2202 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2203 against TOP when TOP was explictly set.
2204 (generic_push_dummy_frame): Set TOP to zero.
2205
3b8630c3
EZ
22062002-09-30 Elena Zannoni <ezannoni@redhat.com>
2207
2208 * event-loop.c (start_event_loop): Rename variable 'result' to
2209 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2210
28ee05e9
KS
22112002-09-30 Keith Seitz <keiths@redhat.com>
2212
2213 * gdb-events.sh (selected_thread_changed): New event.
2214 * gdb-events.c: Regenerated.
2215 * gdb-events.h: Regenerated.
2216
6eecb1c8
HPN
22172002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2218
2219 * MAINTAINERS: Add self to Write After Approval list.
2220
92df71f0
FN
22212002-09-30 Fernando Nasser <fnasser@redhat.com>
2222
3b8630c3
EZ
2223 * disasm.c: New file.
2224 * disasm.h: New file.
92df71f0
FN
2225 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2226 (compare_lines): Ditto.
2227 (dump_insns): Ditto.
3b8630c3
EZ
2228 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2229 argument.
92df71f0 2230 (do_assembly_only): Ditto.
3b8630c3
EZ
2231 (do_disassembly): Renamed to gdb_disassembly and moved to
2232 disasm.c. Sdded uiout argument.
2233 * Makefile.in: Add new files. Reorder SFILES list. Update
2234 dependencies. Include libgdb.a later in the insight executable.
92df71f0 2235
0c22854d
AC
22362002-09-29 Andrew Cagney <ac131313@redhat.com>
2237
2238 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2239 bfd/elf64-alpha-fbsd.c.
2240
e67f2023
AC
22412002-09-29 Andrew Cagney <ac131313@redhat.com>
2242
2243 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2244 i386gnu-tdep.c.
2245
89396210
AC
22462002-09-29 Andrew Cagney <ac131313@redhat.com>
2247
2248 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2249 __FUNCTION__.
2250 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2251 function name.
2252 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2253 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2254 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2255 (S_msg_sig_post_reply): Ditto.
2256
7079c36c
CV
22572002-09-28 Corinna Vinschen <vinschen@redhat.com>
2258
89396210
AC
2259 * sh-tdep.c (sh_use_struct_convention): Use definition according
2260 to ABI.
7079c36c
CV
2261 (sh_push_arguments): Store in register with correct endianess.
2262 (sh_default_store_return_value): Ditto.
2263 (sh_gdbarch_init): Set sizeof long double to 8.
2264
975ac915
MK
22652002-09-27 Mark Kettenis <kettenis@gnu.org>
2266
2267 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2268 Fix some whitespace problems.
2269
9bbe19fb
DC
22702002-09-27 David Carlton <carlton@math.stanford.edu>
2271
2272 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2273 (mcore-tdep.o): Ditto.
2274 (ns32k-tdep.o): Ditto.
2275 (ns32knbsd-tdep.o): Ditto.
2276 (sh3-rom.o): Ditto.
2277 (vax-tdep.o): Ditto.
2278 * cris-tdep.c: #include "gdb_string.h"
2279 * mcore-tdep.c: Ditto.
2280 * ns32k-tdep.c: Ditto.
2281 * ns32knbsd-tdep.c: Ditto.
2282 * sh3-rom.c: Ditto.
2283 * vax-tdep.c: Ditto.
2284
43b2fdc7
DC
22852002-09-27 David Carlton <carlton@math.stanford.edu>
2286
2287 * config/djgpp/fnchange.lst: Add entries for
2288 gdb/testsuite/gdb.c++/m-static files.
2289
e8cfbbd9
JW
22902002-09-27 Jim Wilson <wilson@redhat.com>
2291
2292 * MAINTAINERS: Add myself to the Write After Approval list.
2293
43b2fdc7 22942002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
2295
2296 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2297
2298
9f3b7f07
AC
22992002-09-26 Andrew Cagney <ac131313@redhat.com>
2300
2301 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2302 frame.
2303
11269d7e
AC
23042002-09-26 Andrew Cagney <ac131313@redhat.com>
2305
2306 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2307 (rs6000_struct_return_address): Delete variable.
2308 (rs6000_store_struct_return): Update.
2309 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2310 deprecated_extract_struct_value_address.
2311 (rs6000_frame_align): New function.
2312 (rs6000_gdbarch_init): Set frame_align.
2313
f15ab4a7
AC
23142002-09-26 Andrew Cagney <ac131313@redhat.com>
2315
2316 From Grace Sainsbury <graces@redhat.com>:
2317 * Makefile.in (gdbtk-main.o): New target.
2318 (gdb.o): New target.
2319 (main_h): Define.
2320 (main.o): Update dependencies.
2321 (gdb$(EXEEXT)): Add gdb.o.
2322 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2323 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2324 (SUBDIR_GDBTK_CLEAN): Set.
2325 (install-gdbtk): Install the insight binary.
2326 (uninstall-gdbtk): New target.
2327 (all-gdbtk, clean-gdbtk): New rule.
2328 * top.c (use_windows): Default to zero.
2329 * main.c: Include "main.h".
2330 (main): Delete.
2331 (struct captured_main_args): Delete.
2332 (gdb_main): New function.
2333 * main.h: New file.
2334 * gdb.c: New File.
2335
e36180d7
AC
23362002-09-25 Andrew Cagney <cagney@redhat.com>
2337
2338 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2339 (frame_map_regnum_to_name): New function.
2340 (frame_map_name_to_regnum): New function.
2341 * frame.h (frame_map_name_to_regnum): Declare.
2342 (frame_map_regnum_to_name): Declare.
2343 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2344 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2345 * parse.c: Do not include "builtin-regs.h".
2346 (target_map_name_to_register): Delete function.
2347 (write_dollar_variable): Use frame_map_name_to_regnum.
2348 * parser-defs.h (target_map_name_to_register): Delete declaration.
2349 * expprint.c: Include "frame.h".
2350 (print_subexp): Use frame_map_regnum_to_name.
2351 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2352 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2353
8b69000d
AC
23542002-09-25 Andrew Cagney <ac131313@redhat.com>
2355
2356 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2357 wasn't saved, and the next innermost frame is a dummy, return the
2358 dummy frame's link register.
2359
046ca86a
JB
23602002-09-24 Jim Blandy <jimb@redhat.com>
2361
2362 Fix from Paul Breed:
2363 * main.c (captured_main): Add a `break' after the case for 'b'.
2364
94b66fa7
KS
23652002-09-24 Keith Seitz <keiths@redhat.com>
2366
2367 * varobj.c (c_type_of_child): Use get_target_type instead
2368 of TYPE_TARGET_TYPE.
2369
c214a6fd
FN
23702002-09-22 Fernando Nasser <fnasser@redhat.com>
2371
53cb0458
FN
2372 * source.c (get_current_or_default_source_symtab_and_line): Remove
2373 function.
2374 (set_default_source_symtab_and_line): New function. Attempts to
2375 determine a source file to list lines from if one is not currently
2376 defined.
2377 (get_current_source_symtab_and_line): Initialize sal.pc and
2378 sal.end fields.
2379 (set_current_source_symtab_and_line): Mark argument as const.
2380 * source.h: Update declarations and comments.
2381 * linespec.c (decode_line_1): Replace call to removed routine above.
2382 * stack.c (print_frame_info_base): Ditto.
2383 * cli/cli-cmds.c (edit_command): Ditto.
2384 (list_command): Ditto.
2385
23862002-09-22 Fernando Nasser <fnasser@redhat.com>
2387
d6020d45 2388 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 2389 sal.pc and sal.end fields.
c214a6fd
FN
2390 (get_current_or_default_source_symtab_and_line): Ditto.
2391 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2392 so we do not cause a new source symtab to be searched for (reverting an
2393 unintentional change from the 2002-09-20 patch).
2394 * scm-lang.c (scm_unpac): Ditto.
2395
cc3b68a5
AC
23962002-09-21 Andrew Cagney <cagney@redhat.com>
2397
2398 * complaints.c (symfile_explanations): Remove new-line from
2399 ``isolated_message''.
2400 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2401 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2402
5835abe7
NC
24032002-09-20 Nick Clifton <nickc@redhat.com>
2404
2405 * NEWS: Announce that V850EA ISA is no longer supported.
2406 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2407
a15ef5f5
DC
24082002-09-20 David Carlton <carlton@math.stanford.edu>
2409
06ba1b39
DC
2410 * Makefile.in (c-lang.o): Correct dependencies.
2411 (utils.o): Gather dependencies.
2412 (charset.o): Move.
a15ef5f5
DC
2413 * c-lang.c: #include "gdb_string.h"
2414
87885426
FN
24152002-09-20 Fernando Nasser <fnasser@redhat.com>
2416
2417 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2418 * cli/cli-cmds.c (list_command): New function. Implements the new
2419 cli edit command.
2420 (_init_cli_cmds): Add new command definition.
2421 * gdb.1: Document edit command.
2422 * doc/gdb.texinfo: Document edit command.
2423
24242002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
2425
2426 * source.c: Make global variables current_source_symtab and
2427 current_source_line static.
2428 (list_command): Moved to cli/cli-cmds.c.
2429 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2430 (get_first_line_listed): New accessor function.
2431 (get_lines_to_list): New accessor function.
2432 (get_current_source_symtab_and_line): New function. Retrieves the
2433 position in the source code that we consider current.
2434 (get_current_or_default_source_symtab_and_line): New function.
2435 Like the above but attempts to determine a default position if one
2436 is not currently defined.
2437 (set_current_source_symtab_and_line): New function. Sets the source
2438 code position considered current and returns the previously set one.
2439 (clear_current_source_symtab_and_line): Reset stored information about
2440 a current source line.
2441 (_initialize_source): Remove registration for the "list" command and
2442 its alias.
2443 * source.h: Add declarations for the new functions above.
2444 * symtab.h: Remove declarations for the global variables mentioned
2445 above.
2446 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2447 obtain current source line.
2448 * linespec.c (decode_line_1): Ditto.
2449 * macroscope.c (default_macro_scope): Ditto.
2450 * scm-lang.c (scm_unpac): Ditto.
2451 * stack.c (print_frame_info_base): Ditto.
2452 * symfile.c (clear_symtab_users): Ditto.
2453 * symtab.c (decode_line_spec): Ditto.
2454 * cli/cli-cmds.c (list_command): Moved here from source.c.
2455 (ambiguous_line_spec): Moved here from source.c.
2456 (_init_cli_cmds): Add definition for "list" and its alias.
2457 * Makefile.in: Update dependencies.
2458
ddd216ea
CV
24592002-09-20 Corinna Vinschen <vinschen@redhat.com>
2460
2461 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2462 with what gcc thinks is correct.
2463
6d305052
CV
24642002-09-20 Corinna Vinschen <vinschen@redhat.com>
2465
2466 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2467 multiple register push instruction.
2468
234b45d4
KB
24692002-09-19 Jim Blandy <jimb@redhat.com>
2470
2471 Add support for distinct host and target character sets.
2472 * charset.c, charset.h: New files.
2473 * c-exp.y: #include "charset.h".
2474 (yylex): Convert character and string literals to the target
2475 character set, before returning them as the semantic value of the
2476 token.
2477 * c-lang.c: #include "charset.h".
2478 (c_emit_char): Use charset-specific methods to recognize
2479 characters with backslash escape forms, to decide which characters
2480 to print literally and which to print using numeric escape
2481 sequences, and to convert target characters to host characters
2482 before printing.
2483 * utils.c: #include "charset.h".
2484 (no_control_char_error): New function.
2485 (parse_escape): Use charset-specific methods to recognize
2486 backslash escapes, parse `control character' notation, and convert
2487 characters from the host character set to the target character set.
2488 * configure.in: Set the default host character set.
2489 Check where to find iconv, and what its argument types might be.
2490 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2491 * Makefile.in (SFILES): List charset.c.
2492 (COMMON_OBS): List charset.o.
2493 (charset.o): New rule.
2494 (charset_h): New header dependency variable.
2495 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2496 (LIBICONV): New variable, set by configure.
2497 (CLIBS): Include $(LIBICONV) here.
2498 * aclocal.m4, config.in, configure: Regenerated.
2499
525d6a61
JB
25002002-09-19 Joel Brobecker <brobecker@gnat.com>
2501
2502 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2503 bison 1.35 warning.
2504
3ed93867
RE
25052002-09-19 Richard Earnshaw <rearnsha@arm.com>
2506
2507 * gdb_mbuild.sh: New file.
2508
437666f8
AC
25092002-09-19 Andrew Cagney <ac131313@redhat.com>
2510
2511 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2512
389e51db
AC
25132002-09-18 Andrew Cagney <ac131313@redhat.com>
2514
2515 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2516 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2517 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2518 valops.c, value.h: Revert previous change.
2519
3b4efeaa
MS
25202002-09-18 Michael Snyder <msnyder@redhat.com>
2521
2522 Preliminary support for Objective-C:
2523 * defs.h (language_objc): New enum value.
2524 (puts_filtered_tabular): Declaration only, exported from utils.c.
2525 (skip_quoted): Delete, declared in completer.h.
2526 * c-exp.y: Include completer.h.
2527 * p-exp.y: Ditto.
2528 * jv-exp.y: Ditto.
2529 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2530 New operator enum values.
2531 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2532 * language.c (binop_result_type): Handle language_objc case.
2533 (integral_type, character_type, string_type, boolean_type,
2534 structured_type, binop_type_check): Ditto.
2535 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2536 (struct objc_specific): Add to general_symbol_info.
2537 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2538 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2539 * parser-defs.h (struct objc_class_str): New struct type.
2540 (start_msglist, end_msglist, add_msglist): Declaration only,
2541 exported from objc-lang.c.
2542 * value.h (value_of_local, value_nsstring,
2543 call_function_by_hand_expecting_type): Exported from valops.c.
2544 * valops.c (find_function_addr): Export.
2545 (call_function_by_hand_expecting_type): New function.
2546 (value_of_local): New function.
2547 * symfile.c (init_filename_language_table): Add ".m" extension
2548 for Objective-C.
2549 * utils.c (puts_filtered_tabular): New function.
2550 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2551 (set/show demangle): Extend help-string to refer to ObjC.
2552 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2553 * stabsread.c (symbol_reference_defined): Objective-C symbols
2554 may contain colons: make allowances when scanning stabs strings
2555 for colons.
2556 (objc_find_colon): New function.
2557 * printcmd.c (address_info): If language == objc then print
2558 "self" instead of "this".
2559 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2560 OP_NSSTRING, and OP_SELF.
2561 (prefixify_subexp): Ditto.
2562 * source.c (print_source_lines): Mention objc in comment.
2563 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2564 method names.
2565
b9caf505
AC
25662002-09-18 Andrew Cagney <ac131313@redhat.com>
2567
2568 * complaints.h: Update copyright.
2569 (struct complaints): Declare.
2570 (struct complaint): Make `message' constant.
2571 (internal_complaint): Declare.
2572 (complaint): Declare.
2573 (complaint_root): Delete declaration.
2574 (symfile_complaints): Delete declaration.
2575 (struct complaints): Add opaque declaration.
2576 (clear_complaints): Add a complaints parameter.
2577 * complaints.c: Update copyright.
2578 (enum complaint_series): Define.
2579 (complaint_root): Delete.
2580 (struct complaints): Define.
2581 (complaint_sentinel, symfile_complaint_book): New variables.
2582 (symfile_explanations, symfile_complaints): New variables.
2583 New variables.
2584 (get_complaints): New function.
2585 (vcomplaint): New function.
2586 (complaint): New function.
2587 (internal_complaint): New function.
2588 (complain): Call vcomplain with symfile_complaint.
2589 (clear_complaints): Rewrite.
2590 (_initialize_complaints): Use add_setshow_command.
2591 * Makefile.in (complaints.o): Update dependencies.
2592 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2593 to call to clear_complaints.
2594 (new_symfile_objfile, reread_symbols): Ditto.
2595 (oldsyms_complaint): Delete.
2596 (empty_symtab_complaint, unknown_option_complaint): Delete.
2597 (free_named_symtabs): Use complaint instead of complain.
2598
d2e6263c
MS
25992002-09-18 Michael Snyder <msnyder@redhat.com>
2600
5fb2031a
AC
2601 Contributed by Apple Computer, Inc. Merged with current sources
2602 by Adam Fedor <fedor@doc.com> [cagney].
2603
d2e6263c
MS
2604 * objc-lang.c: First clean-up round: comments, indentation.
2605 * objc-lang.h: Ditto.
2606 * objc-lang.y: Ditto.
2607
dec43320
AC
26082002-09-18 Andrew Cagney <ac131313@redhat.com>
2609
2610 * maint.c (maintenance_internal_error): Print the parameter as the
2611 error message.
2612 (maintenance_internal_warning): New function.
2613 (_initialize_maint_cmds): Add command `maint internal-warning'.
2614
2615 * defs.h (internal_warning, internal_vwarning): Declare.
2616 * utils.c (struct internal_problem): Define.
2617 (internal_vproblem): New function.
2618 (internal_warning): New function.
2619 (internal_vwarning): New function.
2620 (internal_warning_problem, internal_error_problem): New variables.
2621 (internal_verror): Just call internal_vproblem.
2622
b81654f1
MS
26232002-09-18 Michael Snyder <msnyder@redhat.com>
2624
2625 * objc-lang.c: New file, support for Objective-C.
2626 Preliminary check-in, not yet integrated into gdb.
2627 * objc-lang.h: New file.
2628 * objc-exp.y: New file.
2629
0542c381
AC
26302002-09-18 Andrew Cagney <ac131313@redhat.com>
2631
7bda5e4a
AC
2632 * infrun.c (signal_stop_update): Convert definition to ISO C.
2633 (signal_print_update): Ditto.
2634 (signal_pass_update): Ditto.
2635 * inflow.c (terminal_save_ours): Ditto.
2636
5247b418
AC
2637 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2638 comments.
2639
fc60962c
AC
2640 * config/djgpp/fnchange.lst: Handle name clashes between
2641 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2642 bfd/coff-tic80.c.
2643
0542c381
AC
2644 * i386-linux-tdep.h: Fix tipo.
2645
5b924b9b
AF
26462002-09-18 Adam Fedor <fedor@gnu.org>
2647
2648 * MAINTAINERS: Add myself to the Write After Approval list.
2649
5afc051b
JB
26502002-09-18 Jim Blandy <jimb@redhat.com>
2651
2652 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2653 texthigh and textlow to reader-specific structs caused
2654 objfile_relocate to miss them. This is fixable, but the work that
2655 the change was supposed to prepare GDB for never got done anyway.
2656
eb944380
DC
26572002-09-18 David Carlton <carlton@math.stanford.edu>
2658
2659 * MAINTAINERS: Alphabetize Write After Approval list.
2660
948e66d9
DJ
26612002-09-18 Daniel Jacobowitz <drow@mvista.com>
2662
2663 Fix PR gdb/709
2664 * values.c (value_static_field): Call read_var_value.
2665
dc604539
AC
26662002-09-18 Andrew Cagney <ac131313@redhat.com>
2667
2668 * valops.c (hand_function_call): Align the initial stack pointer
2669 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2670 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2671 return value.
2672 * mips-tdep.c (mips_frame_align): New function.
2673 (mips_gdbarch_init): Set frame_align.
2674 * gdbarch.sh (FRAME_ALIGN): New method.
2675 * gdbarch.h, gdbarch.c: Re-generate.
2676
cb7e422f
ML
26772002-09-18 Michal Ludvig <mludvig@suse.cz>
2678
2679 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2680 registers.
2681
a094c6fb
AC
26822002-09-17 Andrew Cagney <ac131313@redhat.com>
2683
2684 * NEWS: Mention that MIPS $fp behavior changed.
2685 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2686 reference to FP_REGNUM.
2687 (mipsnbsd_cannot_store_register): Ditto.
2688 * mips-linux-nat.c: Update copyright.
2689 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2690 (mips_linux_cannot_store_register): Ditto.
2691 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2692 * config/mips/tm-mips.h: Update copyright.
2693 (FP_REGNUM): Delete macro.
2694 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2695 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2696 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2697 (mips_r3041_reg_names, mips_r3051_reg_names)
2698 (mips_r3081_reg_names): Replace "fp" with "".
2699 Fix PR gdb/480.
2700
45cf40d1
TR
27012002-09-17 Theodore A. Roth <troth@verinet.com>
2702
2703 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2704 generic_read_register_dummy() (PR gdb/703).
2705 (avr_push_return_address): #if 0 out unused vars.
2706 (avr_gdbarch_init): Enable use of avr_push_return_address().
2707
c7e701b5
MS
27082002-09-17 Michael Snyder <msnyder@redhat.com>
2709
d76ba2a5 2710 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
2711 RTE will take care of it.
2712
20bcf01c
AC
27132002-09-17 Andrew Cagney <ac131313@redhat.com>
2714
2715 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2716 invalid, return SP_REGNUM.
2717
009a9971 27182002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
2719
2720 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2721 point registers without sign extension.
2722
135c175f
AC
27232002-09-17 Andrew Cagney <cagney@redhat.com>
2724
2725 * blockframe.c (deprecated_read_register_dummy): Rename
2726 generic_read_register_dummy.
2727 * frame.c (frame_unwind_signed_register): New function.
2728 (frame_unwind_unsigned_register): New function.
2729 * frame.h (frame_unwind_signed_register): Declare.
2730 (frame_unwind_unsigned_register): Declare.
2731 (deprecated_read_register_dummy): Rename
2732 generic_read_register_dummy.
2733
2734 * h8300-tdep.c (h8300_frame_chain): Update.
2735 (h8300_frame_saved_pc): Update.
2736 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2737 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2738 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2739 (s390_frame_chain): Update.
2740 * v850-tdep.c (v850_find_callers_reg): Update.
2741 (v850_frame_saved_pc): Update.
2742 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2743 (m32r_find_callers_reg): Update.
2744 (m32r_frame_saved_pc): Update.
2745 * sh-tdep.c (sh_find_callers_reg): Update.
2746 (sh64_get_saved_pr): Update.
2747 (sh_init_extra_frame_info): Update.
2748 (sh_init_extra_frame_info): Update.
2749 (sh64_init_extra_frame_info): Update.
2750 (sh64_init_extra_frame_info): Update.
2751 * mcore-tdep.c (mcore_find_callers_reg): Update.
2752 (mcore_frame_saved_pc): Update.
2753 (mcore_init_extra_frame_info): Update.
2754 * i386-tdep.c (i386_frame_saved_pc): Update.
2755 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2756 (ia64_init_extra_frame_info): Update.
2757 (ia64_init_extra_frame_info): Update.
2758 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2759 * cris-tdep.c (cris_init_extra_frame_info): Update.
2760 * avr-tdep.c (avr_frame_chain): Update.
2761 (avr_init_extra_frame_info): Update.
2762 (avr_frame_saved_pc): Update.
2763 * arm-tdep.c (arm_find_callers_reg): Update.
2764 (arm_init_extra_frame_info): Update.
2765 (arm_frame_saved_pc): Update.
2766
a741e514
TT
27672002-09-17 Tom Tromey <tromey@redhat.com>
2768
2769 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2770 is "'".
2771
d1a8e808
CV
27722002-09-17 Corinna Vinschen <vinschen@redhat.com>
2773
2774 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2775 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2776 NEXT_PROLOGUE_INSN.
2777 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2778 NEXT_PROLOGUE_INSN.
2779
d9025a18
JB
27802002-09-16 Joel Brobecker <brobecker@gnat.com>
2781
2782 * osfsolib.c: Remove file, replaced by solib-osf.c.
2783 * Makefile.in: Remove compilation rules for osfsolib.c.
2784
1b2ef1b6
DC
27852002-09-16 David Carlton <carlton@math.stanford.edu>
2786
2787 * cp-valprint.c (cp_print_class_method): Correct args to
2788 check_stub_method_group.
2789
928e48af
CV
27902002-09-16 Corinna Vinschen <vinschen@redhat.com>
2791
2792 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2793 `set architecture'. Unify naming convention of functions.
2794 (h8300_skip_prologue): Improve prologue analysis.
2795 (h8300_push_arguments): Rewritten to more closely match GCC's
2796 bizarre argument-passing behavior, along with the comment describing
2797 said behavior.
2798 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2799 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2800 sim, remote-e7000.c, remote-hms.c and remote.c
2801
5e3397bb
MK
28022002-09-15 Mark Kettenis <kettenis@gnu.org>
2803
2804 * i386-tdep.c (gdb_print_insn_i386): Removed.
2805 (i386_print_insn): New function.
2806 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2807 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2808 tm_print_insn_info.
2809
f710f4fc
MK
28102002-09-14 Mark Kettenis <kettenis@gnu.org>
2811
2812 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2813 zero.
2814
db54fef4
CV
28152002-09-14 Corinna Vinschen <vinschen@redhat.com>
2816
2817 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2818 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2819 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2820
2becadee
CF
28212002-09-13 Christopher Faylor <cgf@redhat.com>
2822
2823 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2824
de17c821
DJ
28252002-09-13 Daniel Jacobowitz <drow@mvista.com>
2826
2827 * gdbtypes.c (check_stub_method): Make static.
2828 (check_stub_method_group): New function.
2829 * gdbtypes.h: Update prototypes.
2830 * cp-support.c: New file.
2831 * cp-support.h: New file.
2832
2833 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2834 (update_method_name_from_physname): New function.
2835 (read_member_functions): Correct method names for operators
2836 and v3 constructors/destructors. Separate v2 constructors and
2837 destructors.
2838 * Makefile.in (stabsread.o): Update dependencies.
2839 (SFILES): Add cp-support.c.
2840 (COMMON_OBS): Add cp-support.o.
2841 (cp_support_h, cp-support.o): Add.
2842
2843 * cp-valprint.c (cp_print_class_method): Call
2844 check_stub_method_group instead of check_stub_method. Remove
2845 extraneous QUITs.
2846 * p-valprint.c (pascal_object_print_class_method): Likewise.
2847 * valops.c (search_struct_method): Likewise.
2848 (find_method_list, value_struct_elt_for_reference): Likewise.
2849
e76cff22
AC
28502002-09-13 Andrew Cagney <cagney@redhat.com>
2851
2852 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2853 * gdbarch.h, gdbarch.c: Regenerate.
2854
905abb3f
AC
28552002-09-13 Andrew Cagney <ac131313@redhat.com>
2856
2857 * frame.c (find_saved_register): Delete function.
2858 * frame.h (find_saved_register): Delete declaration.
2859 Fix PR gdb/631.
2860
64159455
AC
2861Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2862
2863 * mips-tdep.c (read_next_frame_reg): Re-hack using
2864 frame_register_unwind.
2865
795e1e11
AC
2866Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2867
2868 * mips-tdep.c (mips_get_saved_register): Re-hack using
2869 frame_register_unwind.
2870
5720643c
JB
28712002-09-12 Joel Brobecker <brobecker@gnat.com>
2872
2873 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2874 vector. Will be useful for Interix.
2875 * gdbarch.h, gdbarch.c: Regenerate.
2876
2877 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2878 name of the malloc function by NAME_OF_MALLOC.
2879
3bada2a2
JB
28802002-09-12 Joel Brobecker <brobecker@gnat.com>
2881
2882 * value.h (find_function_in_inferior): Add const keyword to
2883 one of the parameters. Allows us to invoke this function with
2884 a const char *.
2885 * valops.c (find_function_in_inferior): Likewise.
2886
3db26b01
JB
28872002-09-12 Joel Brobecker <brobecker@gnat.com>
2888
2889 * exec.c (xfer_memory): Fix compilation warning with old versions
2890 of GCC.
2891 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2892
17c5ed2c
DC
28932002-09-12 David Carlton <carlton@math.stanford.edu>
2894
2895 * symtab.h: Run through gdb_indent.h.
2896 Add 2002 to Copyright year list.
2897
ecd1107e
AM
28982002-09-12 Alan Modra <amodra@bigpond.net.au>
2899
2900 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2901 mach constants.
2902 * MAINTAINERS: Add myself to write after approval list.
2903
e64f66d1
JB
29042002-09-11 J. Brobecker <brobecker@gnat.com>
2905
2906 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2907
f9395794
JB
29082002-09-11 J. Brobecker <brobecker@gnat.com>
2909
2910 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2911 Interix.
2912
1a303dec
MS
29132002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2914
2915 * procfs.c (do_detach): Clear current signal, not just fault.
2916 Corrects problem with breakpoint trap signal leaking to detached
2917 process on Tru64.
2918
c0219d42
MS
29192002-09-10 Michael Snyder <msnyder@redhat.com>
2920
2921 * buildsym.c (finish_block): Protect against null pointer.
2922
9d84ac84
AC
29232002-09-10 Andrew Cagney <cagney@redhat.com>
2924
2925 * infcmd.c (default_print_registers_info): Send all output to
2926 ``file'' instead of ``gdb_stdout''.
2927
77d8f2b4
MS
29282002-09-10 Michael Snyder <msnyder@redhat.com>
2929
2930 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2931 LONGEST, and use signed register read (addresses are sign-
2932 extended for mips).
2933
99656a61
SC
29342002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2935
2936 * event-loop.c (gdb_do_one_event): Make public.
2937 * event-loop.h (gdb_do_one_event): Declare.
2938
da12f4d8
JL
29392002-09-10 Jeff Law <law@redhat.com>
2940
2941 * infttrace.c (child_resume): Simplify and rework to avoid
2942 TT_PROC_CONTINUE.
2943
d0aee0c4
FF
29442002-09-09 Fred Fish <fnf@intrinsity.com>
2945
2946 * printcmd.c (print_scalar_formatted): "len" is the number of
2947 target bytes, NOT the number of target bits.
2948
7cb3ec5e
EZ
29492002-09-09 Elena Zannoni <ezannoni@redhat.com>
2950
2951 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2952 * top.c (init_main): Set rl_terminal_name.
2953
4dc81987
AS
29542002-09-08 Aidan Skinner <aidan@velvet.net>
2955
2956 * ada-lang.c (ada_array_bound, ada_type_match,
2957 _initialize_ada_language): Fix K&R definitions.
2958 * ada-tasks.c (get_current_task): Fix K&R definitions.
2959 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2960
842330b4
CF
29612002-09-07 Christopher Faylor <cgf@redhat.com>
2962
2963 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2964 Add XP.
2965
43156d82
MK
29662002-09-06 Mark Kettenis <kettenis@gnu.org>
2967
66da5fd8
MK
2968 * i386-tdep.c (i386_register_virtual_type,
2969 i386_register_convertible, i386_register_convert_to_virtual,
2970 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2971 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2972 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2973 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2974 Don't set push_arguments twice.
2975
4b218c18
MK
2976 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2977 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2978 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2979 sigtramp_end to NULL.
2980 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2981 defines.
2982 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2983
4cc314d5
MK
2984 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2985 whitespace.
2986
43156d82
MK
2987 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2988 * gdbarch.h, gdbarch.c: Re-generate.
2989 * blockframe.c (find_pc_sect_partial_function): Convert to use
2990 SIGTRAMP_START_P predicate.
2991
6672060b
MS
29922002-09-05 Michael Snyder <msnyder@redhat.com>
2993
a90c3637
MS
2994 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2995 generic_dummy_frame method and old method. Also distinguish
2996 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 2997 (arm_extract_return_value): Use new regcache method.
a90c3637 2998
6672060b
MS
2999 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3000 adjustment that doesn't conform to the ABI.
3001 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3002 saved regcache, not from current regcache.
3003
299ffc64
AC
30042002-09-05 Andrew Cagney <ac131313@redhat.com>
3005
3006 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3007 * README: Update.
3008
a3a2ee65
JT
30092002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3010
3011 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3012 if arm_apcs_32 is false.
3013
2bc7eea9
AC
30142002-09-04 Andrew Cagney <ac131313@redhat.com>
3015
3016 GDB 5.3 branch created.
3017
8a55a7c5
TR
30182002-09-03 Theodore A. Roth <troth@verinet.com>
3019
3020 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3021 generic_unwind_get_saved_register.
3022
e26fb1d7
DC
30232002-09-03 David Carlton <carlton@math.stanford.edu>
3024
3025 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3026 argument (PR gdb/653). Update call to smash_to_method_type.
3027 (read_structure_scope): Update call to dwarf2_add_member_fn.
3028
30d52491
ML
30292002-09-03 Michal Ludvig <mludvig@suse.cz>
3030
3031 * x86-64-linux-tdep.c: Include gdb_string.h
3032 * x86-64-linux-nat.c: Ditto.
3033
06891d83
JT
30342002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3035
3036 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3037 when YYDEBUG is set to 1.
3038 * c-exp.y: Likewise.
3039 * f-exp.y: Likewise.
3040 * jv-exp.y: Likewise.
3041 * m2-exp.y: Likewise.
3042 * p-exp.y: Likewise.
3043
7d400e77
JT
30442002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3045
3046 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3047 dependency list.
3048 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3049 solib_svr4_fetch_link_map_offsets to
3050 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3051 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3052 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3053 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3054 solib-svr4.o, and solib-legacy.o.
3055 * config/i386/tm-nbsd.h: Include solib.h.
3056
704a27c4
JT
30572002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3058
3059 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3060 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3061 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3062 comment noting that this needs its own target configuration.
3063 * config/i386/nbsd.mt: New file.
3064 * config/i386/nbsdaout.mt: Remove.
3065 * config/i386/nbsdelf.mt: Ditto.
3066 * config/i386/tm-nbsdaout.h: Ditto.
3067
d66198e1
JT
30682002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3069
3070 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3071 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3072 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3073 tdep->sigtramp_end.
3074 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3075 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3076 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3077
3cac699e
JT
30782002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3079
3080 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3081 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3082 * i386-tdep.h (i386bsd_init_abi): New prototype.
3083 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3084 function declaration.
3085 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3086 for NetBSD-a.out or NetBSD-ELF.
3087 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3088 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3089 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3090 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3091 and nbsd-tdep.h.
3092 (i386nbsd_pc_in_sigtramp): New function.
3093 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3094 i386nbsd_pc_in_sigtramp.
3095 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3096 and i386nbsdelf_init_abi OS ABI handlers.
3097 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3098 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3099
7010ca0a
MK
31002002-09-02 Mark Kettenis <kettenis@gnu.org>
3101
3102 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3103 registers if the target really has them.
3104
6dd93b72
JT
31052002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3106
3107 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3108 than nbsd-tdep.h.
3109
2ca8ae21
JT
31102002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3111
3112 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3113 list.
3114 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3115 (alphanbsd_skip_sigtramp_frame): New functions.
3116 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3117 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3118 to alphanbsd_sigcontext_addr.
3119
3d9b49b0
JT
31202002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3121
3122 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3123 list.
3124 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3125 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3126 nbsd_pc_in_sigtramp.
3127 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3128 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3129 * nbsd-tdep.c: Include gdb_string.h.
3130 (nbsd_pc_in_sigtramp): New function.
3131 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3132 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3133 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3134 ppcnbsd_pc_in_sigtramp.
3135 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3136 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3137 shnbsd_pc_in_sigtramp.
3138 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3139 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3140 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3141
c860120c
PM
31422002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3143
3144 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3145 watchpoints to NULL.
3146 (insert_breakpoints): set val field of watchpoints if NULL.
3147
3148
c7612d53
JB
31492002-08-29 Jim Blandy <jimb@redhat.com>
3150
3151 * symtab.c (lookup_symbol_aux): In the cases where we find a
3152 minimal symbol of an appropriate name and use its address to
3153 select a symtab to read and search, use `name' (as passed to us)
3154 as the demangled name when searching the symtab's global and
3155 static blocks, not the minsym's name.
3156
66609862
KS
31572002-08-29 Keith Seitz <keiths@redhat.com>
3158
3159 * stack.c (print_frame_info_base): Always set current_source_symtab
3160 and current_source_line.
3161
151fefe2
JB
31622002-08-29 Donn Terry <donnte@microsoft.com>
3163
3164 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3165
bfb3754e
KS
31662002-08-28 Keith Seitz <keiths@redhat.com>
3167
3168 * stack.c (select_frame): Add FIXME concerning selected-frame
3169 events.
3170 (select_frame_command): Send selected-frame-level-changed
3171 event notification, but only if the level actually changed.
3172 (up_silently_base): Add selected-frame-level-changed event
3173 notification.
3174 (down_silently_base): Likewise.
3175
e822a2a0
AC
31762002-08-28 Andrew Cagney <ac131313@redhat.com>
3177
3178 * Makefile.in: Update dependencies for all gdb/*.c files.
3179
309367d4
TT
31802002-08-27 Tom Tromey <tromey@redhat.com>
3181
3182 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3183 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3184 Update dependencies.
3185 * i387-tdep.c: Include gdb_string.h.
3186 * osabi.c: Likewise.
3187 * i386-linux-nat.c: Likewise.
3188 * lin-lwp.c: Likewise.
3189 * ax-gdb.c: Likewise.
3190 * signals/signals.c: Likewise.
3191 * jv-valprint.c: Likewise.
3192 * p-lang.c: Likewise.
3193 * c-valprint.c: Likewise.
3194 * cp-abi.c: Likewise.
3195
e1507482
EZ
31962002-08-27 Elena Zannoni <ezannoni@redhat.com>
3197
3198 * cli/cli-script.h (copy_command_lines): Export.
3199 * breakpoint.c: Include cli/cli-script.h.
3200 * Makefile.in (breakpoint.o): Update dependencies.
3201
c6510018
MS
32022002-08-26 Michael Snyder <msnyder@redhat.com>
3203
3204 * breakpoint.c (insert_breakpoints): Protect all references
3205 to 'process_warning'. Shorten long lines.
3206
c2b8ed2c
MS
32072002-08-26 Joel Brobecker <brobecker@gnat.com>
3208
3209 * cli/cli-script.c (copy_command_lines): New function.
3210 * defs.h (copy_command_lines): Export.
3211 * testsuite/gdb.base/commands.exp: New tests for commands
3212 attached to a temporary breakpoint, and for commands that
3213 delete the breakpoint they are attached to.
3214
32152002-08-26 Michael Snyder <msnyder@redhat.com>
3216
3217 * breakpoint.c (bpstat_stop_status): Instead of copying the
3218 pointer to the breakpoint commands struct, make a new copy
3219 of the struct and point to that.
3220 (bpstat_clear): Free the commands struct.
3221 (bpstat_clear_actions): Free the commands struct.
3222 (bpstat_do_actions): Free the command actions. Also execute
3223 the local cleanups, instead of deleting them.
3224 (delete_breakpoint): Leave the commands field of the bpstat
3225 chain alone -- it will be freed later.
3226
64b84175
KB
32272002-08-26 Kevin Buettner <kevinb@redhat.com>
3228
3229 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3230 deleted in 2002-08-20 commit. This function is still used by
3231 ppc-linux-nat.c.
3232
55970da6
KS
32332002-08-26 Keith Seitz <keiths@redhat.com>
3234
3235 * gdb-events.sh: Add selected-frame-level-changed event.
3236 * gdb-events.c: Regenerated.
3237 * gdb-events.h: Regenerated.
3238
a790ad35
SC
32392002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3240
3241 Fix PR gdb/393:
3242 * inflow.c (terminal_save_ours): New function to save terminal
3243 settings.
3244 * inferior.h (terminal_save_ours): Declare.
3245 * target.c (debug_to_terminal_save_ours): New function.
3246 (cleanup_target): Defaults to_terminal_save_ours.
3247 (update_current_target): Inherit to_terminal_save_ours.
3248 (setup_target_debug): Set to_terminal_save_ours.
3249 * target.h (target_terminal_save_ours): New to save terminal settings.
3250 (target_ops): New member to_terminal_save_ours.
3251 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3252 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3253 * inftarg.c (init_child_ops): Likewise.
3254 * m3-nat.c (init_m3_ops): Likewise.
3255 * procfs.c (init_procfs_ops): Likewise.
3256 * wince.c (init_child_ops): Likewise.
3257 * win32-nat.c (init_child_ops): Likewise.
3258 * sol-thread.c (init_sol_thread_ops): Likewise.
3259
c00dcbe9
MK
32602002-08-26 Mark Kettenis <kettenis@gnu.org>
3261
3d7f4f49
MK
3262 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3263 use regcache_* functions.
3264 (i386_gdbarch_init): Set store_return_value instead of
3265 deprecated_store_return_value.
3266
c00dcbe9
MK
3267 * regcache.c (regcache_raw_write_signed,
3268 regcache_raw_write_unsigned): New functions.
3269 * regcache.h (regcache_raw_write_signed,
3270 regcache_raw_write_unsigned): New prototypes.
3271
0e0d15ca
AC
32722002-08-25 Andrew Cagney <ac131313@redhat.com>
3273
3274 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3275 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3276 source file dependencies. Cleanup corresponding generator rules.
3277
d3b22ed5
AC
32782002-08-25 Andrew Cagney <ac131313@redhat.com>
3279
3280 * regcache.h (register_offset_hack): Declare.
3281 (regcache_cooked_read_using_offset_hack): Declare.
3282 (regcache_cooked_write_using_offset_hack): Declare.
3283
3284 * regcache.c (register_offset_hack): New function.
3285 (regcache_cooked_read_using_offset_hack): New function.
3286 (regcache_cooked_write_using_offset_hack): New function.
3287 (regcache_dump): Check that the registers, according to their
3288 offset, are packed hard against each other.
3289 (cooked_xfer_using_offset_hack): New function.
3290
bb425013
AC
32912002-08-25 Andrew Cagney <ac131313@redhat.com>
3292
3293 * regcache.c (struct regcache_descr): Add field register_type.
3294 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3295 in as a parameter
3296 (init_regcache_descr): Initialize register_type. Pass the descr
3297 to init_legacy_regcache_descr. Use register_type instead of
3298 REGISTER_VIRTUAL_TYPE.
3299 (register_type): New function.
3300 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3301 * regcache.h (register_type): Declare.
3302
d0403e00
AC
33032002-08-25 Andrew Cagney <ac131313@redhat.com>
3304
3305 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3306 instead of deprecated_store_return_value. Fix fallout from
3307 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3308
0ed04cce
AC
33092002-08-25 Andrew Cagney <ac131313@redhat.com>
3310
3311 * regcache.c (max_register_size): New function.
3312 (init_legacy_regcache_descr): Ensure that max_register_size is
3313 large enough for REGISTER_VIRTUAL_SIZE.
3314 * regcache.h (max_register_size): Declare.
3315
46d79c04
AC
33162002-08-24 Andrew Cagney <ac131313@redhat.com>
3317
3318 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3319 store_return_value.
3320 (e500_extract_return_value): Change type of valbuf pointer to
3321 void.
3322
853c7bd0
MK
33232002-08-24 Mark Kettenis <kettenis@gnu.org>
3324
cd87e769
MK
3325 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3326 workaround.
3327
853c7bd0
MK
3328 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3329 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3330 long long) to prevent compiler warning on 64-bit systems.
3331
ebba8386
AC
33322002-08-23 Andrew Cagney <cagney@redhat.com>
3333
3334 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3335 (DEPRECATED_STORE_RETURN_VALUE): New method.
3336 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3337 * gdbarch.h, gdbarch.c: Re-generate.
3338
3339 * values.c (set_return_value): Pass current_regcache to
3340 STORE_RETURN_VALUE.
3341 * arch-utils.h (legacy_store_return_value): Declare.
3342 * arch-utils.c (legacy_store_return_value): New function.
3343 (legacy_extract_return_value): Update parameters.
3344
3345 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3346 STORE_RETURN_VALUE.
3347 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3348 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3349 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3350 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3351 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3352 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3353 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3354 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3355 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3356 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3357
3358 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3359 * i386-tdep.c (i386_extract_return_value): Update.
3360 * arch-utils.c (legacy_extract_return_value): Update.
3361 * frv-tdep.c (frv_gdbarch_init): Update.
3362 * cris-tdep.c (cris_gdbarch_init): Update.
3363 * d10v-tdep.c (d10v_gdbarch_init): Update.
3364 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3365 * m68k-tdep.c (m68k_gdbarch_init): Update.
3366 * mcore-tdep.c (mcore_gdbarch_init): Update.
3367 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3368 * s390-tdep.c (s390_gdbarch_init): Update.
3369 * sparc-tdep.c (sparc_gdbarch_init): Update.
3370 * sh-tdep.c (sh_gdbarch_init): Update.
3371 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3372 * v850-tdep.c (v850_gdbarch_init): Update.
3373 * avr-tdep.c (avr_gdbarch_init): Update.
3374 * ia64-tdep.c (ia64_gdbarch_init): Update.
3375 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3376 * vax-tdep.c (vax_gdbarch_init): Update.
3377 * alpha-tdep.c (alpha_gdbarch_init): Update.
3378 * arm-tdep.c (arm_gdbarch_init): Update.
3379 * mips-tdep.c (mips_gdbarch_init): Update.
3380 * i386-tdep.c (i386_gdbarch_init): Update.
3381
5bd8c6d0
AC
33822002-08-23 Andrew Cagney <ac131313@redhat.com>
3383
3384 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3385 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3386
e73e1724
MK
33872002-08-24 Mark Kettenis <kettenis@gnu.org>
3388
3389 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3390 problems.
3391
3e6564e1
JB
33922002-08-23 Joel Brobecker <brobecker@gnat.com>
3393
3394 * infrun.c (handle_inferior_event): Move a comment outside of a
3395 function call, in order to avoid indent reformatting this part
3396 of the code in an unreadable way.
3397
81d0cc19
GS
33982002-08-23 Grace Sainsbury <graces@redhat.com>
3399
3400 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3401 when breakpoints fail. Move general breakpoint error messages to
3402 insert_breakpoints.
3403 * breakpoint.c (insert_breakpoints): Change warnings when
3404 breakpoints are nto inserted to specify the type. Remove call to
3405 memory_error when hardware breakpoints can't be inserted. Remove
3406 multiple calls to warning so all messages are sent to the user at
3407 once.
3408 (delete_breakpoints): Make insert error messsages more explicit.
3409
17574093
DJ
34102002-08-23 Daniel Jacobowitz <drow@mvista.com>
3411
3412 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3413 gdbserver/ChangeLog.
3414
8acc2935
MK
34152002-08-23 Mark Kettenis <kettenis@gnu.org>
3416
dfe01d39
MK
3417 * i386-tdep.c: Include "objfiles.h".
3418 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3419 skip_trampoline_code.
3420 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3421 (CPLUS_MARKER): Define to '.'.
3422
8acc2935
MK
3423 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3424 member.
3425 (linux_corefile_thread_callback): Increase args->num_notes.
3426 (linux_make_note_section): Initialize thread_args.num_notes, and
3427 use it to determine whether notes for any threads were created.
3428
151fefe2 34292002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
3430
3431 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3432 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3433 and PCUNKILL.
3434 (write_with_trace): Conditionalize out the switch branch handling
3435 PCSHOLD if the corresponding macro is not defined. Likewise for
3436 PRSABORT and PRSTOP.
3437 This change will be needed by the Interix port.
3438
e1507482
EZ
34392002-08-22 Elena Zannoni <ezannoni@redhat.com>
3440
3441 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3442 write_register wherever possible instead of manipulating the
3443 register bytes directly.
3444 Assign VALUE_CONTENTS to a variable and use that.
3445 The GPR numbers are now dependent on the architecture.
3446
96ff0de4
EZ
34472002-08-22 Elena Zannoni <ezannoni@redhat.com>
3448
3449 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3450 ev_offset fields.
3451 (skip_prologue): Add support for BookE/e500 instructions.
3452 (e500_extract_return_value): New function.
3453 (frame_get_saved_regs): Add support for saving ev registers and
3454 pseudo gpr's.
3455 (e500_store_return_value): New function.
3456 (rs6000_gdbarch_init): Move up default intializations of
3457 deprecated_extract_return_value and store_return_value. Overwrite
3458 init of store_return_value with e500 specific version.
3459 Set extract_return_value for e500.
3460
fbefca5b
EZ
34612002-08-22 Elena Zannoni <ezannoni@redhat.com>
3462
3463 * blockframe.c (generic_call_dummy_register_unwind): Use
3464 regcache_cooked_read to catch cases in which the variable is
3465 stored in a pseudo register.
3466
4d210288
AC
34672002-08-22 Andrew Cagney <cagney@redhat.com>
3468
3469 * NEWS: Mention that the i960 has been made obsolete.
3470 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3471 i960-tdep.c
3472 (remote-nrom.o): Obsolete target.
3473 (remote-nindy.o, i960-tdep.o): Ditto.
3474 * remote-nrom.c: Make file obsolete.
3475 * remote-nindy.c, remote-vx960.c: Ditto.
3476 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3477 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3478 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3479 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3480 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3481 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3482 i960-*-vxworks* obsolete.
3483 * MAINTAINERS: Note that the i960 is obsolete.
3484
6c0c456d
CV
34852002-08-21 Corinna Vinschen <vinschen@redhat.com
3486
3487 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3488 detach to allow reinitialization.
3489
9f9d12b3
AC
34902002-08-22 Andrew Cagney <ac131313@redhat.com>
3491
3492 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3493 attempt).
3494
ebeb39fe
JB
34952002-08-22 Jim Blandy <jimb@redhat.com>
3496
3497 * coffread.c (coff_symfile_read): Don't try to read the line
3498 number table from disk if the image file doesn't have a symbol
3499 table; we'll never actually look at the info anyway, and Windows
3500 ships DLL's with bogus file offsets for the line number data.
3501
5bf1c677
EZ
35022002-08-21 Elena Zannoni <ezannoni@redhat.com>
3503
3504 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3505 an e500 executable.
3506
71b8ef93
MS
35072002-08-21 Michael Snyder <msnyder@redhat.com>
3508
3509 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3510 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
3511 (DEFAULT_MIPS_TYPE): Delete unused macro.
3512 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3513 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 3514
d174216d
JB
35152002-08-21 Jim Blandy <jimb@redhat.com>
3516
3517 * valops.c (value_cast): Simplify and correct logic for doing a
3518 static cast from a pointer to a base class to a pointer to a
3519 derived class.
3520
0ab7a791
AC
35212002-08-21 Andrew Cagney <ac131313@redhat.com>
3522
3523 * infcmd.c (default_print_registers_info): Replace
3524 do_registers_info.
3525 (registers_info): Use gdbarch_print_registers_info instead of
3526 DO_REGISTERS_INFO.
3527 * inferior.h (default_print_registers_info): Replace
3528 do_registers_info.
3529 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3530 (DO_REGISTERS_INFO): Change to a predicate function.
3531 * gdbarch.h, gdbarch.c: Regenerate.
3532
e23792cc
KS
35332002-08-21 Keith Seitz <keiths@redhat.com>
3534
3535 * gdb-events.sh: Add target-changed event.
3536 * gdb-events.c: Regenerated.
3537 * gdb-events.c: Regenerated.
3538 * valops.c (value_assign): Add target-changed event notification
3539 to inlval_register, lval_memory, and lval_reg_frame_relative.
3540
9fb14e79
JB
35412002-08-21 Joel Brobecker <brobecker@gnat.com>
3542
3543 * NEWS: Add an entry regarding the improvement of the next/step
3544 operation on Alpha Tru64 multi-processor machines.
3545
6d39a69f
AC
35462002-08-21 Andrew Cagney <ac131313@redhat.com>
3547
72acd513
AC
3548 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3549 directores.
342af04b 3550 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
3551 * Makefile.in (install-gdbtk): Move to install section.
3552 (rdi-share/libangsd.a): Move to end of file.
3553
fa5f27c7
AC
35542002-08-19 Andrew Cagney <ac131313@redhat.com>
3555
3556 * frame.c (frame_register_unwind): When a register, set addrp to
3557 the register's byte.
3558
5a89d8aa
MS
35592002-08-20 Michael Snyder <msnyder@redhat.com>
3560
3561 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3562 used locally, so move them from the target machine header to here.
3563 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3564 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3565 Make static.
3566 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3567
822e978b
AC
35682002-08-20 Andrew Cagney <cagney@redhat.com>
3569
3570 * NEWS: Mention that the Apollo line was made obsolete.
3571 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3572 m68*-hp-hpux* obsolete.
3573 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3574 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3575 * buildsym.c (make_blockvector): Make static.
3576 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3577 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3578 (ALLDEPFILES): Remove dstread.c.
3579 (dstread.o): Obsolete make rule.
3580 * dstread.c: Makefile obsolete.
3581 * dst.h: Ditto.
3582 * config/m68k/hp300hpux.mt: Ditto.
3583 * config/m68k/hp300hpux.mh: Ditto.
3584 * config/m68k/hp300bsd.mt: Ditto.
3585 * config/m68k/hp300bsd.mh: Ditto.
3586 * config/m68k/apollo68b.mt: Ditto.
3587 * config/m68k/apollo68v.mh: Ditto.
3588 * config/m68k/apollo68b.mh: Ditto.
3589
e41b17f0
MS
35902002-08-20 Michael Snyder <msnyder@redhat.com>
3591
3592 * mips-tdep.c (mips_in_return_stub): Make static.
3593 (mips_gdbarch_init): Set in_solib_return_trampoline.
3594 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3595
d50355b6
MS
35962002-08-20 Michael Snyder <msnyder@redhat.com>
3597
3598 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3599 * gdbarch.c, gdbarch.h: Regenerate.
3600 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3601 Add.
3602 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3603
757a7cc6
MS
36042002-08-20 Michael Snyder <msnyder@redhat.com>
3605
3606 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3607 (mips_gdbarch_init): Set skip_trampoline_code,
3608 in_solib_call_trampoline.
3609 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3610 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3611
c8001721
EZ
36122002-08-20 Elena Zannoni <ezannoni@redhat.com>
3613
3614 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3615
3616 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3617 vector type for ev registers.
3618 (e500_pseudo_register_read): New function.
3619 (e500_pseudo_register_write): New function.
3620 (e500_dwarf2_reg_to_regnum): New function.
3621 (PPC_UISA_NOFP_SPRS): New macro.
3622 (PPC_EV_REGS): New macro.
3623 (PPC_GPRS_PSEUDO_REGS): New macro.
3624 (registers_e500): New register set for e500.
3625 (variants): Add e500 variant.
3626 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3627 before setting architectural dependent variations. Initialize ev
3628 registers numbers. Add case for e500 architecture. Set the
3629 number of pseudo registers.
3630
64366f1c
EZ
36312002-08-20 Elena Zannoni <ezannoni@redhat.com>
3632
3633 * rs6000-tdep.c: Clean up comments.
3634
7e78f0ca
AC
36352002-08-20 Andrew Cagney <cagney@redhat.com>
3636
3637 * h8300-tdep.c: Re-indent file.
3638
697f7479
JB
36392002-08-20 Jim Blandy <jimb@redhat.com>
3640
3641 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3642 default for this.
697f7479 3643
e86ae29f
KS
36442002-08-20 Keith Seitz <keiths@redhat.com>
3645
3646 * breakpoints.c (watch_command_1): Use internal breakpoint
3647 when setting a watchpoint_scope breakpoint.
3648
216b504f
EZ
36492002-08-20 Elena Zannoni <ezannoni@redhat.com>
3650
3651 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3652 (build_builtin_type_vec64i): Ditto.
3653 (build_builtin_type_vec128): Ditto.
3654 (build_builtin_type_vec128i): Ditto.
3655
f7ab6ec6
MS
36562002-08-19 Michael Snyder <msnyder@redhat.com>
3657
3658 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3659 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3660 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3661 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3662 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3663 CALL_DUMMY_ADDRESS): Delete.
3664 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3665 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3666 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3667 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3668 push_return_address.
3669 (mips_register_raw_size, mips_eabi_use_struct_convention,
3670 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3671 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3672 mips_init_extra_frame_info, mips_eabi_push_arguments,
3673 mips_n32n64_push_arguments, mips_push_return_address,
3674 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3675 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3676
b5d1566e
MS
36772002-08-19 Michael Snyder <msnyder@redhat.com>
3678
3679 * mips-tdep.c (mips_frame_num_args): New function.
3680 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3681 frame_saved_pc, frame_args_address, frame_locals_address,
3682 frame_num_args, and frame_args_skip.
3683 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3684 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3685 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3686 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3687
2f1488ce
MS
36882002-08-20 Michael Snyder <msnyder@redhat.com>
3689
3690 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3691 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3692 * mips-tdep.c (mips_store_struct_return): New function.
3693 (mips_extract_struct_value_address): New function.
3694 (mips_gdbarch_init): Set store_struct_return and
3695 extract_struct_value_address.
3696
41ff2da1
DC
36972002-08-20 David Carlton <carlton@math.stanford.edu>
3698
3699 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3700 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3701 (read_file_scope): Check that line_header is nonzero before
3702 decoding macro information.
3703
e5451d58
MK
37042002-08-20 Mark Kettenis <kettenis@gnu.org>
3705
3706 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3707 flag the general-purpose registers as floating-point on targets
3708 that don't support the floating-point registers.
3709
4a6daafa
EZ
37102002-08-20 Elena Zannoni <ezannoni@redhat.com>
3711
3712 * rs6000-tdep.c (altivec_register_p): Delete.
3713 (rs6000_do_altivec_registers): Delete.
3714 (rs6000_altivec_registers_info): Delete.
3715 (rs6000_do_registers_info): Delete.
3716 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3717 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3718
ab4327e0
EZ
37192002-08-20 Elena Zannoni <ezannoni@redhat.com>
3720
3721 * infcmd.c (do_registers_info): Print vector registers in hex
3722 format only.
3723 (print_vector_info): Check that printing registers
3724 makes sense.
3725 (print_float_info): Ditto.
3726
cb1d2653
AC
37272002-08-20 Andrew Cagney <ac131313@redhat.com>
3728
3729 * mips-tdep.c (mips_gdbarch_init): Update.
3730 (mips_o32_extract_return_value): Rewrite.
3731 (mips_o32_store_return_value): Rewrite.
3732 (mips_o32_xfer_return_value): New function.
3733 (mips_xfer_register): Tweak debug print message. Allow for
3734 buf_offset when dumping the value transfered.
3735
dfc3d9b2
AC
37362002-08-20 Andrew Cagney <ac131313@redhat.com>
3737
3738 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3739 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3740 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3741 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3742 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3743
7807aa61
MS
37442002-08-14 Michael Snyder <msnyder@redhat.com>
3745
3746 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3747
489461e2
EZ
37482002-08-19 Elena Zannoni <ezannoni@redhat.com>
3749
3750 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3751 register.
3752 (P): New macro to define a register as a pseudo register.
3753 (R, R4, R8, R16, FR32, R64, R0): Updated.
3754 (struct variant): Add new fields for number of pseudo registers
3755 and number of total registers.
3756 (tot_num_registers): New macro replacing....
3757 (num_registers): ...deleted macro.
3758 (num_registers): New function.
3759 (num_pseudo_registers): New function.
3760 (variants): Update all variants to intialize new fields correctly.
3761 Postpone initialization of number of pseudo regs and real regs.
3762 (init_variants): New function.
3763 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3764 registers offsets.
3765
fcaffe4c
DC
37662002-08-19 David Carlton <carlton@math.stanford.edu>
3767
2c2738a0
DC
3768 * valops.c (search_struct_field): Change error message to treat
3769 return value of 0 from value_static_field as meaning that field is
3770 optimized out.
3771 (value_struct_elt_for_reference): Ditto.
3772 * values.c (value_static_field): Treat an unresolved location the
3773 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
3774 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3775 enclosed. Fix PR gdb/574.
fcaffe4c
DC
3776 * MAINTAINERS: Add self to Write After Approval list.
3777
88658117
AC
37782002-08-19 Andrew Cagney <ac131313@redhat.com>
3779
3780 * mips-tdep.c (mips_xfer_register): New function.
3781 (mips_n32n64_extract_return_value): Rewrite.
3782 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3783 instead of deprecated_extract_return_value.
3784
21283beb
EZ
37852002-08-19 Elena Zannoni <ezannoni@redhat.com>
3786
3787 * rs6000-tdep.c (TDEP): Delete macro.
3788 (branch_dest): Replace use of TDEP macro with its body.
3789 (rs6000_pop_frame): Ditto.
3790 (rs6000_push_arguments): Ditto.
3791 (rs6000_skip_trampoline_code): Ditto.
3792 (rs6000_frame_saved_pc): Ditto.
3793 (rs6000_frame_chain): Ditto.
3794 (rs6000_register_name): Ditto.
3795 (rs6000_register_byte): Ditto.
3796 (rs6000_register_raw_size): Ditto.
3797 (rs6000_register_virtual_type): Ditto.
3798 (rs6000_register_convertible): Ditto.
3799 (rs6000_convert_from_func_ptr_addr): Ditto.
3800
bf072999
DJ
38012002-08-19 Daniel Jacobowitz <drow@mvista.com>
3802
3803 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3804 conditionally.
3805 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3806 MIPS_LINUX_JB_ELEMENT_SIZE.
3807 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3808 for MAX_REGISTER_RAW_SIZE arrays.
3809 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3810 MIPS_LINUX_JB_ELEMENT_SIZE.
3811
9b949a49
PM
38122002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3813
3814 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3815
6d3e79c6
AS
38162002-08-19 Aidan Skinner <aidan@velvet.net>
3817
3818 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3819 ada-valprint.c ada-tasks.c.
3820 (YYFILES): Add ada-exp.y.
3821 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3822 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3823 (ada-exp.tab.o): New target.
3824
06c0b04e
AC
38252002-08-18 Andrew Cagney <ac131313@redhat.com>
3826
3827 * regcache.c (regcache_xfer_part): New function.
3828 (regcache_raw_read_part): New function.
3829 (regcache_raw_write_part): New function.
3830 (regcache_cooked_read_part): New function.
3831 (regcache_cooked_write_part): New function.
3832 * regcache.h (regcache_raw_read_part): Declare.
3833 (regcache_raw_write_part): Declare.
3834 (regcache_cooked_read_part): Declare.
3835 (regcache_cooked_write_part): Declare.
3836
92d1e331
DJ
38372002-08-18 Daniel Jacobowitz <drow@mvista.com>
3838
3839 * remote.c (remote_open_1): Add async_p.
3840 (remote_async_open_1): Delete.
3841 (open_remote_target): Delete.
3842 (remote_open, extended_remote_open): Update calls to remote_open_1.
3843 (remote_async_open, extended_remote_async_open): Call
3844 remote_open_1 instead of remote_async_open_1.
3845
247055de
MK
38462002-08-19 Mark Kettenis <kettenis@gnu.org>
3847
3848 * blockframe.c: Fix a few coding standard violations.
3849
641eda39
MK
38502002-08-19 Mark Kettenis <kettenis@gnu.org>
3851
0b717710
MK
3852 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3853 here from ...
3854 * config/i386/tm-i386sco5.h: ... here. File removed.
3855 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3856
26d28e12 3857 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
3858 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3859 (TM_FILE): Set to tm-i386.h.
3860 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3861 * config/i386/tm-i386v.h: Remove file.
3862 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3863 instead of "i386/tm-i386v.h".
3864 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3865 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3866 "i386/tm-i386v.h".
3867 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3868 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3869 "i386/tm-i386.h".
3870
d4e0bab4
MK
38712002-08-18 Mark Kettenis <kettenis@gnu.org>
3872
3873 * config/i386/nm-i386v.h: Add protection against
3874 multiple-inclusion.
3875 (i386_register_u_addr): Remove prototype.
3876 (register_u_addr): New prototype.
3877 (REGISTER_U_ADDR): Redefine accordingly.
3878 * i386v-nat.c: Improve several comments.
3879 (i386_register_u_addr): Change signature and rename to
3880 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3881 ubase variable.
3882
46cac009
AC
38832002-08-18 Andrew Cagney <ac131313@redhat.com>
3884
3885 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3886 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3887 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3888 deprecated_extract_return_value.
3889 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3890 rename mips_o32o64_push_arguments.
3891 (mips_gdbarch_init): Update.
3892 (mips_extract_return_value): Delete.
3893 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3894 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3895 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3896 (mips_n32n64_extract_return_value): Clone
3897 mips_extract_return_value.
3898 (mips_store_return_value): Delete.
3899 (mips_o32_store_return_value): Clone mips_store_return_value.
3900 (mips_o64_store_return_value): Clone mips_store_return_value.
3901 (mips_eabi_store_return_value): Clone mips_store_return_value.
3902 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3903
d2e4a39e
AS
39042002-08-18 Aidan Skinner <aidan@velvet.net>
3905
0c30c098
AS
3906 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3907 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3908
39092002-08-18 Aidan Skinner <aidan@velvet.net>
3910
3911 * ada-lang.c: Run through gdb_indent.sh.
3912 * ada-lang.h: Run through gdb_indent.sh.
3913 * ada-tasks.c: Run through gdb_indent.sh.
3914 * ada-typeprint.c: Run through gdb_indent.sh.
3915 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 3916
01fc4e33
AC
39172002-08-18 Andrew Cagney <ac131313@redhat.com>
3918
3919 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3920 ABI.
3921
d8ee244c
MK
39222002-08-18 Mark Kettenis <kettenis@gnu.org>
3923
c38d8261
MK
3924 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3925
222db64c
MK
3926 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3927 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3928
c2848c82
MK
3929 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3930 write_register_gen instead of write_register_bytes.
3931
d8ee244c
MK
3932 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3933 i[3456]-*-osf1mk* configurations have been made obsolete.
3934 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3935 i[3456]86-*-osf1mk* hosts obsolete.
3936 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3937 targets obsolete.
3938 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3939 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3940 config/i386/i386m3.mt, config/i386/nm-m3.h,
3941 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3942 config/i386/i386mk.mh, config/i386/i386mk.mt,
3943 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3944 obsolete.
3945 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3946 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3947 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3948
61d8d407
AC
39492002-08-18 Andrew Cagney <ac131313@redhat.com>
3950
3951 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3952 (hppa_value_returned_from_stack): Declare.
3953 (hppa_extract_return_value): Declare.
3954 * config/pa/hppa.mt: New file.
3955 * configure.tgt: Recognize hppa*-*-*.
3956 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3957
0c52bd59
MK
39582002-08-18 Mark Kettenis <kettenis@gnu.org>
3959
3960 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3961 comment.
3962
b5686e99
MK
39632002-08-17 Mark Kettenis <kettenis@gnu.org>
3964
3965 * top.c (gdb_rl_operate_and_get_next): Make sure
3966 operate-and-get-next functions correctly even when the history
3967 list is completely filled.
3968
c1bab85b
AC
39692002-08-18 Andrew Cagney <ac131313@redhat.com>
3970
3971 * MAINTAINERS (Target Instruction Set Architectures): Rename
3972 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3973 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3974 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3975 already listed under Host/Native.
3976
3977 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3978 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3979 mips*-*-*.
3980
32089c7c
AC
39812002-08-17 Andrew Cagney <ac131313@redhat.com>
3982
3983 * config/ia64/ia64.mt: New file.
3984 * config/alpha/alpha.mt: New file.
3985 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3986 ia64-linux-gnu. Mention that ia64-elf is broken.
3987 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3988
b4671f85
MK
39892002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3990
3991 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3992 generic_func_frame_valid instead of func_frame_valid.
3993
c8edd8b4
JB
39942002-08-16 Joel Brobecker <brobecker@gnat.com>
3995
3996 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3997 procfs appears to be broken when debugging on multi-processor
3998 machines. So enable software single stepping in order to avoid
3999 using the procfs interface to do next/step operations, using
4000 internal breakpoints instead.
4001
4002 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4003 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4004 make this pc address equal to the value it would have if the
4005 system stepping capability was used. Also set a new flag used
4006 to ensure that we don't readjust the PC one more time later.
4007
4008 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4009 address by DECR_PC_AFTER_BREAK when software single step is
4010 in use for this architecture, as this has already been taken
4011 care of in handle_inferior_event().
4012
238617f6
JB
40132002-08-16 Joel Brobecker <brobecker@gnat.com>
4014
4015 * infrun.c (handle_inferior_event): Minor reformatting, to make
4016 a rather long condition expression easier to read.
4017
541a7aac
AC
40182002-08-16 Andrew Cagney <ac131313@redhat.com>
4019
4020 * Makefile.in (gdbtk.o): Move to end of file.
4021 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4022 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4023 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4024 (gdbtk-wrapper.o, gdbres.o): Ditto.
4025
f92d4a7b
AC
40262002-08-16 Andrew Cagney <ac131313@redhat.com>
4027
4028 * Makefile.in (copying.o): Separate out compile rule.
4029 (hpux-thread.o, procfs.o, signals.o): Ditto.
4030 (v850ice.o, z8k-tdep.o): Ditto.
4031 (tui-file.o): Move to TUI section.
4032 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4033 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4034
1cce71eb
JB
40352002-08-16 Joel Brobecker <brobecker@gnat.com>
4036
4037 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4038 skip_trampoline_code, for better namespace-proofing.
4039
4040 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4041
0851f23d
JB
40422002-08-16 Joel Brobecker <brobecker@gnat.com>
4043
4044 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4045
f8d40ec8
JB
40462002-08-16 Joel Brobecker <brobecker@gnat.com>
4047
4048 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4049 signal, check whether we hit a breakpoint before checking for a
4050 single step breakpoint. Otherwise, GDB fails to notice that a
4051 breakpoint has been hit when stepping onto a breakpoint.
4052
63d022e0
KS
40532002-08-16 Keith Seitz <keiths@redhat.com>
4054
4055 * gdb-events.sh (clear_gdb_event_hooks): New function.
4056 * gdb-events.c: Regenerate.
4057 * gdb-events.h: Regenerate.
4058
6e31adb3
AC
40592002-08-16 Andrew Cagney <ac131313@redhat.com>
4060
4061 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4062 not_a_sw_breakpoint.
4063 * breakpoint.h (bpstat_stop_status): Add parameter names.
4064
c8189ed1
GS
40652002-08-16 Grace Sainsbury <graces@redhat.com>
4066
4067 * remote.c (remote_insert_hw_breakpoint)
4068 (remote_remove_hw_breakpoint): Fix calculation of length field
4069 for Z-packet.
4070
d05285fa
MS
40712002-08-15 Michael Snyder <msnyder@redhat.com>
4072
466d7106
MS
4073 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4074 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4075 (supply_fpregset): Ditto.
4076
d05285fa
MS
4077 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4078 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4079 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 4080 (TARGET_READ_SP): Delete.
bf1f5b4c 4081 (DO_REGISTERS_INFO): Delete.
102182a9
MS
4082 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4083 Delete.
4084 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4085 from macros to functions.
bf1f5b4c 4086
d05285fa
MS
4087 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4088 (mips_register_convertible, mips_register_convert_to_virtual,
4089 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
4090 (mips_read_sp): New function.
4091 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
4092 (mips_do_registers_info): Make static.
4093 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
4094 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4095 (mips_register_convert_from_type, mips_register_convert_to_type):
4096 New functions.
4097 (mips_gdbarch_init): Set up function_start_offset,
4098 register_virtual_size, pc_in_sigtramp.
d05285fa 4099
e76f1f2e
AC
41002002-08-15 Andrew Cagney <ac131313@redhat.com>
4101
4102 * infcmd.c (vector_info): New function.
4103 (_initialize_infcmd): Add command "info vector".
4104 (print_vector_info): New function.
4105
4106 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4107 * gdbarch.h, gdbarch.c: Regenerate.
4108
4782dc19
AC
41092002-08-15 Andrew Cagney <ac131313@redhat.com>
4110
4111 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4112 ``print_all''. Only print vector registers when ``print_all''.
4113
23e3a7ac
AC
41142002-08-15 Andrew Cagney <ac131313@redhat.com>
4115
8e186fd6
AC
4116 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4117 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4118
23e3a7ac
AC
4119 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4120 Add `args' parameter.
4121 * gdbarch.h, gdbarch.c: Regenerate.
4122
4123 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4124
4125 * infcmd.c (float_info): Call print_float_info.
4126 (print_float_info): New function. By default, print the
4127 floating-point registers.
4128
4129 * arch-utils.h (default_print_float_info): Delete declaration.
4130 * arch-utils.c (default_print_float_info): Delete function.
4131
e0ca2bb9
MK
41322002-08-16 Mark Kettenis <kettenis@gnu.org>
4133
3f733acc
MK
4134 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4135 out define.
4136
7d8d2918
MK
4137 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4138 FRAME.
4139
1c7cc583
MK
4140 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4141 * configure.host: Make i[3456]86-*-aix host obsolete.
4142 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4143 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4144 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4145 config/i386/xm-i386aix.h: Make files obsolete.
4146 * i386aix-nat.c: Make file obsolete.
4147 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4148 (i386aix-nat.o): Make target obsolete.
4149
e0ca2bb9
MK
4150 * config/i386/nm-gnu.h: Removed.
4151 * config/i386/nm-i386gnu.h: New file.
4152 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4153 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4154 Moved here from ...
4155 * config/i386/tm-i386gnu.h: ... here. Removed.
4156 * config/i386/xm-i386gnu.h: Removed.
4157 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4158 (NAT_FILE): Set to nm-i386gnu.h.
4159 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4160 * i386-tdep.c: New file.
4161 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4162 (i386gnu-tdep.o): Specify dependencies.
4163
16057ec7 41642002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 4165
6b99ee2e
MK
4166 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4167 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4168 Adjust a few comments to reflect reality a bit closer.
4169 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4170 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4171 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4172 target_insert_watchpoint, target_remove_watchpoint):
4173 Move defines to ...
4174 * config/i386/nm-i386sco5.h: ... here.
4175 (kernel_u_size): Add prototype. Improve a few comments and add
4176 protection against multiple inclusion.
4177
d9a6f65c
MK
4178 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4179 out define.
4180
047eff6a
MK
4181 * uw-thread.c (SP_ARG0): Define if not already defined.
4182 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4183
dcdb1290
MK
4184 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4185
5d2d0b2a
MK
4186 * config/i386/tm-i386.h: Don't include "regcache.h".
4187
61113f8b
MK
4188 * i387-tdep.h (i387_print_float_info): New prototype.
4189 * i387-tdep.c (print_i387_value, print_i387_ext,
4190 print_i387_status_word, print_i387_control_word): Add `struct
4191 ui_file *' argument and use it for output.
4192 (i387_print_float_info): Renamed from i387_float_info. Add
4193 `struct gdbarch *' and `struct ui_file *' arguments and use the
4194 latter for output.
4195 * i386-tdep.c: Include "i387-tdep.h".
4196 (i386_gdbarch_init): Set print_float_info.
4197 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4198 (FLOAT_INFO): Remove define.
4199
46e0f506
MS
42002002-08-13 Michael Snyder <msnyder@redhat.com>
4201
4202 * mips-tdep.c (mips_push_arguments): Rename to
4203 mips_eabi_push_arguments, and tune for EABI.
4204 (MIPS_REGS_HAVE_HOME_P): Delete.
4205 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4206 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4207 Delete references to mips_regs_have_home_p.
4208
409268de
KS
42092002-08-14 Keith Seitz <keiths@redhat.com>
4210
4211 * Makefile.in (install-gdbtk): Create insight plugin directory.
4212 Install plugins.tcl file.
4213
ffc6a242
KS
42142002-08-14 Keith Seitz <keiths@redhat.com>
4215
4216 * configure.in: Move SUBDIRS to near top of the file so that
4217 --enable options may add things to it.
4218 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4219 * configure: Regenerate.
4220
ebafbe83
MS
42212002-08-13 Michael Snyder <msnyder@redhat.com>
4222
4223 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4224 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4225 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4226
32f6f25d
AC
42272002-08-13 Andrew Cagney <ac131313@redhat.com>
4228
4229 * vax-tdep.c (vax_get_saved_register): Delete function.
4230 (vax_gdbarch_init): Update.
4231 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4232 (ns32k_gdbarch_init): Update.
4233 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4234 (alpha_gdbarch_init): Update.
4235
53826de9
AC
42362002-08-13 Andrew Cagney <cagney@redhat.com>
4237
4238 * regcache.c (init_regcache_descr): Overallocate the
4239 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4240 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4241 nr_raw_registers.
4242 (set_register_cached): Add range checking assertions. Use
4243 current_regcache.
4244
16057ec7 42452002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
4246
4247 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4248 numbers for MMX registers.
4249
7b4c2dce
AC
42502002-08-13 Andrew Cagney <cagney@redhat.com>
4251
4252 * i386-tdep.c (i386_gdbarch_init): Use
4253 generic_unwind_get_saved_register.
4254
1e03ad20
KB
42552002-08-13 Kevin Buettner <kevinb@redhat.com>
4256
4257 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4258 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4259 target vector.
4260 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4261 Delete. Add comment regarding this now-deleted target method.
4262
548bcbec
SC
42632002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4264
4265 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4266 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4267 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4268 real PC and the page number (if it's within the memory bank window).
4269 (m68hc11_pseudo_register_write): Likewise when saving.
4270 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4271 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4272 (m68hc11_register_raw_size): And use 32-bit for it.
4273 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4274 16K memory bank is used by the prog; also use the virtual pc.
4275
7df11f59
SC
42762002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4277
4278 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4279 (m68hc11_gdbarch_init): Install it in gdbarch.
4280 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4281 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4282 (MSYMBOL_SIZE): New for documentation.
4283 (insn_return_kind): Enum to specify how a function returns.
4284 (frame_extra_info): Cleanup and record the return mode.
4285 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4286 register in address computation.
4287 (m68hc11_get_return_insn): New to obtain the return instruction used
4288 by the function.
4289 (m68hc11_frame_init_saved_regs): Take into account the return
4290 instruction used by the function for far and interrupt functions.
4291 (m68hc11_init_extra_frame_info): Take into account page register.
4292 (m68hc11_frame_args_address): Adjust according to the return mode.
4293 (show_regs): Print page register only when it's used.
4294
5706502a
SC
42952002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4296
4297 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4298 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4299 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4300 registers.
4301 (m68hc11_register_raw_size): Likewise.
4302
28fc6740
AC
43032002-08-13 Andrew Cagney <cagney@redhat.com>
4304
4305 * i386-tdep.c (i386_register_name): Handle mmx registers.
4306 (mmx_regnum_p): New function.
4307 (i386_mmx_names): New array.
4308 (mmx_num_regs): New variable.
4309 (i386_pseudo_register_read): New function.
4310 (i386_pseudo_register_write): New function.
4311 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4312
4313 * regcache.c (regcache_raw_read_unsigned): New function.
4314 (regcache_raw_read_signed): New function.
4315 * regcache.h (regcache_raw_read_unsigned): Declare.
4316 (regcache_raw_read_signed): Declare.
4317
a378f419
AC
43182002-08-13 Andrew Cagney <cagney@redhat.com>
4319
4320 * regcache.c (regcache_raw_read_as_address): Delete function.
4321 (regcache_cooked_read_signed): New function.
4322 (regcache_cooked_read_unsigned): New function.
4323 * regcache.h (regcache_cooked_read_signed): Declare.
4324 (regcache_cooked_read_unsigned): Declare.
4325 (regcache_raw_read_as_address): Delete declaration.
4326
4327 * blockframe.c (generic_read_register_dummy): Use
4328 regcache_cooked_read_unsigned.
4329 * i386-tdep.c (i386_extract_struct_value_address): Use
4330 regcache_cooked_read_unsigned.
4331
81967506
SC
43322002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4333
4334 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4335 double sizes according to ELF ABI flags.
4336 (gdbarch_tdep): Record elf_flags.
4337
ffe1f3ee
SC
43382002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4339
4340 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4341 (m6812_prolog): They can appear in 68HC12 function prologue.
4342 (m68hc11_frame_chain): Cleanup.
4343
98216c5d
AC
43442002-08-12 Andrew Cagney <cagney@redhat.com>
4345
4346 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4347 declarations.
4348 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4349 (i386_linux_register_raw_size): Delete function.
4350 (i386_linux_init_abi): Update.
4351 * i386-tdep.c (i386_register_raw_size): Delete function.
4352 (i386_register_byte): Delete function.
4353 (i386_gdbarch_init): Update.
4354 (i386_register_size): Delete array.
4355 (i386_register_offset): Delete array.
4356
4357 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4358 (REGISTER_RAW_SIZE): Delete macro.
4359 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4360 (REGISTER_BYTE): Delete macro.
4361
3b19021e
AS
43622002-08-11 Aidan Skinner <aidan@velvet.net>
4363
4364 * ada-lang.c (ada_lookup_partial_symbol)
4365 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4366 prototype names so that grep ^func works properly.
4367
4368 * ada-lang.c (ada_array_element_type)
4369 (ada_lookup_partial_symbol): Fix typos in parameter list.
4370
4371 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4372 Fix prototype names so that grep ^func works properly.
4373
b063e7a2
AC
43742002-08-10 Andrew Cagney <cagney@redhat.com>
4375 Elena Zannoni <ezannoni@redhat.com>
4376 Martin M. Hunt <hunt@redhat.com>
4377
4378 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4379 (build_builtin_type_vec128i): Set the vector bit.
4380 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4381 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4382 (build_builtin_type_vec64): New function.
4383 (build_builtin_type_vec64i): New function.
4384 (build_gdbtypes): Initialize builtin_type_vec64 and
4385 builtin_type_vec64i.
4386
a7e3c2ad
AC
43872002-08-09 Andrew Cagney <cagney@redhat.com>
4388
4389 * regcache.c (regcache_dump): Compare the register offset
4390 with REGISTER_BYTE.
4391 * arch-utils.c (generic_register_byte): New function.
4392 * arch-utils.h (generic_register_byte): Declare.
4393 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4394 * gdbarch.h, gdbarch.c: Regenerate.
4395
af030b9a
AC
43962002-08-09 Andrew Cagney <cagney@redhat.com>
4397
4398 * regcache.c: Include "gdbcmd.h"
4399 (_initialize_regcache): Add commands "maintenance print
4400 registers", "maintenance print raw-registers" and "maintenance
4401 print cooked-registers".
4402 (enum regcache_dump_what): Define.
4403 (dump_endian_bytes): New function.
4404 (regcache_dump): New function.
4405 (regcache_print): New function.
4406 (maintenance_print_registers): New function.
4407 (maintenance_print_raw_registers): New function.
4408 (maintenance_print_cooked_registers): New function.
4409 * Makefile.in (regcache.o): Update dependencies.
4410
cb3d25d1
MS
44112002-08-09 Michael Snyder <msnyder@redhat.com>
4412
4413 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4414 (mips_push_arguments): Correct some comments. Use paddr_nz
4415 for printing addresses in debug output. Replace static
4416 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4417 (mips_n32n64_push_arguments): New function, cloned from
4418 mips_push_arguments and tuned for the n32/n64 ABI.
4419 (mips_push_register): Buffer needs dynamic allocation.
4420 (mips_print_register): Ditto.
4421 (do_gp_register_row): Ditto.
4422 (mips_store_return_value): Ditto.
4423 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4424
2163ab9d
DH
44252002-08-09 Don Howard <dhoward@redhat.com>
4426
4427 * memattr.c (mem_info_command): Print special case of upper bound
4428 as max CORE_ADDR + 1.
4429
b78bcb18
MS
44302002-08-08 Michael Snyder <msnyder@redhat.com>
4431
4432 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4433 returns structs by ref if they're too big to fit in two registers.
4434
ffabd70d
KB
44352002-08-09 Kevin Buettner <kevinb@redhat.com>
4436
4437 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4438 saved regs value.
4439 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4440 mips_find_saved_regs().
4441 (mips_pop_frame): Likewise.
4442
fbcdb4a3
KB
44432002-08-09 Kevin Buettner <kevinb@redhat.com>
4444
4445 * blockframe.c (frame_saved_regs_register_unwind): Revise
4446 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4447 frames are in use.
4448
3c3bea1c
GS
44492002-08-09 Grace Sainsbury <graces@redhat.com>
4450
4451 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4452 T-packets; the 'a' is not taken as a register number.
4453 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4454 (remote_stopped_data_address): New functions; add to target
4455 vector.
4456 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4457 prototypes to match other implementations of this
4458 function. replace integer argument with pointer -- the length
4459 field in the Z-packet is the length of what is pointed to or 1 if
4460 pointer is null. Add to target vector.
4461 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4462 target vector.
4463
4464 From Mark Salter:
4465 * remote.c (remote_wait): Add support to extract optional
4466 watchpoint information from T-packet. Ignore unrecognized
4467 optional info in T-packet.
4468 (remote_async_wait): Ditto.
4469
5d1d95de
CV
44702002-08-09 Corinna Vinschen <vinschen@redhat.com>
4471
4472 * cli/cli-dump.c: Change fopen modes to use binary open modes
4473 as defined in include/fopen-bin.h throughout.
4474
c86b5b38
MS
44752002-08-08 Michael Snyder <msnyder@redhat.com>
4476
4477 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4478
b30590dc
KB
44792002-08-08 Kevin Buettner <kevinb@redhat.com>
4480
4481 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4482 assertion failure by returning early after a warning.
4483
498868ed
KB
44842002-08-08 Kevin Buettner <kevinb@redhat.com>
4485
4486 * mips-tdep.c (mips_find_saved_regs): Make static.
4487 (mips_frame_init_saved_regs): New function.
4488 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4489 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4490 (mips_find_saved_regs): Delete declaration.
4491
b2dd6311
GS
44922002-08-08 Grace Sainsbury <graces@redhat.com>
4493
3c3bea1c
GS
4494 * remote.c (remote_wait, remote_async_wait): Change
4495 thread_num from int to ULONGEST.
4496 (unpack_varlen_hex): Change result parameter from
4497 int * to ULONGEST *.
b2dd6311 4498
ea47855f
AC
44992002-08-08 Andrew Cagney <ac131313@redhat.com>
4500
4501 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4502 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4503 powerpc*-*-*.
4504 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4505
69db8bae
AC
45062002-08-08 Andrew Cagney <cagney@redhat.com>
4507
4508 * gcore.c (override_derive_stack_segment): Delete variable.
4509 (preempt_derive_stack_segment): Delete function.
4510 (derive_stack_segment): Delete function.
4511 (default_derive_stack_segment): Renamed to derive_stack_segment.
4512 (override_derive_heap_segment): Delete variable.
4513 (preempt_derive_heap_segment): Delete function.
4514 (derive_heap_segment): Delete function.
4515 (default_derive_heap_segment): Rename to derive_heap_segment.
4516
cb811fe7
MS
45172002-08-06 Michael Snyder <msnyder@redhat.com>
4518
4519 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4520 * mips-tdep.c (mips_EABI_use_struct_convention,
4521 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4522 New functions. (mips_use_struct_convention): Delete.
4523 (mips_gdbarch_init): set use_gdbarch_convention.
4524
8b389c40
MS
45252002-08-06 Michael Snyder <msnyder@redhat.com>
4526
4527 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4528 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4529 mips_o32_reg_struct_has_addr): New functions.
4530 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4531
5c27f28a
AC
45322002-08-07 Andrew Cagney <ac131313@redhat.com>
4533
4534 * regcache.c (pseudo_register): Delete function.
4535 (fetch_register): Delete function.
4536 (store_register): Delete function.
4537 (regcache_raw_read, legacy_read_register_gen): Use
4538 target_fetch_registers instead of fetch_register.
4539 (legacy_write_register_gen, regcache_raw_write): Use
4540 target_store_register instead of store_register.
4541 (write_register_bytes): Ditto.
4542
4543 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4544 (STORE_PSEUDO_REGISTER): Delete.
4545 * gdbarch.h, gdbarch.c: Regenerate.
4546
5b331675
CV
45472002-08-06 Corinna Vinschen <vinschen@redhat.com>
4548
4549 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4550 write dump file binary.
4551
6acdf5c7
MS
45522002-08-05 Michael Snyder <msnyder@redhat.com>
4553
4554 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4555 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4556 (mips_gdbarch_init): Set N32 target to be mips64.
4557
b2f01c35
KB
45582002-08-06 Kevin Buettner <kevinb@redhat.com>
4559
4560 * frame.c (find_saved_register): Break out of loop once saved
4561 register address is found. Don't mention sparc in loop comment
4562 anymore.
4563
63db5580
KB
45642002-08-06 Kevin Buettner <kevinb@redhat.com>
4565
4566 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4567 mips_default_saved_regsize to 8.
4568
5e34e75e
AC
45692002-08-06 Andrew Cagney <ac131313@redhat.com>
4570
4571 * gcore.c: Do not include <sys/procfs.h>.
4572 * Makefile.in (gcore.o): Update dependencies.
4573
eb4c54a2
AC
45742002-08-06 Andrew Cagney <cagney@redhat.com>
4575
4576 * configure.tgt: Make arc-*-* obsolete.
4577 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4578 * MAINTAINERS: Make arc-elf obsolete.
4579 * arc-tdep.c: Make file obsolete.
4580 * config/arc/arc.mt: Ditto.
4581 * config/arc/tm-arc.h: Ditto.
4582
ced15480
TR
45832002-08-05 Theodore A. Roth <troth@verinet.com>
4584
c1bab85b 4585 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 4586
b4743822
AC
45872002-08-05 Andrew Cagney <ac131313@redhat.com>
4588
4589 * mcore-tdep.c (mcore_gdbarch_init): Use
4590 generic_unwind_get_saved_register instead of
4591 generic_get_saved_register.
4592 * v850-tdep.c (v850_gdbarch_init): Ditto.
4593 * frv-tdep.c (frv_gdbarch_init): Ditto.
4594 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4595 * s390-tdep.c (s390_gdbarch_init): Ditto.
4596 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4597 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4598 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4599
3956d554
JB
46002002-08-05 Joel Brobecker <brobecker@gnat.com>
4601
4602 * objfiles.h: Add missing #include "symfile.h"
4603
4604 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4605
8249c0d6
AC
46062002-08-04 Andrew Cagney <ac131313@redhat.com>
4607
4608 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4609 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4610 of FIELD_BITSIZE.
4611
b9d14705
DJ
46122002-08-04 Daniel Jacobowitz <drow@mvista.com>
4613
4614 * NEWS: Cleanup and nitpick.
4615
dd73b9bb
AC
46162002-08-03 Andrew Cagney <ac131313@redhat.com>
4617
4618 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4619
043a27f8
AC
46202002-08-03 Andrew Cagney <ac131313@redhat.com>
4621
4622 * Makefile.in (gdbtk-bp.o): Update dependencies.
4623 (gdbtk-register.o): Ditto.
4624 (gdbtk-varobj.o): Ditto.
4625
46ce284d
AC
46262002-08-03 Andrew Cagney <cagney@redhat.com>
4627
4628 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4629 m68hc11_fetch_pseudo_register.
4630 (m68hc11_pseudo_register_write): Replace
4631 m68hc11_store_pseudo_register.
4632 (m68hc11_gdbarch_init): Update.
4633
b66d6d2e
AC
4634Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4635
4636 * gdbarch.sh: Include "gdb_string.h".
4637 * gdbarch.c: Regenerate.
4638
4639 * regcache.c: Include "gdb_string.h".
4640 * ax-general.c: Ditto.
4641 * varobj.c: Ditto.
4642 * std-regs.c: Ditto.
4643 * fbsd-proc.c: Ditto.
4644 * thread.c: Ditto.
4645
4646 * Makefile.in (regcache.o): Update dependencies.
4647 (thread.o, gdbarch.o): Ditto.
4648 (ax-general.o, gdbarch.o): Ditto.
4649 (varobj.o, std-regs.o): Ditto.
4650 (fbsd-proc.o): Specify dependencies.
4651
29e1842b
AC
46522002-08-02 Andrew Cagney <cagney@redhat.com>
4653
4654 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4655 regnum.
4656 (regcache_cooked_write): Ditto.
4657
68365089
AC
46582002-08-02 Andrew Cagney <ac131313@redhat.com>
4659
4660 * regcache.c (regcache_cooked_read): New function.
4661 (regcache_cooked_write): New function.
4662 (read_register_gen): Rewrite using regcache_cooked_read.
4663 (write_register_gen): Rewrite using regcache_cooked_write.
4664
4665 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4666 Declare.
4667
d8124050
AC
46682002-08-02 Andrew Cagney <cagney@redhat.com>
4669
4670 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4671 Replace the architecture methods register_read and register_write.
4672 * gdbarch.h, gdbarch.c: Regenerate.
4673 * regcache.c (init_regcache_descr): Update.
4674 (read_register_gen): Update.
4675 (write_register_gen): Update.
4676 (supply_register): Update comment.
4677
4678 * sh-tdep.c (sh_gdbarch_init): Update.
4679 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4680 `regcache' and `gdbarch' parameters. Make `buffer' a void
4681 pointer. Update code.
4682 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4683 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4684 void pointer. Update code.
4685 (sh64_register_write): Delete.
4686 (sh4_register_read): Delete.
4687 (sh64_register_read): Delete.
4688 (sh4_register_write): Delete.
4689 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4690 void pointer, `to' parameter a void pointer.
4691 (sh_sh64_register_convert_to_raw): Ditto.
4692
a6425924
KB
46932002-08-01 Kevin Buettner <kevinb@redhat.com>
4694
4695 * mips-tdep.c (mips_register_virtual_type): Use architecture
4696 invariant return values.
4697
ff5922b5
AC
46982002-08-01 Andrew Cagney <cagney@redhat.com>
4699
4700 * linux-proc.c: Include "gdb_string.h".
4701 * Makefile.in (linux-proc.o): Update dependency list.
4702
32a6503c
KB
47032002-08-01 Kevin Buettner <kevinb@redhat.com>
4704
4705 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4706 comment.
4707
ccaa32c7
GS
47082002-08-01 Grace Sainsbury <graces@redhat.com>
4709
4710 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4711 to_insert_watchpoint, to_remove_watchpoint,
4712 to_stopped_by_watchpoint, to_stopped_data_address,
4713 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4714 target vecctor. Define their corresponding macros so they call
4715 them.
4716
4717 * target.c: Add default and debug versions of for
4718 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4719 to_insert_watchpoint, to_remove_watchpoint,
4720 to_stopped_by_watchpoint, to_stopped_data_address,
4721 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4722
78fde5f8
KB
47232002-08-01 Kevin Buettner <kevinb@redhat.com>
4724
4725 * mips-tdep.c (mips_register_virtual_type): New function.
4726 (mips_gdbarch_init): Register mips_register_virtual_type()
4727 with gdbarch machinery.
4728 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4729 this file instead of tm-bigmips.h.
4730 (MIPS_REGSIZE): Delete this macro.
4731 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4732 multiarch version in mips-tdep.c will be found.
4733
db034ac5
AC
47342002-08-01 Andrew Cagney <cagney@redhat.com>
4735
4736 * NEWS: Menion that CHILL has been made obsolete.
4737
4738 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
4739 * stabsread.c (read_range_type): Ditto.
4740 * gdbtypes.h: Ditto.
4741 * language.c (binop_type_check): Ditto.
4742 (binop_result_type): Ditto.
4743 (integral_type): Ditto.
4744 (character_type): Ditto.
4745 (string_type): Ditto.
4746 (boolean_type): Ditto.
4747 (structured_type): Ditto.
4748 (lang_bool_type): Ditto.
4749 (binop_type_check): Ditto.
4750 * language.h (_LANG_chill): Ditto.
4751 * dwarfread.c (set_cu_language): Ditto.
4752 * dwarfread.c (CHILL_PRODUCER): Ditto.
4753 * dwarfread.c (handle_producer): Ditto.
4754 * expression.h (enum exp_opcode): Ditto.
4755 * eval.c: Ditto for comments.
4756 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4757 * expprint.c (print_subexp): Ditto.
4758 (print_subexp): Ditto.
4759 * valops.c (value_cast): Ditto.
4760 (search_struct_field): Ditto.
4761 * value.h (COERCE_VARYING_ARRAY): Ditto.
4762 * symfile.c (init_filename_language_table): Ditto.
4763 (add_psymbol_with_dem_name_to_list): Ditto.
4764 * valarith.c (value_binop): Ditto.
4765 (value_neg): Ditto.
4766 * valops.c (value_slice): Ditto.
4767 * symtab.h (union language_specific): Ditto.
4768 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4769 (SYMBOL_DEMANGLED_NAME): Ditto.
4770 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4771 * defs.h (enum language): Ditto.
4772 * symtab.c (got_symtab): Ditto.
4773 * utils.c (fprintf_symbol_filtered): Ditto.
4774
4775 * ch-typeprint.c: Make file obsolete.
4776 * ch-valprint.c: Make file obsolete.
4777 * ch-lang.h: Make file obsolete.
4778 * ch-exp.c: Make file obsolete.
4779 * ch-lang.c: Make file obsolete.
4780
4781 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4782 CHILL_LIB.
4783 (TARGET_FLAGS_TO_PASS): Ditto.
4784 (CHILLFLAGS): Obsolete.
4785 (CHILL): Obsolete.
4786 (CHILL_FOR_TARGET): Obsolete.
4787 (CHILL_LIB): Obsolete.
4788 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4789 ch-valprint.c.
4790 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4791 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4792 ch-lang.o.
4793 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4794 targets.
4795
8aaf0b47
JB
47962002-07-31 Joel Brobecker <brobecker@gnat.com>
4797
4798 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4799 This does not change anything at the moment, but will be helpful
4800 later when full Ada support is integrated.
4801
f3a7b3a5
KB
48022002-07-31 Kevin Buettner <kevinb@redhat.com>
4803
4804 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4805 help message.
4806
fb850278
KB
48072002-07-31 Kevin Buettner <kevinb@redhat.com>
4808
4809 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4810 and save it in a local variable. Use variable in later test.
4811
e3bddbfa
KB
48122002-07-31 Kevin Buettner <kevinb@redhat.com>
4813
4814 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4815 test. (Thanks to Daniel Jacobowitz.)
4816
28d169de
KB
48172002-07-31 Kevin Buettner <kevinb@redhat.com>
4818
4819 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4820 (mips_abi_strings): Add "n64".
4821 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4822
7fe7e44e
KB
48232002-07-31 Kevin Buettner <kevinb@redhat.com>
4824
4825 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4826 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4827
c6caf090
KB
48282002-07-31 Kevin Buettner <kevinb@redhat.com>
4829
4830 * utils.c (host_pointer_to_address, address_to_host_pointer):
4831 Use gdb_assert() instead of explicit call to internal_error().
4832
c41669e0
KB
48332002-07-30 Kevin Buettner <kevinb@redhat.com>
4834
4835 * Makefile.in (rs6000-nat.o): Update dependencies.
4836
4837 From Nicholas Duffek:
4838 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4839 (aix-thread.o): New rule.
4840 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4841 * config/powerpc/aix432.mh: New file.
4842
2fda4977
DJ
48432002-07-30 Daniel Jacobowitz <drow@mvista.com>
4844
4845 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4846 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4847 (fetch_core_registers, ppc_linux_supply_gregset)
4848 (ppc_linux_supply_fpregset): New functions.
4849 (ppc_linux_regset_core_fns): New.
4850 (_initialize_ppc_linux_tdep): Call add_core_fns.
4851 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4852 and ppc_linux_supply_gregset.
4853 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4854 (supply_fpregset): Call ppc_linux_supply_fpregset.
4855 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4856 corelow.o.
4857 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4858
729051e6
DJ
48592002-07-30 Daniel Jacobowitz <drow@mvista.com>
4860
4861 * symtab.c (lookup_symbol): Demangle before lowercasing.
4862
5f8a3188
AC
48632002-07-30 Andrew Cagney <ac131313@redhat.com>
4864
4865 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4866 declaration.
4867 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4868 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4869 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4870 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4871 "gdb_string.h".
4872 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4873 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4874 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4875 (avr-tdep.o, mon960-rom.o): Ditto.
4876 (aout_stabs_gnu_h): Define.
4877 (symtab_h): Remove $(gdb_obstack_h).
4878
67f07146
JB
48792002-07-30 Jim Blandy <jimb@redhat.com>
4880
4881 Patch from David Carlton <carlton@math.stanford.edu>:
4882 * gdbinit.in: Move the `dir' commands that add GDB's own source
4883 directory to the search path to the end, so that the `gdb' source
4884 directory will be searched first.
4885
04ea0df1
AC
48862002-07-29 Andrew Cagney <ac131313@redhat.com>
4887
4888 * gdb_obstack.h: New file.
4889 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4890 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4891 * objfiles.h: Include "gdb_obstack.h".
4892 * Makefile.in (gdb_obstack_h): Define.
4893 (symtab_h): Add $(gdb_obstack_h).
4894 (objfiles_h): Add $(gdb_obstack_h).
4895
4896 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4897 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4898 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4899 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4900 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4901 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4902 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4903 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4904
4905 * Makefile.in (bcache.o): Update dependencies.
4906 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4907 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4908 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4909 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4910 (stabsread.o, symfile.o, symmisc.o): Ditto.
4911 (symtab.o, typeprint.o, macroexp.o): Ditto.
4912 (macrotab.o, mdebugread.o): Ditto.
4913 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4914 (coff_ecoff_h, aout_aout64_h): Define.
4915 (aout_stabs_gnu_h, libaout_h): Define.
4916
d138e37a
AC
49172002-07-29 Andrew Cagney <cagney@redhat.com>
4918
4919 * regcache.c (struct regcache_descr): Rename nr_registers to
4920 nr_cooked_registers. Revise comments describing the structure
4921 member fields.
4922 (init_regcache_descr): Update.
4923 (init_legacy_regcache_descr): Update.
4924 (read_register_gen, write_register_gen): When a cooked register in
4925 the raw register range, directly access the value from the raw
4926 register cache.
4927
460e6ec3
AC
49282002-07-29 Andrew Cagney <ac131313@redhat.com>
4929
4930 * z8k-tdep.c: Do not include "obstack.h".
4931 * h8300-tdep.c, h8500-tdep.c: Ditto.
4932 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4933 * valprint.c, v850-tdep.c: Ditto.
4934 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4935 * mn10200-tdep.c: Ditto.
4936
4937 * Makefile.in (z8k-tdep.o): Update dependencies.
4938 (m68hc11-tdep.o, valprint.o): Ditto.
4939 (v850-tdep.o, d10v-tdep.o): Ditto.
4940 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4941 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4942 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4943 (sh_opc_h, gdb_sim_sh_h): Define.
4944 (elf_sh_h, elf_bfd_h): Define.
4945 (opcode_m68hc11_h): Define.
4946 (OPCODES_SRC, OPCODES_DIR): define.
4947 (OPCODES): Use $(OPCODES_DIR).
4948 (gdb_sim_d10v_h): Rename sim_d10v_h.
4949 (gdb_sim_arm_h): Rename sim_arm_h.
4950
790c9cf0
KB
49512002-07-26 Kevin Buettner <kevinb@redhat.com>
4952
4953 * utils.c (host_pointer_to_address, address_to_host_pointer):
4954 Change internal_error() message to indicate function responsible
4955 for the error.
4956
9647fa49
KB
49572002-07-26 Kevin Buettner <kevinb@redhat.com>
4958
4959 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4960 calls to local_hex_string_custom().
4961
dabbe2c0
KB
49622002-07-26 Kevin Buettner <kevinb@redhat.com>
4963
4964 * irix5-nat.c: Move IRIX shared library support from here...
4965 * solib-irix.c: ...to here. Revised substantially to work with
4966 generic solib framework.
4967
b96d0a4e
KB
4968 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4969 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4970 * mips-irix-tdep.c: New file.
4971
313fb2f6
KB
4972 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4973 (mips-irix-tdep.o, solib-irix.o): New rules.
4974 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4975 solib-irix.o.
4976 * config/mips/irix6.mt (TDEPFILES): Likewise.
4977 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4978
ab2eaf26
KB
49792002-07-26 Kevin Buettner <kevinb@redhat.com>
4980
177e4768 4981 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
4982 disabled (via ``#if 0'') includes.
4983
7244546a
KB
49842002-07-26 Kevin Buettner <kevinb@redhat.com>
4985
4986 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4987 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4988 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4989 Add support for the fpscr register.
4990 * rs6000-nat.c (regmap, fetch_inferior_registers)
4991 (store_inferior_registers, fetch_core_registers): Likewise.
4992
dd7be90a
KB
49932002-07-26 Kevin Buettner <kevinb@redhat.com>
4994
4995 * rs6000-nat.c (language.h): Include.
4996 (special_regs): Delete this array.
4997 (regmap): New function.
4998 (fetch_register, store_register): Use regmap() to map gdb
4999 register numbers to ptrace register numbers. Also, use
5000 outputs from regmap() to make decisions regarding type of
5001 ptrace() call to make. In particular, don't compare against
5002 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5003 (fetch_inferior_registers, store_inferior_registers): Where
5004 possible, obtain register numbers from tdep struct. Don't
5005 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5006 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5007 (LAST_UISA_SP_REGNUM): Delete.
5008
11bf77db
KB
50092002-07-25 Kevin Buettner <kevinb@redhat.com>
5010
5011 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
5012 (fetch_registers, store_register, fetch_core_registers): Don't
5013 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
5014 regcache_collect() as appropriate.
5015 (find_toc_address): Format hex address with local_hex_string().
5016
06afebeb
AC
50172002-07-25 Andrew Cagney <ac131313@redhat.com>
5018
5019 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5020 bfd/elf32-frv.c.
5021
8c554d79
TT
50222002-07-24 Tom Tromey <tromey@redhat.com>
5023
5024 * jv-exp.y: Marked all strings with _().
5025 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5026 internal_error.
5027 (MethodInvocation, CastExpression, parse_number, yyerror,
5028 java_type_from_name, push_expression_name, yylex): Typo fixes.
5029
e4c242d9
DJ
50302002-07-24 Daniel Jacobowitz <drow@mvista.com>
5031
5032 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5033 (tee_file_flush, tee_file_write, tee_file_fputs)
5034 (tee_file_isatty): New.
5035 * ui-file.h (tee_file_new): Add prototype.
5036
ebf56fd3
AS
50372002-07-24 Aidan Skinner <aidan@velvet.net>
5038
5039 * ada-lang.c: Change k&r style function definitions to prototyped
5040 form.
5041 * ada-typeprint.c: Change k&r style function definitions to prototyped
5042 form.
5043 * ada-valprint.c: Change k&r style function definitions to prototyped
5044 form.
5045
7fb623f7
AC
50462002-07-24 Andrew Cagney <cagney@redhat.com>
5047
5048 * README: Remove reference to remote-bug.
5049 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5050 remote-bug.c.
5051 (m88k-nat.o): Delete rule.
5052 (m88k-tdep.o): Delete rule.
5053 (remote-bug.o): Delete rule.
5054 * MAINTAINERS: Mark as obsolete.
5055 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5056 * m88k-tdep.c: Make file obsolete.
5057 * config/m88k/m88k.mh: Ditto.
5058 * config/m88k/delta88v4.mh: Ditto.
5059 * config/m88k/delta88v4.mt: Ditto.
5060 * config/m88k/delta88.mt: Ditto.
5061 * config/m88k/delta88.mh: Ditto.
5062 * remote-bug.c: Ditto.
5063 * config/m88k/tm-delta88.h: Ditto.
5064 * config/m88k/nm-delta88v4.h: Ditto.
5065 * config/m88k/xm-delta88.h: Ditto.
5066 * config/m88k/xm-dgux.h: Ditto.
5067 * config/m88k/tm-m88k.h: Ditto.
5068 * config/m88k/nm-m88k.h: Ditto.
5069 * config/m88k/tm-delta88v4.h: Ditto.
5070 * m88k-nat.c: Ditto.
5071 * cxux-nat.c: Ditto.
5072 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5073 and m88*-*-* obsolete.
5074 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5075 m88*-*-* obsolete.
5076
37611a2b
AC
50772002-07-24 Andrew Cagney <cagney@redhat.com>
5078
5079 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5080 constant. Same for local pointer variables.
5081 (extract_signed_integer): Ditto.
5082 * defs.h (extract_unsigned_integer): Update.
5083 (extract_signed_integer): Update.
5084
1aaa5f99
AC
50852002-07-24 Andrew Cagney <cagney@redhat.com>
5086
5087 * regcache.c (regcache_raw_write): Change buf parameter to a
5088 constant void pointer.
5089 (regcache_raw_read): Change buf parameter to a void pointer.
5090 (legacy_write_register_gen): Change myaddr parameter a constant
5091 void pointer.
5092 (supply_register): Change val parameter to a const void pointer.
5093 * regcache.h (regcache_raw_write): Update declaration.
5094 (regcache_raw_read): Update declaration.
5095 (supply_register): Update declaration.
5096
b4f5539f
TT
50972002-07-24 Tom Tromey <tromey@redhat.com>
5098
5099 * defs.h (gdb_readline_wrapper): Declare.
5100 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5101 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5102 * top.c (gdb_readline_wrapper): New function.
5103 (command_line_input): Use it.
5104
0818c12a
AC
51052002-07-24 Andrew Cagney <cagney@redhat.com>
5106
5107 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5108 regcache_read and regcache_write.
5109 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5110 * regcache.c: Update.
5111 * sh-tdep.c (sh64_push_arguments): Update comment.
5112 (sh_pseudo_register_read): Update.
5113 (sh_pseudo_register_write): Update.
5114 (sh4_register_read): Update.
5115 (sh4_register_write): Update.
5116 (sh64_pseudo_register_read): Update.
5117 (sh64_pseudo_register_write): Update.
5118 (sh64_register_read): Update.
5119 (sh64_register_write): Update.
5120 * i386-tdep.c (i386_extract_return_value): Update.
5121 (i386_extract_struct_value_address): Update.
5122 (i386_extract_return_value): Update.
5123 * blockframe.c (generic_read_register_dummy): Update.
5124 (generic_call_dummy_register_unwind): Update
5125 * infrun.c (write_inferior_status_register): Update.
5126
f7321c06
JB
51272002-07-23 Jim Blandy <jimb@redhat.com>
5128
5129 * parser-defs.h (expression_context_pc): Make this extern.
5130 (Thanks to Michael Snyder.)
5131
2037aebb
AC
51322002-07-23 Andrew Cagney <ac131313@redhat.com>
5133
5134 GDB 5.2.1 released from 5.2 branch.
5135 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5136 * README: Update to mention 5.2.1.
5137
66504d44
MS
51382002-07-23 Mark Salter <msalter@redhat.com>
5139
5140 * remote.c (remote_read_bytes): Fix check for error.
5141
27bae383
KB
51422002-07-22 Kevin Buettner <kevinb@redhat.com>
5143
5144 * aix-thread.c (language.h): Include.
5145 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5146 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5147 Print newlines at end of debug messages.
5148 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5149 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5150
51512002-07-22 Kevin Buettner <kevinb@redhat.com>
5152
5153 * aix-thread.c (ppc-tdep.h): Include.
5154 (special_register_p): New function.
5155 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5156 (store_regs_user_thread): Use register number information from
5157 gdbarch_tdep struct instead of hardcoded offsets relative to
5158 FIRST_UISA_SP_REGNUM.
5159 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5160 special_register_p() instead of using FPLAST_REGNUM and
5161 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5162 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5163 will be MQ's register number.
5164
51652002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
5166
5167 * aix-thread.c (ops): Rename to aix_thread_ops.
5168 (base_ops): Rename to base_target.
5169 (ops_attach): Rename to aix_thread_attach.
5170 (ops_detach): Rename to aix_thread_detach.
5171 (ops_resume): Rename to aix_thread_detach.
5172 (ops_wait): Rename to aix_thread_wait.
5173 (ops_kill): Rename to aix_thread_kill.
5174 (init_ops): Rename to init_aix_thread_ops.
5175 (ops_fetch_register): Rename to aix_thread_fetch_register.
5176 (ops_store_register): Rename to aix_thread_store_register.
5177 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5178 (ops_thread_alive): Rename to aix_thread_thread_alive.
5179 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5180 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5181 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5182 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5183 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5184 (store_regs_lib): Rename to store_regs_user_thread.
5185 (store_regs_kern): Rename to store_regs_kernel_thread.
5186
27bae383 51872002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
5188
5189 * aix-thread.c (ops_prepare_to_store): Eliminate.
5190 (init_ops): Don't initialize ops.prepare_to_store.
5191 (store_regs_kern): Pre-fetch register buffers from child,
5192 because some registers may not be in the cache. Copy
5193 regs from register cache only if they are cached.
5194 (store_regs_lib): Copy regs from register cache only
5195 if they are cached.
5196 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5197 fill_gprs64): Ditto.
5198
61c5da0b
KB
51992002-07-22 Kevin Buettner <kevinb@redhat.com>
5200
5201 * aix-thread.c (gdb_assert.h): Include.
5202 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5203 register sizes (from register cache) match size of buffer holding
5204 register data.
5205 (fill_sprs32): Change parameter types to match those in the ptrace()
5206 buffer.
5207 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5208 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5209
52102002-07-22 Michael Snyder <msnyder@redhat.com>
5211
5212 * aix-thread.c (supply_sprs64): Cosmetic change.
5213 (supply_sprs32): Cosmetic change.
5214 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5215 (fill_sprs64): Use regcache_collect instead of read_register.
5216 (store_regs_lib): Use regcache_collect instead of
5217 read_register. Use fill_sprs32 instead of fill_sprs64,
5218 if debugging a 32-bit architecture.
5219 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5220 out of the register cache, instead of passing a pointer into
5221 the register cache directly to ptrace. Use regcache_collect
5222 insteaad of read_register.
5223 (ops_prepare_to_store): Use target_read_registers instead
5224 of read_register_bytes.
5225
36479eb1
AS
52262002-07-20 Aidan Skinner <aidan@velvet.net>
5227
5228 * MAINTAINERS: Add self under write after approval.
5229
80ae6ee2
AS
52302002-07-20 Aidan Skinner <aidan@velvet.net>
5231
5232 * ada-tasks.c: Change k&r style function definitions to prototyped
5233 form.
5234
8a8ab2b9
AC
52352002-07-19 Andrew Cagney <ac131313@redhat.com>
5236
5237 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5238 * x86-64-tdep.c: Include "objfiles.h".
5239 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5240 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5241
fb16b900
ML
52422002-07-17 Michal Ludvig <michal@suse.cz>
5243
5244 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5245 (update_context): Initialise cfa variable.
5246
0fe7bf7b
MS
52472002-07-17 Michael Snyder <msnyder@redhat.com>
5248
5249 * aix-thread.c: Shorten some long lines.
5250 Bring comments into line with code spec.
5251
488f131b
JB
52522002-07-18 Joel Brobecker <brobecker@gnat.com>
5253
5254 * infrun.c: Re-indent using gdb_indent.sh.
5255
46c415d2
JB
52562002-07-18 Joel Brobecker <brobecker@gnat.com>
5257
5258 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5259 Leave the indentation temporarily untouched, to minimize the diffs.
5260
cdecafbe
EZ
52612002-07-18 Elena Zannoni <ezannoni@redhat.com>
5262
5263 * stabsread.c: Make os9k sections of the code obsolete,
5264 for real this time.
5265 * stabsread.h: Make os9k sections of the code obsolete.
5266
7b6aa020
ML
52672002-07-18 Michal Ludvig <mludvig@suse.cz>
5268
09ec9b38
ML
5269 * linux-low.c (regsets_store_inferior_registers): Add free()
5270 at the end of a loop to prevent memory leak.
5271 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5272 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5273 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5274 line a comment.
4894ac5d 5275 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5276
233282cd
JB
52772002-07-17 Jim Blandy <jimb@redhat.com>
5278
5279 * macrocmd.c (info_macro_command): Remove newline from error
5280 message.
5281
7b6aa020 52822002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
5283
5284 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5285 (sh_gdbarch_init): Use it for sh-dsp.
5286
f7ef9339
KB
52872002-07-16 Kevin Buettner <kevinb@redhat.com>
5288
5289 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5290 64-bit DWARF2 format.
5291
8dd72958
JB
52922002-07-16 Joel Brobecker <brobecker@gnat.com>
5293
5294 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5295 <sys/proc.h> when not available.
5296
a99a9e1b
AC
52972002-07-16 Andrew Cagney <ac131313@redhat.com>
5298
5299 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5300 * stabsread.c: Make os9k sections of the code obsolete.
5301 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5302 * config/i386/i386os9k.mt: Make file obsolete.
5303 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5304 (COMMON_OBS): Remove os9kread.o
5305 (SFILES): Remove os9kread.c.
5306 (os9kread.o, remote-os9k.o): Make target obsolete.
5307 * remote-os9k.c: Make file obsolete.
5308 * os9kread.c: Make file obsolete.
5309 * Makefile.in
5310
7a3085c1
AC
53112002-07-16 Andrew Cagney <ac131313@redhat.com>
5312
5313 * NEWS: Mention that the FR30 has been made obsolete.
5314 * fr30-tdep.c: Make file obsolete.
5315 * config/fr30/tm-fr30.h: Ditto.
5316 * config/fr30/fr30.mt: Ditto.
5317 * configure.tgt: Make fr30-*-elf obsolete.
5318 * MAINTAINERS: Make fr30-elf obsolete.
5319
28a93f5a
PM
53202002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5321
5322 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5323 found is not inside a section.
5324
be006b8b
KB
53252002-07-15 Kevin Buettner <kevinb@redhat.com>
5326
5327 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5328 strerror().
5329 (pdc_realloc): Use xrealloc() instead of realloc().
5330
14fa3751
KB
53312002-07-15 Kevin Buettner <kevinb@redhat.com>
5332
5333 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5334 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5335 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5336 macros.
5337
42cc437f
KB
53382002-07-15 Kevin Buettner <kevinb@redhat.com>
5339
5340 * aix-thread.c (ptrace_check): Eliminate goto.
5341 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5342 problem.
5343
8e2c28d4
KB
53442002-07-15 Kevin Buettner <kevinb@redhat.com>
5345
5346 * aix-thread.c (gdbcmd.h): Include.
5347 (DEBUG, DBG, DBG2, dbg): Eliminate.
5348 (debug_aix_thread): New static global.
5349 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5350 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5351 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5352 invocations to DBG and DBG2 macros to test against
5353 ``debug_aix_thread'' and call fprintf_unfiltered().
5354 (_initialize_aix_thread): Add new command "set debug aix-thread".
5355
30413464
AC
53562002-07-15 Andrew Cagney <ac131313@redhat.com>
5357
5358 From Gerhard Tonn <TON@de.ibm.com>:
5359 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5360 instead of supply_register.
5361
7c43edc1
AC
53622002-07-15 Andrew Cagney <ac131313@redhat.com>
5363
5364 * dwarf2cfi.c: Include "gdb_assert.h".
5365 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5366 non-NULL.
5367 (update_context): Do not use __func__. Add missing ``break''.
5368 (update_context): Do not use __func__.
5369
9364a0ef
EZ
53702002-07-15 Elena Zannoni <ezannoni@redhat.com>
5371
5372 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5373 and its setting. Set gdbarch instruction printing functions
5374 directly. For non-rs6000 case use new function
5375 gdb_print_insn_powerpc.
5376 (gdb_print_insn_powerpc): New function.
5377
3fbeef0b
AC
53782002-07-13 Andrew Cagney <ac131313@redhat.com>
5379
92eb23c5 5380 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
5381 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5382 * configure.tgt: Mark d30v-*-* as obsolete.
5383 * d30v-tdep.c: Mark file as obsolete.
5384 * config/d30v/d30v.mt: Ditto.
5385 * config/d30v/tm-d30v.h: Ditto.
5386
aacb1f0a
AS
53872002-07-13 Aidan Skinner <aidan@velvet.net>
5388
5389 * ada-tasks.c (add_task_entry): replace calls to
5390 malloc() with xmalloc
5391 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5392
5393 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5394 ada_finish_decode_line_1, all_sals_for_line
5395 ada_breakpoint_rewrite): replace calls to free() with xfree()
5396
c11d79f2
KB
53972002-07-12 Kevin Buettner <kevinb@redhat.com>
5398
5399 From Nicholas Duffek (with minor changes by Martin Hunt,
5400 Louis Hamilton, and Kevin Buettner):
5401 * aix-thread.c: New file.
5402
8e19ed76
PS
54032002-07-12 Petr Sorfa <petrs@caldera.com>
5404
5405 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5406 complaint for invalid attribute class or form.
5407 (read_func_scope): DW_AT_frame_base
5408 better handling of DW_AT_block*.
5409 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5410 better handling of DW_AT_block*.
5411 (read_common_block): DW_AT_location
5412 better handling of DW_AT_block*.
5413 (read_partial_die): DW_AT_location better handling
5414 of DW_AT_block*.
5415 (new_symbol): DW_AT_external better handling of
5416 DW_AT_block*. Proper initialization of variable
5417 "addr".
5418 (attr_form_is_block): New function that returns true
5419 if the attribute's form is of DW_FORM_block*.
5420
295401f7
DJ
54212002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5422
5423 * valops.c (find_method_list): Remove comment about
5424 removed STATIC_MEMFUNCP argument.
5425 (value_find_oload_method_list): Likewise.
5426
e42dc924
KB
54272002-07-12 Kevin Buettner <kevinb@redhat.com>
5428
5429 From Nicholas Duffek:
5430 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5431 target_new_objfile_hook.
5432
6904b546
KB
54332002-07-12 Kevin Buettner <kevinb@redhat.com>
5434
5435 From Nicholas Duffek:
5436 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5437 csect.
5438
53fe9346
AC
54392002-07-12 Andrew Cagney <cagney@redhat.com>
5440
5441 * MAINTAINERS: Mention --enable-sim-build-warnings.
5442 (m68hc11-elf): Disable sim build warnings.
5443 (m32r-elf): Mark as broken obsolete candidate.
5444 (x86_64-linux-gnu): Mark as buildable with -Werror.
5445 (arm-elf): Change -w to ``,'' which enables warnings but not
5446 -Werror.
5447
af5f3db6
AC
54482002-07-12 Andrew Cagney <ac131313@redhat.com>
5449
5450 * bcache.h: Update copyright.
5451 (struct bstring, struct bcache): Move definition to "bcache.c".
5452 Replaced by opaque declaration.
5453 (bcache_xfree): Replace free_bcache.
5454 (bcache_xmalloc, bcache_memory_used): Declare.
5455
5456 * bcache.c: Update copyright.
5457 (struct bstring, struct bcache): Moved to here from "bcache.h".
5458 Update comments.
5459 (bcache_xmalloc, bcache_memory_used): New functions.
5460 (bcache_xfree): Replace function free_bcache.
5461
5462 * Makefile.in (objfiles.o): Add $(bcache_h).
5463 (objfiles_h): Remove $(bcache_h).
5464 (symfile.o): Add $(bcache_h).
5465
5466 * symmisc.c: Update copyright.
5467 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5468 (print_objfile_statistics): Use bcache_memory_used.
5469
5470 * symfile.c: Include "bcache.h".
5471 (reread_symbols): Use bcache_xfree.
5472 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5473 (add_psymbol_to_list): Pass psymbol_cache by value.
5474 (add_psymbol_with_dem_name_to_list): Ditto.
5475
5476 * objfiles.h: Update copyright.
5477 (struct bcache): Declare opaque. Do not include "bcache.h".
5478 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5479 bcache'' pointers.
5480 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5481
5482 * objfiles.c: Include "bcache.h". Update copyright.
5483 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5484 macro_cache.
5485 (free_objfile): Use bcache_xfree.
5486
444199e7
GS
54872002-07-11 Grace Sainsbury <graces@redhat.com>
5488
5489 * monitor.c (monitor_fetch_register): Make name a constant.
5490 (monitor_store_register): Same.
5491
261397f8
DJ
54922002-07-11 Daniel Jacobowitz <drow@mvista.com>
5493
5494 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5495 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5496 (finish_block) For non-function blocks, hash the symbol table. For
5497 function blocks, mark the symbol table as unhashed.
5498 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5499 (msymbol_hash_iw): Likewise.
5500 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5501 value.
5502 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5503 (lookup_minimal_symbol): Likewise for both.
5504 * symtab.h (struct block): Add `hashtable' flag. Comment the
5505 hashtable.
5506 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5507 (ALL_BLOCK_SYMBOLS): Update.
5508 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5509 (struct symbol): Add `hash_next' pointer.
5510 * symtab.c (lookup_block_symbol): Search using the hash table when
5511 possible.
5512 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5513 (search_symbols, find_addr_symbol): Likewise.
5514
5515 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5516 (read_dst_symtab): Likewise.
5517 * jv-lang.c (get_java_class_symtab): Likewise.
5518 * mdebugread.c: Include "gdb_assert.h".
5519 (shrink_block): Assert that the block being modified is not hashed.
5520 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5521 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5522 symbols.
5523 (dump_symtab): Recognize hashed blocks.
5524 * printcmd.c (print_frame_args): Assert that function blocks do not
5525 have hashed symbol tables.
5526 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5527 (fill_in_ada_prototype, debug_print_block): Likewise.
5528 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5529
6f0eaa01
CV
55302002-07-11 Corinna Vinschen <vinschen@redhat.com>
5531
5532 * stack.c (print_frame): Use result of frame_address_in_block()
5533 instead of fi->pc when evaluating symbols.
5534 (backtrace_command_1): Ditto.
5535
a208b0cb
AC
55362002-07-11 Andrew Cagney <cagney@redhat.com>
5537
5538 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5539 Make static.
5540
5541 * arm-tdep.c (arm_register_name): Make return type constant.
5542
a6b6b089
AC
55432002-07-10 Andrew Cagney <ac131313@redhat.com>
5544
5ae5f592
AC
5545 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5546 prototype.
5547 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5548 * s390-tdep.c (s390_fp_regnum): Ditto.
5549 (s390_read_fp): Ditto.
5550 (s390_pop_frame): Ditto.
5551 (_initialize_s390_tdep): Ditto.
5552 * remote.c (get_remote_state): Ditto.
5553 * procfs.c (mappingflags): Ditto.
5554 * memattr.c (_initialize_mem): Ditto.
5555 * mcore-tdep.c (mcore_pop_frame): Ditto.
5556 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5557 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5558 * language.c (set_case_str): Ditto.
5559 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5560 * frv-tdep.c (new_variant): Ditto.
5561 (frv_stopped_data_address): Ditto.
5562 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5563 (context_alloc): Ditto.
5564 (frame_state_alloc): Ditto.
5565 (unwind_tmp_obstack_init): Ditto.
5566 (unwind_tmp_obstack_free): Ditto.
5567 (cfi_read_fp): Ditto.
5568 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5569 (cris_pop_frame): Ditto.
5570 * c-lang.c (scanning_macro_expansion): Ditto.
5571 (finished_macro_expansion): Ditto.
5572 (c_preprocess_and_parse): Ditto.
5573 * gdbarch.sh: Ditto.
5574 * gdbarch.h, gdbarch.c: Regenerate.
5575 * config/mn10200/tm-mn10200.h: Adjust indentation.
5576 * target.c: Adjust indentation.
5577 * symtab.h: Adjust indentation.
5578 * stabsread.h: Adjust indentation.
5579 * remote-es.c: Adjust indentation.
5580 * os9kread.c: Adjust indentation.
5581
55822002-07-10 Andrew Cagney <ac131313@redhat.com>
5583
a6b6b089
AC
5584 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5585 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5586
a1789893
GS
55872002-07-10 Grace Sainsbury <graces@redhat.com>
5588
5589 * NEWS: Mention m68k, mcore multi-arching.
5590 * MAINTAINERS: Change status of m68k, mcore to reflect
5591 multi-arching.
5592
02f0d45d
DJ
55932002-07-10 Daniel Jacobowitz <drow@mvista.com>
5594
5595 * valops.c (find_overload_match): Free oload_syms.
5596
f15f768e
JB
55972002-07-09 Joel Brobecker <brobecker@gnat.com>
5598
5599 Define HAVE_SYS_PROC_H if sys/proc.h exists
5600 * configure.in: Add check for sys/proc.h
5601 * config.in: Regenerate.
5602 * configure: Regenerate.
5603
902a7139
GS
56042002-07-09 Grace Sainsbury <graces@redhat.com>
5605
5606 * config/m68k/tm-m68k.h: Remove macros wrapped in
5607 #if !GDB_MULTI_ARCH.
5608
a534e424
AC
56092002-07-08 Andrew Cagney <ac131313@redhat.com>
5610
5611 * config.in, configure: Regenerate.
5612
9b94f7bf
MK
56132002-07-08 Mark Kettenis <kettenis@gnu.org>
5614
5615 * dwarf2cfi.c: Include "gcore.h".
5616 (execute_stack_op): Fix implementation of the
5617 DW_OP_deref and DW_OP_deref_size operators by letting do their
5618 lookup in the target.
5619
1d34db41
MK
56202002-07-07 Mark Kettenis <kettenis@gnu.org>
5621
5622 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5623 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5624 tdep->sc_sp_offset.
5625
79d5b63a
DJ
56262002-07-05 Daniel Jacobowitz <drow@mvista.com>
5627
5628 Fix PR gdb/595, gdb/602
5629 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5630 Don't call value_cast, just read the vtable pointer; update comments
5631 to match.
5632
3bb912e8
GS
56332002-07-05 Grace Sainsbury <graces@redhat.com>
5634
5635 * config/mcore/tm-mcore.h: Remove file.
5636 * config/mcore/mcore.mt: Remove definition of TM_FILE
5637 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5638
ca39387d
MK
56392002-07-05 Mark Kettenis <kettenis@gnu.org>
5640
5641 * i386bsd-tdep.c: Include "gdb_string.h".
5642
efdc1108
GS
56432002-07-04 Grace Sainsbury <graces@redhat.com>
5644
5645 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5646 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5647 mcore-tdep.
5648 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5649 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5650 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5651 (RETVAL_REGNUM): Move macros from tm-mcore.h
5652 (mcore_reg_struct_has_addr): New function.
5653 (mcore_gdbarch_init): Added initializations for the macros removed
5654 from tm-mcore.h.
5655
bb21884d
MK
56562002-07-04 Mark Kettenis <kettenis@gnu.org>
5657
5658 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5659 traditonal string branding within the ELF header.
5660
228c6d41
DJ
56612002-07-04 Daniel Jacobowitz <drow@mvista.com>
5662
5663 * symtab.c (remove_params): New function.
5664 (make_symbol_overload_list): Use it instead of cplus_demangle.
5665 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5666
2404952e
MK
56672002-07-04 Mark Kettenis <kettenis@gnu.org>
5668
e5e4acad
MK
5669 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5670
baadce09
MK
5671 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5672 New variables.
5673 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5674 and tdep->sigtramp_end.
5675 * i386obsd-nat.c: New file.
5676 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5677
2404952e
MK
5678 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5679 Don't call get_current_frame().
5680
9b4f1ba7
PM
56812002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5682
5683 * i386-nat.c (child_post_startup_inferior): New function
5684 calling i386_cleanup_dregs if
5685 I386_USE_GENERIC_WATCHPOINTS is defined.
5686 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5687 conditional to acknowledge that i386-nat.c has its
5688 own child_post_startup_inferior function.
5689
c0d1d883
MK
56902002-07-04 Mark Kettenis <kettenis@gnu.org>
5691
00f8375e
MK
5692 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5693 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5694 instead of MAX_REGISTER_RAW_SIZE.
5695 (i386_extract_return_value, i386_extract_struct_value_address):
5696 Convert to use regcache.
5697 (i386_gdbarch_init): Set max_register_raw_size and
5698 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5699 Set extract_return_value and extract_struct_value_address instead
5700 of their deprecated variants.
5701
c0d1d883
MK
5702 Convert i386 target to generic dummy frames.
5703 * i386-tdep.c: Include "symfile.h".
5704 (i386_frameless_signal_p): Consider a function to be frameless if
5705 the pc points at the first instruction of the function.
5706 (i386_frame_chain): Handle (generic) call dummies.
5707 (i386_frame_saved_pc): Likewise.
5708 (i386_frame_init_saved_regs): Remove code dealing with call
5709 dummies on the stack.
5710 (i386_push_dummy_frame): Removed.
5711 (i386_call_dummy_words): Removed.
5712 (i386_fix_call_dummy): Removed.
5713 (i386_push_return_address): New function.
5714 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5715 parameter, and don't call get_current_frame.
5716 (i386_pop_frame): New function.
5717 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5718 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5719 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5720 call_dummy_length to 0, set call_dummy_words to NULL, set
5721 sizeof_call_dummy_words to 0, set fix_call_dummy to
5722 generic_fix_call_dummy, set pc_in_call_dummy to
5723 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5724 generic_push_dummy_frame, set push_return_address to
5725 i386_push_return_address and set frame_chain_valid to
5726 generic_file_frame_chain_valid.
5727
049ee0e4
AC
57282002-07-03 Andrew Cagney <ac131313@redhat.com>
5729
5730 * gdbarch.sh (struct regcache): Add opaque declaration.
5731 (EXTRACT_RETURN_VALUE): New architecture method.
5732 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5733 * gdbarch.h, gdbarch.c: Regenerate.
5734 * arch-utils.c (legacy_extract_return_value): New function.
5735 * arch-utils.h (legacy_extract_return_value): Declare.
5736 * values.c (value_being_returned): Re-enable code handling
5737 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5738 deprecated_grub_regcache_for_registers call to block handling
5739 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5740 (EXTRACT_RETURN_VALUE): Do not define.
5741
4e0d9804
GS
57422002-07-03 Grace Sainsbury <graces@redhat.com>
5743
5744 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5745 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5746 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5747 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5748 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5749 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5750 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5751 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5752 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5753 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5754 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5755 argument so the function fits the prototype in the architecture
5756 vector.
5757 (mcore_pop_frame): Remove argument so the function fits the
5758 prototype. Use get_current_frame instead of the argument.
5759 (mcore_push_arguments): Change type of struct_return so the
5760 function can be used in the architecture vector.
5761 (mcore_store_struct_return): Add.
5762 (mcore_frame_init_saved_regs): Add.
5763 (mcore_gdbarch_init): Add function calls to replace the macros
5764 removed from tm-mcore.h
5765
36160dc4
AC
57662002-07-03 Andrew Cagney <ac131313@redhat.com>
5767
5768 * infcmd.c (print_return_value): Remove compatibility code calling
5769 deprecated_grub_regcache_for_registers.
5770
5771 * values.c: Include "regcache.h".
5772 (value_being_returned): Update. Use
5773 deprecated_grub_regcache_for_registers to extract the register
5774 buffer address.
5775 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5776 ``struct regcache''.
5777 * Makefile.in (values.o): Add dependency on $(regcache_h).
5778
5779 * inferior.h (run_stack_dummy): Change type of second parameter to
5780 a ``struct regcache''.
5781 * valops.c (hand_function_call): Change type of retbuf to ``struct
5782 regcache''. Allocate using regcache_xmalloc, clean using
5783 make_cleanup_regcache_xfree.
5784 * infcmd.c (run_stack_dummy): Update. Use
5785 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5786
5787 * regcache.c (do_regcache_xfree): New function.
5788 (make_cleanup_regcache_xfree): New function.
5789 * regcache.h (make_cleanup_regcache_xfree): Declare.
5790
e64d9b3d
MH
57912002-07-03 Martin M. Hunt <hunt@redhat.com>
5792
4dd79c29
MH
5793 * event-top.c (command_line_handler): Don't read past
5794 beginning of buffer.
e64d9b3d 5795
4dd79c29
MH
57962002-07-03 Martin M. Hunt <hunt@redhat.com>
5797
e64d9b3d
MH
5798 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5799 struct frame_id.
5800 (varobj_create): Store frame_id for root.
5801 (varobj_gen_name): Use xasprintf.
5802 (varobj_update): Save and restore frame using get_frame_id() and
5803 frame_find_by_id().
5804 (create_child): Use xasprintf.
5805 (new_root_variable): Initialize frame_id.
5806 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5807 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5808 to prevent memory leak.
5809
26e6c56a
AC
58102002-07-03 Andrew Cagney <ac131313@redhat.com>
5811
5812 * valops.c (hand_function_call): Move declaration of retbuf to
5813 start of function, allocate using malloc, add a cleanup but before
5814 the inf_status cleanup, cleanup the buffer. Rename local variable
5815 old_chain to inf_status_cleanup.
5816
f436dd25
MH
58172002-07-03 Martin M. Hunt <hunt@redhat.com>
5818
5819 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5820
5821 * cli/cli-decode.c (cmd_func_p): New function.
5822 (cmd_func): New function.
5823
5824 * command.h: Add cmd_func() and cmd_func_p().
5825
4cfe2084
GS
58262002-07-03 Grace Sainsbury <graces@redhat.com>
5827
5828 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5829 (REGISTER_SIZE): Remove.
5830 (MAX_REGISTER_RAW_SIZE): Remove.
5831 (REGISTER_VIRTUAL_TYPE): Remove.
5832 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5833 (REGISTER_NAME): Remove.
5834 (USE_GENERIC_DUMMY_FRAMES): Remove.
5835 (CALL_DUMMY): Remove.
5836 (CALL_DUMMY_START_OFFSET): Remove.
5837 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5838 (CALL_DUMMY_LOCATION): Remove.
5839 (FIX_CALL_DUMMY): Remove.
5840 (CALL_DUMMY_ADDRESS): Remove.
5841 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5842 (SAVE_DUMMY_FRAME_TOS): Remove.
5843 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5844 (mcore_register_virtual_type): New function.
5845 (mcore_register_byte): New function.
5846 (mcore_register_size): New function.
5847 (mcore_register_name): New function.
5848 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5849 macros removed from tm-mcore.h.
5850 (mcore_dump_tdep): Add.
5851 (_initialize_mcore_tdep): Add gdbarch_register call.
5852
4fd667e9
MK
58532002-07-03 Mark Kettenis <kettenis@gnu.org>
5854
5855 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5856 frameless_look_for_prologue, such that we actually call this
5857 function.
5858
42f99ac2
JB
58592002-07-02 Joel Brobecker <brobecker@gnat.com>
5860
5861 * frame.h (frame_address_in_block): New function.
5862
5863 * blockframe.c (frame_address_in_block): New function extracted
5864 from get_frame_block().
5865 (get_frame_block): Use frame_address_in_block().
5866 (block_innermost_frame): Use frame_address_in_block() to match
5867 the frame pc address against the block boundaries rather than
5868 the frame pc directly. This prevents a failure when a frame pc
5869 is actually a return-address pointing immediately after the end
5870 of the given block.
5871
103a1597 58722002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
5873
5874 * MAINTAINERS: Add self under write after approval.
5875
58762002-07-02 Grace Sainsbury <graces@redhat.com>
5877
103a1597
GS
5878 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5879 used in architecture vector. The default is
5880 m68k_local_breakpoint_from_pc.
5881 (m68k_local_breakpoint_from_pc): Add.
5882 (enum): Add register numbers from tm-m68k.h.
5883 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5884 vector.
5885 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5886 GDB_MULTI_ARCH_PARTIAL.
5887 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5888 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5889 m68k-tdep.c.
5890 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5891 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5892 to enum in m68k-tdep.c
5893
7a5a0534
JB
58942002-07-02 Joel Brobecker <brobecker@gnat.com>
5895
5896 * solib-osf.c (open_map): Compute the list of shared libraries
5897 loaded by the inferior, rather than the list of libraries loaded
5898 by GDB itself. Otherwise, GDB ends up reading the symbols from
5899 the wrong shared libraries...
5900
6f558d74
MK
59012002-07-02 Mark Kettenis <kettenis@gnu.org>
5902
b7d15bf7
MK
5903 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5904 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5905 macros.
5906 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5907 Remove functions.
5908 (FRAMELESS_SIGNAL): Remove function.
5909 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5910 i386_linux_saved_pc_after_call): Removed.
5911 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5912 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5913 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5914
6bff26de
MK
5915 * i386-tdep.c (i386_frameless_signal_p): New function.
5916 (i386_frame_chain): Deal with frameless signals.
5917 (i386_sigtramp_saved_sp): New function.
5918 (i386_frame_saved_pc): Deal with frameless signals.
5919 (i386_saved_pc_after_call): Make sure the correct value is
5920 returned just after entry into a sigtramp.
5921 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5922 i386fbsd4_sc_sp_offset): New variables.
5923 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5924 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5925 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5926 similiar to what we already did for sc_pc_offset.
5927 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5928 tdep->sc_sp_offset.
5929
6f558d74
MK
5930 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5931
145564b7
ML
59322002-07-02 Michal Ludvig <mludvig@suse.cz>
5933
5934 * config/i386/tm-x86-64linux.h: New.
5935 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5936 definitions.
5937 * config/i386/nm-x86-64.h: Rename to ...
5938 * config/i386/nm-x86-64linux.h: ... this one.
5939 * config/i386/x86-64linux.mh: Reflect the above change.
5940
3a1e71e3
MK
59412002-07-01 Mark Kettenis <kettenis@gnu.org>
5942
21d0e8a4
MK
5943 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5944 with sigcontext_addr. Add sc_sp_offset.
5945 (i386bsd_sigtramp_saved_pc): Remove prototype.
5946 (i386bsd_sicontext_addr): Add prototype.
5947 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5948 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5949 (i386_svr4_sigtramp_saved_pc): Removed.
5950 (i386_svr4_sigcontext_addr): New function.
5951 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5952 Initialize tdep->sigcontext_addr instead. Initialize
5953 tdep->sc_pc_offset and tdep->sc_sp_offset.
5954 (i386_gdbarch_init): Likewise.
5955 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5956 any more.
5957 (i386bsd_sigtramp_saved_pc): Remove function.
5958 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5959 Initialize tdep->sigcontext_addr instead. Initialize
5960 tdep->sc_pc_offset.
5961 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5962 of tdep->sigtramp_saved_pc.
5963 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5964 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5965 instead.
5966
3a1e71e3
MK
5967 * i386-tdep.c (i386_frameless_function_invocation,
5968 i386_frame_num_args, i386_frame_init_saved_regs,
5969 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5970 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5971 i386_extract_return_value, i386_store_return_value,
5972 i386_extract_struct_value_address, i386_register_virtual_type,
5973 i386_register_convertible, i386_register_convert_to_virtual,
5974 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5975 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5976 static.
5977
52e9098c
MK
59782002-07-01 Mark Kettenis <kettenis@gnu.org>
5979
77b13a25
MK
5980 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5981
52e9098c
MK
5982 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5983 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5984 this macro. Include "value.h".
5985
1b372fff
AS
59862002-06-30 Aidan Skinner <aidan@velvet.net>
5987
5988 * ada-exp.tab.c: remove as it's a generated file
5989 * ada-lex.c: remove as it's a generated file
5990
9c5045b5
MK
59912002-06-30 Mark Kettenis <kettenis@gnu.org>
5992
4a93c5bb
MK
5993 * config/i386/tm-i386.h (struct frame_info, struct
5994 frame_saved_regs, struct value, struct type): Remove forward
5995 declarations.
5996
322d4fe0
MK
5997 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5998 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5999 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6000 (FILL_FPXREGSET): Define.
6001
fdd8263d
MK
6002 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6003
482e577b
MK
6004 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6005 i[3456]86-*-netbsd* case.
6006 * config/i386/tm-obsd.h: Removed.
6007 * config/i386/obsd.mt: Removed.
6008 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6009 core-aout.o.
6010 (MH_CFLAGS): Add -DYYDEBUG=0.
6011
6916549a
MK
6012 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6013 i386nbsd_sc_pc_offset on OpenBSD too.
6014
9c5045b5
MK
6015 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6016 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6017 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6018 define.
6019 * i386bsd-tdep.c: Include "arch-utils.h".
6020 (i386bsd_aout_in_solib_call_trampoline): New function.
6021 (i386bsd_init_abi): Set in_solib_call_trampoline to
6022 i386bsd_aout_in_solib_call_trampoline.
6023 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6024 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6025
aa84d1bb
AC
60262002-06-28 Andrew Cagney <ac131313@redhat.com>
6027
6028 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6029 (struct obstack, struct bcache): Add opaque declarations.
6030 * Makefile.in (macrotab_h): Update
6031
b4d83933
AC
60322002-06-28 Andrew Cagney <ac131313@redhat.com>
6033
6034 * blockframe.c (generic_find_dummy_frame): Change return type to
6035 ``struct regcache''.
6036 (struct dummy_frame): Replace field ``registers'' with regcache, a
6037 struct regcache object.
6038 (generic_find_dummy_frame): Update.
6039 (generic_push_dummy_frame): Update. Use regcache_xfree,
6040 regcache_xmalloc and regcache_cpy.
6041 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6042 regcache_xfree.
6043 (deprecated_generic_find_dummy_frame): Update.
6044 (generic_read_register_dummy): Update. Use
6045 regcache_read_as_address.
6046 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6047 (generic_get_saved_register): Update. Use regcache_read.
6048
08c0b5bc
AC
60492002-06-28 Andrew Cagney <ac131313@redhat.com>
6050
6051 * Makefile.in (objfiles_h): Add $(bcache_h).
6052 * objfiles.h: Include "bcache.h".
6053
6054 * Makefile.in (symtab_h): Remove $(bcache_h).
6055 * symtab.h: Do not include "bcache.h".
6056
1f89801a
AC
60572002-06-28 Andrew Cagney <ac131313@redhat.com>
6058
6059 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6060 generic_func_frame_chain_valid.
6061
b9644b58
DB
60622002-06-28 David O'Brien <obrien@FreeBSD.org>
6063
6064 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6065 * config/i386/tm-fbsd.h: Likewise.
6066
dd486634
AC
60672002-06-28 Andrew Cagney <ac131313@redhat.com>
6068
6069 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6070 generic_unwind_get_saved_register.
6071
0b434a00
AC
60722002-06-27 Andrew Cagney <ac131313@redhat.com>
6073
6074 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6075 * regcache.c (supply_register): Add missing argument to
6076 register_buffer call.
6077
f30e5a77
AC
60782002-06-27 Andrew Cagney <ac131313@redhat.com>
6079
6080 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6081 Solaris /bin/grep does not not like it. From Peter Schauer.
6082
9f064c95
TT
60832002-06-26 Tom Tromey <tromey@redhat.com>
6084
6085 * command.h (add_setshow_cmd): Declare.
6086 (add_setshow_cmd_full): Declare.
6087 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6088 returns void. Use add_setshow_cmd_full.
6089 (add_setshow_cmd_full): New function.
6090 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6091 (add_setshow_boolean_cmd): Likewise.
6092
099c7589
JT
60932002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6094
6095 * config/vax/tm-vax.h: Protect from multiple inclusion.
6096 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6097 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6098 * config/vax/tm-vaxbsd.h: ...here. New file.
6099 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6100
1d049c5e
JT
61012002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6102
6103 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6104 (BELIEVE_PCC_PROMOTION): Remove.
6105 (AP_REGNUM): Move to...
6106 * config/vax/nm-vax.h: ...here.
6107 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6108 (vax_breakpoint_from_pc): New function.
6109 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6110 and gdbarch_believe_pcc_promotion.
6111
4791e091
JT
61122002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6113
6114 * Makefile.in (vax_tdep_h): Define.
6115 (vax-tdep.o): Use $(vax_tdep_h).
6116 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6117 (vax_dump_tdep): New function.
6118 (_initialize_vax_tdep): Register vax_dump_tdep.
6119 * vax-tdep.h: Include osabi.h.
6120 (struct gdbarch_tdep): New.
6121
da130f98
AC
61222002-06-26 Andrew Cagney <cagney@redhat.com>
6123
6124 * frame.h (deprecated_generic_find_dummy_frame): Rename
6125 generic_find_dummy_frame.
6126 * blockframe.c (generic_find_dummy_frame): Make static.
6127 (deprecated_generic_find_dummy_frame): New function.
6128 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6129 generic_find_dummy_frame with deprecated_find_dummy_frame.
6130 (sh64_nofp_frame_init_saved_regs): Ditto.
6131 (sh_fp_frame_init_saved_regs): Ditto.
6132 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6133 (s390_frame_chain): Ditto.
6134 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6135
6300c360
GS
61362002-06-26 Grace Sainsbury <graces@redhat.com>
6137
6138 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6139 gdbarch vector are at the top.
6140 (NUM_REGS): Remove.
6141 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6142 (FRAME_ARGS_ADDRESS): Remove.
6143 (FRAME_LOCALS_ADDRESS): Remove.
6144 (FRAME_NUM_ARGS): Remove.
6145 (FRAME_ARGS_SKIP): Remove.
6146 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6147 (m68k_gdbarch_init): Add gdbarch initializations for macros
6148 undefined in tm-m68k.h
6149
1c617db8
GS
61502002-06-26 Grace Sainsbury <graces@redhat.com>
6151
6152 * monitor.h: Add the function regname to monitor_ops
6153 structure. This way NUM_REGS does not have to be a constant.
6154 * monitor.c (monitor_fetch_register): Added support for regname
6155 function. The function is called if the array regnames is NULL.
6156 (monitor_store_register): Same.
da130f98
AC
6157 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6158 regnames array.
1c617db8
GS
6159 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6160 cpu32bug_cmds.regname to point to new function.
6161 * abug-rom.c (abug_regname): Same as above.
6162 (init_abug_cmds): Same.
6163 * dbug-rom.c (dbug_regname): Same as above.
6164 (init_dbug_cmds): Same.
6165 * remote-est.c (est_regname): Same.
6166 (init_est_cmds): Same.
6167 * rom68k-rom.c (rom68k_regname): Same.
6168 (init_rom68k_cmds): Same.
6169
ea9365bb
TT
61702002-06-25 Tom Tromey <tromey@redhat.com>
6171
6172 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6173
72cec141
AC
61742002-06-25 Andrew Cagney <cagney@redhat.com>
6175
6176 * infrun.c (stop_registers): Change variable's type to ``struct
6177 regcache'''.
6178 (xmalloc_inferior_status): Delete function.
6179 (free_inferior_status): Delete function.
6180 (normal_stop): Use regcache_cpy.
6181 (struct inferior_status): Change type of fields ``stop_registers''
6182 and ``registers'' to ``struct regcache''.
6183 (write_inferior_status_register): Use regcache_write.
6184 (save_inferior_status): Instead of calling
6185 xmalloc_inferior_status, allocate the inf_status buffer directly.
6186 Use regcache_dup_no_passthrough and regcache_dup to save the
6187 buffers.
6188 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6189 Replace the stop_registers regcache instead of overriding it. Use
6190 regcache_xfree. Instead of calling free_inferior_status, xfree
6191 the buffer directly.
6192 (discard_inferior_status): Use regcache_xfree. Instead of calling
6193 free_inferior_status, xfree the buffer directly.
6194 (build_infrun): Use regcache_xmalloc.
6195 (_initialize_infrun): Delete redundant call to build_infrun.
6196
6197 * Makefile.in (infcmd.o): Add $(regcache_h).
6198
6199 * infcmd.c: Include "regcache.h".
6200 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6201 obtain the address of `stop_registers' register buffer.
6202 (print_return_value): Ditto.
6203
6204 * inferior.h (struct regcache): Add opaque declaration.
6205 (stop_registers): Change variable's declared type to ``struct
6206 regcache''.
6207
defc6f8c
TT
62082002-06-24 Tom Tromey <tromey@redhat.com>
6209
c0e624e7
TT
6210 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6211 * target.c (initialize_targets): Fixed typo in
6212 trust-readonly-sections `show' documentation.
6213
defc6f8c
TT
6214 * main.c: Marked all strings with _().
6215
2b236d82
DH
62162002-06-24 Don Howard <dhoward@redhat.com>
6217
6218 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6219 that means max CORE_ADDR+1.
6220 (lookup_mem_region): Ditto.
6221 (mem_info_command): Ditto.
6222
942dc0e9
GS
62232002-06-24 Grace Sainsbury <graces@redhat.com>
6224
6225 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6226 (REGISTER_BYTES_OK): Remove.
6227 (REGISTER_BYTES): Remove.
6228 (STORE_STRUCT_RETURN): Remove.
6229 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6230 (STORE_RETURN_VALUE): Remove.
6231 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6232 (FRAME_CHAIN): Remove.
6233 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6234 (FRAME_SAVED_PC): Remove.
6235 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6236 (m68k_store_struct_return): Add.
6237 (m68k_deprecated_extract_return_value): Add.
6238 (m68k_deprecated_extract_struct_value_address): Add.
6239 (m68k_store_return_value): Add.
6240 (m68k_frame_chain): Add.
6241 (m68k_frameless_function_invocation): Add.
6242 (m68k_frame_saved_pc): Add.
6243 (m68k_gdbarch_init): added set_gdbarch calls for new
6244 functions and deleted macros.
6245
03c30d4d
TT
62462002-06-23 Tom Tromey <tromey@redhat.com>
6247
6248 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6249 (ALLDEPFILES): Likewise.
6250 (udiheaders): Removed.
6251 (udip2soc.o): Likewise.
6252 (udi2go32.o): Likewise.
6253 (udr.o): Likewise.
6254 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6255
37e71372
AC
62562002-06-22 Andrew Cagney <ac131313@redhat.com>
6257
06a6ac57
AC
6258 * infrun.c (_initialize_infrun): Delete unnecessary call to
6259 build_infrun.
6260
37e71372
AC
6261 * regcache.h: Update comments describing the regcache_cpy family
6262 of functions.
6263 (regcache_save, regcache_restore): Delete declaration.
6264 (regcache_save_no_passthrough): Delete declaration.
6265 (regcache_restore_no_passthrough): Delete declaration.
6266 * regcache.c (regcache_save): Delete function.
6267 (regcache_save_no_passthrough): Delete function.
6268 (regcache_restore): Delete function.
6269 (regcache_restore_no_passthrough): Delete function.
6270
78f6d055
AC
62712002-06-21 Andrew Cagney <ac131313@redhat.com>
6272
6273 * config/m68k/tm-m68k.h: Fix typo.
6274 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6275 (m68k_frame_init_saved_regs): Declare.
6276
78b119cb
JB
62772002-06-21 Jim Blandy <jimb@redhat.com>
6278
6279 Remove some vestiges of Harris 88k support.
6280 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6281 register numbering quirk.
6282 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6283 odd symbols occurring in Harris 88k ELF targets.
6284
0fbb3da7
TT
62852002-06-21 Tom Tromey <tromey@redhat.com>
6286
6287 * gdb_locale.h: New file.
6288 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6289 (defs_h): Added gdb_locale.h.
6290 * configure, config.in: Rebuilt.
6291 * configure.in (PACKAGE): Define.
6292 * defs.h: Include gdb_locale.h.
6293 * main.c (captured_main): Call setlocale, bindtextdomain,
6294 textdomain.
6295
456f8b9d
DB
62962002-06-21 Dave Brolley <brolley@redhat.com>
6297
6298 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6299 * config/frv/frv.mt: New file.
6300 * config/frv/tm-frv.h: New file.
6301 * configure.tgt: Support frv-*-*.
6302 * Makefile.in (frv-tdep.o): New target.
6303 * frv-tdep.c: New file.
6304 * NEWS: Mention frv.
6305
cdd463f9
DB
63062002-06-21 Dave Brolley <brolley@redhat.com>
6307
6308 * MAINTAINERS: Add self to "Write After Approval" list.
6309
5d3ed2e3
GS
63102002-06-21 Grace Sainsbury <graces@redhat.com>
6311
6312 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6313 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6314 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6315 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6316 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6317
6318 * m68k-tdep.c: Include arch-utils.h
6319 (m68k_register_raw_size): Add.
6320 (m68k_register_virtual_size): Add.
6321 (m68k_register_virtual_type): Add.
6322 (m68k_register_name): Add.
6323 (m68k_stack_align): Add.
6324 (m68k_register_byte): Add.
6325 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6326 tm-m68k.h.
6327
7f8e7424
GS
63282002-06-21 Grace Sainsbury <graces@redhat.com>
6329
a2c6a6d5 6330 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
6331 m68k_find_saved_regs.
6332 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 6333 references to it with frame->saved_regs.
7f8e7424
GS
6334 (m68k_gdbarch_init): Added function calls to initialize the
6335 gdbarch structure.
a2c6a6d5
GS
6336 (m68k_fix_call_dummy): Add.
6337 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6338 (CALL_DUMMY): Remove.
6339 (CALL_DUMMY_LENGTH): Remove.
6340 (CALL_DUMMY_START_OFFSET): Remove.
6341 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6342 (FIX_CALL_DUMMY): Remove.
6343 (PUSH_DUMMY_FRAME): Remove.
6344 (POP_FRAME): Remove.
7f8e7424 6345
f461f5cf
PM
63462002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6347
6348 * parse.c (parse_fprintf): New function used to avoid calls to
6349 fprintf in bison parser generated debug code.
6350 * parser-defs.h: Declaration of new parse_fprintf function.
6351 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6352 Set YYDEBUG to 1 by default.
6353 Set YYFPRINTF as parse_fprintf.
6354
7f0c12ed
ML
63552002-06-21 Michal Ludvig <mludvig@suse.cz>
6356
6357 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6358 encoding anymore.
6359 (pointer_encoding, enum ptr_encoding): New.
6360 (execute_cfa_program): Take care about pointer encoding.
6361 (dwarf2_build_frame_info): Only call parse_frame_info for
6362 .debug_frame and .eh_frame.
6363 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6364 fixed augmentation handling, added relative addressing,
6365 ignore duplicate FDEs. Added comments.
19d833a2 6366 * dwarf2cfi.c: Reindented.
7f0c12ed 6367
87c4a039
EZ
63682002-06-20 Elena Zannoni <ezannoni@redhat.com>
6369
6370 * event-top.c (command_handler): Don't use space_at_cmd_start
6371 unless there is sbrk() on the host. Assign time and space data
6372 to union fields of the appropriate length.
6373
1cf877ad
ML
63742002-06-20 Michal Ludvig <mludvig@suse.cz>
6375
6376 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6377 x86_64_register_name. Return type changed to 'const char *'.
6378 (x86_64_register_name2nr): Rename to x86_64_register_number.
6379 (x86_64_gdbarch_init): Update to reflect the change.
6380 * x86-64-tdep.h: Ditto.
6381 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6382 (supply_fpregset): Ditto.
6383
3fadccb3
AC
63842002-06-19 Andrew Cagney <cagney@redhat.com>
6385
6386 * regcache.h: Update copyright.
6387 (struct regcache, struct gdbarch): Add opaque declarations.
6388 (current_regcache): Declare global variable.
6389 (regcache_read, regcache_write): Add gdbarch parameter.
6390 (regcache_save, regcache_save_no_passthrough)
6391 (regcache_restore, regcache_restore_no_passthrough)
6392 (regcache_dup, regcache_dup_no_passthrough)
6393 (regcache_cpy, regcache_cpy_no_passthrough)
6394 (deprecated_grub_regcache_for_registers)
6395 (deprecated_grub_regcache_for_register_valid)
6396 (regcache_valid_p): Add function declarations.
6397
6398 * regcache.c: Update copyright.
6399 (regcache_descr_handle): New global variable.
6400 (struct regcache_descr): Define.
6401 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6402 (regcache_descr, xfree_regcache_descr): New functions.
6403 (struct regcache): Define.
6404 (regcache_xmalloc, regcache_xfree): New functions.
6405 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6406 (regcache_dup, regcache_dup_no_passthrough): New functions.
6407 (regcache_valid_p, regcache_read_as_address): New functions.
6408 (deprecated_grub_regcache_for_registers): New function.
6409 (deprecated_grub_regcache_for_register_valid): New function.
6410 (current_regcache): New global variable.
6411 (register_buffer): Add regcache parameter. Update calls.
6412 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6413 (read_register_gen, write_register_gen): Update register_buffer
6414 call. Test for legacy_p instead of gdbarch_register_read_p or
6415 gdbarch_register_write_p.
6416 (regcache_collect): Update register_buffer call.
6417 (build_regcache): Rewrite. Use deprecated grub functions.
6418 (regcache_save, regcache_save_no_passthrough): New functions.
6419 (regcache_restore, regcache_restore_no_passthrough): New
6420 functions.
6421 (_initialize_regcache): Create the regcache_data_handle. Swap
6422 current_regcache global variable.
6423
6424 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6425 parameter to regcache_read and regcache_write calls.
6426 (sh4_register_read): Ditto.
6427 (sh64_pseudo_register_read): Ditto.
6428 (sh64_register_read): Ditto.
6429 (sh_pseudo_register_write): Ditto.
6430 (sh4_register_write): Ditto.
6431 (sh64_pseudo_register_write): Ditto.
6432 (sh64_register_write): Ditto.
6433
6434 * defs.h (XCALLOC): Define.
6435
152d9db6
GS
64362002-06-19 Grace Sainsbury <graces@redhat.com>
6437
6438 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6439 * m68k-tdep.c (m68k_gdbarch_init): Added.
6440 (m68k_dump_tdep): Added.
6441
170911c7
DJ
64422002-06-19 Daniel Jacobowitz <drow@mvista.com>
6443
6444 * ada-lang.c (fill_in_ada_prototype): Update comment.
6445
2e4ebe70
DJ
64462002-06-19 Daniel Jacobowitz <drow@mvista.com>
6447
6448 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6449 MIPS_ABI_LAST.
6450 (mips_abi_string, mips_abi_strings): New.
6451 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6452 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6453 tdep->mips_abi_string. Honor mips_abi_string. Default to
6454 O32 if no ABI is found.
6455 (mips_dump_tdep): Use mips_abi_strings.
6456 (mips_abi_update): New function.
6457 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6458 ``set mips abi'' and ``show mips abi''. Check the size of
6459 mips_abi_strings.
6460
16775908
AC
64612002-06-19 Andrew Cagney <cagney@redhat.com>
6462
6463 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6464 constant.
6465
5051bfa4 64662002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 6467
5051bfa4
JB
6468 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6469 current frame using only the first stack size adjustment. All
6470 subsequent size adjustments are not considered to be part of
6471 the "static" part of the current frame.
6472 Compute the address of the saved registers relative to the
6473 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6474 in use in this frame.
6475
56468235
DH
64762002-06-18 Don Howard <dhoward@redhat.com>
6477
6478 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6479 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6480 suggesting this solution.
6481
0b624158
AC
64822002-06-18 Andrew Cagney <ac131313@redhat.com>
6483
6484 * config/romp/xm-rtbsd.h: Delete file.
6485 * config/romp/rtbsd.mh: Delete file.
6486
221ea385
KS
64872002-06-18 Keith Seitz <keiths@redhat.com>
6488
6489 * breakpoint.c (condition_command): Post breakpoint_modify
6490 when a condition is added to an existing breakpoint.
6491 (commands_command): Likewise for commands.
6492 (set_ignore_count): Likewise for ignore counts.
6493 If no tty, do not simply return, still need to send event
6494 notification.
6495 (ignore_command): Only print a newline if the command came
6496 from a tty.
6497 Don't call breakpoints_changed, since this is now properly
6498 handled by set_ignore_count.
6499
5402eed1
AC
65002002-06-18 Andrew Cagney <cagney@redhat.com>
6501
6502 * MAINTAINERS: Note that cris-elf target can be compiled with
6503 -Werror.
6504 * cris-tdep.c (cris_register_name): Make return type constant.
6505 (cris_breakpoint_from_pc): Ditto.
6506
cc22880b
ML
65072002-06-18 Michal Ludvig <mludvig@suse.cz>
6508
6509 * frame.h (struct frame_info): Change type of context to
6510 'struct context'.
6511
fa88f677
AC
65122002-06-17 Andrew Cagney <cagney@redhat.com>
6513
6514 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6515 pointer.
6516 * gdbarch.h, gdbarch.c: Regenerate.
6517 * config/mips/tm-mips.h (mips_register_name): Update.
6518 * i386-tdep.h (i386_register_name): Update.
6519 * mips-tdep.c (mips_register_name): Update
6520 * alpha-tdep.c (alpha_register_name): Update.
6521 * arch-utils.c (legacy_register_name): Update.
6522 * arch-utils.h (legacy_register_name): Update.
6523 * avr-tdep.c (avr_register_name): Update.
6524 * ia64-tdep.c (ia64_register_name): Update.
6525 * i386-tdep.c (i386_register_name): Update.
6526 * sparc-tdep.c (sparc32_register_name): Update.
6527 (sparc64_register_name): Update.
6528 (sparclite_register_name): Update.
6529 (sparclet_register_name): Update.
6530 * sh-tdep.c (sh_generic_register_name): Update.
6531 (sh_sh_register_name): Update.
6532 (sh_sh3_register_name): Update.
6533 (sh_sh3e_register_name): Update.
6534 (sh_sh_dsp_register_name): Update.
6535 (sh_sh3_dsp_register_name): Update.
6536 (sh_sh4_register_name): Update.
6537 (sh_sh64_register_name): Update.
6538 * s390-tdep.c (s390_register_name): Update.
6539 * rs6000-tdep.c (rs6000_register_name): Update.
6540 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6541 (ns32k_register_name_32382): Update.
6542 * d10v-tdep.c (d10v_ts2_register_name): Update.
6543 (d10v_ts3_register_name): Update.
6544 * xstormy16-tdep.c (xstormy16_register_name): Update.
6545 * vax-tdep.c (vax_register_name): Update.
6546 * v850-tdep.c (v850_register_name): Update.
6547 * m68hc11-tdep.c (m68hc11_register_name): Update.
6548 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6549 (am33_register_name): Update.
6550
ea1e7ef6
GS
65512002-06-17 Grace Sainsbury <graces@redhat.com>
6552
6553 * m68k-tdep.c: Reindented.
6554
9b02dd1b
AC
65552002-06-17 Andrew Cagney <ac131313@redhat.com>
6556
6557 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6558 list of predefined types.
6559
8758dec1
MK
65602002-06-16 Mark Kettenis <kettenis@gnu.org>
6561
b6197528
MK
6562 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6563 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6564 REGISTER_CONVERT_TO_RAW): Remove defines.
6565 (i386_register_virtual_type, i386_register_convertible,
6566 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6567 Remove prototypes.
6568 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6569 macros mentioned above.
6570
82b47e62
MK
6571 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6572 (i386lynx_saved_pc_after_call): Remove prototype.
6573 * i386ly-tdep.c: Include "i386-tdep.h".
6574 (i386lynx_saved_pc_after_call): Make static. Use
6575 read_memory_nobpt instead of read_memory. Use
6576 read_memory_unsigned_integer instead of read_memory_integer.
6577 (i386lynx_init_abi): New function.
6578 (i386lynx_coff_osabi_sniffer): New function.
6579 (_initialize_i386bsd_tdep): New function.
6580
8758dec1
MK
6581 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6582 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6583 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6584 (i386_fix_call_dummy): Remove prototype.
6585 * i386-tdep.c (i386_call_dummy_words): New variable.
6586 (i386_gdbarch_init): Adjust for removal of the
6587 macros mentioned above.
6588
e9e68a56
AC
65892002-06-15 Andrew Cagney <ac131313@redhat.com>
6590
6591 * command.h (add_setshow_auto_boolean_cmd): Replace
6592 add_set_auto_boolean_cmd.
6593 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6594 add_set_auto_boolean_cmd.
6595 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6596 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6597 mask-address'' command.
6598 (show_mask_address): Add cmd parameter.
6599 * remote.c (add_packet_config_cmd): Update. Change type of
6600 set_func and show_func to cmd_sfunc_ftype.
6601 (_initialize_remote): Update `set remote Z-packet'
6602 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6603 (show_remote_protocol_e_packet_cmd): Ditto.
6604 (show_remote_protocol_E_packet_cmd): Ditto.
6605 (show_remote_protocol_P_packet_cmd): Ditto.
6606 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6607 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6608 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6609 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6610 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6611 (show_remote_protocol_Z_packet_cmd): Ditto.
6612 (show_remote_protocol_binary_download_cmd): Ditto.
6613 (show_remote_cmd): Pass NULL to all of above.
6614
fc08ec52
MK
66152002-06-15 Mark Kettenis <kettenis@gnu.org>
6616
6617 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6618 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6619 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6620 POP_FRAME): Remove defines.
6621 (i386_push_arguments, i386_store_struct_return,
6622 i386_extract_return_value, i386_store_return_value,
6623 i386_extract_struct_value_address, i386_push_dummy_frame,
6624 i386_pop_frame): Renove prototypes.
6625 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6626 macros mentioned above.
6627
e707bbc2
AC
66282002-06-15 Andrew Cagney <ac131313@redhat.com>
6629
6630 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6631 add_set_boolean_cmd.
6632 (add_setshow_cmd): New function.
6633 * command.h (add_setshow_boolean_cmd): Replace
6634 add_set_boolean_cmd.
6635 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6636 and ``set rdiromatzero''.
6637 * maint.c (_initialize_maint_cmds): Update commented out code.
6638 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6639 * target.c (initialize_targets): Update `set
6640 trust-readonly-sections'.
6641 * remote.c (_initialize_remote): Update `set remotebreak'.
6642
42fdc8df
MK
66432002-06-15 Mark Kettenis <kettenis@gnu.org>
6644
93924b6b
MK
6645 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6646 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6647 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6648 fit into multi-arch framework.
6649 (i386_breakpoint_from_pc): New function.
6650 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6651 above.
6652
42fdc8df
MK
6653 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6654 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6655 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6656 (i386_frameless_function_invocation, i386_frame_num_args,
6657 i386_frame_init_saved_regs): Remove prototypes.
6658 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6659 macros mentioned above.
6660
9773a94b
AC
66612002-06-15 Andrew Cagney <ac131313@redhat.com>
6662
6663 * cli/cli-decode.c (set_cmd_cfunc): Update.
6664 (set_cmd_sfunc): Update.
6665 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6666 (set_cmd_sfunc, set_cmd_cfunc): Update.
6667 * cli/cli-decode.h: Update.
6668
6e157172
MK
66692002-06-15 Mark Kettenis <kettenis@gnu.org>
6670
6671 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6672 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6673
7f19b9a2
AC
66742002-06-15 Andrew Cagney <ac131313@redhat.com>
6675
6676 * defs.h (auto_boolean): Declare enum.
6677 * command.h (cmd_auto_boolean): Delete enum.
6678 * mips-tdep.c (mask_address_var): Update.
6679 (mips_mask_address_p): Update.
6680 (show_mask_address): Update.
6681 * remote.c (struct packet_config): Update.
6682 (update_packet_config): Update.
6683 (show_packet_config_cmd): Update.
6684 (packet_ok): Update.
6685 (add_packet_config_cmd): Update.
6686 (_initialize_remote):
6687 * command.h: Update.
6688 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6689 (do_setshow_command): Update.
6690 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6691 * cli/cli-decode.h: Update.
6692
1cf88de5
MK
66932002-06-15 Mark Kettenis <kettenis@gnu.org>
6694
22ba8cf2
MK
6695 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6696 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6697 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6698 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6699 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6700 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6701
762c5349
MK
6702 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6703 list of DJGPP COFF targets.
6704
091198bb
MK
6705 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6706 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6707 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6708 (FP0_REGNUM): Remove define.
6709 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6710 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6711 (i386_register_virtual_size): Remove protoype.
6712 * i386-tdep.c (i386_register_virtual_size): Removed.
6713 (i386_extract_return_value, i386_store_return_value): Use
6714 FP0_REGNUM instead of NUM_FREGS to determine whether the
6715 floating-point registers are available.
6716 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6717 Adjust for removal of macros mentioned above.
6718
67192002-06-15 Mark Kettenis <kettenis@gnu.org>
6720
fcc9bf01
MK
6721 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6722 comments.
6723 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6724 Remove prototypes.
6725 (supply_gregset, fill_gregset): Remove use of register keyword and
6726 remove declaration for regmap. Use I386_NUM_GREGS instead of
6727 NUM_REGS and NUM_FREGS.
6728 (FPREGSET_FSAVE_OFFSET): Remove.
6729 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6730 NUM_FREGS to determine whether the floating-point registers are
6731 available.
6732
65e78234
MK
6733 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6734 gnu_store_registers): Replace usage of NUM_GREGS with
6735 I386_NUM_GREGS.
6736
98df6387
MK
6737 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6738 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6739 usage of NUM_GREGS with I386_NUM_GREGS.
6740
099a9414
MK
6741 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6742
57976e88
MK
6743 * i386bsd-nat.c: Include "i386-tdep.h".
6744 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6745 I386_NUM_GREGS.
6746
b335f4a6
MK
6747 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6748 and associated comment. They no longer make any sense, since we
6749 don't use this file anymore on Linux.
6750
1cf88de5
MK
6751 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6752 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6753 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6754 elements in these arrays.
6755 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6756 MAX_NUM_REGS.
6757
daa66587
MK
67582002-06-15 Mark Kettenis <kettenis@gnu.org>
6759
6760 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6761 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6762
26e9b323
AC
67632002-06-14 Andrew Cagney <cagney@redhat.com>
6764
6765 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6766 EXTRACT_RETURN_VALUE.
6767 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6768 EXTRACT_STRUCT_VALUE_ADDRESS.
6769 * gdbarch.h, gdbarch.c: Regenerate.
6770
6771 * values.c (value_being_returned): Handle
6772 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6773 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6774
6775 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6776 * arm-tdep.c (arm_gdbarch_init): Update.
6777 * avr-tdep.c (avr_gdbarch_init): Update.
6778 * cris-tdep.c (cris_gdbarch_init): Update.
6779 * d10v-tdep.c (d10v_gdbarch_init): Update.
6780 * ia64-tdep.c (ia64_gdbarch_init): Update.
6781 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6782 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6783 * s390-tdep.c (s390_gdbarch_init): Update.
6784 * sh-tdep.c (sh_gdbarch_init): Update.
6785 * s390-tdep.c (s390_gdbarch_init): Update.
6786 * sparc-tdep.c (sparc_gdbarch_init): Update.
6787 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6788 * v850-tdep.c (v850_gdbarch_init): Update.
6789 * vax-tdep.c (vax_gdbarch_init): Update.
6790 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6791 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6792
6793 * config/arc/tm-arc.h: Update.
6794 * config/d30v/tm-d30v.h: Update.
6795 * config/fr30/tm-fr30.h: Update.
6796 * config/h8300/tm-h8300.h: Update.
6797 * config/h8500/tm-h8500.h: Update.
6798 * config/i386/tm-i386.h: Update.
6799 * config/i386/tm-ptx.h: Update.
6800 * config/i386/tm-symmetry.h: Update.
6801 * config/i960/tm-i960.h: Update.
6802 * config/m32r/tm-m32r.h: Update.
6803 * config/m68k/tm-delta68.h: Update.
6804 * config/m68k/tm-linux.h: Update.
6805 * config/m68k/tm-m68k.h: Update.
6806 * config/m88k/tm-m88k.h: Update.
6807 * config/mcore/tm-mcore.h: Update.
6808 * config/mips/tm-mips.h: Update.
6809 * config/mn10200/tm-mn10200.h: Update.
6810 * config/pa/tm-hppa.h: Update.
6811 * config/pa/tm-hppa64.h: Update.
6812 * config/sparc/tm-sp64.h: Update.
6813 * config/sparc/tm-sparc.h: Update.
6814 * config/sparc/tm-sparclet.h: Update.
6815 * config/z8k/tm-z8k.h: Update.
6816
5179e78f
AC
68172002-06-14 Andrew Cagney <cagney@redhat.com>
6818
6819 * Makefile.in (i386_linux_tdep_h): Define.
6820 (i386_tdep_h, i387_tdep_h): Define.
6821 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6822 $(i386_tdep_h) and $(i387_tdep_h).
6823 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6824
8201327c
MK
68252002-06-14 Mark Kettenis <kettenis@gnu.org>
6826
edf393ac
MK
6827 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6828 Already covered by the default.
6829
896fb97d
MK
6830 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6831 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6832 (i386_gdbarch_init): Initialize long_double_format and long_double
6833 bit.
6834
8201327c
MK
6835 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6836 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6837 Move these to ...
6838 * config/i386/i386sol2.mh: ... here.
6839 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6840 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6841 (SIGCONTEXT_PC_OFFSET): Remove define.
6842 (IN_SIGTRAMP): Remove define.
6843 * i386-sol2-tdep.c: New file.
6844
6845 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6846 * config/i386/tm-i386nw.h: Removed.
6847
6848 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6849 USE_STRUCT_CONVENTION): Remove defines.
6850 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6851 (get_longjmp_target): Remove prototype.
6852 (IN_SIGTRAMP): Remove define.
6853 (i386bsd_in_sigtramp): Remove prototype.
6854 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6855 function. Update comment accordingly
6856 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6857 (FRAME_SAVED_PC): Remove define.
6858 (i386bsd_frame_saved_pc): Remove prototype.
6859 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6860 GET_LONGJMP_TARGET): Remove defines.
6861 (get_longjmp_target): Remove prototype.
6862 (IN_SIGTRAMP): Remove define.
6863 (i386bsd_in_sigtramp): Remove prototype.
6864 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6865 function. Update comment accordingly
6866 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6867 (FRAME_SAVED_PC): Remove define.
6868 (i386bsd_frame_saved_pc): Remove prototype.
6869 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6870 Remove prototype.
6871 (USE_STRUCT_CONVENTION): Remove prototype.
6872 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6873 declaration.
6874 (_initialize_i386bsd_nat): Revise logic to determine some
6875 constants at compile time when compiling a native GDB. Warn if
6876 things don't match up with what we expect.
6877 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6878 Remove variables.
6879 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6880 to use date stored in `struct gdbarch_tdep'.
6881 (i386bsd_sigcontext_offset): Remove varaible.
6882 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6883 stored in `struct gdbarch_tdep'.
6884 (i386bsd_frame_saved_pc): Make static.
6885 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6886 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6887 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6888 i386fbsd4_sc_pc_offset): New variables.
6889 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6890 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6891 functions.
6892 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6893 functions.
6894 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6895 Modify the value of i386fbsd_sigtramp_start and
6896 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6897 i386fbsd_sigtramp_end.
6898 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6899 function.
6900
6901 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6902 define to i386-linux-tdep.h.
6903 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6904 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6905 defines.
6906 (i386_linux_register_name, i386_linux_register_byte,
6907 i386_linux_register_raw_size): Remove prototypes.
6908 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6909 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6910 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6911 TARGET_WRITE_PC): Remove defines.
6912 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6913 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6914 i386_linux_write_pc): Remove prototypes.
6915 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6916 (get_longjmp_target): Remove prototype.
6917 * i386-linux-tdep.h: New file.
6918 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6919 * i386-linux-tdep.c: Include "i386-tdep.h" and
6920 "i386-linux-tdep.h".
6921 (i386_linux_register_name, i386_linux_register_byte,
6922 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6923 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6924 Make static.
6925 (i386_linux_init_abi): New function.
6926 (_initialize_i386_linux_tdep): New function.
6927
6928 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6929 (i386_saved_pc_after_call): Remove prototype.
6930 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6931 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6932 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6933 (i386_register_name, i386_stab_reg_to_regnum,
6934 i386_dwarf_reg_to_regnum): Remove prototypes.
6935 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6936 SIZEOF_SSE_REGS): Remove defines.
6937 (REGISTER_BYTES): Remove define.
6938 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6939 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6940 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6941 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6942 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6943 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6944 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6945 (get_longjmp_target): Remove prototype.
6946 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6947 (sigtramp_saved_pc): Remove define.
6948 (i386v4_sigtramp_saved_pc): Remove prototype.
6949 * config/i386/tm-go32.h (FRAME_CHAIN,
6950 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6951 (i386go32_frame_saved_pc): Remove prototype.
6952 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6953 (get_longjmp_target): Remove prototype.
6954 * i386-tdep.h: Include "osabi.h".
6955 (enum i386_abi): Removed.
6956 (enum struct_return): New enum.
6957 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6958 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6959 sc_pc_offset members.
6960 (i386_gdbarch_register_os_abi): Remove prototype.
6961 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6962 I386_SSE_NUM_REGS): New defines.
6963 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6964 I386_SSE_SIZEOF_REGS): New defines.
6965 (i386_register_name, i386_register_byte, i386_register_raw_size):
6966 New prototypes.
6967 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6968 (i386bsd_sigtramp_saved_pc): New prototype.
6969 * i386-tdep.c: Don't include "elf-bfd.h".
6970 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6971 i386_frame_chain, i386_saved_pc_after_call): Make static.
6972 (i386_frame_saved_pc): Rewrite to call architecture dependent
6973 function to deal with signal handlers. Make static.
6974 (i386go32_frame_saved_pc): Removed.
6975 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6976 Removed.
6977 (i386_get_longjmp_target): New function.
6978 (default_struct_convention, pcc_struct_convention,
6979 reg_struct_convention, valid_conventions, struct_convention): New
6980 variables.
6981 (i386_use_struct_convention): New function.
6982 (i386v4_sigtramp_saved_pc): Renamed to
6983 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6984 (i386_pc_in_sigtramp): New function.
6985 (i386_abi_names): Removed.
6986 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6987 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6988 Removed.
6989 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6990 i386_gdbarch_register_os_abi): Removed.
6991 (struct i386_abi_handler): Removed.
6992 (i386_abi_handler_list): Removed.
6993 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6994 functions.
6995 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6996 i386_nw_init_abi): New functions.
6997 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6998 Use set_gdbarch_xxx() calls instead of relying on macros for a
6999 number of calls.
7000 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7001 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7002 Register the various architecture variants defined in this file.
7003
ad2f7632
DJ
70042002-06-14 Daniel Jacobowitz <drow@mvista.com>
7005
7006 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7007 (struct main_type): Remove arg_types member. Update comments for
7008 struct field.
7009 (TYPE_ARG_TYPES): Remove.
7010 (TYPE_FN_FIELD_ARGS): Update.
7011 (smash_to_method_type): Update prototype.
7012
7013 * c-typeprint.c (cp_type_print_method_args): Take method type
7014 instead of argument list. Use new argument layout. Simplify.
7015 (c_type_print_args): Use new argument layout. Simplify.
7016 (c_type_print_base): Update call to cp_type_print_method_args.
7017 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7018 argument; use die->type instead. Update call to
7019 smash_to_method_type.
7020 (read_structure_scope): Update call to dwarf2_add_member_fn.
7021 * gdbtypes.c (allocate_stub_method): Update comment.
7022 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7023 Use new argument layout.
7024 (check_stub_method): Use new argument layout. Don't count
7025 void as an argument.
7026 (print_arg_types): Update comments. Use new argument layout.
7027 (recursive_dump_type): Don't print arg_types member.
7028 * hpread.c (hpread_read_struct_type): Use new argument layout.
7029 (fixup_class_method_type): Likewise.
7030 (hpread_type_lookup): Likewise.
7031 * stabsread.c (read_type): Update calls to read_args and
7032 smash_to_method_type.
7033 (read_args): Use new argument layout. Simplify.
7034 * valops.c (typecmp): Use new argument layout. Update parameters
7035 and comments. Simplify.
7036 (hand_function_call): Use new argument layout.
7037 (search_struct_method): Update call to typecmp.
7038 (find_overload_match): Use new argument layout.
7039
6da02953
DJ
70402002-06-13 Daniel Jacobowitz <drow@mvista.com>
7041
7042 * NEWS: Mention multithreaded debug support for gdbserver.
7043
519b2366
DJ
70442002-06-13 Daniel Jacobowitz <drow@mvista.com>
7045
7046 * MAINTAINERS: Mention NEWS.
7047
6c0d6680
DJ
70482002-06-13 Daniel Jacobowitz <drow@mvista.com>
7049
7050 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7051 (struct mips_objfile_private, compare_pdr_entries): New.
7052 (non_heuristic_proc_desc): Read the ".pdr" section if it
7053 is present.
7054
6529d2dd
AC
70552002-06-12 Andrew Cagney <ac131313@redhat.com>
7056
7057 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7058 (arm_debug): New static variable.
7059 (_initialize_arm_tdep): Add ``set debug arm'' command.
7060
26216b98
AC
70612002-06-12 Andrew Cagney <ac131313@redhat.com>
7062
7063 * Makefile.in (sim_arm_h): Define.
7064 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7065 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7066 (arm_register_sim_regno): New function, map an internal REGNUM
7067 onto a simulator register number.
7068 (arm_gdbarch_init): Set register_sim_regno.
7069
814b3ba0
AH
70702002-06-09 Aldy Hernandez <aldyh@redhat.com>
7071
7072 * MAINTAINERS: Add self.
7073
475b0867
JB
70742002-06-11 Jim Blandy <jimb@redhat.com>
7075
919d772c
JB
7076 * source.c (source_info): Mention whether the symtab has
7077 information about preprocessor macros.
7078
475b0867
JB
7079 Call the command `info macro', not `show macro'.
7080 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7081 Fix error message.
7082 (_initialize_macrocmd): Register `info_macro_command' in
7083 `infolist', not `showlist'.
7084
9e364162
DJ
70852002-06-11 Daniel Jacobowitz <drow@mvista.com>
7086
7087 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7088 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7089 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7090 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7091 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7092 unconditionally.
7093 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7094 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7095 (_initialize_mips_tdep): Remove dead code.
7096 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7097 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7098 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7099 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7100 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7101 MIPS_LAST_FP_ARG_REGNUM): Remove.
7102
23aa4c72
ML
71032002-06-11 Michal Ludvig <mludvig@suse.cz>
7104
7105 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7106 (unwind_tmp_obstack_free, parse_frame_info)
7107 (update_context, cfi_read_fp, cfi_write_fp)
7108 (cfi_frame_chain, cfi_init_extra_frame_info)
7109 (cfi_virtual_frame_pointer): Use the above function.
264d1763 7110 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 7111
70eb15a4
CV
71122002-06-11 Corinna Vinschen <vinschen@redhat.com>
7113
7114 * v850-tdep.c (v850_type_is_scalar): New function.
7115 (v850_use_struct_convention): Match current gcc implementation
7116 as close as possible.
7117 (v850_push_arguments): Fix stack_offset handling. Don't write
7118 struct_addr into register. This is done by v850_store_struct_return.
7119 (v850_extract_return_value): Care for structs.
7120 (v850_store_return_value): Ditto.
7121 (v850_store_struct_return): Actually write address.
7122
482a4d06
ML
71232002-06-11 Michal Ludvig <mludvig@suse.cz>
7124
7125 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7126 without debug information too.
7127
d855c300
AC
71282002-06-10 Andrew Cagney <ac131313@redhat.com>
7129
7130 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7131 Make multi-arch pure.
7132 * gdbarch.h, gdbarch.c: Re-generate.
7133 * arm-tdep.c (arm_print_float_info): Update.
7134 * arch-utils.h (default_print_float_info): Update.
7135 * arch-utils.c (default_print_float_info): Update.
7136 * infcmd.c (float_info): Update call.
7137
dd12a101
AC
71382002-06-10 Andrew Cagney <ac131313@redhat.com>
7139
7140 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7141 the front of the initialize list.
7142
101dcfbe
AC
71432002-06-10 Andrew Cagney <ac131313@redhat.com>
7144
7145 * infrun.c (struct inferior_status): Replace fields
7146 selected_frame_address and selected_level with field
7147 selected_frame_id.
7148 (save_inferior_status): Update. Use get_frame_id.
7149 (struct restore_selected_frame_args): Delete.
7150 (restore_selected_frame): Update. Use frame_find_by_id.
7151 (restore_inferior_status): Update.
7152
7153 * breakpoint.h (struct breakpoint): Change type of
7154 watchpoint_frame to frame_id.
7155 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7156 call to get_current_frame.
7157 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7158 get_current_frame.
7159 (watchpoint_check): Use frame_find_by_id.
7160
7161 * frame.h (record_selected_frame): Delete declaration.
7162 * stack.c (record_selected_frame): Delete function.
7163
7164 * frame.h (struct frame_id): Define.
7165 (get_frame_id): Declare.
7166 (frame_find_by_id): Declare.
7167 * frame.c (frame_find_by_id): New function.
7168 (get_frame_id): New function.
7169
304270b6
AV
71702002-06-10 Andrey Volkov <avolkov@transas.com>
7171
7172 * ser-e7kpc.c: Fix duplicated define and call of
7173 _initialize_ser_e7000pc
7174
2f2cf184
DJ
71752002-06-09 Daniel Jacobowitz <drow@mvista.com>
7176
7177 * signals/signals.c (target_signal_from_host): Fix #ifdef
7178 SIGRTMIN case.
7179 (do_target_signal_to_host): Likewise.
7180
caaa3122
DJ
71812002-06-09 Daniel Jacobowitz <drow@mvista.com>
7182
7183 * mips-tdep.c (mips_find_abi_section): New function.
7184 (mips_gdbarch_init): Call it.
7185
6ac5df3a
MK
71862002-06-09 Mark Kettenis <kettenis@gnu.org>
7187
7188 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7189 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7190 after Andrew's 2002-06-08 gdbarch change.
7191
82ea117a
MK
71922002-06-09 Mark Kettenis <kettenis@gnu.org>
7193
7194 * i386-linux-nat.c (suppy_gregset): Don't supply
7195 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7196 register cache.
7197 (fill_gregset): Don't fetch it under the same circumstances.
7198
3c25f8c7
AC
71992002-06-09 Andrew Cagney <cagney@redhat.com>
7200
7201 * Makefile.in (callback_h): Define.
7202 (remote_sim_h): Update path to remote-sim.h.
7203 (remote-rdp.o): Add $(callback_h).
7204 (remote-sim.o): Use $(callback_h).
7205 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7206 * remote-rdp.c: Include "gdb/callback.h".
7207
1029b7fa
MK
72082002-06-09 Mark Kettenis <kettenis@gnu.org>
7209
7210 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7211 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7212
616675d3
AC
72132002-06-08 Andrew Cagney <ac131313@redhat.com>
7214
a3efda28
AC
7215 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7216 * rdi-share/serpardr.c: Ditto.
7217 * rdi-share/unixcomm.c: Ditto.
7218 * rdi-share/serdrv.c: Ditto.
7219 * rdi-share/hostchan.h: Ditto.
7220 * rdi-share/hostchan.c: Ditto.
7221 * rdi-share/host.h: Ditto.
7222 * rdi-share/devsw.c: Ditto.
7223
c5f10366
AC
7224 * objfiles.h: Change type of obj_private to void pointer.
7225 * pa64solib.c: Update copyright. Don't include "assert.h", use
7226 strcmp instead of STREQ, use LONGEST, do not use PTR
7227 * somsolib.c: Ditto.
7228
616675d3
AC
7229 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7230 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7231 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7232
e4b415d9
AC
72332002-06-08 Andrew Cagney <ac131313@redhat.com>
7234
7235 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7236 (default_get_saved_register): Delete function.
7237 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7238 generic_unwind_get_saved_register.
7239 * gdbarch.h, gdbarch.c: Re-generate.
7240
ca0d0b52
AC
72412002-06-08 Andrew Cagney <ac131313@redhat.com>
7242
7243 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7244 generic_func_frame_chain_valid.
7245 * gdbarch.h, gdbarch.c: Re-generate.
7246 * blockframe.c (generic_func_frame_chain_valid): Only check
7247 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7248 passing FP to PC_IN_CALL_DUMMY.
7249 Fix PR gdb/360.
7250
76860b5f
AC
72512002-06-08 Andrew Cagney <ac131313@redhat.com>
7252
7253 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7254 (register_gdbarch_data): Initialize init_p.
7255 (gdbarch_data): Initialize data pointer using the init function.
7256 (init_gdbarch_data): Delete function.
7257 (gdbarch_update_p): Update.
7258 (initialize_non_multiarch): Update.
7259 (struct gdbarch): Add field initialized_p.
7260 * gdbarch.h, gdbarch.c: Re-generate.
7261
8dda9770
ML
72622002-06-07 Michal Ludvig <mludvig@suse.cz>
7263
7264 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7265 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7266 better do the things actually here.
7267 * x86-64-tdep.c (x86_64_register_name2nr): New.
7268 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7269 (x86_64_gdbarch_init): Respect the above change.
7270 * x86-64-tdep.h (x86_64_register_name2nr)
7271 (x86_64_register_nr2name): Add prototypes.
7272 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7273
3d79a47c
MS
72742002-06-06 Michael Snyder <msnyder@redhat.com>
7275
7bd91a28
MS
7276 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7277 Delete extra braces and re-indent.
7278 (d10v_store_return_value): Char return values
3d79a47c
MS
7279 must be shifted over by one byte in R0.
7280 (d10v_extract_return_value): Delete extra braces, re-indent.
7281
095a4c96
EZ
72822002-06-06 Elena Zannoni <ezannoni@redhat.com>
7283
7284 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7285 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7286 (d10v_integer_to_address): Rewrite.
7287 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7288 the d10v specific functions which take care of converting to the
7289 correct space.
7290
e8a77ca4
EZ
72912002-06-06 Elena Zannoni <ezannoni@redhat.com>
7292
7293 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7294 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7295
4f2e4a4f
AC
72962002-06-02 Andrew Cagney <ac131313@redhat.com>
7297
7298 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7299 includes.
7300 * config/tm-linux.h: Ditto.
7301 * config/alpha/tm-alphalinux.h: Ditto.
7302 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7303 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7304 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7305 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7306 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7307 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7308 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7309 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7310 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7311 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7312 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7313 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7314 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7315 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7316 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7317 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7318 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7319 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7320 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7321 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7322 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7323 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7324 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7325 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7326 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7327 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7328 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7329 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7330 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7331 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7332 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7333 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7334 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7335 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7336 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7337 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7338 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7339
ae2ab2ce
AS
73402002-05-04 Aidan Skinner <aidan@velvet.net>
7341
7342 * ada-exp.tab.c: New file
7343 * ada-exp.y: New file
7344 * ada-lang.c: New file
7345 * ada-lang.h: New file
7346 * ada-lex.c: New file
7347 * ada-lex.l: New file
7348 * ada-tasks.c: New file
7349 * ada-typeprint.c: New file
7350 * ada-valprint.c: New file
7351
0ddd0135
JT
73522002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7353
7354 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7355 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7356
750fbacc
JT
73572002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7358
7359 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7360 insetead of ppc-linux-tdep.o.
7361 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7362 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7363
df94e18a
AC
73642002-06-02 Andrew Cagney <ac131313@redhat.com>
7365
7366 2002-05-07 Christian Groessler <chris@groessler.org>
7367 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7368 bit register contents for little endian hosts.
7369
1a38ab75
AC
73702002-06-01 Andrew Cagney <ac131313@redhat.com>
7371
7372 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7373 any maintainer.
7374
8b1632ac
AC
73752002-06-01 Andrew Cagney <ac131313@redhat.com>
7376
7377 * gdbarch.h: Regenerate.
7378
627054c8
AC
73792002-06-01 Andrew Cagney <ac131313@redhat.com>
7380
7381 * MAINTAINERS: Add everyone to write-after-approval list.
7382
4f460812
AC
73832002-06-01 Andrew Cagney <ac131313@redhat.com>
7384
7385 * stack.c (frame_info): Use frame_register_unwind instead of
7386 saved_regs. Mention when the SP is on the stack or in a register.
7387
7388 * frame.h (frame_register_unwind_ftype): Define. Document.
7389 (struct frame_info): Add field register_unwind and
7390 register_unwind_cache.
7391 (frame_register_unwind): Declare.
7392 (generic_unwind_get_saved_register): Declare.
7393
7394 * frame.c (frame_register_unwind): New function.
7395 (generic_unwind_get_saved_register): New function.
7396
7397 * blockframe.c (generic_call_dummy_register_unwind): New function.
7398 (frame_saved_regs_register_unwind): New function.
7399 (set_unwind_by_pc): New function.
7400 (create_new_frame): New function.
7401 (get_prev_frame): New function.
7402
de888f76
AC
74032002-05-30 Andrew Cagney <ac131313@redhat.com>
7404
7405 * a29k-share/: Delete directory.
7406 * remote-vx29k.c: Delete file.
7407
2f2c3626
JT
74082002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7409
7410 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7411 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7412
9ce5c36a
JT
74132002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7414
7415 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7416 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7417 (sparc64nbsd-nat.o)
7418 (sparcnbsd-nat.o)
7419 (sparcnbsd-tdep.o): New dependency lists.
7420 * NEWS: Note new UltraSPARC NetBSD native configuration.
7421 * configure.host (sparc64-*-netbsd*): New host.
7422 * configure.tgt (sparc-*-netbsdelf*)
7423 (sparc-*-netbsd*): Set gdb_target to nbsd.
7424 (sparc64-*-netbsd*): New target.
7425 * sparc64nbsd-nat.c: New file.
7426 * sparcnbsd-nat.c: New file.
7427 * sparcnbsd-tdep.c: New file.
7428 * sparcnbsd-tdep.h: New file.
7429 * config/sparc/nbsd.mt: New file.
7430 * config/sparc/nbsd64.mh: New file.
7431 * config/sparc/nbsd64.mt: New file.
7432 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7433 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7434 (HOST_IPC): Remove.
7435 * config/sparc/nbsdaout.mt: Remove.
7436 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7437 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7438 (HOST_IPC): Remove.
7439 * config/sparc/nbsdelf.mt: Remove.
7440 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7441 sparc-nat.c compatiblity defines.
7442 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7443 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7444 * config/sparc/tm-nbsd64.h: New file.
7445 * config/sparc/tm-nbsdaout.h: Remove.
7446 * config/sparc/xm-nbsd.h: Remove.
7447
ef3cf062
JT
74482002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7449
7450 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7451 * sparc-tdep.c: Include osabi.h.
7452 (gdbarch_tdep): Add osabi member.
7453 (_initialize_sparc_tdep): Use gdbarch_register.
7454 (sparc_gdbarch_init): Use generic OS ABI framework.
7455 (sparc_dump_tdep): New function.
7456
ee8ff470
KB
74572002-05-30 Kevin Buettner <kevinb@redhat.com>
7458
7459 * corefile.c (do_captured_read_memory_integer): Return non-zero
7460 result.
7461 (safe_read_memory_integer): Copy result of memory read when
7462 status is non-zero. Also, add comments.
7463
7b112f9c
JT
74642002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7465
7466 * Makefile.in (ppc_tdep_h): Define.
7467 (ppc-linux-nat.o)
7468 (ppc-linux-tdep.o)
7469 (rs6000-tdep.o): Use $(ppc_tdep_h).
7470 (ppc-sysv-tdep.o)
7471 (ppcnbsd-nat.o)
7472 (ppcnbsd-tdep.o): New dependency lists.
7473 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7474 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7475 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7476 (ppc_sysv_abi_broken_use_struct_convention)
7477 (ppc_sysv_abi_use_struct_convention)
7478 (ppc_sysv_abi_push_arguments): Move to...
7479 * ppc-sysv-tdep.c: ...here.
7480 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7481 * rs6000-tdep.c (process_note_abi_tag_sections)
7482 (get_elfosabi): Remove.
7483 (rs6000_gdbarch_init): Use generic OS ABI framework.
7484 (rs6000_dump_tdep): New function.
7485 (_initialize_rs6000_tdep): Use gdbarch_register.
7486 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7487 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7488 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7489 of ppc-linux-tdep.o.
7490 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7491 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7492 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7493 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7494 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7495 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7496
480dd42a
JB
74972002-05-29 Jim Blandy <jimb@redhat.com>
7498
7499 * macroscope.c (default_macro_scope): Put `void' in empty argument
7500 list.
7501
4182591f
AC
75022002-05-29 Andrew Cagney <ac131313@redhat.com>
7503
7504 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7505 * arch-utils.c: Include "sim-regno.h".
7506 * gdbarch.sh: Don't include "sim-regno.h".
7507 * gdbarch.h, gdbarch.c: Regenerate.
7508 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7509 here.
7510 * arch-utils.h (legacy_register_sim_regno): To here.
7511 * remote-sim.c (legacy_register_sim_regno): Move function from
7512 here.
7513 * arch-utils.c (legacy_register_sim_regno): To here.
7514
8238d0bf
AC
75152002-05-28 Andrew Cagney <ac131313@redhat.com>
7516
7517 * sim-regno.h: New file.
7518 * Makefile.in (sim_regno_h): Define.
7519 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7520 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7521 (legacy_register_sim_regno): New function.
7522 (one2one_register_sim_regno): New function.
7523 (gdbsim_fetch_register): Rewrite.
7524 (gdbsim_store_register): Only store a register when
7525 REGISTER_SIM_REGNO is valid.
7526 * d10v-tdep.c: Include "sim-regno.h".
7527 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7528 (d10v_ts3_register_sim_regno): Ditto.
7529 * gdbarch.sh: Include "sim-regno.h".
7530 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7531 * gdbarch.h, gdbarch.c: Regenerate.
7532 * arch-utils.h (default_register_sim_regno): Delete declaration.
7533 * arch-utils.c (default_register_sim_regno): Delete function.
7534
485721b1
JT
75352002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7536
7537 * ppcnbsd-nat.c: Rewrite.
7538 * ppcnbsd-tdep.c: New file.
7539 * ppcnbsd-tdep.h: New file.
7540 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7541 solib.o, and solib-svr4.o.
7542 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7543 nbsd-tdep.o, and corelow.o.
7544
697f244d
AC
75452002-05-28 Andrew Cagney <ac131313@redhat.com>
7546
7547 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7548 `tr' and `sed'. Mention that `broken' targets are not expected to
7549 build.
7550
f08caad1 75512002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
7552
7553 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7554 Let PC point right after the prologue before looking up symbols.
7555
3139facc
MH
75562002-05-27 Martin M. Hunt <hunt@redhat.com>
7557
7558 * i386-tdep.c (i386_register_virtual_type): Return
7559 builtin_type_vec128i for SSE registers.
7560
7561 * gdbtypes.h (builtin_type_vec128i): Declare.
7562
7563 * gdbtypes.c (build_builtin_type_vec128i): New function.
7564 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7565 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7566 (build_gdbtypes): Initialize new builtin vector types.
7567 (_initialize_gdbtypes): Register new vector types with gdbarch.
7568
6e3ba3b8
JT
75692002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7570
7571 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7572 since it has been multi-arch'd.
7573 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7574 Move Alpha and VAX multi-arch news entries to same section
7575 as other multi-arch news.
7576
93d5585d
JT
75772002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7578
7579 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7580 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7581 static. Rename some register numbers to put them in ns32k-tdep
7582 private namespace.
7583 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7584 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7585 functions.
7586 (_initialize_ns32k_tdep): Use gdbarch_register.
7587 * ns32k-tdep.h: New file.
7588 * ns32knbsd-tdep.c: New file.
7589 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7590 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7591 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7592 REGISTER_BYTES, REGISTER_BYTE): Remove.
7593 * config/ns32k/tm-ns32k.h: New file.
7594 * config/ns32k/tm-umax.h: Remove.
7595
efb2c70e
JT
75962002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7597
7598 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7599 ns32k_store_struct_return, ns32k_extract_return_value,
7600 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7601 functions.
7602 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7603 ns32k_saved_pc_after_call.
7604 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7605 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7606 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7607 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7608 ns32k_extract_struct_value_address.
7609
7bcc927b
JT
76102002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7611
7612 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7613 ns32k_fix_call_dummy): New.
7614 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7615 ns32k_call_dummy_words.
7616 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7617 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7618 CALL_DUMMY_NARGS): Remove.
7619 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7620
78f9d765
JT
76212002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7622
7623 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7624 ns32k_frame_saved_pc, ns32k_frame_args_address,
7625 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7626 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7627 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7628 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7629 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7630 (BREAKPOINT): Remove..
7631 (FRAME_CHAIN): Define as ns32k_frame_chain.
7632 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7633 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7634 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7635 (FRAME_FIND_SAVED_REGS): Remove.
7636 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7637 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7638 (POP_FRAME): Define as ns32k_pop_frame.
7639
f2c762e0
JT
76402002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7641
7642 * ns32k-tdep.c (ns32k_register_byte_32082,
7643 ns32k_register_byte_32382, ns32k_register_raw_size,
7644 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7645 functions.
7646 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7647 ns32k_register_byte_32382.
7648 * config/ns32k/tm-umax.h: Update copyright years.
7649 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7650 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7651 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7652 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7653 (ns32k_get_enter_addr): Fix prototype.
7654
af137673
JT
76552002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7656
7657 * ns32k-tdep.c: Update copyright years.
7658 (ns32k_register_name_32082): New function.
7659 (ns32k_register_name_32382): Ditto.
7660 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7661 (REGISTER_NAME): Define as ns32k_register_name_32382.
7662 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7663 (REGISTER_NAME): Define as ns32k_register_name_32082.
7664
a8bc7b56
JB
76652002-05-24 Jim Blandy <jimb@redhat.com>
7666
7667 * dwarf2read.c (free_line_header): Use xfree, not free.
7668
83a45910
JT
76692002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7670
7671 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7672 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7673
0db71247
AC
76742002-05-23 Andrew Cagney <ac131313@redhat.com>
7675
7676 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7677
b9e5e4dd
AC
76782002-05-23 Andrew Cagney <ac131313@redhat.com>
7679
7680 From Ross Alexander at NEC Europe:
7681 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7682
de530e84
MS
76832002-05-23 Michael Snyder <msnyder@redhat.com>
7684
7685 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7686 for input, rather than parse_and_eval_address.
7687
b91b96f4
AC
76882002-05-23 Andrew Cagney <ac131313@redhat.com>
7689
7690 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7691 * Makefile.in (sim_d10v_h): Update definition.
7692
8b279e7a
AC
76932002-05-24 Andrew Cagney <cagney@redhat.com>
7694
7695 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7696 change `2002-05-22 Michael Snyder' below.
7697 (d10v_push_arguments): Ditto.
7698 (d10v_extract_return_value): Ditto.
7699
0a3d0425
JB
77002002-05-23 Jim Blandy <jimb@redhat.com>
7701
7702 * macrotab.c (check_for_redefinition): Don't complain if the new
7703 definition is the same as the previous one. Take more arguments
7704 to allow the comparison.
7705 (macro_define_object, macro_define_function): Pass more arguments
7706 to check_for_redefinition.
7707
78eac43e
MS
77082002-05-22 Michael Snyder <msnyder@redhat.com>
7709
7710 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7711 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7712 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7713 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7714 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7715 Add a temp variable to save a call (and a memory read).
7716 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7717 if possible (so that PC_IN_CALL_DUMMY will work).
7718
9bc1edb8
CV
77192002-05-22 Corinna Vinschen <vinschen@redhat.com>
7720
7721 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7722
005ef3d2
ML
77232002-05-22 Michal Ludvig <mludvig@suse.cz>
7724
7725 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7726 fde->cie_ptr.
7727 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7728 (dwarf2_build_frame_info): Add offset to fde->initial_location
7729 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
7730 (execute_stack_op): Change type of 'result' from ULONGEST to
7731 CORE_ADDR.
005ef3d2 7732
fcf4f891
JT
77332002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7734
7735 * config/alpha/tm-nbsd.h: Include solib.h.
7736
cfef91e4
JT
77372002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7738
7739 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7740 assumptions about the host's byte order.
7741
9964235a
JT
77422002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7743
7744 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7745 to dependency list.
7746 * alphanbsd-tdep.c: Include solib-svr4.h.
7747 * shnbsd-tdep.c: Ditto.
7748
9eeef8ef
JT
77492002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7750
7751 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7752 nbsd-tdep.h to dependency list.
7753 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7754 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7755 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7756 nbsdaout.mh and nbsdelf.mh consistently.
7757 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7758 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7759 nbsdaout.mt and nbsdelf.mh consistently.
7760 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7761 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7762 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7763 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7764 a.out shared library stuff from here...
7765 * config/nm-nbsdaout.h: ...to here.
7766 * config/tm-nbsd.h: Remove.
7767 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7768 * config/arm/nbsd.mh: Remove.
7769 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7770 nbsd-tdep.o.
7771 * config/arm/nbsdaout.mh: New file.
7772 * config/arm/nbsdelf.mh: New file.
7773 * config/arm/nm-nbsdaout.h: New file.
7774 * config/i386/nbsd.mh: Remove.
7775 * config/i386/nbsd.mt: Remove.
7776 * config/i386/nbsdaout.mh: New file.
7777 * config/i386/nbsdaout.mt: New file.
7778 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7779 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7780 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7781 i386_register_u_addr): Remove.
7782 * config/i386/nm-nbsdaout.h: New file.
7783 * config/i386/nm-nbsdelf.h: Remove.
7784 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7785 (USE_STRUCT_CONVENTION): Remove.
7786 * config/i386/tm-nbsdaout.h: New file.
7787 * config/i386/tm-nbsdelf.h: Remove.
7788 * config/m68k/nbsd.mh: Remove.
7789 * config/m68k/nbsd.mt: Remove.
7790 * config/m68k/nbsdaout.mh: New file.
7791 * config/m68k/nbsdaout.mt: New file.
7792 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7793 * config/m68k/nm-nbsdaout.h: New file.
7794 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7795 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7796 * config/ns32k/nbsd.mh: Remove.
7797 * config/ns32k/nbsd.mt: Remove.
7798 * config/ns32k/nbsdaout.mh: New file.
7799 * config/ns32k/nbsdaout.mt: New file.
7800 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7801 * config/ns32k/nm-nbsdaout.h: New file.
7802 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7803 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7804 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7805 (SVR4_SHARED_LIBS): Remove.
7806 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7807 * config/sparc/nbsd.mh: Remove.
7808 * config/sparc/nbsd.mt: Remove.
7809 * config/sparc/nbsdaout.mh: New file.
7810 * config/sparc/nbsdaout.mt: New file.
7811 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7812 * config/sparc/nbsdelf.mt: New file.
7813 * config/sparc/nm-nbsdaout.h: New file.
7814 * config/sparc/nm-nbsdelf.h: Remove.
7815 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7816 * config/sparc/tm-nbsdaout.h: New file.
7817
257ce470
JT
78182002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7819
7820 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7821 mipsnbsd-tdep.c
7822 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7823
76a6d5fe
JT
78242002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7825
7826 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7827 shnbsd-nat.c.
7828 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7829
45888261
JT
78302002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7831
7832 * NEWS: Note new MIPS NetBSD native configuration.
7833 * configure.host (mips*-*-netbsd*): New host.
7834 * configure.tgt (mips*-*-netbsd*): New target.
7835 * mipsnbsd-nat.c: New file.
7836 * mipsnbsd-tdep.c: New file.
7837 * mipsnbsd-tdep.h: New file.
7838 * config/mips/nbsd.mh: New file.
7839 * config/mips/nbsd.mt: New file.
7840 * config/mips/nm-nbsd.h: New file.
7841 * config/mips/tm-nbsd.h: New file.
7842
70f80edf
JT
78432002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7844
7845 * Makefile.in (SFILES): Add osabi.c.
7846 (COMMON_OBS): Add osabi.o.
7847 (osabi.o): New dependency list.
7848 * osabi.c: New file.
7849 * osabi.h: New file.
7850 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7851
7852 * Makefile.in (alpha_tdep_h): Define and use instead of
7853 alpha-tdep.h.
7854 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7855 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7856 Remove.
7857 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7858 * alpha-tdep.h: Include osabi.h.
7859 (alpha_abi): Remove.
7860 (gdbarch_tdep): Use generic OS ABI framework.
7861 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7862 gdbarch_register_osabi.
7863 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7864 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7865 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7866
7867 * Makefile.in (sh_tdep_h): Add osabi.h.
7868 * sh-tdep.h (sh_osabi): Remove.
7869 (gdbarch_tdep): Use generic OS ABI framework.
7870 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7871 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7872 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7873 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7874
7875 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7876 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7877 gdbarch_register_osabi.
7878 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7879 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7880 (get_elfosabi): Rename to...
7881 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7882 ABI framework support routines.
7883 (arm_gdbarch_init): Use generic OS ABI framework.
7884 (arm_dump_tdep): Likewise.
7885 (_initialize_arm_tdep): Likewise.
7886 * arm-tdep.h: Include osabi.h.
7887 (arm_abi): Remove.
7888 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7889 osabi member.
7890 (arm_gdbarch_register_os_abi): Remove prototype.
7891 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7892 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7893
7894 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7895 * mips-tdep.c: Include osabi.h.
7896 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7897 OS ABI framework.
7898
d194345b
KH
78992002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7900
7901 * h8300-tdep.c: Fix formatting.
7902
70c6b0d1
EZ
79032002-05-20 Elena Zannoni <ezannoni@redhat.com>
7904
7905 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7906 printing vector registers.
7907
165b8e33
AC
79082002-05-19 Andrew Cagney <ac131313@redhat.com>
7909
7910 From Fernando Nasser:
7911 * remote.c (remote_async_open_1): Re-throw the exception when the
7912 connection fails.
7913 (remote_cisco_open): Ditto.
7914 (remote_open_1): Ditto.
7915
36918e70
AC
79162002-05-19 Andrew Cagney <ac131313@redhat.com>
7917
7918 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7919 (remote_start_remote): Add uiout parameter. Pass through to
7920 remote_start_remote_dummy.
7921 (remote_open_1): Use catch_exception instead of catch_errors.
7922 (remote_async_open_1): Ditto.
7923 (remote_cisco_open): Ditto.
7924
ae44c0c4
AC
79252002-05-19 Andrew Cagney <ac131313@redhat.com>
7926
7927 * remote.c (remote_start_remote): Replace PTR with void pointer.
7928 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7929 static.
7930
8efe637d
AC
79312002-05-18 Andrew Cagney <ac131313@redhat.com>
7932
7933 * gdb_indent.sh: Allow the script to be run in the sim directory.
7934
2f1b5984
MK
79352002-05-18 Mark Kettenis <kettenis@gnu.org>
7936
f0f625e2
MK
7937 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7938 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7939
2f1b5984
MK
7940 * corelow.c (core_open): Only call set_gdbarch_from_file if
7941 exec_bfd is NULL.
7942
fc974602
AV
79432002-05-17 Andrey Volkov <avolkov@transas.com>
7944
7945 * h8300-tdep.c: Add support of EXR register
7946 * config/h8300/tm-h8300.h: Ditto.
7947
906709f4
AV
79482002-05-17 Andrey Volkov <avolkov@transas.com>
7949
7950 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7951
6e591d68
AV
79522002-05-17 Andrey Volkov <avolkov@transas.com>
7953
7954 * h8300-tdep.c: Change literal regnums to REGNO.
7955
84f0252a
JB
79562002-05-17 Jim Blandy <jimb@redhat.com>
7957
e0e9281e
JB
7958 * NEWS: Note addition of macro support.
7959
84f0252a
JB
7960 Expand preprocessor macros in C expressions.
7961 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7962 (scan_macro_expansion, scanning_macro_expansion,
7963 finished_macro_expansion): New function declarations.
7964 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7965 variable declarations.
7966 * parser-defs.h (expression_context_pc): New declaration.
7967 * parse.c (expression_context_pc): New variable.
7968 (parse_exp_1): Set expression_context_pc, as well as
7969 expression_context_block.
7970 * c-exp.y (yylex): If we're not already reading the result of a
7971 macro expansion, try to macro-expand the next token. When we're
7972 done scanning a macro expansion, switch back to the mainline text.
7973 Commas and `if's in a macro's expansion don't terminate the input.
7974 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7975 (macro_original_text, macro_expanded_text,
7976 expression_macro_lookup_func, expression_macro_lookup_baton): New
7977 variables.
7978 (scan_macro_expansion, scanning_macro_expansion,
7979 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7980 c_preprocess_and_parse): New functions.
7981 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7982 c_preprocess_and_parse, instead of c_parse.
7983 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7984 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7985
1c509ca8
JR
7986Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7987
7988 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7989 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7990 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7991
2250ee0c
CV
79922002-05-17 Corinna Vinschen <vinschen@redhat.com>
7993
7994 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7995
ab3b8126
JT
79962002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7997
7998 * Makefile.in (sh_tdep_h): Define and use.
7999 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8000 register enum): Move to...
8001 * * sh-tdep.h: ...here.
8002 * sh-tdep.c: Include sh-tdep.h.
8003 * sh3-rom.c: Likewise.
8004 * shnbsd-tdep.c: Likewise.
8005
ed9d4749
MS
80062002-05-16 Michael Snyder <msnyder@redhat.com>
8007
8008 * arm-tdep.c: Spelling fix in comment.
8009
2e276125
JB
80102002-05-16 Jim Blandy <jimb@redhat.com>
8011
6821892e
JB
8012 Add commands for manually expanding macros and showing their
8013 definitions.
8014 * macrocmd.c, macroscope.c, macroscope.h: New files.
8015 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8016 (macroscope_h): New variable.
8017 (HFILES_NO_SRCDIR): Add macroscope.h.
8018 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8019 (macroscope.o, macrocmd.o): New rules.
8020
2e276125
JB
8021 Teach the Dwarf 2 reader to read macro information.
8022 * dwarf2read.c: #include "macrotab.h".
8023 (dwarf_macinfo_buffer): New variable.
8024 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8025 dwarf_macinfo_size.
8026 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8027 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8028 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8029 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8030 dwarf2_macro_spaces_in_definition): New complaints.
8031 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8032 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8033 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8034 the partial symbol table.
8035 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8036 from what's recorded in the partial symbol table.
8037 (read_file_scope): If the compilation unit has a
8038 `DW_AT_macro_info' attribute, read its macro information.
8039 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8040
2f53fe6c
DJ
80412002-05-16 Daniel Jacobowitz <drow@mvista.com>
8042
8043 Fix PR gdb/546
8044 * ser-tcp.c: Don't include <netinet/udp.h>.
8045
2be99286
SC
80462002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8047
8048 * MAINTAINERS: Update my email address.
8049
c9af212b 80502002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
8051
8052 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8053 include file of the same name.
8054
bf5f1a52
CV
80552002-05-16 Corinna Vinschen <vinschen@redhat.com>
8056
8057 * configure.tgt: Mark v850 as multi-arched.
8058 * config/v850/tm-v850.h: Remove file.
8059 * config/v850/v850.mt: Eliminate TM_FILE.
8060
435e042a
CV
80612002-05-16 Corinna Vinschen <vinschen@redhat.com>
8062
8063 * v850-tdep.c: Full multi-arch.
8064 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8065 Define GDB_MULTI_ARCH to 2.
8066
9819c6c8
PM
80672002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8068
8069 * p-exp.y (current_type): New static variable.
8070 Carries the type of the expression at the position that is parsed.
8071 (push_current_type, pop_current_type): Two new functions. Used
8072 to store/restore current_type in expression on specific tokens.
c9af212b
RE
8073 (search_field): New static variable. Set to one after parsing a point
8074 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
8075 (FIELDNAME): New token. After a point only a token belonging to
8076 current_type type definition is allowed.
8077 (all over token rules): reset and change current_type according
8078 to rules.
8079 (exp '[' rule): insert implicit array index field if
8080 exp is a pascal string type.
8081
3a06899a
CV
80822002-05-16 Corinna Vinschen <vinschen@redhat.com>
8083
8084 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8085 frame info. Use frame_info's saved_regs instead of matching member
8086 in extra_frame_info throughout.
8087 (v850_frame_init_saved_regs): New function.
8088 (v850_init_extra_frame_info): Move most functionality into
8089 v850_frame_init_saved_regs().
8090 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8091 (v850_frame_find_saved_regs): Remove declaration.
8092 (FRAME_FIND_SAVED_REGS): Remove definition.
8093 (v850_frame_init_saved_regs): Add declaration.
8094 (FRAME_INIT_SAVED_REGS): Add definition.
8095
6ed14b0e
CV
80962002-05-16 Corinna Vinschen <vinschen@redhat.com>
8097
8098 * v850-tdep.c: Begin multi-arch'ing v850.
8099 (v850_target_architecture_hook): Remove function.
8100 (v850_gdbarch_init): New function. Add code previously in
8101 v850_target_architecture_hook().
8102 (_initialize_v850_tdep): Don't set target_architecture_hook.
8103 Call register_gdbarch_init() instead.
8104
42725910
DJ
81052002-05-16 Daniel Jacobowitz <drow@mvista.com>
8106
8107 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8108 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8109 (fixup_class_method_type): Likewise.
8110
99d9066e
JB
81112002-05-15 Jim Blandy <jimb@redhat.com>
8112
8113 Add macro structures to GDB's symbol tables. Nobody puts anything
8114 in them yet.
8115 * symtab.h (struct symtab): New member: `macro_table'.
8116 * buildsym.h (pending_macros): New global variable.
8117 * buildsym.c: #include "macrotab.h".
8118 (buildsym_init): Initialize `pending_macros'.
8119 (end_symtab): If we found macro information while reading a CU's
8120 debugging info, do build a symtab structure for it. Make the
8121 symtab point to the macro information, and clear the
8122 `pending_macros' pointer which held it while we were reading the
8123 debug info.
8124 (really_free_pendings): Free any pending macro table.
8125 * objfiles.h (struct objfile): New member: `macro_cache'.
8126 * objfiles.c (allocate_objfile): Set allocate and free functions
8127 for the macro cache's objstack.
8128 (free_objfile): Empty the macro cache's obstack.
8129 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8130 set new allocate and free functions for it.
8131 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8132 free functions for the macro cache's objstack. (Why is this
8133 function building its own objfile?)
8134 * symmisc.c (print_objfile_statistics): Print statistics on the
8135 macro bcache.
8136 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8137
c899585b
RE
81382002-05-15 Richard Earnshaw <rearnsha@arm.com>
8139
8140 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8141 (REGISTER_U_ADDR): Delete definition.
8142 (arm_register_u_addr): Delete declaration.
8143
a6cdd8c5
RE
81442002-05-15 Richard Earnshaw <rearnsha@arm.com>
8145
8146 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8147 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8148
c97dcfc7
AC
81492002-05-14 Andrew Cagney <ac131313@redhat.com>
8150
8151 * regcache.c (register_valid): Revise comments refering to "Not
8152 available" and "unavailable".
8153 * frame.c (frame_register_read): Ditto.
8154 * findvar.c (value_of_register): Ditto.
8155
93021b7d
AC
81562002-05-15 Andrew Cagney <cagney@redhat.com>
8157
8158 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8159 (remote-sim.o): Update dependencies.
8160 (d10v-tdep.o): Specify dependencies.
8161 (sim_d10v_h): Define.
8162
a86bc61c
JB
81632002-05-14 Jim Blandy <jimb@redhat.com>
8164
8165 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8166 * macrotab.c (macro_lookup_inclusion, find_definition,
8167 new_macro_table): Same.
8168
8169 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8170 not `! strcmp ()'. This is a dubious improvement.
8171 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8172
8173 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8174 although it's not necessary, to avoid a warning.
8175
2fdde8f8
DJ
81762002-05-14 Daniel Jacobowitz <drow@mvista.com>
8177
8178 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8179 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8180 TYPE_INSTANCE_FLAGS.
8181 (struct main_type): New.
8182 (struct type): Move most members to struct main_type. Change
8183 cv_type and as_type to new type_chain member. Add instance_flags.
8184 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8185 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8186 (finish_cv_type): Remove prototype.
8187 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8188 Set TYPE_CHAIN.
8189 (alloc_type_instance): New function.
8190 (smash_type): New function.
8191 (make_pointer_type, make_reference_type, make_function_type)
8192 (smash_to_member_type, smash_to_method_type): Call smash_type.
8193 (make_qualified_type): New function.
8194 (make_type_with_address_space): Call make_qualified_type.
8195 (make_cv_type): Likewise.
8196 (finish_cv_type): Remove unnecessary function.
8197 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8198 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8199 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8200 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8201 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8202 * hpread.c (hpread_read_struct_type): Likewise.
8203 * stabsread.c (read_struct_type): Likewise.
8204
843fedf4
EZ
82052002-05-14 Elena Zannoni <ezannoni@redhat.com>
8206
8207 * configure.tgt: Add a catch all sh* target, for cases like
8208 sh[2,3,4]-elf and sh-hms.
8209
05a6c72c
KS
82102002-05-14 Keith Seitz <keiths@redhat.com>
8211
8212 * event-loop.c (create_file_handler): Don't do anything but
8213 update data when we are given a fd which we are already
8214 monitoring.
8215
5d085aaf
ML
82162002-05-14 Michal Ludvig <mludvig@suse.cz>
8217
8218 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8219 (update_context): Use __func__ in warnings.
8220
9db8d71f
DJ
82212002-05-14 Daniel Jacobowitz <drow@mvista.com>
8222
8223 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8224 and tcp_close to net_open and net_close.
8225 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8226 using UDP if requested. Don't try to disable Nagle on UDP
8227 sockets.
8228 * remote.c (remote_serial_open): New function. Warn about UDP.
8229 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8230
5dbc6baa
EZ
82312002-05-13 Elena Zannoni <ezannoni@redhat.com>
8232
8233 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8234
cc3023f7
EZ
82352002-05-13 Elena Zannoni <ezannoni@redhat.com>
8236
8237 * configure.tgt: Remove sh-hms target.
8238 * MAINTAINERS: Don't list sh-hms as a separate target.
8239
ec2bcbe7
JB
82402002-05-13 Jim Blandy <jimb@redhat.com>
8241
8242 Add first preprocessor macro-expansion files.
8243 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8244 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8245 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8246 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8247 (COMMON_OBS): Add macrotab.o, macroexp.o.
8248 (macroexp.o, macrotab.o): New rules.
8249
6d531722
AC
82502002-05-13 Andrew Cagney <ac131313@redhat.com>
8251
8252 * config/m88k/tm-m88k.h: Update copyright.
8253 (m88k_target_write_pc): Declare
8254 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8255 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8256 (SHIFT_INST_REGS): Update definition.
8257 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8258 using old definition of TARGET_WRITE_PC.
8259 * regcache.c (generic_target_write_pc): Delete code handling
8260 NNPC_REGNUM.
8261 * gdbarch.sh (NNPC_REGNUM): Delete.
8262 * gdbarch.h, gdbarch.c: Regenerate.
8263
3e3f2739
RE
82642002-05-13 Richard Earnshaw <rearnsha@arm.com>
8265
8266 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8267 builtin reg number.
8268
0004e5a2
DJ
82692002-05-13 Daniel Jacobowitz <drow@mvista.com>
8270
8271 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8272 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8273 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8274 access macros.
8275 * c-typeprint.c (cp_type_print_method_args): Likewise.
8276 (c_type_print_args): Likewise.
8277 * d10v-tdep.c (d10v_push_arguments): Likewise.
8278 (d10v_extract_return_value): Likewise.
8279 * expprint.c (print_subexp): Likewise.
8280 * gdbtypes.c (lookup_primitive_typename): Likewise.
8281 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8282 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8283 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8284 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8285 (TYPE_VECTOR): Likewise.
8286 * hpread.c (hpread_read_struct_type)
8287 (fix_static_member_physnames, fixup_class_method_type)
8288 (hpread_type_lookup): Likewise.
8289 * mdebugread.c (parse_symbol, parse_type): Likewise.
8290 * p-lang.c (is_pascal_string_type): Likewise.
8291 * valops.c (hand_function_call): Likewise.
8292 * x86-64-tdep.c (classify_argument): Likewise.
8293
8294 * hpread.c (hpread_read_function_type)
8295 (hpread_read_doc_function_type): Call replace_type.
8296 * dstread.c (create_new_type): Delete.
8297 (decode_dst_structure, process_dst_function): Call alloc_type.
8298 Use type access macros.
8299
dff95cc7
MK
83002002-05-12 Mark Kettenis <kettenis@gnu.org>
8301
8302 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8303 the're not supported by the current architecture.
8304 (i387_fill_fxsave): Likewise.
8305
bbcd32ad
FF
83062002-05-12 Fred Fish <fnf@redhat.com>
8307
8308 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8309 sect_index_xxx members to index the first slot in section_offsets
8310 if all of the section_offsets are zero.
8311
89cf4787
MK
83122002-05-12 Mark Kettenis <kettenis@gnu.org>
8313
8314 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8315 checked in with last change.
8316
1f77ffc5
MK
83172002-05-12 Mark Kettenis <kettenis@gnu.org>
8318
8319 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8320 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8321 config.sub.
8322
89b8b4a9
DJ
83232002-05-12 Daniel Jacobowitz <drow@mvista.com>
8324
8325 * Makefile.in: Update dependencies.
8326
14a5e767
AC
83272002-05-11 Andrew Cagney <ac131313@redhat.com>
8328
8329 * language.c (local_hex_string_custom): Simplify. Do not depend
8330 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8331
8332 * memattr.c (mem_info_command): Replace calls to
8333 longest_local_hex_string and longest_local_hex_string_custom.
8334 * buildsym.c (make_blockvector): Ditto.
8335 * solib.c (info_sharedlibrary_command): Ditto.
8336 * tracepoint.c (tracepoints_info): Ditto.
8337 * symtab.c (print_msymbol_info): Ditto.
8338
8339 * language.c (local_hex_string): Delete.
8340 (local_hex_string_custom): Delete.
8341 (longest_local_hex_string): Rename to local_hex_string.
8342 (longest_local_hex_string_custom): Rename to
8343 local_hex_string_custom.
8344 * language.h (local_hex_string): Change parameter type to LONGEST.
8345 (local_hex_string_custom): Ditto.
8346 (longest_local_hex_string): Delete declaration.
8347 (longest_local_hex_string_custom): Ditto.
8348
8349 * solib.c: Update copyright.
8350 * memattr.c: Update copyright.
8351
13d01224
AC
83522002-05-11 Andrew Cagney <ac131313@redhat.com>
8353
8354 * arch-utils.h (legacy_register_to_value): Declare.
8355 (legacy_value_to_register): Declare.
8356 (legacy_convert_register_p): Declare.
8357 * arch-utils.c (legacy_register_to_value): New function.
8358 (legacy_value_to_register): New function.
8359 (legacy_convert_register_p): New function.
8360
8361 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8362 (VALUE_TO_REGISTER): Define.
8363 (CONVERT_REGISTER_P): Define.
8364 * gdbarch.h, gdbarch.c: Regenerate.
8365
8366 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8367 VALUE_TO_REGISTER.
8368 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8369 CONVERT_REGISTER_P.
8370
4a1970e4
DJ
83712005-05-11 Daniel Jacobowitz <drow@mvista.com>
8372 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8373
8374 * Makefile.in: Update dependencies for valops.c.
8375 * valops.c: Include "gdb_assert.h".
8376 (typecmp): Skip THIS parameter to methods.
8377 (find_method_list): Remove static_memfuncp argument,
8378 update callers. Check for stub methods.
8379 (find_value_oload_method_list): Don't set *static_memfuncp.
8380 (find_overload_match): Don't check for stub methods. Assert
8381 that methods are not stubbed. Handle static methods.
8382 (value_find_oload_method_list): Remove static_memfuncp argument.
8383 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8384 to the argument list for static stub methods.
8385 * value.h (value_find_oload_method_list): Update prototype.
8386
b2e75d78
AC
83872002-05-11 Andrew Cagney <ac131313@redhat.com>
8388
8389 * arch-utils.h (generic_register_size): Declare.
8390 (generic_register_raw_size, generic_register_virtual_size): Delete
8391 declarations.
8392 * arch-utils.c (generic_register_raw_size): Delete.
8393 (generic_register_size): New function.
8394 (generic_register_virtual_size): Delete.
8395
8396 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8397 default generic_register_size.
8398 * gdbarch.h, gdbarch.c: Re-generate.
8399
8400 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8401 register_virtual_size.
8402 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8403 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8404
451fbdda
AC
84052002-05-11 Andrew Cagney <ac131313@redhat.com>
8406
8407 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8408 * gdbarch.h, gdbarch.c: Regenerate.
8409 * gnu-v3-abi.c: Update copyright.
8410 (vtable_address_point_offset): Update.
8411 (gnuv3_rtti_type): Update.
8412 (gnuv3_baseclass_offset): Update.
8413 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8414 (init_fetch_link_map_offsets): Update.
8415 * remote.c (get_remote_state): Update.
8416
6d2f5cea
DJ
84172002-05-11 Daniel Jacobowitz <drow@mvista.com>
8418
8419 * TODO: Remove value_headof/value_from_vtable_info comment.
8420 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8421 * values.c (value_headof, value_from_vtable_info): Delete.
8422 * value.h (value_from_vtable_info): Delete prototype.
8423
d2324da4
AC
84242002-05-11 Andrew Cagney <ac131313@redhat.com>
8425
8426 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8427 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8428 $(gdb_regex_h).
8429 (gdb_assert_h): Define.
8430 (gdb_wait_h): Define.
8431 (gdb_regex_h): Define.
8432
5c717440
DJ
84332002-05-11 Daniel Jacobowitz <drow@mvista.com>
8434
8435 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8436 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8437
6c7861b3
JT
84382002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8439
8440 * nbsd-tdep.c: Fix comment.
8441
ea5bc2a6
JT
84422002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8443
8444 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8445 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8446 (nbsd-tdep.o): New dependency list.
8447 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8448 nbsd-tdep.h.
8449 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8450 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8451 * nbsd-tdep.c: New file.
8452 * nbsd-tdep.h: New file.
8453 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8454 nbsd-tdep.h.
8455 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8456 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8457 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8458 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8459
b28da865
JT
84602002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8461
8462 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8463 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8464 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8465 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8466 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8467 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8468
4b8ff1fa
JT
84692002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8470
8471 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8472 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8473 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8474 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8475 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8476 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8477 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8478
dfe6eb1f
JT
84792002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8480
8481 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8482 fetch_elfcore_registers to...
8483 * i386nbsd-tdep.c: ...here.
8484 (i386nbsd_use_struct_convention): Rename to...
8485 (i386nbsd_aout_use_struct_convention): ...this.
8486 (i386nbsd_supply_reg): New function.
8487 (i386nbsd_fill_reg): New function.
8488 (fetch_core_registers): Use i386nbsd_supply_reg.
8489 (fetch_elfcore_registers): Likewise.
8490 (_initialize_i386nbsd_tdep): New function.
8491 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8492 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8493 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8494 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8495 (i386nbsd_aout_use_struct_convention): ...this.
8496
20cb8cda
JT
84972002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8498
8499 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8500 (store_inferior_registers): Use shnbsd_fill_reg.
8501 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8502 sh_nbsd_supply_register): Collapse into...
8503 (shnbsd_supply_reg): ...this.
8504 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8505 (shnbsd_fill_reg): ...this.
8506 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8507 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8508 (fetch_core_registers): Use shnbsd_supply_reg.
8509 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8510 (sh_nbsd_core_fns): Rename to...
8511 (shnbsd_core_fns): ...this.
8512 (sh_nbsd_elfcore_fns): Rename to...
8513 (shnbsd_elfcore_fns): ...this.
8514 (sh_nbsd_init_abi): Rename to...
8515 (shnbsd_init_abi): ...this.
8516 (_initialize_sh_nbsd_tdep): Rename to...
8517 (_initialize_shnbsd_tdep): ...this.
8518 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8519 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8520 sh_nbsd_fill_register): Remove prototypes.
8521 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8522
e750d25e
JT
85232002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8524
8525 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8526 (i387-nat.o): Delete dependency list.
8527 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8528 (x86-64-linux-nat.o): Likewise.
8529 * i387-nat.c: Delete file, moving contents to...
8530 * i387-tdep.c: ...here.
8531 * i387-nat.h: Rename...
8532 * i387-tdep.h: ...to this.
8533 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8534 * i386-linux-nat.c: Likewise.
8535 * i386bsd-nat.c: Likewise.
8536 * i386gnu-nat.c: Likewise.
8537 * i386nbsd-nat.c: Likewise.
8538 * i386v4-nat.c: Likewise.
8539 * x86-64-linux-nat.c: Likewise.
8540 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8541 * config/i386/go32.mh (NATDEPFILES): Likewise.
8542 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8543 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8544 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8545 * config/i386/linux.mh (NATDEPFILES): Likewise.
8546 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8547 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8548 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8549 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8550
1aee598a
JT
85512002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8552
8553 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8554 (alphanbsd-nat.o): Remove dependency list.
8555 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8556 * alphanbsd-nat.c: Delete. Contents moved to...
8557 * alphanbsd-tdep.c: ...here.
8558 (_initialize_alphanbsd_tdep): Register core functions.
8559 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8560
12bcb0fe
JT
85612002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8562
8563 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8564 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8565 (alphanbsd-nat.o): Likewise.
8566 (alphabsd-tdep.o): New dependency list.
8567 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8568 (fill_gregset): Use alphabsd_fill_reg.
8569 (supply_fpregset): Use alphabsd_supply_fpreg.
8570 (fill_fpregset): Use alphabsd_fill_fpreg.
8571 (fetch_inferior_registers): Use struct reg and struct fpreg
8572 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8573 and alphabsd_supply_fpreg.
8574 (store_inferior_registers): Use struct reg and struct fpreg
8575 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8576 and alphabsd_fill_fpreg.
8577 * alphabsd-tdep.c: New file.
8578 * alphabsd-tdep.h: New file.
8579 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8580 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8581 alphabsd_supply_fpreg.
8582 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8583 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8584
361d1df0
EC
85852002-05-11 Eric Christopher <echristo@redhat.com>
8586
8587 * mips-tdep.c (mips_double_register_type): Fix thinko.
8588 (mips_single_register_type): Ditto.
8589 * MAINTAINERS: Add self.
8590
92dd7cee
MK
85912002-05-11 Mark Kettenis <kettenis@gnu.org>
8592
8593 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8594 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8595 right thing on architectures with different endianness and/or
8596 integer sizes.
8597
e27da16d
JT
85982002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8599
8600 From Christian Limpach <chris@Pin.LU>
8601 * configure.in: Change sed expression which comments out
8602 NATDEPFILES to also comment out continuation lines.
8603 * configure: Regenerate.
8604
ddde02bd
EZ
86052002-05-10 Elena Zannoni <ezannoni@redhat.com>
8606
8607 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8608 big patch.
8609
1c922164
EZ
86102002-05-10 Elena Zannoni <ezannoni@redhat.com>
8611
8612 * sh-tdep.c: Include correct file.
8613
283150cd
EZ
86142002-05-10 Elena Zannoni <ezannoni@redhat.com>
8615
8616 New support for sh64-elf (sh5) target.
8617
8618 * configure.tgt: For sh64-elf target, default to sh-elf.
8619
8620 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8621 (struct gdbarch_tdep): Add new fields for new registers and ABI
8622 info.
361d1df0 8623
283150cd
EZ
8624 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8625 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8626 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8627 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8628 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8629 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8630 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8631 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8632 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8633 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8634 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8635 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8636 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8637 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8638 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8639 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8640 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8641 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8642 sign_extend, sh64_nofp_frame_init_saved_regs,
8643 sh64_init_extra_frame_info, sh64_get_saved_register,
8644 sh64_extract_struct_value_address, sh64_pop_frame,
8645 sh64_push_arguments, sh64_extract_return_value,
8646 sh64_store_return_value, sh64_show_media_regs,
8647 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8648 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8649 sh_sh64_register_virtual_type,
8650 sh_sh64_register_convert_to_virtual,
8651 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8652 sh64_register_read, sh64_pseudo_register_write,
8653 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8654 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8655 sh64_do_pseudo_register, sh_compact_do_registers_info,
8656 sh64_do_registers_info, sh_gdbarch_init): New functions.
8657
3117ed25
EZ
86582002-05-10 Elena Zannoni <ezannoni@redhat.com>
8659
8660 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8661
2654e6d4
DJ
86622002-05-10 Daniel Jacobowitz <drow@mvista.com>
8663
8664 * linespec.c (decode_line_1): Check for a double quote after
8665 a filename correctly.
8666
9ab3e532
JB
86672002-05-10 Jim Blandy <jimb@redhat.com>
8668
8669 Properly track the size of the current objfile's .debug_line section.
8670 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8671 (DWARF_LINE_SIZE): New macro.
8672 (dwarf2_build_psymtabs_hard): Record the line section's size in
8673 the partial symbol table.
8674 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8675 symbol table.
8676
126fa72d
PS
86772002-05-10 Petr Sorfa <petrs@caldera.com>
8678
8679 * ia64-tdep.c: Handle breakpoints on L instruction type
8680 in MLX instruction bundle by moving the breakpoint to
8681 the third slot (X instruction type) as L holds only data.
8682
1f077a3e
KB
86832002-05-10 Kevin Buettner <kevinb@redhat.com>
8684
8685 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8686 (process_one_symbol): Complain about discarding local symbols
8687 due to a misplaced N_LBRAC entry.
8688
8120c9d5 86892002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
8690
8691 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
8692 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8693 decrease the depth we are at, in the case of templates.
361d1df0 8694
67b2c998
DJ
86952002-05-09 Daniel Jacobowitz <drow@mvista.com>
8696
8697 * mips-tdep.c (mips_float_register_type): New function.
8698 (mips_double_register_type): New function.
8699 (mips_print_register): Use them.
8700 (do_fp_register_row): Likewise.
8701
fd326606
DJ
87022002-05-09 Daniel Jacobowitz <drow@mvista.com>
8703
6609d9af 8704 * signals/signals.c (signals): Remove conditional compilation around
fd326606 8705 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 8706 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 8707
bef35864
MS
87082002-05-09 Michael Snyder <msnyder@redhat.com>
8709
8710 * remote-rdp.c (remote_rdp_can_run): Remove.
8711
c55a3f73
TT
87122002-05-09 Tom Tromey <tromey@redhat.com>
8713
8714 * jv-valprint.c (java_val_print): Handle `char' as a special case
8715 of TYPE_CODE_INT.
8716
b8d5e71d
MS
87172002-05-09 Michael Snyder <msnyder@redhat.com>
8718
8719 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8720 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 8721 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 8722 str r(0123),[sp,#nn].
361d1df0 8723 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
8724 order-independent by placing it in a loop.
8725
e2cd42dd
MS
87262002-05-06 Michael Snyder <msnyder@redhat.com>
8727
8728 * stabsread.c (read_type): Add recognition for new attribute:
8729 "@V;" means that an array type is actually a vector.
8730 This is analogous to the vector flag that's been added to dwarf2.
8731
3ce1502b
MK
87322002-05-09 Mark Kettenis <kettenis@gnu.org>
8733
8734 * i386-tdep.h (i386_abi): New enum.
8735 (struct gdbarch_tdep): Replace os_ident member with abi.
8736 (i386_gdbarch_register_os_abi): New prototype.
8737 * i386-tdep.c (i386_abi_names): New array.
8738 (process_note_abi_tag_sections): Removed.
8739 (process_note_sections): New function.
8740 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8741 (struct i386_abi_handler): New struct.
8742 (i386_abi_handler_list): New variable.
8743 (i386_gdbarch_register_os_abi): New function.
8744 (i386_gdbarch_init): Adapt for the changes given above.
8745
084c156a
DJ
87462002-05-08 Daniel Jacobowitz <drow@mvista.com>
8747
8748 * gregset.h: Say "GNU/Linux".
8749
6599f021
EZ
87502002-05-08 Elena Zannoni <ezannoni@redhat.com>
8751
8752 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8753 (build_gdbtypes): Build builtin_type_v2_float.
8754 (_initialize_gdbtypes): Register new builtin type.
8755
40af4b0c
AC
87562002-05-08 Andrew Cagney <ac131313@redhat.com>
8757
8758 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8759 (clear_gdbarch_swap): New function.
8760 (initialize_non_multiarch): Call.
8761 (gdbarch_update_p): Before calling init(), swap out and clear the
8762 existing architecture.
8763 * gdbarch.c: Regenerate.
8764
4fe84f46
JT
87652002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8766
8767 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8768 alphanbsd-tdep.c.
8769
4015edd1
JT
87702002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8771
8772 * sh-nbsd-nat.c: Rename to...
8773 * shnbsd-nat.c: ...this.
8774 * sh-nbsd-tdep.c: Rename to...
8775 * shnbsd-tdep.c: ...this.
8776 * sh-nbsd-tdep.h: Rename to...
8777 * shnbsd-tdep.h: ...this.
8778 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8779 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8780
0e2bd219
RE
87812002-05-08 Richard Earnshaw <rearnsha@arm.com>
8782
8783 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8784 concatenation for command help messages.
8785
13a38d45
JT
87862002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8787
8788 * NEWS: Note new sh*-*-netbsdelf* configuration.
8789 * configure.host: Set gdb_host_cpu to sh for all sh*.
8790 (sh*-*-netbsdelf*): New host.
8791 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8792 (sh*-*-netbsdelf*): New target.
8793 * sh-nbsd-nat.c: New file.
8794 * sh-nbsd-tdep.c: New file.
8795 * sh-nbsd-tdep.h: New file.
8796 * config/sh/nbsd.mh: New file.
8797 * config/sh/nbsd.mt: New file.
8798 * config/sh/nm-nbsd.h: New file.
8799 * config/sh/tm-nbsd.h: New file.
8800
d658f924
JT
88012002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8802
8803 * sh-tdep.c (sh_osabi_names): Declare.
8804 (process_note_abi_tag_sections): New function.
8805 (get_elfosabi): Ditto.
8806 (sh_gdbarch_register_os_abi): Ditto.
8807 (sh_dump_tdep): Ditto.
8808 _initialize_sh_tdep): Use gdbarch_register to register
8809 sh_gdbarch_init and sh_dump_tdep.
8810 * config/sh/tm-sh.h (sh_osabi): Declare.
8811 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8812
848cfffb
AC
88132002-05-07 Andrew Cagney <ac131313@redhat.com>
8814
8815 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8816 (thumb_scan_prologue): Ditto.
8817 (arm_find_callers_reg): Ditto.
8818 (arm_frame_chain): Ditto.
8819 (arm_init_extra_frame_info): Ditto.
8820 (arm_frame_saved_pc): Ditto.
8821 (arm_pop_frame): Ditto.
8822 (arm_push_return_address): New function.
8823 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8824 call_dummy_location, call_dummy_breakpoint_offset_p,
8825 call_dummy_breakpoint_offset, call_dummy_p,
8826 call_dummy_stack_adjust_p, call_dummy_words,
8827 sizeof_call_dummy_words, call_dummy_start_offset,
8828 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8829 call_dummy_address, push_return_address and push_dummy_frame for
8830 generic dummy frames.
8831
e7d717c0
JT
88322002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8833
8834 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8835 size computation for alloca.
8836 (sh_fp_frame_init_saved_regs): Likewise.
8837
7bbcf283
RE
88382002-05-07 Richard Earnshaw <rearnsha@arm.com>
8839
8840 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8841 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 8842 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
8843 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8844 * remote-rdp.c (remote_rdp_fetch_register): Use
8845 ARM_MAX_REGISTER_RAW_SIZE.
8846 (remote_rdp_store_register): Likewise.
8847
4657573b
ML
88482002-05-07 Michal Ludvig <mludvig@suse.cz>
8849
361d1df0 8850 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
8851 added default labels to switch {} statements.
8852 * x86-64-tdep.c: Ditto.
8853 * x86-64-linux-nat.c: Ditto.
8854
010f3b2f
JT
88552002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8856
8857 * solib.h: Protect against multiple inclusion.
8858
debd256d
JB
88592002-05-06 Jim Blandy <jimb@redhat.com>
8860
9ab3e532
JB
8861 Add first preprocessor macro-expansion files.
8862 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8863 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8864 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8865 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8866 (COMMON_OBS): Add macrotab.o, macroexp.o.
8867 (macroexp.o, macrotab.o): New rules.
8868
debd256d
JB
8869 Separate the job of reading the line number info statement program
8870 header (...expialidocious) out into its own function.
8871 * dwarf2read.c (struct line_head, struct filenames, struct
8872 directories): Replace with...
8873 (struct line_header): New structure, containing the full
8874 contents of the statement program header, including the
8875 include directory and file name tables.
8876 (read_file_scope): If we have line number info, instead of just
8877 calling dwarf_decode_lines to do all the work, call
8878 dwarf_decode_line_header first to get a `struct line_header'
8879 containing the data in the statement program header, and then
8880 pass that to dwarf_decode_lines, which will pick up where that
8881 left off. Be sure to clean up the `struct line_header' object.
8882 (dwarf_decode_line_header, free_line_header, add_include_dir,
8883 add_file_name): New functions.
8884 (dwarf_decode_lines): Move all the code to read the statement
8885 program header into dwarf_decode_line_header. Take the line
8886 header it built as the first argument, instead of the offset to
8887 the compilation unit's line number info. Use the new `struct
8888 line_header' type instead of the old structures. No need to do
8889 cleanups here now, since we don't allocate anything.
8890 (dwarf2_statement_list_fits_in_line_number_section,
8891 dwarf2_line_header_too_long): New complaints.
8892
ac3aafc7
EZ
88932002-05-06 Elena Zannoni <ezannoni@redhat.com>
8894
8895 * gdbtypes.c (init_vector_type): New function.
8896 (build_builtin_type_vec128): Simplify the representation of SIMD
8897 registers.
8898 (build_gdbtypes): Initialize new builtin vector types.
8899 (_initialize_gdbtypes): Register new vector types with gdbarch.
8900 (builtin_type_v4_float, builtin_type_v4_int32,
8901 builtin_type_v8_int16, builtin_type_v16_int8,
8902 builtin_type_v2_int32, builtin_type_v4_int16,
8903 builtin_type_v8_int8): New (renamed) SIMD types.
8904
13e49980
MK
89052002-05-06 Mark Kettenis <kettenis@gnu.org>
8906
8907 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8908 (i387_fill_fxsave): Likewise.
8909
997b20b8
AO
89102002-05-05 Alexandre Oliva <aoliva@redhat.com>
8911
8912 * alpha-tdep.c (alpha_extract_return_value): Don't use
8913 non-constant array size in prototype.
8914
535c96ce
AC
89152002-05-04 Andrew Cagney <ac131313@redhat.com>
8916
8917 From Brian Taylor <briant at model dot com>:
8918 * ui-out.c (ui_out_field_core_addr): Use the function
8919 longest_local_hex_string_custom'to format addresses > 32 bits
8920 wide.
8921
8922 * ui-out.c (ui_out_field_core_addr): Update comment.
8923
bedfa57b
AC
89242002-05-04 Andrew Cagney <ac131313@redhat.com>
8925
8926 * stack.c (select_and_print_frame): Make static. Delete the
8927 parameter `level'.
8928 (func_command): Update call.
8929 (select_frame_command): Delete code computing the frame level.
8930 * frame.h (select_and_print_frame): Delete declaration.
8931
f621c63e
AC
89322002-05-04 Andrew Cagney <ac131313@redhat.com>
8933
8934 * sparc-tdep.c (sparc_get_saved_register): Comment why
8935 get_prev_frame call is safe.
8936
0f7d239c
AC
89372002-05-04 Andrew Cagney <ac131313@redhat.com>
8938
8939 * frame.h (select_frame): Delete level parameter.
8940 * stack.c (select_frame): Update. Use frame_relative_level to
8941 obtain the frame's level.
8942 (select_and_print_frame): Update call.
8943 (select_frame_command): Ditto.
8944 (up_silently_base): Ditto.
8945 (down_silently_base): Ditto.
8946 * ocd.c (ocd_start_remote): Ditto.
8947 * remote-rdp.c (remote_rdp_open): Ditto.
8948 * remote-mips.c (mips_initialize): Ditto.
8949 (common_open): Ditto.
8950 * remote-e7000.c (e7000_start_remote): Ditto.
8951 * m3-nat.c (select_thread): Ditto.
8952 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8953 (child_get_current_exception_event): Ditto.
8954 * varobj.c (varobj_create): Ditto.
8955 (varobj_update): Ditto.
8956 (c_value_of_root): Ditto.
8957 * tracepoint.c (finish_tfind_command): Ditto.
8958 * corelow.c (core_open): Ditto.
8959 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8960 * thread.c (info_threads_command): Ditto.
8961 (switch_to_thread): Ditto.
8962 * infrun.c (normal_stop): Ditto.
8963 (restore_selected_frame): Ditto.
8964 (restore_inferior_status): Ditto.
8965 * breakpoint.c (insert_breakpoints): Ditto.
8966 (watchpoint_check): Ditto.
8967 (bpstat_stop_status): Ditto.
8968 (do_enable_breakpoint): Ditto.
8969 * blockframe.c (flush_cached_frames): Ditto.
8970 (reinit_frame_cache): Ditto.
8971
71d6c7b1
AC
89722002-05-04 Andrew Cagney <ac131313@redhat.com>
8973
8974 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8975 maintainer.
8976
cda6c68a
JB
89772002-05-04 Jim Blandy <jimb@redhat.com>
8978
8979 * gdbtypes.c (replace_type): Doc fix.
8980
5c1c87f0
AC
89812002-05-04 Andrew Cagney <ac131313@redhat.com>
8982
8983 * valprint.c (strcat_longest): Delete commented out function.
8984 Update copyright.
8985
cd9bfe15
AC
89862002-05-04 Andrew Cagney <ac131313@redhat.com>
8987
8988 * MAINTAINERS: Mark a29k as deleted.
8989 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8990 Move new configurations to the top.
8991 * configure.tgt: Remove a29k.
8992 * config/a29k/tm-vx29k.h: Delete.
8993 * config/a29k/vx29k.mt: Delete.
8994 * config/a29k/tm-a29k.h: Delete.
8995 * config/a29k/a29k-udi.mt: Delete.
8996 * config/a29k/a29k.mt: Delete.
8997 * a29k-tdep.c: Delete.
8998 * remote-udi.c: Delete.
8999 * remote-mm.c: Delete.
9000 * remote-eb.c: Delete.
9001 * remote-adapt.c: Delete.
9002 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
9003 * config/s390/s390x.mt: Ditto.
9004 * config/s390/s390.mt: Ditto.
9005 * config/sparc/sparclynx.mh: Ditto.
9006 * config/sparc/linux.mh: Ditto.
9007 * config/pa/hppaosf.mh: Ditto.
9008 * config/pa/hppabsd.mh: Ditto.
9009 * config/ns32k/nbsd.mt: Ditto.
9010 * config/mips/vr5000.mt: Ditto.
9011 * config/m68k/sun3os4.mh: Ditto.
9012 * config/m68k/nbsd.mt: Ditto.
9013 * config/m68k/m68klynx.mh: Ditto.
9014 * config/m32r/m32r.mt: Ditto.
9015 * config/i386/x86-64linux.mt: Ditto.
9016 * config/i386/nbsdelf.mt: Ditto.
9017 * config/i386/nbsd.mt: Ditto.
9018 * config/i386/i386lynx.mh: Ditto.
9019
bf0c5130
AC
90202002-05-04 Andrew Cagney <ac131313@redhat.com>
9021
9022 * target.c (debug_print_register): New function. Handle oversize
9023 registers.
9024 (debug_to_fetch_registers): Call.
9025 (debug_to_store_registers): Call.
9026
2ae1c2d2
JB
90272002-05-03 Jim Blandy <jimb@redhat.com>
9028
13a393b0
JB
9029 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9030 (read_type): Doc fix.
9031 * gdbtypes.c (replace_type): Doc fix.
9032
2ae1c2d2
JB
9033 * stabsread.c (multiply_defined_struct): New complaint.
9034 (read_struct_type): If the type we were passed isn't empty, or
9035 incomplete, don't read the new struct type into it; complain,
9036 and return the original type unchanged. Take a new `type_code'
9037 argument, which is the type code for the new type.
9038 (read_type): Rather than storing the type's type code here, pass
9039 it as an argument to read_struct_type, and let that take care of
9040 storing it. That way, we don't overwrite the original type code,
9041 so read_struct_type can use it to decide whether we're overwriting
9042 something we shouldn't.
9043 (complain_about_struct_wipeout): New function.
9044
8de9bdc4
AC
90452002-05-03 Andrew Cagney <ac131313@redhat.com>
9046
9047 * gdbarch.sh: Assert that gdbarch is non-NULL.
9048 * gdbarch.c: Regenerate.
9049
f773fdbb
JM
90502002-05-03 Jason Merrill <jason@redhat.com>
9051
9052 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9053 and return NULL.
9054
0e04a514
ML
90552002-05-03 Michal Ludvig <mludvig@suse.cz>
9056
9057 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9058 (x86_64_dwarf2gdb_regno_map_length),
9059 (x86_64_dwarf2_reg_to_regnum): Added.
9060 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9061 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9062 (_initialize_x86_64_tdep): Synced with the change above.
9063 (x86_64_skip_prologue): Reformulated message.
9064
065432a8
PM
90652002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9066
9067 * f-exp.y: Also use new prev_lexptr variable
9068 to improve error reporting. Based on Michael Snyder
9069 2002-04-24 dated patch to c-exp.y.
9070 * jv-exp.y: Likewise.
9071 * m2-exp.y: Likewise.
9072
a3162708
EZ
90732002-05-02 Elena Zannoni <ezannoni@redhat.com>
9074
9075 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9076 we are dealing with vectors.
9077
03620c38
PM
90782002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9079
9080 * config/m68k/tm-nbsd.h: Obvious fix,
9081 correct machine name.
9082
6604db2e
PM
90832002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9084
9085 * p-typeprint.c (pascal_type_print_base): Add support
9086 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9087
0906b739
PM
90882002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9089
9090 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9091 for fondamental pascal 'char' type.
9092
e2625b33
PM
90932002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9094
9095 * p-lang.h (is_pascal_string_type): Declaration changed,
9096 new sixth argument of type char ** added.
361d1df0 9097 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
9098 changed. Args length_pos, length_size, string_pos, char_size
9099 can now be NULL. New argument arrayname set to the field
9100 name of the char array. Return value set to char array
9101 field index plus one.
361d1df0 9102 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
9103 is_pascal_string_type function.
9104
cf17c188
AC
91052002-05-02 Andrew Cagney <cagney@redhat.com>
9106
9107 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9108 <cagney@redhat.com> change.
9109 * gdbarch.c: Regenerate.
9110
52bca491
AC
91112002-05-02 Andrew Cagney <cagney@redhat.com>
9112
9113 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9114 before probing for a new one. Detect errorenous gdbarch_init
9115 functions.
9116 * gdbarch.c: Regenerate.
9117
d5e72505
AC
91182002-05-01 Andrew Cagney <cagney@redhat.com>
9119
9120 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9121 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9122 * config/v850/tm-v850.h: Ditto. Update copyright.
9123
af566d9f
AC
91242002-04-30 Andrew Cagney <ac131313@redhat.com>
9125
9126 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9127 current_gdbarch.
9128
880d85fa
MS
91292002-04-30 Michael Snyder <msnyder@redhat.com>
9130
94c30b78
MS
9131 * arm-tdep.c: Whitespace clean-ups.
9132 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
9133 should have been removed as part of 4/24 change.
9134
6f5987a6
KB
91352002-04-30 Kevin Buettner <kevinb@redhat.com>
9136
9137 * rs6000-tdep.c: Added comment describing how fpscr register
9138 numbers were chosen.
9139
1a113c93
MS
91402002-04-30 Michael Snyder <msnyder@redhat.com>
9141
9142 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9143
9a6f53fe
EZ
91442002-04-29 Elena Zannoni <ezannoni@redhat.com>
9145
9146 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9147 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9148 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9149
11ed25ac
KB
91502002-04-29 Kevin Buettner <kevinb@redhat.com>
9151
9152 From Louis Hamilton <hamilton@redhat.com>:
9153 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9154 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9155 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9156 not bfd-private xcoff data, to determine wordsize.
9157 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9158
ae232405
AC
91592002-04-29 Andrew Cagney <ac131313@redhat.com>
9160
9161 GDB 5.2 released from 5.2 branch.
9162
91fd20f7
ML
91632002-04-29 Michal Ludvig <mludvig@suse.cz>
9164
9165 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9166 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9167 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 9168
2dc5091b
EZ
91692002-04-29 Elena Zannoni <ezannoni@redhat.com>
9170
9171 * rs6000-tdep.c (rs6000_extract_return_value,
9172 rs6000_store_return_value): Handle returning vectors.
9173 (rs6000_gdbarch_init): Use
9174 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9175 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9176 New function.
9177 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9178 vectors.
9179 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9180 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 9181
2b9848d8
PM
91822002-04-24 Pierre Muller <ics.u-strasbg.fr>
9183
9184 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 9185 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
9186 with fprintf_unfiltered (gdb_stderr,...).
9187
f8d17dc5
PM
91882002-04-24 Pierre Muller <ics.u-strasbg.fr>
9189
9190 * remote-array.c (printf_monitor, write_monitor,
361d1df0 9191 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
9192 Replace fprintf (stderr,...
9193 with fprintf_unfiltered (gdb_stderr,....
9194 * remote-es.c: Likewise.
9195 * remote-os9k.c: Likewise.
9196 * remote-st.c: Likewise.
9197
2f2f1ad1
AS
91982002-04-28 Andreas Schwab <schwab@suse.de>
9199
9200 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9201 linux-proc.o and gcore.o.
9202
b6779aa2
AC
92032002-04-26 Michal Ludvig <mludvig@suse.cz>
9204
9205 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9206 code without frame pointers.
9207
7e57f5f4
AC
92082002-04-26 Andrew Cagney <ac131313@redhat.com>
9209
9210 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9211 ON_STACK is needed.
9212
2ceb85d0
BE
92132002-04-26 Ben Elliston <bje@redhat.com>
9214
9215 * target.c (do_xfer_memory): Correct reference to the new option
9216 "trust-readonly-sections".
9217
f5f8a009
EZ
92182002-04-26 Elena Zannoni <ezannoni@redhat.com>
9219
9220 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9221 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9222 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9223 vectors.
9224 (read_array_type): Record the fact that this array type is really a
9225 vector (i.e. are passed in by value).
9226
5868c862
JT
92272002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9228
9229 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9230 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9231 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9232 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9233 * alpha-linux-tdep.c: Include frame.h.
9234 (alpha_linux_sigcontext_addr): New function.
9235 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9236 alpha_linux_sigcontext_addr.
9237 * alpha-osf1-tdep.c: Include gdbcore.h.
9238 (alpha_osf1_sigcontext_addr): New function.
9239 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9240 alpha_osf1_sigcontext_addr.
9241 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9242 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9243
bfb01f37
AC
92442002-04-26 Andrew Cagney <ac131313@redhat.com>
9245
361d1df0 9246 * stack.c (selected_frame_level):
bfb01f37
AC
9247 (select_frame): Do not set selected_frame_level.
9248 * frame.h (selected_frame_level): Delete declaration.
9249
15813d3f
AC
92502002-04-26 Andrew Cagney <ac131313@redhat.com>
9251
9252 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9253 convert_from_func_ptr-addr when AIX / PowerOpen.
9254
6096c27a
AC
92552002-04-25 Andrew Cagney <ac131313@redhat.com>
9256
9257 * valops.c (hand_function_call): Call
9258 generic_save_call_dummy_addr.
9259 * frame.h (generic_save_call_dummy_addr): Declare.
9260 * blockframe.c (struct dummy_frame): Add fields call_lo and
9261 call_hi.
9262 (generic_find_dummy_frame): Check for PC in range call_lo to
9263 call_hi instead of entry_point_address.
9264 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9265 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9266 (generic_save_call_dummy_addr): New function.
9267
f510d44e
DM
92682002-04-24 David S. Miller <davem@redhat.com>
9269
9270 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9271 sparc_skip_prologue.
9272 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9273 information to find prologue when possible.
9274 (sparc_prologue_frameless_p): Call examine_prologue directly.
9275 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9276 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9277 second argument.
9278 (SKIP_PROLOGUE): Likewise.
9279
15d72a92
JT
92802002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9281
9282 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9283 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9284 indicate that the condition it was testing is always true.
9285 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9286 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9287 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9288
accc6d1f
JT
92892002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9290
9291 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9292 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9293 tdep->jb_pc and tdep->jb_elt_size.
9294 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9295 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9296 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9297 * alpha-nat.c (get_longjmp_target): Remove.
9298 (JB_ELEMENT_SIZE): Ditto.
9299 (JB_PC): Ditto.
9300 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9301 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9302 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9303 to alpha_get_longjmp_target.
9304 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9305 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9306 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9307
1bfdc549
AC
93082002-04-25 Andrew Cagney <ac131313@redhat.com>
9309
9310 * README: Update to GDB 5.2.
9311
1bd316f0
AC
93122002-04-25 Andrew Cagney <ac131313@redhat.com>
9313
9314 * gdbarch.sh (LC_ALL): Set to `c'.
9315
2e5ff58c
TR
93162002-04-25 Theodore A. Roth <troth@verinet.com>
9317
9318 * avr-tdep.c: Ran through gdb_indent.sh.
9319
e33ce519
TR
93202002-04-25 Theodore A. Roth <troth@verinet.com>
9321
9322 * MAINTAINERS: Add myself as AVR maintainer.
9323 * NEWS: Note new target avr.
9324
8818c391
TR
93252002-04-25 Theodore A. Roth <troth@verinet.com>
9326
9327 * Makefile.in: Add support for AVR target.
9328 * configure.tgt: Add support for AVR target.
9329 * avr-tdep.c: New file
9330 * config/avr/avr.mt: New file.
9331
79509c2d
TR
93322002-04-25 Theodore A. Roth <troth@verinet.com>
9333
9334 * MAINTAINERS: Add myself to write-after-approval.
9335
dac8068e
PM
93362002-04-24 Pierre Muller <ics.u-strasbg.fr>
9337
9338 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9339 with fprintf_unfiltered (gdb_stderr,....
9340
25bf3106
PM
93412002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9342
9343 Fix PR gdb/508.
9344 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9345
24467a86
PM
93462002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9347
9348 * p-exp.y: Also use new prev_lexptr variable
9349 to improve error reporting. Based on Michael Snyder
9350 2002-04-24 dated patch to c-exp.y.
9351
95b80706
JT
93522002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9353
9354 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9355 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9356 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9357 to 0.
9358 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9359 and struct value.
9360 (FUNCTION_START_OFFSET): Remove.
9361 (BREAKPOINT): Ditto.
9362
e90cc612
JT
93632002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9364
9365 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9366 * NEWS: Ditto.
9367
6c72f9f9
JT
93682002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9369
9370 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9371 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9372 alpha_linux_pc_in_sigtramp.
9373 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9374 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9375 alpha_osf1_pc_in_sigtramp.
9376 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9377 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9378 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9379 alphafbsd_pc_in_sigtramp.
9380 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9381 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9382 alphanbsd_pc_in_sigtramp.
9383 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9384 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9385
5e4f3379
JT
93862002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9387
9388 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9389
da8ca43d
JT
93902002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9391
9392 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9393 alphanbsd-tdep.c.
9394 (alphanbsd-nat.o): New dependency list.
9395 (alphanbsd-tdep.o): Ditto.
9396 * NEWS: Note new native NetBSD/alpha configuration.
9397 * alphanbsd-nat.c: New file.
9398 * alphanbsd-tdep.c: Ditto.
9399 * configure.host (alpha*-*-netbsd*): New host.
9400 * configure.tgt (alpha*-*-netbsd*): New target.
9401 * config/alpha/nbsd.mh: New file.
9402 * config/alpha/nbsd.mt: Ditto.
9403 * config/alpha/nm-nbsd.h: Ditto.
9404 * config/alpha/tm-nbsd.h: Ditto.
9405
36a6271d
JT
94062002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9407
9408 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9409 (alpha-osf1-tdep.o): New dependency list.
9410 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9411 and skip_sigtramp_frame members.
9412 * alpha-linux-tdep.c: Include gdbcore.h.
9413 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9414 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9415 * alpha-osf1-tdep.c: New file.
9416 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9417 alpha-osf1-dep.c.
9418 (alpha_frame_past_sigtramp_frame): New function.
9419 (alpha_dynamic_sigtramp_offset): Ditto.
9420 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9421 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9422 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9423 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9424 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9425 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9426 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9427 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9428 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9429 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9430 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9431 to find_solib_trampoline_target.
9432 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9433 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9434 (SKIP_TRAMPOLINE_CODE): Remove.
9435 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9436 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9437 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9438 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9439 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9440 (PROC_SIGTRAMP_MAGIC): Ditto.
9441 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9442 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9443 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9444 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9445 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9446
2f4bc57b
JT
94472002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9448
9449 * NEWS: Note that Alpha targets are now multi-arch.
9450
665132f9
MS
94512002-04-24 Michael Snyder <msnyder@redhat.com>
9452
9453 * parser-defs.h (prev_lexptr): New external variable.
9454 * parse.c (parse_exp_1): Set prev_lexptr to null before
9455 calling the language-specific parser.
9456 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9457 (yyerror): Use prev_lexptr in error reporting.
9458
32872fa7
DJ
94592002-04-24 Daniel Jacobowitz <drow@mvista.com>
9460
9461 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9462 * gregset.h: If FILL_FPXREGSET is defined, provide
9463 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9464 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9465 is defined, call fill_fpxregset.
9466
57e76fac
MS
94672002-04-24 Roland McGrath <roland@frob.com>
9468
9469 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9470 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9471 (supply_gregset, supply_fpregset): New functions.
9472
9473 * gnu-nat.c (gnu_find_memory_regions): New function.
9474 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9475 (gnu_xfer_memory): Add a cast.
9476
f43845b3
MS
94772002-04-24 Michael Snyder <msnyder@redhat.com>
9478
361d1df0 9479 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9480 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9481 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9482 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9483 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9484 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9485
a0abec03
AC
9486Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9487
9488 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9489 NUM_PSEUDO_REGS can be used.
9490
d7bd68ca
AC
94912002-04-24 Andrew Cagney <ac131313@redhat.com>
9492
9493 * arch-utils.h: Update copyright.
9494
9495 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9496 * gdbarch.h, gdbarch.c: Re-generate.
9497
9498 * inferior.h (IN_SIGTRAMP): Delete definition.
9499 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9500 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9501
9502 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9503 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9504 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9505 (find_proc_framesize): Ditto.
9506 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9507 (alpha_init_extra_frame_info): Ditto.
9508 * infrun.c (handle_inferior_event): Ditto.
9509 (handle_inferior_event): Ditto.
9510 (check_sigtramp2): Ditto.
9511 * blockframe.c (create_new_frame): Ditto.
9512 (get_prev_frame): Ditto.
9513 * ppc-linux-tdep.c: Update comments.
9514 * i386-linux-tdep.c: Update comments.
9515 * breakpoint.c (bpstat_what): Update comment.
9516
4867e41e
DM
95172002-04-24 David S. Miller <davem@redhat.com>
9518
21d83aa5
DM
9519 * i960-tdep.c (register_in_window_p): New function.
9520 (i960_find_saved_register): Use it instead of
9521 REGISTER_IN_WINDOW_P.
9522 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9523
4867e41e
DM
9524 * symtab.h (find_stab_function_addr): Kill extern.
9525 * minsyms.c (find_stab_function_addr): Remove from here...
9526 * dbxread.c: ... to here, and mark it static.
9527
69cdf6a2
DM
95282002-04-20 David S. Miller <davem@redhat.com>
9529
9530 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9531 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9532
5a595886
DM
95332002-04-21 David S. Miller <davem@redhat.com>
9534
9535 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9536 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9537 (vx_write_register): Likewise.
9538
1da1a192
JB
95392002-04-23 J. Brobecker <brobecker@gnat.com>
9540
9541 * source.c (is_regular_file): New function.
9542 (openp): Check wether file to open is a regular file
9543 to avoid opening directories.
9544
baa6f10b
JT
95452002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9546
9547 * findvar.c (extract_signed_integer): Cast printf argument
9548 to suppress format warning.
9549 (extract_unsigned_integer): Likewise.
9550 * infcmd.c (registers_info): Likewise.
9551 * top.c (get_prompt_1): Likewise.
9552 * valops.c (value_assign): Likewise.
9553 * valprint.c (print_decimal): Likewise.
9554
b2c4da81
L
95552002-04-22 H.J. Lu (hjl@gnu.org)
9556
9557 * c-exp.y (typebase): Support
361d1df0 9558
b2c4da81
L
9559 [long|long long|short] [signed|unsigned] [int|]
9560
9561 and
9562
9563 signed [long|long long|short] int
9564
f267bd6a
JT
95652002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9566
9567 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9568 and vax-tdep.h.
9569 * vax-tdep.h: New file.
9570 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9571 Make several routines static.
9572 (vax_get_saved_register): New function.
9573 (vax_gdbarch_init): New function.
9574 (_initialize_vax_tdep): Register vax_gdbarch_init.
9575 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9576 Remove macros now under the control of gdbarch.
9577
da3c6d4a
MS
95782002-04-22 Michael Snyder <msnyder@redhat.com>
9579
11d3b27d
MS
9580 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9581 Some whitespace and coding standards tweaks.
da3c6d4a 9582
a33f7558
JT
95832002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9584
9585 * vax-tdep.c: Include regcache.h.
9586 (vax_call_dummy_words): New.
9587 (sizeof_vax_call_dummy_words): New.
9588 (vax_fix_call_dummy): New function.
9589 (vax_saved_pc_after_call): Ditto.
9590 * config/vax/tm-vax.h: Don't include regcache.h.
9591 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9592 (CALL_DUMMY): Remove.
9593 (CALL_DUMMY_WORDS): Define.
9594 (SIZEOF_CALL_DUMMY_WORDS): Define.
9595 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9596
47a73475
MS
95972002-04-18 Michael Snyder <msnyder@redhat.com>
9598
9599 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9600
52efde73
JT
96012002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9602
9603 * vax-tdep.c (vax_frame_chain): New function.
9604 (vax_push_dummy_frame): Ditto.
9605 (vax_pop_frame): Ditto.
9606 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9607 (FRAMELESS_FUNCTION_INVOCATION): Use
9608 generic_frameless_function_invocation_not.
9609 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9610 (POP_FRAME): Use vax_pop_frame.
9611
ea74468c
JT
96122002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9613
9614 * vax-tdep.c (vax_store_struct_return): New function.
9615 (vax_extract_return_value): Ditto.
9616 (vax_store_return_value): Ditto.
9617 (vax_extract_struct_value_address): Ditto.
9618 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9619 vax_store_struct_return.
9620 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9621 (STORE_RETURN_VALUE): Use vax_store_return_value.
9622 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9623
5516aa92
JT
96242002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9625
9626 * vax-tdep.c (vax_frame_saved_pc): New function.
9627 (vax_frame_args_address_correct): Ditto.
9628 (vax_frame_args_address): Ditto.
9629 (vax_frame_locals_address): Ditto.
9630 (vax_frame_num_args): Move code to be in proximity to
9631 other frame-related functions.
9632 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9633 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9634 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9635 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9636 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9637
36af0b35
L
96382002-04-22 H.J. Lu (hjl@gnu.org)
9639
9640 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9641 includedir.
9642
ab62c900
JT
96432002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9644
9645 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9646 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9647 (FRAME_INIT_SAVED_REGS): New macro.
9648
7232b100
JT
96492002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9650
9651 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9652
b70d2aee
JT
96532002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9654
9655 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9656 where needed.
9657 (fetch_osf_core_registers): Likewise.
9658 (supply_gregset): Likewise.
9659
a0e8a2d1 96602002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 9661
a0e8a2d1
JB
9662 * symfile.h (get_section_index): Define.
9663 * symfile.c (get_section_index): New function.
9664 * mdebugread.c (SC_IS_SBSS): New macro.
9665 (SC_IS_BSS): Return true for the scBss storage class only, as
9666 the scSBss storage class refers to the .sbss section.
9667 (parse_partial_symbols): Discard the symbols which associated
9668 section does not exist.
9669 Make sure to use the .sbss section index for symbols which
9670 storage class is scBss, rather than using the .bss section index.
9671
51eb8b08
JT
96722002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9673
9674 * vax-tdep.c: Update copyright years.
9675 (vax_register_name): New function.
9676 (vax_register_byte): Ditto.
9677 (vax_register_raw_size): Ditto.
9678 (vax_register_virtual_size): Ditto.
9679 (vax_register_virtual_type): Ditto.
9680 * config/vax/tm-vax.h: Update copyright years.
9681 (REGISTER_NAMES): Remove.
9682 (REGISTER_NAME): Define.
9683 (REGISTER_BYTE): Use vax_register_byte.
9684 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9685 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9686 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9687
6cc1c0a8
AC
96882002-04-21 Andrew Cagney <ac131313@redhat.com>
9689
9690 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9691 declaration
9692 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9693
9319a2fe
DM
96942002-04-21 David S. Miller <davem@redhat.com>
9695
9696 * arch-utils.c (generic_prologue_frameless_p): Kill
9697 SKIP_PROLOGUE_FRAMELESS_P code.
9698 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9699 references.
9700 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9701 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9702 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9703 references.
9704 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9705 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9706 (sparc_gdbarch_init): Pass it to
9707 set_gdbarch_prologue_frameless_p.
a0e8a2d1 9708
e9ed6d01
JT
97092002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9710
9711 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9712 (alphabsd-nat.o): New dependency list.
9713
36012033
JT
97142002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9715
9716 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9717 alphafbsd-tdep.c.
9718 (alpha-linux-tdep.o): New dependency list.
9719 (alphafbsd-tdep.o): Likewise.
9720
3379287a
JT
97212002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9722
9723 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9724 to here...
9725 * alpha-tdep.c: ...from here.
9726 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9727
4bcbd6cb
JT
97282002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9729
9730 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9731 prototype from here...
9732 * alpha-tdep.h: ...to here.
9733
b31da25e
AC
97342002-04-21 Andrew Cagney <ac131313@redhat.com>
9735
9736 * frame.h (selected_frame_level): Document as deprecated.
9737 (frame_relative_level): Declare.
9738 * stack.c (frame_relative_level): New function.
9739 (selected_frame_level): Document as deprecated.
9740 (select_frame): Do not set the selected_frame_level.
9741
9742 * stack.c (frame_info, record_selected_frame): Update.
9743 (frame_command, current_frame_command): Update.
9744 (up_silently_base, up_command, down_silently_base): Update.
9745 (down_command): Update.
9746 * inflow.c (kill_command): Update.
9747 * tracepoint.c (finish_tfind_command): Update.
9748 * corelow.c (core_open): Update.
9749 * thread.c (info_threads_command): Update.
9750 (do_captured_thread_select): Update.
9751 * infcmd.c (finish_command): Update.
9752 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9753
9c1d6fe5
JT
97542002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9755
9756 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9757
ab89facf
AC
97582002-04-21 Andrew Cagney <ac131313@redhat.com>
9759
9760 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9761 type const.
9762
82a4efa1
JT
97632002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9764
9765 * alphafbsd-tdep.c: Update copyright years. Include
9766 alpha-tdep.h.
9767 (alphafbsd_use_struct_convention): Make static.
9768 (alphafbsd_init_abi): New function.
9769 (_initialize_alphafbsd_tdep): New function.
9770 * config/alpha/tm-fbsd.h: Update copyright years.
9771 (USE_STRUCT_CONVENTION): Remove.
9772
44dffaac
JT
97732002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9774
9775 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9776 an Alpha ABI variant.
9777 (alpha_abi_handler_list): Declare.
9778 (alpha_gdbarch_register_os_abi): New function.
9779 (alpha_gdbarch_init): Give registered ABI variant handlers a
9780 chance to tweak the gdbarch once we have set up defaults.
9781 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9782
65585be4
JT
97832002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9784
9785 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9786 to standard_coerce_float_to_double.
9787 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9788
d9b023cc
JT
97892002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9790
9791 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9792 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9793 from gdbarch_tdep rather than a constant.
9794 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9795 the default text address for all Alpha Unix ABIs.
9796 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9797 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9798
dc129d82
JT
97992002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9800
9801 * alpha-tdep.h: New file. Includes several Alpha target constants
9802 taken from...
9803 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9804 let gdbarch deal with.
9805 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9806 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9807 to dependency list.
9808 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9809 Alpha target register names.
9810 * alphabsd-nat.c: Likewise.
9811 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9812 Alpha target register names. Make serveral routines static.
9813 (alpha_get_saved_register): New function.
9814 (alpha_abi_names): New.
9815 (process_note_abi_tag_sections): New function.
9816 (get_elfosabi): New function.
9817 (alpha_gdbarch_init): New function.
9818 (alpha_dump_tdep): New function.
9819 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9820
d49d1e0a
AC
98212002-04-21 Andrew Cagney <ac131313@redhat.com>
9822
9823 * frame.c (find_saved_register): Delete #ifdef
9824 HAVE_REGISTER_WINDOWS code.
9825 * config/sparc/tm-sparc.h: Update comments.
9826 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9827
92e8c9ed
AC
98282002-04-21 Andrew Cagney <ac131313@redhat.com>
9829
9830 * i960-tdep.c (i960_find_saved_register): New function.
9831 (i960_get_saved_register): New function.
9832 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9833 (i960_get_saved_register): Declare.
9834 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9835
e1925118
DM
98362002-04-20 David S. Miller <davem@redhat.com>
9837
9838 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9839
29673b29
AC
98402002-04-20 Andrew Cagney <ac131313@redhat.com>
9841
9842 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9843 instead of NUM_PSEUDO_REGS.
9844
6c86dcd5
DM
98452002-04-20 David S. Miller <davem@redhat.com>
9846
9847 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9848 GDB_MULTI_ARCH_PARTIAL
9849 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9850 define, let tm-sp64.h do it.
9851
aa40ec90
JT
98522002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9853
9854 * frame.c (find_saved_register): Avoid a NULL pointer
9855 dereference and actually walk the frame list.
9856
0f79675b
AC
98572002-04-20 Andrew Cagney <ac131313@redhat.com>
9858
9859 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9860 sorted in most most-recent-used order. Document.
9861 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9862
f91305dd 98632002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
9864
9865 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9866 instead of ->prev.
9867 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9868 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9869 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9870 instead of ->prev.
9871
73d322b1
EZ
98722002-04-19 Elena Zannoni <ezannoni@redhat.com>
9873
9874 Fix PR gdb/471.
9875 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9876 (build_builtin_type_vec128): Ditto.
9877 (append_composite_type_field): Fix calculation of type length in
9878 union case.
9879
ccd9a834
EZ
98802002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9881
9882 * config/djgpp/README: Update.
9883
9884 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9885 compiler warnings.
9886
a57f9e49
JT
98872002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9888
9889 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9890 (alpha_setup_arbitrary_frame): ...to this.
9891 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9892 for alpha_setup_arbitrary_frame.
9893
f4f9705a
AC
98942002-04-18 Andrew Cagney <cagney@redhat.com>
9895
9896 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9897 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9898
f4f9705a
AC
9899 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9900 * target.h (memory_breakpoint_from_pc): Update declaration.
9901 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9902
9903 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9904 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9905 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9906 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9907 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9908 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9909 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9910 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9911 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9912 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9913 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9914 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9915
9916 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9917 const pointer.
9918 * monitor.c (monitor_insert_breakpoint): Ditto.
9919 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9920
9921 * config/mcore/tm-mcore.h: Update copyright.
9922 * mem-break.c: Ditto.
9923 * xstormy16-tdep.c: Ditto.
9924
29f319b8
PM
99252002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9926
9927 * p-exp.y: Add precedence rule for '^' token.
9928 This removes the shift/reduce conflicts.
9929 Remove the comment concerning these shift/reduce conflicts.
9930
ebeac11a
EZ
99312002-04-18 Elena Zannoni <ezannoni@redhat.com>
9932
9933 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9934 (registers_powerpc_nofp): New register set for processors
9935 without floating point unit.
9936
27c31547
DM
99372002-04-18 David S. Miller <davem@redhat.com>
9938
9939 * MAINTAINERS: Add myself to write-after-approval.
9940
47a73475
MS
99412002-04-17 Michael Snyder <msnyder@redhat.com>
9942
9943 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9944
953836b2
AC
99452002-04-17 Andrew Cagney <ac131313@redhat.com>
9946
9947 * rs6000-tdep.c (frame_initial_stack_address): Use
9948 frame_register_read to read the alloca_reg.
9949
8b0d4340
AC
99502002-04-17 Andrew Cagney <ac131313@redhat.com>
9951
9952 * frame.c (find_saved_register): Find saved registers in the next
9953 not prev frame.
9954 Fix PR gdb/365.
9955
d8864532
AC
99562002-04-17 Andrew Cagney <ac131313@redhat.com>
9957
9958 * gdbarch.sh (LANG): Set to ``c''.
9959
36cc83a3 99602002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 9961
36cc83a3 9962 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 9963
2f4150cc 99642002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
9965
9966 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9967 Update copyright.
9968
628703c6 9969 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 9970 Also fix PR gdb/391.
361d1df0 9971
56157b4a
AC
99722002-04-14 Andrew Cagney <ac131313@redhat.com>
9973
9974 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9975 * aclocal.m4, configure: Re-generate.
9976 Fix PR gdb/391.
361d1df0 9977
6d1e3329
EZ
99782002-04-14 Elena Zannoni <ezannoni@redhat.com>
9979
9980 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9981 instead of tm_print_insn.
9982
cb06fa07
EZ
99832002-04-14 Elena Zannoni <ezannoni@redhat.com>
9984
9985 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9986
f208ba17
AC
99872002-04-14 Andrew Cagney <ac131313@redhat.com>
9988
9989 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9990 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9991 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9992
20f01a46
DH
99932002-04-12 Don Howard <dhoward@redhat.com>
9994
9995 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9996 max_user_call_depth.
9997 (init_cmd_lists): Initialize the new value;
9998 * cli/cli-script.c (execute_user_command): Limit the call depth of
9999 user defined commands. This avoids a core-dump when user commands
10000 are infinitly recursive.
10001
a88376a3
KB
100022002-04-12 Kevin Buettner <kevinb@redhat.com>
10003
10004 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10005 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10006 from tdep struct instead of DEFAULT_LR_SAVE.
10007 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10008 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10009 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10010
f2172603
MS
100112002-04-12 Michael Snyder <msnyder@redhat.com>
10012
694f61fb 10013 * Remote.c: Spelling fix.
20fe79c8
MS
10014 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10015 If no symbol found for "sbrk", try "_sbrk".
10016 (make_output_phdrs): Use bfd_section_name.
10017 (gcore_copy_callback): Use bfd_section_name.
62995fc4 10018 * eval.c: Indentation fix-ups.
169a7369
MS
10019 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10020 in case it gets applied to an address that is already
10021 in the instruction space.
de74f71f
MS
10022 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10023 * symfile.c: Fix indentation, long lines.
f2172603
MS
10024 * source.c: White space fix-up.
10025
cda5a58a
AC
100262002-04-12 Andrew Cagney <cagney@redhat.com>
10027
10028 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10029 * frame.c (frame_register_read): New function. Return non-zero on
10030 success.
10031 (read_relative_register_raw_bytes_for_frame): Delete.
10032 (read_relative_register_raw_bytes): Delete.
10033 * frame.h (frame_register_read): Declare.
10034 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10035 * sh-tdep.c: Ditto.
10036 * infcmd.c (do_registers_info): Ditto.
10037 * hppa-tdep.c: Ditto.
10038 * rs6000-tdep.c: Ditto.
10039 * h8500-tdep.c: Ditto.
10040 * mips-tdep.c: Ditto.
10041 * h8300-tdep.c: Ditto.
10042 * z8k-tdep.c: Ditto.
10043
2ea5f656
KB
100442002-04-12 Kevin Buettner <kevinb@redhat.com>
10045
10046 From Jimi X <jimix@watson.ibm.com>:
10047 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10048 64-bit SysV ABI.
10049
27b15785
KB
100502002-04-12 Kevin Buettner <kevinb@redhat.com>
10051
10052 From Jimi X <jimix@watson.ibm.com>:
10053 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10054 bfd info.
10055
5d57ee30
KB
100562002-04-12 Kevin Buettner <kevinb@redhat.com>
10057
10058 From Jimi X <jimix@watson.ibm.com>:
10059 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10060 register sets for these processor variants.
10061
bc1e36ca
DJ
100622002-04-11 Daniel Jacobowitz <drow@mvista.com>
10063
bc1e36ca
DJ
10064 * regformats/reg-ppc.dat: Support FPSCR.
10065
e3f36dbd
KB
100662002-04-11 Kevin Buettner <kevinb@redhat.com>
10067
10068 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10069 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10070 Add fpscr as an invalid/unfetchable register.
10071 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10072 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10073 (fill_fpregset): Add support for register fpscr.
10074 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10075 (fill_gregset): Account for the fact that register ``mq'' might
10076 not exist.
10077 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10078 (registers_power): Add fpscr to register set at slot 71.
10079 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10080 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10081
943c9c25
MS
100822002-04-11 Michael Snyder <msnyder@redhat.com>
10083
10084 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10085 * configure: Regenerate.
10086 * config.in: Regenerate.
10087 * acconfig.h: Add define for _SYSCALL32.
10088 * core-sol2.c: Remove #define _SYSCALL32.
10089 * solib-legacy.c: Remove #define _SYSCALL32.
10090
d8c0a2e7
AC
100912002-04-10 Andrew Cagney <ac131313@redhat.com>
10092
10093 * stack.c (select_frame): Cleanup internal error message, do not
10094 use %p.
10095
7cc19214
AC
100962002-04-10 Andrew Cagney <ac131313@redhat.com>
10097
10098 * stack.c (select_frame): Check that selected_frame and the
10099 specified level are as expected.
10100 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10101 Update copyright.
10102 * frame.h (struct frame_info): Add field `level'. Update
10103 copyright.
10104 Work-in-progress PR gdb/464.
10105
67a2b77e
AC
101062002-04-10 Andrew Cagney <ac131313@redhat.com>
10107
10108 * maint.c (maint_print_section_info): Rename print_section_info.
10109 (print_bfd_section_info, print_objfile_section_info): Update.
10110 * inferior.h (struct gdbarch): Add opaque declaration.
10111 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10112 * gdbarch.h: Regenerate.
10113
8cfda98c
ML
101142002-04-10 Michal Ludvig <mludvig@suse.cz>
10115
10116 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10117 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10118 (kernel_u_size): Added.
10119 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10120 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10121
ca439ad2 101222002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 10123
ca439ad2
JI
10124 * valarith.c (find_size_for_pointer_math): New function, either returns
10125 the size for a pointer's target, returns 1 for void *, or errors for
10126 incomplete types.
10127 (value_add, value_sub): use find_size_for_pointer_math.
10128
2f2893d9
DJ
101292002-04-09 Daniel Jacobowitz <drow@mvista.com>
10130
10131 * linux-low.c (linux_look_up_symbols): New hook.
10132 (linux_target_ops): Add linux_look_up_symbols.
10133 * remote-utils.c (decode_address): New function.
10134 (look_up_one_symbol): New function.
10135 * server.c (handle_query): Call target look_up_symbols hook.
10136 * server.h (look_up_one_symbol): Add prototype.
10137 * target.h (struct target_ops): Add look_up_symbols hook.
10138
96cb11df
AC
101392002-04-09 Andrew Cagney <ac131313@redhat.com>
10140
10141 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10142 override FP_REGNUM with frame->fp. Update copyright.
10143 * parse.c (num_std_regs, std_regs): Delete.
10144 (target_map_name_to_register): Do not search std_regs. Update
10145 function description.
10146 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10147 declarations. Update copyright.
10148 Fix PR gdb/251.
361d1df0 10149
97658e92
DJ
101502002-04-09 Daniel Jacobowitz <drow@mvista.com>
10151
10152 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10153 after the last symbol in a block.
10154
6044e3eb
PM
101552002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10156
10157 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10158 is non zero as a found symbol.
10159
0406ec40
AC
101602002-04-08 Andrew Cagney <ac131313@redhat.com>
10161
10162 * findvar.c: Include "builtin-regs.h".
10163 (value_of_register): Call value_of_builtin_reg when applicable.
10164 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10165 (target_map_name_to_register): Call
10166 builtin_reg_map_name_to_regnum.
10167 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10168 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10169 (builtin_regs_h): Define.
10170 (builtin-regs.o): New target.
10171 (findvar.o): Add $(builtin_regs_h).
10172 * builtin-regs.c, builtin-regs.h: New files.
10173 * std-regs.c: New file.
10174 Partial fix for PR gdb/251.
10175
56a6dfb9
KB
101762002-04-08 Kevin Buettner <kevinb@redhat.com>
10177
10178 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10179 it's no longer required.
10180
3a808432
AC
101812002-04-08 Andrew Cagney <ac131313@redhat.com>
10182
10183 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10184
7c40d541
KB
101852002-04-08 Kevin Buettner <kevinb@redhat.com>
10186
10187 From Jimi X <jimix@watson.ibm.com>:
10188 * rs6000-tdep.c (rs6000_software_single_step): Use
10189 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10190 and size. Use target_insert_breakpoint() and
10191 target_remove_breakpoint() to insert and remove breakpoints
10192 instead of explicit memory reads and writes.
10193
cc9836a8
KB
101942002-04-08 Kevin Buettner <kevinb@redhat.com>
10195
10196 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10197 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10198 ELF_OBJECT_FORMAT ifdef.
10199
7495d1dc
KB
102002002-04-08 Kevin Buettner <kevinb@redhat.com>
10201
10202 From Jimi X <jimix@watson.ibm.com>:
10203 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10204
4288e836
KB
102052002-04-08 Kevin Buettner <kevinb@redhat.com>
10206
10207 From Jimi X <jimix@watson.ibm.com>:
10208 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10209 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10210
a4e4e501
MK
102112002-04-07 Mark Kettenis <kettenis@gnu.org>
10212
10213 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10214 s/asprintf/xasprintf/.
10215 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10216
006defba
AC
102172002-04-07 Andrew Cagney <ac131313@redhat.com>
10218
10219 I believe Jeff Law denies responsability for this one:
10220 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10221 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10222 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10223 Work-around for PR gdb/366.
10224
7aa83cac
EZ
102252002-04-07 Elena Zannoni <ezannoni@redhat.com>
10226
10227 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10228 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10229 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10230
cf1fcca1
EZ
102312002-04-07 Elena Zannoni <ezannoni@redhat.com>
10232
10233 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10234 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10235 information.
10236
3f289e6f
AC
102372002-04-07 Andrew Cagney <ac131313@redhat.com>
10238
10239 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10240 maintainer.
10241
129188f6
AC
102422002-04-07 Andrew Cagney <ac131313@redhat.com>
10243
10244 * README (Reporting Bugs in GDB): Document the bug web page as the
10245 prefered way of submitting bugs.
10246 Fix PR gdb/402.
10247
1200cd6e
AC
102482002-04-06 Andrew Cagney <ac131313@redhat.com>
10249
10250 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10251 -1. Update comment.
10252 * gdbarch.h, gdbarch.c: Re-generate.
10253
2853c33c
AS
102542002-04-07 Andreas Schwab <schwab@suse.de>
10255
10256 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10257 buffer to regcache_collect.
10258
c2169756
AC
102592002-04-06 Andrew Cagney <ac131313@redhat.com>
10260
10261 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10262 * gdbarch.c, gdbarch.h: Re-generate.
10263
25f1b008
AC
102642002-04-06 Andrew Cagney <ac131313@redhat.com>
10265
10266 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10267 declaration. Fix -Werror.
10268
59263426
DJ
102692002-04-05 Daniel Jacobowitz <drow@mvista.com>
10270
10271 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10272 * gdbarch.c: Regenerate.
10273
f5db4da3
MS
102742002-04-05 Michael Snyder <msnyder@redhat.com>
10275
80f8a6eb
MS
10276 * breakpoint.c (clear_command): Rewrite middle section to
10277 combine two loops with identical control conditions.
10278 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10279 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10280
ad3dcc5c
L
102812002-04-05 H.J. Lu (hjl@gnu.org)
10282
10283 * solib-svr4.c (bkpt_names): Add "__start".
10284
f32e7a74
AC
102852002-04-04 Andrew Cagney <ac131313@redhat.com>
10286
10287 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10288 as test for 64 bit target.
10289
8227c0ff
AC
102902002-04-05 Andrew Cagney <ac131313@redhat.com>
10291
10292 * h8500-tdep.c (h8500_write_fp): Delete function.
10293 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10294 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10295 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10296 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10297 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10298 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10299 (s390_write_fp):
10300 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10301 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10302 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10303 (d10v_write_fp): Delete function.
10304 * inferior.h (write_fp, generic_target_write_fp): Delete
10305 declarations.
10306 * regcache.c (generic_target_write_fp): Delete function.
10307 (write_fp): Delete function.
10308 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10309 * gdbarch.h, gdbarch.c: Regenerate.
10310 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10311 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10312 (sparc64_write_fp): Delete declaration.
10313 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10314 (h8500_write_fp): Delete declaration.
10315
2757dd86
AC
103162002-04-04 Andrew Cagney <ac131313@redhat.com>
10317
10318 * sparc-tdep.c (sparc64_write_fp): Delete.
10319 (sparc_push_dummy_frame): Replace write_fp call with code to store
10320 the FP directly.
10321 (sparc_gdbarch_init): Do not initialize write_fp.
10322
c69255e1
KB
103232002-04-05 Kevin Buettner <kevinb@redhat.com>
10324
10325 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10326 clause.
10327
ae767bfb
JB
103282002-03-29 Jim Blandy <jimb@redhat.com>
10329
10330 * stack.c (get_selected_block): Add new argument `addr_in_block',
10331 used to return the exact code address we used to select the block,
10332 not just the block.
10333 * blockframe.c (get_frame_block, get_current_block): Same.
10334 * frame.h (get_frame_block, get_current_block,
10335 get_selected_block): Update declarations.
10336 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10337 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10338
84d2ac95
MS
103392002-04-05 Michael Snyder <msnyder@redhat.com>
10340
10341 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10342 warning message.
10343
596aa3bf
JB
103442002-04-05 J. Brobecker <brobecker@gnat.com>
10345
10346 * utils.c (xfullpath): New function.
10347 * defs.h (xfullpath): Add declaration.
10348 * source.c (openp): Use xfullpath in place of gdb_realpath to
10349 avoid resolving the basename part of filenames when the
10350 associated file is a symbolic link. This fixes a potential
10351 inconsistency between the filenames known to GDB and the
10352 filenames it prints in the annotations.
10353 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10354 to be able to match a filename with either the real filename, or
10355 the name of any symbolic link to this file.
10356 (lookup_partial_symtab): Ditto.
10357
c02f5703
MS
103582002-04-04 Michael Snyder <msnyder@redhat.com>
10359
10360 * breakpoint.c: Add support for hardware breakpoints in overlays.
10361 (overlay_events_enabled): New state variable.
10362 (insert_breakpoints): Use overlay_events_enabled to decide
10363 whether to attempt to set a breakpoint at the overlay load addr.
10364 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10365 (remove_breakpoint): Use overlay_events_enabled to decide
10366 whether breakpoints need to be removed from overlay load addr.
10367 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10368 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 10369 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
10370 disable_overlay_breakpoints): Update overlay_events_enabled.
10371
5fb290d7
DJ
103722002-04-04 Daniel Jacobowitz <drow@mvista.com>
10373
10374 * dwarf2read.c (struct function_range): New.
10375 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10376 (check_cu_functions): New.
10377 (read_file_scope): Initialize global function lists.
10378 Call dwarf_decode_line after processing children.
10379 (read_func_scope): Add to global function list.
10380 (dwarf_decode_lines): Call check_cu_functions everywhere
10381 record_line is called. Call record_line with a linenumber
10382 of 0 to mark sequence ends.
10383
7b3fabf0
ML
103842002-04-04 Michal Ludvig <mludvig@suse.cz>
10385
361d1df0 10386 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
10387 change sync with glibc.
10388
bce58c09
JB
103892002-04-03 Jim Blandy <jimb@redhat.com>
10390
10391 * configure.in: Call AC_C_INLINE.
10392 * configure: Regenerated.
361d1df0 10393
2fccf04a
DJ
103942002-04-01 Daniel Jacobowitz <drow@mvista.com>
10395
10396 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10397 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10398
2d1bfe2e
MK
103992002-03-31 Mark Kettenis <kettenis@gnu.org>
10400
a5941fbf
MK
10401 * NEWS: Mention gcore support on FreeBSD/i386.
10402
a90cd31d
MK
10403 * fbsd-proc.c: New file.
10404 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10405 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10406
2d1bfe2e
MK
10407 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10408 while statement.
10409
9eb6e5a1
JB
104102002-03-29 Jim Blandy <jimb@redhat.com>
10411
10412 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10413 unescaped newlines in string literals, but newer ones don't. So
10414 escape them.
10415
f02df580
MS
104162002-03-26 Michael Snyder <msnyder@redhat.com>
10417 Andrew Cagney <cagney@redhat.com>
10418
361d1df0 10419 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10420 restore file to memory.
10421 * cli/cli-dump.h: New file.
10422 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10423 * NEWS: Mention new commands.
f02df580 10424
109f874e
MS
104252002-03-28 Michael Snyder <msnyder@redhat.com>
10426
10427 * symfile.c (symbol_file_add): Move test for null symbols to later.
10428
520f6ade
AC
104292002-03-27 Andrew Cagney <ac131313@redhat.com>
10430
10431 From veksler at il.ibm.com:
10432 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10433 the xstrduped original path.
10434 Fix PR gdb/417.
10435
d4654627
MS
104362002-03-27 Michael Snyder <msnyder@redhat.com>
10437
10438 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10439 * infcmd.c (_initialize_infcmd): Ditto.
10440 * language.c (_initialize_language): Ditto.
10441 * symfile.c (_initialize_symfile): Ditto.
10442 * top.c (_init_main): Ditto.
10443 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10444
6be8bc0c
EZ
104452002-03-27 Elena Zannoni <ezannoni@redhat.com>
10446
10447 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10448 vector registers handling.
10449 (skip_prologue): Handle new AltiVec instructions. Fill in new
10450 fields of frame data.
10451 (frame_get_saved_regs): Fill in information for AltiVec registers.
10452
12af6855
JB
104532002-03-27 Jim Blandy <jimb@redhat.com>
10454
10455 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10456 a function; leave this macro here to invoke that function.
10457 (symbol_init_mangled_name): Declaration for that function.
10458 * symtab.c (symbol_init_mangled_name): New function.
10459
dc672865
AC
104602002-03-27 Andrew Cagney <ac131313@redhat.com>
10461
10462 * valarith.c: Replace strerror with safe_strerror.
10463 * tracepoint.c: Ditto.
10464 * lin-lwp.c: Ditto.
10465 * go32-nat.c: Ditto.
10466 * inflow.c: Ditto.
10467 * gnu-nat.c: Ditto.
10468
d96429cd
AS
104692002-03-27 Andreas Schwab <schwab@suse.de>
10470
10471 * event-top.c (command_line_handler): Remove useless if.
10472
7e336ba1
AJ
104732002-03-27 Andreas Jaeger <aj@suse.de>
10474
10475 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10476 comment.
10477
de220d0f
ML
104782002-03-27 Michal Ludvig <mludvig@suse.cz>
10479
10480 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10481 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10482 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10483 (x86_64_linux_dr_get_status, supply_gregset),
10484 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10485 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10486 (x86_64_register_info_table): Add.
10487 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10488 (x86_64_register_raw_size, x86_64_register_virtual_type),
10489 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10490 general x86_64_register_info_table.
10491 (i386_gdbarch_init): gdbarch_register_bytes is now set
10492 dynamicaly during initialization.
10493 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10494 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 10495
0e98d0a7
DJ
104962002-03-27 Daniel Jacobowitz <drow@mvista.com>
10497
10498 * gdbserver/server.c (main): Call target_signal_to_host_p
10499 and target_signal_to_host on signals received from the remote.
10500 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10501 target_signal_from_host on signals sent to the remote.
10502 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10503 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10504
3130066b
DJ
105052002-03-27 Daniel Jacobowitz <drow@mvista.com>
10506
10507 * signals/signals.c: Include "server.h" in gdbserver build.
10508 (target_signal_from_name): Don't use STREQ.
10509 (_initialize_signals): Likewise. Don't include function in
10510 gdbserver build.
10511
9aedf4f4
DJ
105122002-03-27 Daniel Jacobowitz <drow@mvista.com>
10513
10514 * signals.c: Moved to...
10515 * signals/signals.c: Here.
7e336ba1 10516 * Makefile (signals.o): Update.
9aedf4f4 10517
3fa41cdb
JL
105182002-03-26 Jeff Law (law@redhat.com)
10519
10520 * somread.c (som_symtab_read): Remove some commented out code and
10521 updated related comments. Do not set the minimal symbol table to
10522 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10523 in a dynamic executable.
10524 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10525 where we are unable to find the minimal symbol for the given
10526 PC value.
10527
ee677e8d
MS
105282002-03-25 Jeff Law (law@redhat.com)
10529
10530 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10531
e76e1718
ML
105322002-03-25 Michal Ludvig <mludvig@suse.cz>
10533
10534 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10535
18a642a1
AC
105362002-03-23 Andrew Cagney <ac131313@redhat.com>
10537
10538 * command.h: Update copyright.
10539 (struct cmd_list_element): Replace definition with opaque
10540 declaration.
10541 (enum cmd_types): Document that it will eventually be moved to
10542 cli/cli-decode.h
10543 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10544 (MALLOCED_REPLACEMENT): Delete macro.
10545 * Makefile.in (cli_decode_h): Add $(command_h).
10546 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 10547 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
10548 * completer.c: Include "cli/cli-decode.h".
10549 * maint.c: Include "cli/cli-decode.h".
10550 * cli/cli-decode.h: Include "command.h".
10551 (enum command_class): Delete.
10552 (enum cmd_types): Comment out.
10553 (enum cmd_auto_boolean): Delete.
10554 (enum var_types): Delete.
10555
b2875cc0
AC
105562002-03-23 Andrew Cagney <ac131313@redhat.com>
10557
10558 * cli/cli-decode.c: Include "gdb_assert.h".
10559 (add_set_or_show_cmd): New static function.
10560 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10561 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10562 all fields, such as func, from the set command.
10563
3b45974e
AC
105642002-03-23 Andrew Cagney <ac131313@redhat.com>
10565
10566 * MAINTAINERS (sh-elf): Change warning flag to -w.
10567
823ca731
AC
105682002-03-23 Andrew Cagney <cagney@redhat.com>
10569
10570 * defs.h (error): Add printf format attribute.
10571 * thread-db.c (thread_from_lwp): Fix error format string.
10572 * stack.c (parse_frame_specification): Ditto.
10573 * cli/cli-decode.c (undef_cmd_error): Ditto.
10574 * scm-lang.c (scm_lookup_name): Ditto.
10575 * tracepoint.c (trace_error): Ditto.
10576 * remote-utils.c (usage): Ditto.
10577 * remote.c (compare_sections_command): Ditto.
10578 Fix PR gdb/328.
10579
0e101458
AC
105802002-03-22 Andrew Cagney <ac131313@redhat.com>
10581
10582 * gdbtypes.c (append_composite_type_field): New function.
10583 (init_composite_type): New function.
10584 * gdbtypes.h (append_composite_type_field): Declare.
10585 (init_composite_type): Ditto.
10586
8e0662df
EZ
105872002-03-22 Elena Zannoni <ezannoni@redhat.com>
10588
10589 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 10590 function.
8e0662df
EZ
10591 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10592 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10593 structure returning convention for SYSV ABI case, but not
10594 for GNU/Linux, FreeBSD, or NetBSD.
10595
3121eff0
DJ
105962002-03-22 Daniel Jacobowitz <drow@mvista.com>
10597
10598 * symtab.h (lookup_block_symbol): Add mangled_name argument
10599 to prototype.
10600
10601 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10602 with new mangled_name argument.
10603 * linespec.c (decode_line_1): Likewise.
10604 * valops (value_of_this): Likewise.
10605 * symtab.c (lookup_transparent_type): Likewise.
10606 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10607 (lookup_symbol): If we are given a mangled name, pass it down
10608 to lookup_symbol_aux.
10609 (lookup_block_symbol): If we are given a mangled name to check
10610 against, only return symbols which match it.
10611
349b409f
CF
106122002-03-22 Christopher Faylor <cgf@redhat.com>
10613
10614 * win32-nat.c (child_create_inferior): Check for proper shell to use
10615 here, in case the user changes it on the fly.
10616 (_initialize_inftarg): Remove shell path considerations.
10617
2a873819
EZ
106182002-03-21 Elena Zannoni <ezannoni@redhat.com>
10619
10620 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10621 for gdbarch_max_register_raw_size and max_register_virtual_size.
10622 Adjust copyright year.
10623
a1b9830c
DJ
106242002-03-21 Daniel Jacobowitz <drow@mvista.com>
10625
10626 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10627 in a function to cover the entire beginning of the function
10628 as well if it does not already.
10629
8b5790f2
TR
106302002-03-21 Tom Rix <trix@redhat.com>
10631
10632 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10633 (rs6000_ptrace64): Renamed from ptrace64.
10634
bdbe5747
MH
106352002-03-20 Martin M. Hunt <hunt@redhat.com>
10636
10637 * gdbserver/remote-utils.c (remote_open): Don't call
10638 getprotobyname, we're all using TCP here so just use
10639 IPPROTO_TCP.
7e336ba1 10640 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
10641
106422002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 10643
bdbe5747
MH
10644 * regcache.c (_initialize_regcache): No need to call
10645 build_regcache() at this time; it gets called whenever
10646 the gdbarch changes.
10647
7781cd62
DB
106482002-03-20 David O'Brien <obrien@FreeBSD.org>
10649
10650 * sparc-nat.c: Include sys/param.h where possible.
10651
f65ca430
DJ
106522002-03-20 Daniel Jacobowitz <drow@mvista.com>
10653
10654 Fix PR gdb/422.
10655 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10656 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10657 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10658 complex types.
10659 * stabsread.c (rs6000_builtin_type): Likewise.
10660 (read_sun_floating_type): Likewise.
10661
0c867556
PS
106622002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10663
10664 * stabsread.c (read_member_functions): Remove skip code for duplicate
10665 constructor/destructor methods. Use standard parsing for these
10666 methods and just do not chain them to the list of methods after
10667 parsing.
10668
12b9c64f
AO
106692002-03-19 Alexandre Oliva <aoliva@redhat.com>
10670
10671 * coffread.c: Remove redundant static declarations. Replace
10672 occurrences of `PTR' with `void *'.
10673 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10674 * top.h (quit_cover): Likewise.
10675 * defs.h (catch_errors): Likewise.
10676
349c5d5f
AC
106772002-03-18 Andrew Cagney <ac131313@redhat.com>
10678
10679 * defs.h (XMALLOC): Define.
10680 * gdb-events.sh (XMALLOC): Delete macro.
10681 * gdb-events.c, gdb-events.h: Regenerate.
10682 * gdbarch.sh (XMALLOC): Delete macro.
10683 * gdbarch.c: Regenerate.
10684 * serial.c (XMALLOC): Delete macro.
10685 * ui-file.c (XMALLOC): Ditto.
10686 * ser-unix.h (XMALLOC): Ditto.
10687 * sh-tdep.c (XMALLOC): Ditto.
10688 * ui-out.c (XMALLOC): Ditto.
10689 * utils.c (XMALLOC): Ditto.
10690 * i386-tdep.c (XMALLOC): Ditto.
10691 * gdb-events.c (XMALLOC): Ditto.
10692 * d10v-tdep.c (XMALLOC): Ditto.
10693 * cli-out.c (XMALLOC): Ditto.
10694
10695 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10696 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10697 * ui-file.c, ui-out.c: Ditto.
10698
7d0766f3
AC
106992002-03-18 Andrew Cagney <ac131313@redhat.com>
10700
10701 * command.h (struct cmd_list_element): Add field context.
10702 (set_cmd_context, get_cmd_context): Declare.
10703 * cli/cli-decode.h: Ditto.
10704 * cli/cli-decode.c (get_cmd_context): New function.
10705 (set_cmd_context): New function.
10706 (add_cmd): Initialize context.
10707 Part of fixing PR gdb/145 and PR gdb/146.
10708
5913bcb0
AC
107092002-03-17 Andrew Cagney <ac131313@redhat.com>
10710
1868c04e
AC
10711 * cli/cli-decode.c (cmd_type): New function.
10712 * command.h (cmd_type): Declare.
10713 * infrun.c (set_schedlock_func): Call function cmd_type.
10714 * kod.c (kod_set_os): Call cmd_type.
10715 * cris-tdep.c (cris_version_update): Use function cmd_type.
10716 (cris_mode_update, cris_abi_update): Ditto.
10717
5913bcb0
AC
10718 * command.h: (execute_cmd_post_hook): Declare.
10719 (execute_cmd_pre_hook): Declare.
10720 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10721 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10722 functions. Execute pre/post hook while ensuring that afterwords
10723 hook_in is cleared.
10724 * top.c (execute_command): Use execute_cmd_post_hook, and
10725 execute_cmd_pre_hook to execute pre/post commands.
10726 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10727 hook_stop_stub.
10728 (hook_stop_stub): Call execute_cmd_pre_hook.
10729
b51450c9
AC
107302002-03-17 Andrew Cagney <ac131313@redhat.com>
10731
10732 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10733 set'' and this leads to a core dump. Move xstrdup of
10734 operating_system to after check that it is not NULL.
10735
f66c9f11
AC
107362002-03-17 Andrew Cagney <ac131313@redhat.com>
10737
8e694ecf
AC
10738 * kod.c (kod_set_os): Remove unnecessary check that
10739 ``command->type'' is set_cmd.
10740
f66c9f11
AC
10741 * valprint.c (set_input_radix): Use input_radix.
10742 (set_output_radix): Use output_radix.
10743 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10744 isn't reverted.
10745
9d01611c
AC
107462002-03-16 Andrew Cagney <ac131313@redhat.com>
10747
10748 * value.h (struct value): Delete field ``substring_addr''. Change
10749 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
10750 force_core_addr_align and force_pointer_aligh.
10751
10752 * value.h (struct value): Fix typo in above change.
9d01611c 10753
4156bb53
PS
107542002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10755
10756 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10757 to fix internal_error from ``maintenance print architecture''.
10758
0e5e3ea6
PS
107592002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10760
10761 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10762 for gcc versions after gcc-2.8.1.
10763
9b013045
PS
107642002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10765
10766 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10767 for method resolution. Restore adjustment of ``this'' pointer after
10768 calling value_struct_elt, which was accidentally removed during the
10769 HP merge.
10770
376c9600
AC
107712002-03-15 Andrew Cagney <ac131313@redhat.com>
10772
10773 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10774 value_of_register.
10775 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10776 get_saved_register.
10777 * value.h (value_of_register): Update.
10778
a4db0f07
RH
107792002-03-14 Richard Henderson <rth@redhat.com>
10780
10781 * configure.in: Detect declaration for canonicalize_file_name.
10782 * utils.c (canonicalize_file_name): Declare, if needed.
10783 (gdb_realpath): Prefer realpath if available and usable.
10784 * config.in, configure: Rebuild.
10785
96383835
RH
107862002-03-14 Richard Henderson <rth@redhat.com>
10787
10788 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10789 a constant array bound.
10790
10791 * MAINTAINERS: Add myself to write-after-approval.
10792
75245b24
MS
107932002-03-14 Michael Snyder <msnyder@redhat.com>
10794
10795 * symfile.c (syms_from_objfile): Return immediately if no syms.
10796 (symbol_file_add): Return immediately if no syms.
10797 (find_sym_fns): Return immediately if no syms.
10798
e641a1ca
ML
107992002-03-13 Michal Ludvig <mludvig@suse.cz>
10800
10801 * gdbserver/remote-util.c (remote_open): Print remote-side's
10802 IP address when remote debugging over the network.
7e336ba1 10803
df08bfec
DB
108042002-03-12 David O'Brien <obrien@FreeBSD.org>
10805
10806 * config/sparc/fbsd.mh: Fix copyright.
10807 * config/sparc/fbsd.mt: Likewise.
10808
9a57864f
RE
108092002-03-11 Richard Earnshaw <rearnsha@arm.com>
10810
10811 * MAINTAINERS: Fix typo in name of gdb warnings option.
10812 (x86-64): Fix formating so that this can be parsed by awk.
10813
dd7bf85e
DJ
108142002-03-10 Daniel Jacobowitz <drow@mvista.com>
10815
10816 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10817 * defs.h: Include "gdb/signals.h".
10818 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10819
33a0a2ac
ML
108202002-03-10 Michal Ludvig <mludvig@suse.cz>
10821
10822 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 10823 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
10824 from x86-64-tdep.h
10825
dd824b04
DJ
108262002-03-10 Daniel Jacobowitz <drow@mvista.com>
10827 Don Howard <dhoward@redhat.com>
10828
10829 * mips-tdep.c (ST0_FR): Define.
10830 (mips2_fp_compat): New function, temporarily disabled.
10831 (mips_read_fp_register_single): New function.
10832 (mips_read_fp_register_double): New function.
10833 (mips_print_register): Use them.
10834 (do_fp_register_row): Likewise.
10835
6a41ff59
AC
108362002-03-09 Andrew Cagney <ac131313@redhat.com>
10837
10838 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10839 approval''.
10840
4ea09c10
PS
108412002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10842
10843 * stabsread.c (read_member_functions): Fix is_stub test for
10844 static member functions, improve comment.
10845
6ccc741d
RE
108462002-03-07 Richard Earnshaw <rearnsha@arm.com>
10847
10848 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10849 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10850 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10851 commands that set boolean values.
10852 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10853 (arm_rdi_resume): Always initialize PC.
10854 (arm_rdi_open): Don't use rslt as a boolean.
10855 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10856 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10857 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10858 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10859
438013df
AO
108602002-03-06 Alexandre Oliva <aoliva@redhat.com>
10861
10862 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10863 * configure: Rebuilt.
10864
70ed8774
SC
108652002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10866
10867 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10868 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10869
5ba2abeb
AC
108702002-03-06 Andrew Cagney <ac131313@redhat.com>
10871
10872 * cli/cli-decode.c (set_cmd_completer): New function.
10873 * command.h (set_cmd_completer): Declare.
10874 * cli/cli-decode.h (set_cmd_completer): Ditto.
10875
10876 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10877 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10878 * win32-nat.c (_initialize_inftarg): Ditto.
10879 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10880 * proc-api.c (_initialize_proc_api): Ditto.
10881 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10882 * source.c (_initialize_source): Ditto.
10883 * exec.c (_initialize_exec): Ditto.
10884 * solib.c (_initialize_solib): Ditto.
10885 * top.c (init_main): Ditto.
10886 * tracepoint.c (_initialize_tracepoint): Ditto.
10887 * symfile.c (_initialize_symfile): Ditto.
10888 * printcmd.c (_initialize_printcmd): Ditto.
10889 * infcmd.c (_initialize_infcmd): Ditto.
10890 * corefile.c (_initialize_core): Ditto.
10891
f779ca99
AC
108922002-03-05 Andrew Cagney <ac131313@redhat.com>
10893
10894 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10895
01a3934b
AC
108962002-03-05 Andrew Cagney <ac131313@redhat.com>
10897
10898 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10899
37057839
AC
109002002-03-05 Andrew Cagney <ac131313@redhat.com>
10901
10902 * NEWS: Update headings, 5.2 has branched.
10903
c6ecbae5
DJ
109042002-03-04 Daniel Jacobowitz <drow@mvista.com>
10905
10906 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10907 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10908 (register_addr, REGISTER_RAW_SIZE): Likewise.
10909 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10910 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10911
e9f30c21
ML
109122002-03-03 Michal Ludvig <mludvig@suse.cz>
10913
10914 * MAINTAINERS (x86-64): Add myself.
10915 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10916 changed value_ptr -> struct value *
10917
54394ac3
DB
109182002-03-01 David O'Brien <obrien@FreeBSD.org>
10919
10920 * configure.host (sparc64-*-freebsd): Add.
10921 * configure.tgt: Likewise.
10922 * config/sparc/fbsd.mh: New file.
10923 * config/sparc/fbsd.mt: Likewise.
10924 * config/sparc/nm-fbsd.h: Likewise.
10925 * config/sparc/tm-fbsd.h: Likewise.
10926
bfe95955
DJ
109272002-03-01 Daniel Jacobowitz <drow@mvista.com>
10928
10929 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10930 regformats/reg-s390x.dat.
10931
f33c6cbf
AC
109322002-03-01 Andrew Cagney <ac131313@redhat.com>
10933
10934 * utils.c: Add FIXME explaining true/false problem.
10935
5ecaa7dd
AC
109362002-02-28 Andrew Cagney <ac131313@redhat.com>
10937
10938 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10939
2a251cc2
MC
109402002-02-28 Michael Chastain <mec@shout.net>
10941
10942 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10943
6a8031a3 109442002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
10945
10946 * gdbserver/linux-s390-low.c: New file.
10947 * regformats/reg-s390.dat: New file.
10948 * regformats/reg-s390x.dat: New file.
10949 * gdbserver/configure.srv: Add S/390.
10950 * gdbserver/Makefile.in: Add S/390.
10951 * configure.tgt: Enable gdbserver for S/390.
10952
ac469903
EZ
109532002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10954
10955 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10956 first line of the doc string for "info dos", except at the end of
10957 the sentence, since the short help stops at the first period.
10958
985cb1a3
JM
109592002-02-28 Jason Merrill <jason@redhat.com>
10960
10961 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10962
c570663e
FF
109632002-02-27 Fred Fish <fnf@redhat.com>
10964
10965 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10966 comment (dumy -> dummy).
10967
43630227
PS
109682002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10969
10970 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10971
b84911e8
RB
109722002-02-27 Rodney Brown <rbrown64@csc.com.au>
10973
10974 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10975
58caa3dc
DJ
109762002-02-27 Daniel Jacobowitz <drow@mvista.com>
10977
10978 * gdbserver/acconfig.h: New file.
10979 * gdbserver/i387-fp.c: New file.
10980 * gdbserver/i387-fp.h: New file.
10981 * gdbserver/linux-x86-64.c: New file.
10982 * regformats/reg-x86-64.dat: New file.
10983 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10984 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10985 * gdbserver/configure.in: Add support for regsets.
10986 * gdbserver/config.in: Regenerate.
10987 * gdbserver/configure: Regenerate.
10988 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10989 * gdbserver/linux-low.h: New file.
10990 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10991 for regsets.
10992 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10993 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10994 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10995 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10996 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10997 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10998 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10999 "i387-fp.h". Add PTRACE_GETREGS and friends.
11000 * gdbserver/regcache.c (supply_register): New function.
11001 (supply_register_by_name): New function.
11002 (collect_register): New function.
11003 (collect_register_by_name): New function.
11004
93652174
DJ
110052002-02-27 Daniel Jacobowitz <drow@mvista.com>
11006
11007 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11008 (config.status): Add configure.srv dependency.
11009 (server_h): Add config.h dependency.
11010
a02e4a61
DJ
110112002-02-27 Daniel Jacobowitz <drow@mvista.com>
11012
11013 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11014 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11015 * gdbserver/configure.srv: Change i386-*-linux* to use
11016 reg-i386-linux.o.
11017
ce0eebec
AC
110182002-02-26 Andrew Cagney <ac131313@redhat.com>
11019
11020 * x86-64-tdep.c: Re-indent. Update copyright date.
11021
82dbc5f7
AC
110222002-02-26 Andrew Cagney <ac131313@redhat.com>
11023
11024 From Michal Ludvig <mludvig@suse.cz>:
11025 * x86-64-tdep.c (value.h): Delete.
11026 (gdb_assert.h): Include.
11027 (x86_64_register_convert_to_virtual,
11028 x86_64_register_convert_to_raw ): Add check which lets only
11029 floating-point values to be converted.
11030 (value_push): Delete.
11031 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11032 (i386_gdbarch_init): Number of register_bytes fixed.
11033
e4621584
AC
110342002-02-26 Andrew Cagney <ac131313@redhat.com>
11035
11036 * MAINTAINERS: Add x86-64 target.
11037
81a9a963
AC
110382002-02-26 Andrew Cagney <ac131313@redhat.com>
11039
11040 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11041 * osfsolib.c (solib_map_sections): Ditto.
11042 * irix5-nat.c (solib_map_sections): Ditto.
11043 * corelow.c (gdb_check_format): Ditto.
11044 * symfile.c (symfile_bfd_open): Ditto.
11045 * solib.c (solib_map_sections): Ditto.
11046 Fix PR gdb/354.
7e336ba1 11047
0f017ab9
AC
110482002-02-26 Andrew Cagney <ac131313@redhat.com>
11049
11050 * remote.c (_initialize_remote): By default, disable ``e'' and
11051 ``E'' step out-of-range packets.
11052
75738c29
AS
110532002-02-26 Andreas Schwab <schwab@suse.de>
11054
11055 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11056 m68k_linux_frame_saved_pc.
11057 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11058 in_sigtramp.
11059 (SIGCONTEXT_PC_OFFSET): Remove.
11060 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11061 m68k_linux_sigtramp_saved_pc): New functions.
11062 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11063 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11064 (UCONTEXT_PC_OFFSET): Define.
11065 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11066 non-RT and RT signal trampolines.
11067
7e8ed687
RE
110682002-02-26 Richard Earnshaw <rearnsha@arm.com>
11069
11070 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11071 (TARGET_NBPG, STACK_END_ADDR): Delete
11072 (VARIABLES_INSIDE_BLOCK): Delete.
11073
6972bc8b
AC
110742002-02-25 Andrew Cagney <ac131313@redhat.com>
11075
11076 * utils.c (perror_with_name): Make string parameter constant.
11077 (print_sys_errmsg): Ditto.
11078 (query): Ditto.
11079 * defs.h (perror_with_name): Update.
11080 (print_sys_errmsg): Update.
11081 (query): Update.
11082
aa32f823
DJ
110832002-02-25 Daniel Jacobowitz <drow@mvista.com>
11084
11085 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11086 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11087
19caaa45
PS
110882002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11089
11090 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11091 if it already matches the current architecture from the exec file.
11092 Include arch-utils.h for gdbarch_info_init prototype.
11093 * Makefile.in (rs6000-nat.o): Update dependencies.
11094
d951901f
EZ
110952002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11096
11097 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11098 list of exported variables.
11099
7ea81414
DJ
111002002-02-24 Daniel Jacobowitz <drow@mvista.com>
11101
11102 * gdbserver/configure.srv: New file.
11103 * gdbserver/configure.in: Use configure.srv instead
11104 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11105 from it.
11106 * gdbserver/configure: Regenerated.
11107 * gdbserver/terminal.h: New file.
11108 * gdbserver/Makefile.in: Update for configure changes. Remove
11109 more unneeded include paths.
11110
080fe24b
AC
111112002-02-24 Andrew Cagney <ac131313@redhat.com>
11112
11113 From wiz at danbala:
11114 * config/sparc/tm-sp64.h: Fix grammar and typos.
11115 Fix PR gdb/287.
11116
8605d56e
AC
111172002-02-24 Andrew Cagney <ac131313@redhat.com>
11118
11119 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
11120 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11121 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11122 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
11123 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11124 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11125 * s390-tdep.c: Ditto.
92362027
AC
11126 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11127 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11128 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11129 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11130 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11131 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11132 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11133 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11134 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11135 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 11136 Fix PR gdb/378.
7e336ba1 11137
8ed32cc0
AC
111382002-02-23 Andrew Cagney <ac131313@redhat.com>
11139
a3007b6f
AC
11140 * lin-thread.c: Delete file.
11141 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11142 to gdb_proc_service.h.
11143 * configure: Re-generate.
11144
50a9e2f1
AC
11145 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11146 * serial.c (serial_open): Delete check for "ocd".
11147 Fix PR gdb/349.
11148
8b6e7932
AC
11149 * Makefile.in (linux-thread.o): Delete target.
11150 * linux-thread.c: Delete file.
11151
d155c46b
AC
11152 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11153 renamed SH files to be consistent.
11154
8ed32cc0
AC
11155 * symtab.c (sort_search_symbols): Use xfree.
11156
0e18d038
RE
111572002-02-23 Richard Earnshaw <rearnsha@arm.com>
11158
11159 * arm-linux-tdep.c (arm_linux_init_abi): Register
11160 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11161 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11162 definition with undef, since we don't want the sysvr4 definition.
11163 (SKIP_TRAMPOLINE_CODE): Likewise.
11164
27aac7ff
AC
111652002-02-23 Andrew Cagney <ac131313@redhat.com>
11166
11167 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11168
11169 * configure.in: (AC_CHECK_FUNCS) Added test for
11170 canonicalize_file_name Regenerated.
11171 * config.in, configure: Regenerated.
11172 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11173 defined use canonicalize_file_name.
7e336ba1 11174
65a6e0ee
MC
111752002-02-23 Michael Chastain <mec@shout.net>
11176
11177 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11178
47b95330
AC
111792002-02-23 Andrew Cagney <ac131313@redhat.com>
11180
11181 * README: Remove references to cygnus.com.
11182 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11183 dot com'' form. Remove references to cygnus.com and sourceware.
11184
696f451b
AC
111852002-02-23 Andrew Cagney <ac131313@redhat.com>
11186
11187 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11188 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11189 1003.1-2001 no longer allows "head -1".
11190 * gdb/Makefile.in (version.c): Likewise.
11191 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11192 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11193 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11194
bbaca940
AC
111952002-02-23 Andrew Cagney <ac131313@redhat.com>
11196
11197 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11198 * command.h (cmd_cfunc_eq): Declare.
11199 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11200
11201 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11202 ``struct cmd_list_element *''.
11203 * cli/cli-cmds.c (is_complete_command): Update. Use
11204 cmd_cfunc_eq.
11205 * top.c (execute_command): Pass the command to
11206 is_complete_command.
11207 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11208
b8b8b047
AC
112092002-02-23 Andrew Cagney <ac131313@redhat.com>
11210
11211 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11212 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11213 architecture defines.
11214 * s390-tdep.c (s390_gdbarch_init): Likewise.
11215
19d3fc80
RE
112162002-02-23 Richard Earnshaw <rearnsha@arm.com>
11217
11218 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11219 (arm_linux_push_arguments): Likewise.
11220 (arm_linux_init_abi): Register them. Also register linux-specific
11221 call_dummy_words.
11222 (find_minsym_and_objfile): Use strcmp, not STREQ.
11223 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11224 (arm_linux_call_dummy_words): Delete declaration.
11225 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11226 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11227 declarations.
11228 (LOWEST_PC): Delete.
11229
3ab13650
PS
112302002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11231
11232 * maint.c (print_section_info): Do not prepend `0x' to filepos
11233 output, it will be handled by local_hex_string_custom.
11234
19d3fc80 112352002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
11236
11237 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11238 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11239 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11240
d85a5daf
JB
112412002-02-22 Jim Blandy <jimb@redhat.com>
11242
11243 Indicate that the bcache functions don't change the strings
11244 they're passed.
11245 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11246 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11247
eeb25b8a
PM
112482002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11249
11250 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11251
6badb179
CF
112522002-02-21 Christopher Faylor <cgf@redhat.com>
11253
11254 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11255 find the complete path to a loaded DLL.
11256
e8717518
FF
112572002-02-21 Fred Fish <fnf@redhat.com>
11258
11259 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11260 that marks the end of the range of a function, enter a line number
11261 entry that has a line number of zero and a PC offset that matches
11262 the end of the function. This starts a range of PC's for which no
11263 line number information is known.
11264 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11265 PC's for which no line number info is found (line number is zero)
11266 then we didn't find any valid line information.
11267 * symtab.h: Document use of zero line number entry.
11268
9abe5450
EZ
112692002-02-21 Elena Zannoni <ezannoni@redhat.com>
11270
11271 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11272 (have_ptrace_getvrregs): Define for run time checks.
11273 (gdb_vrregset_t): New type for Altivec register handling.
11274 (fetch_register, store_register): Fetch/store altivec register
11275 when needed.
11276 (fetch_altivec_register, store_altivec_register): New functions.
11277 (supply_vrregset, fill_vrregset): New functions.
11278 (fetch_altivec_registers, store_altivec_registers): New functions.
11279 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11280 registers as well.
11281
aaa38bb5
AJ
112822002-02-21 Jiri Smid <smid@suse.cz>
11283
11284 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11285
b34db576
RE
112862002-02-21 Richard Earnshaw <rearnsha@arm.com>
11287
11288 * Makefile.in (armnbsd-nat.o): Update dependencies.
11289 * armnbsd-nat.c (supply_gregset): New function. Common code to
11290 supply the integer register set.
11291 (supply_fparegset): New function. Similar for FPA registers.
11292 (fetch_regs, fetch_fp_regs): Use them.
11293 (fetch_core_registers): Likewise.
11294 (fetch_elfcore_registers): New function.
11295 (arm_netbsd_elfcore_fns): New core-file type specification.
11296 (_initialize_arm_netbsd_nat): Register it.
11297
3e56fc4b
RE
112982002-02-21 Richard Earnshaw <rearnsha@arm.com>
11299
11300 * armnbsd-nat.c: Include gdbcore.h.
11301 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11302 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11303 'void' to declaration, to shut up ARI.
11304 (fetch_core_registers): Make static. Rewrite using supply_register.
11305 (arm_netbsd_core_fns): New core-file type specification.
11306 (_initialize_arm_netbsd_nat): New function.
11307
097f6b0b
CF
113082002-02-21 Christopher Faylor <cgf@redhat.com>
11309
11310 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11311 value.
11312
c914e0cc
CF
113132002-02-20 Christopher Faylor <cgf@redhat.com>
11314
11315 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11316 fails.
11317
385fa495
DJ
113182002-02-20 Daniel Jacobowitz <drow@mvista.com>
11319
11320 * jv-exp.y (parse_number): Change type of implicit longs
11321 to builtin_type_uint64.
11322
e5f1222d
DJ
113232002-02-20 Daniel Jacobowitz <drow@mvista.com>
11324
11325 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11326 to be an integer instead of a `union wait'.
11327
75c9abc6
DJ
113282002-02-20 Daniel Jacobowitz <drow@mvista.com>
11329
11330 * mips-linux-nat.c: Call the operating system GNU/Linux.
11331 * mips-linux-tdep.c: Likewise.
11332 * mips-tdep.c: Likewise.
11333
551792a5
DJ
113342002-02-20 Daniel Jacobowitz <drow@mvista.com>
11335
11336 Fix PR gdb/265.
11337 * jv-exp.y (parse_number): Handle 64-bit integers.
11338
ee6e2b82
DJ
113392002-02-20 Daniel Jacobowitz <drow@mvista.com>
11340
11341 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11342 AC_STDC_HEADERS to AC_HEADER_STDC.
11343 * gdbserver/configure: Regenerated.
11344
a48442a0
RE
113452002-02-20 Richard Earnshaw <rearnsha@arm.com>
11346
11347 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11348 is defined.
11349 * sparc-tdep.c (get_longjmp_target): Likewise.
11350
fe419ffc
RE
113512002-02-20 Richard Earnshaw <rearnsha@arm.com>
11352
11353 * News: Add news about ARM and Multi-arch. Mention the new target
11354 arm*-*-netbsd*.
11355
5832ed7e
JB
113562002-02-19 Jim Blandy <jimb@redhat.com>
11357
11358 * stabsread.c (error_type_complaint): Improve error message.
11359
84563040
DJ
113602002-02-19 Daniel Jacobowitz <drow@mvista.com>
11361
11362 * gdbserver/README: Update documentation.
11363 * gdbserver/configure.in: Update configury to match documentation.
11364 * gdbserver/Makefile.in: Likewise.
11365 * gdbserver/configure: Regenerated.
11366 * gdbserver/aclocal.m4: New file, generated by aclocal.
11367 * gdbserver/config.in: New file, generated by autoheader.
11368
375fd65b
RE
113692002-02-19 Richard Earnshaw <rearnsha@arm.com>
11370
11371 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11372 armnbsd-nat.c.
11373
08216dd7
RE
113742002-02-19 Richard Earnshaw <rearnsha@arm.com>
11375
11376 * arm-tdep.h (enum arm_float_model): New enum.
11377 (struct gdbarch_tdep): Add fp_model.
11378 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11379 up floating-point conversions until we know the floating-point model
11380 in use by the inferior. Don't complain about being unable to
11381 determine the ABI of the inferior when we don't have one.
11382 (arm_extract_return_value): Support different floating-point models.
11383 (arm_store_return_value): Likewise.
aaa38bb5 11384 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
11385 ARM_FLOAT_SOFT.
11386 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11387
65d6d66a
PS
113882002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11389
11390 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11391 of ``current_gdbarch''.
11392
47221191
RE
113932002-02-19 Richard Earnshaw <rearnsha@arm.com>
11394
11395 * armnbsd-nat.c : ANSIfy all function declarations.
11396 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11397 (fetch_inferior_registers): Re-implement in terms of above.
11398 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11399 (store_inferior_registers): Re-implement in terms of above.
11400
fdf39c9a
RE
114012002-02-19 Richard Earnshaw <rearnsha@arm.com>
11402
aaa38bb5 11403 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
11404 kernel.
11405 * arm-linux-tdep.c: Likewise.
11406 * config/arm/tm-linux.h: Likewise.
11407
93247f88
RE
114082002-02-19 Richard Earnshaw <rearnsha@arm.com>
11409
11410 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11411 * config/arm/nbsd.mt (TM_FILE): Delete.
11412 * config/arm/tm-nbsd.h: Delete.
11413
d7b486e7
RE
114142002-02-19 Richard Earnshaw <rearnsha@arm.com>
11415
11416 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11417 Initialize CALL_DUMMY_LENGTH.
11418
41d39a95
RE
114192002-02-19 Richard Earnshaw <rearnsha@arm.com>
11420
11421 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11422 function.
11423 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11424 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11425 defines one thing and that is incorrect for this port.
11426 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11427
e1195560
PM
114282002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11429
11430 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11431
c1748f97
PM
114322002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11433
11434 * win32-nat.c (display_selector): New function. Displays information
11435 about the information returned by GetThreadSelectorEntry API function.
11436 (display_selectors): New function. Displays the infomation of
11437 the selector given as argument, or of CS, DS ans FS selectors
11438 if no argument is given.
11439 ( _initialize_inftarg): Add "w32" as info prefix command.
11440 Add "info w32 selector" as command calling display_selectors.
11441
e41e6bbf
PM
114422002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11443
11444 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11445 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11446 if not defined.
11447
0d3a9f48
RE
114482002-02-18 Richard Earnshaw <rearnsha@arm.com>
11449
11450 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11451
3fb4b924
RE
114522002-02-18 Richard Earnshaw <rearnsha@arm.com>
11453
11454 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11455 (arm_fix_call_dummy): Call it.
11456 (arm_call_dummy_breakpoint_offset): Delete.
11457 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11458 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11459
7f55af32
AC
114602002-02-18 Andrew Cagney <ac131313@redhat.com>
11461
11462 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11463 Default to func_frame_chain_valid.
11464 * gdbarch.h, gdbarch.c: Re-generate.
11465 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11466
05f13b9c
EZ
114672002-02-18 Elena Zannoni <ezannoni@redhat.com>
11468
11469 * ppc-linux-nat.c: Update copyright.
11470 (fetch_register, store_register): Add tid parameter, don't compute
11471 tid here.
11472 (fetch_ppc_registers, store_ppc_registers): Add tid
11473 parameter. Pass it along to callees.
11474 (fetch_inferior_registers, store_inferior_registers): Compute tid
11475 here, and pass it to calleed functions.
11476 (fill_gregset, supply_fpregset): Clean up formatting.
11477
d7afb4c9
RE
114782002-02-18 Richard Earnshaw <rearnsha@arm.com>
11479
11480 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11481 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11482
9df628e0
RE
114832002-02-18 Richard Earnshaw <rearnsha@arm.com>
11484
11485 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11486 * gdbarch.c gdbarch.h: Regenerate.
11487 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11488 function.
11489 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11490 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11491 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11492
11493 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11494 * arm-tdep.c (arm_get_longjmp_target): New function.
11495 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11496 this to a positive value register arm_get_longjmp_target as the
11497 longjmp handler.
11498 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11499 (arm_linux_init_abi): Set up longjmp description in tdep.
11500 * armnbsd-nat.c (get_longjmp_target): Delete.
11501 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11502 description in tdep.
11503 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11504 (get_longjmp_target): Delete declaration.
11505 (GET_LONGJMP_TARGET): Delete.
11506 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11507 (GET_LONGJMP_TARGET): Delete.
11508
57bc8964
KB
115092002-02-17 Kevin Buettner <kevinb@redhat.com>
11510
11511 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11512 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11513 of ``current_gdbarch''.
11514
83d31a92
TT
115152002-02-17 Tom Tromey <tromey@redhat.com>
11516
11517 * cli/cli-cmds.c (compare_strings): New function.
11518 (complete_command): Only print each unique item once.
11519 * completer.h (complete_line): Declare.
11520 * completer.c (complete_line): New function.
11521 (line_completion_function): Use it.
11522
17ef5d92
AC
115232002-02-16 Andrew Cagney <ac131313@redhat.com>
11524
11525 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11526 * gdbarch.h, gdbarch.c: Re-generate.
11527
491b8946
DJ
115282002-02-16 Daniel Jacobowitz <drow@mvista.com>
11529
11530 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11531
115322002-02-16 Daniel Jacobowitz <drow@mvista.com>
11533
11534 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11535 * valops.c (value_arg_coerce): Don't take the address of a reference
11536 to convert an argument to a reference.
11537
dfe7f3ac
CF
115382002-02-15 Christopher Faylor <cgf@redhat.com>
11539
11540 * win32-nat.c (get_image_name): New function.
11541 (handle_load_dll): Use get_image_name function.
11542 (get_child_debug_event): Avoid registering debug events until possibly
11543 execed process is started.
11544 (child_create_inferior): Allow invocation via shell so that command
11545 line redirection, etc. works ok.
11546 (_initialize_inftarg): Add new command: "set shell" to control whether
11547 a shell is used to start a process.
11548
1d33e73a
DJ
115492002-02-15 Daniel Jacobowitz <drow@mvista.com>
11550
11551 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11552 instead of find_register_by_number.
11553 (cannot_store_register): Likewise.
11554
48cd0caa
PM
115552002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11556
aaa38bb5 11557 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
11558 fprintf_unfiltered (gdb_stderr, ...).
11559
8656e7d8
DJ
115602002-02-15 Daniel Jacobowitz <drow@mvista.com>
11561
11562 * gdbserver/gdbserver.1: Document --attach.
11563
66e810cd
RE
115642002-02-15 Richard Earnshaw <rearnsha@arm.com>
11565
11566 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11567 descriptions.
11568 * arm-tdep.c (arm_default_arm_le_breakpoint)
11569 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11570 (arm_default_thumb_be_breakpoint): New. Initialize them from
11571 traditional breakpoint defines.
11572 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11573 (arm_gdbarch_init): Initialize new breakpoint variables.
11574 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11575 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11576 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11577 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11578 code out to ...
11579 (arm_netbsd_init_abi_common): ... here; new function.
11580 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11581 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11582 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11583 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11584
97e03143
RE
115852002-02-15 Richard Earnshaw <rearnsha@arm.com>
11586
11587 * arm-tdep.h (enum arm_abi): New enum.
11588 (struct gdbarch_tdep): New structure.
11589 (LOWEST_PC): Provide a default.
11590 (arm_gdbarch_register_os_abi): Declare new function.
11591 * arm-tdep.c (arm_abi_names): New array.
11592 (process_note_abi_tag_sections): New function.
11593 (get_elfosabi): New function.
11594 (arm_gdbarch_register_os_abi): New function.
11595 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11596 support for that ABI has been built in, then call the appropriate
11597 configuration routine. Use gdbarch_num_regs() to get the number
11598 of registers.
11599 (arm_dump_tdep): New function.
11600 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11601 place-holder functions.
11602 (_initialize_arm_tdep): Register them.
11603 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11604
11605 * armnbsd-tdep.c: New file.
11606 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11607 * config/arm/nbsd.mt (TDEPFILES): Add it.
11608 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11609
11610 * armnbsd-nat.c: Include regcache.h.
11611 * Makefile.in (armnbsd-nat.o): Update dependency list.
11612
11613 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11614
ad68be46
DJ
116152002-02-14 Daniel Jacobowitz <drow@mvista.com>
11616
11617 * gdbserver/Makefile.in: Fix typos in target rules.
11618
003d6d1d
DJ
116192002-02-14 Daniel Jacobowitz <drow@mvista.com>
11620
aaa38bb5 11621 Fix part of PR gdb/267.
003d6d1d
DJ
11622 * linespec.c (find_methods): Handle constructors specially for now.
11623
6b230f1b
CV
116242002-02-14 Corinna Vinschen <vinschen@redhat.com>
11625
11626 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11627 handling.
11628 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11629 standard_coerce_float_to_double().
11630
1ea98d12
CF
116312002-02-14 Christopher Faylor <cgf@redhat.com>
11632
11633 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11634 GDBINIT_FILENAME.
11635
dd47e6fd
EZ
116362002-02-14 Elena Zannoni <ezannoni@redhat.com>
11637
11638 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11639 find_variant_by_name, because it confuses the multiarch
11640 framework. Return NULL if there isn't an architecture with the
11641 user supplied name, instead of forcing a different one without
11642 recording the change with the multiarch machinery.
11643 (find_variant_by_name): Delete.
11644
d7e39b9e
PS
116452002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11646
11647 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11648 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11649
76e42a4f
MH
116502002-02-13 Martin M. Hunt <hunt@redhat.com>
11651
aaa38bb5 11652 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
11653 print_frame_info_listing_hook, set current_source_symtab.
11654
0a30fbc4
DJ
116552002-02-14 Daniel Jacobowitz <drow@mvista.com>
11656
11657 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11658 and remove unused $(INCLUDE_DIR).
11659 Add regcache.c to OBS.
11660 Add generated register protocol files to clean target.
11661 Update dependencies for new objects, obsolete old target code.
11662
11663 * gdbserver/linux-low.c: Remove all platform-specific code to
11664 new files. Remove various dead code. Update to use regcache
11665 functionality.
11666 * gdbserver/remote-utils.c (fromhex): Add return statement
11667 to quiet warning.
11668 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11669 constant.
11670 (input_interrupt): Add integer parameter to match prototype
11671 of a signal handler.
11672 (outreg): Use register_data ().
11673 (prepare_resume_reply): Use gdbserver_expedite_regs.
11674 * gdbserver/server.c (main): Dynamically allocate own_buf because
11675 PBUFSIZ is no longer constant. Use registers_to_string () and
11676 registers_from_string ().
11677 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11678 for error (), fatal (), and warning (). Update definition of
11679 PBUFSIZ to use regcache functionality. Add include guard.
11680 * gdbserver/utils.c (fatal): Add missing ``const''.
11681 (warning): New function.
11682
11683 * regformats/regdat.sh: Include "regcache.h" in generated files.
11684 Provide init_registers () function.
11685 * regformats/regdef.h: Add prototype for set_register_cache ().
11686 Add include guard.
11687
11688 * gdbserver/linux-arm-low.c: New file.
11689 * gdbserver/linux-i386-low.c: New file.
11690 * gdbserver/linux-ia64-low.c: New file.
11691 * gdbserver/linux-m68k-low.c: New file.
11692 * gdbserver/linux-mips-low.c: New file.
11693 * gdbserver/linux-ppc-low.c: New file.
11694 * gdbserver/linux-sh-low.c: New file.
11695
11696 * gdbserver/regcache.c: New file.
11697 * gdbserver/regcache.h: New file.
11698
11699 * gdbserver/low-linux.c: Removed obsolete file.
11700
4cc841d0
DJ
117012002-02-14 Daniel Jacobowitz <drow@mvista.com>
11702
11703 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11704 * config/i386/linux.mt: Likewise.
11705 * config/ia64/linux.mt: Likewise.
11706 * config/m68k/linux.mh: Likewise.
11707 * config/powerpc/linux.mh: Likewise.
11708 * config/mips/linux.mt: Likewise.
11709
11710 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11711
11712 * config/i386/i386lynx.mh: Mark gdbserver variables
11713 as (currently) obsolete for this target.
11714 * config/i386/nbsd.mt: Likewise.
11715 * config/i386/nbsdelf.mt: Likewise.
11716 * config/m32r/m32r.mt: Likewise.
11717 * config/m68k/m68klynx.mh: Likewise.
11718 * config/m68k/nbsd.mt: Likewise.
11719 * config/m68k/sun3os4.mh: Likewise.
11720 * config/mips/vr5000.mt: Likewise.
11721 * config/ns32k/nbsd.mt: Likewise.
11722 * config/pa/hppabsd.mh: Likewise.
11723 * config/pa/hppaosf.mh: Likewise.
11724 * config/powerpc/nbsd.mt: Likewise.
11725 * config/rs6000/rs6000lynx.mh: Likewise.
11726 * config/s390/s390.mt: Likewise.
11727 * config/s390/s390x.mt: Likewise.
11728 * config/sparc/sparclynx.mh: Likewise.
11729 * config/sparc/sun4os4.mh: Likewise.
11730 * config/i386/x86-64linux.mt: Likewise.
11731 * config/sparc/linux.mh: Likewise.
11732
a85f51e7
DJ
117332002-02-14 Daniel Jacobowitz <drow@mvista.com>
11734
11735 * configure.tgt: Configure gdbserver only for known working
11736 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11737 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11738 SUBDIRS if it is configured. Update comment for ${nativefile}.
11739 * configure: Regenerated.
11740
65554fef
MS
117412002-02-13 Michael Snyder <msnyder@redhat.com>
11742
670a52db
MS
11743 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11744
6dbdc4a3
MS
11745 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11746 (default_gcore_mach): Just return 0, work around a problem in bfd.
11747 (default_gcore_target): OK to return NULL if exec_bfd is null.
11748 (make_mem_sec): Use a cast, avoid a warning.
11749
11750 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 11751 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
11752 sizeof (host pointer) != sizeof (target pointer)).
11753 (procfs_make_note_section): Avoid overflow in psargs string.
11754
aaa38bb5 11755 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
11756 implementation return an error.
11757
117582002-02-13 Rodney Brown <rbrown64@csc.com.au>
11759
11760 * procfs.c (procfs_make_note_section): Provide a default definition
11761 (for alpha-dec-osf4.0f). Fix typos.
11762
1e4d76e7
EZ
117632002-02-13 Elena Zannoni <ezannoni@redhat.com>
11764
11765 * linux-proc.c: Add include of regcache.h.
11766 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11767
b6d1a1d5
AC
117682002-02-13 Andrew Cagney <ac131313@redhat.com>
11769
11770 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
11771 * memattr.c (create_mem_region): Disallow useless empty region.
11772 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 11773 non-overlapping.
b6d1a1d5 11774
6c6ea35e
MC
117752002-02-13 Michael Chastain <mec@shout.net>
11776
11777 * defs.h: Kill CONST_PTR.
11778 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11779 * c-lang.c (c_builtin_types): Likewise.
11780 * ch-lang.c (ch_builtin_types): Likewise.
11781 * f-lang.c (f_builtin_types): Likewise.
11782 * language.c (unknown_builtin_types): Likewise.
11783 * m2-lang.c (m2_builtin_types): Likewise.
11784 * p-lang.c (pascal_builtin_types): Likewise.
11785 * scm-lang.c (c_builtin_types): Likewise.
11786
3e0b0f48
KS
117872002-02-13 Keith Seitz <keiths@redhat.com>
11788
11789 * arm-tdep.h (arm_get_next_pc): Add declaration.
11790
67255d04
RE
117912002-02-13 Richard Earnshaw <rearnsha@arm.com>
11792
11793 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11794 with other related struct-returning functions.
11795 (arm_extract_struct_value_address): New function.
11796 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11797 initialize float_format, double_format and long_double_format as
11798 appropriate to the endianness of the target.
11799 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11800 (arm_use_struct_convention): Delete declaration.
11801 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11802
079777f6
KS
118032002-02-13 Keith Seitz <keiths@redhat.com>
11804
11805 * defs.h (core_addr_to_string_nz): New function.
11806
34588f23
MK
118072002-02-13 Mark Kettenis <kettenis@gnu.org>
11808
11809 Apply missing bits of 2002-01-15 patch.
11810 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11811 (fill_fpregset): Use i387_fill_fsave.
11812
49b563f9
KS
118132002-02-12 Keith Seitz <keiths@redhat.com>
11814
49b563f9
KS
11815 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11816 (core_addr_to_string_nz): New function.
11817
aeb98c60
RE
118182002-02-11 Richard Earnshaw <rearnsha@arm.com>
11819
11820 * arm-linux-nat.c: Really include arm-tdep.h.
11821 * config/arm/tm-linux.h (struct type, struct value): Declare.
11822
65554fef
MS
118232002-02-11 Michael Snyder <msnyder@redhat.com>
11824
11825 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11826 (gcore section): Ifdef for Solaris and Unixware only.
11827 (procfs_do_thread_registers): Unixware needs one lwpstatus
11828 per thread (not one prstatus or pstatus).
11829 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11830 not over all gdb threads. For unixware, call elfcore_write_pstatus
11831 once before iterating over threads.
11832
34e8f22d
RE
118332002-02-11 Richard Earnshaw <rearnsha@arm.com>
11834
11835 * arm-tdep.h: New file.
11836 * arm-tdep.c: Include arm-tdep.h.
11837 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11838 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11839 (arm_print_float_info, arm_register_type, convert_to_extended)
11840 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11841 (arm_extract_return_value, arm_register_name): Make static.
11842 (arm_software_single_step): Similarly. Fix types in declaration.
11843 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11844 (arm_store_return_value, arm_store_struct_return): New functions.
11845 (arm_gdbarch_init): Register the above functions. Also register
11846 call_dummy_start_offset, sizeof_call_dummy_words,
11847 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11848 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 11849 max_register_virtual_size, register_size. Set up
34e8f22d
RE
11850 prologue_cache.saved_regs here, rather than ...
11851 (_initialize_arm_tdep): ... here.
11852 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11853 declarations.
11854 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11855 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11856 (arm_print_float_info, arm_register_type, convert_to_extended)
11857 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11858 (arm_extract_return_value, arm_register_name): Delete declarations.
11859 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11860 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11861 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11862 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11863 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11864 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11865 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11866 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11867 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11868 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11869 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11870 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11871 interface.
11872 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11873 * remote-rdi.c remote-rdp.c: Likewise.
11874 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11875 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11876 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11877 definition.
11878
11879 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11880 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11881 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11882 from non-ARM_ prefixed definitions.
11883 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11884 all uses of above.
11885 * remote-rdi.c remote-rdp.c: Likewise.
11886 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11887
148754e5
RE
118882002-02-11 Richard Earnshaw <rearnsha@arm.com>
11889
11890 * arm-tdep.c (arm_frameless_function_invocation)
11891 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11892 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11893 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11894 (arm_pop_frame, arm_get_next_pc): Make static.
11895 (arm_gdbarch_init): Register above in gdbarch structure.
11896 (arm_read_fp): Renamed from arm_target_read_fp.
11897 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11898 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11899 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11900 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11901 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11902 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11903 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
11904 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11905 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11906 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11907 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 11908
434d2d4f
DJ
119092002-02-10 Daniel Jacobowitz <drow@mvista.com>
11910
11911 * symtab.c (compare_search_syms): New function.
11912 (sort_search_symbols): New function.
11913 (search_symbols): Sort symbols after searching rather than
11914 before.
11915
55241689
AC
119162002-02-10 Andrew Cagney <ac131313@redhat.com>
11917
11918 * NEWS: Linux -> GNU/Linux.
11919
028c194b
AC
119202002-02-10 Andrew Cagney <ac131313@redhat.com>
11921
11922 * gdbarch.sh: For for level one methods, disallow a definition
11923 when partially multi-arched. Add comments explaining rationale.
11924 * gdbarch.h: Re-generate.
11925
6acf50cd
AC
119262002-02-10 Andrew Cagney <ac131313@redhat.com>
11927
11928 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11929 multi-arch partial.
aaa38bb5 11930
50248794
AC
119312002-02-10 Andrew Cagney <ac131313@redhat.com>
11932
11933 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11934 field. Use diff -u.
11935 * gdbarch.c: Re-generate.
11936
c30e0066
AC
119372002-02-10 Andrew Cagney <ac131313@redhat.com>
11938
9b56c5f3 11939 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
11940 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11941 partial.
11942
6e6d6484
AC
119432002-02-10 Andrew Cagney <ac131313@redhat.com>
11944
11945 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11946 multi-arch partial.
11947 (PUSH_ARGUMENTS): Switch to using predefault.
11948 * gdbarch.c: Regenerate.
11949
c203844d
AC
119502002-02-10 Andrew Cagney <ac131313@redhat.com>
11951
11952 * valops.c (PUSH_ARGUMENTS): Delete definition.
11953 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11954 partial. Default to default_push_arguments.
11955 * gdbarch.h, gdbarch.c: Regenerate.
11956
b5a2688f
AC
119572002-02-09 Andrew Cagney <ac131313@redhat.com>
11958
11959 * defs.h (throw_exception): Rename return_to_top_level. Update
11960 comments.
11961 * utils.c (error_stream, internal_verror, quit): Ditto.
11962 * top.c (throw_exception, catcher): Ditto.
11963 * sparclet-rom.c (sparclet_load): Ditto.
11964 * remote.c (interrupt_query, minitelnet): Ditto.
11965 * remote-sds.c (interrupt_query): Ditto.
11966 * remote-mips.c (mips_error, mips_kill): Ditto.
11967 * ocd.c (interrupt_query): Ditto.
11968 * monitor.c (monitor_interrupt_query): Ditto.
11969 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11970 * target.h: Update comment.
aaa38bb5 11971
b5a2688f 11972 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 11973
2fa5c1e0
AC
119742002-02-09 Andrew Cagney <ac131313@redhat.com>
11975
11976 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11977 default_double_format.
11978 * gdbarch.h, gdbarch.c: Re-generate.
11979 * findvar.c (floatformat_unknown): Delete variable definition.
11980 * doublest.h (floatformat_unknown): Delete variable declaration.
11981
da966255
JB
119822002-02-09 Jim Blandy <jimb@redhat.com>
11983
11984 * stabsread.c (read_type): Add code to parse Sun's syntax for
11985 prototyped function types.
11986
123a4891
AC
119872002-02-09 Andrew Cagney <ac131313@redhat.com>
11988
11989 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11990 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11991
fb39c8f3
PS
119922002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11993
11994 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11995 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11996 now _initialize_xcoffsolib gets called again and overrides the
11997 commands from solib.c in a native configuration.
11998
0b87a11d
MK
119992002-02-09 Mark Kettenis <kettenis@gnu.org>
12000
12001 * doublest.c (store_typed_floating): Don't try to return a value.
12002 Fixes PR gdb/290.
12003
bdc2fc72
JB
120042002-02-08 Jim Blandy <jimb@redhat.com>
12005
12006 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12007 is prototyped and has no arguments, print its argument list as
12008 `(void)'.
12009
da69bbcf
CD
120102002-02-08 Chris Demetriou <cgd@broadcom.com>
12011
12012 * MAINTAINERS (write-after-approval): Add myself.
12013 (paper-trail): I've escaped!
aaa38bb5 12014
b69571f5
CF
120152002-02-08 Christopher Faylor <cgf@redhat.com>
12016
12017 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12018 changes.
12019 (_initialize_check_for_gdb_ini): Ditto.
12020
f6871398
MH
120212002-02-08 Martin M. Hunt <hunt@redhat.com>
12022
12023 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12024 xaprintf -> xasprintf.
12025
4e52d31c
PM
120262002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12027
12028 * win32-nat.c: Remove use of printf and sprintf functions.
12029
39bbf761
RE
120302002-02-08 Richard Earnshaw <rearnsha@arm.com>
12031
12032 * arm-tdep.c (arm_frame_chain_valid): Make static.
12033 (arm_push_arguments): Likewise.
12034 (arm_gdbarch_init): New function.
12035 (_initialize_arm_tdep): Call it.
12036 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12037 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12038 (FRAME_CHAIN_VALID): Delete.
12039 (arm_frame_chain_valid): Delete declaration.
12040 (PUSH_ARGUMENTS): Delete.
12041 (arm_push_arguments): Delete declaration.
12042 (CALL_DUMMY_P): Delete.
12043
9c9532c9
CV
120442002-02-08 Andrew Cagney <ac131313@redhat.com>
12045 Corinna Vinschen <vinschen@redhat.com>
12046
12047 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12048 on builtin float types.
12049
4e8f7a8b
DJ
120502002-02-08 Daniel Jacobowitz <drow@mvista.com>
12051
12052 * utils.c: Include <curses.h> before "bfd.h".
12053 * tui/tui-hooks.c: Likewise.
12054 * tui/tui.c: Likewise.
12055 * tui/tuiCommand.c: Likewise.
12056 * tui/tuiData.c: Likewise.
12057 * tui/tuiDataWin.c: Likewise.
12058 * tui/tuiDisassem.c: Likewise.
12059 * tui/tuiGeneralWin.c: Likewise.
12060 * tui/tuiIO.c: Likewise.
12061 * tui/tuiLayout.c: Likewise.
12062 * tui/tuiRegs.c: Likewise.
12063 * tui/tuiSource.c: Likewise.
12064 * tui/tuiSourceWin.c: Likewise.
12065 * tui/tuiStack.c: Likewise.
12066 * tui/tuiWin.c: Likewise.
12067
cd4bffcf
EZ
120682002-02-07 Elena Zannoni <ezannoni@redhat.com>
12069
12070 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12071 to include space for pseudoregs as well. Update loops accordingly.
12072 (sh_fp_frame_init_saved_regs): Ditto.
12073 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12074
26806ce2
AC
120752002-02-07 Andrew Cagney <ac131313@redhat.com>
12076
12077 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12078 Add Richard Earnshaw to Arm maintainers.
12079
97fdab62
AC
120802002-02-07 Andrew Cagney <ac131313@redhat.com>
12081
a6b98203
AC
12082 * defs.h (warning_begin): Delete declaration.
12083
97fdab62
AC
12084 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12085 Delete macro.
12086
78b29b40
MS
120872002-02-07 Michael Snyder <msnyder@redhat.com>
12088
aaa38bb5 12089 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
12090 Logic bug, remove misplaced else.
12091
d8849953
KD
120922002-02-07 Klee Dienes <klee@apple.com>
12093
12094 * fork-inferior.c (fork_inferior): Add '!' to the list of
12095 characters that need to be quoted when building a string for the
12096 shell. Quote '!' specifically with a backslash, since CSH chokes
12097 when trying to evaluate "str!str".
aaa38bb5 12098
095778a0
NC
120992002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12100
12101 * rdi-share/host.h: Only provide a typedef for bool if it is not
12102 defined.
12103
1900040c
MS
121042002-02-04 Michael Snyder <msnyder@redhat.com>
12105
12106 * breakpoint.h (enum bptype): Add new overlay event bp type.
12107 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 12108
1900040c
MS
12109 * breakpoint.c (create_internal_breakpoint): New function.
12110 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12111 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12112 (create_thread_event_breakpoint): Ditto.
12113 (create_solib_event_breakpoint): Ditto.
12114 (create_overlay_event_breakpoint): New function.
12115 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12116 (update_breakpoints_after_exec): Delete and re-initialize
12117 overlay event breakpoints after an exec. Add FIXME comment
12118 about longjmp breakpoint.
12119 (print_it_typical): Ignore overlay event breakpoints.
12120 (print_one_breakpoint): Ditto.
12121 (mention): Ditto.
12122 (bpstat_what): Do not stop for overlay event breakpoints.
12123 (delete_breakpoint): Don't delete overlay event breakpoints.
12124 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12125 (breakpoint_re_set): Re-create overlay event breakpoint.
12126
12127 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12128 (overlay_manual_command): Disable overlay breakpoints.
12129 (overlay_off_command): Disable overlay breakpoints.
12130
082fc60d
RE
121312002-02-06 Richard Earnshaw <rearnsha@arm.com>
12132
12133 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12134 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12135 to here from config/tm-arm.h.
12136 (coff_sym_is_thumb): Make static.
12137 (arm_elf_make_msymbol_special): New function.
12138 (arm_coff_make_msymbol_special): New function.
12139 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12140 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12141 (coff_sym_is_thumb): Delete declaration.
12142 (arm_elf_make_msymbol_special): Declare.
12143 (arm_coff_make_msymbol_special): Declare.
12144 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12145 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12146
039c5766
RE
121472002-02-06 Richard Earnshaw <rearnsha@arm.com>
12148
12149 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12150
121512002-02-06 Richard Earnshaw <rearnsha@arm.com>
12152
12153 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12154 * gdbarch.c gdbarch.h: Regenerate.
12155 * arch-utils.c (default_print_float_info): New function.
12156 * arch-utils.h (default_print_float_info): Prototype it.
12157 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12158 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12159 (PRINT_FLOAT_INFO): Document it.
12160
12161 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12162 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12163 (PRINT_FLOAT_INFO): Define.
12164
58fa08f0
PM
121652002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12166
aaa38bb5 12167 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
12168 Add typecast to sprintf argument to suppress a warning.
12169
7393af7c
PM
121702002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12171
58fa08f0 12172 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
12173 to allow easier handling of pass state.
12174 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12175 that gives exception name and address.
12176 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 12177 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 12178 exceptions added.
aaa38bb5
AJ
12179 (child_continue): Correctly report continue_status.
12180 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 12181 TARGET_SIGNAL_0 (new default value).
aaa38bb5 12182 (child_resume): consider sig argument passed to decide if
7393af7c
PM
12183 the exception should be passed to debuggee or not.
12184
6af4589c
MS
121852002-02-05 Michael Snyder <msnyder@redhat.com>
12186
12187 * regcache.c (fetch_register): Call target_fetch_register
12188 only if we don't call FETCH_PSEUDO_REGISTER.
12189 (store_register): Call target_store_register only if we
12190 don't call STORE_PSEUDO_REGISTER.
12191
a2cf933a
EZ
121922002-02-05 Elena Zannoni <ezannoni@redhat.com>
12193
12194 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12195 ELF_MAKE_MSYMBOL_SPECIAL.
12196 * gdbarch.c, gdbarch.h: Regenerate.
12197 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 12198 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
12199 * elfread.c (elf_symtab_read): Compile use of
12200 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12201 multiarched.
12202 * coffread.c (coff_symtab_read): Ditto, for
12203 COFF_MAKE_MSYMBOL_SPECIAL.
12204
6bb7be43
JB
122052002-02-05 Jim Blandy <jimb@redhat.com>
12206
12207 * solib-svr4.c (svr4_truncate_ptr): New function.
12208 (svr4_relocate_section_addresses): Do the address arithmetic with
12209 the appropriate truncation for target addresses, even when
12210 CORE_ADDR is larger than a target address.
12211
e18651ec
DJ
122122002-02-05 Daniel Jacobowitz <drow@mvista.com>
12213
12214 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12215 to (int *).
12216
6b2725be
DJ
122172002-02-05 Daniel Jacobowitz <drow@mvista.com>
12218
12219 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12220 code.
12221
fca9e603
DJ
122222002-02-05 Daniel Jacobowitz <drow@mvista.com>
12223
12224 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12225
6c537a52
DJ
122262002-02-05 Daniel Jacobowitz <drow@mvista.com>
12227
12228 * gdbserver/linux-low.c: Remove unused include files.
12229
d844cde6
DJ
122302002-02-05 Daniel Jacobowitz <drow@mvista.com>
12231
12232 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12233 (read_inferior_memory): Use it.
12234 (write_inferior_memory): Likewise.
12235
d07c63e7
DJ
122362002-02-05 Daniel Jacobowitz <drow@mvista.com>
12237
12238 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12239 grubbing through sys_errlist.
12240
da6d8c04
DJ
122412002-02-05 Daniel Jacobowitz <drow@mvista.com>
12242
12243 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12244
5b421780
PM
122452002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12246 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12247
9f60d481
AC
122482002-02-04 Andrew Cagney <ac131313@redhat.com>
12249
12250 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12251 (do_sfunc, set_cmd_sfunc): New functions.
12252
12253 * command.h (struct cmd_list_element): Add field func.
12254 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12255 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12256 * cli/cli-decode.h: Ditto.
12257
12258 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12259 (help_all, help_cmd_list): Ditto.
12260 (find_cmd, complete_on_cmdlist): Ditto.
12261 * top.c (execute_command): Ditto.
12262
12263 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12264 function.sfunc.
12265
12266 * infcmd.c (notice_args_read): Fix function signature.
12267
12268 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12269 * cli/cli-decode.c (add_set_cmd): Ditto.
12270 * utils.c (initialize_utils): Ditto.
12271 * maint.c (_initialize_maint_cmds): Ditto.
12272 * infrun.c (_initialize_infrun): Ditto.
12273 * demangle.c (_initialize_demangler): Ditto.
12274 * remote.c (add_packet_config_cmd): Ditto.
12275 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12276 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12277 * proc-api.c (_initialize_proc_api): Ditto.
12278 * kod.c (_initialize_kod): Ditto.
12279 * valprint.c (_initialize_valprint): Ditto.
12280 * top.c (init_main): Ditto.
12281 * infcmd.c (_initialize_infcmd): Ditto.
12282 * corefile.c (_initialize_core): Ditto.
12283 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12284 * arch-utils.c (initialize_current_architecture): Ditto.
12285 (_initialize_gdbarch_utils): Ditto.
12286 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12287
12288 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12289 * wince.c (_initialize_inftarg): Ditto.
12290 * symfile.c (_initialize_symfile): Ditto.
12291 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12292 * language.c (_initialize_language): Ditto.
12293 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12294
f9ba0717
MS
122952002-02-04 Michael Snyder <msnyder@redhat.com>
12296
12297 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12298
0c74b2a7
DJ
122992002-02-04 Daniel Jacobowitz <drow@mvista.com>
12300
12301 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12302 Add rules for building the register data files.
12303
c638789f
DJ
123042002-02-04 Daniel Jacobowitz <drow@mvista.com>
12305
12306 * regformats/regdat.sh: Add braces to the definition of
12307 expedite_regs_${arch}.
12308
db253027
DJ
123092002-02-04 Daniel Jacobowitz <drow@mvista.com>
12310
12311 * regformats/regdef.h (struct reg): Add comment describing the
12312 requirements for offset and size fields.
12313
206be19c
AS
123142002-02-04 Andreas Schwab <schwab@suse.de>
12315
12316 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12317 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12318
181c1381
RE
123192002-02-04 Richard Earnshaw <rearnsha@arm.com>
12320
12321 * gdbarch.sh (copyright): Update years in generated header.
12322 (SMASH_TEXT_ADDRESS): Add rule.
db253027 12323 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
12324 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12325 * dbxread.c: Likewise.
12326 * dwarfread.c: Likewise.
12327 * elfread.c: Likewise.
12328 * somread.c: Likewise.
12329
12330 * arm-tdep.c (arm_smash_text_address): New function.
12331 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12332
fa4ba8da
PM
123332002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12334
12335 Add support for hardware watchpoints on win32 native.
aaa38bb5 12336 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 12337 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 12338 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
12339 of debug registers.
12340 (debug_registers_changed): New variable. Reflects when debug registers
12341 are changed and need to be written to inferior.
aaa38bb5 12342 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
12343 was set, used when new threads are created.
12344 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12345 i386-nat code.
12346 (thread_rec): Set dr array if id is the thread of current_event .
12347 (child_continue, child_resume): Change the debug registers for all
12348 threads if debug_registers_changed.
12349 (child_add_thread): Change the debug registers if debug_registers_used.
12350 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12351 Link nm.h to new nm-cygwin.h file.
12352 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12353 of hardware registers.
12354
a73c86fb
AC
123552002-02-03 Andrew Cagney <ac131313@redhat.com>
12356
12357 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12358 Restore behavour broken by 2002-01-20 Andrew Cagney
12359 <ac131313@redhat.com> IEEE_FLOAT removal.
12360
acf5ed49
DJ
123612002-02-03 Daniel Jacobowitz <drow@mvista.com>
12362
12363 * c-valprint.c (c_val_print): Pass a proper valaddr to
12364 cp_print_class_method.
12365 * valops.c (search_struct_method): If there is only one method
12366 and args is NULL, return that method.
12367
493d28d5
DJ
123682002-02-03 Daniel Jacobowitz <drow@mvista.com>
12369
12370 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12371 accessing tag_name directly.
12372
7495dfdb
DJ
123732002-02-03 Daniel Jacobowitz <drow@mvista.com>
12374
12375 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12376 of accessing tag_name directly.
12377
dd6bda65
DJ
123782002-02-03 Daniel Jacobowitz <drow@mvista.com>
12379
12380 PR gdb/280
12381 * gdbtypes.c (replace_type): New function.
12382 * gdbtypes.h (replace_type): Add prototype.
12383 * stabsread.c (read_type): Use replace_type.
12384
88fe217c
RE
123852002-02-03 Richard Earnshaw <rearnsha@arm.com>
12386
12387 * Makefile.in (memattr.o): Add missing dependencies rule.
12388
e5d66720
PS
123892002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12390
12391 * breakpoint.c (break_at_finish_command): Really export.
12392 (break_at_finish_at_depth_command): Ditto.
12393 (tbreak_at_finish_command): Ditto.
12394 * hppa-tdep.c: Include completer.h.
12395 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12396 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12397
fffee0be
AC
123982002-02-01 Andrew Cagney <ac131313@redhat.com>
12399
12400 * utils.c (do_write): New function.
12401 (error_stream): Rewrite combining the code from error_begin and
12402 verror.
12403 (verror): Rewrite using error_stream.
12404 (error_begin): Delete function.
12405
255e7dbf
AC
124062002-02-01 Andrew Cagney <ac131313@redhat.com>
12407
12408 * utils.c (error_begin): Make static.
12409 * defs.h (error_begin): Delete declaration.
12410
12411 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12412 (decode_line_1): Use cplusplus_error instead of error_begin,
12413 cplusplus_hint and return_to_top_level.
12414 * coffread.c (coff_symfile_read): Use error instead of error_begin
12415 and return_to_top_level.
12416 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12417
ddfe3c15
AC
124182002-02-01 Andrew Cagney <ac131313@redhat.com>
12419
12420 * language.h (type_error, range_error): Make string parameter
12421 constant.
12422 * language.c (warning_pre_print): Delete extern declaration.
12423 * dwarfread.c (warning_pre_print): Ditto.
12424 * language.c (type_error, range_error): Rewrite to use verror and
12425 vwarning instead of warning_begin.
12426
03ac34d5
MS
124272002-02-01 Michael Snyder <msnyder@redhat.com>
12428
261c4ca2
MS
12429 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12430 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12431
e00d1dc8
AC
124322002-02-01 Andrew Cagney <ac131313@redhat.com>
12433
12434 * command.h (NO_FUNCTION): Delete macro.
12435 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12436 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12437 * tracepoint.c (_initialize_tracepoint): Ditto.
12438 * cli/cli-decode.c (add_set_cmd): Ditto.
12439 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12440
76b79d6e
DJ
124412002-02-01 Daniel Jacobowitz <drow@mvista.com>
12442
12443 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12444 Update ``this'' pointer when calling virtual functions.
12445
799f9e91
MS
124462002-02-01 Michael Snyder <msnyder@redhat.com>
12447
c7bd442c 12448 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12449 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12450
3cf384d4
DJ
124512002-02-01 Daniel Jacobowitz <drow@mvista.com>
12452
12453 * regformats/reg-arm.dat: New file.
12454 * regformats/reg-i386.dat: New file.
12455 * regformats/reg-ia64.dat: New file.
12456 * regformats/reg-m68k.dat: New file.
12457 * regformats/reg-mips.dat: New file.
12458 * regformats/reg-ppc.dat: New file.
12459 * regformats/reg-sh.dat: New file.
12460 * regformats/regdef.h: New file.
12461 * regformats/regdat.sh: New file.
12462
0defa245
RE
124632002-02-01 Richard Earnshaw <reanrsha@arm.com>
12464
12465 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12466 (arm_frame_args_address, arm_frame_locals_address): New functions.
12467 (arm_frame_num_args): New function.
12468 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12469 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12470 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12471
405f26e6
MS
124722002-01-31 Michael Snyder <msnyder@redhat.com>
12473
502fd408
MS
12474 * breakpoint.c (break_at_finish_command): Export.
12475 (break_at_finish_at_depth_command): Export.
12476 (tbreak_at_finish_command): Export.
d6020d45 12477 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12478 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12479 "txbreak" commands, which are HPPA specific.
502fd408 12480
7d35e135
MS
12481 * printcmd.c (disassemble_command): Remove an ancient
12482 artifact of an old merge.
12483
aaa38bb5 12484 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12485 Define enum constant values for overlay mode.
12486 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12487 (overlay_is_mapped, overlay_auto_command,
12488 overlay_manual_command): Ditto.
d874f1e2 12489
aaa38bb5
AJ
12490 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12491 breakpoint_here_p, breakpoint_inserted_here_p,
12492 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
12493 describe_other_breakpoints, check_duplicates, clear_command):
12494 Coding standard fixes.
12495
8add0441 12496 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 12497 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
12498 code: check bfd SEC_READONLY flag for section.
12499
e351066e
AC
125002002-01-31 Andrew Cagney <ac131313@redhat.com>
12501
7d35e135 12502 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 12503
8a48e967
DJ
125042002-01-30 Daniel Jacobowitz <drow@mvista.com>
12505
12506 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12507 data symbols, since we search based on textlow and texthigh.
12508 (find_pc_sect_symtab): Likewise.
12509
f5a96129
AC
125102002-01-30 Andrew Cagney <ac131313@redhat.com>
12511
12512 * defs.h (vwarning): Declare.
f5a96129
AC
12513 * utils.c (vwarning): New function.
12514 (warning): Call vwarning.
12515 (warning_begin): Delete function.
12516
12517 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12518 the warning message.
12519 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12520 warning_begin.
12521
cefd4ef5
MS
125222002-01-30 Michael Snyder <msnyder@redhat.com>
12523
1a703748
MS
12524 * NEWS: Mention "set trust-readonly-sections" command.
12525 Mention generate-core-file command.
cefd4ef5 12526
3a11626d
MS
125272002-01-15 Michael Snyder <msnyder@redhat.com>
12528
12529 * target.c: New command, "set trust-readonly-sections on".
12530 (do_xfer_memory): Honor the suggestion to trust readonly sections
12531 by reading them from the object file instead of from the target.
12532 (initialize_targets): Register command "set trust-readonly-sections".
12533
d1c7e53b
AC
125342002-01-29 Andrew Cagney <ac131313@redhat.com>
12535
12536 * parse.c (target_map_name_to_register): Simplify, search regs and
12537 pseudo-regs using a single loop.
12538
e2c9a72c
AC
125392002-01-30 Andrew Cagney <ac131313@redhat.com>
12540
12541 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12542
69824b4e
MK
125432002-01-15 Rodney Brown <rbrown64@csc.com.au>
12544
12545 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12546 * config/i386/i386v42mp.mh: Add i387-nat.o .
12547 * i386v4-nat.c: Include i387-nat.h.
12548 (supply_fpregset): Use i387_supply_fsave.
12549 (fill_fpregset): Use i387_fill_fsave.
12550
6eb69eab
RE
125512002-01-30 Richard Earnshaw <rearnsha@arm.com>
12552
12553 * arm-tdep.c (arm_call_dummy_words): Define.
12554 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12555 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12556 (CALL_DUMMY_WORDS): Define.
12557 (arm_call_dummy_words): Declare.
12558 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12559 (arm_linux_call_dummy_words): Declare.
12560
9852326a
AS
125612002-01-30 Andreas Schwab <schwab@suse.de>
12562
12563 * m68klinux-nat.c: Fix last change to use regcache_collect
12564 instead of referencing registers[] directly.
12565
977a3030
AC
125662002-01-29 Andrew Cagney <ac131313@redhat.com>
12567
12568 * parse.c (target_map_name_to_register): Delete code wrapped in
12569 #ifdef REGISTER_NAME_ALIAS_HOOK.
12570
2076c72b
MS
125712002-01-28 Michael Snyder <msnyder@redhat.com>
12572
12573 * regcache.c (legacy_read_register_gen): Need to be able to
12574 read pseudo-register as well as real register.
12575 (legacy_write_register_gen): Ditto.
12576
8fcc723b
AC
125772002-01-28 Andrew Cagney <ac131313@redhat.com>
12578
12579 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12580 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12581 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12582 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12583 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12584 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12585 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12586 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12587 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12588 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12589 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12590 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12591 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12592 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12593 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12594 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12595 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12596 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12597 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12598 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12599
afe64c1a
AC
126002002-01-28 Andrew Cagney <ac131313@redhat.com>
12601
12602 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12603 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12604 (initialize_current_architecture): Update target_byte_order using
12605 information from BFD.
aaa38bb5 12606 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
12607 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12608
75bc7ddf
AC
126092002-01-28 Andrew Cagney <ac131313@redhat.com>
12610
12611 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12612 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12613
12614 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12615 #ifdef INVALID_FLOAT.
12616 * infcmd.c (do_registers_info): Ditto.
12617 * values.c (unpack_double): Ditto. Add comment.
12618
12619 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12620 already commented out.
12621
0280a90a
AS
126222002-01-26 Andreas Schwab <schwab@suse.de>
12623
12624 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12625 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12626 registers and add support for PTRACE_GETREGS.
12627
7072a954
AC
126282002-01-24 Andrew Cagney <ac131313@redhat.com>
12629
12630 GDB 5.1.1 released from 5.1 branch.
12631 * NEWS: Add 5.1.1 news.
12632 * README: Sync with 5.1 branch.
12633
86f902e0
FF
126342002-01-23 Fred Fish <fnf@redhat.com>
12635
12636 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12637 stabstring on initial malloc. Reallocing will copy it for us,
12638 if necessary.
12639
8af51c36
EZ
126402002-01-23 Elena Zannoni <ezannoni@redhat.com>
12641
aaa38bb5 12642 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
12643 (HFILES_NO_SRCDIR): Remove hpread.h.
12644 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12645 (hpread.o): Update dependencies.
12646 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12647
12648 * hp-psymtab-read.c: Remove file.
12649 * hp-symtab-read.c: Remove file.
12650 * hpread.h: Remove file.
12651
12652 * hpread.c: Merge all contents of hp-psymtab-read.c,
12653 hp-symtab-read.c and hpread.h into this file, as it was prior to
12654 January 1999.
12655
12656 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 12657 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
12658 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12659 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12660
dc5cfeb6
EZ
126612002-01-23 Elena Zannoni <ezannoni@redhat.com>
12662
12663 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12664 fill_gregset): Call gdbarch_tdep() just once, assign result to
12665 variable and use that, instead of calling the function several
12666 times.
12667
ea87b71b
AO
126682002-01-24 Alexandre Oliva <aoliva@redhat.com>
12669
12670 * configure.host: Accept sparcv9 as alias for sparc64.
12671 * configure.tgt: Likewise.
12672
13fc0c2f
KB
126732002-01-22 Kevin Buettner <kevinb@redhat.com>
12674
12675 * solib-aix5.c (build_so_list_from_mapfile)
12676 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12677 arguments is not reversed.
12678 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12679 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 12680
7bd872fe
EZ
126812002-01-22 Elena Zannoni <ezannoni@redhat.com>
12682
12683 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12684 modified version of obsolete sh_fetch_pseudo_register.
12685 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12686 (sh4_register_read): New function.
12687 (sh_pseudo_register_write): New function. Renamed and modified
12688 version of obsolete sh_store_pseudo_register.
12689 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12690 (sh4_register_write): New function.
12691 (sh_gdbarch_init): Remove setting of gdbarch function
12692 fetch_pseudo_register and store_pseudo_register. Remove setting of
12693 register_convert_to_raw, register_convert_to_virtual,
12694 register_convertible.
12695 (sh_sh4_register_convertible): Delete. No longer needed. All is
12696 taken care by architecture specific functions
12697 register_read/register_write.
12698 (sh_sh4_register_convert_to_virtual): Make static.
12699 (sh_sh4_register_convert_to_raw): Ditto.
12700
069e84fd
AC
127012002-01-22 Andrew Cagney <ac131313@redhat.com>
12702
12703 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12704 (floatformat_is_nan, floatformat_mantissa): Ditto.
12705
12706 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12707 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12708 builtin_type_ieee_double_little,
12709 builtin_type_ieee_double_littlebyte_bigword,
12710 builtin_type_m68881_ext, builtin_type_i960_ext,
12711 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12712 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12713 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12714 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12715
211a4f69
CV
127162002-01-22 Corinna Vinschen <vinschen@redhat.com>
12717
12718 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12719 parameter. Set frameless flag if it exists and depended of
12720 whether the scanned function is frameless or not.
12721 (xstormy16_skip_prologue): If function is frameless, return
12722 result of xstormy16_scan_prologue().
12723 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12724 call.
12725
f81353e4
EZ
127262002-01-21 Elena Zannoni <ezannoni@redhat.com>
12727
12728 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12729 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12730 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12731 sh_sh4_register_byte, sh_sh4_register_raw_size,
12732 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12733 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12734 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12735 sh_store_pseudo_register, sh_do_pseudo_register): Call
12736 gdbarch_tdep() just once, assign result to variable and use that,
12737 instead of calling the function several times.
12738
63c73a17
MK
127392002-01-20 Mark Kettenis <kettenis@gnu.org>
12740
12741 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12742 macros instead of LAST_FPU_CTRL_REGNUM.
12743 (store_register): Likewise.
12744
39ad761d
JB
127452002-01-21 Jim Blandy <jimb@redhat.com>
12746
12747 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12748 is up-to-date before running the program, not just when a program
12749 exits.
12750
3d74b771
FF
127512002-01-21 Fred Fish <fnf@redhat.com>
12752
12753 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12754 when we have found all instructions we are looking for.
12755
966fbf70
RE
127562002-01-21 Richard Earnshaw <rearnsha@arm.com>
12757
12758 * arm-tdep.c (arm_register_name): New function.
12759 (arm_registers_names): Make static.
12760 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12761 (arm_register_name): Declare.
12762 (REGISTER_NAME): Use it.
12763
c3b4394c
RE
127642002-01-21 Richard Earnshaw <rearnsha@arm.com>
12765 Kevin Buettner <kevinb@redhat.com>
12766
12767 Convert arm targets to new FRAME interface.
12768 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12769 (arm_frame_find_save_regs): Delete.
12770 (arm_frame_init_saved_regs): New.
12771 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12772 Allocate extra_info as required. Convert all uses of fsr.regs
12773 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12774 to use extra_info.
12775 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12776 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12777 (check_prologue_cache, save_prologue_cache): Likewise.
12778 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12779 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12780 (FRAME_FIND_SAVED_REGS): Delete.
12781 (arm_frame_find_saved_regs): Delete prototype.
12782 (arm_frame_init_saved_regs): New prototype.
12783 (FRAME_INIT_SAVED_REGS): Define.
12784
61d99182
AC
127852002-01-20 Andrew Cagney <ac131313@redhat.com>
12786
12787 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12788
6aaea291
AC
127892002-01-20 Andrew Cagney <ac131313@redhat.com>
12790
12791 From Jeff Law <law@redhat.com>:
12792 * infttrace.c: Include <sys/pstat.h>.
12793 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12794 exec file if the ttrace equivalent fails.
12795
15f698d2
AC
127962002-01-20 Andrew Cagney <ac131313@redhat.com>
12797
12798 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12799 (closeLogFile): Ditto.
12800
f86ddd7c
MC
128012002-01-20 Michael Chastain <mec@shout.net>
12802
12803 * top.c (print_gdb_version): Bump copyright year to 2002.
12804
904507ce
AC
128052002-01-20 Andrew Cagney <ac131313@redhat.com>
12806
12807 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12808 Zannoni and Eli Zaretskii.
12809
d7f0b9ce
DJ
128102002-01-20 Daniel Jacobowitz <drow@mvista.com>
12811
12812 * buildsym.c: Update copyright years.
12813 * c-typeprint.c: Likewise.
12814 * dwarf2read.c: Likewise.
12815 * f-typeprint.c: Likewise.
12816 * gdbtypes.c: Likewise.
12817 * gdbtypes.h: Likewise.
12818 * hp-symtab-read.c: Likewise.
12819 * hpread.c: Likewise.
12820 * mdebugread.c: Likewise.
12821 * p-typeprint.c: Likewise.
12822
3fd3d7d2
AC
128232002-01-20 Andrew Cagney <ac131313@redhat.com>
12824
12825 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12826 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12827 byte-order selectable.
12828 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12829 * arch-utils.c: Ditto.
12830 (set_endian): Ditto.
12831 (set_endian_from_file): Ditto.
12832 * gdbserver/low-sim.c (create_inferior): Ditto.
12833 * gdbarch.sh: Ditto.
12834 * gdbarch.h: Re-generate.
aaa38bb5
AJ
12835 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12836 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12837 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12838 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12839 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12840 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12841 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
12842 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12843 macro definition.
12844 * config/mips/tm-wince.h: Remove #undef of macro
12845 TARGET_BYTE_ORDER_SELECTABLE.
12846 * config/sh/tm-wince.h: Ditto.
12847
b02dede2
DJ
128482002-01-20 Daniel Jacobowitz <drow@mvista.com>
12849
12850 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12851 member function fields. Add accessor macro
12852 TYPE_FN_FIELD_ARTIFICIAL.
12853 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12854 * c-typeprint.c (c_type_print_base): Skip artificial member
12855 functions.
12856
c3643761
DJ
128572002-01-20 Daniel Jacobowitz <drow@mvista.com>
12858
12859 * f-typeprint.c: Delete unused function f_type_print_args.
12860 * p-typeprint.c: Delete unused function pascal_type_print_args.
12861
8176bb6d
DJ
128622002-01-20 Daniel Jacobowitz <drow@mvista.com>
12863
12864 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12865 comment. Add ``artificial'' to ``union field_location''.
12866
12867 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12868
12869 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12870 * mdebugread.c (parse_symbol): Likewise.
12871 * stabsread.c (define_symbol): Likewise.
12872 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12873 initializing TYPE_FIELD_BITPOS to n (obsolete).
12874 (hpread_doc_function_type): Likewise.
12875 * hpread.c (hpread_function_type): Likewise.
12876
7fd60527
AC
128772002-01-20 Andrew Cagney <ac131313@redhat.com>
12878
12879 * configure.in (host_makefile_frag): Only require a host makefile
12880 fragment when a native build.
12881 * configure: Re-generate.
12882
c2f05ac9
AC
128832002-01-20 Andrew Cagney <ac131313@redhat.com>
12884
12885 * doublest.h (floatformat_from_type): Declare.
12886 * doublest.c (floatformat_from_type): New function.
12887 (convert_typed_floating): Use.
12888
12889 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12890 call to function floatformat_from_type.
12891
12892 * gdbarch.sh (IEEE_FLOAT): Delete.
12893 * gdbarch.h, gdbarch.c: Re-generate.
12894 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12895 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12896 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12897 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12898 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12899 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12900 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12901 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12902 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12903 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12904 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
12905 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12906
12907 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12908 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12909 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12910 * sh-tdep.c (sh_gdbarch_init): Ditto.
12911 * mips-tdep.c (mips_gdbarch_init): Ditto.
12912 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12913 * cris-tdep.c (cris_gdbarch_init): Ditto.
12914
abf22e64
AJ
129152002-01-20 Jiri Smid <smid@suse.cz>
12916
12917 * configure.host, configure.tgt: Support x86-64.
12918 * NEWS: Note new target x86-64.
12919
b7c4cbf8
AJ
12920 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12921 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12922 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12923 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12924 x86-64-linux-nat.o): Fix dependencies.
12925
82600034
AC
129262002-01-19 Andrew Cagney <ac131313@redhat.com>
12927
12928 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12929 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12930 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12931 * config/sparc/xm-sun4os4.h: Delete file.
12932 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 12933
bbe5c628
AC
129342002-01-19 Andrew Cagney <ac131313@redhat.com>
12935
12936 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12937 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12938 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12939 * config/i386/i386lynx.mh (XM_FILE): Delete.
12940 * config/rs6000/xm-rs6000ly.h: Delete file.
12941 * config/sparc/xm-sparclynx.h: Delete file.
12942 * config/m68k/xm-m68klynx.h: Delete file.
12943 * config/i386/xm-i386lynx.h: Delete file.
12944 * config/xm-lynx.h: Delete file.
12945 * config/djgpp/fnchange.lst: Update.
12946
f8453e34
JT
129472002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12948
12949 * alpha-tdep.c (alpha_register_byte): New function.
12950 (alpha_register_raw_size): Ditto.
12951 (alpha_register_virtual_size): Ditto.
12952 (alpha_skip_prologue_internal): Renamed from
12953 alpha_skip_prologue.
12954 (alpha_skip_prologue): New version that calls
12955 alpha_skip_prologue_internal.
12956 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12957 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12958 second argument from alpha_skip_prologue.
12959 (REGISTER_BYTE): Use alpha_register_byte.
12960 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12961 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12962 (FRAMELESS_FUNCTION_INVOCATION): Use
12963 generic_frameless_function_invocation_not.
12964 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12965 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12966
52d9e613
AC
129672002-01-19 Andrew Cagney <ac131313@redhat.com>
12968
12969 * config/mips/xm-news-mips.h: Delete file.
12970 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12971
12972 * config/m88k/xm-m88k.h: Delete file.
12973 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12974 * config/m88k/xm-delta88v4.h: Ditto.
12975 * config/m88k/xm-delta88.h: Ditto.
12976
12977 * config/alpha/xm-fbsd.h: Delete file.
12978 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12979
12980 * config/sparc/xm-sparc.h: Delete file.
12981 * Makefile.in (xm-sun4os4.h): Delete dependency.
12982 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12983 * config/sparc/xm-sun4os4.h: Ditto.
12984 * config/sparc/xm-linux.h: Ditto.
12985
12986 * config/i386/xm-windows.h: Delete file.
12987
2d1b2124
AC
129882002-01-19 Andrew Cagney <ac131313@redhat.com>
12989
12990 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12991 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12992
ee1f65f0
JT
129932002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12994
12995 * alpha-tdep.c (alpha_call_dummy_words): New.
12996 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12997 (CALL_DUMMY_P): Define.
12998 (CALL_DUMMY_WORDS): Define.
12999 (SIZEOF_CALL_DUMMY_WORDS): Define.
13000
98081e55
PB
130012002-01-19 Per Bothner <per@bothner.com>
13002
13003 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13004 isn't NULL, which can happen with some gcj-3.x-produced code.
13005
0d056799
JT
130062002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13007
13008 * alpha-tdep.c (alpha_register_virtual_type): New function.
13009 (alpha_init_frame_pc_first): Ditto.
13010 (alpha_fix_call_dummy): Ditto.
13011 (alpha_store_struct_return): Ditto.
13012 (alpha_extract_struct_value_address): Ditto.
13013 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13014 alpha_register_virtual_type.
13015 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13016 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13017 alpha_extract_struct_value_address.
13018 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13019 (INIT_FRAME_PC): Use init_frame_pc_noop.
13020 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13021
4604bcad
MK
130222002-01-19 Mark Kettenis <kettenis@gnu.org>
13023
13024 * i386gnu-nat.c: Include "i386-tdep.h".
13025 (fetch_fpregs): Simplify code dealing with uninitialized floating
13026 point states such that it doesn't require FP7_REGNUM.
13027
140f9984
JT
130282002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13029
abf22e64
AJ
13030 * alpha-tdep.c (frame_extra_info): New.
13031 (alpha_find_saved_regs): Make static. Use
140f9984
JT
13032 frame->extra_info.
13033 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
13034 (alpha_frame_saved_pc): Use frame->extra_info.
13035 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13036 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
13037 (init_extra_frame_info): Rename to...
13038 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 13039 (alpha_print_extra_frame_info): New function.
140f9984
JT
13040 (alpha_frame_locals_address): Ditto.
13041 (alpha_frame_args_address): Ditto.
abf22e64 13042 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
13043 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13044 alpha_frame_args_address.
abf22e64 13045 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 13046 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
13047 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13048 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
13049 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13050 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13051
d734c450
JT
130522002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13053
13054 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13055 (alpha_cannot_fetch_register): Ditto.
13056 (alpha_cannot_store_register): Ditto.
13057 (alpha_register_convertible): Ditto.
13058 (alpha_use_struct_convention): Ditto.
13059 * config/alpha/tm-alpha.h: Update copyright years.
13060 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13061 (INNER_THAN): Use core_addr_lessthan.
13062 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13063 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13064 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13065 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13066 (FRAME_CHAIN): Remove unnecessary cast.
13067
b4ceaee6
AC
130682002-01-18 Andrew Cagney <ac131313@redhat.com>
13069
13070 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13071 obsolete.
13072
0a65a603
AC
130732002-01-18 Andrew Cagney <ac131313@redhat.com>
13074
13075 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13076 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13077 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13078 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13079 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13080 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13081 * x86-64-linux-nat.c: Ditto.
13082
636a6dfc
JT
130832002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13084
abf22e64 13085 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
13086 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13087 (REGISTER_NAME): Define.
13088
acceddb6
JT
130892002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13090
13091 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13092
ec32e4be
JT
130932002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13094
13095 * alpha-tdep.c: Update copyright years.
13096 (alpha_next_pc): New function.
13097 (alpha_software_single_step): Ditto.
13098 * config/alpha/tm-alpha.h: Add prototype for
13099 alpha_software_single_step.
13100
e771a871
JT
131012002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13102
13103 * alphabsd-nat.c: Update copyright years.
13104 (fill_gregset): Use regcache_collect.
13105 (fill_fpregset): Likewise.
13106 (fetch_inferior_registers): Only fetch integer registers
13107 if requested to do so.
13108 (store_inferior_registers): Only store integer registers
13109 if requested to do so.
13110
7708fa01
AC
131112002-01-17 Andrew Cagney <ac131313@redhat.com>
13112
13113 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13114 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13115 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13116 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13117 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13118 * config/arm/linux.mh (XDEPFILES): Delete.
13119 * config/arm/nbsd.mh (XDEPFILES): Delete.
13120 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13121 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13122 * config/i386/i386m3.mh (XDEPFILES): Delete.
13123 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13124 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13125 * config/i386/fbsd.mh (XDEPFILES): Delete.
13126 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13127 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13128 * config/i386/i386v4.mh (XDEPFILES): Delete.
13129 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13130 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13131 * config/i386/i386aix.mh (XDEPFILES): Delete.
13132 * config/i386/go32.mh (XDEPFILES): Delete.
13133 * config/i386/cygwin.mh (XDEPFILES): Delete.
13134 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13135 * config/i386/i386mach.mh (XDEPFILES): Delete.
13136 * config/i386/i386v32.mh (XDEPFILES): Delete.
13137 * config/i386/linux.mh (XDEPFILES): Delete.
13138 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13139 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13140 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13141 * config/i386/i386sco.mh (XDEPFILES): Delete.
13142 * config/i386/i386v.mh (XDEPFILES): Delete.
13143 * config/i386/nbsd.mh (XDEPFILES): Delete.
13144 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13145 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13146 * config/i386/symmetry.mh (XDEPFILES): Delete.
13147 * config/i386/obsd.mh (XDEPFILES): Delete.
13148 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13149 * config/ia64/linux.mh (XDEPFILES): Delete.
13150 * config/ia64/aix.mh (XDEPFILES): Delete.
13151 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13152 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13153 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13154 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13155 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13156 * config/m68k/linux.mh (XDEPFILES): Delete.
13157 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13158 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13159 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13160 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13161 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13162 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13163 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13164 * config/m88k/delta88.mh (XDEPFILES): Delete.
13165 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13166 * config/m88k/m88k.mh (XDEPFILES): Delete.
13167 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13168 * config/mips/linux.mh (XDEPFILES): Delete.
13169 * config/mips/irix6.mh (XDEPFILES): Delete.
13170 * config/mips/irix5.mh (XDEPFILES): Delete.
13171 * config/mips/irix4.mh (XDEPFILES): Delete.
13172 * config/mips/irix3.mh (XDEPFILES): Delete.
13173 * config/mips/decstation.mh (XDEPFILES): Delete.
13174 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13175 (NATDEPFILES): Move core-aout.o to here.
13176 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13177 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13178 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13179 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13180 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13181 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13182 * config/pa/hpux11.mh (XDEPFILES): Delete.
13183 * config/powerpc/aix.mh (XDEPFILES): Delete.
13184 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13185 * config/powerpc/linux.mh (XDEPFILES): Delete.
13186 * config/romp/rtbsd.mh: Rename XDEPFILES.
13187 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13188 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13189 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13190 * config/s390/s390.mh (XDEPFILES): Delete.
13191 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13192 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13193 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13194 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13195 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13196 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13197 * config/sparc/linux.mh (XDEPFILES): Delete.
13198 * config/vax/vaxult.mh (XDEPFILES): Delete.
13199 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13200 * Makefile.in (DEPFILES): Remove XDEPFILES.
13201
375fc983
AC
132022002-01-17 Andrew Cagney <ac131313@redhat.com>
13203
13204 * utils.c (internal_verror): Fix comments, default is yes not no.
13205 Update queries to match. Default to quit and dump core.
13206
8926118c
AC
132072002-01-17 Andrew Cagney <ac131313@redhat.com>
13208
13209 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13210 copyright.
13211 * defs.h, event-top.c, gdbcmd.h: Ditto.
13212 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13213 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13214 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13215 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13216 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13217 * mi/mi-main.c:Ditto.
13218
13219 * stack.c, symfile.c: Update copyright.
13220
45b7b345
DJ
132212002-01-17 Daniel Jacobowitz <drow@mvista.com>
13222
db728ff7
DJ
13223 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13224 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13225 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13226 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 13227
db728ff7
DJ
132282002-01-17 Daniel Jacobowitz <drow@mvista.com>
13229
13230 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13231 * gdbserver/low-lynx.c (myattach): Likewise.
13232 * gdbserver/low-nbsd.c (myattach): Likewise.
13233 * gdbserver/low-sim.c (myattach): Likewise.
13234 * gdbserver/low-sparc.c (myattach): Likewise.
13235 * gdbserver/low-sun3.c (myattach): Likewise.
13236
13237 * gdbserver/low-linux.c (myattach): New function.
45b7b345 13238
db728ff7 13239 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
13240 (main): Handle "--attach".
13241
8de3c354
AC
132422002-01-16 Andrew Cagney <ac131313@redhat.com>
13243
13244 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13245 maintainer.
13246
b0129042
DJ
132472002-01-15 Daniel Jacobowitz <drow@mvista.com>
13248
13249 * c-typeprint.c (is_type_conversion_operator): Add additional
13250 check for non-conversion operators.
13251
ba8679fb 132522002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
13253
13254 * linux-proc.c: Add "info proc" command, a la procfs.c.
13255 (read_mapping): New function, abstract and re-use code.
13256 (linux_find_memory_regions): Use new func read_mapping.
13257 (linux_info_proc_cmd): New function, implement "info proc".
13258 (_initialize_linux_proc): Add new command "info proc".
13259
e4f9b4d5
MS
132602002-01-15 Michael Snyder <msnyder@redhat.com>
13261
13262 * symfile.c (generic_load): Use bfd_map_over_sections method
13263 instead of manipulating bfd structure members directly.
13264 (add_section_size_callback): New function, bfd sections callback
13265 used by generic_load.
13266 (load_sections_callback): New function, bfd sections callback
13267 used by generic_load.
13268
08cf96df
EZ
132692002-01-15 Elena Zannoni <ezannoni@redhat.com>
13270
abf22e64 13271 [Based on work by Jim Blandy]
08cf96df
EZ
13272 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13273 (builtin_type_vec128): Export.
13274 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13275 types.
13276 (builtin_type_vec128): New builtin type for 128 bit vector
13277 registers.
13278 (build_gdbtypes): Initialize builtin_type_v16qi and
13279 builtin_type_v8hi. Create the vec128 register builtin type
13280 structure.
13281 (build_builtin_type_vec128): New function.
abf22e64 13282 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13283 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13284 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13285 AltiVec register to new builtin type.
13286
d7242108
DJ
132872001-01-15 Daniel Jacobowitz <drow@mvista.com>
13288
13289 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13290 to make_cv_type.
13291
4ee3352d
AC
132922002-01-14 Andrew Cagney <ac131313@redhat.com>
13293
13294 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13295 CLEAN_UP_REGISTER_VALUE.
13296 * regcache.c (supply_register): Update only call.
13297
f015b2e7
AC
132982002-01-14 Andrew Cagney <ac131313@redhat.com>
13299
13300 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13301 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13302 a29k-*-vxworks* targets as obsolete.
13303
356ae49d
MS
133042002-01-14 Michael Snyder <msnyder@redhat.com>
13305
13306 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13307 until we can resolve portability issues.
13308 * gregset.h: Remove references to fpxregs.
13309 * gcore.c (gcore_command): Initialize note_sec to NULL.
13310
ade8f45e
AC
133112002-01-13 Andrew Cagney <ac131313@redhat.com>
13312
13313 * signals.c (target_signal_to_name): Rewrite. Only use
13314 signals[].name when in bounds and non-NULL.
abf22e64 13315
89c49e7a
AC
133162002-01-13 Andrew Cagney <ac131313@redhat.com>
13317
13318 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13319 * signals.c (target_signal_to_name): Verify that SIG is within the
13320 bounds of the signals array.
13321
4daa9f9f
AC
133222002-01-13 Andrew Cagney <ac131313@redhat.com>
13323
13324 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13325
ba4bbdcb
KS
133262002-01-13 Keith Seitz <keiths@redhat.com>
13327
13328 * stack.c (print_frame_info_base): Print the frame's pc
13329 only if when print_frame_info_listing_hook is not defined.
13330
575bbeb6
KS
133312002-01-13 Keith Seitz <keiths@redhat.com>
13332
13333 * varobj.c (varobj_set_value): Make sure that there were no
13334 errors evaluating the object before attempting to set its
13335 value.
13336 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13337 so this offset adjustment is no longer necessary.
13338 (create_child): Don't set the error flag if the child is
13339 a CPLUS_FAKE_CHILD.
13340 (value_of_child): If value_fetch_lazy fails, return NULL
13341 so that callers will be notified that an error occurred.
13342 (c_value_of_variable): Delay check of variable's validity
13343 until later. We actually want all structs and unions to have
13344 the value "{...}".
13345 Do not return "???" for variables which could not be evaluated.
13346 This error condition must be returned to the caller so that it
13347 can get the error condition from gdb.
13348 (cplus_name_of_child): Adjust index for vptr before figuring
13349 out the name of the child.
13350 (cplus_value_of_child): If a child's (real) parent is not valid,
13351 don't even bother trying to give a value for it. Just return
13352 an error. Change all instances in this function.
13353 (cplus_type_of_child): If our parent is one of the "fake"
13354 parents, we need to get at the type of the real parent, and
13355 derive the child's true type using this information.
13356
b76898ab
AC
133572002-01-13 Andrew Cagney <ac131313@redhat.com>
13358
13359 From 2002-01-09 John Marshall <johnm@falch.net>:
13360 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13361 sources.redhat.com, and tweak some related URLs which had
13362 suffered from linkrot.
13363
b6649e88
AC
133642002-01-13 Andrew Cagney <ac131313@redhat.com>
13365
13366 From Jeff law:
13367 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13368 structures passed in registers.
13369
82cc5033
EZ
133702002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13371
13372 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13373 white space which prevented compilation. Reported by DSK
13374 <dsk@student.unsw.edu.au>.
13375
ba5f2f8a
MS
133762002-01-11 Michael Snyder <msnyder@redhat.com>
13377
fbd35540
MS
13378 * symfile.c (build_section_addr_info_from_section_tab):
13379 Use bfd access method instead of manipulating bfd directly.
13380 (syms_from_objfile): Ditto.
13381 (simple_overlay_update_1): Ditto.
13382 (simple_overlay_update): Ditto.
13383 (generic_load): Ditto.
13384 (overlay_unmapped_address): FIXME comment, bfd access methods.
13385 (sections_overlap): FIXME comment, bfd access methods.
13386 (pc_in_mapped_range): FIXME comment, bfd access methods.
13387 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13388 (section_is_mapped): FIXME comment, bfd access methods.
13389 (section_is_overlay): FIXME comment, bfd access methods.
13390
ba5f2f8a
MS
13391 * symfile.c (generic_load): Whitespace and long line cleanups.
13392 Remove duplicate variable, change several local variables to
13393 more appropriate data types.
13394 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13395
17df2af6
AC
133962002-01-12 Andrew Cagney <ac131313@redhat.com>
13397
13398 From Peter Schauer:
13399 * language.c (longest_local_hex_string_custom): Use phex_nz to
13400 convert NUM to a hex string.
13401
ec920329
EZ
134022002-01-12 Elena Zannoni <ezannoni@redhat.com>
13403
13404 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13405 the function.
538a76d6 13406 Update Copyright year.
ec920329 13407
3abd2e01
AC
134082002-01-12 Andrew Cagney <ac131313@redhat.com>
13409
13410 * language.c (longest_raw_hex_string): Delete unused function.
13411
b21b22e0
PS
134122002-01-11 Petr Sorfa <petrs@caldera.com>
13413
13414 * MAINTAINERS (write-after-approval): Add myself.
13415 * dwarf2read.c (read_tag_string_type): Handling of
13416 DW_AT_byte_size.
13417 (read_tag_string_type): FORTRAN fix to prevent propagation of
13418 first string size.
13419 (set_cu_language): Handling of DW_LANG_Fortran95
13420
747fe712
RE
134212002-01-11 Richard Earnshaw <rearnsha@arm.com>
13422
13423 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13424 GETPID(inferior_ptid).
13425 (store_inferior_registers): Likewise.
13426
f1bea926
JM
134272002-01-10 Jason Merrill <jason@redhat.com>
13428
13429 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13430 Fix DW_OP_minus.
13431
ae940673
AC
134322002-01-10 Andrew Cagney <ac131313@redhat.com>
13433
13434 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13435 and bfd/elf32-sh-nbsd.c.
13436
00546b04
MS
134372002-01-10 Michael Snyder <msnyder@redhat.com>
13438
352ed7b4
MS
13439 * NEWS: Mention --pid and corefile/proc-id behavior change.
13440
c18be923
MS
13441 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13442 * gcore.c: Include cli/cli-decode.h instead of command.h.
13443
00546b04
MS
13444 * main.c (captured_main): Add new command line option "--pid".
13445 If the second command line argument (following the symbol-file)
13446 begins with a digit, try to attach to it before trying to open
13447 it as a corefile.
13448 (print_gdb_help): Document the "--pid" argument.
13449
db60ec62
EZ
134502002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13451
13452 * completer.c (command_completer): New function.
13453
13454 * completer.h <command_completer>: Add prototype.
13455
13456 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13457 completer for the "help" command.
13458
39c22d1a
JM
134592002-01-09 Jason Merrill <jason@redhat.com>
13460
13461 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13462
c564377f
MS
134632002-01-09 Michael Snyder <msnyder@redhat.com>
13464
975aec09
MS
13465 * i386-linux-nat.c (fill_fpxregset): Make global.
13466 (store_fpxregset): Ditto.
13467
db4a10fa
MS
13468 * gregset.h (gdb_fpxregset_t): Define.
13469 (supply_fpxregset): Prototype.
13470 (fill_fpxregset): Prototype.
13471
c564377f
MS
13472 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13473
c3d45d70
RE
134742002-01-09 Richard Earnshaw <rearnsha@arm.com>
13475
13476 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13477 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13478 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13479
fcc87af1
AC
134802002-01-09 Andrew Cagney <ac131313@redhat.com>
13481
13482 * MAINTAINERS: Update target maintainer rules so that any
13483 Maintainer can approve a tested patch for a maintenance-only
13484 target.
13485
dd96c05b
RE
134862002-01-09 Richard Earnshaw <rearnsha@arm.com>
13487
d4297db9 13488 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13489
d4297db9 13490 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13491 IN_SIGTRAMP.
13492
145fdc6e
MS
134932002-01-08 Michael Snyder <msnyder@redhat.com>
13494
13495 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13496 real name of the executable, rather than the /proc name.
13497
be4d1333
MS
134982002-01-03 Michael Snyder <msnyder@redhat.com>
13499
13500 Implement a "generate-core-file" command in gdb, save target state.
13501 * gcore.c: New file. Implement new command 'generate-core-file'.
13502 Save a corefile image of the current state of the inferior.
13503 * linux-proc.c: Add linux-specific code for saving corefiles.
13504 * target.h (struct target_ops): Add new target vectors for saving
13505 corefiles; to_find_memory_regions and to_make_corefile_notes.
13506 (target_find_memory_regions): New macro.
13507 (target_make_corefile_notes): New macro.
13508 * target.c (update_current_target): Inherit new target methods.
13509 (dummy_find_memory_regions): New place-holder method.
13510 (dummy_make_corefile_notes): New place-holder method.
13511 (init_dummy_target): Initialize new dummy target vectors.
13512 * exec.c (exec_set_find_memory_regions): New function.
13513 Allow the exec_ops vector for memory regions to be taken over.
13514 (exec_make_note_section): New function, target vector method.
13515 * defs.h (exec_set_find_memory_regions): Export prototype.
13516 * procfs.c (proc_find_memory_regions): New function, corefile method.
13517 (procfs_make_note_section): New function, corefile method.
13518 (init_procfs_ops): Set new target vector pointers.
13519 (find_memory_regions_callback): New function.
13520 (procfs_do_thread_registers): New function.
13521 (procfs_corefile_thread_callback): New function.
13522 * sol-thread.c (sol_find_memory_regions): New function.
13523 (sol_make_note_section): New function.
13524 (init_sol_thread_ops): Initialize new target vectors.
13525 * inftarg.c (inftarg_set_find_memory_regions): New function.
13526 Allow to_find_memory_regions vector to be taken over.
13527 (inftarg_set_make_corefile_notes): New function.
13528 Allow to_make_corefile_notes vector to be taken over.
13529 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13530 interface layer if not target_has_execution (may be a corefile).
13531 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13532 * config/sparc/sun4sol2.mh: Ditto.
13533 * config/alpha/alpha-linux.mh: Ditto.
13534 * config/arm/linux.mh: Ditto.
13535 * config/i386/x86-64linux.mh: Ditto.
13536 * config/ia64/linux.mh: Ditto.
13537 * config/m68k/linux.mh: Ditto.
13538 * config/mips/linux.mh: Ditto.
13539 * config/powerpc/linux.mh: Ditto.
13540 * config/sparc/linux.mh: Ditto.
13541
c6b92abd
MS
135422002-01-07 Michael Snyder <msnyder@redhat.com>
13543
13544 * arm-linux-nat.c: Remove references to regcache.c internal data
13545 (registers[] and register_valid[]).
13546
4b09dc8c
MS
135472002-01-07 Michael Snyder <msnyder@redhat.com>
13548
abf22e64
AJ
13549 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13550 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
13551 symbol file and shlibs.
13552 * Makefile.in: Add rule for linux-proc.o.
13553 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13554 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13555 * config/arm/linux.mh: Ditto.
13556 * config/i386/linux.mh: Ditto.
13557 * config/i386/x86-64linux.mh: Ditto.
13558 * config/ia64/linux.mh: Ditto.
13559 * config/m68k/linux.mh: Ditto.
13560 * config/mips/linux.mh: Ditto.
13561 * config/powerpc/linux.mh: Ditto.
13562 * config/sparc/linux.mh: Ditto.
13563
c25b74ac
PM
135642002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13565
13566 * win32-nat.c: Add i386-tdep.h dependency.
13567
94cd915f
MS
135682002-01-07 Michael Snyder <msnyder@redhat.com>
13569
c7cccb76
MS
13570 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13571 instead of bfd_get_arch_size. Don't bail out just because
13572 there's no exec_bfd.
abf22e64 13573
34c0bd93
MS
13574 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13575 * p-valprint.c (pascal_object_print_value): Ditto.
13576 * somread.c (som_symtab_read): Ditto.
13577 * symfile.c (simple_free_overlay_region_table): Ditto.
13578 * valops.c (value_assign): Ditto.
13579
21c1c920
MS
13580 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13581 use tilde_expand and strerror for opening save-tracepoints file.
13582
5bbd998e
MS
13583 * thread-db.c (thread_db_new_objfile): Indendation fix.
13584
94cd915f
MS
13585 * infptrace.c (GDB_MAX_ALLOCA): New define.
13586 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 13587 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
13588 can be overridden with whatever value is appropriate to the host).
13589 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13590 alloca to allocate potentially large buffer.
13591 * rs6000-nat.c (child_xfer_memory): Ditto.
13592 * symm-nat.c (child_xfer_memory): Ditto.
13593 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13594
494e8a93
JSC
135952002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13596
13597 From Nick Clifton <nickc@redhat.com>
13598 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13599
d0e1d48e
MS
136002002-01-07 Michael Snyder <msnyder@redhat.com>
13601
abf22e64 13602 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
13603 Don't use exec_bfd if it's NULL.
13604
290b2c7a
MK
136052002-01-06 Mark Kettenis <kettenis@gnu.org>
13606
abf22e64 13607 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 13608
aef21287
AC
136092002-01-06 Andrew Cagney <ac131313@redhat.com>
13610
13611 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13612 * gnu-nat.c: Ditto.
13613
30efa627
AC
136142002-01-06 Andrew Cagney <ac131313@redhat.com>
13615
13616 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13617 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13618 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13619 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13620 z8k-coff have not been multi-arched. Update z8k-coff build
13621 status.
13622
9b4ff276
AC
136232002-01-06 Andrew Cagney <ac131313@redhat.com>
13624
13625 * MAINTAINERS: Mark a29k target as obsolete.
13626 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13627 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13628 comments.
13629 * NEWS: Note that a29k targets are obsolete.
13630 * a29k-tdep.c: Mark as obsolete.
13631 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13632 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13633 a29k-*-vxworks* targets as obsolete.
13634 * remote-adapt.c: Obsolete.
13635 * remote-eb.c: Obsolete.
13636 * remote-mm.c: Obsolete.
13637 * remote-udi.c: Obsolete.
13638 * config/a29k/a29k-udi.mt: Obsolete.
13639 * config/a29k/a29k.mt: Obsolete.
13640 * config/a29k/tm-a29k.h: Obsolete.
13641 * config/a29k/tm-vx29k.h: Obsolete.
13642 * config/a29k/vx29k.mt: Obsolete.
13643
a9011d31
AC
136442002-01-05 Andrew Cagney <ac131313@redhat.com>
13645
13646 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13647 with BFD_ENDIAN_BIG.
13648
9299404e
AC
136492002-01-05 Andrew Cagney <ac131313@redhat.com>
13650
13651 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13652 * configure, config.in: Re-generate.
13653 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13654 * defs.h: Do not include <endian.h>.
13655
7e89e357
JT
136562002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13657
13658 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13659 * config.in: Regenerate.
13660 * configure.in: Update copyright years.
13661 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13662 * configure: Regenerate.
13663 * i386bsd-nat.c: Update copyright years.
13664 (fill_gregset): Use regcache_collect.
13665 (fetch_inferior_registers): Only fetch integer registers
13666 if requested to do so. Add support for XMM registers
13667 using PT_GETXMMREGS.
13668 (store_inferior_registers): Only store integer registers
13669 if requested to do so. Add support for XMM registers
13670 using PT_SETXMMREGS.
13671 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13672 (store_inferior_registers): Remove.
13673 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13674 (fetch_elfcore_registers): New function.
13675 (i386nbsd_elfcore_fns): New.
13676 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13677 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13678 i386bsd-nat.o.
13679 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13680 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13681 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13682 * config/i386/tm-nbsd.h: Update copyright years.
13683 (HAVE_SSE_REGS): Define.
13684 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13685 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13686 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13687 (SIGCONTEXT_PC_OFFSET): Remove.
13688 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13689
a752853e
AC
136902002-01-05 Andrew Cagney <ac131313@redhat.com>
13691
13692 * configure.tgt: Remove powerpc-*-macos* target.
13693 * config/m68k/xm-mpw.h: Delete file.
13694 * config/xm-mpw.h: Delete file.
13695 * ser-mac.c: Delete file.
13696 * mpw-make.sed: Delete file.
13697 * mpw-config.in: Delete file.
13698 * mac-xdep.c: Delete file.
13699 * mac-gdb.r: Delete file.
13700 * mac-defs.h: Delete file.
13701 * mac-nat.c: Delete file.
13702 * config/powerpc/macos.mh: Delete file.
13703 * config/powerpc/macos.mt: Delete file.
13704 * config/powerpc/nm-macos.h: Delete file.
13705 * config/powerpc/tm-macos.h: Delete file.
13706 * source.c (openp, open_source_file): Remove obsolete code.
13707 * top.c (gdb_readline): Ditto.
13708 * utils.c (query): Ditto.
13709 * event-top.c (display_gdb_prompt): Ditto.
13710 * Makefile.in (ser-mac.o): Delete obsolete target.
13711 * NEWS: Update.
13712
d7449b42
AC
137132002-01-04 Andrew Cagney <ac131313@redhat.com>
13714
13715 * defs.h (BIG_ENDIAN): Delete macro definition.
13716 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13717 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13718 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13719 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13720 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13721 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13722 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13723 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13724 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13725 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13726 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13727 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13728 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13729 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13730 * gdbarch.c: Re-generate.
13731
356374e8
DJ
137322002-01-04 Daniel Jacobowitz <drow@mvista.com>
13733
13734 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13735 for core files.
13736
a2b8f8f8
JT
137372002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13738
13739 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13740
12466af9
AC
137412002-01-04 Andrew Cagney <ac131313@redhat.com>
13742
13743 * value.h (value_ptr): Delete typedef.
13744
3549ab40
JT
137452002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13746
13747 * i386nbsd-nat.c: Update copyright years.
13748 Include i386-tdep.h.
13749
fedbd091
EZ
137502002-01-04 Elena Zannoni <ezannoni@redhat.com>
13751
13752 * stabsread.c: Update copyright years.
13753
13754 From Debashis Mahata <debashis.mahata@wipro.com>:
13755 (read_struct_fields): Deal with Sun C compiler erroneous stab
13756 output for structs and unions.
fec8b34f 13757 Fix PR gdb/269.
fedbd091 13758
eb43544b
DJ
137592002-01-04 Daniel Jacobowitz <drow@mvista.com>
13760
13761 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13762 prototype.
13763
1514d34e
DJ
137642002-01-04 Daniel Jacobowitz <drow@mvista.com>
13765
13766 * cp-abi.c: Fix whitespace.
13767 (baseclass_offset): New wrapper function.
13768 * cp-abi.h (baseclass_offset): Add prototype.
13769 (struct cp_abi_ops): Add baseclass_offset pointer.
13770
13771 * valops.c (vb_match): Move to...
13772 * gnu-v2-abi.c (vb_match): here.
13773 * valops.c (baseclass_offset): Move to...
13774 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13775
13776 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13777
13778 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13779 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13780 * hpacc-abi.c (init_hpacc_ops): Likewise.
13781
7f8c9282
DJ
137822002-01-04 Daniel Jacobowitz <drow@mvista.com>
13783
13784 * valops.c (find_overload_match): Accept obj as a
13785 reference parameter. Update it before returning.
13786 * value.h (find_overload_match): Update prototype.
13787 * eval.c (evaluate_subexp_standard): Pass object to
13788 find_overload_match by reference.
13789
f23631e4
AC
137902002-01-03 Andrew Cagney <ac131313@redhat.com>
13791
13792 * valarith.c: Replace value_ptr with struct value pointer. Remove
13793 register attribute from value declarations.
13794 * valops.c: Ditto.
13795 * value.h: Ditto.
13796 * scm-lang.c (scm_lookup_name): Ditto.
13797
79e10fab 137982002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 13799
79e10fab
AC
13800 Abstract the functionality of iterating over mapped memory
13801 regions into a general purpose iterator function.
abf22e64 13802 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
13803 iterator for memory sections.
13804 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13805 (solib_mappings_callback): New function, callback for above.
13806 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13807 (info_mappings_callback): New function, callback for above.
13808
13809 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13810
c5ad026a
MK
138112002-01-01 Mark Kettenis <kettenis@gnu.org>
13812
d2a7c97a
MK
13813 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13814 * i386-tdep.c: Include "elf-bfd.h".
13815 (process_note_abi_tag_sections): New function.
13816 (i386_gdbarch_init): Add code to recognize various OS/ABI
13817 combinations.
13818
c5ad026a
MK
13819 * maint.c (_initialize_maint_cmds): Add missing \ in
13820 string-literal.
13821
a1a5b71e 13822For older changes see ChangeLog-2001
c906108c
SS
13823\f
13824Local Variables:
13825mode: change-log
13826left-margin: 8
13827fill-column: 74
13828version-control: never
13829End:
This page took 0.966743 seconds and 4 git commands to generate.