* m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b5fc49aa
AS
12002-11-29 Andreas Schwab <schwab@suse.de>
2
3 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
4 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
5 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
6 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
7 read_memory_unsigned_integer instead of read_memory_integer when
8 dealing with addresses and instruction opcodes.
9 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
10 (m68k_linux_frame_saved_pc): Likewise.
11
6e7f8b9c
AC
122002-11-29 Andrew Cagney <ac131313@redhat.com>
13
14 * stack.c (selected_frame, select_frame): Move from here ...
15 * frame.c (selected_frame, select_frame): ... to here. Include
16 "language.h".
17 * Makefile.in (frame.o): Update dependencies.
18 * frame.c (get_selected_frame): New function.
19 * frame.h (get_selected_frame): Declare.
20 (deprecated_selected_frame): Rename selected_frame.
21 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
22 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
23 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
24 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
25 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
26 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
27 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
28 * z8k-tdep.c, cli/cli-cmds.c: Update.
29
805e2818
AC
302002-11-29 Andrew Cagney <ac131313@redhat.com>
31
32 * frame.h (get_selected_block): Add comments.
33
1058bca7
AC
342002-11-28 Andrew Cagney <ac131313@redhat.com>
35
36 * frame.c (pc_notcurrent): New function.
37 (find_frame_sal): New function.
38 * frame.h (find_frame_sal): Declare.
39 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
40 * stack.c (print_frame_info_base): Use find_frame_sal instead of
41 find_pc_line.
1058bca7
AC
42 (frame_info): Ditto.
43 * ada-lang.c (find_printable_frame): Ditto.
44
d92419e5
JB
452002-11-28 J. Brobecker <brobecker@gnat.com>
46
47 * configure.in: Check that the pthdebug library is recent enough
48 before enabling thread support on native AiX.
49 * configure: Regenerate.
50
51 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
52 from the list of object files as it is now appended by configure
53 if thread support is enabled.
54 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
55 if thread support is enabled.
56
8c69fc49
AC
572002-11-28 Andrew Cagney <cagney@redhat.com>
58
59 * stack.c (get_selected_block): In-line get_current_block.
60 * frame.h (get_current_block): Delete declaration.
61 * blockframe.c (get_current_block): Delete function.
62
07555a72
AC
632002-11-28 Andrew Cagney <ac131313@redhat.com>
64
65 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
66 USE_GENERIC_DUMMY_FRAMES.
67 * gdbarch.h, gdbarch.c: Regenerate.
68 * valops.c, frame.c: Update.
69 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
70 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
71 * config/pa/tm-hppa.h, blockframe.c: Update.
72 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
73 * m68k-tdep.c, alpha-tdep.c: Ditto.
74
75 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
76 * mips-tdep.c: Ditto.
77
b99fa2d2
AC
782002-11-27 Andrew Cagney <ac131313@redhat.com>
79
80 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
81 (USE_GENERIC_DUMMY_FRAMES): Default to true.
82 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
83 * gdbarch.c, gdbarch.h: Re-generate.
84 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
85 (CALL_DUMMY_LOCATION): Delete macro definition.
86 (PC_IN_CALL_DUMMY): Delete macro definitions.
87
88 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
89 default is already generic_pc_in_call_dummy.
90 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
91 * v850-tdep.c (v850_gdbarch_init): Ditto.
92 * sh-tdep.c (sh_gdbarch_init): Ditto.
93 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
94 * mips-tdep.c (mips_gdbarch_init): Ditto.
95 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
96 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
97 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
98 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
99 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
100 * avr-tdep.c (avr_gdbarch_init): Ditto.
101
102 * arm-tdep.c (arm_gdbarch_init): Do not set
103 use_generic_dummy_frames, default is already 1.
104 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
105 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
106 * v850-tdep.c (v850_gdbarch_init): Ditto.
107 * sh-tdep.c (sh_gdbarch_init): Ditto.
108 * s390-tdep.c (s390_gdbarch_init): Ditto.
109 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
110 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
111 * mips-tdep.c (mips_gdbarch_init): Ditto.
112 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
113 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
114 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
115 * i386-tdep.c (i386_gdbarch_init): Ditto.
116 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
117 * frv-tdep.c (frv_gdbarch_init): Ditto.
118 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
119 * cris-tdep.c (cris_gdbarch_init): Ditto.
120 * avr-tdep.c (avr_gdbarch_init): Ditto.
121
122 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
123 call_dummy_location, default is already AT_ENTRY_POINT.
124 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
125 * v850-tdep.c (v850_gdbarch_init): Ditto.
126 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
127 * sh-tdep.c (sh_gdbarch_init): Ditto.
128 * s390-tdep.c (s390_gdbarch_init): Ditto.
129 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
130 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
131 * mips-tdep.c (mips_gdbarch_init): Ditto.
132 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
133 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
134 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
135 * i386-tdep.c (i386_gdbarch_init): Ditto.
136 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
137 * frv-tdep.c (frv_gdbarch_init): Ditto.
138 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
139 * cris-tdep.c (cris_gdbarch_init): Ditto.
140 * avr-tdep.c (avr_gdbarch_init): Ditto.
141 * arm-tdep.c (arm_gdbarch_init): Ditto.
142 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
143
abc0af47
AC
1442002-11-28 Andrew Cagney <cagney@redhat.com>
145
146 * frame.h: Update comments on set_current_frame, create_new_frame,
147 flush_cached_frames, reinit_frame_cache, select_frame and
148 selected_frame.
149
ed5cedc5
AC
1502002-11-27 Andrew Cagney <cagney@redhat.com>
151
152 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
153 deprecated pc_in_call_dummy function.
154 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
155 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
156 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
157 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
158 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
159
b2a1bd4f
MH
1602002-11-26 Martin M. Hunt <hunt@redhat.com>
161
162 * Makefile.in: Remove Tix dependencies.
163 * acinclude.m4: Ditto.
164 * aclocal.m4: Ditto.
165 * configure.in: Ditto.
166 * configure: Regenerated.
167
f09cffaa
AC
1682002-11-26 Andrew Cagney <ac131313@redhat.com>
169
170 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
171 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
172 * gdbarch.c: Re-generate.
173
e92b0cc9
AC
1742002-11-26 Andrew Cagney <ac131313@redhat.com>
175
176 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
177 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
178 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
179 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
180 pc_in_call_dummy_at_entry_point.
181 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
182 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
183 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
184 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
185 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
186 pc_in_call_dummy_on_stack.
187 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
188 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
189 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
190 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
191 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
192
b4b88177
AC
1932002-11-26 Andrew Cagney <ac131313@redhat.com>
194
195 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
196 pc_in_call_dummy_before_text_end
197 (deprecated_pc_in_call_dummy_after_text_end): Rename
198 pc_in_call_dummy_after_text_end.
199 (deprecated_pc_in_call_dummy_on_stack): Rename
200 pc_in_call_dummy_on_stack.
201 (deprecated_pc_in_call_dummy_at_entry_point): Rename
202 pc_in_call_dummy_at_entry_point.
203 * m68k-tdep.c (m68k_gdbarch_init): Update.
204 * s390-tdep.c (s390_gdbarch_init): Update.
205 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
206 * vax-tdep.c (vax_gdbarch_init): Update.
207 * sparc-tdep.c (sparc_gdbarch_init): Update.
208 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
209 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
210 * i386-tdep.c (i386_gdbarch_init): Update.
211 * frv-tdep.c (frv_gdbarch_init): Update.
212 * cris-tdep.c (cris_gdbarch_init): Update.
213 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
214 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
215 (deprecated_pc_in_call_dummy_after_text_end)
216 (deprecated_pc_in_call_dummy_on_stack)
217 (deprecated_pc_in_call_dummy_at_entry_point): Update.
218 * alpha-tdep.c (alpha_gdbarch_init): Update.
219
eb784848
DJ
2202002-11-25 Daniel Jacobowitz <drow@mvista.com>
221
222 * acconfig.h (HAVE_PREAD64): Add.
223 * configure.in: Check for pread64.
224 * config.in: Regenerated.
225 * configure: Regenerated.
226 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
227 * linux-proc.c (linux_proc_xfer_memory): New function.
228 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
229
933c6fe4
DC
2302002-11-25 David Carlton <carlton@math.stanford.edu>
231
232 * dwarf2read.c (scan_partial_symbols): Descend into namespace
233 pdi's with no name.
234
158a8022
AC
2352002-11-25 Andrew Cagney <ac131313@redhat.com>
236
237 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
238 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
239
481d0f41
JB
2402002-11-25 Jim Blandy <jimb@redhat.com>
241
e8289572
JB
242 * symfile.c (init_objfile_sect_indices): New function.
243 (default_symfile_offsets): Move the section-index-initializing
244 stuff into init_objfile_sect_indices, and call that.
245
b29c9944
JB
246 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
247 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
248
13de58df
JB
249 * symfile.c (syms_from_objfile): Adjust indentation.
250
481d0f41
JB
251 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
252 || info_verbose isn't true.
253
7d6a26a7
AC
2542002-11-24 Andrew Cagney <ac131313@redhat.com>
255
256 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
257 default to get_frame_base.
258 * gdbarch.h, gdbarch.c: Regenerate.
259 * arch-utils.c (default_frame_address): Delete function.
260 * arch-utils.h (default_frame_address): Delete declaration
261
6abe1021
PM
2622002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
263
264 * varobj.c (find_frame_addr_in_frame_chain):
265 Use get_frame_base instead of FRAME_FP,
266 obvious fix.
267
c193f6ac
AC
2682002-11-19 Andrew Cagney <ac131313@redhat.com>
269
270 * frame.h (FRAME_FP): Delete macro.
271 (get_frame_base): New function declaration.
272 * frame.c (get_frame_base): New function.
273 (get_frame_id): Use ->frame.
274 (frame_find_by_id): Rewrite to use get_frame_id.
275 * blockframe.c: Use get_frame_base instead of FRAME_FP.
276 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
277 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
278 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
279 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
280 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
281 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
282
e5d2af14
AC
2832002-11-24 Andrew Cagney <ac131313@redhat.com>
284
285 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
286
931d12c6
AC
2872002-11-24 Andrew Cagney <ac131313@redhat.com>
288
289 * frame.c (set_unwind_by_pc): Revert change below, use
290 PC_IN_CALL_DUMMY.
291 (get_prev_frame): Ditto.
292
5e0f933e
AC
2932002-11-24 Andrew Cagney <ac131313@redhat.com>
294
295 * dummy-frame.c (pc_in_dummy_frame): New function.
296 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
297 (find_dummy_frame): Update comment.
298 (generic_pop_current_frame): Use get_frame_type.
299 * dummy-frame.h (pc_in_dummy_frame): Declare.
300 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
301 (create_new_frame): Use pc_in_dummy_frame.
302 (get_prev_frame): Use pc_in_dummy_frame.
303 (frame_saved_regs_register_unwind): Use get_prev_frame.
304 (deprecated_generic_get_saved_register): Use get_prev_frame.
305
7d8547c9
AC
3062002-11-23 Andrew Cagney <ac131313@redhat.com>
307
308 * blockframe.c (find_frame_addr_in_frame_chain): Move function
309 from here ...
310 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
311 (varobj_create): Note that frame ID should be used.
312 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
313
0225421b
AC
3142002-11-23 Andrew Cagney <ac131313@redhat.com>
315
316 * breakpoint.c: Include "gdb_assert.h".
317 (deprecated_frame_in_dummy): Assert that generic dummy frames are
318 not being used.
319 * Makefile.in (breakpoint.o): Update dependencies.
320 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
321 deprecated_frame_in_dummy.
322 * stack.c (print_frame_info_base): Ditto.
323 (frame_info): Ditto.
324 (print_frame_info_base): Ditto. Delete dead code.
325
32eeb91a
AS
3262002-11-23 Andreas Schwab <schwab@suse.de>
327
328 * Makefile.in (m68k_tdep_h): Define.
329 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
330 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
331 * m68k-tdep.c: Move register number enum ...
332 * m68k-tdep.h: ... to this new file and rename the constants from
333 E_* to M68K_*. All uses changed.
334 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
335 * abug-rom.c: Include "m68k-tdep.h". Use
336 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
337 * cpu32bug-rom.c: Likewise.
338 * dbug-rom.c: Likewise.
339 * m68k-tdep.c: Likewise.
340 * m68klinux-nat.c: Likewise.
341 * remote-est.c: Likewise.
342 * rom68k-rom.c: Likewise.
343 * config/m68k/tm-linux.h: Likewise.
344
9648bac8
AC
3452002-11-23 Andrew Cagney <ac131313@redhat.com>
346
347 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
348 dummy frame initialization code.
349 * mips-tdep.c (mips_gdbarch_init): Ditto.
350
91a175b3
CF
3512002-11-22 Christopher Faylor <cgf@redhat.com>
352
353 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
354 attach will hang.
355
f4ded5b1
AC
3562002-11-22 Andrew Cagney <ac131313@redhat.com>
357
358 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
359 to default_frame_address.
360 * gdbarch.h, gdbarch.c: Re-generate.
361
362 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
363 or frame_locals_address to default_frame_address.
364 * m68k-tdep.c (m68k_gdbarch_init): Update.
365 * i386-tdep.c (i386_gdbarch_init): Update.
366 * frv-tdep.c (frv_gdbarch_init): Update.
367 * sh-tdep.c (sh_gdbarch_init): Update.
368 * v850-tdep.c (v850_gdbarch_init): Update.
369 * sparc-tdep.c (sparc_gdbarch_init): Update.
370 * mips-tdep.c (mips_gdbarch_init): Update.
371 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
372 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
373 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
374
375 * cris-tdep.c (cris_frame_args_address): Delete function.
376 (cris_frame_locals_address): Delete function.
377 (cris_gdbarch_init): Do not set frame_args_address or
378 frame_locals_address.
379
f7c1e0f3
MS
3802002-11-22 Michael Snyder <msnyder@redhat.com>
381
382 * thread-db.c (thread_db_load): Tell the user what's going on
383 if dlopen fails on libthread_db.
384
03dac896
AS
3852002-11-23 Andreas Schwab <schwab@suse.de>
386
387 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
388 invariant return values.
389
7a67d0fe
AS
3902002-11-22 Andreas Schwab <schwab@suse.de>
391
392 * valops.c (value_slice): Move declaration of `offset' to avoid
393 warning.
394
5633f842
CF
3952002-11-22 Christopher Faylor <cgf@redhat.com>
396
397 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
398 (struct so_stuff): Add end_addr field.
399 (register_loaded_dll): Calculate and store end address of loaded dll.
400 (solib_address): New function.
401 (child_solib_loaded_library_pathname): Pass carefully constructed
402 section info to safe_symbol_file_add rather than ignoring it.
403 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
404 DLL is loaded.
405 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
406 (child_create_inferior): Fix a compiler warning.
407 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
408 (solib_address): Declare new function.
409
d85fe7f7
AS
4102002-11-22 Andreas Schwab <schwab@suse.de>
411
412 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
413 and FPS registers.
414
8308e54c
DJ
4152002-11-21 Daniel Jacobowitz <drow@mvista.com>
416
417 * maint.c (_initialize_maint_cmds): Fix typo. From
418 Francesco Potorti` <pot@gnu.org>.
419
8997bd5e
AC
4202002-11-21 Andrew Cagney <cagney@redhat.com>
421
422 * mips-tdep.c (mips_dump_tdep): Delete references to
423 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
424 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
425 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
426 * printcmd.c (build_address_symbolic): Delete calls to
427 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
428 (address_info): Ditto.
429 Fix PR gdb/773.
430
4e87b832
KD
4312002-11-19 Klee Dienes <kdienes@apple.com>
432 Adam Fedor <fedor@gnu.org>
433
434 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
435 the ability to explicitly specify the quote characters and word
436 break characters; if NULL is specified for either, use the old
437 behavior of using the characters used by the completer.
438 (skip_chars): New function. Convenience wrapper around
439 skip_quoted_chars to provide the original skip_chars behavior.
440 * completer.h (skip_quoted_chars): Add prototype.
441
9ba8d803
AC
4422002-11-19 Andrew Cagney <ac131313@redhat.com>
443
444 Problems reported by Paul Eggert.
445 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
446
0a595803
AS
4472002-11-19 Andreas Schwab <schwab@suse.de>
448
449 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
450 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
451 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
452 (m68k_linux_frame_saved_pc): Move to ...
453 * m68klinux-tdep.c: ... here. New file.
454 * Makefile.in (m68klinux-tdep.o): Add dependencies.
455 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
456
e8afa4d7
AF
4572002-11-19 Adam Fedor <fedor@gnu.org>
458
459 * objc-exp.y: Revert to old skip_quoted usage.
460
a76c9d72
AF
4612002-11-19 Adam Fedor <fedor@gnu.org>
462
463 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
464 (objc_lang_h): Define.
465 (YYFILES): Add objc-exp.tab.c.
466 (local-maintainer-clean): Remove objc-exp.tab.c.
467 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
468
fd0e9d45
PM
4692002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
470
471 * p-exp.y (typecast rule): Add automatic dereference of
472 pascal classes if needed.
473 (THIS): Set current_type.
474 Automatically dereference pascal classes.
475 (typebase rule): Add ^typebase recognition.
476
82eeeb94
AF
4772002-11-18 Adam Fedor <fedor@gnu.org>
478
479 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
480 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
481 (op_name): Handle OP_OBJC_SELF.
482 * Makefile.in (expprint.o): Add additional depends.
483
646df18d
AF
4842002-11-18 Adam Fedor <fedor@gnu.org>
485
486 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
487 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
488 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
489 * objc-exp.y: Likewise.
490
379b85df
AF
4912002-11-18 Adam Fedor <fedor@gnu.org>
492
493 * gdb/parser-defs.h: (struct objc_class_str): New structure
494 for parsing ObjC classes.
495
85cf597a
AC
4962002-11-18 Andrew Cagney <ac131313@redhat.com>
497
498 * stack.c (frame_relative_level): Copy function from here ...
499 * frame.c (frame_relative_level): ...to here.
500
5a203e44
AC
5012002-11-18 Andrew Cagney <ac131313@redhat.com>
502
503 * frame.h (enum frame_type): Define.
504 (get_frame_type): Declare.
505 (struct frame_info): Add field `type'. Delete field
506 signal_handler_caller.
507 (deprecated_set_frame_signal_handler_caller): Declare.
508 * frame.c (get_frame_type): New function.
509 (deprecated_set_frame_type): New function.
510 (create_new_frame): Set the frame's type.
511 (get_prev_frame): Similar.
512 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
513 * s390-tdep.c: Ditto.
514 * m68klinux-nat.c: Ditto.
515 * ns32k-tdep.c: Ditto.
516 * x86-64-linux-tdep.c: Ditto.
517 * vax-tdep.c: Ditto.
518 * rs6000-tdep.c: Ditto.
519 * ppc-linux-tdep.c: Ditto.
520 * i386-interix-tdep.c: Ditto.
521 * mips-tdep.c: Ditto.
522 * m68k-tdep.c: Ditto.
523 * hppa-tdep.c: Ditto.
524 * ia64-tdep.c: Ditto.
525 * cris-tdep.c: Ditto.
526 * arm-tdep.c: Ditto.
527 * alpha-tdep.c: Ditto.
528 * i386-tdep.c: Ditto.
529 * stack.c: Ditto.
530 * ada-lang.c: Ditto.
531 * blockframe.c: Update.
532 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
533 deprecated_set_frame_type instead of signal_handler_caller.
534 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
535 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
536 * breakpoint.h: Delete FIXME suggesting get_frame_type.
537
bf4ae8b2
KD
5382002-11-18 Klee Dienes <kdienes@apple.com>
539
540 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
541
a672ef13
KD
5422002-11-18 Klee Dienes <kdienes@apple.com>
543
544 * buildsym.c (pop_context): Add comment.
545
0c5e171a
KD
5462002-11-18 Klee Dienes <kdienes@apple.com>
547
548 * buildsym.h (pop_context): Convert to function, defined in
549 buildsym.c.
550 * buildsym.c: Include gdb_assert.h.
551 (pop_context): Implement as C function. Add check for stack
552 underflow.
553 * dbxread.c (process_one_symbol): Complain and stop processing
554 that symbol if we are already at the top of the context stack for
555 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
556 when processing N_RBRAC.
557
8a1f4c4c
DJ
5582002-11-16 Daniel Jacobowitz <drow@mvista.com>
559
560 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
561 define.
562 (struct target_waitstatus): Add opaque definition.
563 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
564 * exec.c (init_exec_ops): Likewise.
565 * fork-child.c (clone_and_follow_inferior): Remove.
566 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
567 * inferior.h (clone_and_follow_inferior): Remove prototype.
568 * infrun.c (follow_fork_mode_both): Remove.
569 (follow_fork_mode_kind_names): Remove commented out "both".
570 (follow_inferior_fork): Remove follow_fork_mode_both support.
571 * inftarg.c (child_clone_and_follow_inferior): Remove.
572 (child_post_follow_inferior_by_clone): Remove.
573 (init_child_ops): Don't set to_clone_and_follow_inferior
574 or to_post_follow_inferior_by_clone.
575 * target.c (default_clone_and_follow_inferior): Remove.
576 (cleanup_target): Don't set to_clone_and_follow_inferior
577 or to_post_follow_inferior_by_clone.
578 (find_default_clone_and_follow_inferior): Remove.
579 (init_dummy_target): Don't set to_clone_and_follow_inferior.
580 (debug_to_clone_and_follow_inferior): Remove.
581 (debug_to_post_follow_inferior_by_clone): Remove.
582 (setup_target_debug): Don't set to_clone_and_follow_inferior
583 or to_post_follow_inferior_by_clone.
584 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
585 and to_post_follow_inferior_by_clone.
586 (child_clone_and_follow_inferior): Remove prototype.
587 (child_post_follow_inferior_by_clone): Remove prototype.
588 (target_clone_and_follow_inferior): Remove macro.
589 (target_post_follow_inferior_by_clone): Remove macro.
590 (find_default_clone_and_follow_inferior): Remove prototype.
591
47932f85
DJ
5922002-11-16 Daniel Jacobowitz <drow@mvista.com>
593
594 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
595 inferior_has_vforked, and inferior_has_execd instead of
596 target_has_forked, target_has_vforked, and target_has_execd.
597 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
598 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
599 (CHILD_WAIT): Define.
600 (child_wait): Add prototype.
601 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
602 Add prototype.
603 (hpux_has_vforked): Likewise, from child_has_vforked.
604 (hpux_has_execd): Likewise, from child_has_execd.
605 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
606 (not_same_real_pid, child_wait): New, copied from inftarg.c.
607 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
608 and hpux_has_syscall_event instead of the target hooks.
609 * infrun.c (inferior_has_forked, inferior_has_vforked)
610 (inferior_has_execd): New functions.
611 * inftarg.c (not_same_real_pid): Remove.
612 (child_wait): Remove references to not_same_real_pid,
613 target_has_forked, target_has_vforked, target_has_execd,
614 and target_has_syscall_event.
615 (child_has_forked, child_has_vforked, child_has_execd)
616 (child_has_syscall_event): Remove.
617 (init_child_ops): Remove references to child_has_forked,
618 child_has_vforked, child_has_execd, and child_has_syscall_event.
619 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
620 (hpux_has_vforked): Likewise, from child_has_vforked.
621 (hpux_has_execd): Likewise, from child_has_execd.
622 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
623 * target.c (cleanup_target): Remove references to
624 to_has_forked, to_has_vforked, to_has_execd, and
625 to_has_syscall_event.
626 (update_current_target): Likewise.
627 (setup_target_debug): Likewise.
628 (debug_to_has_forked): Remove.
629 (debug_to_has_vforked): Remove.
630 (debug_to_has_execd): Remove.
631 (debug_to_has_syscall_event): Remove.
632 * target.h (struct target_ops): Remove to_has_forked.
633 to_has_vforked, to_has_execd, and to_has_syscall_event.
634 (child_has_forked, child_has_vforked, child_has_execd)
635 (child_has_syscall_event): Remove prototypes.
636 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
637 prototypes.
638 (target_has_forked, target_has_vforked, target_has_execd)
639 (target_has_syscall_event): Remove macros.
640
4088142a
DJ
6412002-11-16 Daniel Jacobowitz <drow@mvista.com>
642
643 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
644 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
645 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
646 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
647 * target.c (cleanup_target): Remove reference to
648 to_can_follow_vfork_prior_to_exec.
649 (update_current_target): Likewise.
650 (debug_to_can_follow_vfork_prior_to_exec): Remove.
651 (setup_target_debug): Remove reference to
652 to_can_follow_vfork_prior_to_exec.
653 * target.h (struct target_ops): Remove
654 to_can_follow_vfork_prior_to_exec.
655 (child_can_follow_vfork_prior_to_exec): Remove prototype.
656 (target_can_follow_vfork_prior_to_exec): Remove definition.
657 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
658 define.
659 * infrun.c (follow_vfork_when_exec): Remove.
660 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
661 (follow_exec): Likewise.
662 (handle_inferior_event): Likewise.
663 (keep_going): Likewise.
664
18cde8d5
AC
6652002-11-15 Andrew Cagney <cagney@redhat.com>
666
667 * frame.c (generic_unwind_get_saved_register): Make static.
668 * frame.h (generic_unwind_get_saved_register): Delete declaration.
669 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
670 defaults to generic_unwind_get_saved_register.
671 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
672 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
673 * frv-tdep.c (frv_gdbarch_init): Ditto.
674 * i386-tdep.c (i386_gdbarch_init): Ditto.
675 * s390-tdep.c (s390_gdbarch_init): Ditto.
676 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
677 * v850-tdep.c (v850_gdbarch_init): Ditto.
678 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
679 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
680 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
681
a6b063af
AC
6822002-11-15 Andrew Cagney <cagney@redhat.com>
683
684 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
685 i386-tdep.c.
686
f407986f
AC
6872002-11-15 Andrew Cagney <cagney@redhat.com>
688
689 * frame.h (sigtramp_saved_pc): Delete declaration.
690 * blockframe.c (sigtramp_saved_pc): Delete function.
691 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
692 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
693 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
694 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
695
f18c5a73
AC
6962002-11-15 Andrew Cagney <ac131313@redhat.com>
697
698 * frame.c (frame_pc_unwind): New function.
699 (frame_saved_regs_pc_unwind): New function.
700 (frame_register_unwind): Pass unwind_cache instead of
701 register_unwind_cache.
702 (set_unwind_by_pc): Add unwind_pc parameter, set.
703 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
704 (get_prev_frame): Ditto.
705 * frame.h (frame_pc_unwind_ftype): Declare.
706 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
707 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
708 (frame_pc_unwind): Declare.
709 * dummy-frame.c (dummy_frame_pc_unwind): New function.
710 (struct dummy_frame): Add comment mentioning that values are for
711 previous frame.
712 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
713 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
714 (generic_file_frame_chain_valid): Ditto.
715 * stack.c (frame_info): Ditto.
716
d9285969 7172002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
718
719 * linespec.c (locate_first_half): New function.
720 (decode_line_1): Move code into locate_first_half.
721
d741b867
AC
7222002-11-15 Andrew Cagney <ac131313@redhat.com>
723
724 * complaints.h: Add comment explaining how to eliminate a
725 deprecated_complain call.
24382c5c 726 * complaints.h: Fix spelling errors.
d741b867 727
82d03c99
DC
7282002-11-15 David Carlton <carlton@math.stanford.edu>
729
730 * printcmd.c: Remove #include "disasm.h".
731
c97eb5d9
AC
7322002-11-14 Andrew Cagney <ac131313@redhat.com>
733
734 * frame.h: Move the most relevant interface functions to the start
735 of the file.
736
524d7c18
AC
7372002-11-14 Andrew Cagney <ac131313@redhat.com>
738
739 * regcache.h (deprecated_registers): Rename registers.
740 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
741 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
742 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
743 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
744 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
745 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
746 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
747 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
748 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
749 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
750 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
751 * v850ice.c: Update.
752
6411e720
AC
753Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
754
755 * utils.c (gdb_realpath): Add comment mentioning realpath with a
756 NULL buffer.
757
73937e03
AC
7582002-11-13 Andrew Cagney <cagney@redhat.com>
759
760 * regcache.h (deprecated_read_register_bytes): Rename
761 read_register_bytes.
762 (deprecated_write_register_bytes): Rename write_register_bytes.
763 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
764 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
765 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
766 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
767 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
768 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
769 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
770 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
771 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
772 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
773 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
774 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
775 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
776 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
777
fb0cd46e
JB
7782002-11-13 Jim Blandy <jimb@redhat.com>
779
780 * findvar.c (read_var_value): Doc fix.
781
2d28509a
AC
7822002-11-13 Andrew Cagney <cagney@redhat.com>
783
784 * regcache.c (struct regcache): Replace passthough_p with
785 readonly_p.
786 (regcache_xmalloc): Initialize readonly_p.
787 (build_regcache): Initialize readonly_p.
788 (regcache_save): New function.
789 (regcache_restore): New function.
790 (regcache_cpy): Re-implement using regcache_save and
791 regcache_restore.
792 (regcache_raw_read): Update.
793 (regcache_cooked_read): When a read-only cache, checked for cached
794 pseudo register values.
795 (regcache_raw_write): Assert that the cache is not read-only.
796 Remove code handling a non-passthrough cache.
797 * regcache.h (regcache_save): Declare.
798 (regcache_restore): Declare.
799
067df2e5
AC
8002002-11-13 Andrew Cagney <cagney@redhat.com>
801
802 * regcache.c (struct regcache_descr): Add fields
803 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
804 (init_legacy_regcache_descr): Compute the size of a cooked
805 register cache and then assign that to sizeof_raw_registers. Set
806 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
807 (init_legacy_regcache_descr): Ditto.
808
51b1fe4e
AC
8092002-11-13 Andrew Cagney <cagney@redhat.com>
810
811 * regcache.c (register_buffer): Move to near start of file, update
812 description.
813 (regcache_raw_read): Use.
814 (regcache_raw_write): Use.
815 (struct regcache): Rename raw_registers to registers and
816 raw_register_valid_p to register_valid_p.
817 (regcache_xmalloc): Update.
818 (regcache_xfree): Update.
819 (register_buffer): Update.
820 (regcache_cpy): Update.
821 (regcache_cpy_no_passthrough): Update.
822 (regcache_valid_p): Update.
823 (deprecated_grub_regcache_for_registers): Update.
824 (deprecated_grub_regcache_for_register_valid): Update.
825 (set_register_cached): Update.
826 (regcache_raw_write): Update.
827
80b4c677
PM
8282002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
829
830 * p-exp.y (name_not_typename): Use copy_name to
831 set current_type variable for fields of THIS.
832
0f3fafde
DJ
8332002-11-12 Daniel Jacobowitz <drow@mvista.com>
834
835 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
836 * monitor.c (init_base_monitor_ops): Likewise.
837 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
838 * remote-array.c (init_array_ops): Likewise.
839 * remote-e7000.c (init_e7000_ops): Likewise.
840 * remote-es.c (init_es1800_ops): Likewise.
841 (init_es1800_child_ops): Likewise.
842 * remote-rdp.c (init_remote_rdp_ops): Likewise.
843 * remote-sim.c (init_gdbsim_ops): Likewise.
844 * remote-st.c (init_st2000_ops): Likewise.
845 * sol-thread.c (init_sol_core_ops): Likewise.
846 (init_sol_thread_ops): Likewise.
847 * v850ice.c (init_850ice_ops): Likewise.
848 * win32-nat.c (init_child_ops): Likewise.
849 * wince.c (init_child_ops): Likewise.
850
82c0260e
AC
8512002-11-12 Andrew Cagney <ac131313@redhat.com>
852
853 * utils.c (gdb_realpath): Make rp a constant pointer.
854
70d35819
AC
8552002-11-12 Andrew Cagney <ac131313@redhat.com>
856
857 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
858 a constant buffer; cannonicalize_file_name(); realpath() with a
859 pathconf() defined buffer, xstrdup().
860
9835a8b0
AC
8612002-11-12 Andrew Cagney <ac131313@redhat.com>
862
863 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
864 to hang2.C; hang3.c to hang3.C.
865
3f47be5c
EZ
8662002-11-11 Elena Zannoni <ezannoni@redhat.com>
867
868 * findvar.c (read_var_value): Reenable TLS code.
869
8702002-11-11 Elena Zannoni <ezannoni@redhat.com>
871 Jim Blandy <jimb@redhat.com>
872
873 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
874 * target.c (update_current_target): Add
875 to_get_thread_local_address.
876 * target.h (to_get_thread_local_address): Export.
877 (target_get_thread_local_address): Define.
878 (target_get_thread_local_address_p): Define.
879 * thread-db.c: Include solib-svr4.h.
880 (td_thr_tls_get_addr_p): Define.
881 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
882 (thread_db_get_thread_local_address): New function.
883 (init_thread_db_ops): Initialize to_get_thread_local_address.
884 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
885 * configure: Regenerate.
886 * config.in: Regenerate.
887
636b1a6d
DC
8882002-11-11 David Carlton <carlton@math.stanford.edu>
889
890 * linespec.c (set_flags): New function.
891 (decode_line_1): Move code into set_flags.
892
44fe14ab
DC
8932002-11-11 David Carlton <carlton@math.stanford.edu>
894
895 * linespec.c (decode_line_1): Move chunks of code to separate
896 functions.
897 (initialize_defaults): New function.
898 (decode_indirect): New function.
899
e6f181f5
AC
9002002-11-11 Andrew Cagney <ac131313@redhat.com>
901
8971b011
AC
902 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
903 instead of void_code_ptr.
904 (sigtramp_saved_pc): Ditto.
905
e6f181f5
AC
906 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
907 i386_fp_regnum_p.
908
01ad7f36
DJ
9092002-11-10 Daniel Jacobowitz <drow@mvista.com>
910
911 * gdbtypes.h (struct main_type): Move artificial flag out of
912 loc. New member of ``struct field'' named static_kind. Reduce
913 overloaded meaning of bitsize.
914 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
915 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
916 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
917
918 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
919 new fields.
920 (template_to_fixed_record_type, template_to_static_fixed_type)
921 (to_record_with_fixed_variant_part): Likewise.
922 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
923 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
924 * dwarfread.c (struct_type, enum_type): Likewise.
925 * hpread.c (hpread_read_enum_type)
926 (hpread_read_function_type, hpread_read_doc_function_type)
927 (hpread_read_struct_type): Likewise.
928 * mdebugread.c (parse_symbol): Likewise.
929
bf1e52be
AC
9302002-11-10 Andrew Cagney <ac131313@redhat.com>
931
932 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
933 * stack.c (print_frame_info_base): Update.
934 (print_frame_info_base, frame_info): Update.
935 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
936 (sparc_frame_saved_pc): Update.
937 * ada-lang.c (find_printable_frame): Update.
938 * breakpoint.c (deprecated_frame_in_dummy): Update.
939
ce556f85
MK
9402002-11-09 Mark Kettenis <kettenis@gnu.org>
941
942 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
943 defined.
944 (regmap): Extend to cover all registers.
945 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
946 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
947 definitions.
948 (fetch_register, sore_register): Simplify.
949 (old_fetch_inferior_registers, old_store_inferior_registers):
950 Remove functions.
951 (cannot_fetch_register, cannot_store_register): Change
952 implementation to use regmap array to decide which registers
953 cannot be fetched/stored. This removes $orig_eax from the
954 registers that cannot be fetched/stored.
955 (fetch_inferior_registers): Call fetch_register directly instead
956 of calling old_fetch_inferior_registers.
957 (store_inferior_registers): Call store_register directly instead
958 of calling old_store_inferior_registers.
959 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
960 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
961 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
962
932bb524
KD
9632002-11-09 Klee Dienes <kdienes@apple.com>
964
965 * i387-tdep.c (i387_supply_register): When called with NULL as a
966 buffer, mark the register as not provided (to mirror the behavior
967 of supply_register).
968 (i387_supply_fxsave): Ditto.
969 (i387_supply_fsave): Ditto (inherits the behavior from
970 i387_supply_register).
971
ebe68b27
KD
9722002-11-09 Klee Dienes <kdienes@apple.com>
973
974 * blockframe.c (sigtramp_saved_pc): Use
975 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
976 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
977 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
978
15220c65
AC
9792002-11-09 Andrew Cagney <ac131313@redhat.com>
980
981 * frame.c (get_prev_frame): Test prev_p to identify a previously
982 unwound frame. Initialize prev_p.
983 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
984 comment.
985
95adb866
AC
9862002-11-09 Andrew Cagney <ac131313@redhat.com>
987
988 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
989 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
990 more comments. Zap dead code.
991
e71ecd70
MK
9922002-11-09 Mark Kettenis <kettenis@gnu.org>
993
994 * infcmd.c (print_vector_info, print_float_info): Move code that
995 checks whether the target has any registers and whether there is a
996 selected frame up, such that it is also used if a target provides
997 multi-arch definitions of these functions.
998
c525330d
AC
9992002-11-08 Andrew Cagney <ac131313@redhat.com>
1000
72bdd927
AC
1001 * Makefile.in (DESTDIR): Define.
1002 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1003 prefix.
1004
c525330d
AC
1005 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1006 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1007
38c968cf
AC
10082002-11-08 Andrew Cagney <ac131313@redhat.com>
1009
1010 * i386-linux-tdep.c: Include "reggroups.h".
1011 (i386_linux_register_reggroup_p): New function.
1012 (i386_linux_init_abi): Set register_reggroup_p to
1013 i386_linux_register_reggroup_p.
1014 * i386-tdep.h (i386_register_reggroup_p): Declare.
1015 * i386-tdep.c: Include "reggroups.h".
1016 (i386_init_reggroups): New function.
1017 (i386_add_reggroups): New function.
1018 (i386_register_reggroup_p): New function.
1019 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1020 (_initialize_i386_tdep): Call i386_init_reggroups.
1021 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1022 specific reggroups.
1023
19e33363
MK
10242002-11-09 Mark Kettenis <kettenis@gnu.org>
1025
371a6e84
MK
1026 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1027 request that's available in *BSD.
1028
94ba925a
MK
1029 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1030
19e33363
MK
1031 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1032 FDOFF_REGNUM.
1033
8779790c
AC
10342002-11-08 Andrew Cagney <ac131313@redhat.com>
1035
1036 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1037 * dummy-frame.c (find_dummy_frame): Rename
1038 generic_find_dummy_frame, make static. Return the dummy frame
1039 instead of the regcache.
1040 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1041 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1042 (dummy_frame_register_unwind): Rename
1043 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1044 * dummy-frame.h (dummy_frame_register_unwind): Rename
1045 generic_call_dummy_register_unwind.
1046
8674b74f
MK
10472002-11-08 Mark Kettenis <kettenis@gnu.org>
1048
1049 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1050 except the inclusion of "i386/tm-i386.h", to...
1051 * config/i386/nm-i386v42mp.h: ...here.
1052 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1053
4c1e7e9d
AC
10542002-11-08 Andrew Cagney <ac131313@redhat.com>
1055
1056 * Makefile.in (frame.o): Update dependencies.
1057 * blockframe.c (current_frame, frame_obstack_alloc)
1058 (frame_saved_regs_zalloc, get_current_frame)
1059 (set_current_frame, create_new_frame)
1060 (set_unwind_by_pc, get_next_frame)
1061 (flush_cached_frames, reinit_frame_cache)
1062 (frame_saved_regs_register_unwind)
1063 (deprecated_generic_get_saved_register)
1064 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1065 (_initialize_blockframe): Move frame code from here...
1066 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1067 "annotate.h" and "dummy-frame.h".
1068 (_initialize_frame): New function.
1069
921e78cf
JB
10702002-11-08 Jim Blandy <jimb@redhat.com>
1071
1072 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1073 when we finish a function a context.
1074 * buildsym.h (outermost_context_p): New macro.
1075 (Bug analyzed by David Edelsohn.)
1076
9c1412c1
AC
10772002-11-08 Andrew Cagney <ac131313@redhat.com>
1078
1079 * blockframe.c: Include "dummy-frame.h".
1080 (struct dummy_frame, dummy_frame_stack)
1081 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1082 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1083 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1084 (generic_save_call_dummy_addr, generic_pop_current_frame)
1085 (generic_pop_dummy_frame, generic_fix_call_dummy)
1086 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1087 dummy frame code from here...
1088 * dummy-frame.c: ...to here. New file.
1089 * dummy-frame.h: New file.
1090 (generic_call_dummy_register_unwind): Declare.
1091 (generic_find_dummy_frame): Declare.
1092 * Makefile.in (SFILES): Add dummy-frame.c.
1093 (dummy-frame.o): Specify dependencies.
1094 (dummy_frame_h): Define.
1095 (COMMON_OBS): Add dummy-frame.o.
1096 (blockframe.o): Update dependencies.
1097
208d8187
JB
10982002-11-08 Jim Blandy <jimb@redhat.com>
1099
1100 * dwarf2read.c (read_func_scope): Restore local_symbols and
1101 param_symbols after we finish the function context. (Based on a
1102 patch from David Edelsohn.)
1103
413dad4d
DC
11042002-11-08 David Carlton <carlton@math.stanford.edu>
1105
1106 * linespec.c (symbol_found): New function.
1107 (minsym_found): New function.
1108 (decode_line_1): Separate out some code into separate functions.
1109
5512c44a
JB
11102002-11-08 Joel Brobecker <brobecker@gnat.com>
1111
1112 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1113 the benefit of the interix target.
1114 * i386-tdep.h (i386_frameless_signal_p): Declare.
1115
1b33ef47
AC
11162002-11-08 Andrew Cagney <ac131313@redhat.com>
1117
1118 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1119 declaration that snuck in from change below.
1120
23a34459
AC
11212002-11-06 Andrew Cagney <cagney@redhat.com>
1122
1123 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1124 all callers.
1125 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1126 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1127 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1128 (i386_mxcsr_regnum_p): new function. Use instead of
1129 MXCSR_REGNUM_P.
1130 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1131 (i386_sse_regnum_p): Declare.
1132 (i386_mxcsr_regnum_p): Declare.
1133 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1134 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1135 (IS_FP_REGNUM): Update definition.
1136 (IS_FPU_CTRL_REGNUM): Update definition..
1137 (IS_SSE_REGNUM): Update definition..
1138 * i386v-nat.c (register_u_addr): Update.
1139 * go32-nat.c (fetch_register): Update.
1140 (store_register): Update.
1141
d709c020
JB
11422002-11-07 Joel Brobecker <brobecker@gnat.com>
1143
1144 Preparation work to convert the hppa targets to multiarch partial.
1145
1146 * hppa-tdep.c: Add new functions replacing macro bodies from
1147 config/pa/tm-hppa.h. These function will be used to initialize
1148 the gdbarch structure. Import some comments from tm-hppa.h,
1149 and place them where appropriate, to avoid loosing them when
1150 we cleanup this file.
1151 (hppa_reg_struct_has_addr): New function.
1152 (hppa_inner_than): New function.
1153 (hppa_stack_align): New function.
1154 (hppa_pc_requires_run_before_use): New function.
1155 (hppa_instruction_nullified): New function.
1156 (hppa_register_byte): New function.
1157 (hppa_register_virtual_type): New function.
1158 (hppa_store_struct_return): New function.
1159 (hppa_cannot_store_register): New function.
1160 (hppa_frame_args_address): New function.
1161 (hppa_frame_locals_address): New function.
1162 (hppa_smash_text_address): New function.
1163 (hppa_coerce_float_to_double): New function. Requires the inclusion
1164 of "language.h".
1165
1166 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1167
1168 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1169 gdbarch-eligible macro to a call to the new associated function
1170 created in hppa-tdep.c.
1171 (INNER_THAN): Likewise.
1172 (STACK_ALIGN): Likewise.
1173 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1174 (INSTRUCTION_NULLIFIED): Likewise.
1175 (REGISTER_BYTE): Likewise.
1176 (REGISTER_VIRTUAL_TYPE): Likewise.
1177 (STORE_STRUCT_RETURN): Likewise.
1178 (CANNOT_STORE_REGISTER): Likewise.
1179 (FRAME_ARGS_ADDRESS): Likewise.
1180 (FRAME_LOCALS_ADDRESS): Likewise.
1181 (SMASH_TEXT_ADDRESS): Likewise.
1182 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1183 (ABOUT_TO_RETURN): Delete, as no longer used.
1184
83c31e7d
FN
11852002-11-07 Fernando Nasser <fnasser@redhat.com>
1186
1187 * printcmd.c (disassemble_command): Remove obsolete function.
1188 (_initialize_printcmd): Do not create disassemble command here.
1189 * cli/cli-cmds.c (disassemble_command): New function. Implements
1190 disassemble command.
1191 (init_cli_cmds): Create disassemble command here instead.
1192
0ec30a36
AC
11932002-11-07 Andrew Cagney <ac131313@redhat.com>
1194
1195 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1196
e600bd34
AC
11972002-11-07 Andrew Cagney <ac131313@redhat.com>
1198
1199 * regcache.h (regcache_cooked_read_using_offset_hack)
1200 (regcache_cooked_write_using_offset_hack): Delete declarations.
1201 (register_changed): Delete declaration.
1202 * regcache.c (regcache_cooked_read_using_offset_hack)
1203 (regcache_cooked_write_using_offset_hack): Delete functions.
1204 (cooked_xfer_using_offset_hack): Delete function.
1205 (register_changed): Delete function.
1206
568f8739
JB
12072002-11-07 Jim Blandy <jimb@redhat.com>
1208
1209 * macroscope.c: #include "complaints.h".
1210 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1211 but not in the macro table.
1212 * Makefile.in (macroscope.o): Record dependency.
1213
b0718b7b
JB
12142002-11-07 Joel Brobecker <brobecker@gnat.com>
1215
1216 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1217
2b9e5f3f
AC
12182002-11-07 Andrew Cagney <ac131313@redhat.com>
1219
1220 * regcache.c (deprecated_registers_fetched): Update.
1221 * regcache.h (deprecated_registers_fetched): Rename
1222 registers_fetched.
1223 * remote-vxsparc.c (vx_read_register): Update.
1224 * remote-vxmips.c (vx_read_register): Update.
1225 * remote-vx68.c (vx_read_register): Update.
1226 * irix5-nat.c (fetch_core_registers): Update.
1227 * mipsm3-nat.c (fetch_inferior_registers): Update.
1228 * sun3-nat.c (fetch_inferior_registers): Update.
1229 * symm-nat.c (fetch_inferior_registers): Update.
1230 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1231 (fetch_core_registers): Update.
1232 (fetch_kcore_registers): Update.
1233 * mips-nat.c (fetch_inferior_registers): Update.
1234 * corelow.c (get_core_registers): Update.
1235 * a68v-nat.c (fetch_inferior_registers): Update.
1236
e6e68f1f
JB
12372002-11-06 Joel Brobecker <brobecker@gnat.com>
1238
1239 Put in place the framework necessary for multiarching the hppa targets.
1240 * hppa-tdep.c (hppa_gdbarch_init): New function.
1241 (hppa_dump_tdep): New function.
1242 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1243 tdep structure dumper.
1244 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1245 until the multi-arching conversion has partially been completed.
1246
492254e9
AC
12472002-11-06 Andrew Cagney <ac131313@redhat.com>
1248
1249 * valops.c (value_assign): Merge lval_register case into
1250 lval_reg_frame_relative. Use frame_register and
1251 regcache_cooked_write instead of get_saved_register and
1252 write_register_bytes. After flushing the register cache, try to
1253 re-select the selected frame.
1254
8262ee23
AC
12552002-11-06 Andrew Cagney <ac131313@redhat.com>
1256
1257 * regcache.h (deprecated_register_valid): Rename register_valid.
1258 * regcache.c: Update.
1259 * ia64-aix-nat.c: Update.
1260 * i386gnu-nat.c: Update.
1261 * alpha-nat.c: Update.
1262 * sparc-nat.c: Update.
1263 * lynx-nat.c: Update.
1264 * remote-mips.c: Update.
1265
4facf7e8
JB
12662002-11-06 Joel Brobecker <brobecker@gnat.com>
1267
1268 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1269 to end of file, to be more consistent with the pratice followed
1270 by other targets.
1271
f9418c0f
AC
12722002-11-06 Andrew Cagney <ac131313@redhat.com>
1273
1274 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1275 (print_float_info): Print registers in float_reggroup.
1276 (print_vector_info): Print registers in vector_reggroup.
1277 (default_print_registers_info): When all, print registers in
1278 all_reggroup. Otherwize, print registers in general_reggroup.
1279 (registers_info): Rewrite. Add support for register groups.
1280 Eliminate a goto.
1281
3fe235a7
EZ
12822002-11-06 Elena Zannoni <ezannoni@redhat.com>
1283
1284 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1285 ages.
1286 (symtab_symbol_info): Remove eons old ifdeffed out code.
1287 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1288 command.
1289
ef944135
TR
12902002-11-06 Theodore A. Roth <troth@openavr.org>
1291
1292 * c-exp.y: Add missing semi-colons.
1293 * f-exp.y: Add missing semi-colons.
1294 * m2-exp.y: Add missing semi-colons.
1295 * p-exp.y: Add missing semi-colons.
1296 Add empty action to start rule to avoid a type clash error when
1297 building with bison >= 1.50.
1298
f8302a57
JB
12992002-11-06 Jim Blandy <jimb@redhat.com>
1300
1301 * macrotab.h (struct macro_source_file): Doc fix.
1302
6e382aa3
JJ
13032002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1304
1305 * varobj.c (child_exists, cplus_number_of_children): Change
1306 STREQ macro references to strcmp.
1307 (cplus_name_of_child): Change code to handle the fact that
1308 fields are not necessarily contiguous with regards to their
1309 access control. This is a fix for PR gdb/792.
1310
a216a322
AC
13112002-11-05 Andrew Cagney <ac131313@redhat.com>
1312
1313 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1314 * gdbarch.h, gdbarch.c: Regnerate.
1315 * frame.h (frame_register): Declare.
1316 * frame.c (frame_register): New function.
1317 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1318 GET_SAVED_REGISTER, otherwize call
1319 generic_unwind_get_saved_register.
1320 (frame_register_read): Use frame_register instead of
1321 get_saved_register.
1322
7d5b6fdd
EZ
13232002-11-05 Elena Zannoni <ezannoni@redhat.com>
1324
1325 From Jim Ingham <jingham@apple.com>:
1326 * event-top.c (gdb_disable_readline): New function.
1327 (_initialize_event_loop): Move comment.
1328
b7c64260
EZ
13292002-11-05 Elena Zannoni <ezannoni@redhat.com>
1330
1331 * event-loop.c (start_event_loop): Add comment.
1332 Update copyright.
1333
c2e1b8f2
AC
13342002-11-05 Andrew Cagney <ac131313@redhat.com>
1335
1336 * infcmd.c (default_print_registers_info): Do not call
1337 PRINT_REGISTER_HOOK.
1338
87647bb0
AC
13392002-11-05 Andrew Cagney <ac131313@redhat.com>
1340
1341 * sparc-tdep.c (sparc_print_register_hook): Make static.
1342 (sparc_print_registers_info): New function.
1343 (sparc_do_registers_info): New function.
1344 (sparclet_print_registers_info): New function.
1345 (sparclet_do_registers_info): New function.
1346 (do_sparc_print_registers_info): New function.
1347 (sparc_print_registers): New static function, clone of infcmd.c's
1348 default_print_registers_info.
1349 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1350 (sparclet_do_registers_info): Declare.
1351 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1352 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1353 Re-define.
1354 (sparc_do_registers_info): Declare.
1355 (PRINT_REGISTER_HOOK): Delete macro.
1356 (sparc_print_register_hook): Delete declaration.
1357
8155455b
DC
13582002-11-05 David Carlton <carlton@math.stanford.edu>
1359
1360 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1361 functions.
1362 (lookup_symbol_aux_local): New function.
1363 (lookup_symbol_aux_symtabs): New function.
1364 (lookup_symbol_aux_psymtabs): New function.
1365
29924310
DC
13662002-11-05 David Carlton <carlton@math.stanford.edu>
1367
1368 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1369 previous values of 'objfile' and 'block'.
1370
cc303028
PM
13712002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1372
1373 * values.c (value_change_enclosing_type): Set
1374 enclosing_type field correctly also for the case where
1375 more memory needs to be allocated.
1376
1d70089a
MK
13772002-11-03 Mark Kettenis <kettenis@gnu.org>
1378
f16a25ae
MK
1379 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1380 of puts_filtered.
1381
1d70089a
MK
1382 * i387-tdep.c (i387_print_float_info): Replace calls to
1383 register_read and deprecated_read_register_gen with calls to
1384 frame_register_read, and make the necessary adjustments to the
1385 surrounding code.
1386
7e20f3fb
AC
13872002-11-02 Andrew Cagney <ac131313@redhat.com>
1388
1389 * gdbarch.sh (register_reggroup_p): Allow default value.
1390 * gdbarch.h, gdbarch.c: Regenerate.
1391
192dbe33
AC
13922002-11-02 Andrew Cagney <ac131313@redhat.com>
1393
1394 * regcache.h: Add coment indicating replacements for deprecated
1395 functions.
1396
b59ff9d5
AC
13972002-11-02 Andrew Cagney <cagney@redhat.com>
1398
1399 * reggroups.h, reggroups.c: New files.
1400 * regcache.c: Include "reggroups.h".
1401 (enum regcache_dump_what): Add `regcache_dump_groups'.
1402 (regcache_dump): Contract size of the "Type" column. When
1403 specified, dump the register's groups.
1404 (maintenance_print_register_groups): New function.
1405 (_initialize_regcache): Add command `maint print register-groups'.
1406 * Makefile.in (COMMON_OBS): Add reggroups.o
1407 (SFILES): Add reggroups.c.
1408 (reggroups_h): Define.
1409 (regcache.o, gdbarch.o): Update dependencies.
1410 (reggroups.o): Specify dependencies.
1411 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1412 Add opaque declaration for `struct reggroup' in generated .h file.
1413 Include "reggroups.h" in generated .c file.
1414 gdbarch.h, gdbarch.c: Re-generate.
1415
4caf0990
AC
14162002-11-02 Andrew Cagney <cagney@redhat.com>
1417
1418 * regcache.h (deprecated_read_register_gen): Rename
1419 read_register_gen.
1420 (deprecated_write_register_gen): Rename write_register_gen.
1421 * i387-tdep.c: Update.
1422 * x86-64-linux-nat.c: Update
1423 * wince.c: Update.
1424 * thread-db.c: Update.
1425 * win32-nat.c: Update.
1426 * mips-tdep.c: Update.
1427 * d10v-tdep.c: Update.
1428 * cris-tdep.c: Update.
1429 * remote-sim.c: Update.
1430 * remote-rdi.c: Update.
1431 * remote-rdp.c: Update.
1432 * frame.c: Update.
1433 * target.c: Update.
1434 * blockframe.c: Update.
1435 * x86-64-tdep.c: Update.
1436 * xstormy16-tdep.c: Update.
1437 * sh-tdep.c: Update.
1438 * s390-tdep.c: Update.
1439 * rs6000-tdep.c: Update.
1440 * sparc-tdep.c: Update.
1441 * i386-tdep.c: Update.
1442 * dwarf2cfi.c: Update.
1443 * regcache.c: Update.
1444
7a7adcdf
JB
14452002-11-01 Joel Brobecker <brobecker@gnat.com>
1446
1447 New interix-specific files:
1448 * config/i386/nm-interix.h: New file.
1449 * config/i386/interix.mh: New file.
1450 * config/i386/interix.mt: New file.
1451 * i386-interix-nat.c: New file.
1452 * i386-interix-tdep.c: New file.
1453
bdcdd535
AC
14542002-11-01 Andrew Cagney <cagney@redhat.com>
1455
1456 * frame.h (deprecated_generic_get_saved_register): Rename
1457 generic_get_saved_register.
1458 * blockframe.c (deprecated_generic_get_saved_register): Update.
1459 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1460 (xstormy16_frame_saved_register): Update.
1461 * sh-tdep.c (sh_gdbarch_init): Update.
1462 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1463 * ia64-tdep.c (ia64_get_saved_register): Update.
1464 * cris-tdep.c (cris_gdbarch_init): Update.
1465 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1466 * arm-tdep.c (arm_gdbarch_init): Update.
1467
2a4b7c45
DJ
14682002-10-31 Daniel Jacobowitz <drow@mvista.com>
1469
1470 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1471
ef17e74b
DJ
14722002-10-31 Daniel Jacobowitz <drow@mvista.com>
1473
1474 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1475 trampolines in sigaction.
1476
4904ba5b
AC
14772002-10-31 Andrew Cagney <cagney@redhat.com>
1478
1479 * h8300-tdep.c: Include "gdb_assert.h".
1480 (h8300_print_register): Add gdbarch, file and frame parameters.
1481 Use frame_read_unsigned_register to read the register's value.
1482 Use fprintf_filtered to display output.
1483 (h8300_print_registers_info): Replace h8300_do_registers_info.
1484 (h8300_gdbarch_init): Set print_registers_info.
1485
f908a0eb
AC
14862002-10-31 Andrew Cagney <cagney@redhat.com>
1487
1488 * frame.c (frame_read_unsigned_register): New function.
1489 (frame_read_signed_register): New function.
1490 * frame.h (frame_read_unsigned_register): Declare.
1491 (frame_read_signed_register): Declare.
1492
c5646e11
AC
14932002-10-31 Andrew Cagney <cagney@redhat.com>
1494
1495 * h8500-tdep.c (h8500_print_registers_info): New static function,
1496 clone of infcmd.c's default_print_registers_info.
1497 (h8500_do_registers_info): New funtion.
1498 (h8500_print_register_hook): Rename print_register_hook, make
1499 static.
1500
1501 * config/h8500/tm-h8500.h: Update copyright.
1502 (DEPRECATED_DO_REGISTERS_INFO): Define.
1503 (h8500_do_registers_info: Declare.
1504 (PRINT_REGISTER_HOOK): Delete macro.
1505 (print_register_hook): Delete function.
1506
0bdd672b
AC
15072002-10-31 Andrew Cagney <cagney@redhat.com>
1508
1509 * z8k-tdep.c (z8k_print_register_hook): Make static.
1510 (z8k_print_registers_info): New static function, clone of
1511 infcmd.c's default_print_registers_info.
1512 (z8k_do_registers_info): New function. Wrap
1513 z8k_print_registers_info.
1514 * config/z8k/tm-z8k.h: Update copyright.
1515 (PRINT_REGISTER_HOOK): Delete macro.
1516 (z8k_print_register_hook): Delete declaration.
1517 (DEPRECATED_DO_REGISTERS_INFO): Define.
1518 (z8k_do_registers_info): Declare.
1519
bf9c25dc
JB
15202002-10-30 Joel Brobecker <brobecker@gnat.com>
1521
1522 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1523 as this is already provided by value.h, and was actually causing
1524 a compilation error because of a conflict in parameter type
1525 declaration due to a missing const keyword.
1526 (low_text_segment_addres): Fix a compilation warning.
1527
2c665b51
DJ
15282002-10-29 Daniel Jacobowitz <drow@mvista.com>
1529
1530 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1531 registers without a name.
1532 (mips_linux_cannot_store_register): Don't store registers without
1533 a name.
1534
e70ea697
DC
15352002-10-28 David Carlton <carlton@math.stanford.edu>
1536
1537 * symtab.c (find_addr_symbol): Delete. (It was already commented
1538 out.)
1539 * symtab.h: Delete prototype for find_addr_symbol.
1540
903ad3a6
AC
15412002-10-26 Andrew Cagney <cagney@redhat.com>
1542
1543 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1544 DO_REGISTERS_INFO.
1545 gdbarch.h, gdbarch.c: Re-generate.
1546 * infcmd.c (default_print_registers_info): Update reference.
1547 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1548 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1549 * sh-tdep.c (sh_gdbarch_init): Ditto.
1550 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1551 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1552
ab91194c
MK
15532002-10-26 Mark Kettenis <kettenis@gnu.org>
1554
e3033f15
MK
1555 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1556 cfi_init_extra_frame_info.
1557 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1558 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1559
b83b026c
MK
1560 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1561 target where necessary. Add more comments and remove the ones
1562 that don't provide any useful information.
1563
267bf4bb
MK
1564 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1565 deprecated_read_register_dummy with
1566 frame_unwind_unsigned_register.
1567
751f1375
MK
1568 * i386-tdep.c (i386_extract_struct_value_address): Use
1569 regcache_raw_read_unsigned instead of
1570 regcache_cooked_read_unsigned since we know that the register
1571 we're reading isn't a pseudo register. Rename variable 'val' into
1572 the more descriptive 'addr'.
1573
26abbdc4
MK
1574 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1575 (x86_64_push_return_address): Add comment.
1576 (x86_64_pop_frame): Make static.
1577 (examine_argument): Clarify comment.
1578 (x86_64_skip_prologue): Make prolog_expact variable static.
1579
9f1549cc
MK
1580 * dwarf2cfi.c: Fix some formatting problems.
1581 (context_cpy, read_encoded_pointer): Clarify comments.
1582
ab91194c
MK
1583 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1584 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1585 i386 target back into x86_64_gdbarch_init. Add some comments and
1586 remove meaningless ones.
1587
72367fb4
AC
15882002-10-25 Andrew Cagney <cagney@redhat.com>
1589
1590 * complaints.h (struct deprecated_complaint): Rename `struct
1591 complaint'.
1592 * complaints.c (complain): Update.
1593 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1594 incorrect comment indicating that "symfile.h" was being included
1595 for the `struct complaint' definition.
1596 * remote-vx.c: Update.
1597 * objc-lang.c: Update.
1598 * xcoffread.c: Update.
1599 * hpread.c: Update.
1600 * mdebugread.c: Update.
1601 * stabsread.c: Update.
1602 * dwarf2read.c: Update.
1603 * dwarfread.c: Update.
1604 * elfread.c: Update.
1605 * coffread.c: Update.
1606 * stabsread.h: Update.
1607 * dbxread.c: Update.
1608 * buildsym.c: Update.
1609 * gdbtypes.c: Update.
1610 * macrotab.c: Update.
1611
1f2baacc
MK
16122002-10-25 Mark Kettenis <kettenis@gnu.org>
1613
0c1a73d6
MK
1614 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1615 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1616 (x86_64_init_abi): ...new function.
1617
6aee4d54 1618 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
1619 * i386v-nat.c: Include "i386-tdep.h".
1620
8f9cbe01
AC
16212002-10-25 Andrew Cagney <cagney@redhat.com>
1622
5f11f355
AC
1623 * gdbtypes.c (address_space_name_to_int): Update.
1624 (address_space_int_to_name): Update.
1625 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1626 multi-arch predicate.
1627 (address_class_name_to_type_flags): Ditto.
1628 * gdbarch.h, gdbarch.c: Re-generate.
1629
8f9cbe01
AC
1630 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1631
e8d96a5d
MH
16322002-10-24 Martin M. Hunt <hunt@redhat.com>
1633
1634 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1635
fe39c653
EZ
16362002-10-24 Elena Zannoni <ezannoni@redhat.com>
1637
1638 * symtab.h (INIT_SAL): Delete macro.
1639 (init_sal): Export.
1640 * symtab.c (init_sal): New function.
1641
1642 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1643 to init_sal function call.
1644 (find_sal_from_funcs_and_line): Ditto.
1645 (all_sals_for_line): Ditto.
1646 * breakpoint.c (create_internal_breakpoint): Ditto.
1647 (create_fork_vfork_event_catchpoint): Ditto.
1648 (create_exec_event_catchpoint): Ditto.
1649 (parse_breakpoint_sals): Ditto.
1650 (watch_command_1): Ditto.
1651 (handle_gnu_4_16_catch_command): Ditto.
1652 (clear_command): Ditto.
1653 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1654 * infcmd.c (run_stack_dummy): Ditto.
1655 * infrun.c (process_event_stop_test): Ditto.
1656 (check_sigtramp2): Ditto.
1657 (step_over_function): Ditto.
1658 * linespec.c (decode_line_2): Ditto.
1659 (decode_line_1): Ditto.
1660 * source.c (line_info): Ditto.
1661 * symtab.c (find_pc_sect_line): Ditto.
1662
baed091b
ML
16632002-10-24 Michal Ludvig <mludvig@suse.cz>
1664
1665 * dwarf2cfi.c (struct context)
1666 (struct context_reg): Moved to dwarf2cfi.h
1667 (context_alloc, frame_state_alloc, context_cpy):
1668 Made extern instead of static, removed prototypes.
1669 * dwarf2cfi.h (struct context)
1670 (struct context_reg): New, moved from dwarf2cfi.c
1671 (context_alloc, frame_state_alloc, context_cpy):
1672 New prototypes.
1673 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1674 Changed from static to extern.
1675 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1676 (LINUX_SIGCONTEXT_FP_OFFSET)
1677 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1678 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1679 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1680 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1681 set_gdbarch_*() calls now use x86-64 specific functions
1682 instead of DWARF2 CFI ones.
1683 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1684 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1685 (x86_64_init_extra_frame_info): New prototypes.
1686
c38da1af
DC
16872002-10-23 David Carlton <carlton@math.stanford.edu>
1688
1689 * linespec.c: #include "parser-defs.h".
1690 Delete prototype for find_template_name_end.
1691 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1692
fb9b6b35
JJ
16932002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1694
1695 * NEWS: add recent mi fixes.
1696 * varobj.c (struct varobj): Add new "updated" flag.
1697 (new_variable): Default "updated" flag to 0.
1698 (varobj_set_value): Set "updated" flag to 1 if value
1699 changes.
1700 (varobj_update): Check varobj "updated" flag before
1701 comparing old and refreshed values. Fix for
1702 PR gdb/702.
1703
8da065d5
DC
17042002-10-23 David Carlton <carlton@math.stanford.edu>
1705
1706 * parse.c (parse_exp_1): Use BLOCK_START.
1707 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1708 SYMBOL_BLOCK_VALUE.
1709 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1710
87f2f08c
DC
17112002-10-23 David Carlton <carlton@math.stanford.edu>
1712
1713 * symtab.c: Delete cplusplus_hint.
1714 Delete prototype for find_template_name_end.
1715
88cda038
EZ
17162002-10-23 Elena Zannoni <ezannoni@redhat.com>
1717
1718 * symtab.h: Update comment.
1719
2625d86c
MS
17202002-10-23 Michael Snyder <msnyder@redhat.com>
1721
1722 * printcmd.c (address_info): Restore quotes in output.
1723 * valops.c (value_of_local): Restore quotes in error message.
1724
9cc0d196
EZ
17252002-10-23 Elena Zannoni <ezannoni@redhat.com>
1726
1727 * symtab.c (symbol_demangled_name): New function.
1728 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1729 turning most of it into a function.
1730 (symbol_demangled_name): Export.
1731
19de93d0
MS
17322002-10-23 Michael Snyder <msnyder@redhat.com>
1733
1734 * valops.c (value_of_local): Restore quotes in error message.
1735
89aad1f9
EZ
17362002-10-23 Elena Zannoni <ezannoni@redhat.com>
1737
1738 * symtab.c (symbol_init_language_specific): New function.
1739 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1740 turning most of it into a function.
1741 (symbol_init_language_specific): Export.
1742
d9fa45fe
DC
17432002-10-23 David Carlton <carlton@math.stanford.edu>
1744
1745 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1746 (dwarf_attr_name): Ditto.
1747 (dwarf_type_encoding_name): Ditto.
1748 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1749 (process_die): Handle DW_TAG_namespace,
1750 DW_TAG_imported_declaration, DW_TAG_imported_module.
1751 (read_namespace): New function.
1752
1045b512
JB
17532002-10-22 Joel Brobecker <brobecker@gnat.com>
1754
1755 * configure.in: Define NEW_PROC_API on Interix too.
1756 * configure: Regenerate.
1757
17582002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
1759
1760 * configure: Regenerate using the proper version of autoconf.
1761
3987b9d4
EZ
17622002-10-21 Elena Zannoni <ezannoni@redhat.com>
1763
1764 * findvar.c (read_var_value): Temporarily disable TLS code, until
1765 complete TLS support is added.
1766
9d774e44
EZ
17672002-10-21 Jim Blandy <jimb@redhat.com>
1768 Elena Zannoni <ezannoni@redhat.com>
1769
1770 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1771 for thread local storage locations.
1772 (struct symbol): Add objfile field.
1773 (SYMBOL_OBJFILE): Define.
1774 * dwarf2read.c (is_thread_local): New static variable.
1775 (new_symbol): If variable is in thread local fill in address class
1776 and objfile appropriately.
1777 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1778 stack operation.
1779 * printcmd.c (address_info): Print the information for thread
1780 local storage variable.
1781 * findvar.c (read_var_value): In case of thread local variable,
1782 defer to the target vector code to compute address.
1783
bc4a16ae
EZ
17842002-10-21 Elena Zannoni <ezannoni@redhat.com>
1785
1786 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1787 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1788
407caf07
EZ
17892002-10-21 Elena Zannoni <ezannoni@redhat.com>
1790
1791 * symtab.h (address_class): Rename
1792 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1793 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1794 * printcmd.c (address_info): Ditto.
1795 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1796
005328e3
MK
17972002-10-20 Mark Kettenis <kettenis@gnu.org>
1798
afdb036a
MK
1799 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1800 DBREG_DRX macro to acces debug registers.
1801
ca02e098
MK
1802 * Makefile.in (i386obsd-tdep.o): New target.
1803
03cc47f7
MK
1804 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1805 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1806
005328e3
MK
1807 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1808 * config/i386/obsd.mt: New file.
1809 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1810 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1811 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1812 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1813 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1814 * i386obsd-tdep.c: New file.
1815
9c96f9f2
AF
18162002-10-19 Adam Fedor <fedor@gnu.org>
1817
1818 * objc-exp.y (name_not_typename): Fix invalid comment.
1819
ce1ed485
MK
18202002-10-20 Mark Kettenis <kettenis@gnu.org>
1821
1822 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1823 to allocate partial syms and macro byte caches.
1824
1efc7aaa
DC
18252002-10-18 David Carlton <carlton@math.stanford.edu>
1826
1827 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1828
7e1d63ec
AF
18292002-10-18 Adam Fedor <fedor@gnu.org>
1830
1831 * stabsread.c (find_name_end): New function.
1832 (define_symbol): Use it.
1833
6e8d29a9
DJ
18342002-10-18 Daniel Jacobowitz <drow@mvista.com>
1835
1836 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1837 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1838 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1839 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1840
1efc7aaa 18412002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
1842
1843 * symfile.h: Add opaque declaration for struct obstack.
1844 Declare obsavestring to take a const char *.
1845 * symfile.c (obsavestring): Make first argument a const char *.
1846
1aeae86e
AF
18472002-10-16 Adam Fedor <fedor@gnu.org>
1848
1849 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1850 names when matching breakpoints in current file.
1851
8b2dbe47
KB
18522002-10-16 Kevin Buettner <kevinb@redhat.com>
1853
1854 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1855 (read_tag_pointer_type): Add address class support.
1856 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1857 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1858 New methods.
1859 * gdbarch.h, gdbarch.c: Regenerate.
1860 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1861 (make_type_with_address_space, recursive_type_dump): Add address
1862 class support.
1863 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1864 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1865 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1866
74451869
KD
18672002-10-16 Klee Dienes <kdienes@apple.com>
1868
1869 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1870 to get the last character of a char[] buffer, not
1871 name[sizeof(vptr_name)-1].
1872
ff4cb3e8
AF
18732002-10-14 Adam Fedor <fedor@gnu.org>
1874
1875 * symtab.h: New objc_specific struct.
1876 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1877 (SYMBOL_DEMANGLED_NAME): Likewise.
1878
da2cf7e0
AF
18792002-10-14 Adam Fedor <fedor@gnu.org>
1880
1881 * symfile.c (init_filename_language_table): Add ObjC file extension.
1882
4a351cef
AF
18832002-10-14 Adam Fedor <fedor@gnu.org>
1884
1885 * utils.c (puts_filtered_tabular): New function.
1886 (fprintf_symbol_filtered): Get ObjC demangled name.
1887 * defs.h (puts_filtered_tabular): Declared.
1888
9750e763
KB
18892002-10-14 Kevin Buettner <kevinb@redhat.com>
1890
1891 * c-lang.h (c_type_print_varspec_prefix): Delete.
1892 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1893 ``need_post_space'' parameter. Adjust all callers.
1894
eee771c1
DJ
18952002-10-14 Daniel Jacobowitz <drow@mvista.com>
1896
1897 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1898 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1899 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1900 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1901
46c82446
AF
19022002-10-13 Adam Fedor <fedor@gnu.org>
1903
1904 * source.c (print_source_lines): Update comments.
1905
d069f99d
AF
19062002-10-13 Adam Fedor <fedor@gnu.org>
1907
1908 * valops.c (value_of_local): New function.
1909 (value_of_this): Use it.
1910 * value.h (value_of_local): Declared.
1911
53c551b7
AF
19122002-10-13 Adam Fedor <fedor@gnu.org>
1913
1914 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1915 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1916
eb392fbf
AF
19172002-10-12 Adam Fedor <fedor@gnu.org>
1918
1919 * language.c (binop_result_type): Add language_objc to case.
1920 (integral_type): Likewise.
1921 (character_type): Likewise.
1922 (string_type): Likewise.
1923 (boolean_type): Likewise.
1924 (structured_type): Likewise.
1925 (binop_type_check): Likewise.
1926
e2b23ee9
AF
19272002-10-11 Adam Fedor <fedor@gnu.org>
1928
1929 * printcmd.c (address_info): Print 'self' for ObjC.
1930
b01ab485
AF
19312002-10-11 Adam Fedor <fedor@gnu.org>
1932
1933 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1934 OP_SELF.
1935
806e6073
AF
19362002-10-11 Adam Fedor <fedor@gnu.org>
1937
1938 * language.h (CAST_IS_CONVERSION): Add language_objc.
1939
50f85cdf
AF
19402002-10-11 Adam Fedor <fedor@gnu.org>
1941
1942 * defs.h (enum language): Add language_objc.
1943
0d540cdf
KD
19442002-10-11 Klee Dienes <kdienes@apple.com>
1945
69266111 1946 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
1947 * gdbcore.h (read_memory_typed_address): Add prototype.
1948 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1949 to read a value destined for a CORE_ADDR, not read_memory_integer.
1950 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1951 (f77_get_dynamic_lowerbound): Ditto.
1952
d5dc7960
MH
19532002-10-11 Martin M. Hunt <hunt@redhat.com>
1954
1955 * utils.c (string_to_core_addr): After turning string into
1956 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1957 which will do necessary sign-extension, etc.
1958
8343f86c
DJ
19592002-10-11 Daniel Jacobowitz <drow@mvista.com>
1960
1961 * c-exp.y (THIS): Delete token and grammar rule.
1962 (yylex): Don't return THIS.
1963 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1964 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1965 * demangle.c (cplus_markers): Update comment. Put '$'
1966 first. Remove CPLUS_MARKER.
1967 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1968 * jv-exp.y (THIS): Delete token and grammar rule.
1969 (yylex): Don't return THIS.
1970 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1971 * objc-exp.y (THIS): Delete token and grammar rule.
1972 (yylex): Don't return THIS.
1973 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1974 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1975 (read_member_functions): Likewise for opname.
1976 (read_tilde_fields): Use is_cplus_marker.
1977
1978 * defs.h (CPLUS_MARKER): Don't define.
1979 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1980 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1981 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1982 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1983 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1984
1985 * config/i386/tm-i386v4.h: Delete file.
1986 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1987 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1988 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1989 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1990 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1991 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1992 * config/i386/i386v4.mt (TM_FILE): Likewise.
1993 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1994
967c0d83
MM
19952002-10-10 Marko Mlinar <markom@opencores.org>
1996
1997 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1998 accidentially not commited 2002-10-09
1999 * gdbarch.h, gdbarch.c: Re-generate.
2000
f74fa174
MM
20012002-10-09 Marko Mlinar <markom@opencores.org>
2002
2003 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2004 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2005 * gdbarch.h, gdbarch.c: Re-generate.
2006
57349743
JB
20072002-10-08 Petr Sorfa <petrs@caldera.com>
2008
2009 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2010
2011 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2012 so we can work on more than one compilation unit at a time. This
2013 helps prepare GDB to handle inter-CU die references.
2014 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2015 the code to be defined before struct comp_unit_head.
2016 (comp_unit_head): Added new members - offset, cu_head,
2017 begin_die, next and dwarf2_abbrevs.
2018 (dwarf2_abbrevs): Removed single static var; now member of
2019 struct comp_unit_head.
2020 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2021 members.
2022 (psymtab_to_symtab_1): Changed to work with the new
2023 struct comp_unit_head.
2024 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2025 constructs the dwarf2_abbrevs[] inside the cu_header.
2026 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2027 dwarf2_abbrev table to clean up.
2028 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2029 handling of dwarf2_abbrevs inside the cu_header.
2030 (read_partial_die): Now supports the call to the new
2031 dwarf2_lookup_abbrev.
2032 (read_full_die): Now supports the call to the new
2033 dwarf2_lookup_abbrev.
2034
4092aadb
CF
20352002-10-06 Christopher Faylor <cgf@redhat.com>
2036
2037 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2038 insure that shell variables, such as "transformed_name" are propagated
2039 to later shell statements in rule.
2040
af0b2512
MK
20412002-10-06 Mark Kettenis <kettenis@gnu.org>
2042
2043 * config/i386/nm-i386sco.h: Add protection against
2044 multiple-inclusion. Include "i386/nm-i386v.h".
2045 (REGISTER_U_ADDR): Remove define.
2046 (i386_register_u_addr): Remove prototype.
2047
d6020d45
MS
20482002-10-04 Michael Snyder <msnyder@redhat.com>
2049
2050 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2051 before treating it as a single-step event.
2052
7248f48e
AF
20532002-10-03 Adam Fedor <fedor@gnu.org>
2054
2055 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2056 (objc_demangle): Remove assignment in if statements, Replace
2057 free with xfree.
2058 (add_msglist): Likewise.
2059 (end_msglist): Likewise.
2060 (complare_selectors): Likewise.
2061 (selectors_info): Likewise.
2062 (compare_classes): Likewise.
2063 (classes_info): Likewise.
2064 (print_object_command): Likewise.
2065 (find_objc_msgcall_submethod): Replace PTR with void *.
2066 * objc-lang.h: Remove check for __STDC__.
2067
52c6a6ac
JJ
20682002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2069
2070 * ui-out.h (ui_out_field_fmt_int): New prototype.
2071 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2072 of field width and alignment.
2073 * stack.c (print_frame_info_base): When printing frame level, use
2074 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2075 PR gdb/192
2076
7e3cec17
JJ
20772002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2078
2079 * MAINTAINERS: Add self to Write After Approval list.
2080
a58dd373
EZ
20812002-10-02 Elena Zannoni <ezannoni@redhat.com>
2082
2083 * infcmd.c (interrupt_target_command_wrapper): Delete.
2084 (interrupt_target_command): Make non static.
2085 (nofp_registers_info): Make static.
2086 * stack.c (return_command_wrapper): Delete.
2087 (return_command): Make non static.
2088
cee6ddeb
EZ
20892002-10-02 Elena Zannoni <ezannoni@redhat.com>
2090
2091 * event-top.c (gdb_setup_readline): New function. Code moved from
2092 _initialize_event_loop().
2093 (_initialize_event_loop): Call gdb_setup_readline().
2094
c4ed33b9
AC
20952002-10-02 Andrew Cagney <ac131313@redhat.com>
2096
2097 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2098 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2099 * gdbarch.h, gdbarch.c: Re-generate.
2100
cef4f5dd
DJ
21012002-10-02 Daniel Jacobowitz <drow@mvista.com>
2102
2103 Fix PR gdb/778
2104 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2105 before recursing.
2106 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2107 of fill_in_vptr_fieldno.
2108
36dc181b 21092002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 2110
36dc181b
EZ
2111 * inferior.h (registers_info, stepi_command, nexti_command,
2112 continue_command, interrupt_target_command): Export from infcmd.c.
2113 * frame.h (args_info, selected_frame_level_changed_hook,
2114 return_command): Export from stack.c.
2115 * v850ice.c (stepi_command, nexti_command, continue_command): use
2116 prototypes from inferior.h.
2117 * tracepoint.c (registers_info, args_info, locals_info): Use
2118 prototypes from frame.h and inferior.h.
2119 * Makefile.in (mi-main.o): Add dependency on frame.h.
2120
6f99cb26
AC
21212002-10-02 Andrew Cagney <ac131313@redhat.com>
2122
da3eff49
AC
2123 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2124 value in register 3 adjusted by ppc_gp0_regnum.
2125
6f99cb26
AC
2126 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2127
da615bee
MM
21282002-10-02 Marko Mlinar <markom@opencores.org>
2129
2130 * MAINTAINERS: Add myself to the Write After Approval list.
2131
d154bee2
AO
21322002-10-01 Alexandre Oliva <aoliva@redhat.com>
2133
62a49b2c
AO
2134 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2135 of the section for the N64 ABI, fixed.
2136
d154bee2
AO
2137 * config/mips/tm-irix6.h: Include solib.h.
2138
ed348acc
EZ
21392002-10-01 Elena Zannoni <ezannoni@redhat.com>
2140
2141 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2142 GNU operators.
2143
da0f9dcd
AC
21442002-10-01 Andrew Cagney <ac131313@redhat.com>
2145
2146 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2147 and that "mi0" syntax has been removed.
2148
bdf64bac
DC
21492002-09-30 David Carlton <carlton@math.stanford.edu>
2150
2151 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2152 * ppc-sysv-tdep.c: #include "gdb_string.h".
2153 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2154 pacify GCC.
2155
54c2a1e6
AC
21562002-10-01 Andrew Cagney <ac131313@redhat.com>
2157
2158 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2159 "vrsave"'s register number.
2160
cedea778
AC
21612002-09-30 Andrew Cagney <ac131313@redhat.com>
2162
2163 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2164 use frame_unwind_signed_register to obtain the PC.
2165 (mips_frame_chain): Handle a generic dummy frame.
2166 (mips_init_extra_frame_info): When a generic dummy frame, don't
2167 re-compute the frame base.
2168 (mips_pop_frame): Handle generic dummy frames.
2169 (mips_gdbarch_init): When generic dummy frames, set
2170 use_generic_dummy_frames, push_dummy_frame to
2171 generic_push_dummy_frame, pc_in_call_dummy to
2172 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2173 generic_save_dummy_frame_tos.
2174
68315eb8
AC
21752002-09-30 Andrew Cagney <ac131313@redhat.com>
2176
2177 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2178 against TOP when TOP was explictly set.
2179 (generic_push_dummy_frame): Set TOP to zero.
2180
3b8630c3
EZ
21812002-09-30 Elena Zannoni <ezannoni@redhat.com>
2182
2183 * event-loop.c (start_event_loop): Rename variable 'result' to
2184 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2185
28ee05e9
KS
21862002-09-30 Keith Seitz <keiths@redhat.com>
2187
2188 * gdb-events.sh (selected_thread_changed): New event.
2189 * gdb-events.c: Regenerated.
2190 * gdb-events.h: Regenerated.
2191
6eecb1c8
HPN
21922002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2193
2194 * MAINTAINERS: Add self to Write After Approval list.
2195
92df71f0
FN
21962002-09-30 Fernando Nasser <fnasser@redhat.com>
2197
3b8630c3
EZ
2198 * disasm.c: New file.
2199 * disasm.h: New file.
92df71f0
FN
2200 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2201 (compare_lines): Ditto.
2202 (dump_insns): Ditto.
3b8630c3
EZ
2203 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2204 argument.
92df71f0 2205 (do_assembly_only): Ditto.
3b8630c3
EZ
2206 (do_disassembly): Renamed to gdb_disassembly and moved to
2207 disasm.c. Sdded uiout argument.
2208 * Makefile.in: Add new files. Reorder SFILES list. Update
2209 dependencies. Include libgdb.a later in the insight executable.
92df71f0 2210
0c22854d
AC
22112002-09-29 Andrew Cagney <ac131313@redhat.com>
2212
2213 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2214 bfd/elf64-alpha-fbsd.c.
2215
e67f2023
AC
22162002-09-29 Andrew Cagney <ac131313@redhat.com>
2217
2218 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2219 i386gnu-tdep.c.
2220
89396210
AC
22212002-09-29 Andrew Cagney <ac131313@redhat.com>
2222
2223 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2224 __FUNCTION__.
2225 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2226 function name.
2227 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2228 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2229 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2230 (S_msg_sig_post_reply): Ditto.
2231
7079c36c
CV
22322002-09-28 Corinna Vinschen <vinschen@redhat.com>
2233
89396210
AC
2234 * sh-tdep.c (sh_use_struct_convention): Use definition according
2235 to ABI.
7079c36c
CV
2236 (sh_push_arguments): Store in register with correct endianess.
2237 (sh_default_store_return_value): Ditto.
2238 (sh_gdbarch_init): Set sizeof long double to 8.
2239
975ac915
MK
22402002-09-27 Mark Kettenis <kettenis@gnu.org>
2241
2242 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2243 Fix some whitespace problems.
2244
9bbe19fb
DC
22452002-09-27 David Carlton <carlton@math.stanford.edu>
2246
2247 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2248 (mcore-tdep.o): Ditto.
2249 (ns32k-tdep.o): Ditto.
2250 (ns32knbsd-tdep.o): Ditto.
2251 (sh3-rom.o): Ditto.
2252 (vax-tdep.o): Ditto.
2253 * cris-tdep.c: #include "gdb_string.h"
2254 * mcore-tdep.c: Ditto.
2255 * ns32k-tdep.c: Ditto.
2256 * ns32knbsd-tdep.c: Ditto.
2257 * sh3-rom.c: Ditto.
2258 * vax-tdep.c: Ditto.
2259
43b2fdc7
DC
22602002-09-27 David Carlton <carlton@math.stanford.edu>
2261
2262 * config/djgpp/fnchange.lst: Add entries for
2263 gdb/testsuite/gdb.c++/m-static files.
2264
e8cfbbd9
JW
22652002-09-27 Jim Wilson <wilson@redhat.com>
2266
2267 * MAINTAINERS: Add myself to the Write After Approval list.
2268
43b2fdc7 22692002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
2270
2271 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2272
2273
9f3b7f07
AC
22742002-09-26 Andrew Cagney <ac131313@redhat.com>
2275
2276 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2277 frame.
2278
11269d7e
AC
22792002-09-26 Andrew Cagney <ac131313@redhat.com>
2280
2281 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2282 (rs6000_struct_return_address): Delete variable.
2283 (rs6000_store_struct_return): Update.
2284 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2285 deprecated_extract_struct_value_address.
2286 (rs6000_frame_align): New function.
2287 (rs6000_gdbarch_init): Set frame_align.
2288
f15ab4a7
AC
22892002-09-26 Andrew Cagney <ac131313@redhat.com>
2290
2291 From Grace Sainsbury <graces@redhat.com>:
2292 * Makefile.in (gdbtk-main.o): New target.
2293 (gdb.o): New target.
2294 (main_h): Define.
2295 (main.o): Update dependencies.
2296 (gdb$(EXEEXT)): Add gdb.o.
2297 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2298 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2299 (SUBDIR_GDBTK_CLEAN): Set.
2300 (install-gdbtk): Install the insight binary.
2301 (uninstall-gdbtk): New target.
2302 (all-gdbtk, clean-gdbtk): New rule.
2303 * top.c (use_windows): Default to zero.
2304 * main.c: Include "main.h".
2305 (main): Delete.
2306 (struct captured_main_args): Delete.
2307 (gdb_main): New function.
2308 * main.h: New file.
2309 * gdb.c: New File.
2310
e36180d7
AC
23112002-09-25 Andrew Cagney <cagney@redhat.com>
2312
2313 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2314 (frame_map_regnum_to_name): New function.
2315 (frame_map_name_to_regnum): New function.
2316 * frame.h (frame_map_name_to_regnum): Declare.
2317 (frame_map_regnum_to_name): Declare.
2318 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2319 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2320 * parse.c: Do not include "builtin-regs.h".
2321 (target_map_name_to_register): Delete function.
2322 (write_dollar_variable): Use frame_map_name_to_regnum.
2323 * parser-defs.h (target_map_name_to_register): Delete declaration.
2324 * expprint.c: Include "frame.h".
2325 (print_subexp): Use frame_map_regnum_to_name.
2326 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2327 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2328
8b69000d
AC
23292002-09-25 Andrew Cagney <ac131313@redhat.com>
2330
2331 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2332 wasn't saved, and the next innermost frame is a dummy, return the
2333 dummy frame's link register.
2334
046ca86a
JB
23352002-09-24 Jim Blandy <jimb@redhat.com>
2336
2337 Fix from Paul Breed:
2338 * main.c (captured_main): Add a `break' after the case for 'b'.
2339
94b66fa7
KS
23402002-09-24 Keith Seitz <keiths@redhat.com>
2341
2342 * varobj.c (c_type_of_child): Use get_target_type instead
2343 of TYPE_TARGET_TYPE.
2344
c214a6fd
FN
23452002-09-22 Fernando Nasser <fnasser@redhat.com>
2346
53cb0458
FN
2347 * source.c (get_current_or_default_source_symtab_and_line): Remove
2348 function.
2349 (set_default_source_symtab_and_line): New function. Attempts to
2350 determine a source file to list lines from if one is not currently
2351 defined.
2352 (get_current_source_symtab_and_line): Initialize sal.pc and
2353 sal.end fields.
2354 (set_current_source_symtab_and_line): Mark argument as const.
2355 * source.h: Update declarations and comments.
2356 * linespec.c (decode_line_1): Replace call to removed routine above.
2357 * stack.c (print_frame_info_base): Ditto.
2358 * cli/cli-cmds.c (edit_command): Ditto.
2359 (list_command): Ditto.
2360
23612002-09-22 Fernando Nasser <fnasser@redhat.com>
2362
d6020d45 2363 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 2364 sal.pc and sal.end fields.
c214a6fd
FN
2365 (get_current_or_default_source_symtab_and_line): Ditto.
2366 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2367 so we do not cause a new source symtab to be searched for (reverting an
2368 unintentional change from the 2002-09-20 patch).
2369 * scm-lang.c (scm_unpac): Ditto.
2370
cc3b68a5
AC
23712002-09-21 Andrew Cagney <cagney@redhat.com>
2372
2373 * complaints.c (symfile_explanations): Remove new-line from
2374 ``isolated_message''.
2375 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2376 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2377
5835abe7
NC
23782002-09-20 Nick Clifton <nickc@redhat.com>
2379
2380 * NEWS: Announce that V850EA ISA is no longer supported.
2381 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2382
a15ef5f5
DC
23832002-09-20 David Carlton <carlton@math.stanford.edu>
2384
06ba1b39
DC
2385 * Makefile.in (c-lang.o): Correct dependencies.
2386 (utils.o): Gather dependencies.
2387 (charset.o): Move.
a15ef5f5
DC
2388 * c-lang.c: #include "gdb_string.h"
2389
87885426
FN
23902002-09-20 Fernando Nasser <fnasser@redhat.com>
2391
2392 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2393 * cli/cli-cmds.c (list_command): New function. Implements the new
2394 cli edit command.
2395 (_init_cli_cmds): Add new command definition.
2396 * gdb.1: Document edit command.
2397 * doc/gdb.texinfo: Document edit command.
2398
23992002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
2400
2401 * source.c: Make global variables current_source_symtab and
2402 current_source_line static.
2403 (list_command): Moved to cli/cli-cmds.c.
2404 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2405 (get_first_line_listed): New accessor function.
2406 (get_lines_to_list): New accessor function.
2407 (get_current_source_symtab_and_line): New function. Retrieves the
2408 position in the source code that we consider current.
2409 (get_current_or_default_source_symtab_and_line): New function.
2410 Like the above but attempts to determine a default position if one
2411 is not currently defined.
2412 (set_current_source_symtab_and_line): New function. Sets the source
2413 code position considered current and returns the previously set one.
2414 (clear_current_source_symtab_and_line): Reset stored information about
2415 a current source line.
2416 (_initialize_source): Remove registration for the "list" command and
2417 its alias.
2418 * source.h: Add declarations for the new functions above.
2419 * symtab.h: Remove declarations for the global variables mentioned
2420 above.
2421 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2422 obtain current source line.
2423 * linespec.c (decode_line_1): Ditto.
2424 * macroscope.c (default_macro_scope): Ditto.
2425 * scm-lang.c (scm_unpac): Ditto.
2426 * stack.c (print_frame_info_base): Ditto.
2427 * symfile.c (clear_symtab_users): Ditto.
2428 * symtab.c (decode_line_spec): Ditto.
2429 * cli/cli-cmds.c (list_command): Moved here from source.c.
2430 (ambiguous_line_spec): Moved here from source.c.
2431 (_init_cli_cmds): Add definition for "list" and its alias.
2432 * Makefile.in: Update dependencies.
2433
ddd216ea
CV
24342002-09-20 Corinna Vinschen <vinschen@redhat.com>
2435
2436 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2437 with what gcc thinks is correct.
2438
6d305052
CV
24392002-09-20 Corinna Vinschen <vinschen@redhat.com>
2440
2441 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2442 multiple register push instruction.
2443
234b45d4
KB
24442002-09-19 Jim Blandy <jimb@redhat.com>
2445
2446 Add support for distinct host and target character sets.
2447 * charset.c, charset.h: New files.
2448 * c-exp.y: #include "charset.h".
2449 (yylex): Convert character and string literals to the target
2450 character set, before returning them as the semantic value of the
2451 token.
2452 * c-lang.c: #include "charset.h".
2453 (c_emit_char): Use charset-specific methods to recognize
2454 characters with backslash escape forms, to decide which characters
2455 to print literally and which to print using numeric escape
2456 sequences, and to convert target characters to host characters
2457 before printing.
2458 * utils.c: #include "charset.h".
2459 (no_control_char_error): New function.
2460 (parse_escape): Use charset-specific methods to recognize
2461 backslash escapes, parse `control character' notation, and convert
2462 characters from the host character set to the target character set.
2463 * configure.in: Set the default host character set.
2464 Check where to find iconv, and what its argument types might be.
2465 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2466 * Makefile.in (SFILES): List charset.c.
2467 (COMMON_OBS): List charset.o.
2468 (charset.o): New rule.
2469 (charset_h): New header dependency variable.
2470 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2471 (LIBICONV): New variable, set by configure.
2472 (CLIBS): Include $(LIBICONV) here.
2473 * aclocal.m4, config.in, configure: Regenerated.
2474
525d6a61
JB
24752002-09-19 Joel Brobecker <brobecker@gnat.com>
2476
2477 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2478 bison 1.35 warning.
2479
3ed93867
RE
24802002-09-19 Richard Earnshaw <rearnsha@arm.com>
2481
2482 * gdb_mbuild.sh: New file.
2483
437666f8
AC
24842002-09-19 Andrew Cagney <ac131313@redhat.com>
2485
2486 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2487
389e51db
AC
24882002-09-18 Andrew Cagney <ac131313@redhat.com>
2489
2490 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2491 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2492 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2493 valops.c, value.h: Revert previous change.
2494
3b4efeaa
MS
24952002-09-18 Michael Snyder <msnyder@redhat.com>
2496
2497 Preliminary support for Objective-C:
2498 * defs.h (language_objc): New enum value.
2499 (puts_filtered_tabular): Declaration only, exported from utils.c.
2500 (skip_quoted): Delete, declared in completer.h.
2501 * c-exp.y: Include completer.h.
2502 * p-exp.y: Ditto.
2503 * jv-exp.y: Ditto.
2504 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2505 New operator enum values.
2506 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2507 * language.c (binop_result_type): Handle language_objc case.
2508 (integral_type, character_type, string_type, boolean_type,
2509 structured_type, binop_type_check): Ditto.
2510 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2511 (struct objc_specific): Add to general_symbol_info.
2512 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2513 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2514 * parser-defs.h (struct objc_class_str): New struct type.
2515 (start_msglist, end_msglist, add_msglist): Declaration only,
2516 exported from objc-lang.c.
2517 * value.h (value_of_local, value_nsstring,
2518 call_function_by_hand_expecting_type): Exported from valops.c.
2519 * valops.c (find_function_addr): Export.
2520 (call_function_by_hand_expecting_type): New function.
2521 (value_of_local): New function.
2522 * symfile.c (init_filename_language_table): Add ".m" extension
2523 for Objective-C.
2524 * utils.c (puts_filtered_tabular): New function.
2525 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2526 (set/show demangle): Extend help-string to refer to ObjC.
2527 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2528 * stabsread.c (symbol_reference_defined): Objective-C symbols
2529 may contain colons: make allowances when scanning stabs strings
2530 for colons.
2531 (objc_find_colon): New function.
2532 * printcmd.c (address_info): If language == objc then print
2533 "self" instead of "this".
2534 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2535 OP_NSSTRING, and OP_SELF.
2536 (prefixify_subexp): Ditto.
2537 * source.c (print_source_lines): Mention objc in comment.
2538 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2539 method names.
2540
b9caf505
AC
25412002-09-18 Andrew Cagney <ac131313@redhat.com>
2542
2543 * complaints.h: Update copyright.
2544 (struct complaints): Declare.
2545 (struct complaint): Make `message' constant.
2546 (internal_complaint): Declare.
2547 (complaint): Declare.
2548 (complaint_root): Delete declaration.
2549 (symfile_complaints): Delete declaration.
2550 (struct complaints): Add opaque declaration.
2551 (clear_complaints): Add a complaints parameter.
2552 * complaints.c: Update copyright.
2553 (enum complaint_series): Define.
2554 (complaint_root): Delete.
2555 (struct complaints): Define.
2556 (complaint_sentinel, symfile_complaint_book): New variables.
2557 (symfile_explanations, symfile_complaints): New variables.
2558 New variables.
2559 (get_complaints): New function.
2560 (vcomplaint): New function.
2561 (complaint): New function.
2562 (internal_complaint): New function.
2563 (complain): Call vcomplain with symfile_complaint.
2564 (clear_complaints): Rewrite.
2565 (_initialize_complaints): Use add_setshow_command.
2566 * Makefile.in (complaints.o): Update dependencies.
2567 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2568 to call to clear_complaints.
2569 (new_symfile_objfile, reread_symbols): Ditto.
2570 (oldsyms_complaint): Delete.
2571 (empty_symtab_complaint, unknown_option_complaint): Delete.
2572 (free_named_symtabs): Use complaint instead of complain.
2573
d2e6263c
MS
25742002-09-18 Michael Snyder <msnyder@redhat.com>
2575
5fb2031a
AC
2576 Contributed by Apple Computer, Inc. Merged with current sources
2577 by Adam Fedor <fedor@doc.com> [cagney].
2578
d2e6263c
MS
2579 * objc-lang.c: First clean-up round: comments, indentation.
2580 * objc-lang.h: Ditto.
2581 * objc-lang.y: Ditto.
2582
dec43320
AC
25832002-09-18 Andrew Cagney <ac131313@redhat.com>
2584
2585 * maint.c (maintenance_internal_error): Print the parameter as the
2586 error message.
2587 (maintenance_internal_warning): New function.
2588 (_initialize_maint_cmds): Add command `maint internal-warning'.
2589
2590 * defs.h (internal_warning, internal_vwarning): Declare.
2591 * utils.c (struct internal_problem): Define.
2592 (internal_vproblem): New function.
2593 (internal_warning): New function.
2594 (internal_vwarning): New function.
2595 (internal_warning_problem, internal_error_problem): New variables.
2596 (internal_verror): Just call internal_vproblem.
2597
b81654f1
MS
25982002-09-18 Michael Snyder <msnyder@redhat.com>
2599
2600 * objc-lang.c: New file, support for Objective-C.
2601 Preliminary check-in, not yet integrated into gdb.
2602 * objc-lang.h: New file.
2603 * objc-exp.y: New file.
2604
0542c381
AC
26052002-09-18 Andrew Cagney <ac131313@redhat.com>
2606
7bda5e4a
AC
2607 * infrun.c (signal_stop_update): Convert definition to ISO C.
2608 (signal_print_update): Ditto.
2609 (signal_pass_update): Ditto.
2610 * inflow.c (terminal_save_ours): Ditto.
2611
5247b418
AC
2612 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2613 comments.
2614
fc60962c
AC
2615 * config/djgpp/fnchange.lst: Handle name clashes between
2616 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2617 bfd/coff-tic80.c.
2618
0542c381
AC
2619 * i386-linux-tdep.h: Fix tipo.
2620
5b924b9b
AF
26212002-09-18 Adam Fedor <fedor@gnu.org>
2622
2623 * MAINTAINERS: Add myself to the Write After Approval list.
2624
5afc051b
JB
26252002-09-18 Jim Blandy <jimb@redhat.com>
2626
2627 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2628 texthigh and textlow to reader-specific structs caused
2629 objfile_relocate to miss them. This is fixable, but the work that
2630 the change was supposed to prepare GDB for never got done anyway.
2631
eb944380
DC
26322002-09-18 David Carlton <carlton@math.stanford.edu>
2633
2634 * MAINTAINERS: Alphabetize Write After Approval list.
2635
948e66d9
DJ
26362002-09-18 Daniel Jacobowitz <drow@mvista.com>
2637
2638 Fix PR gdb/709
2639 * values.c (value_static_field): Call read_var_value.
2640
dc604539
AC
26412002-09-18 Andrew Cagney <ac131313@redhat.com>
2642
2643 * valops.c (hand_function_call): Align the initial stack pointer
2644 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2645 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2646 return value.
2647 * mips-tdep.c (mips_frame_align): New function.
2648 (mips_gdbarch_init): Set frame_align.
2649 * gdbarch.sh (FRAME_ALIGN): New method.
2650 * gdbarch.h, gdbarch.c: Re-generate.
2651
cb7e422f
ML
26522002-09-18 Michal Ludvig <mludvig@suse.cz>
2653
2654 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2655 registers.
2656
a094c6fb
AC
26572002-09-17 Andrew Cagney <ac131313@redhat.com>
2658
2659 * NEWS: Mention that MIPS $fp behavior changed.
2660 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2661 reference to FP_REGNUM.
2662 (mipsnbsd_cannot_store_register): Ditto.
2663 * mips-linux-nat.c: Update copyright.
2664 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2665 (mips_linux_cannot_store_register): Ditto.
2666 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2667 * config/mips/tm-mips.h: Update copyright.
2668 (FP_REGNUM): Delete macro.
2669 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2670 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2671 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2672 (mips_r3041_reg_names, mips_r3051_reg_names)
2673 (mips_r3081_reg_names): Replace "fp" with "".
2674 Fix PR gdb/480.
2675
45cf40d1
TR
26762002-09-17 Theodore A. Roth <troth@verinet.com>
2677
2678 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2679 generic_read_register_dummy() (PR gdb/703).
2680 (avr_push_return_address): #if 0 out unused vars.
2681 (avr_gdbarch_init): Enable use of avr_push_return_address().
2682
c7e701b5
MS
26832002-09-17 Michael Snyder <msnyder@redhat.com>
2684
d76ba2a5 2685 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
2686 RTE will take care of it.
2687
20bcf01c
AC
26882002-09-17 Andrew Cagney <ac131313@redhat.com>
2689
2690 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2691 invalid, return SP_REGNUM.
2692
009a9971 26932002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
2694
2695 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2696 point registers without sign extension.
2697
135c175f
AC
26982002-09-17 Andrew Cagney <cagney@redhat.com>
2699
2700 * blockframe.c (deprecated_read_register_dummy): Rename
2701 generic_read_register_dummy.
2702 * frame.c (frame_unwind_signed_register): New function.
2703 (frame_unwind_unsigned_register): New function.
2704 * frame.h (frame_unwind_signed_register): Declare.
2705 (frame_unwind_unsigned_register): Declare.
2706 (deprecated_read_register_dummy): Rename
2707 generic_read_register_dummy.
2708
2709 * h8300-tdep.c (h8300_frame_chain): Update.
2710 (h8300_frame_saved_pc): Update.
2711 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2712 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2713 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2714 (s390_frame_chain): Update.
2715 * v850-tdep.c (v850_find_callers_reg): Update.
2716 (v850_frame_saved_pc): Update.
2717 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2718 (m32r_find_callers_reg): Update.
2719 (m32r_frame_saved_pc): Update.
2720 * sh-tdep.c (sh_find_callers_reg): Update.
2721 (sh64_get_saved_pr): Update.
2722 (sh_init_extra_frame_info): Update.
2723 (sh_init_extra_frame_info): Update.
2724 (sh64_init_extra_frame_info): Update.
2725 (sh64_init_extra_frame_info): Update.
2726 * mcore-tdep.c (mcore_find_callers_reg): Update.
2727 (mcore_frame_saved_pc): Update.
2728 (mcore_init_extra_frame_info): Update.
2729 * i386-tdep.c (i386_frame_saved_pc): Update.
2730 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2731 (ia64_init_extra_frame_info): Update.
2732 (ia64_init_extra_frame_info): Update.
2733 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2734 * cris-tdep.c (cris_init_extra_frame_info): Update.
2735 * avr-tdep.c (avr_frame_chain): Update.
2736 (avr_init_extra_frame_info): Update.
2737 (avr_frame_saved_pc): Update.
2738 * arm-tdep.c (arm_find_callers_reg): Update.
2739 (arm_init_extra_frame_info): Update.
2740 (arm_frame_saved_pc): Update.
2741
a741e514
TT
27422002-09-17 Tom Tromey <tromey@redhat.com>
2743
2744 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2745 is "'".
2746
d1a8e808
CV
27472002-09-17 Corinna Vinschen <vinschen@redhat.com>
2748
2749 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2750 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2751 NEXT_PROLOGUE_INSN.
2752 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2753 NEXT_PROLOGUE_INSN.
2754
d9025a18
JB
27552002-09-16 Joel Brobecker <brobecker@gnat.com>
2756
2757 * osfsolib.c: Remove file, replaced by solib-osf.c.
2758 * Makefile.in: Remove compilation rules for osfsolib.c.
2759
1b2ef1b6
DC
27602002-09-16 David Carlton <carlton@math.stanford.edu>
2761
2762 * cp-valprint.c (cp_print_class_method): Correct args to
2763 check_stub_method_group.
2764
928e48af
CV
27652002-09-16 Corinna Vinschen <vinschen@redhat.com>
2766
2767 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2768 `set architecture'. Unify naming convention of functions.
2769 (h8300_skip_prologue): Improve prologue analysis.
2770 (h8300_push_arguments): Rewritten to more closely match GCC's
2771 bizarre argument-passing behavior, along with the comment describing
2772 said behavior.
2773 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2774 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2775 sim, remote-e7000.c, remote-hms.c and remote.c
2776
5e3397bb
MK
27772002-09-15 Mark Kettenis <kettenis@gnu.org>
2778
2779 * i386-tdep.c (gdb_print_insn_i386): Removed.
2780 (i386_print_insn): New function.
2781 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2782 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2783 tm_print_insn_info.
2784
f710f4fc
MK
27852002-09-14 Mark Kettenis <kettenis@gnu.org>
2786
2787 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2788 zero.
2789
db54fef4
CV
27902002-09-14 Corinna Vinschen <vinschen@redhat.com>
2791
2792 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2793 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2794 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2795
2becadee
CF
27962002-09-13 Christopher Faylor <cgf@redhat.com>
2797
2798 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2799
de17c821
DJ
28002002-09-13 Daniel Jacobowitz <drow@mvista.com>
2801
2802 * gdbtypes.c (check_stub_method): Make static.
2803 (check_stub_method_group): New function.
2804 * gdbtypes.h: Update prototypes.
2805 * cp-support.c: New file.
2806 * cp-support.h: New file.
2807
2808 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2809 (update_method_name_from_physname): New function.
2810 (read_member_functions): Correct method names for operators
2811 and v3 constructors/destructors. Separate v2 constructors and
2812 destructors.
2813 * Makefile.in (stabsread.o): Update dependencies.
2814 (SFILES): Add cp-support.c.
2815 (COMMON_OBS): Add cp-support.o.
2816 (cp_support_h, cp-support.o): Add.
2817
2818 * cp-valprint.c (cp_print_class_method): Call
2819 check_stub_method_group instead of check_stub_method. Remove
2820 extraneous QUITs.
2821 * p-valprint.c (pascal_object_print_class_method): Likewise.
2822 * valops.c (search_struct_method): Likewise.
2823 (find_method_list, value_struct_elt_for_reference): Likewise.
2824
e76cff22
AC
28252002-09-13 Andrew Cagney <cagney@redhat.com>
2826
2827 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2828 * gdbarch.h, gdbarch.c: Regenerate.
2829
905abb3f
AC
28302002-09-13 Andrew Cagney <ac131313@redhat.com>
2831
2832 * frame.c (find_saved_register): Delete function.
2833 * frame.h (find_saved_register): Delete declaration.
2834 Fix PR gdb/631.
2835
64159455
AC
2836Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2837
2838 * mips-tdep.c (read_next_frame_reg): Re-hack using
2839 frame_register_unwind.
2840
795e1e11
AC
2841Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2842
2843 * mips-tdep.c (mips_get_saved_register): Re-hack using
2844 frame_register_unwind.
2845
5720643c
JB
28462002-09-12 Joel Brobecker <brobecker@gnat.com>
2847
2848 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2849 vector. Will be useful for Interix.
2850 * gdbarch.h, gdbarch.c: Regenerate.
2851
2852 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2853 name of the malloc function by NAME_OF_MALLOC.
2854
3bada2a2
JB
28552002-09-12 Joel Brobecker <brobecker@gnat.com>
2856
2857 * value.h (find_function_in_inferior): Add const keyword to
2858 one of the parameters. Allows us to invoke this function with
2859 a const char *.
2860 * valops.c (find_function_in_inferior): Likewise.
2861
3db26b01
JB
28622002-09-12 Joel Brobecker <brobecker@gnat.com>
2863
2864 * exec.c (xfer_memory): Fix compilation warning with old versions
2865 of GCC.
2866 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2867
17c5ed2c
DC
28682002-09-12 David Carlton <carlton@math.stanford.edu>
2869
2870 * symtab.h: Run through gdb_indent.h.
2871 Add 2002 to Copyright year list.
2872
ecd1107e
AM
28732002-09-12 Alan Modra <amodra@bigpond.net.au>
2874
2875 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2876 mach constants.
2877 * MAINTAINERS: Add myself to write after approval list.
2878
e64f66d1
JB
28792002-09-11 J. Brobecker <brobecker@gnat.com>
2880
2881 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2882
f9395794
JB
28832002-09-11 J. Brobecker <brobecker@gnat.com>
2884
2885 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2886 Interix.
2887
1a303dec
MS
28882002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2889
2890 * procfs.c (do_detach): Clear current signal, not just fault.
2891 Corrects problem with breakpoint trap signal leaking to detached
2892 process on Tru64.
2893
c0219d42
MS
28942002-09-10 Michael Snyder <msnyder@redhat.com>
2895
2896 * buildsym.c (finish_block): Protect against null pointer.
2897
9d84ac84
AC
28982002-09-10 Andrew Cagney <cagney@redhat.com>
2899
2900 * infcmd.c (default_print_registers_info): Send all output to
2901 ``file'' instead of ``gdb_stdout''.
2902
77d8f2b4
MS
29032002-09-10 Michael Snyder <msnyder@redhat.com>
2904
2905 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2906 LONGEST, and use signed register read (addresses are sign-
2907 extended for mips).
2908
99656a61
SC
29092002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2910
2911 * event-loop.c (gdb_do_one_event): Make public.
2912 * event-loop.h (gdb_do_one_event): Declare.
2913
da12f4d8
JL
29142002-09-10 Jeff Law <law@redhat.com>
2915
2916 * infttrace.c (child_resume): Simplify and rework to avoid
2917 TT_PROC_CONTINUE.
2918
d0aee0c4
FF
29192002-09-09 Fred Fish <fnf@intrinsity.com>
2920
2921 * printcmd.c (print_scalar_formatted): "len" is the number of
2922 target bytes, NOT the number of target bits.
2923
7cb3ec5e
EZ
29242002-09-09 Elena Zannoni <ezannoni@redhat.com>
2925
2926 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2927 * top.c (init_main): Set rl_terminal_name.
2928
4dc81987
AS
29292002-09-08 Aidan Skinner <aidan@velvet.net>
2930
2931 * ada-lang.c (ada_array_bound, ada_type_match,
2932 _initialize_ada_language): Fix K&R definitions.
2933 * ada-tasks.c (get_current_task): Fix K&R definitions.
2934 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2935
842330b4
CF
29362002-09-07 Christopher Faylor <cgf@redhat.com>
2937
2938 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2939 Add XP.
2940
43156d82
MK
29412002-09-06 Mark Kettenis <kettenis@gnu.org>
2942
66da5fd8
MK
2943 * i386-tdep.c (i386_register_virtual_type,
2944 i386_register_convertible, i386_register_convert_to_virtual,
2945 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2946 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2947 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2948 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2949 Don't set push_arguments twice.
2950
4b218c18
MK
2951 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2952 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2953 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2954 sigtramp_end to NULL.
2955 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2956 defines.
2957 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2958
4cc314d5
MK
2959 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2960 whitespace.
2961
43156d82
MK
2962 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2963 * gdbarch.h, gdbarch.c: Re-generate.
2964 * blockframe.c (find_pc_sect_partial_function): Convert to use
2965 SIGTRAMP_START_P predicate.
2966
6672060b
MS
29672002-09-05 Michael Snyder <msnyder@redhat.com>
2968
a90c3637
MS
2969 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2970 generic_dummy_frame method and old method. Also distinguish
2971 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 2972 (arm_extract_return_value): Use new regcache method.
a90c3637 2973
6672060b
MS
2974 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2975 adjustment that doesn't conform to the ABI.
2976 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2977 saved regcache, not from current regcache.
2978
299ffc64
AC
29792002-09-05 Andrew Cagney <ac131313@redhat.com>
2980
2981 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2982 * README: Update.
2983
a3a2ee65
JT
29842002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2985
2986 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2987 if arm_apcs_32 is false.
2988
2bc7eea9
AC
29892002-09-04 Andrew Cagney <ac131313@redhat.com>
2990
2991 GDB 5.3 branch created.
2992
8a55a7c5
TR
29932002-09-03 Theodore A. Roth <troth@verinet.com>
2994
2995 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2996 generic_unwind_get_saved_register.
2997
e26fb1d7
DC
29982002-09-03 David Carlton <carlton@math.stanford.edu>
2999
3000 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3001 argument (PR gdb/653). Update call to smash_to_method_type.
3002 (read_structure_scope): Update call to dwarf2_add_member_fn.
3003
30d52491
ML
30042002-09-03 Michal Ludvig <mludvig@suse.cz>
3005
3006 * x86-64-linux-tdep.c: Include gdb_string.h
3007 * x86-64-linux-nat.c: Ditto.
3008
06891d83
JT
30092002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3010
3011 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3012 when YYDEBUG is set to 1.
3013 * c-exp.y: Likewise.
3014 * f-exp.y: Likewise.
3015 * jv-exp.y: Likewise.
3016 * m2-exp.y: Likewise.
3017 * p-exp.y: Likewise.
3018
7d400e77
JT
30192002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3020
3021 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3022 dependency list.
3023 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3024 solib_svr4_fetch_link_map_offsets to
3025 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3026 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3027 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3028 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3029 solib-svr4.o, and solib-legacy.o.
3030 * config/i386/tm-nbsd.h: Include solib.h.
3031
704a27c4
JT
30322002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3033
3034 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3035 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3036 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3037 comment noting that this needs its own target configuration.
3038 * config/i386/nbsd.mt: New file.
3039 * config/i386/nbsdaout.mt: Remove.
3040 * config/i386/nbsdelf.mt: Ditto.
3041 * config/i386/tm-nbsdaout.h: Ditto.
3042
d66198e1
JT
30432002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3044
3045 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3046 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3047 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3048 tdep->sigtramp_end.
3049 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3050 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3051 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3052
3cac699e
JT
30532002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3054
3055 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3056 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3057 * i386-tdep.h (i386bsd_init_abi): New prototype.
3058 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3059 function declaration.
3060 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3061 for NetBSD-a.out or NetBSD-ELF.
3062 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3063 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3064 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3065 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3066 and nbsd-tdep.h.
3067 (i386nbsd_pc_in_sigtramp): New function.
3068 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3069 i386nbsd_pc_in_sigtramp.
3070 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3071 and i386nbsdelf_init_abi OS ABI handlers.
3072 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3073 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3074
7010ca0a
MK
30752002-09-02 Mark Kettenis <kettenis@gnu.org>
3076
3077 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3078 registers if the target really has them.
3079
6dd93b72
JT
30802002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3081
3082 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3083 than nbsd-tdep.h.
3084
2ca8ae21
JT
30852002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3086
3087 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3088 list.
3089 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3090 (alphanbsd_skip_sigtramp_frame): New functions.
3091 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3092 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3093 to alphanbsd_sigcontext_addr.
3094
3d9b49b0
JT
30952002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3096
3097 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3098 list.
3099 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3100 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3101 nbsd_pc_in_sigtramp.
3102 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3103 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3104 * nbsd-tdep.c: Include gdb_string.h.
3105 (nbsd_pc_in_sigtramp): New function.
3106 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3107 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3108 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3109 ppcnbsd_pc_in_sigtramp.
3110 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3111 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3112 shnbsd_pc_in_sigtramp.
3113 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3114 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3115 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3116
c860120c
PM
31172002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3118
3119 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3120 watchpoints to NULL.
3121 (insert_breakpoints): set val field of watchpoints if NULL.
3122
3123
c7612d53
JB
31242002-08-29 Jim Blandy <jimb@redhat.com>
3125
3126 * symtab.c (lookup_symbol_aux): In the cases where we find a
3127 minimal symbol of an appropriate name and use its address to
3128 select a symtab to read and search, use `name' (as passed to us)
3129 as the demangled name when searching the symtab's global and
3130 static blocks, not the minsym's name.
3131
66609862
KS
31322002-08-29 Keith Seitz <keiths@redhat.com>
3133
3134 * stack.c (print_frame_info_base): Always set current_source_symtab
3135 and current_source_line.
3136
151fefe2
JB
31372002-08-29 Donn Terry <donnte@microsoft.com>
3138
3139 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3140
bfb3754e
KS
31412002-08-28 Keith Seitz <keiths@redhat.com>
3142
3143 * stack.c (select_frame): Add FIXME concerning selected-frame
3144 events.
3145 (select_frame_command): Send selected-frame-level-changed
3146 event notification, but only if the level actually changed.
3147 (up_silently_base): Add selected-frame-level-changed event
3148 notification.
3149 (down_silently_base): Likewise.
3150
e822a2a0
AC
31512002-08-28 Andrew Cagney <ac131313@redhat.com>
3152
3153 * Makefile.in: Update dependencies for all gdb/*.c files.
3154
309367d4
TT
31552002-08-27 Tom Tromey <tromey@redhat.com>
3156
3157 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3158 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3159 Update dependencies.
3160 * i387-tdep.c: Include gdb_string.h.
3161 * osabi.c: Likewise.
3162 * i386-linux-nat.c: Likewise.
3163 * lin-lwp.c: Likewise.
3164 * ax-gdb.c: Likewise.
3165 * signals/signals.c: Likewise.
3166 * jv-valprint.c: Likewise.
3167 * p-lang.c: Likewise.
3168 * c-valprint.c: Likewise.
3169 * cp-abi.c: Likewise.
3170
e1507482
EZ
31712002-08-27 Elena Zannoni <ezannoni@redhat.com>
3172
3173 * cli/cli-script.h (copy_command_lines): Export.
3174 * breakpoint.c: Include cli/cli-script.h.
3175 * Makefile.in (breakpoint.o): Update dependencies.
3176
c6510018
MS
31772002-08-26 Michael Snyder <msnyder@redhat.com>
3178
3179 * breakpoint.c (insert_breakpoints): Protect all references
3180 to 'process_warning'. Shorten long lines.
3181
c2b8ed2c
MS
31822002-08-26 Joel Brobecker <brobecker@gnat.com>
3183
3184 * cli/cli-script.c (copy_command_lines): New function.
3185 * defs.h (copy_command_lines): Export.
3186 * testsuite/gdb.base/commands.exp: New tests for commands
3187 attached to a temporary breakpoint, and for commands that
3188 delete the breakpoint they are attached to.
3189
31902002-08-26 Michael Snyder <msnyder@redhat.com>
3191
3192 * breakpoint.c (bpstat_stop_status): Instead of copying the
3193 pointer to the breakpoint commands struct, make a new copy
3194 of the struct and point to that.
3195 (bpstat_clear): Free the commands struct.
3196 (bpstat_clear_actions): Free the commands struct.
3197 (bpstat_do_actions): Free the command actions. Also execute
3198 the local cleanups, instead of deleting them.
3199 (delete_breakpoint): Leave the commands field of the bpstat
3200 chain alone -- it will be freed later.
3201
64b84175
KB
32022002-08-26 Kevin Buettner <kevinb@redhat.com>
3203
3204 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3205 deleted in 2002-08-20 commit. This function is still used by
3206 ppc-linux-nat.c.
3207
55970da6
KS
32082002-08-26 Keith Seitz <keiths@redhat.com>
3209
3210 * gdb-events.sh: Add selected-frame-level-changed event.
3211 * gdb-events.c: Regenerated.
3212 * gdb-events.h: Regenerated.
3213
a790ad35
SC
32142002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3215
3216 Fix PR gdb/393:
3217 * inflow.c (terminal_save_ours): New function to save terminal
3218 settings.
3219 * inferior.h (terminal_save_ours): Declare.
3220 * target.c (debug_to_terminal_save_ours): New function.
3221 (cleanup_target): Defaults to_terminal_save_ours.
3222 (update_current_target): Inherit to_terminal_save_ours.
3223 (setup_target_debug): Set to_terminal_save_ours.
3224 * target.h (target_terminal_save_ours): New to save terminal settings.
3225 (target_ops): New member to_terminal_save_ours.
3226 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3227 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3228 * inftarg.c (init_child_ops): Likewise.
3229 * m3-nat.c (init_m3_ops): Likewise.
3230 * procfs.c (init_procfs_ops): Likewise.
3231 * wince.c (init_child_ops): Likewise.
3232 * win32-nat.c (init_child_ops): Likewise.
3233 * sol-thread.c (init_sol_thread_ops): Likewise.
3234
c00dcbe9
MK
32352002-08-26 Mark Kettenis <kettenis@gnu.org>
3236
3d7f4f49
MK
3237 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3238 use regcache_* functions.
3239 (i386_gdbarch_init): Set store_return_value instead of
3240 deprecated_store_return_value.
3241
c00dcbe9
MK
3242 * regcache.c (regcache_raw_write_signed,
3243 regcache_raw_write_unsigned): New functions.
3244 * regcache.h (regcache_raw_write_signed,
3245 regcache_raw_write_unsigned): New prototypes.
3246
0e0d15ca
AC
32472002-08-25 Andrew Cagney <ac131313@redhat.com>
3248
3249 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3250 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3251 source file dependencies. Cleanup corresponding generator rules.
3252
d3b22ed5
AC
32532002-08-25 Andrew Cagney <ac131313@redhat.com>
3254
3255 * regcache.h (register_offset_hack): Declare.
3256 (regcache_cooked_read_using_offset_hack): Declare.
3257 (regcache_cooked_write_using_offset_hack): Declare.
3258
3259 * regcache.c (register_offset_hack): New function.
3260 (regcache_cooked_read_using_offset_hack): New function.
3261 (regcache_cooked_write_using_offset_hack): New function.
3262 (regcache_dump): Check that the registers, according to their
3263 offset, are packed hard against each other.
3264 (cooked_xfer_using_offset_hack): New function.
3265
bb425013
AC
32662002-08-25 Andrew Cagney <ac131313@redhat.com>
3267
3268 * regcache.c (struct regcache_descr): Add field register_type.
3269 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3270 in as a parameter
3271 (init_regcache_descr): Initialize register_type. Pass the descr
3272 to init_legacy_regcache_descr. Use register_type instead of
3273 REGISTER_VIRTUAL_TYPE.
3274 (register_type): New function.
3275 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3276 * regcache.h (register_type): Declare.
3277
d0403e00
AC
32782002-08-25 Andrew Cagney <ac131313@redhat.com>
3279
3280 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3281 instead of deprecated_store_return_value. Fix fallout from
3282 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3283
0ed04cce
AC
32842002-08-25 Andrew Cagney <ac131313@redhat.com>
3285
3286 * regcache.c (max_register_size): New function.
3287 (init_legacy_regcache_descr): Ensure that max_register_size is
3288 large enough for REGISTER_VIRTUAL_SIZE.
3289 * regcache.h (max_register_size): Declare.
3290
46d79c04
AC
32912002-08-24 Andrew Cagney <ac131313@redhat.com>
3292
3293 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3294 store_return_value.
3295 (e500_extract_return_value): Change type of valbuf pointer to
3296 void.
3297
853c7bd0
MK
32982002-08-24 Mark Kettenis <kettenis@gnu.org>
3299
cd87e769
MK
3300 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3301 workaround.
3302
853c7bd0
MK
3303 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3304 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3305 long long) to prevent compiler warning on 64-bit systems.
3306
ebba8386
AC
33072002-08-23 Andrew Cagney <cagney@redhat.com>
3308
3309 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3310 (DEPRECATED_STORE_RETURN_VALUE): New method.
3311 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3312 * gdbarch.h, gdbarch.c: Re-generate.
3313
3314 * values.c (set_return_value): Pass current_regcache to
3315 STORE_RETURN_VALUE.
3316 * arch-utils.h (legacy_store_return_value): Declare.
3317 * arch-utils.c (legacy_store_return_value): New function.
3318 (legacy_extract_return_value): Update parameters.
3319
3320 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3321 STORE_RETURN_VALUE.
3322 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3323 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3324 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3325 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3326 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3327 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3328 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3329 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3330 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3331 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3332
3333 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3334 * i386-tdep.c (i386_extract_return_value): Update.
3335 * arch-utils.c (legacy_extract_return_value): Update.
3336 * frv-tdep.c (frv_gdbarch_init): Update.
3337 * cris-tdep.c (cris_gdbarch_init): Update.
3338 * d10v-tdep.c (d10v_gdbarch_init): Update.
3339 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3340 * m68k-tdep.c (m68k_gdbarch_init): Update.
3341 * mcore-tdep.c (mcore_gdbarch_init): Update.
3342 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3343 * s390-tdep.c (s390_gdbarch_init): Update.
3344 * sparc-tdep.c (sparc_gdbarch_init): Update.
3345 * sh-tdep.c (sh_gdbarch_init): Update.
3346 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3347 * v850-tdep.c (v850_gdbarch_init): Update.
3348 * avr-tdep.c (avr_gdbarch_init): Update.
3349 * ia64-tdep.c (ia64_gdbarch_init): Update.
3350 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3351 * vax-tdep.c (vax_gdbarch_init): Update.
3352 * alpha-tdep.c (alpha_gdbarch_init): Update.
3353 * arm-tdep.c (arm_gdbarch_init): Update.
3354 * mips-tdep.c (mips_gdbarch_init): Update.
3355 * i386-tdep.c (i386_gdbarch_init): Update.
3356
5bd8c6d0
AC
33572002-08-23 Andrew Cagney <ac131313@redhat.com>
3358
3359 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3360 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3361
e73e1724
MK
33622002-08-24 Mark Kettenis <kettenis@gnu.org>
3363
3364 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3365 problems.
3366
3e6564e1
JB
33672002-08-23 Joel Brobecker <brobecker@gnat.com>
3368
3369 * infrun.c (handle_inferior_event): Move a comment outside of a
3370 function call, in order to avoid indent reformatting this part
3371 of the code in an unreadable way.
3372
81d0cc19
GS
33732002-08-23 Grace Sainsbury <graces@redhat.com>
3374
3375 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3376 when breakpoints fail. Move general breakpoint error messages to
3377 insert_breakpoints.
3378 * breakpoint.c (insert_breakpoints): Change warnings when
3379 breakpoints are nto inserted to specify the type. Remove call to
3380 memory_error when hardware breakpoints can't be inserted. Remove
3381 multiple calls to warning so all messages are sent to the user at
3382 once.
3383 (delete_breakpoints): Make insert error messsages more explicit.
3384
17574093
DJ
33852002-08-23 Daniel Jacobowitz <drow@mvista.com>
3386
3387 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3388 gdbserver/ChangeLog.
3389
8acc2935
MK
33902002-08-23 Mark Kettenis <kettenis@gnu.org>
3391
dfe01d39
MK
3392 * i386-tdep.c: Include "objfiles.h".
3393 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3394 skip_trampoline_code.
3395 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3396 (CPLUS_MARKER): Define to '.'.
3397
8acc2935
MK
3398 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3399 member.
3400 (linux_corefile_thread_callback): Increase args->num_notes.
3401 (linux_make_note_section): Initialize thread_args.num_notes, and
3402 use it to determine whether notes for any threads were created.
3403
151fefe2 34042002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
3405
3406 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3407 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3408 and PCUNKILL.
3409 (write_with_trace): Conditionalize out the switch branch handling
3410 PCSHOLD if the corresponding macro is not defined. Likewise for
3411 PRSABORT and PRSTOP.
3412 This change will be needed by the Interix port.
3413
e1507482
EZ
34142002-08-22 Elena Zannoni <ezannoni@redhat.com>
3415
3416 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3417 write_register wherever possible instead of manipulating the
3418 register bytes directly.
3419 Assign VALUE_CONTENTS to a variable and use that.
3420 The GPR numbers are now dependent on the architecture.
3421
96ff0de4
EZ
34222002-08-22 Elena Zannoni <ezannoni@redhat.com>
3423
3424 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3425 ev_offset fields.
3426 (skip_prologue): Add support for BookE/e500 instructions.
3427 (e500_extract_return_value): New function.
3428 (frame_get_saved_regs): Add support for saving ev registers and
3429 pseudo gpr's.
3430 (e500_store_return_value): New function.
3431 (rs6000_gdbarch_init): Move up default intializations of
3432 deprecated_extract_return_value and store_return_value. Overwrite
3433 init of store_return_value with e500 specific version.
3434 Set extract_return_value for e500.
3435
fbefca5b
EZ
34362002-08-22 Elena Zannoni <ezannoni@redhat.com>
3437
3438 * blockframe.c (generic_call_dummy_register_unwind): Use
3439 regcache_cooked_read to catch cases in which the variable is
3440 stored in a pseudo register.
3441
4d210288
AC
34422002-08-22 Andrew Cagney <cagney@redhat.com>
3443
3444 * NEWS: Mention that the i960 has been made obsolete.
3445 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3446 i960-tdep.c
3447 (remote-nrom.o): Obsolete target.
3448 (remote-nindy.o, i960-tdep.o): Ditto.
3449 * remote-nrom.c: Make file obsolete.
3450 * remote-nindy.c, remote-vx960.c: Ditto.
3451 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3452 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3453 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3454 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3455 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3456 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3457 i960-*-vxworks* obsolete.
3458 * MAINTAINERS: Note that the i960 is obsolete.
3459
6c0c456d
CV
34602002-08-21 Corinna Vinschen <vinschen@redhat.com
3461
3462 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3463 detach to allow reinitialization.
3464
9f9d12b3
AC
34652002-08-22 Andrew Cagney <ac131313@redhat.com>
3466
3467 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3468 attempt).
3469
ebeb39fe
JB
34702002-08-22 Jim Blandy <jimb@redhat.com>
3471
3472 * coffread.c (coff_symfile_read): Don't try to read the line
3473 number table from disk if the image file doesn't have a symbol
3474 table; we'll never actually look at the info anyway, and Windows
3475 ships DLL's with bogus file offsets for the line number data.
3476
5bf1c677
EZ
34772002-08-21 Elena Zannoni <ezannoni@redhat.com>
3478
3479 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3480 an e500 executable.
3481
71b8ef93
MS
34822002-08-21 Michael Snyder <msnyder@redhat.com>
3483
3484 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3485 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
3486 (DEFAULT_MIPS_TYPE): Delete unused macro.
3487 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3488 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 3489
d174216d
JB
34902002-08-21 Jim Blandy <jimb@redhat.com>
3491
3492 * valops.c (value_cast): Simplify and correct logic for doing a
3493 static cast from a pointer to a base class to a pointer to a
3494 derived class.
3495
0ab7a791
AC
34962002-08-21 Andrew Cagney <ac131313@redhat.com>
3497
3498 * infcmd.c (default_print_registers_info): Replace
3499 do_registers_info.
3500 (registers_info): Use gdbarch_print_registers_info instead of
3501 DO_REGISTERS_INFO.
3502 * inferior.h (default_print_registers_info): Replace
3503 do_registers_info.
3504 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3505 (DO_REGISTERS_INFO): Change to a predicate function.
3506 * gdbarch.h, gdbarch.c: Regenerate.
3507
e23792cc
KS
35082002-08-21 Keith Seitz <keiths@redhat.com>
3509
3510 * gdb-events.sh: Add target-changed event.
3511 * gdb-events.c: Regenerated.
3512 * gdb-events.c: Regenerated.
3513 * valops.c (value_assign): Add target-changed event notification
3514 to inlval_register, lval_memory, and lval_reg_frame_relative.
3515
9fb14e79
JB
35162002-08-21 Joel Brobecker <brobecker@gnat.com>
3517
3518 * NEWS: Add an entry regarding the improvement of the next/step
3519 operation on Alpha Tru64 multi-processor machines.
3520
6d39a69f
AC
35212002-08-21 Andrew Cagney <ac131313@redhat.com>
3522
72acd513
AC
3523 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3524 directores.
342af04b 3525 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
3526 * Makefile.in (install-gdbtk): Move to install section.
3527 (rdi-share/libangsd.a): Move to end of file.
3528
fa5f27c7
AC
35292002-08-19 Andrew Cagney <ac131313@redhat.com>
3530
3531 * frame.c (frame_register_unwind): When a register, set addrp to
3532 the register's byte.
3533
5a89d8aa
MS
35342002-08-20 Michael Snyder <msnyder@redhat.com>
3535
3536 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3537 used locally, so move them from the target machine header to here.
3538 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3539 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3540 Make static.
3541 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3542
822e978b
AC
35432002-08-20 Andrew Cagney <cagney@redhat.com>
3544
3545 * NEWS: Mention that the Apollo line was made obsolete.
3546 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3547 m68*-hp-hpux* obsolete.
3548 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3549 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3550 * buildsym.c (make_blockvector): Make static.
3551 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3552 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3553 (ALLDEPFILES): Remove dstread.c.
3554 (dstread.o): Obsolete make rule.
3555 * dstread.c: Makefile obsolete.
3556 * dst.h: Ditto.
3557 * config/m68k/hp300hpux.mt: Ditto.
3558 * config/m68k/hp300hpux.mh: Ditto.
3559 * config/m68k/hp300bsd.mt: Ditto.
3560 * config/m68k/hp300bsd.mh: Ditto.
3561 * config/m68k/apollo68b.mt: Ditto.
3562 * config/m68k/apollo68v.mh: Ditto.
3563 * config/m68k/apollo68b.mh: Ditto.
3564
e41b17f0
MS
35652002-08-20 Michael Snyder <msnyder@redhat.com>
3566
3567 * mips-tdep.c (mips_in_return_stub): Make static.
3568 (mips_gdbarch_init): Set in_solib_return_trampoline.
3569 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3570
d50355b6
MS
35712002-08-20 Michael Snyder <msnyder@redhat.com>
3572
3573 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3574 * gdbarch.c, gdbarch.h: Regenerate.
3575 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3576 Add.
3577 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3578
757a7cc6
MS
35792002-08-20 Michael Snyder <msnyder@redhat.com>
3580
3581 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3582 (mips_gdbarch_init): Set skip_trampoline_code,
3583 in_solib_call_trampoline.
3584 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3585 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3586
c8001721
EZ
35872002-08-20 Elena Zannoni <ezannoni@redhat.com>
3588
3589 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3590
3591 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3592 vector type for ev registers.
3593 (e500_pseudo_register_read): New function.
3594 (e500_pseudo_register_write): New function.
3595 (e500_dwarf2_reg_to_regnum): New function.
3596 (PPC_UISA_NOFP_SPRS): New macro.
3597 (PPC_EV_REGS): New macro.
3598 (PPC_GPRS_PSEUDO_REGS): New macro.
3599 (registers_e500): New register set for e500.
3600 (variants): Add e500 variant.
3601 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3602 before setting architectural dependent variations. Initialize ev
3603 registers numbers. Add case for e500 architecture. Set the
3604 number of pseudo registers.
3605
64366f1c
EZ
36062002-08-20 Elena Zannoni <ezannoni@redhat.com>
3607
3608 * rs6000-tdep.c: Clean up comments.
3609
7e78f0ca
AC
36102002-08-20 Andrew Cagney <cagney@redhat.com>
3611
3612 * h8300-tdep.c: Re-indent file.
3613
697f7479
JB
36142002-08-20 Jim Blandy <jimb@redhat.com>
3615
3616 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3617 default for this.
697f7479 3618
e86ae29f
KS
36192002-08-20 Keith Seitz <keiths@redhat.com>
3620
3621 * breakpoints.c (watch_command_1): Use internal breakpoint
3622 when setting a watchpoint_scope breakpoint.
3623
216b504f
EZ
36242002-08-20 Elena Zannoni <ezannoni@redhat.com>
3625
3626 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3627 (build_builtin_type_vec64i): Ditto.
3628 (build_builtin_type_vec128): Ditto.
3629 (build_builtin_type_vec128i): Ditto.
3630
f7ab6ec6
MS
36312002-08-19 Michael Snyder <msnyder@redhat.com>
3632
3633 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3634 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3635 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3636 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3637 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3638 CALL_DUMMY_ADDRESS): Delete.
3639 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3640 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3641 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3642 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3643 push_return_address.
3644 (mips_register_raw_size, mips_eabi_use_struct_convention,
3645 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3646 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3647 mips_init_extra_frame_info, mips_eabi_push_arguments,
3648 mips_n32n64_push_arguments, mips_push_return_address,
3649 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3650 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3651
b5d1566e
MS
36522002-08-19 Michael Snyder <msnyder@redhat.com>
3653
3654 * mips-tdep.c (mips_frame_num_args): New function.
3655 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3656 frame_saved_pc, frame_args_address, frame_locals_address,
3657 frame_num_args, and frame_args_skip.
3658 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3659 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3660 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3661 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3662
2f1488ce
MS
36632002-08-20 Michael Snyder <msnyder@redhat.com>
3664
3665 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3666 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3667 * mips-tdep.c (mips_store_struct_return): New function.
3668 (mips_extract_struct_value_address): New function.
3669 (mips_gdbarch_init): Set store_struct_return and
3670 extract_struct_value_address.
3671
41ff2da1
DC
36722002-08-20 David Carlton <carlton@math.stanford.edu>
3673
3674 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3675 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3676 (read_file_scope): Check that line_header is nonzero before
3677 decoding macro information.
3678
e5451d58
MK
36792002-08-20 Mark Kettenis <kettenis@gnu.org>
3680
3681 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3682 flag the general-purpose registers as floating-point on targets
3683 that don't support the floating-point registers.
3684
4a6daafa
EZ
36852002-08-20 Elena Zannoni <ezannoni@redhat.com>
3686
3687 * rs6000-tdep.c (altivec_register_p): Delete.
3688 (rs6000_do_altivec_registers): Delete.
3689 (rs6000_altivec_registers_info): Delete.
3690 (rs6000_do_registers_info): Delete.
3691 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3692 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3693
ab4327e0
EZ
36942002-08-20 Elena Zannoni <ezannoni@redhat.com>
3695
3696 * infcmd.c (do_registers_info): Print vector registers in hex
3697 format only.
3698 (print_vector_info): Check that printing registers
3699 makes sense.
3700 (print_float_info): Ditto.
3701
cb1d2653
AC
37022002-08-20 Andrew Cagney <ac131313@redhat.com>
3703
3704 * mips-tdep.c (mips_gdbarch_init): Update.
3705 (mips_o32_extract_return_value): Rewrite.
3706 (mips_o32_store_return_value): Rewrite.
3707 (mips_o32_xfer_return_value): New function.
3708 (mips_xfer_register): Tweak debug print message. Allow for
3709 buf_offset when dumping the value transfered.
3710
dfc3d9b2
AC
37112002-08-20 Andrew Cagney <ac131313@redhat.com>
3712
3713 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3714 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3715 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3716 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3717 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3718
7807aa61
MS
37192002-08-14 Michael Snyder <msnyder@redhat.com>
3720
3721 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3722
489461e2
EZ
37232002-08-19 Elena Zannoni <ezannoni@redhat.com>
3724
3725 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3726 register.
3727 (P): New macro to define a register as a pseudo register.
3728 (R, R4, R8, R16, FR32, R64, R0): Updated.
3729 (struct variant): Add new fields for number of pseudo registers
3730 and number of total registers.
3731 (tot_num_registers): New macro replacing....
3732 (num_registers): ...deleted macro.
3733 (num_registers): New function.
3734 (num_pseudo_registers): New function.
3735 (variants): Update all variants to intialize new fields correctly.
3736 Postpone initialization of number of pseudo regs and real regs.
3737 (init_variants): New function.
3738 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3739 registers offsets.
3740
fcaffe4c
DC
37412002-08-19 David Carlton <carlton@math.stanford.edu>
3742
2c2738a0
DC
3743 * valops.c (search_struct_field): Change error message to treat
3744 return value of 0 from value_static_field as meaning that field is
3745 optimized out.
3746 (value_struct_elt_for_reference): Ditto.
3747 * values.c (value_static_field): Treat an unresolved location the
3748 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
3749 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3750 enclosed. Fix PR gdb/574.
fcaffe4c
DC
3751 * MAINTAINERS: Add self to Write After Approval list.
3752
88658117
AC
37532002-08-19 Andrew Cagney <ac131313@redhat.com>
3754
3755 * mips-tdep.c (mips_xfer_register): New function.
3756 (mips_n32n64_extract_return_value): Rewrite.
3757 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3758 instead of deprecated_extract_return_value.
3759
21283beb
EZ
37602002-08-19 Elena Zannoni <ezannoni@redhat.com>
3761
3762 * rs6000-tdep.c (TDEP): Delete macro.
3763 (branch_dest): Replace use of TDEP macro with its body.
3764 (rs6000_pop_frame): Ditto.
3765 (rs6000_push_arguments): Ditto.
3766 (rs6000_skip_trampoline_code): Ditto.
3767 (rs6000_frame_saved_pc): Ditto.
3768 (rs6000_frame_chain): Ditto.
3769 (rs6000_register_name): Ditto.
3770 (rs6000_register_byte): Ditto.
3771 (rs6000_register_raw_size): Ditto.
3772 (rs6000_register_virtual_type): Ditto.
3773 (rs6000_register_convertible): Ditto.
3774 (rs6000_convert_from_func_ptr_addr): Ditto.
3775
bf072999
DJ
37762002-08-19 Daniel Jacobowitz <drow@mvista.com>
3777
3778 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3779 conditionally.
3780 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3781 MIPS_LINUX_JB_ELEMENT_SIZE.
3782 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3783 for MAX_REGISTER_RAW_SIZE arrays.
3784 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3785 MIPS_LINUX_JB_ELEMENT_SIZE.
3786
9b949a49
PM
37872002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3788
3789 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3790
6d3e79c6
AS
37912002-08-19 Aidan Skinner <aidan@velvet.net>
3792
3793 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3794 ada-valprint.c ada-tasks.c.
3795 (YYFILES): Add ada-exp.y.
3796 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3797 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3798 (ada-exp.tab.o): New target.
3799
06c0b04e
AC
38002002-08-18 Andrew Cagney <ac131313@redhat.com>
3801
3802 * regcache.c (regcache_xfer_part): New function.
3803 (regcache_raw_read_part): New function.
3804 (regcache_raw_write_part): New function.
3805 (regcache_cooked_read_part): New function.
3806 (regcache_cooked_write_part): New function.
3807 * regcache.h (regcache_raw_read_part): Declare.
3808 (regcache_raw_write_part): Declare.
3809 (regcache_cooked_read_part): Declare.
3810 (regcache_cooked_write_part): Declare.
3811
92d1e331
DJ
38122002-08-18 Daniel Jacobowitz <drow@mvista.com>
3813
3814 * remote.c (remote_open_1): Add async_p.
3815 (remote_async_open_1): Delete.
3816 (open_remote_target): Delete.
3817 (remote_open, extended_remote_open): Update calls to remote_open_1.
3818 (remote_async_open, extended_remote_async_open): Call
3819 remote_open_1 instead of remote_async_open_1.
3820
247055de
MK
38212002-08-19 Mark Kettenis <kettenis@gnu.org>
3822
3823 * blockframe.c: Fix a few coding standard violations.
3824
641eda39
MK
38252002-08-19 Mark Kettenis <kettenis@gnu.org>
3826
0b717710
MK
3827 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3828 here from ...
3829 * config/i386/tm-i386sco5.h: ... here. File removed.
3830 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3831
26d28e12 3832 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
3833 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3834 (TM_FILE): Set to tm-i386.h.
3835 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3836 * config/i386/tm-i386v.h: Remove file.
3837 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3838 instead of "i386/tm-i386v.h".
3839 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3840 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3841 "i386/tm-i386v.h".
3842 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3843 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3844 "i386/tm-i386.h".
3845
d4e0bab4
MK
38462002-08-18 Mark Kettenis <kettenis@gnu.org>
3847
3848 * config/i386/nm-i386v.h: Add protection against
3849 multiple-inclusion.
3850 (i386_register_u_addr): Remove prototype.
3851 (register_u_addr): New prototype.
3852 (REGISTER_U_ADDR): Redefine accordingly.
3853 * i386v-nat.c: Improve several comments.
3854 (i386_register_u_addr): Change signature and rename to
3855 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3856 ubase variable.
3857
46cac009
AC
38582002-08-18 Andrew Cagney <ac131313@redhat.com>
3859
3860 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3861 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3862 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3863 deprecated_extract_return_value.
3864 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3865 rename mips_o32o64_push_arguments.
3866 (mips_gdbarch_init): Update.
3867 (mips_extract_return_value): Delete.
3868 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3869 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3870 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3871 (mips_n32n64_extract_return_value): Clone
3872 mips_extract_return_value.
3873 (mips_store_return_value): Delete.
3874 (mips_o32_store_return_value): Clone mips_store_return_value.
3875 (mips_o64_store_return_value): Clone mips_store_return_value.
3876 (mips_eabi_store_return_value): Clone mips_store_return_value.
3877 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3878
d2e4a39e
AS
38792002-08-18 Aidan Skinner <aidan@velvet.net>
3880
0c30c098
AS
3881 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3882 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3883
38842002-08-18 Aidan Skinner <aidan@velvet.net>
3885
3886 * ada-lang.c: Run through gdb_indent.sh.
3887 * ada-lang.h: Run through gdb_indent.sh.
3888 * ada-tasks.c: Run through gdb_indent.sh.
3889 * ada-typeprint.c: Run through gdb_indent.sh.
3890 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 3891
01fc4e33
AC
38922002-08-18 Andrew Cagney <ac131313@redhat.com>
3893
3894 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3895 ABI.
3896
d8ee244c
MK
38972002-08-18 Mark Kettenis <kettenis@gnu.org>
3898
c38d8261
MK
3899 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3900
222db64c
MK
3901 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3902 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3903
c2848c82
MK
3904 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3905 write_register_gen instead of write_register_bytes.
3906
d8ee244c
MK
3907 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3908 i[3456]-*-osf1mk* configurations have been made obsolete.
3909 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3910 i[3456]86-*-osf1mk* hosts obsolete.
3911 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3912 targets obsolete.
3913 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3914 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3915 config/i386/i386m3.mt, config/i386/nm-m3.h,
3916 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3917 config/i386/i386mk.mh, config/i386/i386mk.mt,
3918 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3919 obsolete.
3920 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3921 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3922 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3923
61d8d407
AC
39242002-08-18 Andrew Cagney <ac131313@redhat.com>
3925
3926 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3927 (hppa_value_returned_from_stack): Declare.
3928 (hppa_extract_return_value): Declare.
3929 * config/pa/hppa.mt: New file.
3930 * configure.tgt: Recognize hppa*-*-*.
3931 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3932
0c52bd59
MK
39332002-08-18 Mark Kettenis <kettenis@gnu.org>
3934
3935 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3936 comment.
3937
b5686e99
MK
39382002-08-17 Mark Kettenis <kettenis@gnu.org>
3939
3940 * top.c (gdb_rl_operate_and_get_next): Make sure
3941 operate-and-get-next functions correctly even when the history
3942 list is completely filled.
3943
c1bab85b
AC
39442002-08-18 Andrew Cagney <ac131313@redhat.com>
3945
3946 * MAINTAINERS (Target Instruction Set Architectures): Rename
3947 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3948 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3949 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3950 already listed under Host/Native.
3951
3952 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3953 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3954 mips*-*-*.
3955
32089c7c
AC
39562002-08-17 Andrew Cagney <ac131313@redhat.com>
3957
3958 * config/ia64/ia64.mt: New file.
3959 * config/alpha/alpha.mt: New file.
3960 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3961 ia64-linux-gnu. Mention that ia64-elf is broken.
3962 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3963
b4671f85
MK
39642002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3965
3966 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3967 generic_func_frame_valid instead of func_frame_valid.
3968
c8edd8b4
JB
39692002-08-16 Joel Brobecker <brobecker@gnat.com>
3970
3971 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3972 procfs appears to be broken when debugging on multi-processor
3973 machines. So enable software single stepping in order to avoid
3974 using the procfs interface to do next/step operations, using
3975 internal breakpoints instead.
3976
3977 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3978 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3979 make this pc address equal to the value it would have if the
3980 system stepping capability was used. Also set a new flag used
3981 to ensure that we don't readjust the PC one more time later.
3982
3983 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3984 address by DECR_PC_AFTER_BREAK when software single step is
3985 in use for this architecture, as this has already been taken
3986 care of in handle_inferior_event().
3987
238617f6
JB
39882002-08-16 Joel Brobecker <brobecker@gnat.com>
3989
3990 * infrun.c (handle_inferior_event): Minor reformatting, to make
3991 a rather long condition expression easier to read.
3992
541a7aac
AC
39932002-08-16 Andrew Cagney <ac131313@redhat.com>
3994
3995 * Makefile.in (gdbtk.o): Move to end of file.
3996 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3997 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3998 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3999 (gdbtk-wrapper.o, gdbres.o): Ditto.
4000
f92d4a7b
AC
40012002-08-16 Andrew Cagney <ac131313@redhat.com>
4002
4003 * Makefile.in (copying.o): Separate out compile rule.
4004 (hpux-thread.o, procfs.o, signals.o): Ditto.
4005 (v850ice.o, z8k-tdep.o): Ditto.
4006 (tui-file.o): Move to TUI section.
4007 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4008 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4009
1cce71eb
JB
40102002-08-16 Joel Brobecker <brobecker@gnat.com>
4011
4012 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4013 skip_trampoline_code, for better namespace-proofing.
4014
4015 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4016
0851f23d
JB
40172002-08-16 Joel Brobecker <brobecker@gnat.com>
4018
4019 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4020
f8d40ec8
JB
40212002-08-16 Joel Brobecker <brobecker@gnat.com>
4022
4023 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4024 signal, check whether we hit a breakpoint before checking for a
4025 single step breakpoint. Otherwise, GDB fails to notice that a
4026 breakpoint has been hit when stepping onto a breakpoint.
4027
63d022e0
KS
40282002-08-16 Keith Seitz <keiths@redhat.com>
4029
4030 * gdb-events.sh (clear_gdb_event_hooks): New function.
4031 * gdb-events.c: Regenerate.
4032 * gdb-events.h: Regenerate.
4033
6e31adb3
AC
40342002-08-16 Andrew Cagney <ac131313@redhat.com>
4035
4036 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4037 not_a_sw_breakpoint.
4038 * breakpoint.h (bpstat_stop_status): Add parameter names.
4039
c8189ed1
GS
40402002-08-16 Grace Sainsbury <graces@redhat.com>
4041
4042 * remote.c (remote_insert_hw_breakpoint)
4043 (remote_remove_hw_breakpoint): Fix calculation of length field
4044 for Z-packet.
4045
d05285fa
MS
40462002-08-15 Michael Snyder <msnyder@redhat.com>
4047
466d7106
MS
4048 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4049 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4050 (supply_fpregset): Ditto.
4051
d05285fa
MS
4052 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4053 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4054 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 4055 (TARGET_READ_SP): Delete.
bf1f5b4c 4056 (DO_REGISTERS_INFO): Delete.
102182a9
MS
4057 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4058 Delete.
4059 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4060 from macros to functions.
bf1f5b4c 4061
d05285fa
MS
4062 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4063 (mips_register_convertible, mips_register_convert_to_virtual,
4064 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
4065 (mips_read_sp): New function.
4066 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
4067 (mips_do_registers_info): Make static.
4068 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
4069 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4070 (mips_register_convert_from_type, mips_register_convert_to_type):
4071 New functions.
4072 (mips_gdbarch_init): Set up function_start_offset,
4073 register_virtual_size, pc_in_sigtramp.
d05285fa 4074
e76f1f2e
AC
40752002-08-15 Andrew Cagney <ac131313@redhat.com>
4076
4077 * infcmd.c (vector_info): New function.
4078 (_initialize_infcmd): Add command "info vector".
4079 (print_vector_info): New function.
4080
4081 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4082 * gdbarch.h, gdbarch.c: Regenerate.
4083
4782dc19
AC
40842002-08-15 Andrew Cagney <ac131313@redhat.com>
4085
4086 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4087 ``print_all''. Only print vector registers when ``print_all''.
4088
23e3a7ac
AC
40892002-08-15 Andrew Cagney <ac131313@redhat.com>
4090
8e186fd6
AC
4091 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4092 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4093
23e3a7ac
AC
4094 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4095 Add `args' parameter.
4096 * gdbarch.h, gdbarch.c: Regenerate.
4097
4098 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4099
4100 * infcmd.c (float_info): Call print_float_info.
4101 (print_float_info): New function. By default, print the
4102 floating-point registers.
4103
4104 * arch-utils.h (default_print_float_info): Delete declaration.
4105 * arch-utils.c (default_print_float_info): Delete function.
4106
e0ca2bb9
MK
41072002-08-16 Mark Kettenis <kettenis@gnu.org>
4108
3f733acc
MK
4109 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4110 out define.
4111
7d8d2918
MK
4112 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4113 FRAME.
4114
1c7cc583
MK
4115 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4116 * configure.host: Make i[3456]86-*-aix host obsolete.
4117 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4118 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4119 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4120 config/i386/xm-i386aix.h: Make files obsolete.
4121 * i386aix-nat.c: Make file obsolete.
4122 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4123 (i386aix-nat.o): Make target obsolete.
4124
e0ca2bb9
MK
4125 * config/i386/nm-gnu.h: Removed.
4126 * config/i386/nm-i386gnu.h: New file.
4127 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4128 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4129 Moved here from ...
4130 * config/i386/tm-i386gnu.h: ... here. Removed.
4131 * config/i386/xm-i386gnu.h: Removed.
4132 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4133 (NAT_FILE): Set to nm-i386gnu.h.
4134 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4135 * i386-tdep.c: New file.
4136 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4137 (i386gnu-tdep.o): Specify dependencies.
4138
16057ec7 41392002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 4140
6b99ee2e
MK
4141 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4142 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4143 Adjust a few comments to reflect reality a bit closer.
4144 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4145 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4146 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4147 target_insert_watchpoint, target_remove_watchpoint):
4148 Move defines to ...
4149 * config/i386/nm-i386sco5.h: ... here.
4150 (kernel_u_size): Add prototype. Improve a few comments and add
4151 protection against multiple inclusion.
4152
d9a6f65c
MK
4153 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4154 out define.
4155
047eff6a
MK
4156 * uw-thread.c (SP_ARG0): Define if not already defined.
4157 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4158
dcdb1290
MK
4159 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4160
5d2d0b2a
MK
4161 * config/i386/tm-i386.h: Don't include "regcache.h".
4162
61113f8b
MK
4163 * i387-tdep.h (i387_print_float_info): New prototype.
4164 * i387-tdep.c (print_i387_value, print_i387_ext,
4165 print_i387_status_word, print_i387_control_word): Add `struct
4166 ui_file *' argument and use it for output.
4167 (i387_print_float_info): Renamed from i387_float_info. Add
4168 `struct gdbarch *' and `struct ui_file *' arguments and use the
4169 latter for output.
4170 * i386-tdep.c: Include "i387-tdep.h".
4171 (i386_gdbarch_init): Set print_float_info.
4172 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4173 (FLOAT_INFO): Remove define.
4174
46e0f506
MS
41752002-08-13 Michael Snyder <msnyder@redhat.com>
4176
4177 * mips-tdep.c (mips_push_arguments): Rename to
4178 mips_eabi_push_arguments, and tune for EABI.
4179 (MIPS_REGS_HAVE_HOME_P): Delete.
4180 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4181 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4182 Delete references to mips_regs_have_home_p.
4183
409268de
KS
41842002-08-14 Keith Seitz <keiths@redhat.com>
4185
4186 * Makefile.in (install-gdbtk): Create insight plugin directory.
4187 Install plugins.tcl file.
4188
ffc6a242
KS
41892002-08-14 Keith Seitz <keiths@redhat.com>
4190
4191 * configure.in: Move SUBDIRS to near top of the file so that
4192 --enable options may add things to it.
4193 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4194 * configure: Regenerate.
4195
ebafbe83
MS
41962002-08-13 Michael Snyder <msnyder@redhat.com>
4197
4198 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4199 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4200 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4201
32f6f25d
AC
42022002-08-13 Andrew Cagney <ac131313@redhat.com>
4203
4204 * vax-tdep.c (vax_get_saved_register): Delete function.
4205 (vax_gdbarch_init): Update.
4206 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4207 (ns32k_gdbarch_init): Update.
4208 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4209 (alpha_gdbarch_init): Update.
4210
53826de9
AC
42112002-08-13 Andrew Cagney <cagney@redhat.com>
4212
4213 * regcache.c (init_regcache_descr): Overallocate the
4214 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4215 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4216 nr_raw_registers.
4217 (set_register_cached): Add range checking assertions. Use
4218 current_regcache.
4219
16057ec7 42202002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
4221
4222 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4223 numbers for MMX registers.
4224
7b4c2dce
AC
42252002-08-13 Andrew Cagney <cagney@redhat.com>
4226
4227 * i386-tdep.c (i386_gdbarch_init): Use
4228 generic_unwind_get_saved_register.
4229
1e03ad20
KB
42302002-08-13 Kevin Buettner <kevinb@redhat.com>
4231
4232 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4233 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4234 target vector.
4235 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4236 Delete. Add comment regarding this now-deleted target method.
4237
548bcbec
SC
42382002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4239
4240 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4241 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4242 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4243 real PC and the page number (if it's within the memory bank window).
4244 (m68hc11_pseudo_register_write): Likewise when saving.
4245 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4246 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4247 (m68hc11_register_raw_size): And use 32-bit for it.
4248 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4249 16K memory bank is used by the prog; also use the virtual pc.
4250
7df11f59
SC
42512002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4252
4253 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4254 (m68hc11_gdbarch_init): Install it in gdbarch.
4255 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4256 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4257 (MSYMBOL_SIZE): New for documentation.
4258 (insn_return_kind): Enum to specify how a function returns.
4259 (frame_extra_info): Cleanup and record the return mode.
4260 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4261 register in address computation.
4262 (m68hc11_get_return_insn): New to obtain the return instruction used
4263 by the function.
4264 (m68hc11_frame_init_saved_regs): Take into account the return
4265 instruction used by the function for far and interrupt functions.
4266 (m68hc11_init_extra_frame_info): Take into account page register.
4267 (m68hc11_frame_args_address): Adjust according to the return mode.
4268 (show_regs): Print page register only when it's used.
4269
5706502a
SC
42702002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4271
4272 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4273 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4274 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4275 registers.
4276 (m68hc11_register_raw_size): Likewise.
4277
28fc6740
AC
42782002-08-13 Andrew Cagney <cagney@redhat.com>
4279
4280 * i386-tdep.c (i386_register_name): Handle mmx registers.
4281 (mmx_regnum_p): New function.
4282 (i386_mmx_names): New array.
4283 (mmx_num_regs): New variable.
4284 (i386_pseudo_register_read): New function.
4285 (i386_pseudo_register_write): New function.
4286 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4287
4288 * regcache.c (regcache_raw_read_unsigned): New function.
4289 (regcache_raw_read_signed): New function.
4290 * regcache.h (regcache_raw_read_unsigned): Declare.
4291 (regcache_raw_read_signed): Declare.
4292
a378f419
AC
42932002-08-13 Andrew Cagney <cagney@redhat.com>
4294
4295 * regcache.c (regcache_raw_read_as_address): Delete function.
4296 (regcache_cooked_read_signed): New function.
4297 (regcache_cooked_read_unsigned): New function.
4298 * regcache.h (regcache_cooked_read_signed): Declare.
4299 (regcache_cooked_read_unsigned): Declare.
4300 (regcache_raw_read_as_address): Delete declaration.
4301
4302 * blockframe.c (generic_read_register_dummy): Use
4303 regcache_cooked_read_unsigned.
4304 * i386-tdep.c (i386_extract_struct_value_address): Use
4305 regcache_cooked_read_unsigned.
4306
81967506
SC
43072002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4308
4309 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4310 double sizes according to ELF ABI flags.
4311 (gdbarch_tdep): Record elf_flags.
4312
ffe1f3ee
SC
43132002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4314
4315 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4316 (m6812_prolog): They can appear in 68HC12 function prologue.
4317 (m68hc11_frame_chain): Cleanup.
4318
98216c5d
AC
43192002-08-12 Andrew Cagney <cagney@redhat.com>
4320
4321 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4322 declarations.
4323 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4324 (i386_linux_register_raw_size): Delete function.
4325 (i386_linux_init_abi): Update.
4326 * i386-tdep.c (i386_register_raw_size): Delete function.
4327 (i386_register_byte): Delete function.
4328 (i386_gdbarch_init): Update.
4329 (i386_register_size): Delete array.
4330 (i386_register_offset): Delete array.
4331
4332 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4333 (REGISTER_RAW_SIZE): Delete macro.
4334 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4335 (REGISTER_BYTE): Delete macro.
4336
3b19021e
AS
43372002-08-11 Aidan Skinner <aidan@velvet.net>
4338
4339 * ada-lang.c (ada_lookup_partial_symbol)
4340 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4341 prototype names so that grep ^func works properly.
4342
4343 * ada-lang.c (ada_array_element_type)
4344 (ada_lookup_partial_symbol): Fix typos in parameter list.
4345
4346 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4347 Fix prototype names so that grep ^func works properly.
4348
b063e7a2
AC
43492002-08-10 Andrew Cagney <cagney@redhat.com>
4350 Elena Zannoni <ezannoni@redhat.com>
4351 Martin M. Hunt <hunt@redhat.com>
4352
4353 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4354 (build_builtin_type_vec128i): Set the vector bit.
4355 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4356 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4357 (build_builtin_type_vec64): New function.
4358 (build_builtin_type_vec64i): New function.
4359 (build_gdbtypes): Initialize builtin_type_vec64 and
4360 builtin_type_vec64i.
4361
a7e3c2ad
AC
43622002-08-09 Andrew Cagney <cagney@redhat.com>
4363
4364 * regcache.c (regcache_dump): Compare the register offset
4365 with REGISTER_BYTE.
4366 * arch-utils.c (generic_register_byte): New function.
4367 * arch-utils.h (generic_register_byte): Declare.
4368 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4369 * gdbarch.h, gdbarch.c: Regenerate.
4370
af030b9a
AC
43712002-08-09 Andrew Cagney <cagney@redhat.com>
4372
4373 * regcache.c: Include "gdbcmd.h"
4374 (_initialize_regcache): Add commands "maintenance print
4375 registers", "maintenance print raw-registers" and "maintenance
4376 print cooked-registers".
4377 (enum regcache_dump_what): Define.
4378 (dump_endian_bytes): New function.
4379 (regcache_dump): New function.
4380 (regcache_print): New function.
4381 (maintenance_print_registers): New function.
4382 (maintenance_print_raw_registers): New function.
4383 (maintenance_print_cooked_registers): New function.
4384 * Makefile.in (regcache.o): Update dependencies.
4385
cb3d25d1
MS
43862002-08-09 Michael Snyder <msnyder@redhat.com>
4387
4388 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4389 (mips_push_arguments): Correct some comments. Use paddr_nz
4390 for printing addresses in debug output. Replace static
4391 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4392 (mips_n32n64_push_arguments): New function, cloned from
4393 mips_push_arguments and tuned for the n32/n64 ABI.
4394 (mips_push_register): Buffer needs dynamic allocation.
4395 (mips_print_register): Ditto.
4396 (do_gp_register_row): Ditto.
4397 (mips_store_return_value): Ditto.
4398 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4399
2163ab9d
DH
44002002-08-09 Don Howard <dhoward@redhat.com>
4401
4402 * memattr.c (mem_info_command): Print special case of upper bound
4403 as max CORE_ADDR + 1.
4404
b78bcb18
MS
44052002-08-08 Michael Snyder <msnyder@redhat.com>
4406
4407 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4408 returns structs by ref if they're too big to fit in two registers.
4409
ffabd70d
KB
44102002-08-09 Kevin Buettner <kevinb@redhat.com>
4411
4412 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4413 saved regs value.
4414 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4415 mips_find_saved_regs().
4416 (mips_pop_frame): Likewise.
4417
fbcdb4a3
KB
44182002-08-09 Kevin Buettner <kevinb@redhat.com>
4419
4420 * blockframe.c (frame_saved_regs_register_unwind): Revise
4421 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4422 frames are in use.
4423
3c3bea1c
GS
44242002-08-09 Grace Sainsbury <graces@redhat.com>
4425
4426 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4427 T-packets; the 'a' is not taken as a register number.
4428 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4429 (remote_stopped_data_address): New functions; add to target
4430 vector.
4431 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4432 prototypes to match other implementations of this
4433 function. replace integer argument with pointer -- the length
4434 field in the Z-packet is the length of what is pointed to or 1 if
4435 pointer is null. Add to target vector.
4436 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4437 target vector.
4438
4439 From Mark Salter:
4440 * remote.c (remote_wait): Add support to extract optional
4441 watchpoint information from T-packet. Ignore unrecognized
4442 optional info in T-packet.
4443 (remote_async_wait): Ditto.
4444
5d1d95de
CV
44452002-08-09 Corinna Vinschen <vinschen@redhat.com>
4446
4447 * cli/cli-dump.c: Change fopen modes to use binary open modes
4448 as defined in include/fopen-bin.h throughout.
4449
c86b5b38
MS
44502002-08-08 Michael Snyder <msnyder@redhat.com>
4451
4452 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4453
b30590dc
KB
44542002-08-08 Kevin Buettner <kevinb@redhat.com>
4455
4456 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4457 assertion failure by returning early after a warning.
4458
498868ed
KB
44592002-08-08 Kevin Buettner <kevinb@redhat.com>
4460
4461 * mips-tdep.c (mips_find_saved_regs): Make static.
4462 (mips_frame_init_saved_regs): New function.
4463 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4464 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4465 (mips_find_saved_regs): Delete declaration.
4466
b2dd6311
GS
44672002-08-08 Grace Sainsbury <graces@redhat.com>
4468
3c3bea1c
GS
4469 * remote.c (remote_wait, remote_async_wait): Change
4470 thread_num from int to ULONGEST.
4471 (unpack_varlen_hex): Change result parameter from
4472 int * to ULONGEST *.
b2dd6311 4473
ea47855f
AC
44742002-08-08 Andrew Cagney <ac131313@redhat.com>
4475
4476 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4477 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4478 powerpc*-*-*.
4479 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4480
69db8bae
AC
44812002-08-08 Andrew Cagney <cagney@redhat.com>
4482
4483 * gcore.c (override_derive_stack_segment): Delete variable.
4484 (preempt_derive_stack_segment): Delete function.
4485 (derive_stack_segment): Delete function.
4486 (default_derive_stack_segment): Renamed to derive_stack_segment.
4487 (override_derive_heap_segment): Delete variable.
4488 (preempt_derive_heap_segment): Delete function.
4489 (derive_heap_segment): Delete function.
4490 (default_derive_heap_segment): Rename to derive_heap_segment.
4491
cb811fe7
MS
44922002-08-06 Michael Snyder <msnyder@redhat.com>
4493
4494 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4495 * mips-tdep.c (mips_EABI_use_struct_convention,
4496 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4497 New functions. (mips_use_struct_convention): Delete.
4498 (mips_gdbarch_init): set use_gdbarch_convention.
4499
8b389c40
MS
45002002-08-06 Michael Snyder <msnyder@redhat.com>
4501
4502 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4503 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4504 mips_o32_reg_struct_has_addr): New functions.
4505 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4506
5c27f28a
AC
45072002-08-07 Andrew Cagney <ac131313@redhat.com>
4508
4509 * regcache.c (pseudo_register): Delete function.
4510 (fetch_register): Delete function.
4511 (store_register): Delete function.
4512 (regcache_raw_read, legacy_read_register_gen): Use
4513 target_fetch_registers instead of fetch_register.
4514 (legacy_write_register_gen, regcache_raw_write): Use
4515 target_store_register instead of store_register.
4516 (write_register_bytes): Ditto.
4517
4518 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4519 (STORE_PSEUDO_REGISTER): Delete.
4520 * gdbarch.h, gdbarch.c: Regenerate.
4521
5b331675
CV
45222002-08-06 Corinna Vinschen <vinschen@redhat.com>
4523
4524 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4525 write dump file binary.
4526
6acdf5c7
MS
45272002-08-05 Michael Snyder <msnyder@redhat.com>
4528
4529 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4530 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4531 (mips_gdbarch_init): Set N32 target to be mips64.
4532
b2f01c35
KB
45332002-08-06 Kevin Buettner <kevinb@redhat.com>
4534
4535 * frame.c (find_saved_register): Break out of loop once saved
4536 register address is found. Don't mention sparc in loop comment
4537 anymore.
4538
63db5580
KB
45392002-08-06 Kevin Buettner <kevinb@redhat.com>
4540
4541 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4542 mips_default_saved_regsize to 8.
4543
5e34e75e
AC
45442002-08-06 Andrew Cagney <ac131313@redhat.com>
4545
4546 * gcore.c: Do not include <sys/procfs.h>.
4547 * Makefile.in (gcore.o): Update dependencies.
4548
eb4c54a2
AC
45492002-08-06 Andrew Cagney <cagney@redhat.com>
4550
4551 * configure.tgt: Make arc-*-* obsolete.
4552 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4553 * MAINTAINERS: Make arc-elf obsolete.
4554 * arc-tdep.c: Make file obsolete.
4555 * config/arc/arc.mt: Ditto.
4556 * config/arc/tm-arc.h: Ditto.
4557
ced15480
TR
45582002-08-05 Theodore A. Roth <troth@verinet.com>
4559
c1bab85b 4560 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 4561
b4743822
AC
45622002-08-05 Andrew Cagney <ac131313@redhat.com>
4563
4564 * mcore-tdep.c (mcore_gdbarch_init): Use
4565 generic_unwind_get_saved_register instead of
4566 generic_get_saved_register.
4567 * v850-tdep.c (v850_gdbarch_init): Ditto.
4568 * frv-tdep.c (frv_gdbarch_init): Ditto.
4569 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4570 * s390-tdep.c (s390_gdbarch_init): Ditto.
4571 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4572 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4573 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4574
3956d554
JB
45752002-08-05 Joel Brobecker <brobecker@gnat.com>
4576
4577 * objfiles.h: Add missing #include "symfile.h"
4578
4579 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4580
8249c0d6
AC
45812002-08-04 Andrew Cagney <ac131313@redhat.com>
4582
4583 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4584 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4585 of FIELD_BITSIZE.
4586
b9d14705
DJ
45872002-08-04 Daniel Jacobowitz <drow@mvista.com>
4588
4589 * NEWS: Cleanup and nitpick.
4590
dd73b9bb
AC
45912002-08-03 Andrew Cagney <ac131313@redhat.com>
4592
4593 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4594
043a27f8
AC
45952002-08-03 Andrew Cagney <ac131313@redhat.com>
4596
4597 * Makefile.in (gdbtk-bp.o): Update dependencies.
4598 (gdbtk-register.o): Ditto.
4599 (gdbtk-varobj.o): Ditto.
4600
46ce284d
AC
46012002-08-03 Andrew Cagney <cagney@redhat.com>
4602
4603 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4604 m68hc11_fetch_pseudo_register.
4605 (m68hc11_pseudo_register_write): Replace
4606 m68hc11_store_pseudo_register.
4607 (m68hc11_gdbarch_init): Update.
4608
b66d6d2e
AC
4609Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4610
4611 * gdbarch.sh: Include "gdb_string.h".
4612 * gdbarch.c: Regenerate.
4613
4614 * regcache.c: Include "gdb_string.h".
4615 * ax-general.c: Ditto.
4616 * varobj.c: Ditto.
4617 * std-regs.c: Ditto.
4618 * fbsd-proc.c: Ditto.
4619 * thread.c: Ditto.
4620
4621 * Makefile.in (regcache.o): Update dependencies.
4622 (thread.o, gdbarch.o): Ditto.
4623 (ax-general.o, gdbarch.o): Ditto.
4624 (varobj.o, std-regs.o): Ditto.
4625 (fbsd-proc.o): Specify dependencies.
4626
29e1842b
AC
46272002-08-02 Andrew Cagney <cagney@redhat.com>
4628
4629 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4630 regnum.
4631 (regcache_cooked_write): Ditto.
4632
68365089
AC
46332002-08-02 Andrew Cagney <ac131313@redhat.com>
4634
4635 * regcache.c (regcache_cooked_read): New function.
4636 (regcache_cooked_write): New function.
4637 (read_register_gen): Rewrite using regcache_cooked_read.
4638 (write_register_gen): Rewrite using regcache_cooked_write.
4639
4640 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4641 Declare.
4642
d8124050
AC
46432002-08-02 Andrew Cagney <cagney@redhat.com>
4644
4645 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4646 Replace the architecture methods register_read and register_write.
4647 * gdbarch.h, gdbarch.c: Regenerate.
4648 * regcache.c (init_regcache_descr): Update.
4649 (read_register_gen): Update.
4650 (write_register_gen): Update.
4651 (supply_register): Update comment.
4652
4653 * sh-tdep.c (sh_gdbarch_init): Update.
4654 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4655 `regcache' and `gdbarch' parameters. Make `buffer' a void
4656 pointer. Update code.
4657 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4658 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4659 void pointer. Update code.
4660 (sh64_register_write): Delete.
4661 (sh4_register_read): Delete.
4662 (sh64_register_read): Delete.
4663 (sh4_register_write): Delete.
4664 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4665 void pointer, `to' parameter a void pointer.
4666 (sh_sh64_register_convert_to_raw): Ditto.
4667
a6425924
KB
46682002-08-01 Kevin Buettner <kevinb@redhat.com>
4669
4670 * mips-tdep.c (mips_register_virtual_type): Use architecture
4671 invariant return values.
4672
ff5922b5
AC
46732002-08-01 Andrew Cagney <cagney@redhat.com>
4674
4675 * linux-proc.c: Include "gdb_string.h".
4676 * Makefile.in (linux-proc.o): Update dependency list.
4677
32a6503c
KB
46782002-08-01 Kevin Buettner <kevinb@redhat.com>
4679
4680 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4681 comment.
4682
ccaa32c7
GS
46832002-08-01 Grace Sainsbury <graces@redhat.com>
4684
4685 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4686 to_insert_watchpoint, to_remove_watchpoint,
4687 to_stopped_by_watchpoint, to_stopped_data_address,
4688 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4689 target vecctor. Define their corresponding macros so they call
4690 them.
4691
4692 * target.c: Add default and debug versions of for
4693 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4694 to_insert_watchpoint, to_remove_watchpoint,
4695 to_stopped_by_watchpoint, to_stopped_data_address,
4696 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4697
78fde5f8
KB
46982002-08-01 Kevin Buettner <kevinb@redhat.com>
4699
4700 * mips-tdep.c (mips_register_virtual_type): New function.
4701 (mips_gdbarch_init): Register mips_register_virtual_type()
4702 with gdbarch machinery.
4703 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4704 this file instead of tm-bigmips.h.
4705 (MIPS_REGSIZE): Delete this macro.
4706 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4707 multiarch version in mips-tdep.c will be found.
4708
db034ac5
AC
47092002-08-01 Andrew Cagney <cagney@redhat.com>
4710
4711 * NEWS: Menion that CHILL has been made obsolete.
4712
4713 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
4714 * stabsread.c (read_range_type): Ditto.
4715 * gdbtypes.h: Ditto.
4716 * language.c (binop_type_check): Ditto.
4717 (binop_result_type): Ditto.
4718 (integral_type): Ditto.
4719 (character_type): Ditto.
4720 (string_type): Ditto.
4721 (boolean_type): Ditto.
4722 (structured_type): Ditto.
4723 (lang_bool_type): Ditto.
4724 (binop_type_check): Ditto.
4725 * language.h (_LANG_chill): Ditto.
4726 * dwarfread.c (set_cu_language): Ditto.
4727 * dwarfread.c (CHILL_PRODUCER): Ditto.
4728 * dwarfread.c (handle_producer): Ditto.
4729 * expression.h (enum exp_opcode): Ditto.
4730 * eval.c: Ditto for comments.
4731 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4732 * expprint.c (print_subexp): Ditto.
4733 (print_subexp): Ditto.
4734 * valops.c (value_cast): Ditto.
4735 (search_struct_field): Ditto.
4736 * value.h (COERCE_VARYING_ARRAY): Ditto.
4737 * symfile.c (init_filename_language_table): Ditto.
4738 (add_psymbol_with_dem_name_to_list): Ditto.
4739 * valarith.c (value_binop): Ditto.
4740 (value_neg): Ditto.
4741 * valops.c (value_slice): Ditto.
4742 * symtab.h (union language_specific): Ditto.
4743 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4744 (SYMBOL_DEMANGLED_NAME): Ditto.
4745 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4746 * defs.h (enum language): Ditto.
4747 * symtab.c (got_symtab): Ditto.
4748 * utils.c (fprintf_symbol_filtered): Ditto.
4749
4750 * ch-typeprint.c: Make file obsolete.
4751 * ch-valprint.c: Make file obsolete.
4752 * ch-lang.h: Make file obsolete.
4753 * ch-exp.c: Make file obsolete.
4754 * ch-lang.c: Make file obsolete.
4755
4756 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4757 CHILL_LIB.
4758 (TARGET_FLAGS_TO_PASS): Ditto.
4759 (CHILLFLAGS): Obsolete.
4760 (CHILL): Obsolete.
4761 (CHILL_FOR_TARGET): Obsolete.
4762 (CHILL_LIB): Obsolete.
4763 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4764 ch-valprint.c.
4765 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4766 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4767 ch-lang.o.
4768 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4769 targets.
4770
8aaf0b47
JB
47712002-07-31 Joel Brobecker <brobecker@gnat.com>
4772
4773 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4774 This does not change anything at the moment, but will be helpful
4775 later when full Ada support is integrated.
4776
f3a7b3a5
KB
47772002-07-31 Kevin Buettner <kevinb@redhat.com>
4778
4779 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4780 help message.
4781
fb850278
KB
47822002-07-31 Kevin Buettner <kevinb@redhat.com>
4783
4784 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4785 and save it in a local variable. Use variable in later test.
4786
e3bddbfa
KB
47872002-07-31 Kevin Buettner <kevinb@redhat.com>
4788
4789 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4790 test. (Thanks to Daniel Jacobowitz.)
4791
28d169de
KB
47922002-07-31 Kevin Buettner <kevinb@redhat.com>
4793
4794 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4795 (mips_abi_strings): Add "n64".
4796 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4797
7fe7e44e
KB
47982002-07-31 Kevin Buettner <kevinb@redhat.com>
4799
4800 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4801 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4802
c6caf090
KB
48032002-07-31 Kevin Buettner <kevinb@redhat.com>
4804
4805 * utils.c (host_pointer_to_address, address_to_host_pointer):
4806 Use gdb_assert() instead of explicit call to internal_error().
4807
c41669e0
KB
48082002-07-30 Kevin Buettner <kevinb@redhat.com>
4809
4810 * Makefile.in (rs6000-nat.o): Update dependencies.
4811
4812 From Nicholas Duffek:
4813 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4814 (aix-thread.o): New rule.
4815 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4816 * config/powerpc/aix432.mh: New file.
4817
2fda4977
DJ
48182002-07-30 Daniel Jacobowitz <drow@mvista.com>
4819
4820 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4821 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4822 (fetch_core_registers, ppc_linux_supply_gregset)
4823 (ppc_linux_supply_fpregset): New functions.
4824 (ppc_linux_regset_core_fns): New.
4825 (_initialize_ppc_linux_tdep): Call add_core_fns.
4826 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4827 and ppc_linux_supply_gregset.
4828 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4829 (supply_fpregset): Call ppc_linux_supply_fpregset.
4830 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4831 corelow.o.
4832 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4833
729051e6
DJ
48342002-07-30 Daniel Jacobowitz <drow@mvista.com>
4835
4836 * symtab.c (lookup_symbol): Demangle before lowercasing.
4837
5f8a3188
AC
48382002-07-30 Andrew Cagney <ac131313@redhat.com>
4839
4840 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4841 declaration.
4842 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4843 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4844 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4845 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4846 "gdb_string.h".
4847 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4848 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4849 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4850 (avr-tdep.o, mon960-rom.o): Ditto.
4851 (aout_stabs_gnu_h): Define.
4852 (symtab_h): Remove $(gdb_obstack_h).
4853
67f07146
JB
48542002-07-30 Jim Blandy <jimb@redhat.com>
4855
4856 Patch from David Carlton <carlton@math.stanford.edu>:
4857 * gdbinit.in: Move the `dir' commands that add GDB's own source
4858 directory to the search path to the end, so that the `gdb' source
4859 directory will be searched first.
4860
04ea0df1
AC
48612002-07-29 Andrew Cagney <ac131313@redhat.com>
4862
4863 * gdb_obstack.h: New file.
4864 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4865 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4866 * objfiles.h: Include "gdb_obstack.h".
4867 * Makefile.in (gdb_obstack_h): Define.
4868 (symtab_h): Add $(gdb_obstack_h).
4869 (objfiles_h): Add $(gdb_obstack_h).
4870
4871 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4872 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4873 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4874 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4875 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4876 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4877 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4878 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4879
4880 * Makefile.in (bcache.o): Update dependencies.
4881 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4882 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4883 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4884 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4885 (stabsread.o, symfile.o, symmisc.o): Ditto.
4886 (symtab.o, typeprint.o, macroexp.o): Ditto.
4887 (macrotab.o, mdebugread.o): Ditto.
4888 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4889 (coff_ecoff_h, aout_aout64_h): Define.
4890 (aout_stabs_gnu_h, libaout_h): Define.
4891
d138e37a
AC
48922002-07-29 Andrew Cagney <cagney@redhat.com>
4893
4894 * regcache.c (struct regcache_descr): Rename nr_registers to
4895 nr_cooked_registers. Revise comments describing the structure
4896 member fields.
4897 (init_regcache_descr): Update.
4898 (init_legacy_regcache_descr): Update.
4899 (read_register_gen, write_register_gen): When a cooked register in
4900 the raw register range, directly access the value from the raw
4901 register cache.
4902
460e6ec3
AC
49032002-07-29 Andrew Cagney <ac131313@redhat.com>
4904
4905 * z8k-tdep.c: Do not include "obstack.h".
4906 * h8300-tdep.c, h8500-tdep.c: Ditto.
4907 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4908 * valprint.c, v850-tdep.c: Ditto.
4909 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4910 * mn10200-tdep.c: Ditto.
4911
4912 * Makefile.in (z8k-tdep.o): Update dependencies.
4913 (m68hc11-tdep.o, valprint.o): Ditto.
4914 (v850-tdep.o, d10v-tdep.o): Ditto.
4915 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4916 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4917 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4918 (sh_opc_h, gdb_sim_sh_h): Define.
4919 (elf_sh_h, elf_bfd_h): Define.
4920 (opcode_m68hc11_h): Define.
4921 (OPCODES_SRC, OPCODES_DIR): define.
4922 (OPCODES): Use $(OPCODES_DIR).
4923 (gdb_sim_d10v_h): Rename sim_d10v_h.
4924 (gdb_sim_arm_h): Rename sim_arm_h.
4925
790c9cf0
KB
49262002-07-26 Kevin Buettner <kevinb@redhat.com>
4927
4928 * utils.c (host_pointer_to_address, address_to_host_pointer):
4929 Change internal_error() message to indicate function responsible
4930 for the error.
4931
9647fa49
KB
49322002-07-26 Kevin Buettner <kevinb@redhat.com>
4933
4934 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4935 calls to local_hex_string_custom().
4936
dabbe2c0
KB
49372002-07-26 Kevin Buettner <kevinb@redhat.com>
4938
4939 * irix5-nat.c: Move IRIX shared library support from here...
4940 * solib-irix.c: ...to here. Revised substantially to work with
4941 generic solib framework.
4942
b96d0a4e
KB
4943 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4944 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4945 * mips-irix-tdep.c: New file.
4946
313fb2f6
KB
4947 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4948 (mips-irix-tdep.o, solib-irix.o): New rules.
4949 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4950 solib-irix.o.
4951 * config/mips/irix6.mt (TDEPFILES): Likewise.
4952 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4953
ab2eaf26
KB
49542002-07-26 Kevin Buettner <kevinb@redhat.com>
4955
177e4768 4956 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
4957 disabled (via ``#if 0'') includes.
4958
7244546a
KB
49592002-07-26 Kevin Buettner <kevinb@redhat.com>
4960
4961 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4962 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4963 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4964 Add support for the fpscr register.
4965 * rs6000-nat.c (regmap, fetch_inferior_registers)
4966 (store_inferior_registers, fetch_core_registers): Likewise.
4967
dd7be90a
KB
49682002-07-26 Kevin Buettner <kevinb@redhat.com>
4969
4970 * rs6000-nat.c (language.h): Include.
4971 (special_regs): Delete this array.
4972 (regmap): New function.
4973 (fetch_register, store_register): Use regmap() to map gdb
4974 register numbers to ptrace register numbers. Also, use
4975 outputs from regmap() to make decisions regarding type of
4976 ptrace() call to make. In particular, don't compare against
4977 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4978 (fetch_inferior_registers, store_inferior_registers): Where
4979 possible, obtain register numbers from tdep struct. Don't
4980 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4981 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4982 (LAST_UISA_SP_REGNUM): Delete.
4983
11bf77db
KB
49842002-07-25 Kevin Buettner <kevinb@redhat.com>
4985
4986 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
4987 (fetch_registers, store_register, fetch_core_registers): Don't
4988 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
4989 regcache_collect() as appropriate.
4990 (find_toc_address): Format hex address with local_hex_string().
4991
06afebeb
AC
49922002-07-25 Andrew Cagney <ac131313@redhat.com>
4993
4994 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4995 bfd/elf32-frv.c.
4996
8c554d79
TT
49972002-07-24 Tom Tromey <tromey@redhat.com>
4998
4999 * jv-exp.y: Marked all strings with _().
5000 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5001 internal_error.
5002 (MethodInvocation, CastExpression, parse_number, yyerror,
5003 java_type_from_name, push_expression_name, yylex): Typo fixes.
5004
e4c242d9
DJ
50052002-07-24 Daniel Jacobowitz <drow@mvista.com>
5006
5007 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5008 (tee_file_flush, tee_file_write, tee_file_fputs)
5009 (tee_file_isatty): New.
5010 * ui-file.h (tee_file_new): Add prototype.
5011
ebf56fd3
AS
50122002-07-24 Aidan Skinner <aidan@velvet.net>
5013
5014 * ada-lang.c: Change k&r style function definitions to prototyped
5015 form.
5016 * ada-typeprint.c: Change k&r style function definitions to prototyped
5017 form.
5018 * ada-valprint.c: Change k&r style function definitions to prototyped
5019 form.
5020
7fb623f7
AC
50212002-07-24 Andrew Cagney <cagney@redhat.com>
5022
5023 * README: Remove reference to remote-bug.
5024 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5025 remote-bug.c.
5026 (m88k-nat.o): Delete rule.
5027 (m88k-tdep.o): Delete rule.
5028 (remote-bug.o): Delete rule.
5029 * MAINTAINERS: Mark as obsolete.
5030 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5031 * m88k-tdep.c: Make file obsolete.
5032 * config/m88k/m88k.mh: Ditto.
5033 * config/m88k/delta88v4.mh: Ditto.
5034 * config/m88k/delta88v4.mt: Ditto.
5035 * config/m88k/delta88.mt: Ditto.
5036 * config/m88k/delta88.mh: Ditto.
5037 * remote-bug.c: Ditto.
5038 * config/m88k/tm-delta88.h: Ditto.
5039 * config/m88k/nm-delta88v4.h: Ditto.
5040 * config/m88k/xm-delta88.h: Ditto.
5041 * config/m88k/xm-dgux.h: Ditto.
5042 * config/m88k/tm-m88k.h: Ditto.
5043 * config/m88k/nm-m88k.h: Ditto.
5044 * config/m88k/tm-delta88v4.h: Ditto.
5045 * m88k-nat.c: Ditto.
5046 * cxux-nat.c: Ditto.
5047 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5048 and m88*-*-* obsolete.
5049 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5050 m88*-*-* obsolete.
5051
37611a2b
AC
50522002-07-24 Andrew Cagney <cagney@redhat.com>
5053
5054 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5055 constant. Same for local pointer variables.
5056 (extract_signed_integer): Ditto.
5057 * defs.h (extract_unsigned_integer): Update.
5058 (extract_signed_integer): Update.
5059
1aaa5f99
AC
50602002-07-24 Andrew Cagney <cagney@redhat.com>
5061
5062 * regcache.c (regcache_raw_write): Change buf parameter to a
5063 constant void pointer.
5064 (regcache_raw_read): Change buf parameter to a void pointer.
5065 (legacy_write_register_gen): Change myaddr parameter a constant
5066 void pointer.
5067 (supply_register): Change val parameter to a const void pointer.
5068 * regcache.h (regcache_raw_write): Update declaration.
5069 (regcache_raw_read): Update declaration.
5070 (supply_register): Update declaration.
5071
b4f5539f
TT
50722002-07-24 Tom Tromey <tromey@redhat.com>
5073
5074 * defs.h (gdb_readline_wrapper): Declare.
5075 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5076 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5077 * top.c (gdb_readline_wrapper): New function.
5078 (command_line_input): Use it.
5079
0818c12a
AC
50802002-07-24 Andrew Cagney <cagney@redhat.com>
5081
5082 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5083 regcache_read and regcache_write.
5084 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5085 * regcache.c: Update.
5086 * sh-tdep.c (sh64_push_arguments): Update comment.
5087 (sh_pseudo_register_read): Update.
5088 (sh_pseudo_register_write): Update.
5089 (sh4_register_read): Update.
5090 (sh4_register_write): Update.
5091 (sh64_pseudo_register_read): Update.
5092 (sh64_pseudo_register_write): Update.
5093 (sh64_register_read): Update.
5094 (sh64_register_write): Update.
5095 * i386-tdep.c (i386_extract_return_value): Update.
5096 (i386_extract_struct_value_address): Update.
5097 (i386_extract_return_value): Update.
5098 * blockframe.c (generic_read_register_dummy): Update.
5099 (generic_call_dummy_register_unwind): Update
5100 * infrun.c (write_inferior_status_register): Update.
5101
f7321c06
JB
51022002-07-23 Jim Blandy <jimb@redhat.com>
5103
5104 * parser-defs.h (expression_context_pc): Make this extern.
5105 (Thanks to Michael Snyder.)
5106
2037aebb
AC
51072002-07-23 Andrew Cagney <ac131313@redhat.com>
5108
5109 GDB 5.2.1 released from 5.2 branch.
5110 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5111 * README: Update to mention 5.2.1.
5112
66504d44
MS
51132002-07-23 Mark Salter <msalter@redhat.com>
5114
5115 * remote.c (remote_read_bytes): Fix check for error.
5116
27bae383
KB
51172002-07-22 Kevin Buettner <kevinb@redhat.com>
5118
5119 * aix-thread.c (language.h): Include.
5120 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5121 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5122 Print newlines at end of debug messages.
5123 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5124 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5125
51262002-07-22 Kevin Buettner <kevinb@redhat.com>
5127
5128 * aix-thread.c (ppc-tdep.h): Include.
5129 (special_register_p): New function.
5130 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5131 (store_regs_user_thread): Use register number information from
5132 gdbarch_tdep struct instead of hardcoded offsets relative to
5133 FIRST_UISA_SP_REGNUM.
5134 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5135 special_register_p() instead of using FPLAST_REGNUM and
5136 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5137 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5138 will be MQ's register number.
5139
51402002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
5141
5142 * aix-thread.c (ops): Rename to aix_thread_ops.
5143 (base_ops): Rename to base_target.
5144 (ops_attach): Rename to aix_thread_attach.
5145 (ops_detach): Rename to aix_thread_detach.
5146 (ops_resume): Rename to aix_thread_detach.
5147 (ops_wait): Rename to aix_thread_wait.
5148 (ops_kill): Rename to aix_thread_kill.
5149 (init_ops): Rename to init_aix_thread_ops.
5150 (ops_fetch_register): Rename to aix_thread_fetch_register.
5151 (ops_store_register): Rename to aix_thread_store_register.
5152 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5153 (ops_thread_alive): Rename to aix_thread_thread_alive.
5154 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5155 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5156 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5157 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5158 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5159 (store_regs_lib): Rename to store_regs_user_thread.
5160 (store_regs_kern): Rename to store_regs_kernel_thread.
5161
27bae383 51622002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
5163
5164 * aix-thread.c (ops_prepare_to_store): Eliminate.
5165 (init_ops): Don't initialize ops.prepare_to_store.
5166 (store_regs_kern): Pre-fetch register buffers from child,
5167 because some registers may not be in the cache. Copy
5168 regs from register cache only if they are cached.
5169 (store_regs_lib): Copy regs from register cache only
5170 if they are cached.
5171 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5172 fill_gprs64): Ditto.
5173
61c5da0b
KB
51742002-07-22 Kevin Buettner <kevinb@redhat.com>
5175
5176 * aix-thread.c (gdb_assert.h): Include.
5177 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5178 register sizes (from register cache) match size of buffer holding
5179 register data.
5180 (fill_sprs32): Change parameter types to match those in the ptrace()
5181 buffer.
5182 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5183 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5184
51852002-07-22 Michael Snyder <msnyder@redhat.com>
5186
5187 * aix-thread.c (supply_sprs64): Cosmetic change.
5188 (supply_sprs32): Cosmetic change.
5189 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5190 (fill_sprs64): Use regcache_collect instead of read_register.
5191 (store_regs_lib): Use regcache_collect instead of
5192 read_register. Use fill_sprs32 instead of fill_sprs64,
5193 if debugging a 32-bit architecture.
5194 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5195 out of the register cache, instead of passing a pointer into
5196 the register cache directly to ptrace. Use regcache_collect
5197 insteaad of read_register.
5198 (ops_prepare_to_store): Use target_read_registers instead
5199 of read_register_bytes.
5200
36479eb1
AS
52012002-07-20 Aidan Skinner <aidan@velvet.net>
5202
5203 * MAINTAINERS: Add self under write after approval.
5204
80ae6ee2
AS
52052002-07-20 Aidan Skinner <aidan@velvet.net>
5206
5207 * ada-tasks.c: Change k&r style function definitions to prototyped
5208 form.
5209
8a8ab2b9
AC
52102002-07-19 Andrew Cagney <ac131313@redhat.com>
5211
5212 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5213 * x86-64-tdep.c: Include "objfiles.h".
5214 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5215 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5216
fb16b900
ML
52172002-07-17 Michal Ludvig <michal@suse.cz>
5218
5219 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5220 (update_context): Initialise cfa variable.
5221
0fe7bf7b
MS
52222002-07-17 Michael Snyder <msnyder@redhat.com>
5223
5224 * aix-thread.c: Shorten some long lines.
5225 Bring comments into line with code spec.
5226
488f131b
JB
52272002-07-18 Joel Brobecker <brobecker@gnat.com>
5228
5229 * infrun.c: Re-indent using gdb_indent.sh.
5230
46c415d2
JB
52312002-07-18 Joel Brobecker <brobecker@gnat.com>
5232
5233 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5234 Leave the indentation temporarily untouched, to minimize the diffs.
5235
cdecafbe
EZ
52362002-07-18 Elena Zannoni <ezannoni@redhat.com>
5237
5238 * stabsread.c: Make os9k sections of the code obsolete,
5239 for real this time.
5240 * stabsread.h: Make os9k sections of the code obsolete.
5241
7b6aa020
ML
52422002-07-18 Michal Ludvig <mludvig@suse.cz>
5243
09ec9b38
ML
5244 * linux-low.c (regsets_store_inferior_registers): Add free()
5245 at the end of a loop to prevent memory leak.
5246 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5247 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5248 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5249 line a comment.
4894ac5d 5250 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5251
233282cd
JB
52522002-07-17 Jim Blandy <jimb@redhat.com>
5253
5254 * macrocmd.c (info_macro_command): Remove newline from error
5255 message.
5256
7b6aa020 52572002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
5258
5259 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5260 (sh_gdbarch_init): Use it for sh-dsp.
5261
f7ef9339
KB
52622002-07-16 Kevin Buettner <kevinb@redhat.com>
5263
5264 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5265 64-bit DWARF2 format.
5266
8dd72958
JB
52672002-07-16 Joel Brobecker <brobecker@gnat.com>
5268
5269 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5270 <sys/proc.h> when not available.
5271
a99a9e1b
AC
52722002-07-16 Andrew Cagney <ac131313@redhat.com>
5273
5274 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5275 * stabsread.c: Make os9k sections of the code obsolete.
5276 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5277 * config/i386/i386os9k.mt: Make file obsolete.
5278 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5279 (COMMON_OBS): Remove os9kread.o
5280 (SFILES): Remove os9kread.c.
5281 (os9kread.o, remote-os9k.o): Make target obsolete.
5282 * remote-os9k.c: Make file obsolete.
5283 * os9kread.c: Make file obsolete.
5284 * Makefile.in
5285
7a3085c1
AC
52862002-07-16 Andrew Cagney <ac131313@redhat.com>
5287
5288 * NEWS: Mention that the FR30 has been made obsolete.
5289 * fr30-tdep.c: Make file obsolete.
5290 * config/fr30/tm-fr30.h: Ditto.
5291 * config/fr30/fr30.mt: Ditto.
5292 * configure.tgt: Make fr30-*-elf obsolete.
5293 * MAINTAINERS: Make fr30-elf obsolete.
5294
28a93f5a
PM
52952002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5296
5297 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5298 found is not inside a section.
5299
be006b8b
KB
53002002-07-15 Kevin Buettner <kevinb@redhat.com>
5301
5302 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5303 strerror().
5304 (pdc_realloc): Use xrealloc() instead of realloc().
5305
14fa3751
KB
53062002-07-15 Kevin Buettner <kevinb@redhat.com>
5307
5308 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5309 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5310 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5311 macros.
5312
42cc437f
KB
53132002-07-15 Kevin Buettner <kevinb@redhat.com>
5314
5315 * aix-thread.c (ptrace_check): Eliminate goto.
5316 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5317 problem.
5318
8e2c28d4
KB
53192002-07-15 Kevin Buettner <kevinb@redhat.com>
5320
5321 * aix-thread.c (gdbcmd.h): Include.
5322 (DEBUG, DBG, DBG2, dbg): Eliminate.
5323 (debug_aix_thread): New static global.
5324 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5325 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5326 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5327 invocations to DBG and DBG2 macros to test against
5328 ``debug_aix_thread'' and call fprintf_unfiltered().
5329 (_initialize_aix_thread): Add new command "set debug aix-thread".
5330
30413464
AC
53312002-07-15 Andrew Cagney <ac131313@redhat.com>
5332
5333 From Gerhard Tonn <TON@de.ibm.com>:
5334 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5335 instead of supply_register.
5336
7c43edc1
AC
53372002-07-15 Andrew Cagney <ac131313@redhat.com>
5338
5339 * dwarf2cfi.c: Include "gdb_assert.h".
5340 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5341 non-NULL.
5342 (update_context): Do not use __func__. Add missing ``break''.
5343 (update_context): Do not use __func__.
5344
9364a0ef
EZ
53452002-07-15 Elena Zannoni <ezannoni@redhat.com>
5346
5347 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5348 and its setting. Set gdbarch instruction printing functions
5349 directly. For non-rs6000 case use new function
5350 gdb_print_insn_powerpc.
5351 (gdb_print_insn_powerpc): New function.
5352
3fbeef0b
AC
53532002-07-13 Andrew Cagney <ac131313@redhat.com>
5354
92eb23c5 5355 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
5356 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5357 * configure.tgt: Mark d30v-*-* as obsolete.
5358 * d30v-tdep.c: Mark file as obsolete.
5359 * config/d30v/d30v.mt: Ditto.
5360 * config/d30v/tm-d30v.h: Ditto.
5361
aacb1f0a
AS
53622002-07-13 Aidan Skinner <aidan@velvet.net>
5363
5364 * ada-tasks.c (add_task_entry): replace calls to
5365 malloc() with xmalloc
5366 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5367
5368 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5369 ada_finish_decode_line_1, all_sals_for_line
5370 ada_breakpoint_rewrite): replace calls to free() with xfree()
5371
c11d79f2
KB
53722002-07-12 Kevin Buettner <kevinb@redhat.com>
5373
5374 From Nicholas Duffek (with minor changes by Martin Hunt,
5375 Louis Hamilton, and Kevin Buettner):
5376 * aix-thread.c: New file.
5377
8e19ed76
PS
53782002-07-12 Petr Sorfa <petrs@caldera.com>
5379
5380 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5381 complaint for invalid attribute class or form.
5382 (read_func_scope): DW_AT_frame_base
5383 better handling of DW_AT_block*.
5384 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5385 better handling of DW_AT_block*.
5386 (read_common_block): DW_AT_location
5387 better handling of DW_AT_block*.
5388 (read_partial_die): DW_AT_location better handling
5389 of DW_AT_block*.
5390 (new_symbol): DW_AT_external better handling of
5391 DW_AT_block*. Proper initialization of variable
5392 "addr".
5393 (attr_form_is_block): New function that returns true
5394 if the attribute's form is of DW_FORM_block*.
5395
295401f7
DJ
53962002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5397
5398 * valops.c (find_method_list): Remove comment about
5399 removed STATIC_MEMFUNCP argument.
5400 (value_find_oload_method_list): Likewise.
5401
e42dc924
KB
54022002-07-12 Kevin Buettner <kevinb@redhat.com>
5403
5404 From Nicholas Duffek:
5405 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5406 target_new_objfile_hook.
5407
6904b546
KB
54082002-07-12 Kevin Buettner <kevinb@redhat.com>
5409
5410 From Nicholas Duffek:
5411 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5412 csect.
5413
53fe9346
AC
54142002-07-12 Andrew Cagney <cagney@redhat.com>
5415
5416 * MAINTAINERS: Mention --enable-sim-build-warnings.
5417 (m68hc11-elf): Disable sim build warnings.
5418 (m32r-elf): Mark as broken obsolete candidate.
5419 (x86_64-linux-gnu): Mark as buildable with -Werror.
5420 (arm-elf): Change -w to ``,'' which enables warnings but not
5421 -Werror.
5422
af5f3db6
AC
54232002-07-12 Andrew Cagney <ac131313@redhat.com>
5424
5425 * bcache.h: Update copyright.
5426 (struct bstring, struct bcache): Move definition to "bcache.c".
5427 Replaced by opaque declaration.
5428 (bcache_xfree): Replace free_bcache.
5429 (bcache_xmalloc, bcache_memory_used): Declare.
5430
5431 * bcache.c: Update copyright.
5432 (struct bstring, struct bcache): Moved to here from "bcache.h".
5433 Update comments.
5434 (bcache_xmalloc, bcache_memory_used): New functions.
5435 (bcache_xfree): Replace function free_bcache.
5436
5437 * Makefile.in (objfiles.o): Add $(bcache_h).
5438 (objfiles_h): Remove $(bcache_h).
5439 (symfile.o): Add $(bcache_h).
5440
5441 * symmisc.c: Update copyright.
5442 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5443 (print_objfile_statistics): Use bcache_memory_used.
5444
5445 * symfile.c: Include "bcache.h".
5446 (reread_symbols): Use bcache_xfree.
5447 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5448 (add_psymbol_to_list): Pass psymbol_cache by value.
5449 (add_psymbol_with_dem_name_to_list): Ditto.
5450
5451 * objfiles.h: Update copyright.
5452 (struct bcache): Declare opaque. Do not include "bcache.h".
5453 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5454 bcache'' pointers.
5455 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5456
5457 * objfiles.c: Include "bcache.h". Update copyright.
5458 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5459 macro_cache.
5460 (free_objfile): Use bcache_xfree.
5461
444199e7
GS
54622002-07-11 Grace Sainsbury <graces@redhat.com>
5463
5464 * monitor.c (monitor_fetch_register): Make name a constant.
5465 (monitor_store_register): Same.
5466
261397f8
DJ
54672002-07-11 Daniel Jacobowitz <drow@mvista.com>
5468
5469 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5470 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5471 (finish_block) For non-function blocks, hash the symbol table. For
5472 function blocks, mark the symbol table as unhashed.
5473 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5474 (msymbol_hash_iw): Likewise.
5475 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5476 value.
5477 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5478 (lookup_minimal_symbol): Likewise for both.
5479 * symtab.h (struct block): Add `hashtable' flag. Comment the
5480 hashtable.
5481 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5482 (ALL_BLOCK_SYMBOLS): Update.
5483 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5484 (struct symbol): Add `hash_next' pointer.
5485 * symtab.c (lookup_block_symbol): Search using the hash table when
5486 possible.
5487 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5488 (search_symbols, find_addr_symbol): Likewise.
5489
5490 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5491 (read_dst_symtab): Likewise.
5492 * jv-lang.c (get_java_class_symtab): Likewise.
5493 * mdebugread.c: Include "gdb_assert.h".
5494 (shrink_block): Assert that the block being modified is not hashed.
5495 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5496 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5497 symbols.
5498 (dump_symtab): Recognize hashed blocks.
5499 * printcmd.c (print_frame_args): Assert that function blocks do not
5500 have hashed symbol tables.
5501 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5502 (fill_in_ada_prototype, debug_print_block): Likewise.
5503 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5504
6f0eaa01
CV
55052002-07-11 Corinna Vinschen <vinschen@redhat.com>
5506
5507 * stack.c (print_frame): Use result of frame_address_in_block()
5508 instead of fi->pc when evaluating symbols.
5509 (backtrace_command_1): Ditto.
5510
a208b0cb
AC
55112002-07-11 Andrew Cagney <cagney@redhat.com>
5512
5513 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5514 Make static.
5515
5516 * arm-tdep.c (arm_register_name): Make return type constant.
5517
a6b6b089
AC
55182002-07-10 Andrew Cagney <ac131313@redhat.com>
5519
5ae5f592
AC
5520 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5521 prototype.
5522 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5523 * s390-tdep.c (s390_fp_regnum): Ditto.
5524 (s390_read_fp): Ditto.
5525 (s390_pop_frame): Ditto.
5526 (_initialize_s390_tdep): Ditto.
5527 * remote.c (get_remote_state): Ditto.
5528 * procfs.c (mappingflags): Ditto.
5529 * memattr.c (_initialize_mem): Ditto.
5530 * mcore-tdep.c (mcore_pop_frame): Ditto.
5531 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5532 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5533 * language.c (set_case_str): Ditto.
5534 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5535 * frv-tdep.c (new_variant): Ditto.
5536 (frv_stopped_data_address): Ditto.
5537 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5538 (context_alloc): Ditto.
5539 (frame_state_alloc): Ditto.
5540 (unwind_tmp_obstack_init): Ditto.
5541 (unwind_tmp_obstack_free): Ditto.
5542 (cfi_read_fp): Ditto.
5543 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5544 (cris_pop_frame): Ditto.
5545 * c-lang.c (scanning_macro_expansion): Ditto.
5546 (finished_macro_expansion): Ditto.
5547 (c_preprocess_and_parse): Ditto.
5548 * gdbarch.sh: Ditto.
5549 * gdbarch.h, gdbarch.c: Regenerate.
5550 * config/mn10200/tm-mn10200.h: Adjust indentation.
5551 * target.c: Adjust indentation.
5552 * symtab.h: Adjust indentation.
5553 * stabsread.h: Adjust indentation.
5554 * remote-es.c: Adjust indentation.
5555 * os9kread.c: Adjust indentation.
5556
55572002-07-10 Andrew Cagney <ac131313@redhat.com>
5558
a6b6b089
AC
5559 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5560 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5561
a1789893
GS
55622002-07-10 Grace Sainsbury <graces@redhat.com>
5563
5564 * NEWS: Mention m68k, mcore multi-arching.
5565 * MAINTAINERS: Change status of m68k, mcore to reflect
5566 multi-arching.
5567
02f0d45d
DJ
55682002-07-10 Daniel Jacobowitz <drow@mvista.com>
5569
5570 * valops.c (find_overload_match): Free oload_syms.
5571
f15f768e
JB
55722002-07-09 Joel Brobecker <brobecker@gnat.com>
5573
5574 Define HAVE_SYS_PROC_H if sys/proc.h exists
5575 * configure.in: Add check for sys/proc.h
5576 * config.in: Regenerate.
5577 * configure: Regenerate.
5578
902a7139
GS
55792002-07-09 Grace Sainsbury <graces@redhat.com>
5580
5581 * config/m68k/tm-m68k.h: Remove macros wrapped in
5582 #if !GDB_MULTI_ARCH.
5583
a534e424
AC
55842002-07-08 Andrew Cagney <ac131313@redhat.com>
5585
5586 * config.in, configure: Regenerate.
5587
9b94f7bf
MK
55882002-07-08 Mark Kettenis <kettenis@gnu.org>
5589
5590 * dwarf2cfi.c: Include "gcore.h".
5591 (execute_stack_op): Fix implementation of the
5592 DW_OP_deref and DW_OP_deref_size operators by letting do their
5593 lookup in the target.
5594
1d34db41
MK
55952002-07-07 Mark Kettenis <kettenis@gnu.org>
5596
5597 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5598 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5599 tdep->sc_sp_offset.
5600
79d5b63a
DJ
56012002-07-05 Daniel Jacobowitz <drow@mvista.com>
5602
5603 Fix PR gdb/595, gdb/602
5604 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5605 Don't call value_cast, just read the vtable pointer; update comments
5606 to match.
5607
3bb912e8
GS
56082002-07-05 Grace Sainsbury <graces@redhat.com>
5609
5610 * config/mcore/tm-mcore.h: Remove file.
5611 * config/mcore/mcore.mt: Remove definition of TM_FILE
5612 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5613
ca39387d
MK
56142002-07-05 Mark Kettenis <kettenis@gnu.org>
5615
5616 * i386bsd-tdep.c: Include "gdb_string.h".
5617
efdc1108
GS
56182002-07-04 Grace Sainsbury <graces@redhat.com>
5619
5620 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5621 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5622 mcore-tdep.
5623 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5624 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5625 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5626 (RETVAL_REGNUM): Move macros from tm-mcore.h
5627 (mcore_reg_struct_has_addr): New function.
5628 (mcore_gdbarch_init): Added initializations for the macros removed
5629 from tm-mcore.h.
5630
bb21884d
MK
56312002-07-04 Mark Kettenis <kettenis@gnu.org>
5632
5633 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5634 traditonal string branding within the ELF header.
5635
228c6d41
DJ
56362002-07-04 Daniel Jacobowitz <drow@mvista.com>
5637
5638 * symtab.c (remove_params): New function.
5639 (make_symbol_overload_list): Use it instead of cplus_demangle.
5640 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5641
2404952e
MK
56422002-07-04 Mark Kettenis <kettenis@gnu.org>
5643
e5e4acad
MK
5644 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5645
baadce09
MK
5646 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5647 New variables.
5648 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5649 and tdep->sigtramp_end.
5650 * i386obsd-nat.c: New file.
5651 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5652
2404952e
MK
5653 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5654 Don't call get_current_frame().
5655
9b4f1ba7
PM
56562002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5657
5658 * i386-nat.c (child_post_startup_inferior): New function
5659 calling i386_cleanup_dregs if
5660 I386_USE_GENERIC_WATCHPOINTS is defined.
5661 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5662 conditional to acknowledge that i386-nat.c has its
5663 own child_post_startup_inferior function.
5664
c0d1d883
MK
56652002-07-04 Mark Kettenis <kettenis@gnu.org>
5666
00f8375e
MK
5667 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5668 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5669 instead of MAX_REGISTER_RAW_SIZE.
5670 (i386_extract_return_value, i386_extract_struct_value_address):
5671 Convert to use regcache.
5672 (i386_gdbarch_init): Set max_register_raw_size and
5673 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5674 Set extract_return_value and extract_struct_value_address instead
5675 of their deprecated variants.
5676
c0d1d883
MK
5677 Convert i386 target to generic dummy frames.
5678 * i386-tdep.c: Include "symfile.h".
5679 (i386_frameless_signal_p): Consider a function to be frameless if
5680 the pc points at the first instruction of the function.
5681 (i386_frame_chain): Handle (generic) call dummies.
5682 (i386_frame_saved_pc): Likewise.
5683 (i386_frame_init_saved_regs): Remove code dealing with call
5684 dummies on the stack.
5685 (i386_push_dummy_frame): Removed.
5686 (i386_call_dummy_words): Removed.
5687 (i386_fix_call_dummy): Removed.
5688 (i386_push_return_address): New function.
5689 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5690 parameter, and don't call get_current_frame.
5691 (i386_pop_frame): New function.
5692 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5693 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5694 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5695 call_dummy_length to 0, set call_dummy_words to NULL, set
5696 sizeof_call_dummy_words to 0, set fix_call_dummy to
5697 generic_fix_call_dummy, set pc_in_call_dummy to
5698 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5699 generic_push_dummy_frame, set push_return_address to
5700 i386_push_return_address and set frame_chain_valid to
5701 generic_file_frame_chain_valid.
5702
049ee0e4
AC
57032002-07-03 Andrew Cagney <ac131313@redhat.com>
5704
5705 * gdbarch.sh (struct regcache): Add opaque declaration.
5706 (EXTRACT_RETURN_VALUE): New architecture method.
5707 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5708 * gdbarch.h, gdbarch.c: Regenerate.
5709 * arch-utils.c (legacy_extract_return_value): New function.
5710 * arch-utils.h (legacy_extract_return_value): Declare.
5711 * values.c (value_being_returned): Re-enable code handling
5712 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5713 deprecated_grub_regcache_for_registers call to block handling
5714 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5715 (EXTRACT_RETURN_VALUE): Do not define.
5716
4e0d9804
GS
57172002-07-03 Grace Sainsbury <graces@redhat.com>
5718
5719 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5720 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5721 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5722 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5723 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5724 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5725 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5726 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5727 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5728 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5729 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5730 argument so the function fits the prototype in the architecture
5731 vector.
5732 (mcore_pop_frame): Remove argument so the function fits the
5733 prototype. Use get_current_frame instead of the argument.
5734 (mcore_push_arguments): Change type of struct_return so the
5735 function can be used in the architecture vector.
5736 (mcore_store_struct_return): Add.
5737 (mcore_frame_init_saved_regs): Add.
5738 (mcore_gdbarch_init): Add function calls to replace the macros
5739 removed from tm-mcore.h
5740
36160dc4
AC
57412002-07-03 Andrew Cagney <ac131313@redhat.com>
5742
5743 * infcmd.c (print_return_value): Remove compatibility code calling
5744 deprecated_grub_regcache_for_registers.
5745
5746 * values.c: Include "regcache.h".
5747 (value_being_returned): Update. Use
5748 deprecated_grub_regcache_for_registers to extract the register
5749 buffer address.
5750 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5751 ``struct regcache''.
5752 * Makefile.in (values.o): Add dependency on $(regcache_h).
5753
5754 * inferior.h (run_stack_dummy): Change type of second parameter to
5755 a ``struct regcache''.
5756 * valops.c (hand_function_call): Change type of retbuf to ``struct
5757 regcache''. Allocate using regcache_xmalloc, clean using
5758 make_cleanup_regcache_xfree.
5759 * infcmd.c (run_stack_dummy): Update. Use
5760 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5761
5762 * regcache.c (do_regcache_xfree): New function.
5763 (make_cleanup_regcache_xfree): New function.
5764 * regcache.h (make_cleanup_regcache_xfree): Declare.
5765
e64d9b3d
MH
57662002-07-03 Martin M. Hunt <hunt@redhat.com>
5767
4dd79c29
MH
5768 * event-top.c (command_line_handler): Don't read past
5769 beginning of buffer.
e64d9b3d 5770
4dd79c29
MH
57712002-07-03 Martin M. Hunt <hunt@redhat.com>
5772
e64d9b3d
MH
5773 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5774 struct frame_id.
5775 (varobj_create): Store frame_id for root.
5776 (varobj_gen_name): Use xasprintf.
5777 (varobj_update): Save and restore frame using get_frame_id() and
5778 frame_find_by_id().
5779 (create_child): Use xasprintf.
5780 (new_root_variable): Initialize frame_id.
5781 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5782 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5783 to prevent memory leak.
5784
26e6c56a
AC
57852002-07-03 Andrew Cagney <ac131313@redhat.com>
5786
5787 * valops.c (hand_function_call): Move declaration of retbuf to
5788 start of function, allocate using malloc, add a cleanup but before
5789 the inf_status cleanup, cleanup the buffer. Rename local variable
5790 old_chain to inf_status_cleanup.
5791
f436dd25
MH
57922002-07-03 Martin M. Hunt <hunt@redhat.com>
5793
5794 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5795
5796 * cli/cli-decode.c (cmd_func_p): New function.
5797 (cmd_func): New function.
5798
5799 * command.h: Add cmd_func() and cmd_func_p().
5800
4cfe2084
GS
58012002-07-03 Grace Sainsbury <graces@redhat.com>
5802
5803 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5804 (REGISTER_SIZE): Remove.
5805 (MAX_REGISTER_RAW_SIZE): Remove.
5806 (REGISTER_VIRTUAL_TYPE): Remove.
5807 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5808 (REGISTER_NAME): Remove.
5809 (USE_GENERIC_DUMMY_FRAMES): Remove.
5810 (CALL_DUMMY): Remove.
5811 (CALL_DUMMY_START_OFFSET): Remove.
5812 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5813 (CALL_DUMMY_LOCATION): Remove.
5814 (FIX_CALL_DUMMY): Remove.
5815 (CALL_DUMMY_ADDRESS): Remove.
5816 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5817 (SAVE_DUMMY_FRAME_TOS): Remove.
5818 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5819 (mcore_register_virtual_type): New function.
5820 (mcore_register_byte): New function.
5821 (mcore_register_size): New function.
5822 (mcore_register_name): New function.
5823 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5824 macros removed from tm-mcore.h.
5825 (mcore_dump_tdep): Add.
5826 (_initialize_mcore_tdep): Add gdbarch_register call.
5827
4fd667e9
MK
58282002-07-03 Mark Kettenis <kettenis@gnu.org>
5829
5830 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5831 frameless_look_for_prologue, such that we actually call this
5832 function.
5833
42f99ac2
JB
58342002-07-02 Joel Brobecker <brobecker@gnat.com>
5835
5836 * frame.h (frame_address_in_block): New function.
5837
5838 * blockframe.c (frame_address_in_block): New function extracted
5839 from get_frame_block().
5840 (get_frame_block): Use frame_address_in_block().
5841 (block_innermost_frame): Use frame_address_in_block() to match
5842 the frame pc address against the block boundaries rather than
5843 the frame pc directly. This prevents a failure when a frame pc
5844 is actually a return-address pointing immediately after the end
5845 of the given block.
5846
103a1597 58472002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
5848
5849 * MAINTAINERS: Add self under write after approval.
5850
58512002-07-02 Grace Sainsbury <graces@redhat.com>
5852
103a1597
GS
5853 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5854 used in architecture vector. The default is
5855 m68k_local_breakpoint_from_pc.
5856 (m68k_local_breakpoint_from_pc): Add.
5857 (enum): Add register numbers from tm-m68k.h.
5858 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5859 vector.
5860 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5861 GDB_MULTI_ARCH_PARTIAL.
5862 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5863 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5864 m68k-tdep.c.
5865 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5866 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5867 to enum in m68k-tdep.c
5868
7a5a0534
JB
58692002-07-02 Joel Brobecker <brobecker@gnat.com>
5870
5871 * solib-osf.c (open_map): Compute the list of shared libraries
5872 loaded by the inferior, rather than the list of libraries loaded
5873 by GDB itself. Otherwise, GDB ends up reading the symbols from
5874 the wrong shared libraries...
5875
6f558d74
MK
58762002-07-02 Mark Kettenis <kettenis@gnu.org>
5877
b7d15bf7
MK
5878 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5879 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5880 macros.
5881 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5882 Remove functions.
5883 (FRAMELESS_SIGNAL): Remove function.
5884 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5885 i386_linux_saved_pc_after_call): Removed.
5886 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5887 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5888 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5889
6bff26de
MK
5890 * i386-tdep.c (i386_frameless_signal_p): New function.
5891 (i386_frame_chain): Deal with frameless signals.
5892 (i386_sigtramp_saved_sp): New function.
5893 (i386_frame_saved_pc): Deal with frameless signals.
5894 (i386_saved_pc_after_call): Make sure the correct value is
5895 returned just after entry into a sigtramp.
5896 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5897 i386fbsd4_sc_sp_offset): New variables.
5898 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5899 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5900 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5901 similiar to what we already did for sc_pc_offset.
5902 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5903 tdep->sc_sp_offset.
5904
6f558d74
MK
5905 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5906
145564b7
ML
59072002-07-02 Michal Ludvig <mludvig@suse.cz>
5908
5909 * config/i386/tm-x86-64linux.h: New.
5910 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5911 definitions.
5912 * config/i386/nm-x86-64.h: Rename to ...
5913 * config/i386/nm-x86-64linux.h: ... this one.
5914 * config/i386/x86-64linux.mh: Reflect the above change.
5915
3a1e71e3
MK
59162002-07-01 Mark Kettenis <kettenis@gnu.org>
5917
21d0e8a4
MK
5918 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5919 with sigcontext_addr. Add sc_sp_offset.
5920 (i386bsd_sigtramp_saved_pc): Remove prototype.
5921 (i386bsd_sicontext_addr): Add prototype.
5922 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5923 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5924 (i386_svr4_sigtramp_saved_pc): Removed.
5925 (i386_svr4_sigcontext_addr): New function.
5926 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5927 Initialize tdep->sigcontext_addr instead. Initialize
5928 tdep->sc_pc_offset and tdep->sc_sp_offset.
5929 (i386_gdbarch_init): Likewise.
5930 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5931 any more.
5932 (i386bsd_sigtramp_saved_pc): Remove function.
5933 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5934 Initialize tdep->sigcontext_addr instead. Initialize
5935 tdep->sc_pc_offset.
5936 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5937 of tdep->sigtramp_saved_pc.
5938 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5939 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5940 instead.
5941
3a1e71e3
MK
5942 * i386-tdep.c (i386_frameless_function_invocation,
5943 i386_frame_num_args, i386_frame_init_saved_regs,
5944 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5945 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5946 i386_extract_return_value, i386_store_return_value,
5947 i386_extract_struct_value_address, i386_register_virtual_type,
5948 i386_register_convertible, i386_register_convert_to_virtual,
5949 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5950 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5951 static.
5952
52e9098c
MK
59532002-07-01 Mark Kettenis <kettenis@gnu.org>
5954
77b13a25
MK
5955 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5956
52e9098c
MK
5957 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5958 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5959 this macro. Include "value.h".
5960
1b372fff
AS
59612002-06-30 Aidan Skinner <aidan@velvet.net>
5962
5963 * ada-exp.tab.c: remove as it's a generated file
5964 * ada-lex.c: remove as it's a generated file
5965
9c5045b5
MK
59662002-06-30 Mark Kettenis <kettenis@gnu.org>
5967
4a93c5bb
MK
5968 * config/i386/tm-i386.h (struct frame_info, struct
5969 frame_saved_regs, struct value, struct type): Remove forward
5970 declarations.
5971
322d4fe0
MK
5972 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5973 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5974 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5975 (FILL_FPXREGSET): Define.
5976
fdd8263d
MK
5977 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5978
482e577b
MK
5979 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5980 i[3456]86-*-netbsd* case.
5981 * config/i386/tm-obsd.h: Removed.
5982 * config/i386/obsd.mt: Removed.
5983 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5984 core-aout.o.
5985 (MH_CFLAGS): Add -DYYDEBUG=0.
5986
6916549a
MK
5987 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5988 i386nbsd_sc_pc_offset on OpenBSD too.
5989
9c5045b5
MK
5990 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5991 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5992 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5993 define.
5994 * i386bsd-tdep.c: Include "arch-utils.h".
5995 (i386bsd_aout_in_solib_call_trampoline): New function.
5996 (i386bsd_init_abi): Set in_solib_call_trampoline to
5997 i386bsd_aout_in_solib_call_trampoline.
5998 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5999 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6000
aa84d1bb
AC
60012002-06-28 Andrew Cagney <ac131313@redhat.com>
6002
6003 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6004 (struct obstack, struct bcache): Add opaque declarations.
6005 * Makefile.in (macrotab_h): Update
6006
b4d83933
AC
60072002-06-28 Andrew Cagney <ac131313@redhat.com>
6008
6009 * blockframe.c (generic_find_dummy_frame): Change return type to
6010 ``struct regcache''.
6011 (struct dummy_frame): Replace field ``registers'' with regcache, a
6012 struct regcache object.
6013 (generic_find_dummy_frame): Update.
6014 (generic_push_dummy_frame): Update. Use regcache_xfree,
6015 regcache_xmalloc and regcache_cpy.
6016 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6017 regcache_xfree.
6018 (deprecated_generic_find_dummy_frame): Update.
6019 (generic_read_register_dummy): Update. Use
6020 regcache_read_as_address.
6021 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6022 (generic_get_saved_register): Update. Use regcache_read.
6023
08c0b5bc
AC
60242002-06-28 Andrew Cagney <ac131313@redhat.com>
6025
6026 * Makefile.in (objfiles_h): Add $(bcache_h).
6027 * objfiles.h: Include "bcache.h".
6028
6029 * Makefile.in (symtab_h): Remove $(bcache_h).
6030 * symtab.h: Do not include "bcache.h".
6031
1f89801a
AC
60322002-06-28 Andrew Cagney <ac131313@redhat.com>
6033
6034 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6035 generic_func_frame_chain_valid.
6036
b9644b58
DB
60372002-06-28 David O'Brien <obrien@FreeBSD.org>
6038
6039 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6040 * config/i386/tm-fbsd.h: Likewise.
6041
dd486634
AC
60422002-06-28 Andrew Cagney <ac131313@redhat.com>
6043
6044 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6045 generic_unwind_get_saved_register.
6046
0b434a00
AC
60472002-06-27 Andrew Cagney <ac131313@redhat.com>
6048
6049 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6050 * regcache.c (supply_register): Add missing argument to
6051 register_buffer call.
6052
f30e5a77
AC
60532002-06-27 Andrew Cagney <ac131313@redhat.com>
6054
6055 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6056 Solaris /bin/grep does not not like it. From Peter Schauer.
6057
9f064c95
TT
60582002-06-26 Tom Tromey <tromey@redhat.com>
6059
6060 * command.h (add_setshow_cmd): Declare.
6061 (add_setshow_cmd_full): Declare.
6062 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6063 returns void. Use add_setshow_cmd_full.
6064 (add_setshow_cmd_full): New function.
6065 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6066 (add_setshow_boolean_cmd): Likewise.
6067
099c7589
JT
60682002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6069
6070 * config/vax/tm-vax.h: Protect from multiple inclusion.
6071 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6072 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6073 * config/vax/tm-vaxbsd.h: ...here. New file.
6074 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6075
1d049c5e
JT
60762002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6077
6078 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6079 (BELIEVE_PCC_PROMOTION): Remove.
6080 (AP_REGNUM): Move to...
6081 * config/vax/nm-vax.h: ...here.
6082 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6083 (vax_breakpoint_from_pc): New function.
6084 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6085 and gdbarch_believe_pcc_promotion.
6086
4791e091
JT
60872002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6088
6089 * Makefile.in (vax_tdep_h): Define.
6090 (vax-tdep.o): Use $(vax_tdep_h).
6091 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6092 (vax_dump_tdep): New function.
6093 (_initialize_vax_tdep): Register vax_dump_tdep.
6094 * vax-tdep.h: Include osabi.h.
6095 (struct gdbarch_tdep): New.
6096
da130f98
AC
60972002-06-26 Andrew Cagney <cagney@redhat.com>
6098
6099 * frame.h (deprecated_generic_find_dummy_frame): Rename
6100 generic_find_dummy_frame.
6101 * blockframe.c (generic_find_dummy_frame): Make static.
6102 (deprecated_generic_find_dummy_frame): New function.
6103 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6104 generic_find_dummy_frame with deprecated_find_dummy_frame.
6105 (sh64_nofp_frame_init_saved_regs): Ditto.
6106 (sh_fp_frame_init_saved_regs): Ditto.
6107 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6108 (s390_frame_chain): Ditto.
6109 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6110
6300c360
GS
61112002-06-26 Grace Sainsbury <graces@redhat.com>
6112
6113 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6114 gdbarch vector are at the top.
6115 (NUM_REGS): Remove.
6116 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6117 (FRAME_ARGS_ADDRESS): Remove.
6118 (FRAME_LOCALS_ADDRESS): Remove.
6119 (FRAME_NUM_ARGS): Remove.
6120 (FRAME_ARGS_SKIP): Remove.
6121 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6122 (m68k_gdbarch_init): Add gdbarch initializations for macros
6123 undefined in tm-m68k.h
6124
1c617db8
GS
61252002-06-26 Grace Sainsbury <graces@redhat.com>
6126
6127 * monitor.h: Add the function regname to monitor_ops
6128 structure. This way NUM_REGS does not have to be a constant.
6129 * monitor.c (monitor_fetch_register): Added support for regname
6130 function. The function is called if the array regnames is NULL.
6131 (monitor_store_register): Same.
da130f98
AC
6132 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6133 regnames array.
1c617db8
GS
6134 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6135 cpu32bug_cmds.regname to point to new function.
6136 * abug-rom.c (abug_regname): Same as above.
6137 (init_abug_cmds): Same.
6138 * dbug-rom.c (dbug_regname): Same as above.
6139 (init_dbug_cmds): Same.
6140 * remote-est.c (est_regname): Same.
6141 (init_est_cmds): Same.
6142 * rom68k-rom.c (rom68k_regname): Same.
6143 (init_rom68k_cmds): Same.
6144
ea9365bb
TT
61452002-06-25 Tom Tromey <tromey@redhat.com>
6146
6147 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6148
72cec141
AC
61492002-06-25 Andrew Cagney <cagney@redhat.com>
6150
6151 * infrun.c (stop_registers): Change variable's type to ``struct
6152 regcache'''.
6153 (xmalloc_inferior_status): Delete function.
6154 (free_inferior_status): Delete function.
6155 (normal_stop): Use regcache_cpy.
6156 (struct inferior_status): Change type of fields ``stop_registers''
6157 and ``registers'' to ``struct regcache''.
6158 (write_inferior_status_register): Use regcache_write.
6159 (save_inferior_status): Instead of calling
6160 xmalloc_inferior_status, allocate the inf_status buffer directly.
6161 Use regcache_dup_no_passthrough and regcache_dup to save the
6162 buffers.
6163 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6164 Replace the stop_registers regcache instead of overriding it. Use
6165 regcache_xfree. Instead of calling free_inferior_status, xfree
6166 the buffer directly.
6167 (discard_inferior_status): Use regcache_xfree. Instead of calling
6168 free_inferior_status, xfree the buffer directly.
6169 (build_infrun): Use regcache_xmalloc.
6170 (_initialize_infrun): Delete redundant call to build_infrun.
6171
6172 * Makefile.in (infcmd.o): Add $(regcache_h).
6173
6174 * infcmd.c: Include "regcache.h".
6175 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6176 obtain the address of `stop_registers' register buffer.
6177 (print_return_value): Ditto.
6178
6179 * inferior.h (struct regcache): Add opaque declaration.
6180 (stop_registers): Change variable's declared type to ``struct
6181 regcache''.
6182
defc6f8c
TT
61832002-06-24 Tom Tromey <tromey@redhat.com>
6184
c0e624e7
TT
6185 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6186 * target.c (initialize_targets): Fixed typo in
6187 trust-readonly-sections `show' documentation.
6188
defc6f8c
TT
6189 * main.c: Marked all strings with _().
6190
2b236d82
DH
61912002-06-24 Don Howard <dhoward@redhat.com>
6192
6193 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6194 that means max CORE_ADDR+1.
6195 (lookup_mem_region): Ditto.
6196 (mem_info_command): Ditto.
6197
942dc0e9
GS
61982002-06-24 Grace Sainsbury <graces@redhat.com>
6199
6200 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6201 (REGISTER_BYTES_OK): Remove.
6202 (REGISTER_BYTES): Remove.
6203 (STORE_STRUCT_RETURN): Remove.
6204 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6205 (STORE_RETURN_VALUE): Remove.
6206 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6207 (FRAME_CHAIN): Remove.
6208 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6209 (FRAME_SAVED_PC): Remove.
6210 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6211 (m68k_store_struct_return): Add.
6212 (m68k_deprecated_extract_return_value): Add.
6213 (m68k_deprecated_extract_struct_value_address): Add.
6214 (m68k_store_return_value): Add.
6215 (m68k_frame_chain): Add.
6216 (m68k_frameless_function_invocation): Add.
6217 (m68k_frame_saved_pc): Add.
6218 (m68k_gdbarch_init): added set_gdbarch calls for new
6219 functions and deleted macros.
6220
03c30d4d
TT
62212002-06-23 Tom Tromey <tromey@redhat.com>
6222
6223 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6224 (ALLDEPFILES): Likewise.
6225 (udiheaders): Removed.
6226 (udip2soc.o): Likewise.
6227 (udi2go32.o): Likewise.
6228 (udr.o): Likewise.
6229 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6230
37e71372
AC
62312002-06-22 Andrew Cagney <ac131313@redhat.com>
6232
06a6ac57
AC
6233 * infrun.c (_initialize_infrun): Delete unnecessary call to
6234 build_infrun.
6235
37e71372
AC
6236 * regcache.h: Update comments describing the regcache_cpy family
6237 of functions.
6238 (regcache_save, regcache_restore): Delete declaration.
6239 (regcache_save_no_passthrough): Delete declaration.
6240 (regcache_restore_no_passthrough): Delete declaration.
6241 * regcache.c (regcache_save): Delete function.
6242 (regcache_save_no_passthrough): Delete function.
6243 (regcache_restore): Delete function.
6244 (regcache_restore_no_passthrough): Delete function.
6245
78f6d055
AC
62462002-06-21 Andrew Cagney <ac131313@redhat.com>
6247
6248 * config/m68k/tm-m68k.h: Fix typo.
6249 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6250 (m68k_frame_init_saved_regs): Declare.
6251
78b119cb
JB
62522002-06-21 Jim Blandy <jimb@redhat.com>
6253
6254 Remove some vestiges of Harris 88k support.
6255 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6256 register numbering quirk.
6257 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6258 odd symbols occurring in Harris 88k ELF targets.
6259
0fbb3da7
TT
62602002-06-21 Tom Tromey <tromey@redhat.com>
6261
6262 * gdb_locale.h: New file.
6263 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6264 (defs_h): Added gdb_locale.h.
6265 * configure, config.in: Rebuilt.
6266 * configure.in (PACKAGE): Define.
6267 * defs.h: Include gdb_locale.h.
6268 * main.c (captured_main): Call setlocale, bindtextdomain,
6269 textdomain.
6270
456f8b9d
DB
62712002-06-21 Dave Brolley <brolley@redhat.com>
6272
6273 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6274 * config/frv/frv.mt: New file.
6275 * config/frv/tm-frv.h: New file.
6276 * configure.tgt: Support frv-*-*.
6277 * Makefile.in (frv-tdep.o): New target.
6278 * frv-tdep.c: New file.
6279 * NEWS: Mention frv.
6280
cdd463f9
DB
62812002-06-21 Dave Brolley <brolley@redhat.com>
6282
6283 * MAINTAINERS: Add self to "Write After Approval" list.
6284
5d3ed2e3
GS
62852002-06-21 Grace Sainsbury <graces@redhat.com>
6286
6287 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6288 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6289 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6290 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6291 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6292
6293 * m68k-tdep.c: Include arch-utils.h
6294 (m68k_register_raw_size): Add.
6295 (m68k_register_virtual_size): Add.
6296 (m68k_register_virtual_type): Add.
6297 (m68k_register_name): Add.
6298 (m68k_stack_align): Add.
6299 (m68k_register_byte): Add.
6300 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6301 tm-m68k.h.
6302
7f8e7424
GS
63032002-06-21 Grace Sainsbury <graces@redhat.com>
6304
a2c6a6d5 6305 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
6306 m68k_find_saved_regs.
6307 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 6308 references to it with frame->saved_regs.
7f8e7424
GS
6309 (m68k_gdbarch_init): Added function calls to initialize the
6310 gdbarch structure.
a2c6a6d5
GS
6311 (m68k_fix_call_dummy): Add.
6312 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6313 (CALL_DUMMY): Remove.
6314 (CALL_DUMMY_LENGTH): Remove.
6315 (CALL_DUMMY_START_OFFSET): Remove.
6316 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6317 (FIX_CALL_DUMMY): Remove.
6318 (PUSH_DUMMY_FRAME): Remove.
6319 (POP_FRAME): Remove.
7f8e7424 6320
f461f5cf
PM
63212002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6322
6323 * parse.c (parse_fprintf): New function used to avoid calls to
6324 fprintf in bison parser generated debug code.
6325 * parser-defs.h: Declaration of new parse_fprintf function.
6326 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6327 Set YYDEBUG to 1 by default.
6328 Set YYFPRINTF as parse_fprintf.
6329
7f0c12ed
ML
63302002-06-21 Michal Ludvig <mludvig@suse.cz>
6331
6332 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6333 encoding anymore.
6334 (pointer_encoding, enum ptr_encoding): New.
6335 (execute_cfa_program): Take care about pointer encoding.
6336 (dwarf2_build_frame_info): Only call parse_frame_info for
6337 .debug_frame and .eh_frame.
6338 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6339 fixed augmentation handling, added relative addressing,
6340 ignore duplicate FDEs. Added comments.
19d833a2 6341 * dwarf2cfi.c: Reindented.
7f0c12ed 6342
87c4a039
EZ
63432002-06-20 Elena Zannoni <ezannoni@redhat.com>
6344
6345 * event-top.c (command_handler): Don't use space_at_cmd_start
6346 unless there is sbrk() on the host. Assign time and space data
6347 to union fields of the appropriate length.
6348
1cf877ad
ML
63492002-06-20 Michal Ludvig <mludvig@suse.cz>
6350
6351 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6352 x86_64_register_name. Return type changed to 'const char *'.
6353 (x86_64_register_name2nr): Rename to x86_64_register_number.
6354 (x86_64_gdbarch_init): Update to reflect the change.
6355 * x86-64-tdep.h: Ditto.
6356 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6357 (supply_fpregset): Ditto.
6358
3fadccb3
AC
63592002-06-19 Andrew Cagney <cagney@redhat.com>
6360
6361 * regcache.h: Update copyright.
6362 (struct regcache, struct gdbarch): Add opaque declarations.
6363 (current_regcache): Declare global variable.
6364 (regcache_read, regcache_write): Add gdbarch parameter.
6365 (regcache_save, regcache_save_no_passthrough)
6366 (regcache_restore, regcache_restore_no_passthrough)
6367 (regcache_dup, regcache_dup_no_passthrough)
6368 (regcache_cpy, regcache_cpy_no_passthrough)
6369 (deprecated_grub_regcache_for_registers)
6370 (deprecated_grub_regcache_for_register_valid)
6371 (regcache_valid_p): Add function declarations.
6372
6373 * regcache.c: Update copyright.
6374 (regcache_descr_handle): New global variable.
6375 (struct regcache_descr): Define.
6376 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6377 (regcache_descr, xfree_regcache_descr): New functions.
6378 (struct regcache): Define.
6379 (regcache_xmalloc, regcache_xfree): New functions.
6380 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6381 (regcache_dup, regcache_dup_no_passthrough): New functions.
6382 (regcache_valid_p, regcache_read_as_address): New functions.
6383 (deprecated_grub_regcache_for_registers): New function.
6384 (deprecated_grub_regcache_for_register_valid): New function.
6385 (current_regcache): New global variable.
6386 (register_buffer): Add regcache parameter. Update calls.
6387 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6388 (read_register_gen, write_register_gen): Update register_buffer
6389 call. Test for legacy_p instead of gdbarch_register_read_p or
6390 gdbarch_register_write_p.
6391 (regcache_collect): Update register_buffer call.
6392 (build_regcache): Rewrite. Use deprecated grub functions.
6393 (regcache_save, regcache_save_no_passthrough): New functions.
6394 (regcache_restore, regcache_restore_no_passthrough): New
6395 functions.
6396 (_initialize_regcache): Create the regcache_data_handle. Swap
6397 current_regcache global variable.
6398
6399 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6400 parameter to regcache_read and regcache_write calls.
6401 (sh4_register_read): Ditto.
6402 (sh64_pseudo_register_read): Ditto.
6403 (sh64_register_read): Ditto.
6404 (sh_pseudo_register_write): Ditto.
6405 (sh4_register_write): Ditto.
6406 (sh64_pseudo_register_write): Ditto.
6407 (sh64_register_write): Ditto.
6408
6409 * defs.h (XCALLOC): Define.
6410
152d9db6
GS
64112002-06-19 Grace Sainsbury <graces@redhat.com>
6412
6413 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6414 * m68k-tdep.c (m68k_gdbarch_init): Added.
6415 (m68k_dump_tdep): Added.
6416
170911c7
DJ
64172002-06-19 Daniel Jacobowitz <drow@mvista.com>
6418
6419 * ada-lang.c (fill_in_ada_prototype): Update comment.
6420
2e4ebe70
DJ
64212002-06-19 Daniel Jacobowitz <drow@mvista.com>
6422
6423 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6424 MIPS_ABI_LAST.
6425 (mips_abi_string, mips_abi_strings): New.
6426 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6427 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6428 tdep->mips_abi_string. Honor mips_abi_string. Default to
6429 O32 if no ABI is found.
6430 (mips_dump_tdep): Use mips_abi_strings.
6431 (mips_abi_update): New function.
6432 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6433 ``set mips abi'' and ``show mips abi''. Check the size of
6434 mips_abi_strings.
6435
16775908
AC
64362002-06-19 Andrew Cagney <cagney@redhat.com>
6437
6438 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6439 constant.
6440
5051bfa4 64412002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 6442
5051bfa4
JB
6443 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6444 current frame using only the first stack size adjustment. All
6445 subsequent size adjustments are not considered to be part of
6446 the "static" part of the current frame.
6447 Compute the address of the saved registers relative to the
6448 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6449 in use in this frame.
6450
56468235
DH
64512002-06-18 Don Howard <dhoward@redhat.com>
6452
6453 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6454 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6455 suggesting this solution.
6456
0b624158
AC
64572002-06-18 Andrew Cagney <ac131313@redhat.com>
6458
6459 * config/romp/xm-rtbsd.h: Delete file.
6460 * config/romp/rtbsd.mh: Delete file.
6461
221ea385
KS
64622002-06-18 Keith Seitz <keiths@redhat.com>
6463
6464 * breakpoint.c (condition_command): Post breakpoint_modify
6465 when a condition is added to an existing breakpoint.
6466 (commands_command): Likewise for commands.
6467 (set_ignore_count): Likewise for ignore counts.
6468 If no tty, do not simply return, still need to send event
6469 notification.
6470 (ignore_command): Only print a newline if the command came
6471 from a tty.
6472 Don't call breakpoints_changed, since this is now properly
6473 handled by set_ignore_count.
6474
5402eed1
AC
64752002-06-18 Andrew Cagney <cagney@redhat.com>
6476
6477 * MAINTAINERS: Note that cris-elf target can be compiled with
6478 -Werror.
6479 * cris-tdep.c (cris_register_name): Make return type constant.
6480 (cris_breakpoint_from_pc): Ditto.
6481
cc22880b
ML
64822002-06-18 Michal Ludvig <mludvig@suse.cz>
6483
6484 * frame.h (struct frame_info): Change type of context to
6485 'struct context'.
6486
fa88f677
AC
64872002-06-17 Andrew Cagney <cagney@redhat.com>
6488
6489 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6490 pointer.
6491 * gdbarch.h, gdbarch.c: Regenerate.
6492 * config/mips/tm-mips.h (mips_register_name): Update.
6493 * i386-tdep.h (i386_register_name): Update.
6494 * mips-tdep.c (mips_register_name): Update
6495 * alpha-tdep.c (alpha_register_name): Update.
6496 * arch-utils.c (legacy_register_name): Update.
6497 * arch-utils.h (legacy_register_name): Update.
6498 * avr-tdep.c (avr_register_name): Update.
6499 * ia64-tdep.c (ia64_register_name): Update.
6500 * i386-tdep.c (i386_register_name): Update.
6501 * sparc-tdep.c (sparc32_register_name): Update.
6502 (sparc64_register_name): Update.
6503 (sparclite_register_name): Update.
6504 (sparclet_register_name): Update.
6505 * sh-tdep.c (sh_generic_register_name): Update.
6506 (sh_sh_register_name): Update.
6507 (sh_sh3_register_name): Update.
6508 (sh_sh3e_register_name): Update.
6509 (sh_sh_dsp_register_name): Update.
6510 (sh_sh3_dsp_register_name): Update.
6511 (sh_sh4_register_name): Update.
6512 (sh_sh64_register_name): Update.
6513 * s390-tdep.c (s390_register_name): Update.
6514 * rs6000-tdep.c (rs6000_register_name): Update.
6515 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6516 (ns32k_register_name_32382): Update.
6517 * d10v-tdep.c (d10v_ts2_register_name): Update.
6518 (d10v_ts3_register_name): Update.
6519 * xstormy16-tdep.c (xstormy16_register_name): Update.
6520 * vax-tdep.c (vax_register_name): Update.
6521 * v850-tdep.c (v850_register_name): Update.
6522 * m68hc11-tdep.c (m68hc11_register_name): Update.
6523 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6524 (am33_register_name): Update.
6525
ea1e7ef6
GS
65262002-06-17 Grace Sainsbury <graces@redhat.com>
6527
6528 * m68k-tdep.c: Reindented.
6529
9b02dd1b
AC
65302002-06-17 Andrew Cagney <ac131313@redhat.com>
6531
6532 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6533 list of predefined types.
6534
8758dec1
MK
65352002-06-16 Mark Kettenis <kettenis@gnu.org>
6536
b6197528
MK
6537 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6538 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6539 REGISTER_CONVERT_TO_RAW): Remove defines.
6540 (i386_register_virtual_type, i386_register_convertible,
6541 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6542 Remove prototypes.
6543 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6544 macros mentioned above.
6545
82b47e62
MK
6546 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6547 (i386lynx_saved_pc_after_call): Remove prototype.
6548 * i386ly-tdep.c: Include "i386-tdep.h".
6549 (i386lynx_saved_pc_after_call): Make static. Use
6550 read_memory_nobpt instead of read_memory. Use
6551 read_memory_unsigned_integer instead of read_memory_integer.
6552 (i386lynx_init_abi): New function.
6553 (i386lynx_coff_osabi_sniffer): New function.
6554 (_initialize_i386bsd_tdep): New function.
6555
8758dec1
MK
6556 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6557 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6558 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6559 (i386_fix_call_dummy): Remove prototype.
6560 * i386-tdep.c (i386_call_dummy_words): New variable.
6561 (i386_gdbarch_init): Adjust for removal of the
6562 macros mentioned above.
6563
e9e68a56
AC
65642002-06-15 Andrew Cagney <ac131313@redhat.com>
6565
6566 * command.h (add_setshow_auto_boolean_cmd): Replace
6567 add_set_auto_boolean_cmd.
6568 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6569 add_set_auto_boolean_cmd.
6570 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6571 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6572 mask-address'' command.
6573 (show_mask_address): Add cmd parameter.
6574 * remote.c (add_packet_config_cmd): Update. Change type of
6575 set_func and show_func to cmd_sfunc_ftype.
6576 (_initialize_remote): Update `set remote Z-packet'
6577 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6578 (show_remote_protocol_e_packet_cmd): Ditto.
6579 (show_remote_protocol_E_packet_cmd): Ditto.
6580 (show_remote_protocol_P_packet_cmd): Ditto.
6581 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6582 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6583 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6584 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6585 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6586 (show_remote_protocol_Z_packet_cmd): Ditto.
6587 (show_remote_protocol_binary_download_cmd): Ditto.
6588 (show_remote_cmd): Pass NULL to all of above.
6589
fc08ec52
MK
65902002-06-15 Mark Kettenis <kettenis@gnu.org>
6591
6592 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6593 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6594 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6595 POP_FRAME): Remove defines.
6596 (i386_push_arguments, i386_store_struct_return,
6597 i386_extract_return_value, i386_store_return_value,
6598 i386_extract_struct_value_address, i386_push_dummy_frame,
6599 i386_pop_frame): Renove prototypes.
6600 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6601 macros mentioned above.
6602
e707bbc2
AC
66032002-06-15 Andrew Cagney <ac131313@redhat.com>
6604
6605 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6606 add_set_boolean_cmd.
6607 (add_setshow_cmd): New function.
6608 * command.h (add_setshow_boolean_cmd): Replace
6609 add_set_boolean_cmd.
6610 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6611 and ``set rdiromatzero''.
6612 * maint.c (_initialize_maint_cmds): Update commented out code.
6613 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6614 * target.c (initialize_targets): Update `set
6615 trust-readonly-sections'.
6616 * remote.c (_initialize_remote): Update `set remotebreak'.
6617
42fdc8df
MK
66182002-06-15 Mark Kettenis <kettenis@gnu.org>
6619
93924b6b
MK
6620 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6621 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6622 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6623 fit into multi-arch framework.
6624 (i386_breakpoint_from_pc): New function.
6625 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6626 above.
6627
42fdc8df
MK
6628 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6629 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6630 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6631 (i386_frameless_function_invocation, i386_frame_num_args,
6632 i386_frame_init_saved_regs): Remove prototypes.
6633 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6634 macros mentioned above.
6635
9773a94b
AC
66362002-06-15 Andrew Cagney <ac131313@redhat.com>
6637
6638 * cli/cli-decode.c (set_cmd_cfunc): Update.
6639 (set_cmd_sfunc): Update.
6640 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6641 (set_cmd_sfunc, set_cmd_cfunc): Update.
6642 * cli/cli-decode.h: Update.
6643
6e157172
MK
66442002-06-15 Mark Kettenis <kettenis@gnu.org>
6645
6646 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6647 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6648
7f19b9a2
AC
66492002-06-15 Andrew Cagney <ac131313@redhat.com>
6650
6651 * defs.h (auto_boolean): Declare enum.
6652 * command.h (cmd_auto_boolean): Delete enum.
6653 * mips-tdep.c (mask_address_var): Update.
6654 (mips_mask_address_p): Update.
6655 (show_mask_address): Update.
6656 * remote.c (struct packet_config): Update.
6657 (update_packet_config): Update.
6658 (show_packet_config_cmd): Update.
6659 (packet_ok): Update.
6660 (add_packet_config_cmd): Update.
6661 (_initialize_remote):
6662 * command.h: Update.
6663 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6664 (do_setshow_command): Update.
6665 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6666 * cli/cli-decode.h: Update.
6667
1cf88de5
MK
66682002-06-15 Mark Kettenis <kettenis@gnu.org>
6669
22ba8cf2
MK
6670 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6671 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6672 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6673 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6674 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6675 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6676
762c5349
MK
6677 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6678 list of DJGPP COFF targets.
6679
091198bb
MK
6680 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6681 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6682 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6683 (FP0_REGNUM): Remove define.
6684 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6685 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6686 (i386_register_virtual_size): Remove protoype.
6687 * i386-tdep.c (i386_register_virtual_size): Removed.
6688 (i386_extract_return_value, i386_store_return_value): Use
6689 FP0_REGNUM instead of NUM_FREGS to determine whether the
6690 floating-point registers are available.
6691 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6692 Adjust for removal of macros mentioned above.
6693
66942002-06-15 Mark Kettenis <kettenis@gnu.org>
6695
fcc9bf01
MK
6696 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6697 comments.
6698 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6699 Remove prototypes.
6700 (supply_gregset, fill_gregset): Remove use of register keyword and
6701 remove declaration for regmap. Use I386_NUM_GREGS instead of
6702 NUM_REGS and NUM_FREGS.
6703 (FPREGSET_FSAVE_OFFSET): Remove.
6704 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6705 NUM_FREGS to determine whether the floating-point registers are
6706 available.
6707
65e78234
MK
6708 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6709 gnu_store_registers): Replace usage of NUM_GREGS with
6710 I386_NUM_GREGS.
6711
98df6387
MK
6712 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6713 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6714 usage of NUM_GREGS with I386_NUM_GREGS.
6715
099a9414
MK
6716 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6717
57976e88
MK
6718 * i386bsd-nat.c: Include "i386-tdep.h".
6719 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6720 I386_NUM_GREGS.
6721
b335f4a6
MK
6722 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6723 and associated comment. They no longer make any sense, since we
6724 don't use this file anymore on Linux.
6725
1cf88de5
MK
6726 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6727 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6728 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6729 elements in these arrays.
6730 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6731 MAX_NUM_REGS.
6732
daa66587
MK
67332002-06-15 Mark Kettenis <kettenis@gnu.org>
6734
6735 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6736 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6737
26e9b323
AC
67382002-06-14 Andrew Cagney <cagney@redhat.com>
6739
6740 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6741 EXTRACT_RETURN_VALUE.
6742 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6743 EXTRACT_STRUCT_VALUE_ADDRESS.
6744 * gdbarch.h, gdbarch.c: Regenerate.
6745
6746 * values.c (value_being_returned): Handle
6747 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6748 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6749
6750 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6751 * arm-tdep.c (arm_gdbarch_init): Update.
6752 * avr-tdep.c (avr_gdbarch_init): Update.
6753 * cris-tdep.c (cris_gdbarch_init): Update.
6754 * d10v-tdep.c (d10v_gdbarch_init): Update.
6755 * ia64-tdep.c (ia64_gdbarch_init): Update.
6756 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6757 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6758 * s390-tdep.c (s390_gdbarch_init): Update.
6759 * sh-tdep.c (sh_gdbarch_init): Update.
6760 * s390-tdep.c (s390_gdbarch_init): Update.
6761 * sparc-tdep.c (sparc_gdbarch_init): Update.
6762 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6763 * v850-tdep.c (v850_gdbarch_init): Update.
6764 * vax-tdep.c (vax_gdbarch_init): Update.
6765 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6766 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6767
6768 * config/arc/tm-arc.h: Update.
6769 * config/d30v/tm-d30v.h: Update.
6770 * config/fr30/tm-fr30.h: Update.
6771 * config/h8300/tm-h8300.h: Update.
6772 * config/h8500/tm-h8500.h: Update.
6773 * config/i386/tm-i386.h: Update.
6774 * config/i386/tm-ptx.h: Update.
6775 * config/i386/tm-symmetry.h: Update.
6776 * config/i960/tm-i960.h: Update.
6777 * config/m32r/tm-m32r.h: Update.
6778 * config/m68k/tm-delta68.h: Update.
6779 * config/m68k/tm-linux.h: Update.
6780 * config/m68k/tm-m68k.h: Update.
6781 * config/m88k/tm-m88k.h: Update.
6782 * config/mcore/tm-mcore.h: Update.
6783 * config/mips/tm-mips.h: Update.
6784 * config/mn10200/tm-mn10200.h: Update.
6785 * config/pa/tm-hppa.h: Update.
6786 * config/pa/tm-hppa64.h: Update.
6787 * config/sparc/tm-sp64.h: Update.
6788 * config/sparc/tm-sparc.h: Update.
6789 * config/sparc/tm-sparclet.h: Update.
6790 * config/z8k/tm-z8k.h: Update.
6791
5179e78f
AC
67922002-06-14 Andrew Cagney <cagney@redhat.com>
6793
6794 * Makefile.in (i386_linux_tdep_h): Define.
6795 (i386_tdep_h, i387_tdep_h): Define.
6796 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6797 $(i386_tdep_h) and $(i387_tdep_h).
6798 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6799
8201327c
MK
68002002-06-14 Mark Kettenis <kettenis@gnu.org>
6801
edf393ac
MK
6802 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6803 Already covered by the default.
6804
896fb97d
MK
6805 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6806 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6807 (i386_gdbarch_init): Initialize long_double_format and long_double
6808 bit.
6809
8201327c
MK
6810 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6811 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6812 Move these to ...
6813 * config/i386/i386sol2.mh: ... here.
6814 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6815 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6816 (SIGCONTEXT_PC_OFFSET): Remove define.
6817 (IN_SIGTRAMP): Remove define.
6818 * i386-sol2-tdep.c: New file.
6819
6820 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6821 * config/i386/tm-i386nw.h: Removed.
6822
6823 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6824 USE_STRUCT_CONVENTION): Remove defines.
6825 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6826 (get_longjmp_target): Remove prototype.
6827 (IN_SIGTRAMP): Remove define.
6828 (i386bsd_in_sigtramp): Remove prototype.
6829 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6830 function. Update comment accordingly
6831 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6832 (FRAME_SAVED_PC): Remove define.
6833 (i386bsd_frame_saved_pc): Remove prototype.
6834 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6835 GET_LONGJMP_TARGET): Remove defines.
6836 (get_longjmp_target): Remove prototype.
6837 (IN_SIGTRAMP): Remove define.
6838 (i386bsd_in_sigtramp): Remove prototype.
6839 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6840 function. Update comment accordingly
6841 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6842 (FRAME_SAVED_PC): Remove define.
6843 (i386bsd_frame_saved_pc): Remove prototype.
6844 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6845 Remove prototype.
6846 (USE_STRUCT_CONVENTION): Remove prototype.
6847 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6848 declaration.
6849 (_initialize_i386bsd_nat): Revise logic to determine some
6850 constants at compile time when compiling a native GDB. Warn if
6851 things don't match up with what we expect.
6852 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6853 Remove variables.
6854 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6855 to use date stored in `struct gdbarch_tdep'.
6856 (i386bsd_sigcontext_offset): Remove varaible.
6857 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6858 stored in `struct gdbarch_tdep'.
6859 (i386bsd_frame_saved_pc): Make static.
6860 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6861 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6862 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6863 i386fbsd4_sc_pc_offset): New variables.
6864 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6865 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6866 functions.
6867 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6868 functions.
6869 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6870 Modify the value of i386fbsd_sigtramp_start and
6871 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6872 i386fbsd_sigtramp_end.
6873 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6874 function.
6875
6876 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6877 define to i386-linux-tdep.h.
6878 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6879 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6880 defines.
6881 (i386_linux_register_name, i386_linux_register_byte,
6882 i386_linux_register_raw_size): Remove prototypes.
6883 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6884 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6885 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6886 TARGET_WRITE_PC): Remove defines.
6887 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6888 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6889 i386_linux_write_pc): Remove prototypes.
6890 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6891 (get_longjmp_target): Remove prototype.
6892 * i386-linux-tdep.h: New file.
6893 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6894 * i386-linux-tdep.c: Include "i386-tdep.h" and
6895 "i386-linux-tdep.h".
6896 (i386_linux_register_name, i386_linux_register_byte,
6897 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6898 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6899 Make static.
6900 (i386_linux_init_abi): New function.
6901 (_initialize_i386_linux_tdep): New function.
6902
6903 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6904 (i386_saved_pc_after_call): Remove prototype.
6905 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6906 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6907 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6908 (i386_register_name, i386_stab_reg_to_regnum,
6909 i386_dwarf_reg_to_regnum): Remove prototypes.
6910 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6911 SIZEOF_SSE_REGS): Remove defines.
6912 (REGISTER_BYTES): Remove define.
6913 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6914 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6915 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6916 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6917 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6918 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6919 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6920 (get_longjmp_target): Remove prototype.
6921 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6922 (sigtramp_saved_pc): Remove define.
6923 (i386v4_sigtramp_saved_pc): Remove prototype.
6924 * config/i386/tm-go32.h (FRAME_CHAIN,
6925 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6926 (i386go32_frame_saved_pc): Remove prototype.
6927 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6928 (get_longjmp_target): Remove prototype.
6929 * i386-tdep.h: Include "osabi.h".
6930 (enum i386_abi): Removed.
6931 (enum struct_return): New enum.
6932 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6933 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6934 sc_pc_offset members.
6935 (i386_gdbarch_register_os_abi): Remove prototype.
6936 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6937 I386_SSE_NUM_REGS): New defines.
6938 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6939 I386_SSE_SIZEOF_REGS): New defines.
6940 (i386_register_name, i386_register_byte, i386_register_raw_size):
6941 New prototypes.
6942 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6943 (i386bsd_sigtramp_saved_pc): New prototype.
6944 * i386-tdep.c: Don't include "elf-bfd.h".
6945 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6946 i386_frame_chain, i386_saved_pc_after_call): Make static.
6947 (i386_frame_saved_pc): Rewrite to call architecture dependent
6948 function to deal with signal handlers. Make static.
6949 (i386go32_frame_saved_pc): Removed.
6950 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6951 Removed.
6952 (i386_get_longjmp_target): New function.
6953 (default_struct_convention, pcc_struct_convention,
6954 reg_struct_convention, valid_conventions, struct_convention): New
6955 variables.
6956 (i386_use_struct_convention): New function.
6957 (i386v4_sigtramp_saved_pc): Renamed to
6958 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6959 (i386_pc_in_sigtramp): New function.
6960 (i386_abi_names): Removed.
6961 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6962 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6963 Removed.
6964 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6965 i386_gdbarch_register_os_abi): Removed.
6966 (struct i386_abi_handler): Removed.
6967 (i386_abi_handler_list): Removed.
6968 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6969 functions.
6970 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6971 i386_nw_init_abi): New functions.
6972 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6973 Use set_gdbarch_xxx() calls instead of relying on macros for a
6974 number of calls.
6975 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6976 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6977 Register the various architecture variants defined in this file.
6978
ad2f7632
DJ
69792002-06-14 Daniel Jacobowitz <drow@mvista.com>
6980
6981 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6982 (struct main_type): Remove arg_types member. Update comments for
6983 struct field.
6984 (TYPE_ARG_TYPES): Remove.
6985 (TYPE_FN_FIELD_ARGS): Update.
6986 (smash_to_method_type): Update prototype.
6987
6988 * c-typeprint.c (cp_type_print_method_args): Take method type
6989 instead of argument list. Use new argument layout. Simplify.
6990 (c_type_print_args): Use new argument layout. Simplify.
6991 (c_type_print_base): Update call to cp_type_print_method_args.
6992 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6993 argument; use die->type instead. Update call to
6994 smash_to_method_type.
6995 (read_structure_scope): Update call to dwarf2_add_member_fn.
6996 * gdbtypes.c (allocate_stub_method): Update comment.
6997 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6998 Use new argument layout.
6999 (check_stub_method): Use new argument layout. Don't count
7000 void as an argument.
7001 (print_arg_types): Update comments. Use new argument layout.
7002 (recursive_dump_type): Don't print arg_types member.
7003 * hpread.c (hpread_read_struct_type): Use new argument layout.
7004 (fixup_class_method_type): Likewise.
7005 (hpread_type_lookup): Likewise.
7006 * stabsread.c (read_type): Update calls to read_args and
7007 smash_to_method_type.
7008 (read_args): Use new argument layout. Simplify.
7009 * valops.c (typecmp): Use new argument layout. Update parameters
7010 and comments. Simplify.
7011 (hand_function_call): Use new argument layout.
7012 (search_struct_method): Update call to typecmp.
7013 (find_overload_match): Use new argument layout.
7014
6da02953
DJ
70152002-06-13 Daniel Jacobowitz <drow@mvista.com>
7016
7017 * NEWS: Mention multithreaded debug support for gdbserver.
7018
519b2366
DJ
70192002-06-13 Daniel Jacobowitz <drow@mvista.com>
7020
7021 * MAINTAINERS: Mention NEWS.
7022
6c0d6680
DJ
70232002-06-13 Daniel Jacobowitz <drow@mvista.com>
7024
7025 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7026 (struct mips_objfile_private, compare_pdr_entries): New.
7027 (non_heuristic_proc_desc): Read the ".pdr" section if it
7028 is present.
7029
6529d2dd
AC
70302002-06-12 Andrew Cagney <ac131313@redhat.com>
7031
7032 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7033 (arm_debug): New static variable.
7034 (_initialize_arm_tdep): Add ``set debug arm'' command.
7035
26216b98
AC
70362002-06-12 Andrew Cagney <ac131313@redhat.com>
7037
7038 * Makefile.in (sim_arm_h): Define.
7039 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7040 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7041 (arm_register_sim_regno): New function, map an internal REGNUM
7042 onto a simulator register number.
7043 (arm_gdbarch_init): Set register_sim_regno.
7044
814b3ba0
AH
70452002-06-09 Aldy Hernandez <aldyh@redhat.com>
7046
7047 * MAINTAINERS: Add self.
7048
475b0867
JB
70492002-06-11 Jim Blandy <jimb@redhat.com>
7050
919d772c
JB
7051 * source.c (source_info): Mention whether the symtab has
7052 information about preprocessor macros.
7053
475b0867
JB
7054 Call the command `info macro', not `show macro'.
7055 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7056 Fix error message.
7057 (_initialize_macrocmd): Register `info_macro_command' in
7058 `infolist', not `showlist'.
7059
9e364162
DJ
70602002-06-11 Daniel Jacobowitz <drow@mvista.com>
7061
7062 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7063 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7064 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7065 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7066 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7067 unconditionally.
7068 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7069 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7070 (_initialize_mips_tdep): Remove dead code.
7071 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7072 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7073 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7074 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7075 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7076 MIPS_LAST_FP_ARG_REGNUM): Remove.
7077
23aa4c72
ML
70782002-06-11 Michal Ludvig <mludvig@suse.cz>
7079
7080 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7081 (unwind_tmp_obstack_free, parse_frame_info)
7082 (update_context, cfi_read_fp, cfi_write_fp)
7083 (cfi_frame_chain, cfi_init_extra_frame_info)
7084 (cfi_virtual_frame_pointer): Use the above function.
264d1763 7085 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 7086
70eb15a4
CV
70872002-06-11 Corinna Vinschen <vinschen@redhat.com>
7088
7089 * v850-tdep.c (v850_type_is_scalar): New function.
7090 (v850_use_struct_convention): Match current gcc implementation
7091 as close as possible.
7092 (v850_push_arguments): Fix stack_offset handling. Don't write
7093 struct_addr into register. This is done by v850_store_struct_return.
7094 (v850_extract_return_value): Care for structs.
7095 (v850_store_return_value): Ditto.
7096 (v850_store_struct_return): Actually write address.
7097
482a4d06
ML
70982002-06-11 Michal Ludvig <mludvig@suse.cz>
7099
7100 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7101 without debug information too.
7102
d855c300
AC
71032002-06-10 Andrew Cagney <ac131313@redhat.com>
7104
7105 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7106 Make multi-arch pure.
7107 * gdbarch.h, gdbarch.c: Re-generate.
7108 * arm-tdep.c (arm_print_float_info): Update.
7109 * arch-utils.h (default_print_float_info): Update.
7110 * arch-utils.c (default_print_float_info): Update.
7111 * infcmd.c (float_info): Update call.
7112
dd12a101
AC
71132002-06-10 Andrew Cagney <ac131313@redhat.com>
7114
7115 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7116 the front of the initialize list.
7117
101dcfbe
AC
71182002-06-10 Andrew Cagney <ac131313@redhat.com>
7119
7120 * infrun.c (struct inferior_status): Replace fields
7121 selected_frame_address and selected_level with field
7122 selected_frame_id.
7123 (save_inferior_status): Update. Use get_frame_id.
7124 (struct restore_selected_frame_args): Delete.
7125 (restore_selected_frame): Update. Use frame_find_by_id.
7126 (restore_inferior_status): Update.
7127
7128 * breakpoint.h (struct breakpoint): Change type of
7129 watchpoint_frame to frame_id.
7130 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7131 call to get_current_frame.
7132 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7133 get_current_frame.
7134 (watchpoint_check): Use frame_find_by_id.
7135
7136 * frame.h (record_selected_frame): Delete declaration.
7137 * stack.c (record_selected_frame): Delete function.
7138
7139 * frame.h (struct frame_id): Define.
7140 (get_frame_id): Declare.
7141 (frame_find_by_id): Declare.
7142 * frame.c (frame_find_by_id): New function.
7143 (get_frame_id): New function.
7144
304270b6
AV
71452002-06-10 Andrey Volkov <avolkov@transas.com>
7146
7147 * ser-e7kpc.c: Fix duplicated define and call of
7148 _initialize_ser_e7000pc
7149
2f2cf184
DJ
71502002-06-09 Daniel Jacobowitz <drow@mvista.com>
7151
7152 * signals/signals.c (target_signal_from_host): Fix #ifdef
7153 SIGRTMIN case.
7154 (do_target_signal_to_host): Likewise.
7155
caaa3122
DJ
71562002-06-09 Daniel Jacobowitz <drow@mvista.com>
7157
7158 * mips-tdep.c (mips_find_abi_section): New function.
7159 (mips_gdbarch_init): Call it.
7160
6ac5df3a
MK
71612002-06-09 Mark Kettenis <kettenis@gnu.org>
7162
7163 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7164 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7165 after Andrew's 2002-06-08 gdbarch change.
7166
82ea117a
MK
71672002-06-09 Mark Kettenis <kettenis@gnu.org>
7168
7169 * i386-linux-nat.c (suppy_gregset): Don't supply
7170 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7171 register cache.
7172 (fill_gregset): Don't fetch it under the same circumstances.
7173
3c25f8c7
AC
71742002-06-09 Andrew Cagney <cagney@redhat.com>
7175
7176 * Makefile.in (callback_h): Define.
7177 (remote_sim_h): Update path to remote-sim.h.
7178 (remote-rdp.o): Add $(callback_h).
7179 (remote-sim.o): Use $(callback_h).
7180 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7181 * remote-rdp.c: Include "gdb/callback.h".
7182
1029b7fa
MK
71832002-06-09 Mark Kettenis <kettenis@gnu.org>
7184
7185 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7186 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7187
616675d3
AC
71882002-06-08 Andrew Cagney <ac131313@redhat.com>
7189
a3efda28
AC
7190 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7191 * rdi-share/serpardr.c: Ditto.
7192 * rdi-share/unixcomm.c: Ditto.
7193 * rdi-share/serdrv.c: Ditto.
7194 * rdi-share/hostchan.h: Ditto.
7195 * rdi-share/hostchan.c: Ditto.
7196 * rdi-share/host.h: Ditto.
7197 * rdi-share/devsw.c: Ditto.
7198
c5f10366
AC
7199 * objfiles.h: Change type of obj_private to void pointer.
7200 * pa64solib.c: Update copyright. Don't include "assert.h", use
7201 strcmp instead of STREQ, use LONGEST, do not use PTR
7202 * somsolib.c: Ditto.
7203
616675d3
AC
7204 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7205 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7206 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7207
e4b415d9
AC
72082002-06-08 Andrew Cagney <ac131313@redhat.com>
7209
7210 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7211 (default_get_saved_register): Delete function.
7212 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7213 generic_unwind_get_saved_register.
7214 * gdbarch.h, gdbarch.c: Re-generate.
7215
ca0d0b52
AC
72162002-06-08 Andrew Cagney <ac131313@redhat.com>
7217
7218 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7219 generic_func_frame_chain_valid.
7220 * gdbarch.h, gdbarch.c: Re-generate.
7221 * blockframe.c (generic_func_frame_chain_valid): Only check
7222 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7223 passing FP to PC_IN_CALL_DUMMY.
7224 Fix PR gdb/360.
7225
76860b5f
AC
72262002-06-08 Andrew Cagney <ac131313@redhat.com>
7227
7228 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7229 (register_gdbarch_data): Initialize init_p.
7230 (gdbarch_data): Initialize data pointer using the init function.
7231 (init_gdbarch_data): Delete function.
7232 (gdbarch_update_p): Update.
7233 (initialize_non_multiarch): Update.
7234 (struct gdbarch): Add field initialized_p.
7235 * gdbarch.h, gdbarch.c: Re-generate.
7236
8dda9770
ML
72372002-06-07 Michal Ludvig <mludvig@suse.cz>
7238
7239 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7240 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7241 better do the things actually here.
7242 * x86-64-tdep.c (x86_64_register_name2nr): New.
7243 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7244 (x86_64_gdbarch_init): Respect the above change.
7245 * x86-64-tdep.h (x86_64_register_name2nr)
7246 (x86_64_register_nr2name): Add prototypes.
7247 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7248
3d79a47c
MS
72492002-06-06 Michael Snyder <msnyder@redhat.com>
7250
7bd91a28
MS
7251 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7252 Delete extra braces and re-indent.
7253 (d10v_store_return_value): Char return values
3d79a47c
MS
7254 must be shifted over by one byte in R0.
7255 (d10v_extract_return_value): Delete extra braces, re-indent.
7256
095a4c96
EZ
72572002-06-06 Elena Zannoni <ezannoni@redhat.com>
7258
7259 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7260 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7261 (d10v_integer_to_address): Rewrite.
7262 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7263 the d10v specific functions which take care of converting to the
7264 correct space.
7265
e8a77ca4
EZ
72662002-06-06 Elena Zannoni <ezannoni@redhat.com>
7267
7268 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7269 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7270
4f2e4a4f
AC
72712002-06-02 Andrew Cagney <ac131313@redhat.com>
7272
7273 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7274 includes.
7275 * config/tm-linux.h: Ditto.
7276 * config/alpha/tm-alphalinux.h: Ditto.
7277 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7278 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7279 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7280 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7281 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7282 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7283 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7284 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7285 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7286 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7287 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7288 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7289 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7290 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7291 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7292 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7293 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7294 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7295 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7296 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7297 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7298 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7299 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7300 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7301 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7302 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7303 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7304 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7305 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7306 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7307 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7308 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7309 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7310 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7311 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7312 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7313 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7314
ae2ab2ce
AS
73152002-05-04 Aidan Skinner <aidan@velvet.net>
7316
7317 * ada-exp.tab.c: New file
7318 * ada-exp.y: New file
7319 * ada-lang.c: New file
7320 * ada-lang.h: New file
7321 * ada-lex.c: New file
7322 * ada-lex.l: New file
7323 * ada-tasks.c: New file
7324 * ada-typeprint.c: New file
7325 * ada-valprint.c: New file
7326
0ddd0135
JT
73272002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7328
7329 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7330 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7331
750fbacc
JT
73322002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7333
7334 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7335 insetead of ppc-linux-tdep.o.
7336 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7337 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7338
df94e18a
AC
73392002-06-02 Andrew Cagney <ac131313@redhat.com>
7340
7341 2002-05-07 Christian Groessler <chris@groessler.org>
7342 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7343 bit register contents for little endian hosts.
7344
1a38ab75
AC
73452002-06-01 Andrew Cagney <ac131313@redhat.com>
7346
7347 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7348 any maintainer.
7349
8b1632ac
AC
73502002-06-01 Andrew Cagney <ac131313@redhat.com>
7351
7352 * gdbarch.h: Regenerate.
7353
627054c8
AC
73542002-06-01 Andrew Cagney <ac131313@redhat.com>
7355
7356 * MAINTAINERS: Add everyone to write-after-approval list.
7357
4f460812
AC
73582002-06-01 Andrew Cagney <ac131313@redhat.com>
7359
7360 * stack.c (frame_info): Use frame_register_unwind instead of
7361 saved_regs. Mention when the SP is on the stack or in a register.
7362
7363 * frame.h (frame_register_unwind_ftype): Define. Document.
7364 (struct frame_info): Add field register_unwind and
7365 register_unwind_cache.
7366 (frame_register_unwind): Declare.
7367 (generic_unwind_get_saved_register): Declare.
7368
7369 * frame.c (frame_register_unwind): New function.
7370 (generic_unwind_get_saved_register): New function.
7371
7372 * blockframe.c (generic_call_dummy_register_unwind): New function.
7373 (frame_saved_regs_register_unwind): New function.
7374 (set_unwind_by_pc): New function.
7375 (create_new_frame): New function.
7376 (get_prev_frame): New function.
7377
de888f76
AC
73782002-05-30 Andrew Cagney <ac131313@redhat.com>
7379
7380 * a29k-share/: Delete directory.
7381 * remote-vx29k.c: Delete file.
7382
2f2c3626
JT
73832002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7384
7385 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7386 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7387
9ce5c36a
JT
73882002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7389
7390 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7391 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7392 (sparc64nbsd-nat.o)
7393 (sparcnbsd-nat.o)
7394 (sparcnbsd-tdep.o): New dependency lists.
7395 * NEWS: Note new UltraSPARC NetBSD native configuration.
7396 * configure.host (sparc64-*-netbsd*): New host.
7397 * configure.tgt (sparc-*-netbsdelf*)
7398 (sparc-*-netbsd*): Set gdb_target to nbsd.
7399 (sparc64-*-netbsd*): New target.
7400 * sparc64nbsd-nat.c: New file.
7401 * sparcnbsd-nat.c: New file.
7402 * sparcnbsd-tdep.c: New file.
7403 * sparcnbsd-tdep.h: New file.
7404 * config/sparc/nbsd.mt: New file.
7405 * config/sparc/nbsd64.mh: New file.
7406 * config/sparc/nbsd64.mt: New file.
7407 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7408 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7409 (HOST_IPC): Remove.
7410 * config/sparc/nbsdaout.mt: Remove.
7411 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7412 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7413 (HOST_IPC): Remove.
7414 * config/sparc/nbsdelf.mt: Remove.
7415 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7416 sparc-nat.c compatiblity defines.
7417 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7418 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7419 * config/sparc/tm-nbsd64.h: New file.
7420 * config/sparc/tm-nbsdaout.h: Remove.
7421 * config/sparc/xm-nbsd.h: Remove.
7422
ef3cf062
JT
74232002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7424
7425 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7426 * sparc-tdep.c: Include osabi.h.
7427 (gdbarch_tdep): Add osabi member.
7428 (_initialize_sparc_tdep): Use gdbarch_register.
7429 (sparc_gdbarch_init): Use generic OS ABI framework.
7430 (sparc_dump_tdep): New function.
7431
ee8ff470
KB
74322002-05-30 Kevin Buettner <kevinb@redhat.com>
7433
7434 * corefile.c (do_captured_read_memory_integer): Return non-zero
7435 result.
7436 (safe_read_memory_integer): Copy result of memory read when
7437 status is non-zero. Also, add comments.
7438
7b112f9c
JT
74392002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7440
7441 * Makefile.in (ppc_tdep_h): Define.
7442 (ppc-linux-nat.o)
7443 (ppc-linux-tdep.o)
7444 (rs6000-tdep.o): Use $(ppc_tdep_h).
7445 (ppc-sysv-tdep.o)
7446 (ppcnbsd-nat.o)
7447 (ppcnbsd-tdep.o): New dependency lists.
7448 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7449 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7450 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7451 (ppc_sysv_abi_broken_use_struct_convention)
7452 (ppc_sysv_abi_use_struct_convention)
7453 (ppc_sysv_abi_push_arguments): Move to...
7454 * ppc-sysv-tdep.c: ...here.
7455 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7456 * rs6000-tdep.c (process_note_abi_tag_sections)
7457 (get_elfosabi): Remove.
7458 (rs6000_gdbarch_init): Use generic OS ABI framework.
7459 (rs6000_dump_tdep): New function.
7460 (_initialize_rs6000_tdep): Use gdbarch_register.
7461 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7462 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7463 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7464 of ppc-linux-tdep.o.
7465 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7466 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7467 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7468 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7469 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7470 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7471
480dd42a
JB
74722002-05-29 Jim Blandy <jimb@redhat.com>
7473
7474 * macroscope.c (default_macro_scope): Put `void' in empty argument
7475 list.
7476
4182591f
AC
74772002-05-29 Andrew Cagney <ac131313@redhat.com>
7478
7479 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7480 * arch-utils.c: Include "sim-regno.h".
7481 * gdbarch.sh: Don't include "sim-regno.h".
7482 * gdbarch.h, gdbarch.c: Regenerate.
7483 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7484 here.
7485 * arch-utils.h (legacy_register_sim_regno): To here.
7486 * remote-sim.c (legacy_register_sim_regno): Move function from
7487 here.
7488 * arch-utils.c (legacy_register_sim_regno): To here.
7489
8238d0bf
AC
74902002-05-28 Andrew Cagney <ac131313@redhat.com>
7491
7492 * sim-regno.h: New file.
7493 * Makefile.in (sim_regno_h): Define.
7494 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7495 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7496 (legacy_register_sim_regno): New function.
7497 (one2one_register_sim_regno): New function.
7498 (gdbsim_fetch_register): Rewrite.
7499 (gdbsim_store_register): Only store a register when
7500 REGISTER_SIM_REGNO is valid.
7501 * d10v-tdep.c: Include "sim-regno.h".
7502 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7503 (d10v_ts3_register_sim_regno): Ditto.
7504 * gdbarch.sh: Include "sim-regno.h".
7505 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7506 * gdbarch.h, gdbarch.c: Regenerate.
7507 * arch-utils.h (default_register_sim_regno): Delete declaration.
7508 * arch-utils.c (default_register_sim_regno): Delete function.
7509
485721b1
JT
75102002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7511
7512 * ppcnbsd-nat.c: Rewrite.
7513 * ppcnbsd-tdep.c: New file.
7514 * ppcnbsd-tdep.h: New file.
7515 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7516 solib.o, and solib-svr4.o.
7517 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7518 nbsd-tdep.o, and corelow.o.
7519
697f244d
AC
75202002-05-28 Andrew Cagney <ac131313@redhat.com>
7521
7522 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7523 `tr' and `sed'. Mention that `broken' targets are not expected to
7524 build.
7525
f08caad1 75262002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
7527
7528 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7529 Let PC point right after the prologue before looking up symbols.
7530
3139facc
MH
75312002-05-27 Martin M. Hunt <hunt@redhat.com>
7532
7533 * i386-tdep.c (i386_register_virtual_type): Return
7534 builtin_type_vec128i for SSE registers.
7535
7536 * gdbtypes.h (builtin_type_vec128i): Declare.
7537
7538 * gdbtypes.c (build_builtin_type_vec128i): New function.
7539 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7540 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7541 (build_gdbtypes): Initialize new builtin vector types.
7542 (_initialize_gdbtypes): Register new vector types with gdbarch.
7543
6e3ba3b8
JT
75442002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7545
7546 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7547 since it has been multi-arch'd.
7548 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7549 Move Alpha and VAX multi-arch news entries to same section
7550 as other multi-arch news.
7551
93d5585d
JT
75522002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7553
7554 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7555 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7556 static. Rename some register numbers to put them in ns32k-tdep
7557 private namespace.
7558 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7559 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7560 functions.
7561 (_initialize_ns32k_tdep): Use gdbarch_register.
7562 * ns32k-tdep.h: New file.
7563 * ns32knbsd-tdep.c: New file.
7564 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7565 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7566 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7567 REGISTER_BYTES, REGISTER_BYTE): Remove.
7568 * config/ns32k/tm-ns32k.h: New file.
7569 * config/ns32k/tm-umax.h: Remove.
7570
efb2c70e
JT
75712002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7572
7573 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7574 ns32k_store_struct_return, ns32k_extract_return_value,
7575 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7576 functions.
7577 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7578 ns32k_saved_pc_after_call.
7579 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7580 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7581 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7582 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7583 ns32k_extract_struct_value_address.
7584
7bcc927b
JT
75852002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7586
7587 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7588 ns32k_fix_call_dummy): New.
7589 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7590 ns32k_call_dummy_words.
7591 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7592 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7593 CALL_DUMMY_NARGS): Remove.
7594 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7595
78f9d765
JT
75962002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7597
7598 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7599 ns32k_frame_saved_pc, ns32k_frame_args_address,
7600 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7601 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7602 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7603 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7604 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7605 (BREAKPOINT): Remove..
7606 (FRAME_CHAIN): Define as ns32k_frame_chain.
7607 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7608 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7609 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7610 (FRAME_FIND_SAVED_REGS): Remove.
7611 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7612 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7613 (POP_FRAME): Define as ns32k_pop_frame.
7614
f2c762e0
JT
76152002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7616
7617 * ns32k-tdep.c (ns32k_register_byte_32082,
7618 ns32k_register_byte_32382, ns32k_register_raw_size,
7619 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7620 functions.
7621 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7622 ns32k_register_byte_32382.
7623 * config/ns32k/tm-umax.h: Update copyright years.
7624 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7625 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7626 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7627 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7628 (ns32k_get_enter_addr): Fix prototype.
7629
af137673
JT
76302002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7631
7632 * ns32k-tdep.c: Update copyright years.
7633 (ns32k_register_name_32082): New function.
7634 (ns32k_register_name_32382): Ditto.
7635 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7636 (REGISTER_NAME): Define as ns32k_register_name_32382.
7637 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7638 (REGISTER_NAME): Define as ns32k_register_name_32082.
7639
a8bc7b56
JB
76402002-05-24 Jim Blandy <jimb@redhat.com>
7641
7642 * dwarf2read.c (free_line_header): Use xfree, not free.
7643
83a45910
JT
76442002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7645
7646 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7647 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7648
0db71247
AC
76492002-05-23 Andrew Cagney <ac131313@redhat.com>
7650
7651 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7652
b9e5e4dd
AC
76532002-05-23 Andrew Cagney <ac131313@redhat.com>
7654
7655 From Ross Alexander at NEC Europe:
7656 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7657
de530e84
MS
76582002-05-23 Michael Snyder <msnyder@redhat.com>
7659
7660 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7661 for input, rather than parse_and_eval_address.
7662
b91b96f4
AC
76632002-05-23 Andrew Cagney <ac131313@redhat.com>
7664
7665 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7666 * Makefile.in (sim_d10v_h): Update definition.
7667
8b279e7a
AC
76682002-05-24 Andrew Cagney <cagney@redhat.com>
7669
7670 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7671 change `2002-05-22 Michael Snyder' below.
7672 (d10v_push_arguments): Ditto.
7673 (d10v_extract_return_value): Ditto.
7674
0a3d0425
JB
76752002-05-23 Jim Blandy <jimb@redhat.com>
7676
7677 * macrotab.c (check_for_redefinition): Don't complain if the new
7678 definition is the same as the previous one. Take more arguments
7679 to allow the comparison.
7680 (macro_define_object, macro_define_function): Pass more arguments
7681 to check_for_redefinition.
7682
78eac43e
MS
76832002-05-22 Michael Snyder <msnyder@redhat.com>
7684
7685 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7686 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7687 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7688 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7689 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7690 Add a temp variable to save a call (and a memory read).
7691 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7692 if possible (so that PC_IN_CALL_DUMMY will work).
7693
9bc1edb8
CV
76942002-05-22 Corinna Vinschen <vinschen@redhat.com>
7695
7696 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7697
005ef3d2
ML
76982002-05-22 Michal Ludvig <mludvig@suse.cz>
7699
7700 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7701 fde->cie_ptr.
7702 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7703 (dwarf2_build_frame_info): Add offset to fde->initial_location
7704 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
7705 (execute_stack_op): Change type of 'result' from ULONGEST to
7706 CORE_ADDR.
005ef3d2 7707
fcf4f891
JT
77082002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7709
7710 * config/alpha/tm-nbsd.h: Include solib.h.
7711
cfef91e4
JT
77122002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7713
7714 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7715 assumptions about the host's byte order.
7716
9964235a
JT
77172002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7718
7719 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7720 to dependency list.
7721 * alphanbsd-tdep.c: Include solib-svr4.h.
7722 * shnbsd-tdep.c: Ditto.
7723
9eeef8ef
JT
77242002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7725
7726 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7727 nbsd-tdep.h to dependency list.
7728 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7729 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7730 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7731 nbsdaout.mh and nbsdelf.mh consistently.
7732 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7733 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7734 nbsdaout.mt and nbsdelf.mh consistently.
7735 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7736 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7737 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7738 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7739 a.out shared library stuff from here...
7740 * config/nm-nbsdaout.h: ...to here.
7741 * config/tm-nbsd.h: Remove.
7742 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7743 * config/arm/nbsd.mh: Remove.
7744 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7745 nbsd-tdep.o.
7746 * config/arm/nbsdaout.mh: New file.
7747 * config/arm/nbsdelf.mh: New file.
7748 * config/arm/nm-nbsdaout.h: New file.
7749 * config/i386/nbsd.mh: Remove.
7750 * config/i386/nbsd.mt: Remove.
7751 * config/i386/nbsdaout.mh: New file.
7752 * config/i386/nbsdaout.mt: New file.
7753 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7754 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7755 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7756 i386_register_u_addr): Remove.
7757 * config/i386/nm-nbsdaout.h: New file.
7758 * config/i386/nm-nbsdelf.h: Remove.
7759 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7760 (USE_STRUCT_CONVENTION): Remove.
7761 * config/i386/tm-nbsdaout.h: New file.
7762 * config/i386/tm-nbsdelf.h: Remove.
7763 * config/m68k/nbsd.mh: Remove.
7764 * config/m68k/nbsd.mt: Remove.
7765 * config/m68k/nbsdaout.mh: New file.
7766 * config/m68k/nbsdaout.mt: New file.
7767 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7768 * config/m68k/nm-nbsdaout.h: New file.
7769 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7770 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7771 * config/ns32k/nbsd.mh: Remove.
7772 * config/ns32k/nbsd.mt: Remove.
7773 * config/ns32k/nbsdaout.mh: New file.
7774 * config/ns32k/nbsdaout.mt: New file.
7775 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7776 * config/ns32k/nm-nbsdaout.h: New file.
7777 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7778 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7779 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7780 (SVR4_SHARED_LIBS): Remove.
7781 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7782 * config/sparc/nbsd.mh: Remove.
7783 * config/sparc/nbsd.mt: Remove.
7784 * config/sparc/nbsdaout.mh: New file.
7785 * config/sparc/nbsdaout.mt: New file.
7786 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7787 * config/sparc/nbsdelf.mt: New file.
7788 * config/sparc/nm-nbsdaout.h: New file.
7789 * config/sparc/nm-nbsdelf.h: Remove.
7790 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7791 * config/sparc/tm-nbsdaout.h: New file.
7792
257ce470
JT
77932002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7794
7795 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7796 mipsnbsd-tdep.c
7797 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7798
76a6d5fe
JT
77992002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7800
7801 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7802 shnbsd-nat.c.
7803 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7804
45888261
JT
78052002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7806
7807 * NEWS: Note new MIPS NetBSD native configuration.
7808 * configure.host (mips*-*-netbsd*): New host.
7809 * configure.tgt (mips*-*-netbsd*): New target.
7810 * mipsnbsd-nat.c: New file.
7811 * mipsnbsd-tdep.c: New file.
7812 * mipsnbsd-tdep.h: New file.
7813 * config/mips/nbsd.mh: New file.
7814 * config/mips/nbsd.mt: New file.
7815 * config/mips/nm-nbsd.h: New file.
7816 * config/mips/tm-nbsd.h: New file.
7817
70f80edf
JT
78182002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7819
7820 * Makefile.in (SFILES): Add osabi.c.
7821 (COMMON_OBS): Add osabi.o.
7822 (osabi.o): New dependency list.
7823 * osabi.c: New file.
7824 * osabi.h: New file.
7825 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7826
7827 * Makefile.in (alpha_tdep_h): Define and use instead of
7828 alpha-tdep.h.
7829 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7830 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7831 Remove.
7832 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7833 * alpha-tdep.h: Include osabi.h.
7834 (alpha_abi): Remove.
7835 (gdbarch_tdep): Use generic OS ABI framework.
7836 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7837 gdbarch_register_osabi.
7838 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7839 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7840 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7841
7842 * Makefile.in (sh_tdep_h): Add osabi.h.
7843 * sh-tdep.h (sh_osabi): Remove.
7844 (gdbarch_tdep): Use generic OS ABI framework.
7845 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7846 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7847 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7848 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7849
7850 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7851 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7852 gdbarch_register_osabi.
7853 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7854 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7855 (get_elfosabi): Rename to...
7856 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7857 ABI framework support routines.
7858 (arm_gdbarch_init): Use generic OS ABI framework.
7859 (arm_dump_tdep): Likewise.
7860 (_initialize_arm_tdep): Likewise.
7861 * arm-tdep.h: Include osabi.h.
7862 (arm_abi): Remove.
7863 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7864 osabi member.
7865 (arm_gdbarch_register_os_abi): Remove prototype.
7866 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7867 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7868
7869 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7870 * mips-tdep.c: Include osabi.h.
7871 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7872 OS ABI framework.
7873
d194345b
KH
78742002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7875
7876 * h8300-tdep.c: Fix formatting.
7877
70c6b0d1
EZ
78782002-05-20 Elena Zannoni <ezannoni@redhat.com>
7879
7880 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7881 printing vector registers.
7882
165b8e33
AC
78832002-05-19 Andrew Cagney <ac131313@redhat.com>
7884
7885 From Fernando Nasser:
7886 * remote.c (remote_async_open_1): Re-throw the exception when the
7887 connection fails.
7888 (remote_cisco_open): Ditto.
7889 (remote_open_1): Ditto.
7890
36918e70
AC
78912002-05-19 Andrew Cagney <ac131313@redhat.com>
7892
7893 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7894 (remote_start_remote): Add uiout parameter. Pass through to
7895 remote_start_remote_dummy.
7896 (remote_open_1): Use catch_exception instead of catch_errors.
7897 (remote_async_open_1): Ditto.
7898 (remote_cisco_open): Ditto.
7899
ae44c0c4
AC
79002002-05-19 Andrew Cagney <ac131313@redhat.com>
7901
7902 * remote.c (remote_start_remote): Replace PTR with void pointer.
7903 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7904 static.
7905
8efe637d
AC
79062002-05-18 Andrew Cagney <ac131313@redhat.com>
7907
7908 * gdb_indent.sh: Allow the script to be run in the sim directory.
7909
2f1b5984
MK
79102002-05-18 Mark Kettenis <kettenis@gnu.org>
7911
f0f625e2
MK
7912 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7913 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7914
2f1b5984
MK
7915 * corelow.c (core_open): Only call set_gdbarch_from_file if
7916 exec_bfd is NULL.
7917
fc974602
AV
79182002-05-17 Andrey Volkov <avolkov@transas.com>
7919
7920 * h8300-tdep.c: Add support of EXR register
7921 * config/h8300/tm-h8300.h: Ditto.
7922
906709f4
AV
79232002-05-17 Andrey Volkov <avolkov@transas.com>
7924
7925 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7926
6e591d68
AV
79272002-05-17 Andrey Volkov <avolkov@transas.com>
7928
7929 * h8300-tdep.c: Change literal regnums to REGNO.
7930
84f0252a
JB
79312002-05-17 Jim Blandy <jimb@redhat.com>
7932
e0e9281e
JB
7933 * NEWS: Note addition of macro support.
7934
84f0252a
JB
7935 Expand preprocessor macros in C expressions.
7936 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7937 (scan_macro_expansion, scanning_macro_expansion,
7938 finished_macro_expansion): New function declarations.
7939 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7940 variable declarations.
7941 * parser-defs.h (expression_context_pc): New declaration.
7942 * parse.c (expression_context_pc): New variable.
7943 (parse_exp_1): Set expression_context_pc, as well as
7944 expression_context_block.
7945 * c-exp.y (yylex): If we're not already reading the result of a
7946 macro expansion, try to macro-expand the next token. When we're
7947 done scanning a macro expansion, switch back to the mainline text.
7948 Commas and `if's in a macro's expansion don't terminate the input.
7949 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7950 (macro_original_text, macro_expanded_text,
7951 expression_macro_lookup_func, expression_macro_lookup_baton): New
7952 variables.
7953 (scan_macro_expansion, scanning_macro_expansion,
7954 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7955 c_preprocess_and_parse): New functions.
7956 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7957 c_preprocess_and_parse, instead of c_parse.
7958 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7959 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7960
1c509ca8
JR
7961Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7962
7963 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7964 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7965 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7966
2250ee0c
CV
79672002-05-17 Corinna Vinschen <vinschen@redhat.com>
7968
7969 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7970
ab3b8126
JT
79712002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7972
7973 * Makefile.in (sh_tdep_h): Define and use.
7974 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7975 register enum): Move to...
7976 * * sh-tdep.h: ...here.
7977 * sh-tdep.c: Include sh-tdep.h.
7978 * sh3-rom.c: Likewise.
7979 * shnbsd-tdep.c: Likewise.
7980
ed9d4749
MS
79812002-05-16 Michael Snyder <msnyder@redhat.com>
7982
7983 * arm-tdep.c: Spelling fix in comment.
7984
2e276125
JB
79852002-05-16 Jim Blandy <jimb@redhat.com>
7986
6821892e
JB
7987 Add commands for manually expanding macros and showing their
7988 definitions.
7989 * macrocmd.c, macroscope.c, macroscope.h: New files.
7990 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7991 (macroscope_h): New variable.
7992 (HFILES_NO_SRCDIR): Add macroscope.h.
7993 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7994 (macroscope.o, macrocmd.o): New rules.
7995
2e276125
JB
7996 Teach the Dwarf 2 reader to read macro information.
7997 * dwarf2read.c: #include "macrotab.h".
7998 (dwarf_macinfo_buffer): New variable.
7999 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8000 dwarf_macinfo_size.
8001 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8002 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8003 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8004 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8005 dwarf2_macro_spaces_in_definition): New complaints.
8006 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8007 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8008 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8009 the partial symbol table.
8010 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8011 from what's recorded in the partial symbol table.
8012 (read_file_scope): If the compilation unit has a
8013 `DW_AT_macro_info' attribute, read its macro information.
8014 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8015
2f53fe6c
DJ
80162002-05-16 Daniel Jacobowitz <drow@mvista.com>
8017
8018 Fix PR gdb/546
8019 * ser-tcp.c: Don't include <netinet/udp.h>.
8020
2be99286
SC
80212002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8022
8023 * MAINTAINERS: Update my email address.
8024
c9af212b 80252002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
8026
8027 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8028 include file of the same name.
8029
bf5f1a52
CV
80302002-05-16 Corinna Vinschen <vinschen@redhat.com>
8031
8032 * configure.tgt: Mark v850 as multi-arched.
8033 * config/v850/tm-v850.h: Remove file.
8034 * config/v850/v850.mt: Eliminate TM_FILE.
8035
435e042a
CV
80362002-05-16 Corinna Vinschen <vinschen@redhat.com>
8037
8038 * v850-tdep.c: Full multi-arch.
8039 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8040 Define GDB_MULTI_ARCH to 2.
8041
9819c6c8
PM
80422002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8043
8044 * p-exp.y (current_type): New static variable.
8045 Carries the type of the expression at the position that is parsed.
8046 (push_current_type, pop_current_type): Two new functions. Used
8047 to store/restore current_type in expression on specific tokens.
c9af212b
RE
8048 (search_field): New static variable. Set to one after parsing a point
8049 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
8050 (FIELDNAME): New token. After a point only a token belonging to
8051 current_type type definition is allowed.
8052 (all over token rules): reset and change current_type according
8053 to rules.
8054 (exp '[' rule): insert implicit array index field if
8055 exp is a pascal string type.
8056
3a06899a
CV
80572002-05-16 Corinna Vinschen <vinschen@redhat.com>
8058
8059 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8060 frame info. Use frame_info's saved_regs instead of matching member
8061 in extra_frame_info throughout.
8062 (v850_frame_init_saved_regs): New function.
8063 (v850_init_extra_frame_info): Move most functionality into
8064 v850_frame_init_saved_regs().
8065 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8066 (v850_frame_find_saved_regs): Remove declaration.
8067 (FRAME_FIND_SAVED_REGS): Remove definition.
8068 (v850_frame_init_saved_regs): Add declaration.
8069 (FRAME_INIT_SAVED_REGS): Add definition.
8070
6ed14b0e
CV
80712002-05-16 Corinna Vinschen <vinschen@redhat.com>
8072
8073 * v850-tdep.c: Begin multi-arch'ing v850.
8074 (v850_target_architecture_hook): Remove function.
8075 (v850_gdbarch_init): New function. Add code previously in
8076 v850_target_architecture_hook().
8077 (_initialize_v850_tdep): Don't set target_architecture_hook.
8078 Call register_gdbarch_init() instead.
8079
42725910
DJ
80802002-05-16 Daniel Jacobowitz <drow@mvista.com>
8081
8082 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8083 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8084 (fixup_class_method_type): Likewise.
8085
99d9066e
JB
80862002-05-15 Jim Blandy <jimb@redhat.com>
8087
8088 Add macro structures to GDB's symbol tables. Nobody puts anything
8089 in them yet.
8090 * symtab.h (struct symtab): New member: `macro_table'.
8091 * buildsym.h (pending_macros): New global variable.
8092 * buildsym.c: #include "macrotab.h".
8093 (buildsym_init): Initialize `pending_macros'.
8094 (end_symtab): If we found macro information while reading a CU's
8095 debugging info, do build a symtab structure for it. Make the
8096 symtab point to the macro information, and clear the
8097 `pending_macros' pointer which held it while we were reading the
8098 debug info.
8099 (really_free_pendings): Free any pending macro table.
8100 * objfiles.h (struct objfile): New member: `macro_cache'.
8101 * objfiles.c (allocate_objfile): Set allocate and free functions
8102 for the macro cache's objstack.
8103 (free_objfile): Empty the macro cache's obstack.
8104 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8105 set new allocate and free functions for it.
8106 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8107 free functions for the macro cache's objstack. (Why is this
8108 function building its own objfile?)
8109 * symmisc.c (print_objfile_statistics): Print statistics on the
8110 macro bcache.
8111 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8112
c899585b
RE
81132002-05-15 Richard Earnshaw <rearnsha@arm.com>
8114
8115 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8116 (REGISTER_U_ADDR): Delete definition.
8117 (arm_register_u_addr): Delete declaration.
8118
a6cdd8c5
RE
81192002-05-15 Richard Earnshaw <rearnsha@arm.com>
8120
8121 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8122 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8123
c97dcfc7
AC
81242002-05-14 Andrew Cagney <ac131313@redhat.com>
8125
8126 * regcache.c (register_valid): Revise comments refering to "Not
8127 available" and "unavailable".
8128 * frame.c (frame_register_read): Ditto.
8129 * findvar.c (value_of_register): Ditto.
8130
93021b7d
AC
81312002-05-15 Andrew Cagney <cagney@redhat.com>
8132
8133 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8134 (remote-sim.o): Update dependencies.
8135 (d10v-tdep.o): Specify dependencies.
8136 (sim_d10v_h): Define.
8137
a86bc61c
JB
81382002-05-14 Jim Blandy <jimb@redhat.com>
8139
8140 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8141 * macrotab.c (macro_lookup_inclusion, find_definition,
8142 new_macro_table): Same.
8143
8144 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8145 not `! strcmp ()'. This is a dubious improvement.
8146 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8147
8148 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8149 although it's not necessary, to avoid a warning.
8150
2fdde8f8
DJ
81512002-05-14 Daniel Jacobowitz <drow@mvista.com>
8152
8153 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8154 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8155 TYPE_INSTANCE_FLAGS.
8156 (struct main_type): New.
8157 (struct type): Move most members to struct main_type. Change
8158 cv_type and as_type to new type_chain member. Add instance_flags.
8159 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8160 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8161 (finish_cv_type): Remove prototype.
8162 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8163 Set TYPE_CHAIN.
8164 (alloc_type_instance): New function.
8165 (smash_type): New function.
8166 (make_pointer_type, make_reference_type, make_function_type)
8167 (smash_to_member_type, smash_to_method_type): Call smash_type.
8168 (make_qualified_type): New function.
8169 (make_type_with_address_space): Call make_qualified_type.
8170 (make_cv_type): Likewise.
8171 (finish_cv_type): Remove unnecessary function.
8172 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8173 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8174 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8175 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8176 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8177 * hpread.c (hpread_read_struct_type): Likewise.
8178 * stabsread.c (read_struct_type): Likewise.
8179
843fedf4
EZ
81802002-05-14 Elena Zannoni <ezannoni@redhat.com>
8181
8182 * configure.tgt: Add a catch all sh* target, for cases like
8183 sh[2,3,4]-elf and sh-hms.
8184
05a6c72c
KS
81852002-05-14 Keith Seitz <keiths@redhat.com>
8186
8187 * event-loop.c (create_file_handler): Don't do anything but
8188 update data when we are given a fd which we are already
8189 monitoring.
8190
5d085aaf
ML
81912002-05-14 Michal Ludvig <mludvig@suse.cz>
8192
8193 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8194 (update_context): Use __func__ in warnings.
8195
9db8d71f
DJ
81962002-05-14 Daniel Jacobowitz <drow@mvista.com>
8197
8198 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8199 and tcp_close to net_open and net_close.
8200 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8201 using UDP if requested. Don't try to disable Nagle on UDP
8202 sockets.
8203 * remote.c (remote_serial_open): New function. Warn about UDP.
8204 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8205
5dbc6baa
EZ
82062002-05-13 Elena Zannoni <ezannoni@redhat.com>
8207
8208 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8209
cc3023f7
EZ
82102002-05-13 Elena Zannoni <ezannoni@redhat.com>
8211
8212 * configure.tgt: Remove sh-hms target.
8213 * MAINTAINERS: Don't list sh-hms as a separate target.
8214
ec2bcbe7
JB
82152002-05-13 Jim Blandy <jimb@redhat.com>
8216
8217 Add first preprocessor macro-expansion files.
8218 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8219 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8220 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8221 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8222 (COMMON_OBS): Add macrotab.o, macroexp.o.
8223 (macroexp.o, macrotab.o): New rules.
8224
6d531722
AC
82252002-05-13 Andrew Cagney <ac131313@redhat.com>
8226
8227 * config/m88k/tm-m88k.h: Update copyright.
8228 (m88k_target_write_pc): Declare
8229 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8230 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8231 (SHIFT_INST_REGS): Update definition.
8232 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8233 using old definition of TARGET_WRITE_PC.
8234 * regcache.c (generic_target_write_pc): Delete code handling
8235 NNPC_REGNUM.
8236 * gdbarch.sh (NNPC_REGNUM): Delete.
8237 * gdbarch.h, gdbarch.c: Regenerate.
8238
3e3f2739
RE
82392002-05-13 Richard Earnshaw <rearnsha@arm.com>
8240
8241 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8242 builtin reg number.
8243
0004e5a2
DJ
82442002-05-13 Daniel Jacobowitz <drow@mvista.com>
8245
8246 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8247 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8248 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8249 access macros.
8250 * c-typeprint.c (cp_type_print_method_args): Likewise.
8251 (c_type_print_args): Likewise.
8252 * d10v-tdep.c (d10v_push_arguments): Likewise.
8253 (d10v_extract_return_value): Likewise.
8254 * expprint.c (print_subexp): Likewise.
8255 * gdbtypes.c (lookup_primitive_typename): Likewise.
8256 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8257 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8258 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8259 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8260 (TYPE_VECTOR): Likewise.
8261 * hpread.c (hpread_read_struct_type)
8262 (fix_static_member_physnames, fixup_class_method_type)
8263 (hpread_type_lookup): Likewise.
8264 * mdebugread.c (parse_symbol, parse_type): Likewise.
8265 * p-lang.c (is_pascal_string_type): Likewise.
8266 * valops.c (hand_function_call): Likewise.
8267 * x86-64-tdep.c (classify_argument): Likewise.
8268
8269 * hpread.c (hpread_read_function_type)
8270 (hpread_read_doc_function_type): Call replace_type.
8271 * dstread.c (create_new_type): Delete.
8272 (decode_dst_structure, process_dst_function): Call alloc_type.
8273 Use type access macros.
8274
dff95cc7
MK
82752002-05-12 Mark Kettenis <kettenis@gnu.org>
8276
8277 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8278 the're not supported by the current architecture.
8279 (i387_fill_fxsave): Likewise.
8280
bbcd32ad
FF
82812002-05-12 Fred Fish <fnf@redhat.com>
8282
8283 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8284 sect_index_xxx members to index the first slot in section_offsets
8285 if all of the section_offsets are zero.
8286
89cf4787
MK
82872002-05-12 Mark Kettenis <kettenis@gnu.org>
8288
8289 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8290 checked in with last change.
8291
1f77ffc5
MK
82922002-05-12 Mark Kettenis <kettenis@gnu.org>
8293
8294 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8295 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8296 config.sub.
8297
89b8b4a9
DJ
82982002-05-12 Daniel Jacobowitz <drow@mvista.com>
8299
8300 * Makefile.in: Update dependencies.
8301
14a5e767
AC
83022002-05-11 Andrew Cagney <ac131313@redhat.com>
8303
8304 * language.c (local_hex_string_custom): Simplify. Do not depend
8305 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8306
8307 * memattr.c (mem_info_command): Replace calls to
8308 longest_local_hex_string and longest_local_hex_string_custom.
8309 * buildsym.c (make_blockvector): Ditto.
8310 * solib.c (info_sharedlibrary_command): Ditto.
8311 * tracepoint.c (tracepoints_info): Ditto.
8312 * symtab.c (print_msymbol_info): Ditto.
8313
8314 * language.c (local_hex_string): Delete.
8315 (local_hex_string_custom): Delete.
8316 (longest_local_hex_string): Rename to local_hex_string.
8317 (longest_local_hex_string_custom): Rename to
8318 local_hex_string_custom.
8319 * language.h (local_hex_string): Change parameter type to LONGEST.
8320 (local_hex_string_custom): Ditto.
8321 (longest_local_hex_string): Delete declaration.
8322 (longest_local_hex_string_custom): Ditto.
8323
8324 * solib.c: Update copyright.
8325 * memattr.c: Update copyright.
8326
13d01224
AC
83272002-05-11 Andrew Cagney <ac131313@redhat.com>
8328
8329 * arch-utils.h (legacy_register_to_value): Declare.
8330 (legacy_value_to_register): Declare.
8331 (legacy_convert_register_p): Declare.
8332 * arch-utils.c (legacy_register_to_value): New function.
8333 (legacy_value_to_register): New function.
8334 (legacy_convert_register_p): New function.
8335
8336 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8337 (VALUE_TO_REGISTER): Define.
8338 (CONVERT_REGISTER_P): Define.
8339 * gdbarch.h, gdbarch.c: Regenerate.
8340
8341 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8342 VALUE_TO_REGISTER.
8343 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8344 CONVERT_REGISTER_P.
8345
4a1970e4
DJ
83462005-05-11 Daniel Jacobowitz <drow@mvista.com>
8347 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8348
8349 * Makefile.in: Update dependencies for valops.c.
8350 * valops.c: Include "gdb_assert.h".
8351 (typecmp): Skip THIS parameter to methods.
8352 (find_method_list): Remove static_memfuncp argument,
8353 update callers. Check for stub methods.
8354 (find_value_oload_method_list): Don't set *static_memfuncp.
8355 (find_overload_match): Don't check for stub methods. Assert
8356 that methods are not stubbed. Handle static methods.
8357 (value_find_oload_method_list): Remove static_memfuncp argument.
8358 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8359 to the argument list for static stub methods.
8360 * value.h (value_find_oload_method_list): Update prototype.
8361
b2e75d78
AC
83622002-05-11 Andrew Cagney <ac131313@redhat.com>
8363
8364 * arch-utils.h (generic_register_size): Declare.
8365 (generic_register_raw_size, generic_register_virtual_size): Delete
8366 declarations.
8367 * arch-utils.c (generic_register_raw_size): Delete.
8368 (generic_register_size): New function.
8369 (generic_register_virtual_size): Delete.
8370
8371 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8372 default generic_register_size.
8373 * gdbarch.h, gdbarch.c: Re-generate.
8374
8375 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8376 register_virtual_size.
8377 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8378 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8379
451fbdda
AC
83802002-05-11 Andrew Cagney <ac131313@redhat.com>
8381
8382 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8383 * gdbarch.h, gdbarch.c: Regenerate.
8384 * gnu-v3-abi.c: Update copyright.
8385 (vtable_address_point_offset): Update.
8386 (gnuv3_rtti_type): Update.
8387 (gnuv3_baseclass_offset): Update.
8388 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8389 (init_fetch_link_map_offsets): Update.
8390 * remote.c (get_remote_state): Update.
8391
6d2f5cea
DJ
83922002-05-11 Daniel Jacobowitz <drow@mvista.com>
8393
8394 * TODO: Remove value_headof/value_from_vtable_info comment.
8395 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8396 * values.c (value_headof, value_from_vtable_info): Delete.
8397 * value.h (value_from_vtable_info): Delete prototype.
8398
d2324da4
AC
83992002-05-11 Andrew Cagney <ac131313@redhat.com>
8400
8401 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8402 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8403 $(gdb_regex_h).
8404 (gdb_assert_h): Define.
8405 (gdb_wait_h): Define.
8406 (gdb_regex_h): Define.
8407
5c717440
DJ
84082002-05-11 Daniel Jacobowitz <drow@mvista.com>
8409
8410 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8411 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8412
6c7861b3
JT
84132002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8414
8415 * nbsd-tdep.c: Fix comment.
8416
ea5bc2a6
JT
84172002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8418
8419 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8420 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8421 (nbsd-tdep.o): New dependency list.
8422 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8423 nbsd-tdep.h.
8424 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8425 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8426 * nbsd-tdep.c: New file.
8427 * nbsd-tdep.h: New file.
8428 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8429 nbsd-tdep.h.
8430 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8431 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8432 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8433 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8434
b28da865
JT
84352002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8436
8437 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8438 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8439 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8440 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8441 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8442 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8443
4b8ff1fa
JT
84442002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8445
8446 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8447 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8448 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8449 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8450 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8451 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8452 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8453
dfe6eb1f
JT
84542002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8455
8456 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8457 fetch_elfcore_registers to...
8458 * i386nbsd-tdep.c: ...here.
8459 (i386nbsd_use_struct_convention): Rename to...
8460 (i386nbsd_aout_use_struct_convention): ...this.
8461 (i386nbsd_supply_reg): New function.
8462 (i386nbsd_fill_reg): New function.
8463 (fetch_core_registers): Use i386nbsd_supply_reg.
8464 (fetch_elfcore_registers): Likewise.
8465 (_initialize_i386nbsd_tdep): New function.
8466 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8467 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8468 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8469 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8470 (i386nbsd_aout_use_struct_convention): ...this.
8471
20cb8cda
JT
84722002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8473
8474 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8475 (store_inferior_registers): Use shnbsd_fill_reg.
8476 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8477 sh_nbsd_supply_register): Collapse into...
8478 (shnbsd_supply_reg): ...this.
8479 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8480 (shnbsd_fill_reg): ...this.
8481 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8482 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8483 (fetch_core_registers): Use shnbsd_supply_reg.
8484 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8485 (sh_nbsd_core_fns): Rename to...
8486 (shnbsd_core_fns): ...this.
8487 (sh_nbsd_elfcore_fns): Rename to...
8488 (shnbsd_elfcore_fns): ...this.
8489 (sh_nbsd_init_abi): Rename to...
8490 (shnbsd_init_abi): ...this.
8491 (_initialize_sh_nbsd_tdep): Rename to...
8492 (_initialize_shnbsd_tdep): ...this.
8493 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8494 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8495 sh_nbsd_fill_register): Remove prototypes.
8496 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8497
e750d25e
JT
84982002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8499
8500 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8501 (i387-nat.o): Delete dependency list.
8502 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8503 (x86-64-linux-nat.o): Likewise.
8504 * i387-nat.c: Delete file, moving contents to...
8505 * i387-tdep.c: ...here.
8506 * i387-nat.h: Rename...
8507 * i387-tdep.h: ...to this.
8508 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8509 * i386-linux-nat.c: Likewise.
8510 * i386bsd-nat.c: Likewise.
8511 * i386gnu-nat.c: Likewise.
8512 * i386nbsd-nat.c: Likewise.
8513 * i386v4-nat.c: Likewise.
8514 * x86-64-linux-nat.c: Likewise.
8515 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8516 * config/i386/go32.mh (NATDEPFILES): Likewise.
8517 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8518 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8519 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8520 * config/i386/linux.mh (NATDEPFILES): Likewise.
8521 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8522 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8523 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8524 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8525
1aee598a
JT
85262002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8527
8528 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8529 (alphanbsd-nat.o): Remove dependency list.
8530 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8531 * alphanbsd-nat.c: Delete. Contents moved to...
8532 * alphanbsd-tdep.c: ...here.
8533 (_initialize_alphanbsd_tdep): Register core functions.
8534 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8535
12bcb0fe
JT
85362002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8537
8538 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8539 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8540 (alphanbsd-nat.o): Likewise.
8541 (alphabsd-tdep.o): New dependency list.
8542 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8543 (fill_gregset): Use alphabsd_fill_reg.
8544 (supply_fpregset): Use alphabsd_supply_fpreg.
8545 (fill_fpregset): Use alphabsd_fill_fpreg.
8546 (fetch_inferior_registers): Use struct reg and struct fpreg
8547 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8548 and alphabsd_supply_fpreg.
8549 (store_inferior_registers): Use struct reg and struct fpreg
8550 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8551 and alphabsd_fill_fpreg.
8552 * alphabsd-tdep.c: New file.
8553 * alphabsd-tdep.h: New file.
8554 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8555 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8556 alphabsd_supply_fpreg.
8557 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8558 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8559
361d1df0
EC
85602002-05-11 Eric Christopher <echristo@redhat.com>
8561
8562 * mips-tdep.c (mips_double_register_type): Fix thinko.
8563 (mips_single_register_type): Ditto.
8564 * MAINTAINERS: Add self.
8565
92dd7cee
MK
85662002-05-11 Mark Kettenis <kettenis@gnu.org>
8567
8568 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8569 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8570 right thing on architectures with different endianness and/or
8571 integer sizes.
8572
e27da16d
JT
85732002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8574
8575 From Christian Limpach <chris@Pin.LU>
8576 * configure.in: Change sed expression which comments out
8577 NATDEPFILES to also comment out continuation lines.
8578 * configure: Regenerate.
8579
ddde02bd
EZ
85802002-05-10 Elena Zannoni <ezannoni@redhat.com>
8581
8582 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8583 big patch.
8584
1c922164
EZ
85852002-05-10 Elena Zannoni <ezannoni@redhat.com>
8586
8587 * sh-tdep.c: Include correct file.
8588
283150cd
EZ
85892002-05-10 Elena Zannoni <ezannoni@redhat.com>
8590
8591 New support for sh64-elf (sh5) target.
8592
8593 * configure.tgt: For sh64-elf target, default to sh-elf.
8594
8595 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8596 (struct gdbarch_tdep): Add new fields for new registers and ABI
8597 info.
361d1df0 8598
283150cd
EZ
8599 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8600 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8601 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8602 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8603 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8604 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8605 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8606 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8607 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8608 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8609 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8610 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8611 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8612 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8613 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8614 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8615 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8616 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8617 sign_extend, sh64_nofp_frame_init_saved_regs,
8618 sh64_init_extra_frame_info, sh64_get_saved_register,
8619 sh64_extract_struct_value_address, sh64_pop_frame,
8620 sh64_push_arguments, sh64_extract_return_value,
8621 sh64_store_return_value, sh64_show_media_regs,
8622 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8623 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8624 sh_sh64_register_virtual_type,
8625 sh_sh64_register_convert_to_virtual,
8626 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8627 sh64_register_read, sh64_pseudo_register_write,
8628 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8629 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8630 sh64_do_pseudo_register, sh_compact_do_registers_info,
8631 sh64_do_registers_info, sh_gdbarch_init): New functions.
8632
3117ed25
EZ
86332002-05-10 Elena Zannoni <ezannoni@redhat.com>
8634
8635 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8636
2654e6d4
DJ
86372002-05-10 Daniel Jacobowitz <drow@mvista.com>
8638
8639 * linespec.c (decode_line_1): Check for a double quote after
8640 a filename correctly.
8641
9ab3e532
JB
86422002-05-10 Jim Blandy <jimb@redhat.com>
8643
8644 Properly track the size of the current objfile's .debug_line section.
8645 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8646 (DWARF_LINE_SIZE): New macro.
8647 (dwarf2_build_psymtabs_hard): Record the line section's size in
8648 the partial symbol table.
8649 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8650 symbol table.
8651
126fa72d
PS
86522002-05-10 Petr Sorfa <petrs@caldera.com>
8653
8654 * ia64-tdep.c: Handle breakpoints on L instruction type
8655 in MLX instruction bundle by moving the breakpoint to
8656 the third slot (X instruction type) as L holds only data.
8657
1f077a3e
KB
86582002-05-10 Kevin Buettner <kevinb@redhat.com>
8659
8660 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8661 (process_one_symbol): Complain about discarding local symbols
8662 due to a misplaced N_LBRAC entry.
8663
8120c9d5 86642002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
8665
8666 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
8667 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8668 decrease the depth we are at, in the case of templates.
361d1df0 8669
67b2c998
DJ
86702002-05-09 Daniel Jacobowitz <drow@mvista.com>
8671
8672 * mips-tdep.c (mips_float_register_type): New function.
8673 (mips_double_register_type): New function.
8674 (mips_print_register): Use them.
8675 (do_fp_register_row): Likewise.
8676
fd326606
DJ
86772002-05-09 Daniel Jacobowitz <drow@mvista.com>
8678
6609d9af 8679 * signals/signals.c (signals): Remove conditional compilation around
fd326606 8680 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 8681 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 8682
bef35864
MS
86832002-05-09 Michael Snyder <msnyder@redhat.com>
8684
8685 * remote-rdp.c (remote_rdp_can_run): Remove.
8686
c55a3f73
TT
86872002-05-09 Tom Tromey <tromey@redhat.com>
8688
8689 * jv-valprint.c (java_val_print): Handle `char' as a special case
8690 of TYPE_CODE_INT.
8691
b8d5e71d
MS
86922002-05-09 Michael Snyder <msnyder@redhat.com>
8693
8694 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8695 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 8696 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 8697 str r(0123),[sp,#nn].
361d1df0 8698 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
8699 order-independent by placing it in a loop.
8700
e2cd42dd
MS
87012002-05-06 Michael Snyder <msnyder@redhat.com>
8702
8703 * stabsread.c (read_type): Add recognition for new attribute:
8704 "@V;" means that an array type is actually a vector.
8705 This is analogous to the vector flag that's been added to dwarf2.
8706
3ce1502b
MK
87072002-05-09 Mark Kettenis <kettenis@gnu.org>
8708
8709 * i386-tdep.h (i386_abi): New enum.
8710 (struct gdbarch_tdep): Replace os_ident member with abi.
8711 (i386_gdbarch_register_os_abi): New prototype.
8712 * i386-tdep.c (i386_abi_names): New array.
8713 (process_note_abi_tag_sections): Removed.
8714 (process_note_sections): New function.
8715 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8716 (struct i386_abi_handler): New struct.
8717 (i386_abi_handler_list): New variable.
8718 (i386_gdbarch_register_os_abi): New function.
8719 (i386_gdbarch_init): Adapt for the changes given above.
8720
084c156a
DJ
87212002-05-08 Daniel Jacobowitz <drow@mvista.com>
8722
8723 * gregset.h: Say "GNU/Linux".
8724
6599f021
EZ
87252002-05-08 Elena Zannoni <ezannoni@redhat.com>
8726
8727 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8728 (build_gdbtypes): Build builtin_type_v2_float.
8729 (_initialize_gdbtypes): Register new builtin type.
8730
40af4b0c
AC
87312002-05-08 Andrew Cagney <ac131313@redhat.com>
8732
8733 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8734 (clear_gdbarch_swap): New function.
8735 (initialize_non_multiarch): Call.
8736 (gdbarch_update_p): Before calling init(), swap out and clear the
8737 existing architecture.
8738 * gdbarch.c: Regenerate.
8739
4fe84f46
JT
87402002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8741
8742 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8743 alphanbsd-tdep.c.
8744
4015edd1
JT
87452002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8746
8747 * sh-nbsd-nat.c: Rename to...
8748 * shnbsd-nat.c: ...this.
8749 * sh-nbsd-tdep.c: Rename to...
8750 * shnbsd-tdep.c: ...this.
8751 * sh-nbsd-tdep.h: Rename to...
8752 * shnbsd-tdep.h: ...this.
8753 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8754 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8755
0e2bd219
RE
87562002-05-08 Richard Earnshaw <rearnsha@arm.com>
8757
8758 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8759 concatenation for command help messages.
8760
13a38d45
JT
87612002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8762
8763 * NEWS: Note new sh*-*-netbsdelf* configuration.
8764 * configure.host: Set gdb_host_cpu to sh for all sh*.
8765 (sh*-*-netbsdelf*): New host.
8766 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8767 (sh*-*-netbsdelf*): New target.
8768 * sh-nbsd-nat.c: New file.
8769 * sh-nbsd-tdep.c: New file.
8770 * sh-nbsd-tdep.h: New file.
8771 * config/sh/nbsd.mh: New file.
8772 * config/sh/nbsd.mt: New file.
8773 * config/sh/nm-nbsd.h: New file.
8774 * config/sh/tm-nbsd.h: New file.
8775
d658f924
JT
87762002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8777
8778 * sh-tdep.c (sh_osabi_names): Declare.
8779 (process_note_abi_tag_sections): New function.
8780 (get_elfosabi): Ditto.
8781 (sh_gdbarch_register_os_abi): Ditto.
8782 (sh_dump_tdep): Ditto.
8783 _initialize_sh_tdep): Use gdbarch_register to register
8784 sh_gdbarch_init and sh_dump_tdep.
8785 * config/sh/tm-sh.h (sh_osabi): Declare.
8786 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8787
848cfffb
AC
87882002-05-07 Andrew Cagney <ac131313@redhat.com>
8789
8790 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8791 (thumb_scan_prologue): Ditto.
8792 (arm_find_callers_reg): Ditto.
8793 (arm_frame_chain): Ditto.
8794 (arm_init_extra_frame_info): Ditto.
8795 (arm_frame_saved_pc): Ditto.
8796 (arm_pop_frame): Ditto.
8797 (arm_push_return_address): New function.
8798 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8799 call_dummy_location, call_dummy_breakpoint_offset_p,
8800 call_dummy_breakpoint_offset, call_dummy_p,
8801 call_dummy_stack_adjust_p, call_dummy_words,
8802 sizeof_call_dummy_words, call_dummy_start_offset,
8803 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8804 call_dummy_address, push_return_address and push_dummy_frame for
8805 generic dummy frames.
8806
e7d717c0
JT
88072002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8808
8809 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8810 size computation for alloca.
8811 (sh_fp_frame_init_saved_regs): Likewise.
8812
7bbcf283
RE
88132002-05-07 Richard Earnshaw <rearnsha@arm.com>
8814
8815 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8816 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 8817 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
8818 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8819 * remote-rdp.c (remote_rdp_fetch_register): Use
8820 ARM_MAX_REGISTER_RAW_SIZE.
8821 (remote_rdp_store_register): Likewise.
8822
4657573b
ML
88232002-05-07 Michal Ludvig <mludvig@suse.cz>
8824
361d1df0 8825 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
8826 added default labels to switch {} statements.
8827 * x86-64-tdep.c: Ditto.
8828 * x86-64-linux-nat.c: Ditto.
8829
010f3b2f
JT
88302002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8831
8832 * solib.h: Protect against multiple inclusion.
8833
debd256d
JB
88342002-05-06 Jim Blandy <jimb@redhat.com>
8835
9ab3e532
JB
8836 Add first preprocessor macro-expansion files.
8837 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8838 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8839 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8840 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8841 (COMMON_OBS): Add macrotab.o, macroexp.o.
8842 (macroexp.o, macrotab.o): New rules.
8843
debd256d
JB
8844 Separate the job of reading the line number info statement program
8845 header (...expialidocious) out into its own function.
8846 * dwarf2read.c (struct line_head, struct filenames, struct
8847 directories): Replace with...
8848 (struct line_header): New structure, containing the full
8849 contents of the statement program header, including the
8850 include directory and file name tables.
8851 (read_file_scope): If we have line number info, instead of just
8852 calling dwarf_decode_lines to do all the work, call
8853 dwarf_decode_line_header first to get a `struct line_header'
8854 containing the data in the statement program header, and then
8855 pass that to dwarf_decode_lines, which will pick up where that
8856 left off. Be sure to clean up the `struct line_header' object.
8857 (dwarf_decode_line_header, free_line_header, add_include_dir,
8858 add_file_name): New functions.
8859 (dwarf_decode_lines): Move all the code to read the statement
8860 program header into dwarf_decode_line_header. Take the line
8861 header it built as the first argument, instead of the offset to
8862 the compilation unit's line number info. Use the new `struct
8863 line_header' type instead of the old structures. No need to do
8864 cleanups here now, since we don't allocate anything.
8865 (dwarf2_statement_list_fits_in_line_number_section,
8866 dwarf2_line_header_too_long): New complaints.
8867
ac3aafc7
EZ
88682002-05-06 Elena Zannoni <ezannoni@redhat.com>
8869
8870 * gdbtypes.c (init_vector_type): New function.
8871 (build_builtin_type_vec128): Simplify the representation of SIMD
8872 registers.
8873 (build_gdbtypes): Initialize new builtin vector types.
8874 (_initialize_gdbtypes): Register new vector types with gdbarch.
8875 (builtin_type_v4_float, builtin_type_v4_int32,
8876 builtin_type_v8_int16, builtin_type_v16_int8,
8877 builtin_type_v2_int32, builtin_type_v4_int16,
8878 builtin_type_v8_int8): New (renamed) SIMD types.
8879
13e49980
MK
88802002-05-06 Mark Kettenis <kettenis@gnu.org>
8881
8882 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8883 (i387_fill_fxsave): Likewise.
8884
997b20b8
AO
88852002-05-05 Alexandre Oliva <aoliva@redhat.com>
8886
8887 * alpha-tdep.c (alpha_extract_return_value): Don't use
8888 non-constant array size in prototype.
8889
535c96ce
AC
88902002-05-04 Andrew Cagney <ac131313@redhat.com>
8891
8892 From Brian Taylor <briant at model dot com>:
8893 * ui-out.c (ui_out_field_core_addr): Use the function
8894 longest_local_hex_string_custom'to format addresses > 32 bits
8895 wide.
8896
8897 * ui-out.c (ui_out_field_core_addr): Update comment.
8898
bedfa57b
AC
88992002-05-04 Andrew Cagney <ac131313@redhat.com>
8900
8901 * stack.c (select_and_print_frame): Make static. Delete the
8902 parameter `level'.
8903 (func_command): Update call.
8904 (select_frame_command): Delete code computing the frame level.
8905 * frame.h (select_and_print_frame): Delete declaration.
8906
f621c63e
AC
89072002-05-04 Andrew Cagney <ac131313@redhat.com>
8908
8909 * sparc-tdep.c (sparc_get_saved_register): Comment why
8910 get_prev_frame call is safe.
8911
0f7d239c
AC
89122002-05-04 Andrew Cagney <ac131313@redhat.com>
8913
8914 * frame.h (select_frame): Delete level parameter.
8915 * stack.c (select_frame): Update. Use frame_relative_level to
8916 obtain the frame's level.
8917 (select_and_print_frame): Update call.
8918 (select_frame_command): Ditto.
8919 (up_silently_base): Ditto.
8920 (down_silently_base): Ditto.
8921 * ocd.c (ocd_start_remote): Ditto.
8922 * remote-rdp.c (remote_rdp_open): Ditto.
8923 * remote-mips.c (mips_initialize): Ditto.
8924 (common_open): Ditto.
8925 * remote-e7000.c (e7000_start_remote): Ditto.
8926 * m3-nat.c (select_thread): Ditto.
8927 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8928 (child_get_current_exception_event): Ditto.
8929 * varobj.c (varobj_create): Ditto.
8930 (varobj_update): Ditto.
8931 (c_value_of_root): Ditto.
8932 * tracepoint.c (finish_tfind_command): Ditto.
8933 * corelow.c (core_open): Ditto.
8934 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8935 * thread.c (info_threads_command): Ditto.
8936 (switch_to_thread): Ditto.
8937 * infrun.c (normal_stop): Ditto.
8938 (restore_selected_frame): Ditto.
8939 (restore_inferior_status): Ditto.
8940 * breakpoint.c (insert_breakpoints): Ditto.
8941 (watchpoint_check): Ditto.
8942 (bpstat_stop_status): Ditto.
8943 (do_enable_breakpoint): Ditto.
8944 * blockframe.c (flush_cached_frames): Ditto.
8945 (reinit_frame_cache): Ditto.
8946
71d6c7b1
AC
89472002-05-04 Andrew Cagney <ac131313@redhat.com>
8948
8949 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8950 maintainer.
8951
cda6c68a
JB
89522002-05-04 Jim Blandy <jimb@redhat.com>
8953
8954 * gdbtypes.c (replace_type): Doc fix.
8955
5c1c87f0
AC
89562002-05-04 Andrew Cagney <ac131313@redhat.com>
8957
8958 * valprint.c (strcat_longest): Delete commented out function.
8959 Update copyright.
8960
cd9bfe15
AC
89612002-05-04 Andrew Cagney <ac131313@redhat.com>
8962
8963 * MAINTAINERS: Mark a29k as deleted.
8964 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8965 Move new configurations to the top.
8966 * configure.tgt: Remove a29k.
8967 * config/a29k/tm-vx29k.h: Delete.
8968 * config/a29k/vx29k.mt: Delete.
8969 * config/a29k/tm-a29k.h: Delete.
8970 * config/a29k/a29k-udi.mt: Delete.
8971 * config/a29k/a29k.mt: Delete.
8972 * a29k-tdep.c: Delete.
8973 * remote-udi.c: Delete.
8974 * remote-mm.c: Delete.
8975 * remote-eb.c: Delete.
8976 * remote-adapt.c: Delete.
8977 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
8978 * config/s390/s390x.mt: Ditto.
8979 * config/s390/s390.mt: Ditto.
8980 * config/sparc/sparclynx.mh: Ditto.
8981 * config/sparc/linux.mh: Ditto.
8982 * config/pa/hppaosf.mh: Ditto.
8983 * config/pa/hppabsd.mh: Ditto.
8984 * config/ns32k/nbsd.mt: Ditto.
8985 * config/mips/vr5000.mt: Ditto.
8986 * config/m68k/sun3os4.mh: Ditto.
8987 * config/m68k/nbsd.mt: Ditto.
8988 * config/m68k/m68klynx.mh: Ditto.
8989 * config/m32r/m32r.mt: Ditto.
8990 * config/i386/x86-64linux.mt: Ditto.
8991 * config/i386/nbsdelf.mt: Ditto.
8992 * config/i386/nbsd.mt: Ditto.
8993 * config/i386/i386lynx.mh: Ditto.
8994
bf0c5130
AC
89952002-05-04 Andrew Cagney <ac131313@redhat.com>
8996
8997 * target.c (debug_print_register): New function. Handle oversize
8998 registers.
8999 (debug_to_fetch_registers): Call.
9000 (debug_to_store_registers): Call.
9001
2ae1c2d2
JB
90022002-05-03 Jim Blandy <jimb@redhat.com>
9003
13a393b0
JB
9004 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9005 (read_type): Doc fix.
9006 * gdbtypes.c (replace_type): Doc fix.
9007
2ae1c2d2
JB
9008 * stabsread.c (multiply_defined_struct): New complaint.
9009 (read_struct_type): If the type we were passed isn't empty, or
9010 incomplete, don't read the new struct type into it; complain,
9011 and return the original type unchanged. Take a new `type_code'
9012 argument, which is the type code for the new type.
9013 (read_type): Rather than storing the type's type code here, pass
9014 it as an argument to read_struct_type, and let that take care of
9015 storing it. That way, we don't overwrite the original type code,
9016 so read_struct_type can use it to decide whether we're overwriting
9017 something we shouldn't.
9018 (complain_about_struct_wipeout): New function.
9019
8de9bdc4
AC
90202002-05-03 Andrew Cagney <ac131313@redhat.com>
9021
9022 * gdbarch.sh: Assert that gdbarch is non-NULL.
9023 * gdbarch.c: Regenerate.
9024
f773fdbb
JM
90252002-05-03 Jason Merrill <jason@redhat.com>
9026
9027 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9028 and return NULL.
9029
0e04a514
ML
90302002-05-03 Michal Ludvig <mludvig@suse.cz>
9031
9032 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9033 (x86_64_dwarf2gdb_regno_map_length),
9034 (x86_64_dwarf2_reg_to_regnum): Added.
9035 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9036 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9037 (_initialize_x86_64_tdep): Synced with the change above.
9038 (x86_64_skip_prologue): Reformulated message.
9039
065432a8
PM
90402002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9041
9042 * f-exp.y: Also use new prev_lexptr variable
9043 to improve error reporting. Based on Michael Snyder
9044 2002-04-24 dated patch to c-exp.y.
9045 * jv-exp.y: Likewise.
9046 * m2-exp.y: Likewise.
9047
a3162708
EZ
90482002-05-02 Elena Zannoni <ezannoni@redhat.com>
9049
9050 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9051 we are dealing with vectors.
9052
03620c38
PM
90532002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9054
9055 * config/m68k/tm-nbsd.h: Obvious fix,
9056 correct machine name.
9057
6604db2e
PM
90582002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9059
9060 * p-typeprint.c (pascal_type_print_base): Add support
9061 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9062
0906b739
PM
90632002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9064
9065 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9066 for fondamental pascal 'char' type.
9067
e2625b33
PM
90682002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9069
9070 * p-lang.h (is_pascal_string_type): Declaration changed,
9071 new sixth argument of type char ** added.
361d1df0 9072 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
9073 changed. Args length_pos, length_size, string_pos, char_size
9074 can now be NULL. New argument arrayname set to the field
9075 name of the char array. Return value set to char array
9076 field index plus one.
361d1df0 9077 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
9078 is_pascal_string_type function.
9079
cf17c188
AC
90802002-05-02 Andrew Cagney <cagney@redhat.com>
9081
9082 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9083 <cagney@redhat.com> change.
9084 * gdbarch.c: Regenerate.
9085
52bca491
AC
90862002-05-02 Andrew Cagney <cagney@redhat.com>
9087
9088 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9089 before probing for a new one. Detect errorenous gdbarch_init
9090 functions.
9091 * gdbarch.c: Regenerate.
9092
d5e72505
AC
90932002-05-01 Andrew Cagney <cagney@redhat.com>
9094
9095 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9096 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9097 * config/v850/tm-v850.h: Ditto. Update copyright.
9098
af566d9f
AC
90992002-04-30 Andrew Cagney <ac131313@redhat.com>
9100
9101 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9102 current_gdbarch.
9103
880d85fa
MS
91042002-04-30 Michael Snyder <msnyder@redhat.com>
9105
94c30b78
MS
9106 * arm-tdep.c: Whitespace clean-ups.
9107 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
9108 should have been removed as part of 4/24 change.
9109
6f5987a6
KB
91102002-04-30 Kevin Buettner <kevinb@redhat.com>
9111
9112 * rs6000-tdep.c: Added comment describing how fpscr register
9113 numbers were chosen.
9114
1a113c93
MS
91152002-04-30 Michael Snyder <msnyder@redhat.com>
9116
9117 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9118
9a6f53fe
EZ
91192002-04-29 Elena Zannoni <ezannoni@redhat.com>
9120
9121 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9122 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9123 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9124
11ed25ac
KB
91252002-04-29 Kevin Buettner <kevinb@redhat.com>
9126
9127 From Louis Hamilton <hamilton@redhat.com>:
9128 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9129 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9130 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9131 not bfd-private xcoff data, to determine wordsize.
9132 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9133
ae232405
AC
91342002-04-29 Andrew Cagney <ac131313@redhat.com>
9135
9136 GDB 5.2 released from 5.2 branch.
9137
91fd20f7
ML
91382002-04-29 Michal Ludvig <mludvig@suse.cz>
9139
9140 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9141 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9142 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 9143
2dc5091b
EZ
91442002-04-29 Elena Zannoni <ezannoni@redhat.com>
9145
9146 * rs6000-tdep.c (rs6000_extract_return_value,
9147 rs6000_store_return_value): Handle returning vectors.
9148 (rs6000_gdbarch_init): Use
9149 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9150 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9151 New function.
9152 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9153 vectors.
9154 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9155 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 9156
2b9848d8
PM
91572002-04-24 Pierre Muller <ics.u-strasbg.fr>
9158
9159 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 9160 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
9161 with fprintf_unfiltered (gdb_stderr,...).
9162
f8d17dc5
PM
91632002-04-24 Pierre Muller <ics.u-strasbg.fr>
9164
9165 * remote-array.c (printf_monitor, write_monitor,
361d1df0 9166 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
9167 Replace fprintf (stderr,...
9168 with fprintf_unfiltered (gdb_stderr,....
9169 * remote-es.c: Likewise.
9170 * remote-os9k.c: Likewise.
9171 * remote-st.c: Likewise.
9172
2f2f1ad1
AS
91732002-04-28 Andreas Schwab <schwab@suse.de>
9174
9175 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9176 linux-proc.o and gcore.o.
9177
b6779aa2
AC
91782002-04-26 Michal Ludvig <mludvig@suse.cz>
9179
9180 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9181 code without frame pointers.
9182
7e57f5f4
AC
91832002-04-26 Andrew Cagney <ac131313@redhat.com>
9184
9185 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9186 ON_STACK is needed.
9187
2ceb85d0
BE
91882002-04-26 Ben Elliston <bje@redhat.com>
9189
9190 * target.c (do_xfer_memory): Correct reference to the new option
9191 "trust-readonly-sections".
9192
f5f8a009
EZ
91932002-04-26 Elena Zannoni <ezannoni@redhat.com>
9194
9195 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9196 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9197 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9198 vectors.
9199 (read_array_type): Record the fact that this array type is really a
9200 vector (i.e. are passed in by value).
9201
5868c862
JT
92022002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9203
9204 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9205 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9206 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9207 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9208 * alpha-linux-tdep.c: Include frame.h.
9209 (alpha_linux_sigcontext_addr): New function.
9210 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9211 alpha_linux_sigcontext_addr.
9212 * alpha-osf1-tdep.c: Include gdbcore.h.
9213 (alpha_osf1_sigcontext_addr): New function.
9214 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9215 alpha_osf1_sigcontext_addr.
9216 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9217 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9218
bfb01f37
AC
92192002-04-26 Andrew Cagney <ac131313@redhat.com>
9220
361d1df0 9221 * stack.c (selected_frame_level):
bfb01f37
AC
9222 (select_frame): Do not set selected_frame_level.
9223 * frame.h (selected_frame_level): Delete declaration.
9224
15813d3f
AC
92252002-04-26 Andrew Cagney <ac131313@redhat.com>
9226
9227 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9228 convert_from_func_ptr-addr when AIX / PowerOpen.
9229
6096c27a
AC
92302002-04-25 Andrew Cagney <ac131313@redhat.com>
9231
9232 * valops.c (hand_function_call): Call
9233 generic_save_call_dummy_addr.
9234 * frame.h (generic_save_call_dummy_addr): Declare.
9235 * blockframe.c (struct dummy_frame): Add fields call_lo and
9236 call_hi.
9237 (generic_find_dummy_frame): Check for PC in range call_lo to
9238 call_hi instead of entry_point_address.
9239 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9240 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9241 (generic_save_call_dummy_addr): New function.
9242
f510d44e
DM
92432002-04-24 David S. Miller <davem@redhat.com>
9244
9245 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9246 sparc_skip_prologue.
9247 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9248 information to find prologue when possible.
9249 (sparc_prologue_frameless_p): Call examine_prologue directly.
9250 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9251 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9252 second argument.
9253 (SKIP_PROLOGUE): Likewise.
9254
15d72a92
JT
92552002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9256
9257 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9258 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9259 indicate that the condition it was testing is always true.
9260 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9261 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9262 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9263
accc6d1f
JT
92642002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9265
9266 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9267 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9268 tdep->jb_pc and tdep->jb_elt_size.
9269 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9270 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9271 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9272 * alpha-nat.c (get_longjmp_target): Remove.
9273 (JB_ELEMENT_SIZE): Ditto.
9274 (JB_PC): Ditto.
9275 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9276 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9277 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9278 to alpha_get_longjmp_target.
9279 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9280 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9281 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9282
1bfdc549
AC
92832002-04-25 Andrew Cagney <ac131313@redhat.com>
9284
9285 * README: Update to GDB 5.2.
9286
1bd316f0
AC
92872002-04-25 Andrew Cagney <ac131313@redhat.com>
9288
9289 * gdbarch.sh (LC_ALL): Set to `c'.
9290
2e5ff58c
TR
92912002-04-25 Theodore A. Roth <troth@verinet.com>
9292
9293 * avr-tdep.c: Ran through gdb_indent.sh.
9294
e33ce519
TR
92952002-04-25 Theodore A. Roth <troth@verinet.com>
9296
9297 * MAINTAINERS: Add myself as AVR maintainer.
9298 * NEWS: Note new target avr.
9299
8818c391
TR
93002002-04-25 Theodore A. Roth <troth@verinet.com>
9301
9302 * Makefile.in: Add support for AVR target.
9303 * configure.tgt: Add support for AVR target.
9304 * avr-tdep.c: New file
9305 * config/avr/avr.mt: New file.
9306
79509c2d
TR
93072002-04-25 Theodore A. Roth <troth@verinet.com>
9308
9309 * MAINTAINERS: Add myself to write-after-approval.
9310
dac8068e
PM
93112002-04-24 Pierre Muller <ics.u-strasbg.fr>
9312
9313 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9314 with fprintf_unfiltered (gdb_stderr,....
9315
25bf3106
PM
93162002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9317
9318 Fix PR gdb/508.
9319 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9320
24467a86
PM
93212002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9322
9323 * p-exp.y: Also use new prev_lexptr variable
9324 to improve error reporting. Based on Michael Snyder
9325 2002-04-24 dated patch to c-exp.y.
9326
95b80706
JT
93272002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9328
9329 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9330 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9331 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9332 to 0.
9333 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9334 and struct value.
9335 (FUNCTION_START_OFFSET): Remove.
9336 (BREAKPOINT): Ditto.
9337
e90cc612
JT
93382002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9339
9340 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9341 * NEWS: Ditto.
9342
6c72f9f9
JT
93432002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9344
9345 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9346 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9347 alpha_linux_pc_in_sigtramp.
9348 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9349 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9350 alpha_osf1_pc_in_sigtramp.
9351 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9352 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9353 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9354 alphafbsd_pc_in_sigtramp.
9355 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9356 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9357 alphanbsd_pc_in_sigtramp.
9358 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9359 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9360
5e4f3379
JT
93612002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9362
9363 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9364
da8ca43d
JT
93652002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9366
9367 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9368 alphanbsd-tdep.c.
9369 (alphanbsd-nat.o): New dependency list.
9370 (alphanbsd-tdep.o): Ditto.
9371 * NEWS: Note new native NetBSD/alpha configuration.
9372 * alphanbsd-nat.c: New file.
9373 * alphanbsd-tdep.c: Ditto.
9374 * configure.host (alpha*-*-netbsd*): New host.
9375 * configure.tgt (alpha*-*-netbsd*): New target.
9376 * config/alpha/nbsd.mh: New file.
9377 * config/alpha/nbsd.mt: Ditto.
9378 * config/alpha/nm-nbsd.h: Ditto.
9379 * config/alpha/tm-nbsd.h: Ditto.
9380
36a6271d
JT
93812002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9382
9383 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9384 (alpha-osf1-tdep.o): New dependency list.
9385 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9386 and skip_sigtramp_frame members.
9387 * alpha-linux-tdep.c: Include gdbcore.h.
9388 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9389 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9390 * alpha-osf1-tdep.c: New file.
9391 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9392 alpha-osf1-dep.c.
9393 (alpha_frame_past_sigtramp_frame): New function.
9394 (alpha_dynamic_sigtramp_offset): Ditto.
9395 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9396 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9397 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9398 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9399 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9400 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9401 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9402 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9403 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9404 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9405 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9406 to find_solib_trampoline_target.
9407 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9408 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9409 (SKIP_TRAMPOLINE_CODE): Remove.
9410 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9411 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9412 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9413 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9414 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9415 (PROC_SIGTRAMP_MAGIC): Ditto.
9416 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9417 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9418 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9419 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9420 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9421
2f4bc57b
JT
94222002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9423
9424 * NEWS: Note that Alpha targets are now multi-arch.
9425
665132f9
MS
94262002-04-24 Michael Snyder <msnyder@redhat.com>
9427
9428 * parser-defs.h (prev_lexptr): New external variable.
9429 * parse.c (parse_exp_1): Set prev_lexptr to null before
9430 calling the language-specific parser.
9431 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9432 (yyerror): Use prev_lexptr in error reporting.
9433
32872fa7
DJ
94342002-04-24 Daniel Jacobowitz <drow@mvista.com>
9435
9436 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9437 * gregset.h: If FILL_FPXREGSET is defined, provide
9438 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9439 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9440 is defined, call fill_fpxregset.
9441
57e76fac
MS
94422002-04-24 Roland McGrath <roland@frob.com>
9443
9444 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9445 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9446 (supply_gregset, supply_fpregset): New functions.
9447
9448 * gnu-nat.c (gnu_find_memory_regions): New function.
9449 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9450 (gnu_xfer_memory): Add a cast.
9451
f43845b3
MS
94522002-04-24 Michael Snyder <msnyder@redhat.com>
9453
361d1df0 9454 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9455 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9456 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9457 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9458 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9459 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9460
a0abec03
AC
9461Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9462
9463 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9464 NUM_PSEUDO_REGS can be used.
9465
d7bd68ca
AC
94662002-04-24 Andrew Cagney <ac131313@redhat.com>
9467
9468 * arch-utils.h: Update copyright.
9469
9470 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9471 * gdbarch.h, gdbarch.c: Re-generate.
9472
9473 * inferior.h (IN_SIGTRAMP): Delete definition.
9474 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9475 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9476
9477 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9478 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9479 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9480 (find_proc_framesize): Ditto.
9481 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9482 (alpha_init_extra_frame_info): Ditto.
9483 * infrun.c (handle_inferior_event): Ditto.
9484 (handle_inferior_event): Ditto.
9485 (check_sigtramp2): Ditto.
9486 * blockframe.c (create_new_frame): Ditto.
9487 (get_prev_frame): Ditto.
9488 * ppc-linux-tdep.c: Update comments.
9489 * i386-linux-tdep.c: Update comments.
9490 * breakpoint.c (bpstat_what): Update comment.
9491
4867e41e
DM
94922002-04-24 David S. Miller <davem@redhat.com>
9493
21d83aa5
DM
9494 * i960-tdep.c (register_in_window_p): New function.
9495 (i960_find_saved_register): Use it instead of
9496 REGISTER_IN_WINDOW_P.
9497 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9498
4867e41e
DM
9499 * symtab.h (find_stab_function_addr): Kill extern.
9500 * minsyms.c (find_stab_function_addr): Remove from here...
9501 * dbxread.c: ... to here, and mark it static.
9502
69cdf6a2
DM
95032002-04-20 David S. Miller <davem@redhat.com>
9504
9505 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9506 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9507
5a595886
DM
95082002-04-21 David S. Miller <davem@redhat.com>
9509
9510 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9511 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9512 (vx_write_register): Likewise.
9513
1da1a192
JB
95142002-04-23 J. Brobecker <brobecker@gnat.com>
9515
9516 * source.c (is_regular_file): New function.
9517 (openp): Check wether file to open is a regular file
9518 to avoid opening directories.
9519
baa6f10b
JT
95202002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9521
9522 * findvar.c (extract_signed_integer): Cast printf argument
9523 to suppress format warning.
9524 (extract_unsigned_integer): Likewise.
9525 * infcmd.c (registers_info): Likewise.
9526 * top.c (get_prompt_1): Likewise.
9527 * valops.c (value_assign): Likewise.
9528 * valprint.c (print_decimal): Likewise.
9529
b2c4da81
L
95302002-04-22 H.J. Lu (hjl@gnu.org)
9531
9532 * c-exp.y (typebase): Support
361d1df0 9533
b2c4da81
L
9534 [long|long long|short] [signed|unsigned] [int|]
9535
9536 and
9537
9538 signed [long|long long|short] int
9539
f267bd6a
JT
95402002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9541
9542 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9543 and vax-tdep.h.
9544 * vax-tdep.h: New file.
9545 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9546 Make several routines static.
9547 (vax_get_saved_register): New function.
9548 (vax_gdbarch_init): New function.
9549 (_initialize_vax_tdep): Register vax_gdbarch_init.
9550 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9551 Remove macros now under the control of gdbarch.
9552
da3c6d4a
MS
95532002-04-22 Michael Snyder <msnyder@redhat.com>
9554
11d3b27d
MS
9555 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9556 Some whitespace and coding standards tweaks.
da3c6d4a 9557
a33f7558
JT
95582002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9559
9560 * vax-tdep.c: Include regcache.h.
9561 (vax_call_dummy_words): New.
9562 (sizeof_vax_call_dummy_words): New.
9563 (vax_fix_call_dummy): New function.
9564 (vax_saved_pc_after_call): Ditto.
9565 * config/vax/tm-vax.h: Don't include regcache.h.
9566 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9567 (CALL_DUMMY): Remove.
9568 (CALL_DUMMY_WORDS): Define.
9569 (SIZEOF_CALL_DUMMY_WORDS): Define.
9570 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9571
47a73475
MS
95722002-04-18 Michael Snyder <msnyder@redhat.com>
9573
9574 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9575
52efde73
JT
95762002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9577
9578 * vax-tdep.c (vax_frame_chain): New function.
9579 (vax_push_dummy_frame): Ditto.
9580 (vax_pop_frame): Ditto.
9581 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9582 (FRAMELESS_FUNCTION_INVOCATION): Use
9583 generic_frameless_function_invocation_not.
9584 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9585 (POP_FRAME): Use vax_pop_frame.
9586
ea74468c
JT
95872002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9588
9589 * vax-tdep.c (vax_store_struct_return): New function.
9590 (vax_extract_return_value): Ditto.
9591 (vax_store_return_value): Ditto.
9592 (vax_extract_struct_value_address): Ditto.
9593 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9594 vax_store_struct_return.
9595 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9596 (STORE_RETURN_VALUE): Use vax_store_return_value.
9597 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9598
5516aa92
JT
95992002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9600
9601 * vax-tdep.c (vax_frame_saved_pc): New function.
9602 (vax_frame_args_address_correct): Ditto.
9603 (vax_frame_args_address): Ditto.
9604 (vax_frame_locals_address): Ditto.
9605 (vax_frame_num_args): Move code to be in proximity to
9606 other frame-related functions.
9607 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9608 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9609 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9610 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9611 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9612
36af0b35
L
96132002-04-22 H.J. Lu (hjl@gnu.org)
9614
9615 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9616 includedir.
9617
ab62c900
JT
96182002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9619
9620 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9621 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9622 (FRAME_INIT_SAVED_REGS): New macro.
9623
7232b100
JT
96242002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9625
9626 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9627
b70d2aee
JT
96282002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9629
9630 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9631 where needed.
9632 (fetch_osf_core_registers): Likewise.
9633 (supply_gregset): Likewise.
9634
a0e8a2d1 96352002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 9636
a0e8a2d1
JB
9637 * symfile.h (get_section_index): Define.
9638 * symfile.c (get_section_index): New function.
9639 * mdebugread.c (SC_IS_SBSS): New macro.
9640 (SC_IS_BSS): Return true for the scBss storage class only, as
9641 the scSBss storage class refers to the .sbss section.
9642 (parse_partial_symbols): Discard the symbols which associated
9643 section does not exist.
9644 Make sure to use the .sbss section index for symbols which
9645 storage class is scBss, rather than using the .bss section index.
9646
51eb8b08
JT
96472002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9648
9649 * vax-tdep.c: Update copyright years.
9650 (vax_register_name): New function.
9651 (vax_register_byte): Ditto.
9652 (vax_register_raw_size): Ditto.
9653 (vax_register_virtual_size): Ditto.
9654 (vax_register_virtual_type): Ditto.
9655 * config/vax/tm-vax.h: Update copyright years.
9656 (REGISTER_NAMES): Remove.
9657 (REGISTER_NAME): Define.
9658 (REGISTER_BYTE): Use vax_register_byte.
9659 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9660 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9661 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9662
6cc1c0a8
AC
96632002-04-21 Andrew Cagney <ac131313@redhat.com>
9664
9665 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9666 declaration
9667 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9668
9319a2fe
DM
96692002-04-21 David S. Miller <davem@redhat.com>
9670
9671 * arch-utils.c (generic_prologue_frameless_p): Kill
9672 SKIP_PROLOGUE_FRAMELESS_P code.
9673 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9674 references.
9675 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9676 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9677 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9678 references.
9679 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9680 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9681 (sparc_gdbarch_init): Pass it to
9682 set_gdbarch_prologue_frameless_p.
a0e8a2d1 9683
e9ed6d01
JT
96842002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9685
9686 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9687 (alphabsd-nat.o): New dependency list.
9688
36012033
JT
96892002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9690
9691 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9692 alphafbsd-tdep.c.
9693 (alpha-linux-tdep.o): New dependency list.
9694 (alphafbsd-tdep.o): Likewise.
9695
3379287a
JT
96962002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9697
9698 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9699 to here...
9700 * alpha-tdep.c: ...from here.
9701 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9702
4bcbd6cb
JT
97032002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9704
9705 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9706 prototype from here...
9707 * alpha-tdep.h: ...to here.
9708
b31da25e
AC
97092002-04-21 Andrew Cagney <ac131313@redhat.com>
9710
9711 * frame.h (selected_frame_level): Document as deprecated.
9712 (frame_relative_level): Declare.
9713 * stack.c (frame_relative_level): New function.
9714 (selected_frame_level): Document as deprecated.
9715 (select_frame): Do not set the selected_frame_level.
9716
9717 * stack.c (frame_info, record_selected_frame): Update.
9718 (frame_command, current_frame_command): Update.
9719 (up_silently_base, up_command, down_silently_base): Update.
9720 (down_command): Update.
9721 * inflow.c (kill_command): Update.
9722 * tracepoint.c (finish_tfind_command): Update.
9723 * corelow.c (core_open): Update.
9724 * thread.c (info_threads_command): Update.
9725 (do_captured_thread_select): Update.
9726 * infcmd.c (finish_command): Update.
9727 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9728
9c1d6fe5
JT
97292002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9730
9731 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9732
ab89facf
AC
97332002-04-21 Andrew Cagney <ac131313@redhat.com>
9734
9735 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9736 type const.
9737
82a4efa1
JT
97382002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9739
9740 * alphafbsd-tdep.c: Update copyright years. Include
9741 alpha-tdep.h.
9742 (alphafbsd_use_struct_convention): Make static.
9743 (alphafbsd_init_abi): New function.
9744 (_initialize_alphafbsd_tdep): New function.
9745 * config/alpha/tm-fbsd.h: Update copyright years.
9746 (USE_STRUCT_CONVENTION): Remove.
9747
44dffaac
JT
97482002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9749
9750 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9751 an Alpha ABI variant.
9752 (alpha_abi_handler_list): Declare.
9753 (alpha_gdbarch_register_os_abi): New function.
9754 (alpha_gdbarch_init): Give registered ABI variant handlers a
9755 chance to tweak the gdbarch once we have set up defaults.
9756 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9757
65585be4
JT
97582002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9759
9760 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9761 to standard_coerce_float_to_double.
9762 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9763
d9b023cc
JT
97642002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9765
9766 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9767 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9768 from gdbarch_tdep rather than a constant.
9769 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9770 the default text address for all Alpha Unix ABIs.
9771 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9772 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9773
dc129d82
JT
97742002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9775
9776 * alpha-tdep.h: New file. Includes several Alpha target constants
9777 taken from...
9778 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9779 let gdbarch deal with.
9780 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9781 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9782 to dependency list.
9783 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9784 Alpha target register names.
9785 * alphabsd-nat.c: Likewise.
9786 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9787 Alpha target register names. Make serveral routines static.
9788 (alpha_get_saved_register): New function.
9789 (alpha_abi_names): New.
9790 (process_note_abi_tag_sections): New function.
9791 (get_elfosabi): New function.
9792 (alpha_gdbarch_init): New function.
9793 (alpha_dump_tdep): New function.
9794 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9795
d49d1e0a
AC
97962002-04-21 Andrew Cagney <ac131313@redhat.com>
9797
9798 * frame.c (find_saved_register): Delete #ifdef
9799 HAVE_REGISTER_WINDOWS code.
9800 * config/sparc/tm-sparc.h: Update comments.
9801 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9802
92e8c9ed
AC
98032002-04-21 Andrew Cagney <ac131313@redhat.com>
9804
9805 * i960-tdep.c (i960_find_saved_register): New function.
9806 (i960_get_saved_register): New function.
9807 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9808 (i960_get_saved_register): Declare.
9809 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9810
e1925118
DM
98112002-04-20 David S. Miller <davem@redhat.com>
9812
9813 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9814
29673b29
AC
98152002-04-20 Andrew Cagney <ac131313@redhat.com>
9816
9817 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9818 instead of NUM_PSEUDO_REGS.
9819
6c86dcd5
DM
98202002-04-20 David S. Miller <davem@redhat.com>
9821
9822 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9823 GDB_MULTI_ARCH_PARTIAL
9824 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9825 define, let tm-sp64.h do it.
9826
aa40ec90
JT
98272002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9828
9829 * frame.c (find_saved_register): Avoid a NULL pointer
9830 dereference and actually walk the frame list.
9831
0f79675b
AC
98322002-04-20 Andrew Cagney <ac131313@redhat.com>
9833
9834 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9835 sorted in most most-recent-used order. Document.
9836 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9837
f91305dd 98382002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
9839
9840 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9841 instead of ->prev.
9842 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9843 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9844 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9845 instead of ->prev.
9846
73d322b1
EZ
98472002-04-19 Elena Zannoni <ezannoni@redhat.com>
9848
9849 Fix PR gdb/471.
9850 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9851 (build_builtin_type_vec128): Ditto.
9852 (append_composite_type_field): Fix calculation of type length in
9853 union case.
9854
ccd9a834
EZ
98552002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9856
9857 * config/djgpp/README: Update.
9858
9859 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9860 compiler warnings.
9861
a57f9e49
JT
98622002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9863
9864 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9865 (alpha_setup_arbitrary_frame): ...to this.
9866 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9867 for alpha_setup_arbitrary_frame.
9868
f4f9705a
AC
98692002-04-18 Andrew Cagney <cagney@redhat.com>
9870
9871 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9872 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9873
f4f9705a
AC
9874 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9875 * target.h (memory_breakpoint_from_pc): Update declaration.
9876 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9877
9878 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9879 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9880 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9881 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9882 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9883 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9884 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9885 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9886 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9887 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9888 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9889 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9890
9891 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9892 const pointer.
9893 * monitor.c (monitor_insert_breakpoint): Ditto.
9894 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9895
9896 * config/mcore/tm-mcore.h: Update copyright.
9897 * mem-break.c: Ditto.
9898 * xstormy16-tdep.c: Ditto.
9899
29f319b8
PM
99002002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9901
9902 * p-exp.y: Add precedence rule for '^' token.
9903 This removes the shift/reduce conflicts.
9904 Remove the comment concerning these shift/reduce conflicts.
9905
ebeac11a
EZ
99062002-04-18 Elena Zannoni <ezannoni@redhat.com>
9907
9908 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9909 (registers_powerpc_nofp): New register set for processors
9910 without floating point unit.
9911
27c31547
DM
99122002-04-18 David S. Miller <davem@redhat.com>
9913
9914 * MAINTAINERS: Add myself to write-after-approval.
9915
47a73475
MS
99162002-04-17 Michael Snyder <msnyder@redhat.com>
9917
9918 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9919
953836b2
AC
99202002-04-17 Andrew Cagney <ac131313@redhat.com>
9921
9922 * rs6000-tdep.c (frame_initial_stack_address): Use
9923 frame_register_read to read the alloca_reg.
9924
8b0d4340
AC
99252002-04-17 Andrew Cagney <ac131313@redhat.com>
9926
9927 * frame.c (find_saved_register): Find saved registers in the next
9928 not prev frame.
9929 Fix PR gdb/365.
9930
d8864532
AC
99312002-04-17 Andrew Cagney <ac131313@redhat.com>
9932
9933 * gdbarch.sh (LANG): Set to ``c''.
9934
36cc83a3 99352002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 9936
36cc83a3 9937 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 9938
2f4150cc 99392002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
9940
9941 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9942 Update copyright.
9943
628703c6 9944 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 9945 Also fix PR gdb/391.
361d1df0 9946
56157b4a
AC
99472002-04-14 Andrew Cagney <ac131313@redhat.com>
9948
9949 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9950 * aclocal.m4, configure: Re-generate.
9951 Fix PR gdb/391.
361d1df0 9952
6d1e3329
EZ
99532002-04-14 Elena Zannoni <ezannoni@redhat.com>
9954
9955 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9956 instead of tm_print_insn.
9957
cb06fa07
EZ
99582002-04-14 Elena Zannoni <ezannoni@redhat.com>
9959
9960 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9961
f208ba17
AC
99622002-04-14 Andrew Cagney <ac131313@redhat.com>
9963
9964 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9965 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9966 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9967
20f01a46
DH
99682002-04-12 Don Howard <dhoward@redhat.com>
9969
9970 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9971 max_user_call_depth.
9972 (init_cmd_lists): Initialize the new value;
9973 * cli/cli-script.c (execute_user_command): Limit the call depth of
9974 user defined commands. This avoids a core-dump when user commands
9975 are infinitly recursive.
9976
a88376a3
KB
99772002-04-12 Kevin Buettner <kevinb@redhat.com>
9978
9979 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9980 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9981 from tdep struct instead of DEFAULT_LR_SAVE.
9982 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9983 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9984 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9985
f2172603
MS
99862002-04-12 Michael Snyder <msnyder@redhat.com>
9987
694f61fb 9988 * Remote.c: Spelling fix.
20fe79c8
MS
9989 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9990 If no symbol found for "sbrk", try "_sbrk".
9991 (make_output_phdrs): Use bfd_section_name.
9992 (gcore_copy_callback): Use bfd_section_name.
62995fc4 9993 * eval.c: Indentation fix-ups.
169a7369
MS
9994 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9995 in case it gets applied to an address that is already
9996 in the instruction space.
de74f71f
MS
9997 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9998 * symfile.c: Fix indentation, long lines.
f2172603
MS
9999 * source.c: White space fix-up.
10000
cda5a58a
AC
100012002-04-12 Andrew Cagney <cagney@redhat.com>
10002
10003 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10004 * frame.c (frame_register_read): New function. Return non-zero on
10005 success.
10006 (read_relative_register_raw_bytes_for_frame): Delete.
10007 (read_relative_register_raw_bytes): Delete.
10008 * frame.h (frame_register_read): Declare.
10009 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10010 * sh-tdep.c: Ditto.
10011 * infcmd.c (do_registers_info): Ditto.
10012 * hppa-tdep.c: Ditto.
10013 * rs6000-tdep.c: Ditto.
10014 * h8500-tdep.c: Ditto.
10015 * mips-tdep.c: Ditto.
10016 * h8300-tdep.c: Ditto.
10017 * z8k-tdep.c: Ditto.
10018
2ea5f656
KB
100192002-04-12 Kevin Buettner <kevinb@redhat.com>
10020
10021 From Jimi X <jimix@watson.ibm.com>:
10022 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10023 64-bit SysV ABI.
10024
27b15785
KB
100252002-04-12 Kevin Buettner <kevinb@redhat.com>
10026
10027 From Jimi X <jimix@watson.ibm.com>:
10028 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10029 bfd info.
10030
5d57ee30
KB
100312002-04-12 Kevin Buettner <kevinb@redhat.com>
10032
10033 From Jimi X <jimix@watson.ibm.com>:
10034 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10035 register sets for these processor variants.
10036
bc1e36ca
DJ
100372002-04-11 Daniel Jacobowitz <drow@mvista.com>
10038
bc1e36ca
DJ
10039 * regformats/reg-ppc.dat: Support FPSCR.
10040
e3f36dbd
KB
100412002-04-11 Kevin Buettner <kevinb@redhat.com>
10042
10043 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10044 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10045 Add fpscr as an invalid/unfetchable register.
10046 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10047 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10048 (fill_fpregset): Add support for register fpscr.
10049 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10050 (fill_gregset): Account for the fact that register ``mq'' might
10051 not exist.
10052 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10053 (registers_power): Add fpscr to register set at slot 71.
10054 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10055 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10056
943c9c25
MS
100572002-04-11 Michael Snyder <msnyder@redhat.com>
10058
10059 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10060 * configure: Regenerate.
10061 * config.in: Regenerate.
10062 * acconfig.h: Add define for _SYSCALL32.
10063 * core-sol2.c: Remove #define _SYSCALL32.
10064 * solib-legacy.c: Remove #define _SYSCALL32.
10065
d8c0a2e7
AC
100662002-04-10 Andrew Cagney <ac131313@redhat.com>
10067
10068 * stack.c (select_frame): Cleanup internal error message, do not
10069 use %p.
10070
7cc19214
AC
100712002-04-10 Andrew Cagney <ac131313@redhat.com>
10072
10073 * stack.c (select_frame): Check that selected_frame and the
10074 specified level are as expected.
10075 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10076 Update copyright.
10077 * frame.h (struct frame_info): Add field `level'. Update
10078 copyright.
10079 Work-in-progress PR gdb/464.
10080
67a2b77e
AC
100812002-04-10 Andrew Cagney <ac131313@redhat.com>
10082
10083 * maint.c (maint_print_section_info): Rename print_section_info.
10084 (print_bfd_section_info, print_objfile_section_info): Update.
10085 * inferior.h (struct gdbarch): Add opaque declaration.
10086 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10087 * gdbarch.h: Regenerate.
10088
8cfda98c
ML
100892002-04-10 Michal Ludvig <mludvig@suse.cz>
10090
10091 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10092 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10093 (kernel_u_size): Added.
10094 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10095 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10096
ca439ad2 100972002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 10098
ca439ad2
JI
10099 * valarith.c (find_size_for_pointer_math): New function, either returns
10100 the size for a pointer's target, returns 1 for void *, or errors for
10101 incomplete types.
10102 (value_add, value_sub): use find_size_for_pointer_math.
10103
2f2893d9
DJ
101042002-04-09 Daniel Jacobowitz <drow@mvista.com>
10105
10106 * linux-low.c (linux_look_up_symbols): New hook.
10107 (linux_target_ops): Add linux_look_up_symbols.
10108 * remote-utils.c (decode_address): New function.
10109 (look_up_one_symbol): New function.
10110 * server.c (handle_query): Call target look_up_symbols hook.
10111 * server.h (look_up_one_symbol): Add prototype.
10112 * target.h (struct target_ops): Add look_up_symbols hook.
10113
96cb11df
AC
101142002-04-09 Andrew Cagney <ac131313@redhat.com>
10115
10116 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10117 override FP_REGNUM with frame->fp. Update copyright.
10118 * parse.c (num_std_regs, std_regs): Delete.
10119 (target_map_name_to_register): Do not search std_regs. Update
10120 function description.
10121 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10122 declarations. Update copyright.
10123 Fix PR gdb/251.
361d1df0 10124
97658e92
DJ
101252002-04-09 Daniel Jacobowitz <drow@mvista.com>
10126
10127 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10128 after the last symbol in a block.
10129
6044e3eb
PM
101302002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10131
10132 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10133 is non zero as a found symbol.
10134
0406ec40
AC
101352002-04-08 Andrew Cagney <ac131313@redhat.com>
10136
10137 * findvar.c: Include "builtin-regs.h".
10138 (value_of_register): Call value_of_builtin_reg when applicable.
10139 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10140 (target_map_name_to_register): Call
10141 builtin_reg_map_name_to_regnum.
10142 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10143 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10144 (builtin_regs_h): Define.
10145 (builtin-regs.o): New target.
10146 (findvar.o): Add $(builtin_regs_h).
10147 * builtin-regs.c, builtin-regs.h: New files.
10148 * std-regs.c: New file.
10149 Partial fix for PR gdb/251.
10150
56a6dfb9
KB
101512002-04-08 Kevin Buettner <kevinb@redhat.com>
10152
10153 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10154 it's no longer required.
10155
3a808432
AC
101562002-04-08 Andrew Cagney <ac131313@redhat.com>
10157
10158 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10159
7c40d541
KB
101602002-04-08 Kevin Buettner <kevinb@redhat.com>
10161
10162 From Jimi X <jimix@watson.ibm.com>:
10163 * rs6000-tdep.c (rs6000_software_single_step): Use
10164 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10165 and size. Use target_insert_breakpoint() and
10166 target_remove_breakpoint() to insert and remove breakpoints
10167 instead of explicit memory reads and writes.
10168
cc9836a8
KB
101692002-04-08 Kevin Buettner <kevinb@redhat.com>
10170
10171 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10172 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10173 ELF_OBJECT_FORMAT ifdef.
10174
7495d1dc
KB
101752002-04-08 Kevin Buettner <kevinb@redhat.com>
10176
10177 From Jimi X <jimix@watson.ibm.com>:
10178 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10179
4288e836
KB
101802002-04-08 Kevin Buettner <kevinb@redhat.com>
10181
10182 From Jimi X <jimix@watson.ibm.com>:
10183 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10184 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10185
a4e4e501
MK
101862002-04-07 Mark Kettenis <kettenis@gnu.org>
10187
10188 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10189 s/asprintf/xasprintf/.
10190 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10191
006defba
AC
101922002-04-07 Andrew Cagney <ac131313@redhat.com>
10193
10194 I believe Jeff Law denies responsability for this one:
10195 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10196 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10197 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10198 Work-around for PR gdb/366.
10199
7aa83cac
EZ
102002002-04-07 Elena Zannoni <ezannoni@redhat.com>
10201
10202 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10203 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10204 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10205
cf1fcca1
EZ
102062002-04-07 Elena Zannoni <ezannoni@redhat.com>
10207
10208 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10209 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10210 information.
10211
3f289e6f
AC
102122002-04-07 Andrew Cagney <ac131313@redhat.com>
10213
10214 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10215 maintainer.
10216
129188f6
AC
102172002-04-07 Andrew Cagney <ac131313@redhat.com>
10218
10219 * README (Reporting Bugs in GDB): Document the bug web page as the
10220 prefered way of submitting bugs.
10221 Fix PR gdb/402.
10222
1200cd6e
AC
102232002-04-06 Andrew Cagney <ac131313@redhat.com>
10224
10225 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10226 -1. Update comment.
10227 * gdbarch.h, gdbarch.c: Re-generate.
10228
2853c33c
AS
102292002-04-07 Andreas Schwab <schwab@suse.de>
10230
10231 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10232 buffer to regcache_collect.
10233
c2169756
AC
102342002-04-06 Andrew Cagney <ac131313@redhat.com>
10235
10236 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10237 * gdbarch.c, gdbarch.h: Re-generate.
10238
25f1b008
AC
102392002-04-06 Andrew Cagney <ac131313@redhat.com>
10240
10241 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10242 declaration. Fix -Werror.
10243
59263426
DJ
102442002-04-05 Daniel Jacobowitz <drow@mvista.com>
10245
10246 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10247 * gdbarch.c: Regenerate.
10248
f5db4da3
MS
102492002-04-05 Michael Snyder <msnyder@redhat.com>
10250
80f8a6eb
MS
10251 * breakpoint.c (clear_command): Rewrite middle section to
10252 combine two loops with identical control conditions.
10253 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10254 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10255
ad3dcc5c
L
102562002-04-05 H.J. Lu (hjl@gnu.org)
10257
10258 * solib-svr4.c (bkpt_names): Add "__start".
10259
f32e7a74
AC
102602002-04-04 Andrew Cagney <ac131313@redhat.com>
10261
10262 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10263 as test for 64 bit target.
10264
8227c0ff
AC
102652002-04-05 Andrew Cagney <ac131313@redhat.com>
10266
10267 * h8500-tdep.c (h8500_write_fp): Delete function.
10268 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10269 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10270 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10271 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10272 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10273 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10274 (s390_write_fp):
10275 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10276 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10277 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10278 (d10v_write_fp): Delete function.
10279 * inferior.h (write_fp, generic_target_write_fp): Delete
10280 declarations.
10281 * regcache.c (generic_target_write_fp): Delete function.
10282 (write_fp): Delete function.
10283 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10284 * gdbarch.h, gdbarch.c: Regenerate.
10285 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10286 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10287 (sparc64_write_fp): Delete declaration.
10288 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10289 (h8500_write_fp): Delete declaration.
10290
2757dd86
AC
102912002-04-04 Andrew Cagney <ac131313@redhat.com>
10292
10293 * sparc-tdep.c (sparc64_write_fp): Delete.
10294 (sparc_push_dummy_frame): Replace write_fp call with code to store
10295 the FP directly.
10296 (sparc_gdbarch_init): Do not initialize write_fp.
10297
c69255e1
KB
102982002-04-05 Kevin Buettner <kevinb@redhat.com>
10299
10300 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10301 clause.
10302
ae767bfb
JB
103032002-03-29 Jim Blandy <jimb@redhat.com>
10304
10305 * stack.c (get_selected_block): Add new argument `addr_in_block',
10306 used to return the exact code address we used to select the block,
10307 not just the block.
10308 * blockframe.c (get_frame_block, get_current_block): Same.
10309 * frame.h (get_frame_block, get_current_block,
10310 get_selected_block): Update declarations.
10311 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10312 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10313
84d2ac95
MS
103142002-04-05 Michael Snyder <msnyder@redhat.com>
10315
10316 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10317 warning message.
10318
596aa3bf
JB
103192002-04-05 J. Brobecker <brobecker@gnat.com>
10320
10321 * utils.c (xfullpath): New function.
10322 * defs.h (xfullpath): Add declaration.
10323 * source.c (openp): Use xfullpath in place of gdb_realpath to
10324 avoid resolving the basename part of filenames when the
10325 associated file is a symbolic link. This fixes a potential
10326 inconsistency between the filenames known to GDB and the
10327 filenames it prints in the annotations.
10328 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10329 to be able to match a filename with either the real filename, or
10330 the name of any symbolic link to this file.
10331 (lookup_partial_symtab): Ditto.
10332
c02f5703
MS
103332002-04-04 Michael Snyder <msnyder@redhat.com>
10334
10335 * breakpoint.c: Add support for hardware breakpoints in overlays.
10336 (overlay_events_enabled): New state variable.
10337 (insert_breakpoints): Use overlay_events_enabled to decide
10338 whether to attempt to set a breakpoint at the overlay load addr.
10339 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10340 (remove_breakpoint): Use overlay_events_enabled to decide
10341 whether breakpoints need to be removed from overlay load addr.
10342 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10343 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 10344 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
10345 disable_overlay_breakpoints): Update overlay_events_enabled.
10346
5fb290d7
DJ
103472002-04-04 Daniel Jacobowitz <drow@mvista.com>
10348
10349 * dwarf2read.c (struct function_range): New.
10350 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10351 (check_cu_functions): New.
10352 (read_file_scope): Initialize global function lists.
10353 Call dwarf_decode_line after processing children.
10354 (read_func_scope): Add to global function list.
10355 (dwarf_decode_lines): Call check_cu_functions everywhere
10356 record_line is called. Call record_line with a linenumber
10357 of 0 to mark sequence ends.
10358
7b3fabf0
ML
103592002-04-04 Michal Ludvig <mludvig@suse.cz>
10360
361d1df0 10361 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
10362 change sync with glibc.
10363
bce58c09
JB
103642002-04-03 Jim Blandy <jimb@redhat.com>
10365
10366 * configure.in: Call AC_C_INLINE.
10367 * configure: Regenerated.
361d1df0 10368
2fccf04a
DJ
103692002-04-01 Daniel Jacobowitz <drow@mvista.com>
10370
10371 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10372 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10373
2d1bfe2e
MK
103742002-03-31 Mark Kettenis <kettenis@gnu.org>
10375
a5941fbf
MK
10376 * NEWS: Mention gcore support on FreeBSD/i386.
10377
a90cd31d
MK
10378 * fbsd-proc.c: New file.
10379 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10380 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10381
2d1bfe2e
MK
10382 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10383 while statement.
10384
9eb6e5a1
JB
103852002-03-29 Jim Blandy <jimb@redhat.com>
10386
10387 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10388 unescaped newlines in string literals, but newer ones don't. So
10389 escape them.
10390
f02df580
MS
103912002-03-26 Michael Snyder <msnyder@redhat.com>
10392 Andrew Cagney <cagney@redhat.com>
10393
361d1df0 10394 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10395 restore file to memory.
10396 * cli/cli-dump.h: New file.
10397 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10398 * NEWS: Mention new commands.
f02df580 10399
109f874e
MS
104002002-03-28 Michael Snyder <msnyder@redhat.com>
10401
10402 * symfile.c (symbol_file_add): Move test for null symbols to later.
10403
520f6ade
AC
104042002-03-27 Andrew Cagney <ac131313@redhat.com>
10405
10406 From veksler at il.ibm.com:
10407 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10408 the xstrduped original path.
10409 Fix PR gdb/417.
10410
d4654627
MS
104112002-03-27 Michael Snyder <msnyder@redhat.com>
10412
10413 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10414 * infcmd.c (_initialize_infcmd): Ditto.
10415 * language.c (_initialize_language): Ditto.
10416 * symfile.c (_initialize_symfile): Ditto.
10417 * top.c (_init_main): Ditto.
10418 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10419
6be8bc0c
EZ
104202002-03-27 Elena Zannoni <ezannoni@redhat.com>
10421
10422 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10423 vector registers handling.
10424 (skip_prologue): Handle new AltiVec instructions. Fill in new
10425 fields of frame data.
10426 (frame_get_saved_regs): Fill in information for AltiVec registers.
10427
12af6855
JB
104282002-03-27 Jim Blandy <jimb@redhat.com>
10429
10430 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10431 a function; leave this macro here to invoke that function.
10432 (symbol_init_mangled_name): Declaration for that function.
10433 * symtab.c (symbol_init_mangled_name): New function.
10434
dc672865
AC
104352002-03-27 Andrew Cagney <ac131313@redhat.com>
10436
10437 * valarith.c: Replace strerror with safe_strerror.
10438 * tracepoint.c: Ditto.
10439 * lin-lwp.c: Ditto.
10440 * go32-nat.c: Ditto.
10441 * inflow.c: Ditto.
10442 * gnu-nat.c: Ditto.
10443
d96429cd
AS
104442002-03-27 Andreas Schwab <schwab@suse.de>
10445
10446 * event-top.c (command_line_handler): Remove useless if.
10447
7e336ba1
AJ
104482002-03-27 Andreas Jaeger <aj@suse.de>
10449
10450 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10451 comment.
10452
de220d0f
ML
104532002-03-27 Michal Ludvig <mludvig@suse.cz>
10454
10455 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10456 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10457 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10458 (x86_64_linux_dr_get_status, supply_gregset),
10459 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10460 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10461 (x86_64_register_info_table): Add.
10462 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10463 (x86_64_register_raw_size, x86_64_register_virtual_type),
10464 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10465 general x86_64_register_info_table.
10466 (i386_gdbarch_init): gdbarch_register_bytes is now set
10467 dynamicaly during initialization.
10468 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10469 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 10470
0e98d0a7
DJ
104712002-03-27 Daniel Jacobowitz <drow@mvista.com>
10472
10473 * gdbserver/server.c (main): Call target_signal_to_host_p
10474 and target_signal_to_host on signals received from the remote.
10475 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10476 target_signal_from_host on signals sent to the remote.
10477 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10478 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10479
3130066b
DJ
104802002-03-27 Daniel Jacobowitz <drow@mvista.com>
10481
10482 * signals/signals.c: Include "server.h" in gdbserver build.
10483 (target_signal_from_name): Don't use STREQ.
10484 (_initialize_signals): Likewise. Don't include function in
10485 gdbserver build.
10486
9aedf4f4
DJ
104872002-03-27 Daniel Jacobowitz <drow@mvista.com>
10488
10489 * signals.c: Moved to...
10490 * signals/signals.c: Here.
7e336ba1 10491 * Makefile (signals.o): Update.
9aedf4f4 10492
3fa41cdb
JL
104932002-03-26 Jeff Law (law@redhat.com)
10494
10495 * somread.c (som_symtab_read): Remove some commented out code and
10496 updated related comments. Do not set the minimal symbol table to
10497 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10498 in a dynamic executable.
10499 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10500 where we are unable to find the minimal symbol for the given
10501 PC value.
10502
ee677e8d
MS
105032002-03-25 Jeff Law (law@redhat.com)
10504
10505 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10506
e76e1718
ML
105072002-03-25 Michal Ludvig <mludvig@suse.cz>
10508
10509 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10510
18a642a1
AC
105112002-03-23 Andrew Cagney <ac131313@redhat.com>
10512
10513 * command.h: Update copyright.
10514 (struct cmd_list_element): Replace definition with opaque
10515 declaration.
10516 (enum cmd_types): Document that it will eventually be moved to
10517 cli/cli-decode.h
10518 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10519 (MALLOCED_REPLACEMENT): Delete macro.
10520 * Makefile.in (cli_decode_h): Add $(command_h).
10521 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 10522 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
10523 * completer.c: Include "cli/cli-decode.h".
10524 * maint.c: Include "cli/cli-decode.h".
10525 * cli/cli-decode.h: Include "command.h".
10526 (enum command_class): Delete.
10527 (enum cmd_types): Comment out.
10528 (enum cmd_auto_boolean): Delete.
10529 (enum var_types): Delete.
10530
b2875cc0
AC
105312002-03-23 Andrew Cagney <ac131313@redhat.com>
10532
10533 * cli/cli-decode.c: Include "gdb_assert.h".
10534 (add_set_or_show_cmd): New static function.
10535 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10536 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10537 all fields, such as func, from the set command.
10538
3b45974e
AC
105392002-03-23 Andrew Cagney <ac131313@redhat.com>
10540
10541 * MAINTAINERS (sh-elf): Change warning flag to -w.
10542
823ca731
AC
105432002-03-23 Andrew Cagney <cagney@redhat.com>
10544
10545 * defs.h (error): Add printf format attribute.
10546 * thread-db.c (thread_from_lwp): Fix error format string.
10547 * stack.c (parse_frame_specification): Ditto.
10548 * cli/cli-decode.c (undef_cmd_error): Ditto.
10549 * scm-lang.c (scm_lookup_name): Ditto.
10550 * tracepoint.c (trace_error): Ditto.
10551 * remote-utils.c (usage): Ditto.
10552 * remote.c (compare_sections_command): Ditto.
10553 Fix PR gdb/328.
10554
0e101458
AC
105552002-03-22 Andrew Cagney <ac131313@redhat.com>
10556
10557 * gdbtypes.c (append_composite_type_field): New function.
10558 (init_composite_type): New function.
10559 * gdbtypes.h (append_composite_type_field): Declare.
10560 (init_composite_type): Ditto.
10561
8e0662df
EZ
105622002-03-22 Elena Zannoni <ezannoni@redhat.com>
10563
10564 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 10565 function.
8e0662df
EZ
10566 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10567 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10568 structure returning convention for SYSV ABI case, but not
10569 for GNU/Linux, FreeBSD, or NetBSD.
10570
3121eff0
DJ
105712002-03-22 Daniel Jacobowitz <drow@mvista.com>
10572
10573 * symtab.h (lookup_block_symbol): Add mangled_name argument
10574 to prototype.
10575
10576 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10577 with new mangled_name argument.
10578 * linespec.c (decode_line_1): Likewise.
10579 * valops (value_of_this): Likewise.
10580 * symtab.c (lookup_transparent_type): Likewise.
10581 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10582 (lookup_symbol): If we are given a mangled name, pass it down
10583 to lookup_symbol_aux.
10584 (lookup_block_symbol): If we are given a mangled name to check
10585 against, only return symbols which match it.
10586
349b409f
CF
105872002-03-22 Christopher Faylor <cgf@redhat.com>
10588
10589 * win32-nat.c (child_create_inferior): Check for proper shell to use
10590 here, in case the user changes it on the fly.
10591 (_initialize_inftarg): Remove shell path considerations.
10592
2a873819
EZ
105932002-03-21 Elena Zannoni <ezannoni@redhat.com>
10594
10595 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10596 for gdbarch_max_register_raw_size and max_register_virtual_size.
10597 Adjust copyright year.
10598
a1b9830c
DJ
105992002-03-21 Daniel Jacobowitz <drow@mvista.com>
10600
10601 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10602 in a function to cover the entire beginning of the function
10603 as well if it does not already.
10604
8b5790f2
TR
106052002-03-21 Tom Rix <trix@redhat.com>
10606
10607 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10608 (rs6000_ptrace64): Renamed from ptrace64.
10609
bdbe5747
MH
106102002-03-20 Martin M. Hunt <hunt@redhat.com>
10611
10612 * gdbserver/remote-utils.c (remote_open): Don't call
10613 getprotobyname, we're all using TCP here so just use
10614 IPPROTO_TCP.
7e336ba1 10615 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
10616
106172002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 10618
bdbe5747
MH
10619 * regcache.c (_initialize_regcache): No need to call
10620 build_regcache() at this time; it gets called whenever
10621 the gdbarch changes.
10622
7781cd62
DB
106232002-03-20 David O'Brien <obrien@FreeBSD.org>
10624
10625 * sparc-nat.c: Include sys/param.h where possible.
10626
f65ca430
DJ
106272002-03-20 Daniel Jacobowitz <drow@mvista.com>
10628
10629 Fix PR gdb/422.
10630 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10631 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10632 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10633 complex types.
10634 * stabsread.c (rs6000_builtin_type): Likewise.
10635 (read_sun_floating_type): Likewise.
10636
0c867556
PS
106372002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10638
10639 * stabsread.c (read_member_functions): Remove skip code for duplicate
10640 constructor/destructor methods. Use standard parsing for these
10641 methods and just do not chain them to the list of methods after
10642 parsing.
10643
12b9c64f
AO
106442002-03-19 Alexandre Oliva <aoliva@redhat.com>
10645
10646 * coffread.c: Remove redundant static declarations. Replace
10647 occurrences of `PTR' with `void *'.
10648 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10649 * top.h (quit_cover): Likewise.
10650 * defs.h (catch_errors): Likewise.
10651
349c5d5f
AC
106522002-03-18 Andrew Cagney <ac131313@redhat.com>
10653
10654 * defs.h (XMALLOC): Define.
10655 * gdb-events.sh (XMALLOC): Delete macro.
10656 * gdb-events.c, gdb-events.h: Regenerate.
10657 * gdbarch.sh (XMALLOC): Delete macro.
10658 * gdbarch.c: Regenerate.
10659 * serial.c (XMALLOC): Delete macro.
10660 * ui-file.c (XMALLOC): Ditto.
10661 * ser-unix.h (XMALLOC): Ditto.
10662 * sh-tdep.c (XMALLOC): Ditto.
10663 * ui-out.c (XMALLOC): Ditto.
10664 * utils.c (XMALLOC): Ditto.
10665 * i386-tdep.c (XMALLOC): Ditto.
10666 * gdb-events.c (XMALLOC): Ditto.
10667 * d10v-tdep.c (XMALLOC): Ditto.
10668 * cli-out.c (XMALLOC): Ditto.
10669
10670 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10671 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10672 * ui-file.c, ui-out.c: Ditto.
10673
7d0766f3
AC
106742002-03-18 Andrew Cagney <ac131313@redhat.com>
10675
10676 * command.h (struct cmd_list_element): Add field context.
10677 (set_cmd_context, get_cmd_context): Declare.
10678 * cli/cli-decode.h: Ditto.
10679 * cli/cli-decode.c (get_cmd_context): New function.
10680 (set_cmd_context): New function.
10681 (add_cmd): Initialize context.
10682 Part of fixing PR gdb/145 and PR gdb/146.
10683
5913bcb0
AC
106842002-03-17 Andrew Cagney <ac131313@redhat.com>
10685
1868c04e
AC
10686 * cli/cli-decode.c (cmd_type): New function.
10687 * command.h (cmd_type): Declare.
10688 * infrun.c (set_schedlock_func): Call function cmd_type.
10689 * kod.c (kod_set_os): Call cmd_type.
10690 * cris-tdep.c (cris_version_update): Use function cmd_type.
10691 (cris_mode_update, cris_abi_update): Ditto.
10692
5913bcb0
AC
10693 * command.h: (execute_cmd_post_hook): Declare.
10694 (execute_cmd_pre_hook): Declare.
10695 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10696 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10697 functions. Execute pre/post hook while ensuring that afterwords
10698 hook_in is cleared.
10699 * top.c (execute_command): Use execute_cmd_post_hook, and
10700 execute_cmd_pre_hook to execute pre/post commands.
10701 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10702 hook_stop_stub.
10703 (hook_stop_stub): Call execute_cmd_pre_hook.
10704
b51450c9
AC
107052002-03-17 Andrew Cagney <ac131313@redhat.com>
10706
10707 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10708 set'' and this leads to a core dump. Move xstrdup of
10709 operating_system to after check that it is not NULL.
10710
f66c9f11
AC
107112002-03-17 Andrew Cagney <ac131313@redhat.com>
10712
8e694ecf
AC
10713 * kod.c (kod_set_os): Remove unnecessary check that
10714 ``command->type'' is set_cmd.
10715
f66c9f11
AC
10716 * valprint.c (set_input_radix): Use input_radix.
10717 (set_output_radix): Use output_radix.
10718 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10719 isn't reverted.
10720
9d01611c
AC
107212002-03-16 Andrew Cagney <ac131313@redhat.com>
10722
10723 * value.h (struct value): Delete field ``substring_addr''. Change
10724 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
10725 force_core_addr_align and force_pointer_aligh.
10726
10727 * value.h (struct value): Fix typo in above change.
9d01611c 10728
4156bb53
PS
107292002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10730
10731 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10732 to fix internal_error from ``maintenance print architecture''.
10733
0e5e3ea6
PS
107342002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10735
10736 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10737 for gcc versions after gcc-2.8.1.
10738
9b013045
PS
107392002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10740
10741 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10742 for method resolution. Restore adjustment of ``this'' pointer after
10743 calling value_struct_elt, which was accidentally removed during the
10744 HP merge.
10745
376c9600
AC
107462002-03-15 Andrew Cagney <ac131313@redhat.com>
10747
10748 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10749 value_of_register.
10750 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10751 get_saved_register.
10752 * value.h (value_of_register): Update.
10753
a4db0f07
RH
107542002-03-14 Richard Henderson <rth@redhat.com>
10755
10756 * configure.in: Detect declaration for canonicalize_file_name.
10757 * utils.c (canonicalize_file_name): Declare, if needed.
10758 (gdb_realpath): Prefer realpath if available and usable.
10759 * config.in, configure: Rebuild.
10760
96383835
RH
107612002-03-14 Richard Henderson <rth@redhat.com>
10762
10763 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10764 a constant array bound.
10765
10766 * MAINTAINERS: Add myself to write-after-approval.
10767
75245b24
MS
107682002-03-14 Michael Snyder <msnyder@redhat.com>
10769
10770 * symfile.c (syms_from_objfile): Return immediately if no syms.
10771 (symbol_file_add): Return immediately if no syms.
10772 (find_sym_fns): Return immediately if no syms.
10773
e641a1ca
ML
107742002-03-13 Michal Ludvig <mludvig@suse.cz>
10775
10776 * gdbserver/remote-util.c (remote_open): Print remote-side's
10777 IP address when remote debugging over the network.
7e336ba1 10778
df08bfec
DB
107792002-03-12 David O'Brien <obrien@FreeBSD.org>
10780
10781 * config/sparc/fbsd.mh: Fix copyright.
10782 * config/sparc/fbsd.mt: Likewise.
10783
9a57864f
RE
107842002-03-11 Richard Earnshaw <rearnsha@arm.com>
10785
10786 * MAINTAINERS: Fix typo in name of gdb warnings option.
10787 (x86-64): Fix formating so that this can be parsed by awk.
10788
dd7bf85e
DJ
107892002-03-10 Daniel Jacobowitz <drow@mvista.com>
10790
10791 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10792 * defs.h: Include "gdb/signals.h".
10793 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10794
33a0a2ac
ML
107952002-03-10 Michal Ludvig <mludvig@suse.cz>
10796
10797 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 10798 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
10799 from x86-64-tdep.h
10800
dd824b04
DJ
108012002-03-10 Daniel Jacobowitz <drow@mvista.com>
10802 Don Howard <dhoward@redhat.com>
10803
10804 * mips-tdep.c (ST0_FR): Define.
10805 (mips2_fp_compat): New function, temporarily disabled.
10806 (mips_read_fp_register_single): New function.
10807 (mips_read_fp_register_double): New function.
10808 (mips_print_register): Use them.
10809 (do_fp_register_row): Likewise.
10810
6a41ff59
AC
108112002-03-09 Andrew Cagney <ac131313@redhat.com>
10812
10813 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10814 approval''.
10815
4ea09c10
PS
108162002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10817
10818 * stabsread.c (read_member_functions): Fix is_stub test for
10819 static member functions, improve comment.
10820
6ccc741d
RE
108212002-03-07 Richard Earnshaw <rearnsha@arm.com>
10822
10823 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10824 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10825 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10826 commands that set boolean values.
10827 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10828 (arm_rdi_resume): Always initialize PC.
10829 (arm_rdi_open): Don't use rslt as a boolean.
10830 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10831 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10832 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10833 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10834
438013df
AO
108352002-03-06 Alexandre Oliva <aoliva@redhat.com>
10836
10837 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10838 * configure: Rebuilt.
10839
70ed8774
SC
108402002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10841
10842 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10843 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10844
5ba2abeb
AC
108452002-03-06 Andrew Cagney <ac131313@redhat.com>
10846
10847 * cli/cli-decode.c (set_cmd_completer): New function.
10848 * command.h (set_cmd_completer): Declare.
10849 * cli/cli-decode.h (set_cmd_completer): Ditto.
10850
10851 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10852 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10853 * win32-nat.c (_initialize_inftarg): Ditto.
10854 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10855 * proc-api.c (_initialize_proc_api): Ditto.
10856 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10857 * source.c (_initialize_source): Ditto.
10858 * exec.c (_initialize_exec): Ditto.
10859 * solib.c (_initialize_solib): Ditto.
10860 * top.c (init_main): Ditto.
10861 * tracepoint.c (_initialize_tracepoint): Ditto.
10862 * symfile.c (_initialize_symfile): Ditto.
10863 * printcmd.c (_initialize_printcmd): Ditto.
10864 * infcmd.c (_initialize_infcmd): Ditto.
10865 * corefile.c (_initialize_core): Ditto.
10866
f779ca99
AC
108672002-03-05 Andrew Cagney <ac131313@redhat.com>
10868
10869 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10870
01a3934b
AC
108712002-03-05 Andrew Cagney <ac131313@redhat.com>
10872
10873 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10874
37057839
AC
108752002-03-05 Andrew Cagney <ac131313@redhat.com>
10876
10877 * NEWS: Update headings, 5.2 has branched.
10878
c6ecbae5
DJ
108792002-03-04 Daniel Jacobowitz <drow@mvista.com>
10880
10881 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10882 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10883 (register_addr, REGISTER_RAW_SIZE): Likewise.
10884 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10885 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10886
e9f30c21
ML
108872002-03-03 Michal Ludvig <mludvig@suse.cz>
10888
10889 * MAINTAINERS (x86-64): Add myself.
10890 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10891 changed value_ptr -> struct value *
10892
54394ac3
DB
108932002-03-01 David O'Brien <obrien@FreeBSD.org>
10894
10895 * configure.host (sparc64-*-freebsd): Add.
10896 * configure.tgt: Likewise.
10897 * config/sparc/fbsd.mh: New file.
10898 * config/sparc/fbsd.mt: Likewise.
10899 * config/sparc/nm-fbsd.h: Likewise.
10900 * config/sparc/tm-fbsd.h: Likewise.
10901
bfe95955
DJ
109022002-03-01 Daniel Jacobowitz <drow@mvista.com>
10903
10904 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10905 regformats/reg-s390x.dat.
10906
f33c6cbf
AC
109072002-03-01 Andrew Cagney <ac131313@redhat.com>
10908
10909 * utils.c: Add FIXME explaining true/false problem.
10910
5ecaa7dd
AC
109112002-02-28 Andrew Cagney <ac131313@redhat.com>
10912
10913 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10914
2a251cc2
MC
109152002-02-28 Michael Chastain <mec@shout.net>
10916
10917 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10918
6a8031a3 109192002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
10920
10921 * gdbserver/linux-s390-low.c: New file.
10922 * regformats/reg-s390.dat: New file.
10923 * regformats/reg-s390x.dat: New file.
10924 * gdbserver/configure.srv: Add S/390.
10925 * gdbserver/Makefile.in: Add S/390.
10926 * configure.tgt: Enable gdbserver for S/390.
10927
ac469903
EZ
109282002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10929
10930 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10931 first line of the doc string for "info dos", except at the end of
10932 the sentence, since the short help stops at the first period.
10933
985cb1a3
JM
109342002-02-28 Jason Merrill <jason@redhat.com>
10935
10936 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10937
c570663e
FF
109382002-02-27 Fred Fish <fnf@redhat.com>
10939
10940 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10941 comment (dumy -> dummy).
10942
43630227
PS
109432002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10944
10945 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10946
b84911e8
RB
109472002-02-27 Rodney Brown <rbrown64@csc.com.au>
10948
10949 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10950
58caa3dc
DJ
109512002-02-27 Daniel Jacobowitz <drow@mvista.com>
10952
10953 * gdbserver/acconfig.h: New file.
10954 * gdbserver/i387-fp.c: New file.
10955 * gdbserver/i387-fp.h: New file.
10956 * gdbserver/linux-x86-64.c: New file.
10957 * regformats/reg-x86-64.dat: New file.
10958 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10959 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10960 * gdbserver/configure.in: Add support for regsets.
10961 * gdbserver/config.in: Regenerate.
10962 * gdbserver/configure: Regenerate.
10963 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10964 * gdbserver/linux-low.h: New file.
10965 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10966 for regsets.
10967 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10968 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10969 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10970 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10971 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10972 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10973 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10974 "i387-fp.h". Add PTRACE_GETREGS and friends.
10975 * gdbserver/regcache.c (supply_register): New function.
10976 (supply_register_by_name): New function.
10977 (collect_register): New function.
10978 (collect_register_by_name): New function.
10979
93652174
DJ
109802002-02-27 Daniel Jacobowitz <drow@mvista.com>
10981
10982 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10983 (config.status): Add configure.srv dependency.
10984 (server_h): Add config.h dependency.
10985
a02e4a61
DJ
109862002-02-27 Daniel Jacobowitz <drow@mvista.com>
10987
10988 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10989 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10990 * gdbserver/configure.srv: Change i386-*-linux* to use
10991 reg-i386-linux.o.
10992
ce0eebec
AC
109932002-02-26 Andrew Cagney <ac131313@redhat.com>
10994
10995 * x86-64-tdep.c: Re-indent. Update copyright date.
10996
82dbc5f7
AC
109972002-02-26 Andrew Cagney <ac131313@redhat.com>
10998
10999 From Michal Ludvig <mludvig@suse.cz>:
11000 * x86-64-tdep.c (value.h): Delete.
11001 (gdb_assert.h): Include.
11002 (x86_64_register_convert_to_virtual,
11003 x86_64_register_convert_to_raw ): Add check which lets only
11004 floating-point values to be converted.
11005 (value_push): Delete.
11006 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11007 (i386_gdbarch_init): Number of register_bytes fixed.
11008
e4621584
AC
110092002-02-26 Andrew Cagney <ac131313@redhat.com>
11010
11011 * MAINTAINERS: Add x86-64 target.
11012
81a9a963
AC
110132002-02-26 Andrew Cagney <ac131313@redhat.com>
11014
11015 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11016 * osfsolib.c (solib_map_sections): Ditto.
11017 * irix5-nat.c (solib_map_sections): Ditto.
11018 * corelow.c (gdb_check_format): Ditto.
11019 * symfile.c (symfile_bfd_open): Ditto.
11020 * solib.c (solib_map_sections): Ditto.
11021 Fix PR gdb/354.
7e336ba1 11022
0f017ab9
AC
110232002-02-26 Andrew Cagney <ac131313@redhat.com>
11024
11025 * remote.c (_initialize_remote): By default, disable ``e'' and
11026 ``E'' step out-of-range packets.
11027
75738c29
AS
110282002-02-26 Andreas Schwab <schwab@suse.de>
11029
11030 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11031 m68k_linux_frame_saved_pc.
11032 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11033 in_sigtramp.
11034 (SIGCONTEXT_PC_OFFSET): Remove.
11035 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11036 m68k_linux_sigtramp_saved_pc): New functions.
11037 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11038 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11039 (UCONTEXT_PC_OFFSET): Define.
11040 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11041 non-RT and RT signal trampolines.
11042
7e8ed687
RE
110432002-02-26 Richard Earnshaw <rearnsha@arm.com>
11044
11045 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11046 (TARGET_NBPG, STACK_END_ADDR): Delete
11047 (VARIABLES_INSIDE_BLOCK): Delete.
11048
6972bc8b
AC
110492002-02-25 Andrew Cagney <ac131313@redhat.com>
11050
11051 * utils.c (perror_with_name): Make string parameter constant.
11052 (print_sys_errmsg): Ditto.
11053 (query): Ditto.
11054 * defs.h (perror_with_name): Update.
11055 (print_sys_errmsg): Update.
11056 (query): Update.
11057
aa32f823
DJ
110582002-02-25 Daniel Jacobowitz <drow@mvista.com>
11059
11060 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11061 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11062
19caaa45
PS
110632002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11064
11065 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11066 if it already matches the current architecture from the exec file.
11067 Include arch-utils.h for gdbarch_info_init prototype.
11068 * Makefile.in (rs6000-nat.o): Update dependencies.
11069
d951901f
EZ
110702002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11071
11072 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11073 list of exported variables.
11074
7ea81414
DJ
110752002-02-24 Daniel Jacobowitz <drow@mvista.com>
11076
11077 * gdbserver/configure.srv: New file.
11078 * gdbserver/configure.in: Use configure.srv instead
11079 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11080 from it.
11081 * gdbserver/configure: Regenerated.
11082 * gdbserver/terminal.h: New file.
11083 * gdbserver/Makefile.in: Update for configure changes. Remove
11084 more unneeded include paths.
11085
080fe24b
AC
110862002-02-24 Andrew Cagney <ac131313@redhat.com>
11087
11088 From wiz at danbala:
11089 * config/sparc/tm-sp64.h: Fix grammar and typos.
11090 Fix PR gdb/287.
11091
8605d56e
AC
110922002-02-24 Andrew Cagney <ac131313@redhat.com>
11093
11094 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
11095 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11096 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11097 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
11098 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11099 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11100 * s390-tdep.c: Ditto.
92362027
AC
11101 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11102 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11103 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11104 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11105 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11106 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11107 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11108 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11109 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11110 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 11111 Fix PR gdb/378.
7e336ba1 11112
8ed32cc0
AC
111132002-02-23 Andrew Cagney <ac131313@redhat.com>
11114
a3007b6f
AC
11115 * lin-thread.c: Delete file.
11116 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11117 to gdb_proc_service.h.
11118 * configure: Re-generate.
11119
50a9e2f1
AC
11120 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11121 * serial.c (serial_open): Delete check for "ocd".
11122 Fix PR gdb/349.
11123
8b6e7932
AC
11124 * Makefile.in (linux-thread.o): Delete target.
11125 * linux-thread.c: Delete file.
11126
d155c46b
AC
11127 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11128 renamed SH files to be consistent.
11129
8ed32cc0
AC
11130 * symtab.c (sort_search_symbols): Use xfree.
11131
0e18d038
RE
111322002-02-23 Richard Earnshaw <rearnsha@arm.com>
11133
11134 * arm-linux-tdep.c (arm_linux_init_abi): Register
11135 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11136 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11137 definition with undef, since we don't want the sysvr4 definition.
11138 (SKIP_TRAMPOLINE_CODE): Likewise.
11139
27aac7ff
AC
111402002-02-23 Andrew Cagney <ac131313@redhat.com>
11141
11142 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11143
11144 * configure.in: (AC_CHECK_FUNCS) Added test for
11145 canonicalize_file_name Regenerated.
11146 * config.in, configure: Regenerated.
11147 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11148 defined use canonicalize_file_name.
7e336ba1 11149
65a6e0ee
MC
111502002-02-23 Michael Chastain <mec@shout.net>
11151
11152 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11153
47b95330
AC
111542002-02-23 Andrew Cagney <ac131313@redhat.com>
11155
11156 * README: Remove references to cygnus.com.
11157 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11158 dot com'' form. Remove references to cygnus.com and sourceware.
11159
696f451b
AC
111602002-02-23 Andrew Cagney <ac131313@redhat.com>
11161
11162 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11163 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11164 1003.1-2001 no longer allows "head -1".
11165 * gdb/Makefile.in (version.c): Likewise.
11166 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11167 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11168 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11169
bbaca940
AC
111702002-02-23 Andrew Cagney <ac131313@redhat.com>
11171
11172 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11173 * command.h (cmd_cfunc_eq): Declare.
11174 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11175
11176 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11177 ``struct cmd_list_element *''.
11178 * cli/cli-cmds.c (is_complete_command): Update. Use
11179 cmd_cfunc_eq.
11180 * top.c (execute_command): Pass the command to
11181 is_complete_command.
11182 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11183
b8b8b047
AC
111842002-02-23 Andrew Cagney <ac131313@redhat.com>
11185
11186 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11187 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11188 architecture defines.
11189 * s390-tdep.c (s390_gdbarch_init): Likewise.
11190
19d3fc80
RE
111912002-02-23 Richard Earnshaw <rearnsha@arm.com>
11192
11193 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11194 (arm_linux_push_arguments): Likewise.
11195 (arm_linux_init_abi): Register them. Also register linux-specific
11196 call_dummy_words.
11197 (find_minsym_and_objfile): Use strcmp, not STREQ.
11198 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11199 (arm_linux_call_dummy_words): Delete declaration.
11200 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11201 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11202 declarations.
11203 (LOWEST_PC): Delete.
11204
3ab13650
PS
112052002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11206
11207 * maint.c (print_section_info): Do not prepend `0x' to filepos
11208 output, it will be handled by local_hex_string_custom.
11209
19d3fc80 112102002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
11211
11212 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11213 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11214 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11215
d85a5daf
JB
112162002-02-22 Jim Blandy <jimb@redhat.com>
11217
11218 Indicate that the bcache functions don't change the strings
11219 they're passed.
11220 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11221 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11222
eeb25b8a
PM
112232002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11224
11225 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11226
6badb179
CF
112272002-02-21 Christopher Faylor <cgf@redhat.com>
11228
11229 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11230 find the complete path to a loaded DLL.
11231
e8717518
FF
112322002-02-21 Fred Fish <fnf@redhat.com>
11233
11234 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11235 that marks the end of the range of a function, enter a line number
11236 entry that has a line number of zero and a PC offset that matches
11237 the end of the function. This starts a range of PC's for which no
11238 line number information is known.
11239 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11240 PC's for which no line number info is found (line number is zero)
11241 then we didn't find any valid line information.
11242 * symtab.h: Document use of zero line number entry.
11243
9abe5450
EZ
112442002-02-21 Elena Zannoni <ezannoni@redhat.com>
11245
11246 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11247 (have_ptrace_getvrregs): Define for run time checks.
11248 (gdb_vrregset_t): New type for Altivec register handling.
11249 (fetch_register, store_register): Fetch/store altivec register
11250 when needed.
11251 (fetch_altivec_register, store_altivec_register): New functions.
11252 (supply_vrregset, fill_vrregset): New functions.
11253 (fetch_altivec_registers, store_altivec_registers): New functions.
11254 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11255 registers as well.
11256
aaa38bb5
AJ
112572002-02-21 Jiri Smid <smid@suse.cz>
11258
11259 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11260
b34db576
RE
112612002-02-21 Richard Earnshaw <rearnsha@arm.com>
11262
11263 * Makefile.in (armnbsd-nat.o): Update dependencies.
11264 * armnbsd-nat.c (supply_gregset): New function. Common code to
11265 supply the integer register set.
11266 (supply_fparegset): New function. Similar for FPA registers.
11267 (fetch_regs, fetch_fp_regs): Use them.
11268 (fetch_core_registers): Likewise.
11269 (fetch_elfcore_registers): New function.
11270 (arm_netbsd_elfcore_fns): New core-file type specification.
11271 (_initialize_arm_netbsd_nat): Register it.
11272
3e56fc4b
RE
112732002-02-21 Richard Earnshaw <rearnsha@arm.com>
11274
11275 * armnbsd-nat.c: Include gdbcore.h.
11276 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11277 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11278 'void' to declaration, to shut up ARI.
11279 (fetch_core_registers): Make static. Rewrite using supply_register.
11280 (arm_netbsd_core_fns): New core-file type specification.
11281 (_initialize_arm_netbsd_nat): New function.
11282
097f6b0b
CF
112832002-02-21 Christopher Faylor <cgf@redhat.com>
11284
11285 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11286 value.
11287
c914e0cc
CF
112882002-02-20 Christopher Faylor <cgf@redhat.com>
11289
11290 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11291 fails.
11292
385fa495
DJ
112932002-02-20 Daniel Jacobowitz <drow@mvista.com>
11294
11295 * jv-exp.y (parse_number): Change type of implicit longs
11296 to builtin_type_uint64.
11297
e5f1222d
DJ
112982002-02-20 Daniel Jacobowitz <drow@mvista.com>
11299
11300 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11301 to be an integer instead of a `union wait'.
11302
75c9abc6
DJ
113032002-02-20 Daniel Jacobowitz <drow@mvista.com>
11304
11305 * mips-linux-nat.c: Call the operating system GNU/Linux.
11306 * mips-linux-tdep.c: Likewise.
11307 * mips-tdep.c: Likewise.
11308
551792a5
DJ
113092002-02-20 Daniel Jacobowitz <drow@mvista.com>
11310
11311 Fix PR gdb/265.
11312 * jv-exp.y (parse_number): Handle 64-bit integers.
11313
ee6e2b82
DJ
113142002-02-20 Daniel Jacobowitz <drow@mvista.com>
11315
11316 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11317 AC_STDC_HEADERS to AC_HEADER_STDC.
11318 * gdbserver/configure: Regenerated.
11319
a48442a0
RE
113202002-02-20 Richard Earnshaw <rearnsha@arm.com>
11321
11322 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11323 is defined.
11324 * sparc-tdep.c (get_longjmp_target): Likewise.
11325
fe419ffc
RE
113262002-02-20 Richard Earnshaw <rearnsha@arm.com>
11327
11328 * News: Add news about ARM and Multi-arch. Mention the new target
11329 arm*-*-netbsd*.
11330
5832ed7e
JB
113312002-02-19 Jim Blandy <jimb@redhat.com>
11332
11333 * stabsread.c (error_type_complaint): Improve error message.
11334
84563040
DJ
113352002-02-19 Daniel Jacobowitz <drow@mvista.com>
11336
11337 * gdbserver/README: Update documentation.
11338 * gdbserver/configure.in: Update configury to match documentation.
11339 * gdbserver/Makefile.in: Likewise.
11340 * gdbserver/configure: Regenerated.
11341 * gdbserver/aclocal.m4: New file, generated by aclocal.
11342 * gdbserver/config.in: New file, generated by autoheader.
11343
375fd65b
RE
113442002-02-19 Richard Earnshaw <rearnsha@arm.com>
11345
11346 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11347 armnbsd-nat.c.
11348
08216dd7
RE
113492002-02-19 Richard Earnshaw <rearnsha@arm.com>
11350
11351 * arm-tdep.h (enum arm_float_model): New enum.
11352 (struct gdbarch_tdep): Add fp_model.
11353 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11354 up floating-point conversions until we know the floating-point model
11355 in use by the inferior. Don't complain about being unable to
11356 determine the ABI of the inferior when we don't have one.
11357 (arm_extract_return_value): Support different floating-point models.
11358 (arm_store_return_value): Likewise.
aaa38bb5 11359 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
11360 ARM_FLOAT_SOFT.
11361 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11362
65d6d66a
PS
113632002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11364
11365 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11366 of ``current_gdbarch''.
11367
47221191
RE
113682002-02-19 Richard Earnshaw <rearnsha@arm.com>
11369
11370 * armnbsd-nat.c : ANSIfy all function declarations.
11371 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11372 (fetch_inferior_registers): Re-implement in terms of above.
11373 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11374 (store_inferior_registers): Re-implement in terms of above.
11375
fdf39c9a
RE
113762002-02-19 Richard Earnshaw <rearnsha@arm.com>
11377
aaa38bb5 11378 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
11379 kernel.
11380 * arm-linux-tdep.c: Likewise.
11381 * config/arm/tm-linux.h: Likewise.
11382
93247f88
RE
113832002-02-19 Richard Earnshaw <rearnsha@arm.com>
11384
11385 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11386 * config/arm/nbsd.mt (TM_FILE): Delete.
11387 * config/arm/tm-nbsd.h: Delete.
11388
d7b486e7
RE
113892002-02-19 Richard Earnshaw <rearnsha@arm.com>
11390
11391 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11392 Initialize CALL_DUMMY_LENGTH.
11393
41d39a95
RE
113942002-02-19 Richard Earnshaw <rearnsha@arm.com>
11395
11396 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11397 function.
11398 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11399 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11400 defines one thing and that is incorrect for this port.
11401 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11402
e1195560
PM
114032002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11404
11405 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11406
c1748f97
PM
114072002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11408
11409 * win32-nat.c (display_selector): New function. Displays information
11410 about the information returned by GetThreadSelectorEntry API function.
11411 (display_selectors): New function. Displays the infomation of
11412 the selector given as argument, or of CS, DS ans FS selectors
11413 if no argument is given.
11414 ( _initialize_inftarg): Add "w32" as info prefix command.
11415 Add "info w32 selector" as command calling display_selectors.
11416
e41e6bbf
PM
114172002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11418
11419 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11420 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11421 if not defined.
11422
0d3a9f48
RE
114232002-02-18 Richard Earnshaw <rearnsha@arm.com>
11424
11425 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11426
3fb4b924
RE
114272002-02-18 Richard Earnshaw <rearnsha@arm.com>
11428
11429 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11430 (arm_fix_call_dummy): Call it.
11431 (arm_call_dummy_breakpoint_offset): Delete.
11432 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11433 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11434
7f55af32
AC
114352002-02-18 Andrew Cagney <ac131313@redhat.com>
11436
11437 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11438 Default to func_frame_chain_valid.
11439 * gdbarch.h, gdbarch.c: Re-generate.
11440 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11441
05f13b9c
EZ
114422002-02-18 Elena Zannoni <ezannoni@redhat.com>
11443
11444 * ppc-linux-nat.c: Update copyright.
11445 (fetch_register, store_register): Add tid parameter, don't compute
11446 tid here.
11447 (fetch_ppc_registers, store_ppc_registers): Add tid
11448 parameter. Pass it along to callees.
11449 (fetch_inferior_registers, store_inferior_registers): Compute tid
11450 here, and pass it to calleed functions.
11451 (fill_gregset, supply_fpregset): Clean up formatting.
11452
d7afb4c9
RE
114532002-02-18 Richard Earnshaw <rearnsha@arm.com>
11454
11455 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11456 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11457
9df628e0
RE
114582002-02-18 Richard Earnshaw <rearnsha@arm.com>
11459
11460 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11461 * gdbarch.c gdbarch.h: Regenerate.
11462 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11463 function.
11464 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11465 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11466 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11467
11468 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11469 * arm-tdep.c (arm_get_longjmp_target): New function.
11470 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11471 this to a positive value register arm_get_longjmp_target as the
11472 longjmp handler.
11473 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11474 (arm_linux_init_abi): Set up longjmp description in tdep.
11475 * armnbsd-nat.c (get_longjmp_target): Delete.
11476 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11477 description in tdep.
11478 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11479 (get_longjmp_target): Delete declaration.
11480 (GET_LONGJMP_TARGET): Delete.
11481 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11482 (GET_LONGJMP_TARGET): Delete.
11483
57bc8964
KB
114842002-02-17 Kevin Buettner <kevinb@redhat.com>
11485
11486 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11487 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11488 of ``current_gdbarch''.
11489
83d31a92
TT
114902002-02-17 Tom Tromey <tromey@redhat.com>
11491
11492 * cli/cli-cmds.c (compare_strings): New function.
11493 (complete_command): Only print each unique item once.
11494 * completer.h (complete_line): Declare.
11495 * completer.c (complete_line): New function.
11496 (line_completion_function): Use it.
11497
17ef5d92
AC
114982002-02-16 Andrew Cagney <ac131313@redhat.com>
11499
11500 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11501 * gdbarch.h, gdbarch.c: Re-generate.
11502
491b8946
DJ
115032002-02-16 Daniel Jacobowitz <drow@mvista.com>
11504
11505 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11506
115072002-02-16 Daniel Jacobowitz <drow@mvista.com>
11508
11509 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11510 * valops.c (value_arg_coerce): Don't take the address of a reference
11511 to convert an argument to a reference.
11512
dfe7f3ac
CF
115132002-02-15 Christopher Faylor <cgf@redhat.com>
11514
11515 * win32-nat.c (get_image_name): New function.
11516 (handle_load_dll): Use get_image_name function.
11517 (get_child_debug_event): Avoid registering debug events until possibly
11518 execed process is started.
11519 (child_create_inferior): Allow invocation via shell so that command
11520 line redirection, etc. works ok.
11521 (_initialize_inftarg): Add new command: "set shell" to control whether
11522 a shell is used to start a process.
11523
1d33e73a
DJ
115242002-02-15 Daniel Jacobowitz <drow@mvista.com>
11525
11526 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11527 instead of find_register_by_number.
11528 (cannot_store_register): Likewise.
11529
48cd0caa
PM
115302002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11531
aaa38bb5 11532 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
11533 fprintf_unfiltered (gdb_stderr, ...).
11534
8656e7d8
DJ
115352002-02-15 Daniel Jacobowitz <drow@mvista.com>
11536
11537 * gdbserver/gdbserver.1: Document --attach.
11538
66e810cd
RE
115392002-02-15 Richard Earnshaw <rearnsha@arm.com>
11540
11541 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11542 descriptions.
11543 * arm-tdep.c (arm_default_arm_le_breakpoint)
11544 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11545 (arm_default_thumb_be_breakpoint): New. Initialize them from
11546 traditional breakpoint defines.
11547 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11548 (arm_gdbarch_init): Initialize new breakpoint variables.
11549 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11550 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11551 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11552 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11553 code out to ...
11554 (arm_netbsd_init_abi_common): ... here; new function.
11555 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11556 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11557 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11558 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11559
97e03143
RE
115602002-02-15 Richard Earnshaw <rearnsha@arm.com>
11561
11562 * arm-tdep.h (enum arm_abi): New enum.
11563 (struct gdbarch_tdep): New structure.
11564 (LOWEST_PC): Provide a default.
11565 (arm_gdbarch_register_os_abi): Declare new function.
11566 * arm-tdep.c (arm_abi_names): New array.
11567 (process_note_abi_tag_sections): New function.
11568 (get_elfosabi): New function.
11569 (arm_gdbarch_register_os_abi): New function.
11570 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11571 support for that ABI has been built in, then call the appropriate
11572 configuration routine. Use gdbarch_num_regs() to get the number
11573 of registers.
11574 (arm_dump_tdep): New function.
11575 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11576 place-holder functions.
11577 (_initialize_arm_tdep): Register them.
11578 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11579
11580 * armnbsd-tdep.c: New file.
11581 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11582 * config/arm/nbsd.mt (TDEPFILES): Add it.
11583 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11584
11585 * armnbsd-nat.c: Include regcache.h.
11586 * Makefile.in (armnbsd-nat.o): Update dependency list.
11587
11588 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11589
ad68be46
DJ
115902002-02-14 Daniel Jacobowitz <drow@mvista.com>
11591
11592 * gdbserver/Makefile.in: Fix typos in target rules.
11593
003d6d1d
DJ
115942002-02-14 Daniel Jacobowitz <drow@mvista.com>
11595
aaa38bb5 11596 Fix part of PR gdb/267.
003d6d1d
DJ
11597 * linespec.c (find_methods): Handle constructors specially for now.
11598
6b230f1b
CV
115992002-02-14 Corinna Vinschen <vinschen@redhat.com>
11600
11601 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11602 handling.
11603 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11604 standard_coerce_float_to_double().
11605
1ea98d12
CF
116062002-02-14 Christopher Faylor <cgf@redhat.com>
11607
11608 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11609 GDBINIT_FILENAME.
11610
dd47e6fd
EZ
116112002-02-14 Elena Zannoni <ezannoni@redhat.com>
11612
11613 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11614 find_variant_by_name, because it confuses the multiarch
11615 framework. Return NULL if there isn't an architecture with the
11616 user supplied name, instead of forcing a different one without
11617 recording the change with the multiarch machinery.
11618 (find_variant_by_name): Delete.
11619
d7e39b9e
PS
116202002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11621
11622 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11623 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11624
76e42a4f
MH
116252002-02-13 Martin M. Hunt <hunt@redhat.com>
11626
aaa38bb5 11627 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
11628 print_frame_info_listing_hook, set current_source_symtab.
11629
0a30fbc4
DJ
116302002-02-14 Daniel Jacobowitz <drow@mvista.com>
11631
11632 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11633 and remove unused $(INCLUDE_DIR).
11634 Add regcache.c to OBS.
11635 Add generated register protocol files to clean target.
11636 Update dependencies for new objects, obsolete old target code.
11637
11638 * gdbserver/linux-low.c: Remove all platform-specific code to
11639 new files. Remove various dead code. Update to use regcache
11640 functionality.
11641 * gdbserver/remote-utils.c (fromhex): Add return statement
11642 to quiet warning.
11643 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11644 constant.
11645 (input_interrupt): Add integer parameter to match prototype
11646 of a signal handler.
11647 (outreg): Use register_data ().
11648 (prepare_resume_reply): Use gdbserver_expedite_regs.
11649 * gdbserver/server.c (main): Dynamically allocate own_buf because
11650 PBUFSIZ is no longer constant. Use registers_to_string () and
11651 registers_from_string ().
11652 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11653 for error (), fatal (), and warning (). Update definition of
11654 PBUFSIZ to use regcache functionality. Add include guard.
11655 * gdbserver/utils.c (fatal): Add missing ``const''.
11656 (warning): New function.
11657
11658 * regformats/regdat.sh: Include "regcache.h" in generated files.
11659 Provide init_registers () function.
11660 * regformats/regdef.h: Add prototype for set_register_cache ().
11661 Add include guard.
11662
11663 * gdbserver/linux-arm-low.c: New file.
11664 * gdbserver/linux-i386-low.c: New file.
11665 * gdbserver/linux-ia64-low.c: New file.
11666 * gdbserver/linux-m68k-low.c: New file.
11667 * gdbserver/linux-mips-low.c: New file.
11668 * gdbserver/linux-ppc-low.c: New file.
11669 * gdbserver/linux-sh-low.c: New file.
11670
11671 * gdbserver/regcache.c: New file.
11672 * gdbserver/regcache.h: New file.
11673
11674 * gdbserver/low-linux.c: Removed obsolete file.
11675
4cc841d0
DJ
116762002-02-14 Daniel Jacobowitz <drow@mvista.com>
11677
11678 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11679 * config/i386/linux.mt: Likewise.
11680 * config/ia64/linux.mt: Likewise.
11681 * config/m68k/linux.mh: Likewise.
11682 * config/powerpc/linux.mh: Likewise.
11683 * config/mips/linux.mt: Likewise.
11684
11685 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11686
11687 * config/i386/i386lynx.mh: Mark gdbserver variables
11688 as (currently) obsolete for this target.
11689 * config/i386/nbsd.mt: Likewise.
11690 * config/i386/nbsdelf.mt: Likewise.
11691 * config/m32r/m32r.mt: Likewise.
11692 * config/m68k/m68klynx.mh: Likewise.
11693 * config/m68k/nbsd.mt: Likewise.
11694 * config/m68k/sun3os4.mh: Likewise.
11695 * config/mips/vr5000.mt: Likewise.
11696 * config/ns32k/nbsd.mt: Likewise.
11697 * config/pa/hppabsd.mh: Likewise.
11698 * config/pa/hppaosf.mh: Likewise.
11699 * config/powerpc/nbsd.mt: Likewise.
11700 * config/rs6000/rs6000lynx.mh: Likewise.
11701 * config/s390/s390.mt: Likewise.
11702 * config/s390/s390x.mt: Likewise.
11703 * config/sparc/sparclynx.mh: Likewise.
11704 * config/sparc/sun4os4.mh: Likewise.
11705 * config/i386/x86-64linux.mt: Likewise.
11706 * config/sparc/linux.mh: Likewise.
11707
a85f51e7
DJ
117082002-02-14 Daniel Jacobowitz <drow@mvista.com>
11709
11710 * configure.tgt: Configure gdbserver only for known working
11711 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11712 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11713 SUBDIRS if it is configured. Update comment for ${nativefile}.
11714 * configure: Regenerated.
11715
65554fef
MS
117162002-02-13 Michael Snyder <msnyder@redhat.com>
11717
670a52db
MS
11718 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11719
6dbdc4a3
MS
11720 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11721 (default_gcore_mach): Just return 0, work around a problem in bfd.
11722 (default_gcore_target): OK to return NULL if exec_bfd is null.
11723 (make_mem_sec): Use a cast, avoid a warning.
11724
11725 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 11726 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
11727 sizeof (host pointer) != sizeof (target pointer)).
11728 (procfs_make_note_section): Avoid overflow in psargs string.
11729
aaa38bb5 11730 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
11731 implementation return an error.
11732
117332002-02-13 Rodney Brown <rbrown64@csc.com.au>
11734
11735 * procfs.c (procfs_make_note_section): Provide a default definition
11736 (for alpha-dec-osf4.0f). Fix typos.
11737
1e4d76e7
EZ
117382002-02-13 Elena Zannoni <ezannoni@redhat.com>
11739
11740 * linux-proc.c: Add include of regcache.h.
11741 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11742
b6d1a1d5
AC
117432002-02-13 Andrew Cagney <ac131313@redhat.com>
11744
11745 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
11746 * memattr.c (create_mem_region): Disallow useless empty region.
11747 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 11748 non-overlapping.
b6d1a1d5 11749
6c6ea35e
MC
117502002-02-13 Michael Chastain <mec@shout.net>
11751
11752 * defs.h: Kill CONST_PTR.
11753 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11754 * c-lang.c (c_builtin_types): Likewise.
11755 * ch-lang.c (ch_builtin_types): Likewise.
11756 * f-lang.c (f_builtin_types): Likewise.
11757 * language.c (unknown_builtin_types): Likewise.
11758 * m2-lang.c (m2_builtin_types): Likewise.
11759 * p-lang.c (pascal_builtin_types): Likewise.
11760 * scm-lang.c (c_builtin_types): Likewise.
11761
3e0b0f48
KS
117622002-02-13 Keith Seitz <keiths@redhat.com>
11763
11764 * arm-tdep.h (arm_get_next_pc): Add declaration.
11765
67255d04
RE
117662002-02-13 Richard Earnshaw <rearnsha@arm.com>
11767
11768 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11769 with other related struct-returning functions.
11770 (arm_extract_struct_value_address): New function.
11771 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11772 initialize float_format, double_format and long_double_format as
11773 appropriate to the endianness of the target.
11774 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11775 (arm_use_struct_convention): Delete declaration.
11776 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11777
079777f6
KS
117782002-02-13 Keith Seitz <keiths@redhat.com>
11779
11780 * defs.h (core_addr_to_string_nz): New function.
11781
34588f23
MK
117822002-02-13 Mark Kettenis <kettenis@gnu.org>
11783
11784 Apply missing bits of 2002-01-15 patch.
11785 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11786 (fill_fpregset): Use i387_fill_fsave.
11787
49b563f9
KS
117882002-02-12 Keith Seitz <keiths@redhat.com>
11789
49b563f9
KS
11790 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11791 (core_addr_to_string_nz): New function.
11792
aeb98c60
RE
117932002-02-11 Richard Earnshaw <rearnsha@arm.com>
11794
11795 * arm-linux-nat.c: Really include arm-tdep.h.
11796 * config/arm/tm-linux.h (struct type, struct value): Declare.
11797
65554fef
MS
117982002-02-11 Michael Snyder <msnyder@redhat.com>
11799
11800 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11801 (gcore section): Ifdef for Solaris and Unixware only.
11802 (procfs_do_thread_registers): Unixware needs one lwpstatus
11803 per thread (not one prstatus or pstatus).
11804 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11805 not over all gdb threads. For unixware, call elfcore_write_pstatus
11806 once before iterating over threads.
11807
34e8f22d
RE
118082002-02-11 Richard Earnshaw <rearnsha@arm.com>
11809
11810 * arm-tdep.h: New file.
11811 * arm-tdep.c: Include arm-tdep.h.
11812 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11813 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11814 (arm_print_float_info, arm_register_type, convert_to_extended)
11815 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11816 (arm_extract_return_value, arm_register_name): Make static.
11817 (arm_software_single_step): Similarly. Fix types in declaration.
11818 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11819 (arm_store_return_value, arm_store_struct_return): New functions.
11820 (arm_gdbarch_init): Register the above functions. Also register
11821 call_dummy_start_offset, sizeof_call_dummy_words,
11822 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11823 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 11824 max_register_virtual_size, register_size. Set up
34e8f22d
RE
11825 prologue_cache.saved_regs here, rather than ...
11826 (_initialize_arm_tdep): ... here.
11827 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11828 declarations.
11829 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11830 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11831 (arm_print_float_info, arm_register_type, convert_to_extended)
11832 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11833 (arm_extract_return_value, arm_register_name): Delete declarations.
11834 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11835 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11836 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11837 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11838 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11839 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11840 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11841 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11842 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11843 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11844 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11845 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11846 interface.
11847 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11848 * remote-rdi.c remote-rdp.c: Likewise.
11849 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11850 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11851 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11852 definition.
11853
11854 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11855 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11856 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11857 from non-ARM_ prefixed definitions.
11858 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11859 all uses of above.
11860 * remote-rdi.c remote-rdp.c: Likewise.
11861 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11862
148754e5
RE
118632002-02-11 Richard Earnshaw <rearnsha@arm.com>
11864
11865 * arm-tdep.c (arm_frameless_function_invocation)
11866 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11867 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11868 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11869 (arm_pop_frame, arm_get_next_pc): Make static.
11870 (arm_gdbarch_init): Register above in gdbarch structure.
11871 (arm_read_fp): Renamed from arm_target_read_fp.
11872 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11873 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11874 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11875 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11876 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11877 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11878 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
11879 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11880 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11881 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11882 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 11883
434d2d4f
DJ
118842002-02-10 Daniel Jacobowitz <drow@mvista.com>
11885
11886 * symtab.c (compare_search_syms): New function.
11887 (sort_search_symbols): New function.
11888 (search_symbols): Sort symbols after searching rather than
11889 before.
11890
55241689
AC
118912002-02-10 Andrew Cagney <ac131313@redhat.com>
11892
11893 * NEWS: Linux -> GNU/Linux.
11894
028c194b
AC
118952002-02-10 Andrew Cagney <ac131313@redhat.com>
11896
11897 * gdbarch.sh: For for level one methods, disallow a definition
11898 when partially multi-arched. Add comments explaining rationale.
11899 * gdbarch.h: Re-generate.
11900
6acf50cd
AC
119012002-02-10 Andrew Cagney <ac131313@redhat.com>
11902
11903 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11904 multi-arch partial.
aaa38bb5 11905
50248794
AC
119062002-02-10 Andrew Cagney <ac131313@redhat.com>
11907
11908 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11909 field. Use diff -u.
11910 * gdbarch.c: Re-generate.
11911
c30e0066
AC
119122002-02-10 Andrew Cagney <ac131313@redhat.com>
11913
9b56c5f3 11914 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
11915 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11916 partial.
11917
6e6d6484
AC
119182002-02-10 Andrew Cagney <ac131313@redhat.com>
11919
11920 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11921 multi-arch partial.
11922 (PUSH_ARGUMENTS): Switch to using predefault.
11923 * gdbarch.c: Regenerate.
11924
c203844d
AC
119252002-02-10 Andrew Cagney <ac131313@redhat.com>
11926
11927 * valops.c (PUSH_ARGUMENTS): Delete definition.
11928 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11929 partial. Default to default_push_arguments.
11930 * gdbarch.h, gdbarch.c: Regenerate.
11931
b5a2688f
AC
119322002-02-09 Andrew Cagney <ac131313@redhat.com>
11933
11934 * defs.h (throw_exception): Rename return_to_top_level. Update
11935 comments.
11936 * utils.c (error_stream, internal_verror, quit): Ditto.
11937 * top.c (throw_exception, catcher): Ditto.
11938 * sparclet-rom.c (sparclet_load): Ditto.
11939 * remote.c (interrupt_query, minitelnet): Ditto.
11940 * remote-sds.c (interrupt_query): Ditto.
11941 * remote-mips.c (mips_error, mips_kill): Ditto.
11942 * ocd.c (interrupt_query): Ditto.
11943 * monitor.c (monitor_interrupt_query): Ditto.
11944 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11945 * target.h: Update comment.
aaa38bb5 11946
b5a2688f 11947 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 11948
2fa5c1e0
AC
119492002-02-09 Andrew Cagney <ac131313@redhat.com>
11950
11951 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11952 default_double_format.
11953 * gdbarch.h, gdbarch.c: Re-generate.
11954 * findvar.c (floatformat_unknown): Delete variable definition.
11955 * doublest.h (floatformat_unknown): Delete variable declaration.
11956
da966255
JB
119572002-02-09 Jim Blandy <jimb@redhat.com>
11958
11959 * stabsread.c (read_type): Add code to parse Sun's syntax for
11960 prototyped function types.
11961
123a4891
AC
119622002-02-09 Andrew Cagney <ac131313@redhat.com>
11963
11964 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11965 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11966
fb39c8f3
PS
119672002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11968
11969 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11970 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11971 now _initialize_xcoffsolib gets called again and overrides the
11972 commands from solib.c in a native configuration.
11973
0b87a11d
MK
119742002-02-09 Mark Kettenis <kettenis@gnu.org>
11975
11976 * doublest.c (store_typed_floating): Don't try to return a value.
11977 Fixes PR gdb/290.
11978
bdc2fc72
JB
119792002-02-08 Jim Blandy <jimb@redhat.com>
11980
11981 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11982 is prototyped and has no arguments, print its argument list as
11983 `(void)'.
11984
da69bbcf
CD
119852002-02-08 Chris Demetriou <cgd@broadcom.com>
11986
11987 * MAINTAINERS (write-after-approval): Add myself.
11988 (paper-trail): I've escaped!
aaa38bb5 11989
b69571f5
CF
119902002-02-08 Christopher Faylor <cgf@redhat.com>
11991
11992 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11993 changes.
11994 (_initialize_check_for_gdb_ini): Ditto.
11995
f6871398
MH
119962002-02-08 Martin M. Hunt <hunt@redhat.com>
11997
11998 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11999 xaprintf -> xasprintf.
12000
4e52d31c
PM
120012002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12002
12003 * win32-nat.c: Remove use of printf and sprintf functions.
12004
39bbf761
RE
120052002-02-08 Richard Earnshaw <rearnsha@arm.com>
12006
12007 * arm-tdep.c (arm_frame_chain_valid): Make static.
12008 (arm_push_arguments): Likewise.
12009 (arm_gdbarch_init): New function.
12010 (_initialize_arm_tdep): Call it.
12011 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12012 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12013 (FRAME_CHAIN_VALID): Delete.
12014 (arm_frame_chain_valid): Delete declaration.
12015 (PUSH_ARGUMENTS): Delete.
12016 (arm_push_arguments): Delete declaration.
12017 (CALL_DUMMY_P): Delete.
12018
9c9532c9
CV
120192002-02-08 Andrew Cagney <ac131313@redhat.com>
12020 Corinna Vinschen <vinschen@redhat.com>
12021
12022 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12023 on builtin float types.
12024
4e8f7a8b
DJ
120252002-02-08 Daniel Jacobowitz <drow@mvista.com>
12026
12027 * utils.c: Include <curses.h> before "bfd.h".
12028 * tui/tui-hooks.c: Likewise.
12029 * tui/tui.c: Likewise.
12030 * tui/tuiCommand.c: Likewise.
12031 * tui/tuiData.c: Likewise.
12032 * tui/tuiDataWin.c: Likewise.
12033 * tui/tuiDisassem.c: Likewise.
12034 * tui/tuiGeneralWin.c: Likewise.
12035 * tui/tuiIO.c: Likewise.
12036 * tui/tuiLayout.c: Likewise.
12037 * tui/tuiRegs.c: Likewise.
12038 * tui/tuiSource.c: Likewise.
12039 * tui/tuiSourceWin.c: Likewise.
12040 * tui/tuiStack.c: Likewise.
12041 * tui/tuiWin.c: Likewise.
12042
cd4bffcf
EZ
120432002-02-07 Elena Zannoni <ezannoni@redhat.com>
12044
12045 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12046 to include space for pseudoregs as well. Update loops accordingly.
12047 (sh_fp_frame_init_saved_regs): Ditto.
12048 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12049
26806ce2
AC
120502002-02-07 Andrew Cagney <ac131313@redhat.com>
12051
12052 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12053 Add Richard Earnshaw to Arm maintainers.
12054
97fdab62
AC
120552002-02-07 Andrew Cagney <ac131313@redhat.com>
12056
a6b98203
AC
12057 * defs.h (warning_begin): Delete declaration.
12058
97fdab62
AC
12059 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12060 Delete macro.
12061
78b29b40
MS
120622002-02-07 Michael Snyder <msnyder@redhat.com>
12063
aaa38bb5 12064 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
12065 Logic bug, remove misplaced else.
12066
d8849953
KD
120672002-02-07 Klee Dienes <klee@apple.com>
12068
12069 * fork-inferior.c (fork_inferior): Add '!' to the list of
12070 characters that need to be quoted when building a string for the
12071 shell. Quote '!' specifically with a backslash, since CSH chokes
12072 when trying to evaluate "str!str".
aaa38bb5 12073
095778a0
NC
120742002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12075
12076 * rdi-share/host.h: Only provide a typedef for bool if it is not
12077 defined.
12078
1900040c
MS
120792002-02-04 Michael Snyder <msnyder@redhat.com>
12080
12081 * breakpoint.h (enum bptype): Add new overlay event bp type.
12082 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 12083
1900040c
MS
12084 * breakpoint.c (create_internal_breakpoint): New function.
12085 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12086 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12087 (create_thread_event_breakpoint): Ditto.
12088 (create_solib_event_breakpoint): Ditto.
12089 (create_overlay_event_breakpoint): New function.
12090 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12091 (update_breakpoints_after_exec): Delete and re-initialize
12092 overlay event breakpoints after an exec. Add FIXME comment
12093 about longjmp breakpoint.
12094 (print_it_typical): Ignore overlay event breakpoints.
12095 (print_one_breakpoint): Ditto.
12096 (mention): Ditto.
12097 (bpstat_what): Do not stop for overlay event breakpoints.
12098 (delete_breakpoint): Don't delete overlay event breakpoints.
12099 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12100 (breakpoint_re_set): Re-create overlay event breakpoint.
12101
12102 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12103 (overlay_manual_command): Disable overlay breakpoints.
12104 (overlay_off_command): Disable overlay breakpoints.
12105
082fc60d
RE
121062002-02-06 Richard Earnshaw <rearnsha@arm.com>
12107
12108 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12109 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12110 to here from config/tm-arm.h.
12111 (coff_sym_is_thumb): Make static.
12112 (arm_elf_make_msymbol_special): New function.
12113 (arm_coff_make_msymbol_special): New function.
12114 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12115 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12116 (coff_sym_is_thumb): Delete declaration.
12117 (arm_elf_make_msymbol_special): Declare.
12118 (arm_coff_make_msymbol_special): Declare.
12119 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12120 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12121
039c5766
RE
121222002-02-06 Richard Earnshaw <rearnsha@arm.com>
12123
12124 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12125
121262002-02-06 Richard Earnshaw <rearnsha@arm.com>
12127
12128 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12129 * gdbarch.c gdbarch.h: Regenerate.
12130 * arch-utils.c (default_print_float_info): New function.
12131 * arch-utils.h (default_print_float_info): Prototype it.
12132 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12133 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12134 (PRINT_FLOAT_INFO): Document it.
12135
12136 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12137 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12138 (PRINT_FLOAT_INFO): Define.
12139
58fa08f0
PM
121402002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12141
aaa38bb5 12142 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
12143 Add typecast to sprintf argument to suppress a warning.
12144
7393af7c
PM
121452002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12146
58fa08f0 12147 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
12148 to allow easier handling of pass state.
12149 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12150 that gives exception name and address.
12151 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 12152 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 12153 exceptions added.
aaa38bb5
AJ
12154 (child_continue): Correctly report continue_status.
12155 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 12156 TARGET_SIGNAL_0 (new default value).
aaa38bb5 12157 (child_resume): consider sig argument passed to decide if
7393af7c
PM
12158 the exception should be passed to debuggee or not.
12159
6af4589c
MS
121602002-02-05 Michael Snyder <msnyder@redhat.com>
12161
12162 * regcache.c (fetch_register): Call target_fetch_register
12163 only if we don't call FETCH_PSEUDO_REGISTER.
12164 (store_register): Call target_store_register only if we
12165 don't call STORE_PSEUDO_REGISTER.
12166
a2cf933a
EZ
121672002-02-05 Elena Zannoni <ezannoni@redhat.com>
12168
12169 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12170 ELF_MAKE_MSYMBOL_SPECIAL.
12171 * gdbarch.c, gdbarch.h: Regenerate.
12172 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 12173 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
12174 * elfread.c (elf_symtab_read): Compile use of
12175 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12176 multiarched.
12177 * coffread.c (coff_symtab_read): Ditto, for
12178 COFF_MAKE_MSYMBOL_SPECIAL.
12179
6bb7be43
JB
121802002-02-05 Jim Blandy <jimb@redhat.com>
12181
12182 * solib-svr4.c (svr4_truncate_ptr): New function.
12183 (svr4_relocate_section_addresses): Do the address arithmetic with
12184 the appropriate truncation for target addresses, even when
12185 CORE_ADDR is larger than a target address.
12186
e18651ec
DJ
121872002-02-05 Daniel Jacobowitz <drow@mvista.com>
12188
12189 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12190 to (int *).
12191
6b2725be
DJ
121922002-02-05 Daniel Jacobowitz <drow@mvista.com>
12193
12194 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12195 code.
12196
fca9e603
DJ
121972002-02-05 Daniel Jacobowitz <drow@mvista.com>
12198
12199 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12200
6c537a52
DJ
122012002-02-05 Daniel Jacobowitz <drow@mvista.com>
12202
12203 * gdbserver/linux-low.c: Remove unused include files.
12204
d844cde6
DJ
122052002-02-05 Daniel Jacobowitz <drow@mvista.com>
12206
12207 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12208 (read_inferior_memory): Use it.
12209 (write_inferior_memory): Likewise.
12210
d07c63e7
DJ
122112002-02-05 Daniel Jacobowitz <drow@mvista.com>
12212
12213 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12214 grubbing through sys_errlist.
12215
da6d8c04
DJ
122162002-02-05 Daniel Jacobowitz <drow@mvista.com>
12217
12218 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12219
5b421780
PM
122202002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12221 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12222
9f60d481
AC
122232002-02-04 Andrew Cagney <ac131313@redhat.com>
12224
12225 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12226 (do_sfunc, set_cmd_sfunc): New functions.
12227
12228 * command.h (struct cmd_list_element): Add field func.
12229 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12230 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12231 * cli/cli-decode.h: Ditto.
12232
12233 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12234 (help_all, help_cmd_list): Ditto.
12235 (find_cmd, complete_on_cmdlist): Ditto.
12236 * top.c (execute_command): Ditto.
12237
12238 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12239 function.sfunc.
12240
12241 * infcmd.c (notice_args_read): Fix function signature.
12242
12243 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12244 * cli/cli-decode.c (add_set_cmd): Ditto.
12245 * utils.c (initialize_utils): Ditto.
12246 * maint.c (_initialize_maint_cmds): Ditto.
12247 * infrun.c (_initialize_infrun): Ditto.
12248 * demangle.c (_initialize_demangler): Ditto.
12249 * remote.c (add_packet_config_cmd): Ditto.
12250 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12251 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12252 * proc-api.c (_initialize_proc_api): Ditto.
12253 * kod.c (_initialize_kod): Ditto.
12254 * valprint.c (_initialize_valprint): Ditto.
12255 * top.c (init_main): Ditto.
12256 * infcmd.c (_initialize_infcmd): Ditto.
12257 * corefile.c (_initialize_core): Ditto.
12258 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12259 * arch-utils.c (initialize_current_architecture): Ditto.
12260 (_initialize_gdbarch_utils): Ditto.
12261 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12262
12263 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12264 * wince.c (_initialize_inftarg): Ditto.
12265 * symfile.c (_initialize_symfile): Ditto.
12266 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12267 * language.c (_initialize_language): Ditto.
12268 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12269
f9ba0717
MS
122702002-02-04 Michael Snyder <msnyder@redhat.com>
12271
12272 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12273
0c74b2a7
DJ
122742002-02-04 Daniel Jacobowitz <drow@mvista.com>
12275
12276 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12277 Add rules for building the register data files.
12278
c638789f
DJ
122792002-02-04 Daniel Jacobowitz <drow@mvista.com>
12280
12281 * regformats/regdat.sh: Add braces to the definition of
12282 expedite_regs_${arch}.
12283
db253027
DJ
122842002-02-04 Daniel Jacobowitz <drow@mvista.com>
12285
12286 * regformats/regdef.h (struct reg): Add comment describing the
12287 requirements for offset and size fields.
12288
206be19c
AS
122892002-02-04 Andreas Schwab <schwab@suse.de>
12290
12291 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12292 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12293
181c1381
RE
122942002-02-04 Richard Earnshaw <rearnsha@arm.com>
12295
12296 * gdbarch.sh (copyright): Update years in generated header.
12297 (SMASH_TEXT_ADDRESS): Add rule.
db253027 12298 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
12299 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12300 * dbxread.c: Likewise.
12301 * dwarfread.c: Likewise.
12302 * elfread.c: Likewise.
12303 * somread.c: Likewise.
12304
12305 * arm-tdep.c (arm_smash_text_address): New function.
12306 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12307
fa4ba8da
PM
123082002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12309
12310 Add support for hardware watchpoints on win32 native.
aaa38bb5 12311 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 12312 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 12313 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
12314 of debug registers.
12315 (debug_registers_changed): New variable. Reflects when debug registers
12316 are changed and need to be written to inferior.
aaa38bb5 12317 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
12318 was set, used when new threads are created.
12319 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12320 i386-nat code.
12321 (thread_rec): Set dr array if id is the thread of current_event .
12322 (child_continue, child_resume): Change the debug registers for all
12323 threads if debug_registers_changed.
12324 (child_add_thread): Change the debug registers if debug_registers_used.
12325 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12326 Link nm.h to new nm-cygwin.h file.
12327 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12328 of hardware registers.
12329
a73c86fb
AC
123302002-02-03 Andrew Cagney <ac131313@redhat.com>
12331
12332 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12333 Restore behavour broken by 2002-01-20 Andrew Cagney
12334 <ac131313@redhat.com> IEEE_FLOAT removal.
12335
acf5ed49
DJ
123362002-02-03 Daniel Jacobowitz <drow@mvista.com>
12337
12338 * c-valprint.c (c_val_print): Pass a proper valaddr to
12339 cp_print_class_method.
12340 * valops.c (search_struct_method): If there is only one method
12341 and args is NULL, return that method.
12342
493d28d5
DJ
123432002-02-03 Daniel Jacobowitz <drow@mvista.com>
12344
12345 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12346 accessing tag_name directly.
12347
7495dfdb
DJ
123482002-02-03 Daniel Jacobowitz <drow@mvista.com>
12349
12350 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12351 of accessing tag_name directly.
12352
dd6bda65
DJ
123532002-02-03 Daniel Jacobowitz <drow@mvista.com>
12354
12355 PR gdb/280
12356 * gdbtypes.c (replace_type): New function.
12357 * gdbtypes.h (replace_type): Add prototype.
12358 * stabsread.c (read_type): Use replace_type.
12359
88fe217c
RE
123602002-02-03 Richard Earnshaw <rearnsha@arm.com>
12361
12362 * Makefile.in (memattr.o): Add missing dependencies rule.
12363
e5d66720
PS
123642002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12365
12366 * breakpoint.c (break_at_finish_command): Really export.
12367 (break_at_finish_at_depth_command): Ditto.
12368 (tbreak_at_finish_command): Ditto.
12369 * hppa-tdep.c: Include completer.h.
12370 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12371 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12372
fffee0be
AC
123732002-02-01 Andrew Cagney <ac131313@redhat.com>
12374
12375 * utils.c (do_write): New function.
12376 (error_stream): Rewrite combining the code from error_begin and
12377 verror.
12378 (verror): Rewrite using error_stream.
12379 (error_begin): Delete function.
12380
255e7dbf
AC
123812002-02-01 Andrew Cagney <ac131313@redhat.com>
12382
12383 * utils.c (error_begin): Make static.
12384 * defs.h (error_begin): Delete declaration.
12385
12386 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12387 (decode_line_1): Use cplusplus_error instead of error_begin,
12388 cplusplus_hint and return_to_top_level.
12389 * coffread.c (coff_symfile_read): Use error instead of error_begin
12390 and return_to_top_level.
12391 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12392
ddfe3c15
AC
123932002-02-01 Andrew Cagney <ac131313@redhat.com>
12394
12395 * language.h (type_error, range_error): Make string parameter
12396 constant.
12397 * language.c (warning_pre_print): Delete extern declaration.
12398 * dwarfread.c (warning_pre_print): Ditto.
12399 * language.c (type_error, range_error): Rewrite to use verror and
12400 vwarning instead of warning_begin.
12401
03ac34d5
MS
124022002-02-01 Michael Snyder <msnyder@redhat.com>
12403
261c4ca2
MS
12404 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12405 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12406
e00d1dc8
AC
124072002-02-01 Andrew Cagney <ac131313@redhat.com>
12408
12409 * command.h (NO_FUNCTION): Delete macro.
12410 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12411 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12412 * tracepoint.c (_initialize_tracepoint): Ditto.
12413 * cli/cli-decode.c (add_set_cmd): Ditto.
12414 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12415
76b79d6e
DJ
124162002-02-01 Daniel Jacobowitz <drow@mvista.com>
12417
12418 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12419 Update ``this'' pointer when calling virtual functions.
12420
799f9e91
MS
124212002-02-01 Michael Snyder <msnyder@redhat.com>
12422
c7bd442c 12423 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12424 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12425
3cf384d4
DJ
124262002-02-01 Daniel Jacobowitz <drow@mvista.com>
12427
12428 * regformats/reg-arm.dat: New file.
12429 * regformats/reg-i386.dat: New file.
12430 * regformats/reg-ia64.dat: New file.
12431 * regformats/reg-m68k.dat: New file.
12432 * regformats/reg-mips.dat: New file.
12433 * regformats/reg-ppc.dat: New file.
12434 * regformats/reg-sh.dat: New file.
12435 * regformats/regdef.h: New file.
12436 * regformats/regdat.sh: New file.
12437
0defa245
RE
124382002-02-01 Richard Earnshaw <reanrsha@arm.com>
12439
12440 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12441 (arm_frame_args_address, arm_frame_locals_address): New functions.
12442 (arm_frame_num_args): New function.
12443 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12444 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12445 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12446
405f26e6
MS
124472002-01-31 Michael Snyder <msnyder@redhat.com>
12448
502fd408
MS
12449 * breakpoint.c (break_at_finish_command): Export.
12450 (break_at_finish_at_depth_command): Export.
12451 (tbreak_at_finish_command): Export.
d6020d45 12452 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12453 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12454 "txbreak" commands, which are HPPA specific.
502fd408 12455
7d35e135
MS
12456 * printcmd.c (disassemble_command): Remove an ancient
12457 artifact of an old merge.
12458
aaa38bb5 12459 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12460 Define enum constant values for overlay mode.
12461 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12462 (overlay_is_mapped, overlay_auto_command,
12463 overlay_manual_command): Ditto.
d874f1e2 12464
aaa38bb5
AJ
12465 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12466 breakpoint_here_p, breakpoint_inserted_here_p,
12467 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
12468 describe_other_breakpoints, check_duplicates, clear_command):
12469 Coding standard fixes.
12470
8add0441 12471 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 12472 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
12473 code: check bfd SEC_READONLY flag for section.
12474
e351066e
AC
124752002-01-31 Andrew Cagney <ac131313@redhat.com>
12476
7d35e135 12477 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 12478
8a48e967
DJ
124792002-01-30 Daniel Jacobowitz <drow@mvista.com>
12480
12481 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12482 data symbols, since we search based on textlow and texthigh.
12483 (find_pc_sect_symtab): Likewise.
12484
f5a96129
AC
124852002-01-30 Andrew Cagney <ac131313@redhat.com>
12486
12487 * defs.h (vwarning): Declare.
f5a96129
AC
12488 * utils.c (vwarning): New function.
12489 (warning): Call vwarning.
12490 (warning_begin): Delete function.
12491
12492 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12493 the warning message.
12494 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12495 warning_begin.
12496
cefd4ef5
MS
124972002-01-30 Michael Snyder <msnyder@redhat.com>
12498
1a703748
MS
12499 * NEWS: Mention "set trust-readonly-sections" command.
12500 Mention generate-core-file command.
cefd4ef5 12501
3a11626d
MS
125022002-01-15 Michael Snyder <msnyder@redhat.com>
12503
12504 * target.c: New command, "set trust-readonly-sections on".
12505 (do_xfer_memory): Honor the suggestion to trust readonly sections
12506 by reading them from the object file instead of from the target.
12507 (initialize_targets): Register command "set trust-readonly-sections".
12508
d1c7e53b
AC
125092002-01-29 Andrew Cagney <ac131313@redhat.com>
12510
12511 * parse.c (target_map_name_to_register): Simplify, search regs and
12512 pseudo-regs using a single loop.
12513
e2c9a72c
AC
125142002-01-30 Andrew Cagney <ac131313@redhat.com>
12515
12516 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12517
69824b4e
MK
125182002-01-15 Rodney Brown <rbrown64@csc.com.au>
12519
12520 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12521 * config/i386/i386v42mp.mh: Add i387-nat.o .
12522 * i386v4-nat.c: Include i387-nat.h.
12523 (supply_fpregset): Use i387_supply_fsave.
12524 (fill_fpregset): Use i387_fill_fsave.
12525
6eb69eab
RE
125262002-01-30 Richard Earnshaw <rearnsha@arm.com>
12527
12528 * arm-tdep.c (arm_call_dummy_words): Define.
12529 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12530 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12531 (CALL_DUMMY_WORDS): Define.
12532 (arm_call_dummy_words): Declare.
12533 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12534 (arm_linux_call_dummy_words): Declare.
12535
9852326a
AS
125362002-01-30 Andreas Schwab <schwab@suse.de>
12537
12538 * m68klinux-nat.c: Fix last change to use regcache_collect
12539 instead of referencing registers[] directly.
12540
977a3030
AC
125412002-01-29 Andrew Cagney <ac131313@redhat.com>
12542
12543 * parse.c (target_map_name_to_register): Delete code wrapped in
12544 #ifdef REGISTER_NAME_ALIAS_HOOK.
12545
2076c72b
MS
125462002-01-28 Michael Snyder <msnyder@redhat.com>
12547
12548 * regcache.c (legacy_read_register_gen): Need to be able to
12549 read pseudo-register as well as real register.
12550 (legacy_write_register_gen): Ditto.
12551
8fcc723b
AC
125522002-01-28 Andrew Cagney <ac131313@redhat.com>
12553
12554 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12555 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12556 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12557 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12558 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12559 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12560 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12561 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12562 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12563 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12564 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12565 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12566 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12567 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12568 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12569 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12570 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12571 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12572 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12573 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12574
afe64c1a
AC
125752002-01-28 Andrew Cagney <ac131313@redhat.com>
12576
12577 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12578 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12579 (initialize_current_architecture): Update target_byte_order using
12580 information from BFD.
aaa38bb5 12581 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
12582 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12583
75bc7ddf
AC
125842002-01-28 Andrew Cagney <ac131313@redhat.com>
12585
12586 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12587 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12588
12589 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12590 #ifdef INVALID_FLOAT.
12591 * infcmd.c (do_registers_info): Ditto.
12592 * values.c (unpack_double): Ditto. Add comment.
12593
12594 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12595 already commented out.
12596
0280a90a
AS
125972002-01-26 Andreas Schwab <schwab@suse.de>
12598
12599 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12600 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12601 registers and add support for PTRACE_GETREGS.
12602
7072a954
AC
126032002-01-24 Andrew Cagney <ac131313@redhat.com>
12604
12605 GDB 5.1.1 released from 5.1 branch.
12606 * NEWS: Add 5.1.1 news.
12607 * README: Sync with 5.1 branch.
12608
86f902e0
FF
126092002-01-23 Fred Fish <fnf@redhat.com>
12610
12611 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12612 stabstring on initial malloc. Reallocing will copy it for us,
12613 if necessary.
12614
8af51c36
EZ
126152002-01-23 Elena Zannoni <ezannoni@redhat.com>
12616
aaa38bb5 12617 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
12618 (HFILES_NO_SRCDIR): Remove hpread.h.
12619 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12620 (hpread.o): Update dependencies.
12621 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12622
12623 * hp-psymtab-read.c: Remove file.
12624 * hp-symtab-read.c: Remove file.
12625 * hpread.h: Remove file.
12626
12627 * hpread.c: Merge all contents of hp-psymtab-read.c,
12628 hp-symtab-read.c and hpread.h into this file, as it was prior to
12629 January 1999.
12630
12631 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 12632 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
12633 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12634 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12635
dc5cfeb6
EZ
126362002-01-23 Elena Zannoni <ezannoni@redhat.com>
12637
12638 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12639 fill_gregset): Call gdbarch_tdep() just once, assign result to
12640 variable and use that, instead of calling the function several
12641 times.
12642
ea87b71b
AO
126432002-01-24 Alexandre Oliva <aoliva@redhat.com>
12644
12645 * configure.host: Accept sparcv9 as alias for sparc64.
12646 * configure.tgt: Likewise.
12647
13fc0c2f
KB
126482002-01-22 Kevin Buettner <kevinb@redhat.com>
12649
12650 * solib-aix5.c (build_so_list_from_mapfile)
12651 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12652 arguments is not reversed.
12653 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12654 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 12655
7bd872fe
EZ
126562002-01-22 Elena Zannoni <ezannoni@redhat.com>
12657
12658 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12659 modified version of obsolete sh_fetch_pseudo_register.
12660 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12661 (sh4_register_read): New function.
12662 (sh_pseudo_register_write): New function. Renamed and modified
12663 version of obsolete sh_store_pseudo_register.
12664 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12665 (sh4_register_write): New function.
12666 (sh_gdbarch_init): Remove setting of gdbarch function
12667 fetch_pseudo_register and store_pseudo_register. Remove setting of
12668 register_convert_to_raw, register_convert_to_virtual,
12669 register_convertible.
12670 (sh_sh4_register_convertible): Delete. No longer needed. All is
12671 taken care by architecture specific functions
12672 register_read/register_write.
12673 (sh_sh4_register_convert_to_virtual): Make static.
12674 (sh_sh4_register_convert_to_raw): Ditto.
12675
069e84fd
AC
126762002-01-22 Andrew Cagney <ac131313@redhat.com>
12677
12678 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12679 (floatformat_is_nan, floatformat_mantissa): Ditto.
12680
12681 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12682 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12683 builtin_type_ieee_double_little,
12684 builtin_type_ieee_double_littlebyte_bigword,
12685 builtin_type_m68881_ext, builtin_type_i960_ext,
12686 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12687 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12688 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12689 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12690
211a4f69
CV
126912002-01-22 Corinna Vinschen <vinschen@redhat.com>
12692
12693 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12694 parameter. Set frameless flag if it exists and depended of
12695 whether the scanned function is frameless or not.
12696 (xstormy16_skip_prologue): If function is frameless, return
12697 result of xstormy16_scan_prologue().
12698 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12699 call.
12700
f81353e4
EZ
127012002-01-21 Elena Zannoni <ezannoni@redhat.com>
12702
12703 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12704 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12705 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12706 sh_sh4_register_byte, sh_sh4_register_raw_size,
12707 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12708 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12709 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12710 sh_store_pseudo_register, sh_do_pseudo_register): Call
12711 gdbarch_tdep() just once, assign result to variable and use that,
12712 instead of calling the function several times.
12713
63c73a17
MK
127142002-01-20 Mark Kettenis <kettenis@gnu.org>
12715
12716 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12717 macros instead of LAST_FPU_CTRL_REGNUM.
12718 (store_register): Likewise.
12719
39ad761d
JB
127202002-01-21 Jim Blandy <jimb@redhat.com>
12721
12722 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12723 is up-to-date before running the program, not just when a program
12724 exits.
12725
3d74b771
FF
127262002-01-21 Fred Fish <fnf@redhat.com>
12727
12728 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12729 when we have found all instructions we are looking for.
12730
966fbf70
RE
127312002-01-21 Richard Earnshaw <rearnsha@arm.com>
12732
12733 * arm-tdep.c (arm_register_name): New function.
12734 (arm_registers_names): Make static.
12735 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12736 (arm_register_name): Declare.
12737 (REGISTER_NAME): Use it.
12738
c3b4394c
RE
127392002-01-21 Richard Earnshaw <rearnsha@arm.com>
12740 Kevin Buettner <kevinb@redhat.com>
12741
12742 Convert arm targets to new FRAME interface.
12743 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12744 (arm_frame_find_save_regs): Delete.
12745 (arm_frame_init_saved_regs): New.
12746 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12747 Allocate extra_info as required. Convert all uses of fsr.regs
12748 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12749 to use extra_info.
12750 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12751 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12752 (check_prologue_cache, save_prologue_cache): Likewise.
12753 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12754 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12755 (FRAME_FIND_SAVED_REGS): Delete.
12756 (arm_frame_find_saved_regs): Delete prototype.
12757 (arm_frame_init_saved_regs): New prototype.
12758 (FRAME_INIT_SAVED_REGS): Define.
12759
61d99182
AC
127602002-01-20 Andrew Cagney <ac131313@redhat.com>
12761
12762 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12763
6aaea291
AC
127642002-01-20 Andrew Cagney <ac131313@redhat.com>
12765
12766 From Jeff Law <law@redhat.com>:
12767 * infttrace.c: Include <sys/pstat.h>.
12768 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12769 exec file if the ttrace equivalent fails.
12770
15f698d2
AC
127712002-01-20 Andrew Cagney <ac131313@redhat.com>
12772
12773 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12774 (closeLogFile): Ditto.
12775
f86ddd7c
MC
127762002-01-20 Michael Chastain <mec@shout.net>
12777
12778 * top.c (print_gdb_version): Bump copyright year to 2002.
12779
904507ce
AC
127802002-01-20 Andrew Cagney <ac131313@redhat.com>
12781
12782 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12783 Zannoni and Eli Zaretskii.
12784
d7f0b9ce
DJ
127852002-01-20 Daniel Jacobowitz <drow@mvista.com>
12786
12787 * buildsym.c: Update copyright years.
12788 * c-typeprint.c: Likewise.
12789 * dwarf2read.c: Likewise.
12790 * f-typeprint.c: Likewise.
12791 * gdbtypes.c: Likewise.
12792 * gdbtypes.h: Likewise.
12793 * hp-symtab-read.c: Likewise.
12794 * hpread.c: Likewise.
12795 * mdebugread.c: Likewise.
12796 * p-typeprint.c: Likewise.
12797
3fd3d7d2
AC
127982002-01-20 Andrew Cagney <ac131313@redhat.com>
12799
12800 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12801 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12802 byte-order selectable.
12803 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12804 * arch-utils.c: Ditto.
12805 (set_endian): Ditto.
12806 (set_endian_from_file): Ditto.
12807 * gdbserver/low-sim.c (create_inferior): Ditto.
12808 * gdbarch.sh: Ditto.
12809 * gdbarch.h: Re-generate.
aaa38bb5
AJ
12810 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12811 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12812 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12813 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12814 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12815 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12816 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
12817 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12818 macro definition.
12819 * config/mips/tm-wince.h: Remove #undef of macro
12820 TARGET_BYTE_ORDER_SELECTABLE.
12821 * config/sh/tm-wince.h: Ditto.
12822
b02dede2
DJ
128232002-01-20 Daniel Jacobowitz <drow@mvista.com>
12824
12825 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12826 member function fields. Add accessor macro
12827 TYPE_FN_FIELD_ARTIFICIAL.
12828 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12829 * c-typeprint.c (c_type_print_base): Skip artificial member
12830 functions.
12831
c3643761
DJ
128322002-01-20 Daniel Jacobowitz <drow@mvista.com>
12833
12834 * f-typeprint.c: Delete unused function f_type_print_args.
12835 * p-typeprint.c: Delete unused function pascal_type_print_args.
12836
8176bb6d
DJ
128372002-01-20 Daniel Jacobowitz <drow@mvista.com>
12838
12839 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12840 comment. Add ``artificial'' to ``union field_location''.
12841
12842 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12843
12844 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12845 * mdebugread.c (parse_symbol): Likewise.
12846 * stabsread.c (define_symbol): Likewise.
12847 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12848 initializing TYPE_FIELD_BITPOS to n (obsolete).
12849 (hpread_doc_function_type): Likewise.
12850 * hpread.c (hpread_function_type): Likewise.
12851
7fd60527
AC
128522002-01-20 Andrew Cagney <ac131313@redhat.com>
12853
12854 * configure.in (host_makefile_frag): Only require a host makefile
12855 fragment when a native build.
12856 * configure: Re-generate.
12857
c2f05ac9
AC
128582002-01-20 Andrew Cagney <ac131313@redhat.com>
12859
12860 * doublest.h (floatformat_from_type): Declare.
12861 * doublest.c (floatformat_from_type): New function.
12862 (convert_typed_floating): Use.
12863
12864 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12865 call to function floatformat_from_type.
12866
12867 * gdbarch.sh (IEEE_FLOAT): Delete.
12868 * gdbarch.h, gdbarch.c: Re-generate.
12869 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12870 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12871 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12872 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12873 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12874 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12875 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12876 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12877 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12878 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12879 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
12880 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12881
12882 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12883 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12884 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12885 * sh-tdep.c (sh_gdbarch_init): Ditto.
12886 * mips-tdep.c (mips_gdbarch_init): Ditto.
12887 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12888 * cris-tdep.c (cris_gdbarch_init): Ditto.
12889
abf22e64
AJ
128902002-01-20 Jiri Smid <smid@suse.cz>
12891
12892 * configure.host, configure.tgt: Support x86-64.
12893 * NEWS: Note new target x86-64.
12894
b7c4cbf8
AJ
12895 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12896 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12897 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12898 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12899 x86-64-linux-nat.o): Fix dependencies.
12900
82600034
AC
129012002-01-19 Andrew Cagney <ac131313@redhat.com>
12902
12903 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12904 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12905 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12906 * config/sparc/xm-sun4os4.h: Delete file.
12907 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 12908
bbe5c628
AC
129092002-01-19 Andrew Cagney <ac131313@redhat.com>
12910
12911 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12912 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12913 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12914 * config/i386/i386lynx.mh (XM_FILE): Delete.
12915 * config/rs6000/xm-rs6000ly.h: Delete file.
12916 * config/sparc/xm-sparclynx.h: Delete file.
12917 * config/m68k/xm-m68klynx.h: Delete file.
12918 * config/i386/xm-i386lynx.h: Delete file.
12919 * config/xm-lynx.h: Delete file.
12920 * config/djgpp/fnchange.lst: Update.
12921
f8453e34
JT
129222002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12923
12924 * alpha-tdep.c (alpha_register_byte): New function.
12925 (alpha_register_raw_size): Ditto.
12926 (alpha_register_virtual_size): Ditto.
12927 (alpha_skip_prologue_internal): Renamed from
12928 alpha_skip_prologue.
12929 (alpha_skip_prologue): New version that calls
12930 alpha_skip_prologue_internal.
12931 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12932 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12933 second argument from alpha_skip_prologue.
12934 (REGISTER_BYTE): Use alpha_register_byte.
12935 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12936 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12937 (FRAMELESS_FUNCTION_INVOCATION): Use
12938 generic_frameless_function_invocation_not.
12939 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12940 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12941
52d9e613
AC
129422002-01-19 Andrew Cagney <ac131313@redhat.com>
12943
12944 * config/mips/xm-news-mips.h: Delete file.
12945 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12946
12947 * config/m88k/xm-m88k.h: Delete file.
12948 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12949 * config/m88k/xm-delta88v4.h: Ditto.
12950 * config/m88k/xm-delta88.h: Ditto.
12951
12952 * config/alpha/xm-fbsd.h: Delete file.
12953 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12954
12955 * config/sparc/xm-sparc.h: Delete file.
12956 * Makefile.in (xm-sun4os4.h): Delete dependency.
12957 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12958 * config/sparc/xm-sun4os4.h: Ditto.
12959 * config/sparc/xm-linux.h: Ditto.
12960
12961 * config/i386/xm-windows.h: Delete file.
12962
2d1b2124
AC
129632002-01-19 Andrew Cagney <ac131313@redhat.com>
12964
12965 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12966 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12967
ee1f65f0
JT
129682002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12969
12970 * alpha-tdep.c (alpha_call_dummy_words): New.
12971 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12972 (CALL_DUMMY_P): Define.
12973 (CALL_DUMMY_WORDS): Define.
12974 (SIZEOF_CALL_DUMMY_WORDS): Define.
12975
98081e55
PB
129762002-01-19 Per Bothner <per@bothner.com>
12977
12978 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12979 isn't NULL, which can happen with some gcj-3.x-produced code.
12980
0d056799
JT
129812002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12982
12983 * alpha-tdep.c (alpha_register_virtual_type): New function.
12984 (alpha_init_frame_pc_first): Ditto.
12985 (alpha_fix_call_dummy): Ditto.
12986 (alpha_store_struct_return): Ditto.
12987 (alpha_extract_struct_value_address): Ditto.
12988 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12989 alpha_register_virtual_type.
12990 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12991 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12992 alpha_extract_struct_value_address.
12993 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12994 (INIT_FRAME_PC): Use init_frame_pc_noop.
12995 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12996
4604bcad
MK
129972002-01-19 Mark Kettenis <kettenis@gnu.org>
12998
12999 * i386gnu-nat.c: Include "i386-tdep.h".
13000 (fetch_fpregs): Simplify code dealing with uninitialized floating
13001 point states such that it doesn't require FP7_REGNUM.
13002
140f9984
JT
130032002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13004
abf22e64
AJ
13005 * alpha-tdep.c (frame_extra_info): New.
13006 (alpha_find_saved_regs): Make static. Use
140f9984
JT
13007 frame->extra_info.
13008 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
13009 (alpha_frame_saved_pc): Use frame->extra_info.
13010 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13011 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
13012 (init_extra_frame_info): Rename to...
13013 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 13014 (alpha_print_extra_frame_info): New function.
140f9984
JT
13015 (alpha_frame_locals_address): Ditto.
13016 (alpha_frame_args_address): Ditto.
abf22e64 13017 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
13018 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13019 alpha_frame_args_address.
abf22e64 13020 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 13021 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
13022 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13023 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
13024 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13025 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13026
d734c450
JT
130272002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13028
13029 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13030 (alpha_cannot_fetch_register): Ditto.
13031 (alpha_cannot_store_register): Ditto.
13032 (alpha_register_convertible): Ditto.
13033 (alpha_use_struct_convention): Ditto.
13034 * config/alpha/tm-alpha.h: Update copyright years.
13035 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13036 (INNER_THAN): Use core_addr_lessthan.
13037 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13038 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13039 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13040 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13041 (FRAME_CHAIN): Remove unnecessary cast.
13042
b4ceaee6
AC
130432002-01-18 Andrew Cagney <ac131313@redhat.com>
13044
13045 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13046 obsolete.
13047
0a65a603
AC
130482002-01-18 Andrew Cagney <ac131313@redhat.com>
13049
13050 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13051 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13052 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13053 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13054 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13055 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13056 * x86-64-linux-nat.c: Ditto.
13057
636a6dfc
JT
130582002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13059
abf22e64 13060 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
13061 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13062 (REGISTER_NAME): Define.
13063
acceddb6
JT
130642002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13065
13066 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13067
ec32e4be
JT
130682002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13069
13070 * alpha-tdep.c: Update copyright years.
13071 (alpha_next_pc): New function.
13072 (alpha_software_single_step): Ditto.
13073 * config/alpha/tm-alpha.h: Add prototype for
13074 alpha_software_single_step.
13075
e771a871
JT
130762002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13077
13078 * alphabsd-nat.c: Update copyright years.
13079 (fill_gregset): Use regcache_collect.
13080 (fill_fpregset): Likewise.
13081 (fetch_inferior_registers): Only fetch integer registers
13082 if requested to do so.
13083 (store_inferior_registers): Only store integer registers
13084 if requested to do so.
13085
7708fa01
AC
130862002-01-17 Andrew Cagney <ac131313@redhat.com>
13087
13088 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13089 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13090 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13091 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13092 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13093 * config/arm/linux.mh (XDEPFILES): Delete.
13094 * config/arm/nbsd.mh (XDEPFILES): Delete.
13095 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13096 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13097 * config/i386/i386m3.mh (XDEPFILES): Delete.
13098 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13099 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13100 * config/i386/fbsd.mh (XDEPFILES): Delete.
13101 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13102 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13103 * config/i386/i386v4.mh (XDEPFILES): Delete.
13104 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13105 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13106 * config/i386/i386aix.mh (XDEPFILES): Delete.
13107 * config/i386/go32.mh (XDEPFILES): Delete.
13108 * config/i386/cygwin.mh (XDEPFILES): Delete.
13109 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13110 * config/i386/i386mach.mh (XDEPFILES): Delete.
13111 * config/i386/i386v32.mh (XDEPFILES): Delete.
13112 * config/i386/linux.mh (XDEPFILES): Delete.
13113 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13114 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13115 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13116 * config/i386/i386sco.mh (XDEPFILES): Delete.
13117 * config/i386/i386v.mh (XDEPFILES): Delete.
13118 * config/i386/nbsd.mh (XDEPFILES): Delete.
13119 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13120 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13121 * config/i386/symmetry.mh (XDEPFILES): Delete.
13122 * config/i386/obsd.mh (XDEPFILES): Delete.
13123 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13124 * config/ia64/linux.mh (XDEPFILES): Delete.
13125 * config/ia64/aix.mh (XDEPFILES): Delete.
13126 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13127 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13128 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13129 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13130 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13131 * config/m68k/linux.mh (XDEPFILES): Delete.
13132 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13133 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13134 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13135 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13136 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13137 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13138 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13139 * config/m88k/delta88.mh (XDEPFILES): Delete.
13140 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13141 * config/m88k/m88k.mh (XDEPFILES): Delete.
13142 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13143 * config/mips/linux.mh (XDEPFILES): Delete.
13144 * config/mips/irix6.mh (XDEPFILES): Delete.
13145 * config/mips/irix5.mh (XDEPFILES): Delete.
13146 * config/mips/irix4.mh (XDEPFILES): Delete.
13147 * config/mips/irix3.mh (XDEPFILES): Delete.
13148 * config/mips/decstation.mh (XDEPFILES): Delete.
13149 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13150 (NATDEPFILES): Move core-aout.o to here.
13151 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13152 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13153 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13154 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13155 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13156 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13157 * config/pa/hpux11.mh (XDEPFILES): Delete.
13158 * config/powerpc/aix.mh (XDEPFILES): Delete.
13159 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13160 * config/powerpc/linux.mh (XDEPFILES): Delete.
13161 * config/romp/rtbsd.mh: Rename XDEPFILES.
13162 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13163 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13164 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13165 * config/s390/s390.mh (XDEPFILES): Delete.
13166 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13167 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13168 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13169 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13170 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13171 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13172 * config/sparc/linux.mh (XDEPFILES): Delete.
13173 * config/vax/vaxult.mh (XDEPFILES): Delete.
13174 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13175 * Makefile.in (DEPFILES): Remove XDEPFILES.
13176
375fc983
AC
131772002-01-17 Andrew Cagney <ac131313@redhat.com>
13178
13179 * utils.c (internal_verror): Fix comments, default is yes not no.
13180 Update queries to match. Default to quit and dump core.
13181
8926118c
AC
131822002-01-17 Andrew Cagney <ac131313@redhat.com>
13183
13184 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13185 copyright.
13186 * defs.h, event-top.c, gdbcmd.h: Ditto.
13187 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13188 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13189 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13190 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13191 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13192 * mi/mi-main.c:Ditto.
13193
13194 * stack.c, symfile.c: Update copyright.
13195
45b7b345
DJ
131962002-01-17 Daniel Jacobowitz <drow@mvista.com>
13197
db728ff7
DJ
13198 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13199 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13200 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13201 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 13202
db728ff7
DJ
132032002-01-17 Daniel Jacobowitz <drow@mvista.com>
13204
13205 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13206 * gdbserver/low-lynx.c (myattach): Likewise.
13207 * gdbserver/low-nbsd.c (myattach): Likewise.
13208 * gdbserver/low-sim.c (myattach): Likewise.
13209 * gdbserver/low-sparc.c (myattach): Likewise.
13210 * gdbserver/low-sun3.c (myattach): Likewise.
13211
13212 * gdbserver/low-linux.c (myattach): New function.
45b7b345 13213
db728ff7 13214 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
13215 (main): Handle "--attach".
13216
8de3c354
AC
132172002-01-16 Andrew Cagney <ac131313@redhat.com>
13218
13219 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13220 maintainer.
13221
b0129042
DJ
132222002-01-15 Daniel Jacobowitz <drow@mvista.com>
13223
13224 * c-typeprint.c (is_type_conversion_operator): Add additional
13225 check for non-conversion operators.
13226
ba8679fb 132272002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
13228
13229 * linux-proc.c: Add "info proc" command, a la procfs.c.
13230 (read_mapping): New function, abstract and re-use code.
13231 (linux_find_memory_regions): Use new func read_mapping.
13232 (linux_info_proc_cmd): New function, implement "info proc".
13233 (_initialize_linux_proc): Add new command "info proc".
13234
e4f9b4d5
MS
132352002-01-15 Michael Snyder <msnyder@redhat.com>
13236
13237 * symfile.c (generic_load): Use bfd_map_over_sections method
13238 instead of manipulating bfd structure members directly.
13239 (add_section_size_callback): New function, bfd sections callback
13240 used by generic_load.
13241 (load_sections_callback): New function, bfd sections callback
13242 used by generic_load.
13243
08cf96df
EZ
132442002-01-15 Elena Zannoni <ezannoni@redhat.com>
13245
abf22e64 13246 [Based on work by Jim Blandy]
08cf96df
EZ
13247 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13248 (builtin_type_vec128): Export.
13249 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13250 types.
13251 (builtin_type_vec128): New builtin type for 128 bit vector
13252 registers.
13253 (build_gdbtypes): Initialize builtin_type_v16qi and
13254 builtin_type_v8hi. Create the vec128 register builtin type
13255 structure.
13256 (build_builtin_type_vec128): New function.
abf22e64 13257 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13258 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13259 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13260 AltiVec register to new builtin type.
13261
d7242108
DJ
132622001-01-15 Daniel Jacobowitz <drow@mvista.com>
13263
13264 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13265 to make_cv_type.
13266
4ee3352d
AC
132672002-01-14 Andrew Cagney <ac131313@redhat.com>
13268
13269 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13270 CLEAN_UP_REGISTER_VALUE.
13271 * regcache.c (supply_register): Update only call.
13272
f015b2e7
AC
132732002-01-14 Andrew Cagney <ac131313@redhat.com>
13274
13275 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13276 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13277 a29k-*-vxworks* targets as obsolete.
13278
356ae49d
MS
132792002-01-14 Michael Snyder <msnyder@redhat.com>
13280
13281 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13282 until we can resolve portability issues.
13283 * gregset.h: Remove references to fpxregs.
13284 * gcore.c (gcore_command): Initialize note_sec to NULL.
13285
ade8f45e
AC
132862002-01-13 Andrew Cagney <ac131313@redhat.com>
13287
13288 * signals.c (target_signal_to_name): Rewrite. Only use
13289 signals[].name when in bounds and non-NULL.
abf22e64 13290
89c49e7a
AC
132912002-01-13 Andrew Cagney <ac131313@redhat.com>
13292
13293 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13294 * signals.c (target_signal_to_name): Verify that SIG is within the
13295 bounds of the signals array.
13296
4daa9f9f
AC
132972002-01-13 Andrew Cagney <ac131313@redhat.com>
13298
13299 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13300
ba4bbdcb
KS
133012002-01-13 Keith Seitz <keiths@redhat.com>
13302
13303 * stack.c (print_frame_info_base): Print the frame's pc
13304 only if when print_frame_info_listing_hook is not defined.
13305
575bbeb6
KS
133062002-01-13 Keith Seitz <keiths@redhat.com>
13307
13308 * varobj.c (varobj_set_value): Make sure that there were no
13309 errors evaluating the object before attempting to set its
13310 value.
13311 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13312 so this offset adjustment is no longer necessary.
13313 (create_child): Don't set the error flag if the child is
13314 a CPLUS_FAKE_CHILD.
13315 (value_of_child): If value_fetch_lazy fails, return NULL
13316 so that callers will be notified that an error occurred.
13317 (c_value_of_variable): Delay check of variable's validity
13318 until later. We actually want all structs and unions to have
13319 the value "{...}".
13320 Do not return "???" for variables which could not be evaluated.
13321 This error condition must be returned to the caller so that it
13322 can get the error condition from gdb.
13323 (cplus_name_of_child): Adjust index for vptr before figuring
13324 out the name of the child.
13325 (cplus_value_of_child): If a child's (real) parent is not valid,
13326 don't even bother trying to give a value for it. Just return
13327 an error. Change all instances in this function.
13328 (cplus_type_of_child): If our parent is one of the "fake"
13329 parents, we need to get at the type of the real parent, and
13330 derive the child's true type using this information.
13331
b76898ab
AC
133322002-01-13 Andrew Cagney <ac131313@redhat.com>
13333
13334 From 2002-01-09 John Marshall <johnm@falch.net>:
13335 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13336 sources.redhat.com, and tweak some related URLs which had
13337 suffered from linkrot.
13338
b6649e88
AC
133392002-01-13 Andrew Cagney <ac131313@redhat.com>
13340
13341 From Jeff law:
13342 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13343 structures passed in registers.
13344
82cc5033
EZ
133452002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13346
13347 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13348 white space which prevented compilation. Reported by DSK
13349 <dsk@student.unsw.edu.au>.
13350
ba5f2f8a
MS
133512002-01-11 Michael Snyder <msnyder@redhat.com>
13352
fbd35540
MS
13353 * symfile.c (build_section_addr_info_from_section_tab):
13354 Use bfd access method instead of manipulating bfd directly.
13355 (syms_from_objfile): Ditto.
13356 (simple_overlay_update_1): Ditto.
13357 (simple_overlay_update): Ditto.
13358 (generic_load): Ditto.
13359 (overlay_unmapped_address): FIXME comment, bfd access methods.
13360 (sections_overlap): FIXME comment, bfd access methods.
13361 (pc_in_mapped_range): FIXME comment, bfd access methods.
13362 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13363 (section_is_mapped): FIXME comment, bfd access methods.
13364 (section_is_overlay): FIXME comment, bfd access methods.
13365
ba5f2f8a
MS
13366 * symfile.c (generic_load): Whitespace and long line cleanups.
13367 Remove duplicate variable, change several local variables to
13368 more appropriate data types.
13369 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13370
17df2af6
AC
133712002-01-12 Andrew Cagney <ac131313@redhat.com>
13372
13373 From Peter Schauer:
13374 * language.c (longest_local_hex_string_custom): Use phex_nz to
13375 convert NUM to a hex string.
13376
ec920329
EZ
133772002-01-12 Elena Zannoni <ezannoni@redhat.com>
13378
13379 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13380 the function.
538a76d6 13381 Update Copyright year.
ec920329 13382
3abd2e01
AC
133832002-01-12 Andrew Cagney <ac131313@redhat.com>
13384
13385 * language.c (longest_raw_hex_string): Delete unused function.
13386
b21b22e0
PS
133872002-01-11 Petr Sorfa <petrs@caldera.com>
13388
13389 * MAINTAINERS (write-after-approval): Add myself.
13390 * dwarf2read.c (read_tag_string_type): Handling of
13391 DW_AT_byte_size.
13392 (read_tag_string_type): FORTRAN fix to prevent propagation of
13393 first string size.
13394 (set_cu_language): Handling of DW_LANG_Fortran95
13395
747fe712
RE
133962002-01-11 Richard Earnshaw <rearnsha@arm.com>
13397
13398 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13399 GETPID(inferior_ptid).
13400 (store_inferior_registers): Likewise.
13401
f1bea926
JM
134022002-01-10 Jason Merrill <jason@redhat.com>
13403
13404 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13405 Fix DW_OP_minus.
13406
ae940673
AC
134072002-01-10 Andrew Cagney <ac131313@redhat.com>
13408
13409 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13410 and bfd/elf32-sh-nbsd.c.
13411
00546b04
MS
134122002-01-10 Michael Snyder <msnyder@redhat.com>
13413
352ed7b4
MS
13414 * NEWS: Mention --pid and corefile/proc-id behavior change.
13415
c18be923
MS
13416 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13417 * gcore.c: Include cli/cli-decode.h instead of command.h.
13418
00546b04
MS
13419 * main.c (captured_main): Add new command line option "--pid".
13420 If the second command line argument (following the symbol-file)
13421 begins with a digit, try to attach to it before trying to open
13422 it as a corefile.
13423 (print_gdb_help): Document the "--pid" argument.
13424
db60ec62
EZ
134252002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13426
13427 * completer.c (command_completer): New function.
13428
13429 * completer.h <command_completer>: Add prototype.
13430
13431 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13432 completer for the "help" command.
13433
39c22d1a
JM
134342002-01-09 Jason Merrill <jason@redhat.com>
13435
13436 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13437
c564377f
MS
134382002-01-09 Michael Snyder <msnyder@redhat.com>
13439
975aec09
MS
13440 * i386-linux-nat.c (fill_fpxregset): Make global.
13441 (store_fpxregset): Ditto.
13442
db4a10fa
MS
13443 * gregset.h (gdb_fpxregset_t): Define.
13444 (supply_fpxregset): Prototype.
13445 (fill_fpxregset): Prototype.
13446
c564377f
MS
13447 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13448
c3d45d70
RE
134492002-01-09 Richard Earnshaw <rearnsha@arm.com>
13450
13451 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13452 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13453 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13454
fcc87af1
AC
134552002-01-09 Andrew Cagney <ac131313@redhat.com>
13456
13457 * MAINTAINERS: Update target maintainer rules so that any
13458 Maintainer can approve a tested patch for a maintenance-only
13459 target.
13460
dd96c05b
RE
134612002-01-09 Richard Earnshaw <rearnsha@arm.com>
13462
d4297db9 13463 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13464
d4297db9 13465 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13466 IN_SIGTRAMP.
13467
145fdc6e
MS
134682002-01-08 Michael Snyder <msnyder@redhat.com>
13469
13470 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13471 real name of the executable, rather than the /proc name.
13472
be4d1333
MS
134732002-01-03 Michael Snyder <msnyder@redhat.com>
13474
13475 Implement a "generate-core-file" command in gdb, save target state.
13476 * gcore.c: New file. Implement new command 'generate-core-file'.
13477 Save a corefile image of the current state of the inferior.
13478 * linux-proc.c: Add linux-specific code for saving corefiles.
13479 * target.h (struct target_ops): Add new target vectors for saving
13480 corefiles; to_find_memory_regions and to_make_corefile_notes.
13481 (target_find_memory_regions): New macro.
13482 (target_make_corefile_notes): New macro.
13483 * target.c (update_current_target): Inherit new target methods.
13484 (dummy_find_memory_regions): New place-holder method.
13485 (dummy_make_corefile_notes): New place-holder method.
13486 (init_dummy_target): Initialize new dummy target vectors.
13487 * exec.c (exec_set_find_memory_regions): New function.
13488 Allow the exec_ops vector for memory regions to be taken over.
13489 (exec_make_note_section): New function, target vector method.
13490 * defs.h (exec_set_find_memory_regions): Export prototype.
13491 * procfs.c (proc_find_memory_regions): New function, corefile method.
13492 (procfs_make_note_section): New function, corefile method.
13493 (init_procfs_ops): Set new target vector pointers.
13494 (find_memory_regions_callback): New function.
13495 (procfs_do_thread_registers): New function.
13496 (procfs_corefile_thread_callback): New function.
13497 * sol-thread.c (sol_find_memory_regions): New function.
13498 (sol_make_note_section): New function.
13499 (init_sol_thread_ops): Initialize new target vectors.
13500 * inftarg.c (inftarg_set_find_memory_regions): New function.
13501 Allow to_find_memory_regions vector to be taken over.
13502 (inftarg_set_make_corefile_notes): New function.
13503 Allow to_make_corefile_notes vector to be taken over.
13504 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13505 interface layer if not target_has_execution (may be a corefile).
13506 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13507 * config/sparc/sun4sol2.mh: Ditto.
13508 * config/alpha/alpha-linux.mh: Ditto.
13509 * config/arm/linux.mh: Ditto.
13510 * config/i386/x86-64linux.mh: Ditto.
13511 * config/ia64/linux.mh: Ditto.
13512 * config/m68k/linux.mh: Ditto.
13513 * config/mips/linux.mh: Ditto.
13514 * config/powerpc/linux.mh: Ditto.
13515 * config/sparc/linux.mh: Ditto.
13516
c6b92abd
MS
135172002-01-07 Michael Snyder <msnyder@redhat.com>
13518
13519 * arm-linux-nat.c: Remove references to regcache.c internal data
13520 (registers[] and register_valid[]).
13521
4b09dc8c
MS
135222002-01-07 Michael Snyder <msnyder@redhat.com>
13523
abf22e64
AJ
13524 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13525 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
13526 symbol file and shlibs.
13527 * Makefile.in: Add rule for linux-proc.o.
13528 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13529 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13530 * config/arm/linux.mh: Ditto.
13531 * config/i386/linux.mh: Ditto.
13532 * config/i386/x86-64linux.mh: Ditto.
13533 * config/ia64/linux.mh: Ditto.
13534 * config/m68k/linux.mh: Ditto.
13535 * config/mips/linux.mh: Ditto.
13536 * config/powerpc/linux.mh: Ditto.
13537 * config/sparc/linux.mh: Ditto.
13538
c25b74ac
PM
135392002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13540
13541 * win32-nat.c: Add i386-tdep.h dependency.
13542
94cd915f
MS
135432002-01-07 Michael Snyder <msnyder@redhat.com>
13544
c7cccb76
MS
13545 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13546 instead of bfd_get_arch_size. Don't bail out just because
13547 there's no exec_bfd.
abf22e64 13548
34c0bd93
MS
13549 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13550 * p-valprint.c (pascal_object_print_value): Ditto.
13551 * somread.c (som_symtab_read): Ditto.
13552 * symfile.c (simple_free_overlay_region_table): Ditto.
13553 * valops.c (value_assign): Ditto.
13554
21c1c920
MS
13555 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13556 use tilde_expand and strerror for opening save-tracepoints file.
13557
5bbd998e
MS
13558 * thread-db.c (thread_db_new_objfile): Indendation fix.
13559
94cd915f
MS
13560 * infptrace.c (GDB_MAX_ALLOCA): New define.
13561 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 13562 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
13563 can be overridden with whatever value is appropriate to the host).
13564 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13565 alloca to allocate potentially large buffer.
13566 * rs6000-nat.c (child_xfer_memory): Ditto.
13567 * symm-nat.c (child_xfer_memory): Ditto.
13568 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13569
494e8a93
JSC
135702002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13571
13572 From Nick Clifton <nickc@redhat.com>
13573 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13574
d0e1d48e
MS
135752002-01-07 Michael Snyder <msnyder@redhat.com>
13576
abf22e64 13577 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
13578 Don't use exec_bfd if it's NULL.
13579
290b2c7a
MK
135802002-01-06 Mark Kettenis <kettenis@gnu.org>
13581
abf22e64 13582 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 13583
aef21287
AC
135842002-01-06 Andrew Cagney <ac131313@redhat.com>
13585
13586 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13587 * gnu-nat.c: Ditto.
13588
30efa627
AC
135892002-01-06 Andrew Cagney <ac131313@redhat.com>
13590
13591 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13592 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13593 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13594 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13595 z8k-coff have not been multi-arched. Update z8k-coff build
13596 status.
13597
9b4ff276
AC
135982002-01-06 Andrew Cagney <ac131313@redhat.com>
13599
13600 * MAINTAINERS: Mark a29k target as obsolete.
13601 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13602 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13603 comments.
13604 * NEWS: Note that a29k targets are obsolete.
13605 * a29k-tdep.c: Mark as obsolete.
13606 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13607 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13608 a29k-*-vxworks* targets as obsolete.
13609 * remote-adapt.c: Obsolete.
13610 * remote-eb.c: Obsolete.
13611 * remote-mm.c: Obsolete.
13612 * remote-udi.c: Obsolete.
13613 * config/a29k/a29k-udi.mt: Obsolete.
13614 * config/a29k/a29k.mt: Obsolete.
13615 * config/a29k/tm-a29k.h: Obsolete.
13616 * config/a29k/tm-vx29k.h: Obsolete.
13617 * config/a29k/vx29k.mt: Obsolete.
13618
a9011d31
AC
136192002-01-05 Andrew Cagney <ac131313@redhat.com>
13620
13621 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13622 with BFD_ENDIAN_BIG.
13623
9299404e
AC
136242002-01-05 Andrew Cagney <ac131313@redhat.com>
13625
13626 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13627 * configure, config.in: Re-generate.
13628 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13629 * defs.h: Do not include <endian.h>.
13630
7e89e357
JT
136312002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13632
13633 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13634 * config.in: Regenerate.
13635 * configure.in: Update copyright years.
13636 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13637 * configure: Regenerate.
13638 * i386bsd-nat.c: Update copyright years.
13639 (fill_gregset): Use regcache_collect.
13640 (fetch_inferior_registers): Only fetch integer registers
13641 if requested to do so. Add support for XMM registers
13642 using PT_GETXMMREGS.
13643 (store_inferior_registers): Only store integer registers
13644 if requested to do so. Add support for XMM registers
13645 using PT_SETXMMREGS.
13646 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13647 (store_inferior_registers): Remove.
13648 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13649 (fetch_elfcore_registers): New function.
13650 (i386nbsd_elfcore_fns): New.
13651 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13652 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13653 i386bsd-nat.o.
13654 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13655 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13656 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13657 * config/i386/tm-nbsd.h: Update copyright years.
13658 (HAVE_SSE_REGS): Define.
13659 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13660 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13661 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13662 (SIGCONTEXT_PC_OFFSET): Remove.
13663 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13664
a752853e
AC
136652002-01-05 Andrew Cagney <ac131313@redhat.com>
13666
13667 * configure.tgt: Remove powerpc-*-macos* target.
13668 * config/m68k/xm-mpw.h: Delete file.
13669 * config/xm-mpw.h: Delete file.
13670 * ser-mac.c: Delete file.
13671 * mpw-make.sed: Delete file.
13672 * mpw-config.in: Delete file.
13673 * mac-xdep.c: Delete file.
13674 * mac-gdb.r: Delete file.
13675 * mac-defs.h: Delete file.
13676 * mac-nat.c: Delete file.
13677 * config/powerpc/macos.mh: Delete file.
13678 * config/powerpc/macos.mt: Delete file.
13679 * config/powerpc/nm-macos.h: Delete file.
13680 * config/powerpc/tm-macos.h: Delete file.
13681 * source.c (openp, open_source_file): Remove obsolete code.
13682 * top.c (gdb_readline): Ditto.
13683 * utils.c (query): Ditto.
13684 * event-top.c (display_gdb_prompt): Ditto.
13685 * Makefile.in (ser-mac.o): Delete obsolete target.
13686 * NEWS: Update.
13687
d7449b42
AC
136882002-01-04 Andrew Cagney <ac131313@redhat.com>
13689
13690 * defs.h (BIG_ENDIAN): Delete macro definition.
13691 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13692 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13693 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13694 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13695 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13696 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13697 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13698 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13699 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13700 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13701 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13702 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13703 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13704 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13705 * gdbarch.c: Re-generate.
13706
356374e8
DJ
137072002-01-04 Daniel Jacobowitz <drow@mvista.com>
13708
13709 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13710 for core files.
13711
a2b8f8f8
JT
137122002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13713
13714 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13715
12466af9
AC
137162002-01-04 Andrew Cagney <ac131313@redhat.com>
13717
13718 * value.h (value_ptr): Delete typedef.
13719
3549ab40
JT
137202002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13721
13722 * i386nbsd-nat.c: Update copyright years.
13723 Include i386-tdep.h.
13724
fedbd091
EZ
137252002-01-04 Elena Zannoni <ezannoni@redhat.com>
13726
13727 * stabsread.c: Update copyright years.
13728
13729 From Debashis Mahata <debashis.mahata@wipro.com>:
13730 (read_struct_fields): Deal with Sun C compiler erroneous stab
13731 output for structs and unions.
fec8b34f 13732 Fix PR gdb/269.
fedbd091 13733
eb43544b
DJ
137342002-01-04 Daniel Jacobowitz <drow@mvista.com>
13735
13736 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13737 prototype.
13738
1514d34e
DJ
137392002-01-04 Daniel Jacobowitz <drow@mvista.com>
13740
13741 * cp-abi.c: Fix whitespace.
13742 (baseclass_offset): New wrapper function.
13743 * cp-abi.h (baseclass_offset): Add prototype.
13744 (struct cp_abi_ops): Add baseclass_offset pointer.
13745
13746 * valops.c (vb_match): Move to...
13747 * gnu-v2-abi.c (vb_match): here.
13748 * valops.c (baseclass_offset): Move to...
13749 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13750
13751 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13752
13753 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13754 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13755 * hpacc-abi.c (init_hpacc_ops): Likewise.
13756
7f8c9282
DJ
137572002-01-04 Daniel Jacobowitz <drow@mvista.com>
13758
13759 * valops.c (find_overload_match): Accept obj as a
13760 reference parameter. Update it before returning.
13761 * value.h (find_overload_match): Update prototype.
13762 * eval.c (evaluate_subexp_standard): Pass object to
13763 find_overload_match by reference.
13764
f23631e4
AC
137652002-01-03 Andrew Cagney <ac131313@redhat.com>
13766
13767 * valarith.c: Replace value_ptr with struct value pointer. Remove
13768 register attribute from value declarations.
13769 * valops.c: Ditto.
13770 * value.h: Ditto.
13771 * scm-lang.c (scm_lookup_name): Ditto.
13772
79e10fab 137732002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 13774
79e10fab
AC
13775 Abstract the functionality of iterating over mapped memory
13776 regions into a general purpose iterator function.
abf22e64 13777 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
13778 iterator for memory sections.
13779 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13780 (solib_mappings_callback): New function, callback for above.
13781 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13782 (info_mappings_callback): New function, callback for above.
13783
13784 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13785
c5ad026a
MK
137862002-01-01 Mark Kettenis <kettenis@gnu.org>
13787
d2a7c97a
MK
13788 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13789 * i386-tdep.c: Include "elf-bfd.h".
13790 (process_note_abi_tag_sections): New function.
13791 (i386_gdbarch_init): Add code to recognize various OS/ABI
13792 combinations.
13793
c5ad026a
MK
13794 * maint.c (_initialize_maint_cmds): Add missing \ in
13795 string-literal.
13796
a1a5b71e 13797For older changes see ChangeLog-2001
c906108c
SS
13798\f
13799Local Variables:
13800mode: change-log
13801left-margin: 8
13802fill-column: 74
13803version-control: never
13804End:
This page took 0.97981 seconds and 4 git commands to generate.