2002-11-29 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a193e397
AC
12002-11-29 Andrew Cagney <cagney@redhat.com>
2
3 * remote-mips.c (mips_initialize): Force a selected frame rebuild
4 by calling get_selected_frame.
5 * ocd.c (ocd_start_remote): Use get_selected frame instead of
6 set_current_frame, create_new_frame, select_frame and
7 get_current_frame.
8 * remote-e7000.c (e7000_start_remote): Ditto.
9 * remote-mips.c (common_open): Ditto
10 * remote-rdp.c (remote_rdp_open): Ditto.
11
b5fc49aa
AS
122002-11-29 Andreas Schwab <schwab@suse.de>
13
14 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
15 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
16 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
17 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
18 read_memory_unsigned_integer instead of read_memory_integer when
19 dealing with addresses and instruction opcodes.
20 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
21 (m68k_linux_frame_saved_pc): Likewise.
22
6e7f8b9c
AC
232002-11-29 Andrew Cagney <ac131313@redhat.com>
24
25 * stack.c (selected_frame, select_frame): Move from here ...
26 * frame.c (selected_frame, select_frame): ... to here. Include
27 "language.h".
28 * Makefile.in (frame.o): Update dependencies.
29 * frame.c (get_selected_frame): New function.
30 * frame.h (get_selected_frame): Declare.
31 (deprecated_selected_frame): Rename selected_frame.
32 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
33 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
34 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
35 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
36 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
37 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
38 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
39 * z8k-tdep.c, cli/cli-cmds.c: Update.
40
805e2818
AC
412002-11-29 Andrew Cagney <ac131313@redhat.com>
42
43 * frame.h (get_selected_block): Add comments.
44
1058bca7
AC
452002-11-28 Andrew Cagney <ac131313@redhat.com>
46
47 * frame.c (pc_notcurrent): New function.
48 (find_frame_sal): New function.
49 * frame.h (find_frame_sal): Declare.
50 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
51 * stack.c (print_frame_info_base): Use find_frame_sal instead of
52 find_pc_line.
1058bca7
AC
53 (frame_info): Ditto.
54 * ada-lang.c (find_printable_frame): Ditto.
55
d92419e5
JB
562002-11-28 J. Brobecker <brobecker@gnat.com>
57
58 * configure.in: Check that the pthdebug library is recent enough
59 before enabling thread support on native AiX.
60 * configure: Regenerate.
61
62 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
63 from the list of object files as it is now appended by configure
64 if thread support is enabled.
65 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
66 if thread support is enabled.
67
8c69fc49
AC
682002-11-28 Andrew Cagney <cagney@redhat.com>
69
70 * stack.c (get_selected_block): In-line get_current_block.
71 * frame.h (get_current_block): Delete declaration.
72 * blockframe.c (get_current_block): Delete function.
73
07555a72
AC
742002-11-28 Andrew Cagney <ac131313@redhat.com>
75
76 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
77 USE_GENERIC_DUMMY_FRAMES.
78 * gdbarch.h, gdbarch.c: Regenerate.
79 * valops.c, frame.c: Update.
80 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
81 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
82 * config/pa/tm-hppa.h, blockframe.c: Update.
83 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
84 * m68k-tdep.c, alpha-tdep.c: Ditto.
85
86 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
87 * mips-tdep.c: Ditto.
88
b99fa2d2
AC
892002-11-27 Andrew Cagney <ac131313@redhat.com>
90
91 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
92 (USE_GENERIC_DUMMY_FRAMES): Default to true.
93 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
94 * gdbarch.c, gdbarch.h: Re-generate.
95 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
96 (CALL_DUMMY_LOCATION): Delete macro definition.
97 (PC_IN_CALL_DUMMY): Delete macro definitions.
98
99 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
100 default is already generic_pc_in_call_dummy.
101 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
102 * v850-tdep.c (v850_gdbarch_init): Ditto.
103 * sh-tdep.c (sh_gdbarch_init): Ditto.
104 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
105 * mips-tdep.c (mips_gdbarch_init): Ditto.
106 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
107 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
108 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
109 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
110 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
111 * avr-tdep.c (avr_gdbarch_init): Ditto.
112
113 * arm-tdep.c (arm_gdbarch_init): Do not set
114 use_generic_dummy_frames, default is already 1.
115 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
116 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
117 * v850-tdep.c (v850_gdbarch_init): Ditto.
118 * sh-tdep.c (sh_gdbarch_init): Ditto.
119 * s390-tdep.c (s390_gdbarch_init): Ditto.
120 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
121 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
122 * mips-tdep.c (mips_gdbarch_init): Ditto.
123 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
124 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
125 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
126 * i386-tdep.c (i386_gdbarch_init): Ditto.
127 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
128 * frv-tdep.c (frv_gdbarch_init): Ditto.
129 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
130 * cris-tdep.c (cris_gdbarch_init): Ditto.
131 * avr-tdep.c (avr_gdbarch_init): Ditto.
132
133 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
134 call_dummy_location, default is already AT_ENTRY_POINT.
135 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
136 * v850-tdep.c (v850_gdbarch_init): Ditto.
137 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
138 * sh-tdep.c (sh_gdbarch_init): Ditto.
139 * s390-tdep.c (s390_gdbarch_init): Ditto.
140 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
141 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
142 * mips-tdep.c (mips_gdbarch_init): Ditto.
143 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
144 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
145 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
146 * i386-tdep.c (i386_gdbarch_init): Ditto.
147 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
148 * frv-tdep.c (frv_gdbarch_init): Ditto.
149 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
150 * cris-tdep.c (cris_gdbarch_init): Ditto.
151 * avr-tdep.c (avr_gdbarch_init): Ditto.
152 * arm-tdep.c (arm_gdbarch_init): Ditto.
153 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
154
abc0af47
AC
1552002-11-28 Andrew Cagney <cagney@redhat.com>
156
157 * frame.h: Update comments on set_current_frame, create_new_frame,
158 flush_cached_frames, reinit_frame_cache, select_frame and
159 selected_frame.
160
ed5cedc5
AC
1612002-11-27 Andrew Cagney <cagney@redhat.com>
162
163 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
164 deprecated pc_in_call_dummy function.
165 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
166 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
167 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
168 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
169 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
170
b2a1bd4f
MH
1712002-11-26 Martin M. Hunt <hunt@redhat.com>
172
173 * Makefile.in: Remove Tix dependencies.
174 * acinclude.m4: Ditto.
175 * aclocal.m4: Ditto.
176 * configure.in: Ditto.
177 * configure: Regenerated.
178
f09cffaa
AC
1792002-11-26 Andrew Cagney <ac131313@redhat.com>
180
181 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
182 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
183 * gdbarch.c: Re-generate.
184
e92b0cc9
AC
1852002-11-26 Andrew Cagney <ac131313@redhat.com>
186
187 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
188 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
189 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
190 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
191 pc_in_call_dummy_at_entry_point.
192 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
193 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
194 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
195 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
196 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
197 pc_in_call_dummy_on_stack.
198 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
199 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
200 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
201 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
202 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
203
b4b88177
AC
2042002-11-26 Andrew Cagney <ac131313@redhat.com>
205
206 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
207 pc_in_call_dummy_before_text_end
208 (deprecated_pc_in_call_dummy_after_text_end): Rename
209 pc_in_call_dummy_after_text_end.
210 (deprecated_pc_in_call_dummy_on_stack): Rename
211 pc_in_call_dummy_on_stack.
212 (deprecated_pc_in_call_dummy_at_entry_point): Rename
213 pc_in_call_dummy_at_entry_point.
214 * m68k-tdep.c (m68k_gdbarch_init): Update.
215 * s390-tdep.c (s390_gdbarch_init): Update.
216 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
217 * vax-tdep.c (vax_gdbarch_init): Update.
218 * sparc-tdep.c (sparc_gdbarch_init): Update.
219 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
220 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
221 * i386-tdep.c (i386_gdbarch_init): Update.
222 * frv-tdep.c (frv_gdbarch_init): Update.
223 * cris-tdep.c (cris_gdbarch_init): Update.
224 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
225 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
226 (deprecated_pc_in_call_dummy_after_text_end)
227 (deprecated_pc_in_call_dummy_on_stack)
228 (deprecated_pc_in_call_dummy_at_entry_point): Update.
229 * alpha-tdep.c (alpha_gdbarch_init): Update.
230
eb784848
DJ
2312002-11-25 Daniel Jacobowitz <drow@mvista.com>
232
233 * acconfig.h (HAVE_PREAD64): Add.
234 * configure.in: Check for pread64.
235 * config.in: Regenerated.
236 * configure: Regenerated.
237 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
238 * linux-proc.c (linux_proc_xfer_memory): New function.
239 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
240
933c6fe4
DC
2412002-11-25 David Carlton <carlton@math.stanford.edu>
242
243 * dwarf2read.c (scan_partial_symbols): Descend into namespace
244 pdi's with no name.
245
158a8022
AC
2462002-11-25 Andrew Cagney <ac131313@redhat.com>
247
248 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
249 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
250
481d0f41
JB
2512002-11-25 Jim Blandy <jimb@redhat.com>
252
e8289572
JB
253 * symfile.c (init_objfile_sect_indices): New function.
254 (default_symfile_offsets): Move the section-index-initializing
255 stuff into init_objfile_sect_indices, and call that.
256
b29c9944
JB
257 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
258 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
259
13de58df
JB
260 * symfile.c (syms_from_objfile): Adjust indentation.
261
481d0f41
JB
262 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
263 || info_verbose isn't true.
264
7d6a26a7
AC
2652002-11-24 Andrew Cagney <ac131313@redhat.com>
266
267 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
268 default to get_frame_base.
269 * gdbarch.h, gdbarch.c: Regenerate.
270 * arch-utils.c (default_frame_address): Delete function.
271 * arch-utils.h (default_frame_address): Delete declaration
272
6abe1021
PM
2732002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
274
275 * varobj.c (find_frame_addr_in_frame_chain):
276 Use get_frame_base instead of FRAME_FP,
277 obvious fix.
278
c193f6ac
AC
2792002-11-19 Andrew Cagney <ac131313@redhat.com>
280
281 * frame.h (FRAME_FP): Delete macro.
282 (get_frame_base): New function declaration.
283 * frame.c (get_frame_base): New function.
284 (get_frame_id): Use ->frame.
285 (frame_find_by_id): Rewrite to use get_frame_id.
286 * blockframe.c: Use get_frame_base instead of FRAME_FP.
287 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
288 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
289 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
290 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
291 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
292 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
293
e5d2af14
AC
2942002-11-24 Andrew Cagney <ac131313@redhat.com>
295
296 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
297
931d12c6
AC
2982002-11-24 Andrew Cagney <ac131313@redhat.com>
299
300 * frame.c (set_unwind_by_pc): Revert change below, use
301 PC_IN_CALL_DUMMY.
302 (get_prev_frame): Ditto.
303
5e0f933e
AC
3042002-11-24 Andrew Cagney <ac131313@redhat.com>
305
306 * dummy-frame.c (pc_in_dummy_frame): New function.
307 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
308 (find_dummy_frame): Update comment.
309 (generic_pop_current_frame): Use get_frame_type.
310 * dummy-frame.h (pc_in_dummy_frame): Declare.
311 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
312 (create_new_frame): Use pc_in_dummy_frame.
313 (get_prev_frame): Use pc_in_dummy_frame.
314 (frame_saved_regs_register_unwind): Use get_prev_frame.
315 (deprecated_generic_get_saved_register): Use get_prev_frame.
316
7d8547c9
AC
3172002-11-23 Andrew Cagney <ac131313@redhat.com>
318
319 * blockframe.c (find_frame_addr_in_frame_chain): Move function
320 from here ...
321 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
322 (varobj_create): Note that frame ID should be used.
323 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
324
0225421b
AC
3252002-11-23 Andrew Cagney <ac131313@redhat.com>
326
327 * breakpoint.c: Include "gdb_assert.h".
328 (deprecated_frame_in_dummy): Assert that generic dummy frames are
329 not being used.
330 * Makefile.in (breakpoint.o): Update dependencies.
331 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
332 deprecated_frame_in_dummy.
333 * stack.c (print_frame_info_base): Ditto.
334 (frame_info): Ditto.
335 (print_frame_info_base): Ditto. Delete dead code.
336
32eeb91a
AS
3372002-11-23 Andreas Schwab <schwab@suse.de>
338
339 * Makefile.in (m68k_tdep_h): Define.
340 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
341 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
342 * m68k-tdep.c: Move register number enum ...
343 * m68k-tdep.h: ... to this new file and rename the constants from
344 E_* to M68K_*. All uses changed.
345 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
346 * abug-rom.c: Include "m68k-tdep.h". Use
347 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
348 * cpu32bug-rom.c: Likewise.
349 * dbug-rom.c: Likewise.
350 * m68k-tdep.c: Likewise.
351 * m68klinux-nat.c: Likewise.
352 * remote-est.c: Likewise.
353 * rom68k-rom.c: Likewise.
354 * config/m68k/tm-linux.h: Likewise.
355
9648bac8
AC
3562002-11-23 Andrew Cagney <ac131313@redhat.com>
357
358 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
359 dummy frame initialization code.
360 * mips-tdep.c (mips_gdbarch_init): Ditto.
361
91a175b3
CF
3622002-11-22 Christopher Faylor <cgf@redhat.com>
363
364 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
365 attach will hang.
366
f4ded5b1
AC
3672002-11-22 Andrew Cagney <ac131313@redhat.com>
368
369 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
370 to default_frame_address.
371 * gdbarch.h, gdbarch.c: Re-generate.
372
373 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
374 or frame_locals_address to default_frame_address.
375 * m68k-tdep.c (m68k_gdbarch_init): Update.
376 * i386-tdep.c (i386_gdbarch_init): Update.
377 * frv-tdep.c (frv_gdbarch_init): Update.
378 * sh-tdep.c (sh_gdbarch_init): Update.
379 * v850-tdep.c (v850_gdbarch_init): Update.
380 * sparc-tdep.c (sparc_gdbarch_init): Update.
381 * mips-tdep.c (mips_gdbarch_init): Update.
382 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
383 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
384 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
385
386 * cris-tdep.c (cris_frame_args_address): Delete function.
387 (cris_frame_locals_address): Delete function.
388 (cris_gdbarch_init): Do not set frame_args_address or
389 frame_locals_address.
390
f7c1e0f3
MS
3912002-11-22 Michael Snyder <msnyder@redhat.com>
392
393 * thread-db.c (thread_db_load): Tell the user what's going on
394 if dlopen fails on libthread_db.
395
03dac896
AS
3962002-11-23 Andreas Schwab <schwab@suse.de>
397
398 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
399 invariant return values.
400
7a67d0fe
AS
4012002-11-22 Andreas Schwab <schwab@suse.de>
402
403 * valops.c (value_slice): Move declaration of `offset' to avoid
404 warning.
405
5633f842
CF
4062002-11-22 Christopher Faylor <cgf@redhat.com>
407
408 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
409 (struct so_stuff): Add end_addr field.
410 (register_loaded_dll): Calculate and store end address of loaded dll.
411 (solib_address): New function.
412 (child_solib_loaded_library_pathname): Pass carefully constructed
413 section info to safe_symbol_file_add rather than ignoring it.
414 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
415 DLL is loaded.
416 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
417 (child_create_inferior): Fix a compiler warning.
418 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
419 (solib_address): Declare new function.
420
d85fe7f7
AS
4212002-11-22 Andreas Schwab <schwab@suse.de>
422
423 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
424 and FPS registers.
425
8308e54c
DJ
4262002-11-21 Daniel Jacobowitz <drow@mvista.com>
427
428 * maint.c (_initialize_maint_cmds): Fix typo. From
429 Francesco Potorti` <pot@gnu.org>.
430
8997bd5e
AC
4312002-11-21 Andrew Cagney <cagney@redhat.com>
432
433 * mips-tdep.c (mips_dump_tdep): Delete references to
434 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
435 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
436 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
437 * printcmd.c (build_address_symbolic): Delete calls to
438 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
439 (address_info): Ditto.
440 Fix PR gdb/773.
441
4e87b832
KD
4422002-11-19 Klee Dienes <kdienes@apple.com>
443 Adam Fedor <fedor@gnu.org>
444
445 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
446 the ability to explicitly specify the quote characters and word
447 break characters; if NULL is specified for either, use the old
448 behavior of using the characters used by the completer.
449 (skip_chars): New function. Convenience wrapper around
450 skip_quoted_chars to provide the original skip_chars behavior.
451 * completer.h (skip_quoted_chars): Add prototype.
452
9ba8d803
AC
4532002-11-19 Andrew Cagney <ac131313@redhat.com>
454
455 Problems reported by Paul Eggert.
456 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
457
0a595803
AS
4582002-11-19 Andreas Schwab <schwab@suse.de>
459
460 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
461 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
462 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
463 (m68k_linux_frame_saved_pc): Move to ...
464 * m68klinux-tdep.c: ... here. New file.
465 * Makefile.in (m68klinux-tdep.o): Add dependencies.
466 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
467
e8afa4d7
AF
4682002-11-19 Adam Fedor <fedor@gnu.org>
469
470 * objc-exp.y: Revert to old skip_quoted usage.
471
a76c9d72
AF
4722002-11-19 Adam Fedor <fedor@gnu.org>
473
474 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
475 (objc_lang_h): Define.
476 (YYFILES): Add objc-exp.tab.c.
477 (local-maintainer-clean): Remove objc-exp.tab.c.
478 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
479
fd0e9d45
PM
4802002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
481
482 * p-exp.y (typecast rule): Add automatic dereference of
483 pascal classes if needed.
484 (THIS): Set current_type.
485 Automatically dereference pascal classes.
486 (typebase rule): Add ^typebase recognition.
487
82eeeb94
AF
4882002-11-18 Adam Fedor <fedor@gnu.org>
489
490 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
491 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
492 (op_name): Handle OP_OBJC_SELF.
493 * Makefile.in (expprint.o): Add additional depends.
494
646df18d
AF
4952002-11-18 Adam Fedor <fedor@gnu.org>
496
497 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
498 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
499 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
500 * objc-exp.y: Likewise.
501
379b85df
AF
5022002-11-18 Adam Fedor <fedor@gnu.org>
503
504 * gdb/parser-defs.h: (struct objc_class_str): New structure
505 for parsing ObjC classes.
506
85cf597a
AC
5072002-11-18 Andrew Cagney <ac131313@redhat.com>
508
509 * stack.c (frame_relative_level): Copy function from here ...
510 * frame.c (frame_relative_level): ...to here.
511
5a203e44
AC
5122002-11-18 Andrew Cagney <ac131313@redhat.com>
513
514 * frame.h (enum frame_type): Define.
515 (get_frame_type): Declare.
516 (struct frame_info): Add field `type'. Delete field
517 signal_handler_caller.
518 (deprecated_set_frame_signal_handler_caller): Declare.
519 * frame.c (get_frame_type): New function.
520 (deprecated_set_frame_type): New function.
521 (create_new_frame): Set the frame's type.
522 (get_prev_frame): Similar.
523 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
524 * s390-tdep.c: Ditto.
525 * m68klinux-nat.c: Ditto.
526 * ns32k-tdep.c: Ditto.
527 * x86-64-linux-tdep.c: Ditto.
528 * vax-tdep.c: Ditto.
529 * rs6000-tdep.c: Ditto.
530 * ppc-linux-tdep.c: Ditto.
531 * i386-interix-tdep.c: Ditto.
532 * mips-tdep.c: Ditto.
533 * m68k-tdep.c: Ditto.
534 * hppa-tdep.c: Ditto.
535 * ia64-tdep.c: Ditto.
536 * cris-tdep.c: Ditto.
537 * arm-tdep.c: Ditto.
538 * alpha-tdep.c: Ditto.
539 * i386-tdep.c: Ditto.
540 * stack.c: Ditto.
541 * ada-lang.c: Ditto.
542 * blockframe.c: Update.
543 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
544 deprecated_set_frame_type instead of signal_handler_caller.
545 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
546 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
547 * breakpoint.h: Delete FIXME suggesting get_frame_type.
548
bf4ae8b2
KD
5492002-11-18 Klee Dienes <kdienes@apple.com>
550
551 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
552
a672ef13
KD
5532002-11-18 Klee Dienes <kdienes@apple.com>
554
555 * buildsym.c (pop_context): Add comment.
556
0c5e171a
KD
5572002-11-18 Klee Dienes <kdienes@apple.com>
558
559 * buildsym.h (pop_context): Convert to function, defined in
560 buildsym.c.
561 * buildsym.c: Include gdb_assert.h.
562 (pop_context): Implement as C function. Add check for stack
563 underflow.
564 * dbxread.c (process_one_symbol): Complain and stop processing
565 that symbol if we are already at the top of the context stack for
566 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
567 when processing N_RBRAC.
568
8a1f4c4c
DJ
5692002-11-16 Daniel Jacobowitz <drow@mvista.com>
570
571 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
572 define.
573 (struct target_waitstatus): Add opaque definition.
574 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
575 * exec.c (init_exec_ops): Likewise.
576 * fork-child.c (clone_and_follow_inferior): Remove.
577 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
578 * inferior.h (clone_and_follow_inferior): Remove prototype.
579 * infrun.c (follow_fork_mode_both): Remove.
580 (follow_fork_mode_kind_names): Remove commented out "both".
581 (follow_inferior_fork): Remove follow_fork_mode_both support.
582 * inftarg.c (child_clone_and_follow_inferior): Remove.
583 (child_post_follow_inferior_by_clone): Remove.
584 (init_child_ops): Don't set to_clone_and_follow_inferior
585 or to_post_follow_inferior_by_clone.
586 * target.c (default_clone_and_follow_inferior): Remove.
587 (cleanup_target): Don't set to_clone_and_follow_inferior
588 or to_post_follow_inferior_by_clone.
589 (find_default_clone_and_follow_inferior): Remove.
590 (init_dummy_target): Don't set to_clone_and_follow_inferior.
591 (debug_to_clone_and_follow_inferior): Remove.
592 (debug_to_post_follow_inferior_by_clone): Remove.
593 (setup_target_debug): Don't set to_clone_and_follow_inferior
594 or to_post_follow_inferior_by_clone.
595 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
596 and to_post_follow_inferior_by_clone.
597 (child_clone_and_follow_inferior): Remove prototype.
598 (child_post_follow_inferior_by_clone): Remove prototype.
599 (target_clone_and_follow_inferior): Remove macro.
600 (target_post_follow_inferior_by_clone): Remove macro.
601 (find_default_clone_and_follow_inferior): Remove prototype.
602
47932f85
DJ
6032002-11-16 Daniel Jacobowitz <drow@mvista.com>
604
605 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
606 inferior_has_vforked, and inferior_has_execd instead of
607 target_has_forked, target_has_vforked, and target_has_execd.
608 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
609 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
610 (CHILD_WAIT): Define.
611 (child_wait): Add prototype.
612 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
613 Add prototype.
614 (hpux_has_vforked): Likewise, from child_has_vforked.
615 (hpux_has_execd): Likewise, from child_has_execd.
616 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
617 (not_same_real_pid, child_wait): New, copied from inftarg.c.
618 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
619 and hpux_has_syscall_event instead of the target hooks.
620 * infrun.c (inferior_has_forked, inferior_has_vforked)
621 (inferior_has_execd): New functions.
622 * inftarg.c (not_same_real_pid): Remove.
623 (child_wait): Remove references to not_same_real_pid,
624 target_has_forked, target_has_vforked, target_has_execd,
625 and target_has_syscall_event.
626 (child_has_forked, child_has_vforked, child_has_execd)
627 (child_has_syscall_event): Remove.
628 (init_child_ops): Remove references to child_has_forked,
629 child_has_vforked, child_has_execd, and child_has_syscall_event.
630 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
631 (hpux_has_vforked): Likewise, from child_has_vforked.
632 (hpux_has_execd): Likewise, from child_has_execd.
633 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
634 * target.c (cleanup_target): Remove references to
635 to_has_forked, to_has_vforked, to_has_execd, and
636 to_has_syscall_event.
637 (update_current_target): Likewise.
638 (setup_target_debug): Likewise.
639 (debug_to_has_forked): Remove.
640 (debug_to_has_vforked): Remove.
641 (debug_to_has_execd): Remove.
642 (debug_to_has_syscall_event): Remove.
643 * target.h (struct target_ops): Remove to_has_forked.
644 to_has_vforked, to_has_execd, and to_has_syscall_event.
645 (child_has_forked, child_has_vforked, child_has_execd)
646 (child_has_syscall_event): Remove prototypes.
647 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
648 prototypes.
649 (target_has_forked, target_has_vforked, target_has_execd)
650 (target_has_syscall_event): Remove macros.
651
4088142a
DJ
6522002-11-16 Daniel Jacobowitz <drow@mvista.com>
653
654 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
655 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
656 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
657 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
658 * target.c (cleanup_target): Remove reference to
659 to_can_follow_vfork_prior_to_exec.
660 (update_current_target): Likewise.
661 (debug_to_can_follow_vfork_prior_to_exec): Remove.
662 (setup_target_debug): Remove reference to
663 to_can_follow_vfork_prior_to_exec.
664 * target.h (struct target_ops): Remove
665 to_can_follow_vfork_prior_to_exec.
666 (child_can_follow_vfork_prior_to_exec): Remove prototype.
667 (target_can_follow_vfork_prior_to_exec): Remove definition.
668 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
669 define.
670 * infrun.c (follow_vfork_when_exec): Remove.
671 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
672 (follow_exec): Likewise.
673 (handle_inferior_event): Likewise.
674 (keep_going): Likewise.
675
18cde8d5
AC
6762002-11-15 Andrew Cagney <cagney@redhat.com>
677
678 * frame.c (generic_unwind_get_saved_register): Make static.
679 * frame.h (generic_unwind_get_saved_register): Delete declaration.
680 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
681 defaults to generic_unwind_get_saved_register.
682 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
683 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
684 * frv-tdep.c (frv_gdbarch_init): Ditto.
685 * i386-tdep.c (i386_gdbarch_init): Ditto.
686 * s390-tdep.c (s390_gdbarch_init): Ditto.
687 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
688 * v850-tdep.c (v850_gdbarch_init): Ditto.
689 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
690 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
691 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
692
a6b063af
AC
6932002-11-15 Andrew Cagney <cagney@redhat.com>
694
695 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
696 i386-tdep.c.
697
f407986f
AC
6982002-11-15 Andrew Cagney <cagney@redhat.com>
699
700 * frame.h (sigtramp_saved_pc): Delete declaration.
701 * blockframe.c (sigtramp_saved_pc): Delete function.
702 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
703 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
704 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
705 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
706
f18c5a73
AC
7072002-11-15 Andrew Cagney <ac131313@redhat.com>
708
709 * frame.c (frame_pc_unwind): New function.
710 (frame_saved_regs_pc_unwind): New function.
711 (frame_register_unwind): Pass unwind_cache instead of
712 register_unwind_cache.
713 (set_unwind_by_pc): Add unwind_pc parameter, set.
714 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
715 (get_prev_frame): Ditto.
716 * frame.h (frame_pc_unwind_ftype): Declare.
717 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
718 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
719 (frame_pc_unwind): Declare.
720 * dummy-frame.c (dummy_frame_pc_unwind): New function.
721 (struct dummy_frame): Add comment mentioning that values are for
722 previous frame.
723 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
724 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
725 (generic_file_frame_chain_valid): Ditto.
726 * stack.c (frame_info): Ditto.
727
d9285969 7282002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
729
730 * linespec.c (locate_first_half): New function.
731 (decode_line_1): Move code into locate_first_half.
732
d741b867
AC
7332002-11-15 Andrew Cagney <ac131313@redhat.com>
734
735 * complaints.h: Add comment explaining how to eliminate a
736 deprecated_complain call.
24382c5c 737 * complaints.h: Fix spelling errors.
d741b867 738
82d03c99
DC
7392002-11-15 David Carlton <carlton@math.stanford.edu>
740
741 * printcmd.c: Remove #include "disasm.h".
742
c97eb5d9
AC
7432002-11-14 Andrew Cagney <ac131313@redhat.com>
744
745 * frame.h: Move the most relevant interface functions to the start
746 of the file.
747
524d7c18
AC
7482002-11-14 Andrew Cagney <ac131313@redhat.com>
749
750 * regcache.h (deprecated_registers): Rename registers.
751 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
752 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
753 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
754 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
755 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
756 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
757 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
758 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
759 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
760 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
761 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
762 * v850ice.c: Update.
763
6411e720
AC
764Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
765
766 * utils.c (gdb_realpath): Add comment mentioning realpath with a
767 NULL buffer.
768
73937e03
AC
7692002-11-13 Andrew Cagney <cagney@redhat.com>
770
771 * regcache.h (deprecated_read_register_bytes): Rename
772 read_register_bytes.
773 (deprecated_write_register_bytes): Rename write_register_bytes.
774 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
775 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
776 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
777 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
778 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
779 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
780 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
781 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
782 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
783 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
784 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
785 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
786 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
787 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
788
fb0cd46e
JB
7892002-11-13 Jim Blandy <jimb@redhat.com>
790
791 * findvar.c (read_var_value): Doc fix.
792
2d28509a
AC
7932002-11-13 Andrew Cagney <cagney@redhat.com>
794
795 * regcache.c (struct regcache): Replace passthough_p with
796 readonly_p.
797 (regcache_xmalloc): Initialize readonly_p.
798 (build_regcache): Initialize readonly_p.
799 (regcache_save): New function.
800 (regcache_restore): New function.
801 (regcache_cpy): Re-implement using regcache_save and
802 regcache_restore.
803 (regcache_raw_read): Update.
804 (regcache_cooked_read): When a read-only cache, checked for cached
805 pseudo register values.
806 (regcache_raw_write): Assert that the cache is not read-only.
807 Remove code handling a non-passthrough cache.
808 * regcache.h (regcache_save): Declare.
809 (regcache_restore): Declare.
810
067df2e5
AC
8112002-11-13 Andrew Cagney <cagney@redhat.com>
812
813 * regcache.c (struct regcache_descr): Add fields
814 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
815 (init_legacy_regcache_descr): Compute the size of a cooked
816 register cache and then assign that to sizeof_raw_registers. Set
817 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
818 (init_legacy_regcache_descr): Ditto.
819
51b1fe4e
AC
8202002-11-13 Andrew Cagney <cagney@redhat.com>
821
822 * regcache.c (register_buffer): Move to near start of file, update
823 description.
824 (regcache_raw_read): Use.
825 (regcache_raw_write): Use.
826 (struct regcache): Rename raw_registers to registers and
827 raw_register_valid_p to register_valid_p.
828 (regcache_xmalloc): Update.
829 (regcache_xfree): Update.
830 (register_buffer): Update.
831 (regcache_cpy): Update.
832 (regcache_cpy_no_passthrough): Update.
833 (regcache_valid_p): Update.
834 (deprecated_grub_regcache_for_registers): Update.
835 (deprecated_grub_regcache_for_register_valid): Update.
836 (set_register_cached): Update.
837 (regcache_raw_write): Update.
838
80b4c677
PM
8392002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
840
841 * p-exp.y (name_not_typename): Use copy_name to
842 set current_type variable for fields of THIS.
843
0f3fafde
DJ
8442002-11-12 Daniel Jacobowitz <drow@mvista.com>
845
846 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
847 * monitor.c (init_base_monitor_ops): Likewise.
848 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
849 * remote-array.c (init_array_ops): Likewise.
850 * remote-e7000.c (init_e7000_ops): Likewise.
851 * remote-es.c (init_es1800_ops): Likewise.
852 (init_es1800_child_ops): Likewise.
853 * remote-rdp.c (init_remote_rdp_ops): Likewise.
854 * remote-sim.c (init_gdbsim_ops): Likewise.
855 * remote-st.c (init_st2000_ops): Likewise.
856 * sol-thread.c (init_sol_core_ops): Likewise.
857 (init_sol_thread_ops): Likewise.
858 * v850ice.c (init_850ice_ops): Likewise.
859 * win32-nat.c (init_child_ops): Likewise.
860 * wince.c (init_child_ops): Likewise.
861
82c0260e
AC
8622002-11-12 Andrew Cagney <ac131313@redhat.com>
863
864 * utils.c (gdb_realpath): Make rp a constant pointer.
865
70d35819
AC
8662002-11-12 Andrew Cagney <ac131313@redhat.com>
867
868 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
869 a constant buffer; cannonicalize_file_name(); realpath() with a
870 pathconf() defined buffer, xstrdup().
871
9835a8b0
AC
8722002-11-12 Andrew Cagney <ac131313@redhat.com>
873
874 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
875 to hang2.C; hang3.c to hang3.C.
876
3f47be5c
EZ
8772002-11-11 Elena Zannoni <ezannoni@redhat.com>
878
879 * findvar.c (read_var_value): Reenable TLS code.
880
8812002-11-11 Elena Zannoni <ezannoni@redhat.com>
882 Jim Blandy <jimb@redhat.com>
883
884 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
885 * target.c (update_current_target): Add
886 to_get_thread_local_address.
887 * target.h (to_get_thread_local_address): Export.
888 (target_get_thread_local_address): Define.
889 (target_get_thread_local_address_p): Define.
890 * thread-db.c: Include solib-svr4.h.
891 (td_thr_tls_get_addr_p): Define.
892 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
893 (thread_db_get_thread_local_address): New function.
894 (init_thread_db_ops): Initialize to_get_thread_local_address.
895 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
896 * configure: Regenerate.
897 * config.in: Regenerate.
898
636b1a6d
DC
8992002-11-11 David Carlton <carlton@math.stanford.edu>
900
901 * linespec.c (set_flags): New function.
902 (decode_line_1): Move code into set_flags.
903
44fe14ab
DC
9042002-11-11 David Carlton <carlton@math.stanford.edu>
905
906 * linespec.c (decode_line_1): Move chunks of code to separate
907 functions.
908 (initialize_defaults): New function.
909 (decode_indirect): New function.
910
e6f181f5
AC
9112002-11-11 Andrew Cagney <ac131313@redhat.com>
912
8971b011
AC
913 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
914 instead of void_code_ptr.
915 (sigtramp_saved_pc): Ditto.
916
e6f181f5
AC
917 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
918 i386_fp_regnum_p.
919
01ad7f36
DJ
9202002-11-10 Daniel Jacobowitz <drow@mvista.com>
921
922 * gdbtypes.h (struct main_type): Move artificial flag out of
923 loc. New member of ``struct field'' named static_kind. Reduce
924 overloaded meaning of bitsize.
925 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
926 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
927 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
928
929 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
930 new fields.
931 (template_to_fixed_record_type, template_to_static_fixed_type)
932 (to_record_with_fixed_variant_part): Likewise.
933 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
934 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
935 * dwarfread.c (struct_type, enum_type): Likewise.
936 * hpread.c (hpread_read_enum_type)
937 (hpread_read_function_type, hpread_read_doc_function_type)
938 (hpread_read_struct_type): Likewise.
939 * mdebugread.c (parse_symbol): Likewise.
940
bf1e52be
AC
9412002-11-10 Andrew Cagney <ac131313@redhat.com>
942
943 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
944 * stack.c (print_frame_info_base): Update.
945 (print_frame_info_base, frame_info): Update.
946 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
947 (sparc_frame_saved_pc): Update.
948 * ada-lang.c (find_printable_frame): Update.
949 * breakpoint.c (deprecated_frame_in_dummy): Update.
950
ce556f85
MK
9512002-11-09 Mark Kettenis <kettenis@gnu.org>
952
953 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
954 defined.
955 (regmap): Extend to cover all registers.
956 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
957 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
958 definitions.
959 (fetch_register, sore_register): Simplify.
960 (old_fetch_inferior_registers, old_store_inferior_registers):
961 Remove functions.
962 (cannot_fetch_register, cannot_store_register): Change
963 implementation to use regmap array to decide which registers
964 cannot be fetched/stored. This removes $orig_eax from the
965 registers that cannot be fetched/stored.
966 (fetch_inferior_registers): Call fetch_register directly instead
967 of calling old_fetch_inferior_registers.
968 (store_inferior_registers): Call store_register directly instead
969 of calling old_store_inferior_registers.
970 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
971 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
972 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
973
932bb524
KD
9742002-11-09 Klee Dienes <kdienes@apple.com>
975
976 * i387-tdep.c (i387_supply_register): When called with NULL as a
977 buffer, mark the register as not provided (to mirror the behavior
978 of supply_register).
979 (i387_supply_fxsave): Ditto.
980 (i387_supply_fsave): Ditto (inherits the behavior from
981 i387_supply_register).
982
ebe68b27
KD
9832002-11-09 Klee Dienes <kdienes@apple.com>
984
985 * blockframe.c (sigtramp_saved_pc): Use
986 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
987 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
988 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
989
15220c65
AC
9902002-11-09 Andrew Cagney <ac131313@redhat.com>
991
992 * frame.c (get_prev_frame): Test prev_p to identify a previously
993 unwound frame. Initialize prev_p.
994 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
995 comment.
996
95adb866
AC
9972002-11-09 Andrew Cagney <ac131313@redhat.com>
998
999 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1000 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1001 more comments. Zap dead code.
1002
e71ecd70
MK
10032002-11-09 Mark Kettenis <kettenis@gnu.org>
1004
1005 * infcmd.c (print_vector_info, print_float_info): Move code that
1006 checks whether the target has any registers and whether there is a
1007 selected frame up, such that it is also used if a target provides
1008 multi-arch definitions of these functions.
1009
c525330d
AC
10102002-11-08 Andrew Cagney <ac131313@redhat.com>
1011
72bdd927
AC
1012 * Makefile.in (DESTDIR): Define.
1013 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1014 prefix.
1015
c525330d
AC
1016 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1017 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1018
38c968cf
AC
10192002-11-08 Andrew Cagney <ac131313@redhat.com>
1020
1021 * i386-linux-tdep.c: Include "reggroups.h".
1022 (i386_linux_register_reggroup_p): New function.
1023 (i386_linux_init_abi): Set register_reggroup_p to
1024 i386_linux_register_reggroup_p.
1025 * i386-tdep.h (i386_register_reggroup_p): Declare.
1026 * i386-tdep.c: Include "reggroups.h".
1027 (i386_init_reggroups): New function.
1028 (i386_add_reggroups): New function.
1029 (i386_register_reggroup_p): New function.
1030 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1031 (_initialize_i386_tdep): Call i386_init_reggroups.
1032 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1033 specific reggroups.
1034
19e33363
MK
10352002-11-09 Mark Kettenis <kettenis@gnu.org>
1036
371a6e84
MK
1037 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1038 request that's available in *BSD.
1039
94ba925a
MK
1040 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1041
19e33363
MK
1042 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1043 FDOFF_REGNUM.
1044
8779790c
AC
10452002-11-08 Andrew Cagney <ac131313@redhat.com>
1046
1047 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1048 * dummy-frame.c (find_dummy_frame): Rename
1049 generic_find_dummy_frame, make static. Return the dummy frame
1050 instead of the regcache.
1051 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1052 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1053 (dummy_frame_register_unwind): Rename
1054 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1055 * dummy-frame.h (dummy_frame_register_unwind): Rename
1056 generic_call_dummy_register_unwind.
1057
8674b74f
MK
10582002-11-08 Mark Kettenis <kettenis@gnu.org>
1059
1060 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1061 except the inclusion of "i386/tm-i386.h", to...
1062 * config/i386/nm-i386v42mp.h: ...here.
1063 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1064
4c1e7e9d
AC
10652002-11-08 Andrew Cagney <ac131313@redhat.com>
1066
1067 * Makefile.in (frame.o): Update dependencies.
1068 * blockframe.c (current_frame, frame_obstack_alloc)
1069 (frame_saved_regs_zalloc, get_current_frame)
1070 (set_current_frame, create_new_frame)
1071 (set_unwind_by_pc, get_next_frame)
1072 (flush_cached_frames, reinit_frame_cache)
1073 (frame_saved_regs_register_unwind)
1074 (deprecated_generic_get_saved_register)
1075 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1076 (_initialize_blockframe): Move frame code from here...
1077 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1078 "annotate.h" and "dummy-frame.h".
1079 (_initialize_frame): New function.
1080
921e78cf
JB
10812002-11-08 Jim Blandy <jimb@redhat.com>
1082
1083 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1084 when we finish a function a context.
1085 * buildsym.h (outermost_context_p): New macro.
1086 (Bug analyzed by David Edelsohn.)
1087
9c1412c1
AC
10882002-11-08 Andrew Cagney <ac131313@redhat.com>
1089
1090 * blockframe.c: Include "dummy-frame.h".
1091 (struct dummy_frame, dummy_frame_stack)
1092 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1093 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1094 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1095 (generic_save_call_dummy_addr, generic_pop_current_frame)
1096 (generic_pop_dummy_frame, generic_fix_call_dummy)
1097 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1098 dummy frame code from here...
1099 * dummy-frame.c: ...to here. New file.
1100 * dummy-frame.h: New file.
1101 (generic_call_dummy_register_unwind): Declare.
1102 (generic_find_dummy_frame): Declare.
1103 * Makefile.in (SFILES): Add dummy-frame.c.
1104 (dummy-frame.o): Specify dependencies.
1105 (dummy_frame_h): Define.
1106 (COMMON_OBS): Add dummy-frame.o.
1107 (blockframe.o): Update dependencies.
1108
208d8187
JB
11092002-11-08 Jim Blandy <jimb@redhat.com>
1110
1111 * dwarf2read.c (read_func_scope): Restore local_symbols and
1112 param_symbols after we finish the function context. (Based on a
1113 patch from David Edelsohn.)
1114
413dad4d
DC
11152002-11-08 David Carlton <carlton@math.stanford.edu>
1116
1117 * linespec.c (symbol_found): New function.
1118 (minsym_found): New function.
1119 (decode_line_1): Separate out some code into separate functions.
1120
5512c44a
JB
11212002-11-08 Joel Brobecker <brobecker@gnat.com>
1122
1123 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1124 the benefit of the interix target.
1125 * i386-tdep.h (i386_frameless_signal_p): Declare.
1126
1b33ef47
AC
11272002-11-08 Andrew Cagney <ac131313@redhat.com>
1128
1129 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1130 declaration that snuck in from change below.
1131
23a34459
AC
11322002-11-06 Andrew Cagney <cagney@redhat.com>
1133
1134 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1135 all callers.
1136 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1137 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1138 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1139 (i386_mxcsr_regnum_p): new function. Use instead of
1140 MXCSR_REGNUM_P.
1141 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1142 (i386_sse_regnum_p): Declare.
1143 (i386_mxcsr_regnum_p): Declare.
1144 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1145 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1146 (IS_FP_REGNUM): Update definition.
1147 (IS_FPU_CTRL_REGNUM): Update definition..
1148 (IS_SSE_REGNUM): Update definition..
1149 * i386v-nat.c (register_u_addr): Update.
1150 * go32-nat.c (fetch_register): Update.
1151 (store_register): Update.
1152
d709c020
JB
11532002-11-07 Joel Brobecker <brobecker@gnat.com>
1154
1155 Preparation work to convert the hppa targets to multiarch partial.
1156
1157 * hppa-tdep.c: Add new functions replacing macro bodies from
1158 config/pa/tm-hppa.h. These function will be used to initialize
1159 the gdbarch structure. Import some comments from tm-hppa.h,
1160 and place them where appropriate, to avoid loosing them when
1161 we cleanup this file.
1162 (hppa_reg_struct_has_addr): New function.
1163 (hppa_inner_than): New function.
1164 (hppa_stack_align): New function.
1165 (hppa_pc_requires_run_before_use): New function.
1166 (hppa_instruction_nullified): New function.
1167 (hppa_register_byte): New function.
1168 (hppa_register_virtual_type): New function.
1169 (hppa_store_struct_return): New function.
1170 (hppa_cannot_store_register): New function.
1171 (hppa_frame_args_address): New function.
1172 (hppa_frame_locals_address): New function.
1173 (hppa_smash_text_address): New function.
1174 (hppa_coerce_float_to_double): New function. Requires the inclusion
1175 of "language.h".
1176
1177 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1178
1179 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1180 gdbarch-eligible macro to a call to the new associated function
1181 created in hppa-tdep.c.
1182 (INNER_THAN): Likewise.
1183 (STACK_ALIGN): Likewise.
1184 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1185 (INSTRUCTION_NULLIFIED): Likewise.
1186 (REGISTER_BYTE): Likewise.
1187 (REGISTER_VIRTUAL_TYPE): Likewise.
1188 (STORE_STRUCT_RETURN): Likewise.
1189 (CANNOT_STORE_REGISTER): Likewise.
1190 (FRAME_ARGS_ADDRESS): Likewise.
1191 (FRAME_LOCALS_ADDRESS): Likewise.
1192 (SMASH_TEXT_ADDRESS): Likewise.
1193 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1194 (ABOUT_TO_RETURN): Delete, as no longer used.
1195
83c31e7d
FN
11962002-11-07 Fernando Nasser <fnasser@redhat.com>
1197
1198 * printcmd.c (disassemble_command): Remove obsolete function.
1199 (_initialize_printcmd): Do not create disassemble command here.
1200 * cli/cli-cmds.c (disassemble_command): New function. Implements
1201 disassemble command.
1202 (init_cli_cmds): Create disassemble command here instead.
1203
0ec30a36
AC
12042002-11-07 Andrew Cagney <ac131313@redhat.com>
1205
1206 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1207
e600bd34
AC
12082002-11-07 Andrew Cagney <ac131313@redhat.com>
1209
1210 * regcache.h (regcache_cooked_read_using_offset_hack)
1211 (regcache_cooked_write_using_offset_hack): Delete declarations.
1212 (register_changed): Delete declaration.
1213 * regcache.c (regcache_cooked_read_using_offset_hack)
1214 (regcache_cooked_write_using_offset_hack): Delete functions.
1215 (cooked_xfer_using_offset_hack): Delete function.
1216 (register_changed): Delete function.
1217
568f8739
JB
12182002-11-07 Jim Blandy <jimb@redhat.com>
1219
1220 * macroscope.c: #include "complaints.h".
1221 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1222 but not in the macro table.
1223 * Makefile.in (macroscope.o): Record dependency.
1224
b0718b7b
JB
12252002-11-07 Joel Brobecker <brobecker@gnat.com>
1226
1227 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1228
2b9e5f3f
AC
12292002-11-07 Andrew Cagney <ac131313@redhat.com>
1230
1231 * regcache.c (deprecated_registers_fetched): Update.
1232 * regcache.h (deprecated_registers_fetched): Rename
1233 registers_fetched.
1234 * remote-vxsparc.c (vx_read_register): Update.
1235 * remote-vxmips.c (vx_read_register): Update.
1236 * remote-vx68.c (vx_read_register): Update.
1237 * irix5-nat.c (fetch_core_registers): Update.
1238 * mipsm3-nat.c (fetch_inferior_registers): Update.
1239 * sun3-nat.c (fetch_inferior_registers): Update.
1240 * symm-nat.c (fetch_inferior_registers): Update.
1241 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1242 (fetch_core_registers): Update.
1243 (fetch_kcore_registers): Update.
1244 * mips-nat.c (fetch_inferior_registers): Update.
1245 * corelow.c (get_core_registers): Update.
1246 * a68v-nat.c (fetch_inferior_registers): Update.
1247
e6e68f1f
JB
12482002-11-06 Joel Brobecker <brobecker@gnat.com>
1249
1250 Put in place the framework necessary for multiarching the hppa targets.
1251 * hppa-tdep.c (hppa_gdbarch_init): New function.
1252 (hppa_dump_tdep): New function.
1253 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1254 tdep structure dumper.
1255 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1256 until the multi-arching conversion has partially been completed.
1257
492254e9
AC
12582002-11-06 Andrew Cagney <ac131313@redhat.com>
1259
1260 * valops.c (value_assign): Merge lval_register case into
1261 lval_reg_frame_relative. Use frame_register and
1262 regcache_cooked_write instead of get_saved_register and
1263 write_register_bytes. After flushing the register cache, try to
1264 re-select the selected frame.
1265
8262ee23
AC
12662002-11-06 Andrew Cagney <ac131313@redhat.com>
1267
1268 * regcache.h (deprecated_register_valid): Rename register_valid.
1269 * regcache.c: Update.
1270 * ia64-aix-nat.c: Update.
1271 * i386gnu-nat.c: Update.
1272 * alpha-nat.c: Update.
1273 * sparc-nat.c: Update.
1274 * lynx-nat.c: Update.
1275 * remote-mips.c: Update.
1276
4facf7e8
JB
12772002-11-06 Joel Brobecker <brobecker@gnat.com>
1278
1279 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1280 to end of file, to be more consistent with the pratice followed
1281 by other targets.
1282
f9418c0f
AC
12832002-11-06 Andrew Cagney <ac131313@redhat.com>
1284
1285 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1286 (print_float_info): Print registers in float_reggroup.
1287 (print_vector_info): Print registers in vector_reggroup.
1288 (default_print_registers_info): When all, print registers in
1289 all_reggroup. Otherwize, print registers in general_reggroup.
1290 (registers_info): Rewrite. Add support for register groups.
1291 Eliminate a goto.
1292
3fe235a7
EZ
12932002-11-06 Elena Zannoni <ezannoni@redhat.com>
1294
1295 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1296 ages.
1297 (symtab_symbol_info): Remove eons old ifdeffed out code.
1298 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1299 command.
1300
ef944135
TR
13012002-11-06 Theodore A. Roth <troth@openavr.org>
1302
1303 * c-exp.y: Add missing semi-colons.
1304 * f-exp.y: Add missing semi-colons.
1305 * m2-exp.y: Add missing semi-colons.
1306 * p-exp.y: Add missing semi-colons.
1307 Add empty action to start rule to avoid a type clash error when
1308 building with bison >= 1.50.
1309
f8302a57
JB
13102002-11-06 Jim Blandy <jimb@redhat.com>
1311
1312 * macrotab.h (struct macro_source_file): Doc fix.
1313
6e382aa3
JJ
13142002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1315
1316 * varobj.c (child_exists, cplus_number_of_children): Change
1317 STREQ macro references to strcmp.
1318 (cplus_name_of_child): Change code to handle the fact that
1319 fields are not necessarily contiguous with regards to their
1320 access control. This is a fix for PR gdb/792.
1321
a216a322
AC
13222002-11-05 Andrew Cagney <ac131313@redhat.com>
1323
1324 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1325 * gdbarch.h, gdbarch.c: Regnerate.
1326 * frame.h (frame_register): Declare.
1327 * frame.c (frame_register): New function.
1328 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1329 GET_SAVED_REGISTER, otherwize call
1330 generic_unwind_get_saved_register.
1331 (frame_register_read): Use frame_register instead of
1332 get_saved_register.
1333
7d5b6fdd
EZ
13342002-11-05 Elena Zannoni <ezannoni@redhat.com>
1335
1336 From Jim Ingham <jingham@apple.com>:
1337 * event-top.c (gdb_disable_readline): New function.
1338 (_initialize_event_loop): Move comment.
1339
b7c64260
EZ
13402002-11-05 Elena Zannoni <ezannoni@redhat.com>
1341
1342 * event-loop.c (start_event_loop): Add comment.
1343 Update copyright.
1344
c2e1b8f2
AC
13452002-11-05 Andrew Cagney <ac131313@redhat.com>
1346
1347 * infcmd.c (default_print_registers_info): Do not call
1348 PRINT_REGISTER_HOOK.
1349
87647bb0
AC
13502002-11-05 Andrew Cagney <ac131313@redhat.com>
1351
1352 * sparc-tdep.c (sparc_print_register_hook): Make static.
1353 (sparc_print_registers_info): New function.
1354 (sparc_do_registers_info): New function.
1355 (sparclet_print_registers_info): New function.
1356 (sparclet_do_registers_info): New function.
1357 (do_sparc_print_registers_info): New function.
1358 (sparc_print_registers): New static function, clone of infcmd.c's
1359 default_print_registers_info.
1360 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1361 (sparclet_do_registers_info): Declare.
1362 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1363 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1364 Re-define.
1365 (sparc_do_registers_info): Declare.
1366 (PRINT_REGISTER_HOOK): Delete macro.
1367 (sparc_print_register_hook): Delete declaration.
1368
8155455b
DC
13692002-11-05 David Carlton <carlton@math.stanford.edu>
1370
1371 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1372 functions.
1373 (lookup_symbol_aux_local): New function.
1374 (lookup_symbol_aux_symtabs): New function.
1375 (lookup_symbol_aux_psymtabs): New function.
1376
29924310
DC
13772002-11-05 David Carlton <carlton@math.stanford.edu>
1378
1379 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1380 previous values of 'objfile' and 'block'.
1381
cc303028
PM
13822002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1383
1384 * values.c (value_change_enclosing_type): Set
1385 enclosing_type field correctly also for the case where
1386 more memory needs to be allocated.
1387
1d70089a
MK
13882002-11-03 Mark Kettenis <kettenis@gnu.org>
1389
f16a25ae
MK
1390 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1391 of puts_filtered.
1392
1d70089a
MK
1393 * i387-tdep.c (i387_print_float_info): Replace calls to
1394 register_read and deprecated_read_register_gen with calls to
1395 frame_register_read, and make the necessary adjustments to the
1396 surrounding code.
1397
7e20f3fb
AC
13982002-11-02 Andrew Cagney <ac131313@redhat.com>
1399
1400 * gdbarch.sh (register_reggroup_p): Allow default value.
1401 * gdbarch.h, gdbarch.c: Regenerate.
1402
192dbe33
AC
14032002-11-02 Andrew Cagney <ac131313@redhat.com>
1404
1405 * regcache.h: Add coment indicating replacements for deprecated
1406 functions.
1407
b59ff9d5
AC
14082002-11-02 Andrew Cagney <cagney@redhat.com>
1409
1410 * reggroups.h, reggroups.c: New files.
1411 * regcache.c: Include "reggroups.h".
1412 (enum regcache_dump_what): Add `regcache_dump_groups'.
1413 (regcache_dump): Contract size of the "Type" column. When
1414 specified, dump the register's groups.
1415 (maintenance_print_register_groups): New function.
1416 (_initialize_regcache): Add command `maint print register-groups'.
1417 * Makefile.in (COMMON_OBS): Add reggroups.o
1418 (SFILES): Add reggroups.c.
1419 (reggroups_h): Define.
1420 (regcache.o, gdbarch.o): Update dependencies.
1421 (reggroups.o): Specify dependencies.
1422 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1423 Add opaque declaration for `struct reggroup' in generated .h file.
1424 Include "reggroups.h" in generated .c file.
1425 gdbarch.h, gdbarch.c: Re-generate.
1426
4caf0990
AC
14272002-11-02 Andrew Cagney <cagney@redhat.com>
1428
1429 * regcache.h (deprecated_read_register_gen): Rename
1430 read_register_gen.
1431 (deprecated_write_register_gen): Rename write_register_gen.
1432 * i387-tdep.c: Update.
1433 * x86-64-linux-nat.c: Update
1434 * wince.c: Update.
1435 * thread-db.c: Update.
1436 * win32-nat.c: Update.
1437 * mips-tdep.c: Update.
1438 * d10v-tdep.c: Update.
1439 * cris-tdep.c: Update.
1440 * remote-sim.c: Update.
1441 * remote-rdi.c: Update.
1442 * remote-rdp.c: Update.
1443 * frame.c: Update.
1444 * target.c: Update.
1445 * blockframe.c: Update.
1446 * x86-64-tdep.c: Update.
1447 * xstormy16-tdep.c: Update.
1448 * sh-tdep.c: Update.
1449 * s390-tdep.c: Update.
1450 * rs6000-tdep.c: Update.
1451 * sparc-tdep.c: Update.
1452 * i386-tdep.c: Update.
1453 * dwarf2cfi.c: Update.
1454 * regcache.c: Update.
1455
7a7adcdf
JB
14562002-11-01 Joel Brobecker <brobecker@gnat.com>
1457
1458 New interix-specific files:
1459 * config/i386/nm-interix.h: New file.
1460 * config/i386/interix.mh: New file.
1461 * config/i386/interix.mt: New file.
1462 * i386-interix-nat.c: New file.
1463 * i386-interix-tdep.c: New file.
1464
bdcdd535
AC
14652002-11-01 Andrew Cagney <cagney@redhat.com>
1466
1467 * frame.h (deprecated_generic_get_saved_register): Rename
1468 generic_get_saved_register.
1469 * blockframe.c (deprecated_generic_get_saved_register): Update.
1470 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1471 (xstormy16_frame_saved_register): Update.
1472 * sh-tdep.c (sh_gdbarch_init): Update.
1473 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1474 * ia64-tdep.c (ia64_get_saved_register): Update.
1475 * cris-tdep.c (cris_gdbarch_init): Update.
1476 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1477 * arm-tdep.c (arm_gdbarch_init): Update.
1478
2a4b7c45
DJ
14792002-10-31 Daniel Jacobowitz <drow@mvista.com>
1480
1481 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1482
ef17e74b
DJ
14832002-10-31 Daniel Jacobowitz <drow@mvista.com>
1484
1485 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1486 trampolines in sigaction.
1487
4904ba5b
AC
14882002-10-31 Andrew Cagney <cagney@redhat.com>
1489
1490 * h8300-tdep.c: Include "gdb_assert.h".
1491 (h8300_print_register): Add gdbarch, file and frame parameters.
1492 Use frame_read_unsigned_register to read the register's value.
1493 Use fprintf_filtered to display output.
1494 (h8300_print_registers_info): Replace h8300_do_registers_info.
1495 (h8300_gdbarch_init): Set print_registers_info.
1496
f908a0eb
AC
14972002-10-31 Andrew Cagney <cagney@redhat.com>
1498
1499 * frame.c (frame_read_unsigned_register): New function.
1500 (frame_read_signed_register): New function.
1501 * frame.h (frame_read_unsigned_register): Declare.
1502 (frame_read_signed_register): Declare.
1503
c5646e11
AC
15042002-10-31 Andrew Cagney <cagney@redhat.com>
1505
1506 * h8500-tdep.c (h8500_print_registers_info): New static function,
1507 clone of infcmd.c's default_print_registers_info.
1508 (h8500_do_registers_info): New funtion.
1509 (h8500_print_register_hook): Rename print_register_hook, make
1510 static.
1511
1512 * config/h8500/tm-h8500.h: Update copyright.
1513 (DEPRECATED_DO_REGISTERS_INFO): Define.
1514 (h8500_do_registers_info: Declare.
1515 (PRINT_REGISTER_HOOK): Delete macro.
1516 (print_register_hook): Delete function.
1517
0bdd672b
AC
15182002-10-31 Andrew Cagney <cagney@redhat.com>
1519
1520 * z8k-tdep.c (z8k_print_register_hook): Make static.
1521 (z8k_print_registers_info): New static function, clone of
1522 infcmd.c's default_print_registers_info.
1523 (z8k_do_registers_info): New function. Wrap
1524 z8k_print_registers_info.
1525 * config/z8k/tm-z8k.h: Update copyright.
1526 (PRINT_REGISTER_HOOK): Delete macro.
1527 (z8k_print_register_hook): Delete declaration.
1528 (DEPRECATED_DO_REGISTERS_INFO): Define.
1529 (z8k_do_registers_info): Declare.
1530
bf9c25dc
JB
15312002-10-30 Joel Brobecker <brobecker@gnat.com>
1532
1533 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1534 as this is already provided by value.h, and was actually causing
1535 a compilation error because of a conflict in parameter type
1536 declaration due to a missing const keyword.
1537 (low_text_segment_addres): Fix a compilation warning.
1538
2c665b51
DJ
15392002-10-29 Daniel Jacobowitz <drow@mvista.com>
1540
1541 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1542 registers without a name.
1543 (mips_linux_cannot_store_register): Don't store registers without
1544 a name.
1545
e70ea697
DC
15462002-10-28 David Carlton <carlton@math.stanford.edu>
1547
1548 * symtab.c (find_addr_symbol): Delete. (It was already commented
1549 out.)
1550 * symtab.h: Delete prototype for find_addr_symbol.
1551
903ad3a6
AC
15522002-10-26 Andrew Cagney <cagney@redhat.com>
1553
1554 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1555 DO_REGISTERS_INFO.
1556 gdbarch.h, gdbarch.c: Re-generate.
1557 * infcmd.c (default_print_registers_info): Update reference.
1558 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1559 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1560 * sh-tdep.c (sh_gdbarch_init): Ditto.
1561 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1562 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1563
ab91194c
MK
15642002-10-26 Mark Kettenis <kettenis@gnu.org>
1565
e3033f15
MK
1566 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1567 cfi_init_extra_frame_info.
1568 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1569 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1570
b83b026c
MK
1571 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1572 target where necessary. Add more comments and remove the ones
1573 that don't provide any useful information.
1574
267bf4bb
MK
1575 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1576 deprecated_read_register_dummy with
1577 frame_unwind_unsigned_register.
1578
751f1375
MK
1579 * i386-tdep.c (i386_extract_struct_value_address): Use
1580 regcache_raw_read_unsigned instead of
1581 regcache_cooked_read_unsigned since we know that the register
1582 we're reading isn't a pseudo register. Rename variable 'val' into
1583 the more descriptive 'addr'.
1584
26abbdc4
MK
1585 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1586 (x86_64_push_return_address): Add comment.
1587 (x86_64_pop_frame): Make static.
1588 (examine_argument): Clarify comment.
1589 (x86_64_skip_prologue): Make prolog_expact variable static.
1590
9f1549cc
MK
1591 * dwarf2cfi.c: Fix some formatting problems.
1592 (context_cpy, read_encoded_pointer): Clarify comments.
1593
ab91194c
MK
1594 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1595 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1596 i386 target back into x86_64_gdbarch_init. Add some comments and
1597 remove meaningless ones.
1598
72367fb4
AC
15992002-10-25 Andrew Cagney <cagney@redhat.com>
1600
1601 * complaints.h (struct deprecated_complaint): Rename `struct
1602 complaint'.
1603 * complaints.c (complain): Update.
1604 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1605 incorrect comment indicating that "symfile.h" was being included
1606 for the `struct complaint' definition.
1607 * remote-vx.c: Update.
1608 * objc-lang.c: Update.
1609 * xcoffread.c: Update.
1610 * hpread.c: Update.
1611 * mdebugread.c: Update.
1612 * stabsread.c: Update.
1613 * dwarf2read.c: Update.
1614 * dwarfread.c: Update.
1615 * elfread.c: Update.
1616 * coffread.c: Update.
1617 * stabsread.h: Update.
1618 * dbxread.c: Update.
1619 * buildsym.c: Update.
1620 * gdbtypes.c: Update.
1621 * macrotab.c: Update.
1622
1f2baacc
MK
16232002-10-25 Mark Kettenis <kettenis@gnu.org>
1624
0c1a73d6
MK
1625 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1626 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1627 (x86_64_init_abi): ...new function.
1628
6aee4d54 1629 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
1630 * i386v-nat.c: Include "i386-tdep.h".
1631
8f9cbe01
AC
16322002-10-25 Andrew Cagney <cagney@redhat.com>
1633
5f11f355
AC
1634 * gdbtypes.c (address_space_name_to_int): Update.
1635 (address_space_int_to_name): Update.
1636 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1637 multi-arch predicate.
1638 (address_class_name_to_type_flags): Ditto.
1639 * gdbarch.h, gdbarch.c: Re-generate.
1640
8f9cbe01
AC
1641 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1642
e8d96a5d
MH
16432002-10-24 Martin M. Hunt <hunt@redhat.com>
1644
1645 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1646
fe39c653
EZ
16472002-10-24 Elena Zannoni <ezannoni@redhat.com>
1648
1649 * symtab.h (INIT_SAL): Delete macro.
1650 (init_sal): Export.
1651 * symtab.c (init_sal): New function.
1652
1653 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1654 to init_sal function call.
1655 (find_sal_from_funcs_and_line): Ditto.
1656 (all_sals_for_line): Ditto.
1657 * breakpoint.c (create_internal_breakpoint): Ditto.
1658 (create_fork_vfork_event_catchpoint): Ditto.
1659 (create_exec_event_catchpoint): Ditto.
1660 (parse_breakpoint_sals): Ditto.
1661 (watch_command_1): Ditto.
1662 (handle_gnu_4_16_catch_command): Ditto.
1663 (clear_command): Ditto.
1664 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1665 * infcmd.c (run_stack_dummy): Ditto.
1666 * infrun.c (process_event_stop_test): Ditto.
1667 (check_sigtramp2): Ditto.
1668 (step_over_function): Ditto.
1669 * linespec.c (decode_line_2): Ditto.
1670 (decode_line_1): Ditto.
1671 * source.c (line_info): Ditto.
1672 * symtab.c (find_pc_sect_line): Ditto.
1673
baed091b
ML
16742002-10-24 Michal Ludvig <mludvig@suse.cz>
1675
1676 * dwarf2cfi.c (struct context)
1677 (struct context_reg): Moved to dwarf2cfi.h
1678 (context_alloc, frame_state_alloc, context_cpy):
1679 Made extern instead of static, removed prototypes.
1680 * dwarf2cfi.h (struct context)
1681 (struct context_reg): New, moved from dwarf2cfi.c
1682 (context_alloc, frame_state_alloc, context_cpy):
1683 New prototypes.
1684 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1685 Changed from static to extern.
1686 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1687 (LINUX_SIGCONTEXT_FP_OFFSET)
1688 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1689 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1690 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1691 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1692 set_gdbarch_*() calls now use x86-64 specific functions
1693 instead of DWARF2 CFI ones.
1694 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1695 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1696 (x86_64_init_extra_frame_info): New prototypes.
1697
c38da1af
DC
16982002-10-23 David Carlton <carlton@math.stanford.edu>
1699
1700 * linespec.c: #include "parser-defs.h".
1701 Delete prototype for find_template_name_end.
1702 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1703
fb9b6b35
JJ
17042002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1705
1706 * NEWS: add recent mi fixes.
1707 * varobj.c (struct varobj): Add new "updated" flag.
1708 (new_variable): Default "updated" flag to 0.
1709 (varobj_set_value): Set "updated" flag to 1 if value
1710 changes.
1711 (varobj_update): Check varobj "updated" flag before
1712 comparing old and refreshed values. Fix for
1713 PR gdb/702.
1714
8da065d5
DC
17152002-10-23 David Carlton <carlton@math.stanford.edu>
1716
1717 * parse.c (parse_exp_1): Use BLOCK_START.
1718 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1719 SYMBOL_BLOCK_VALUE.
1720 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1721
87f2f08c
DC
17222002-10-23 David Carlton <carlton@math.stanford.edu>
1723
1724 * symtab.c: Delete cplusplus_hint.
1725 Delete prototype for find_template_name_end.
1726
88cda038
EZ
17272002-10-23 Elena Zannoni <ezannoni@redhat.com>
1728
1729 * symtab.h: Update comment.
1730
2625d86c
MS
17312002-10-23 Michael Snyder <msnyder@redhat.com>
1732
1733 * printcmd.c (address_info): Restore quotes in output.
1734 * valops.c (value_of_local): Restore quotes in error message.
1735
9cc0d196
EZ
17362002-10-23 Elena Zannoni <ezannoni@redhat.com>
1737
1738 * symtab.c (symbol_demangled_name): New function.
1739 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1740 turning most of it into a function.
1741 (symbol_demangled_name): Export.
1742
19de93d0
MS
17432002-10-23 Michael Snyder <msnyder@redhat.com>
1744
1745 * valops.c (value_of_local): Restore quotes in error message.
1746
89aad1f9
EZ
17472002-10-23 Elena Zannoni <ezannoni@redhat.com>
1748
1749 * symtab.c (symbol_init_language_specific): New function.
1750 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1751 turning most of it into a function.
1752 (symbol_init_language_specific): Export.
1753
d9fa45fe
DC
17542002-10-23 David Carlton <carlton@math.stanford.edu>
1755
1756 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1757 (dwarf_attr_name): Ditto.
1758 (dwarf_type_encoding_name): Ditto.
1759 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1760 (process_die): Handle DW_TAG_namespace,
1761 DW_TAG_imported_declaration, DW_TAG_imported_module.
1762 (read_namespace): New function.
1763
1045b512
JB
17642002-10-22 Joel Brobecker <brobecker@gnat.com>
1765
1766 * configure.in: Define NEW_PROC_API on Interix too.
1767 * configure: Regenerate.
1768
17692002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
1770
1771 * configure: Regenerate using the proper version of autoconf.
1772
3987b9d4
EZ
17732002-10-21 Elena Zannoni <ezannoni@redhat.com>
1774
1775 * findvar.c (read_var_value): Temporarily disable TLS code, until
1776 complete TLS support is added.
1777
9d774e44
EZ
17782002-10-21 Jim Blandy <jimb@redhat.com>
1779 Elena Zannoni <ezannoni@redhat.com>
1780
1781 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1782 for thread local storage locations.
1783 (struct symbol): Add objfile field.
1784 (SYMBOL_OBJFILE): Define.
1785 * dwarf2read.c (is_thread_local): New static variable.
1786 (new_symbol): If variable is in thread local fill in address class
1787 and objfile appropriately.
1788 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1789 stack operation.
1790 * printcmd.c (address_info): Print the information for thread
1791 local storage variable.
1792 * findvar.c (read_var_value): In case of thread local variable,
1793 defer to the target vector code to compute address.
1794
bc4a16ae
EZ
17952002-10-21 Elena Zannoni <ezannoni@redhat.com>
1796
1797 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1798 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1799
407caf07
EZ
18002002-10-21 Elena Zannoni <ezannoni@redhat.com>
1801
1802 * symtab.h (address_class): Rename
1803 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1804 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1805 * printcmd.c (address_info): Ditto.
1806 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1807
005328e3
MK
18082002-10-20 Mark Kettenis <kettenis@gnu.org>
1809
afdb036a
MK
1810 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1811 DBREG_DRX macro to acces debug registers.
1812
ca02e098
MK
1813 * Makefile.in (i386obsd-tdep.o): New target.
1814
03cc47f7
MK
1815 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1816 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1817
005328e3
MK
1818 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1819 * config/i386/obsd.mt: New file.
1820 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1821 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1822 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1823 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1824 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1825 * i386obsd-tdep.c: New file.
1826
9c96f9f2
AF
18272002-10-19 Adam Fedor <fedor@gnu.org>
1828
1829 * objc-exp.y (name_not_typename): Fix invalid comment.
1830
ce1ed485
MK
18312002-10-20 Mark Kettenis <kettenis@gnu.org>
1832
1833 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1834 to allocate partial syms and macro byte caches.
1835
1efc7aaa
DC
18362002-10-18 David Carlton <carlton@math.stanford.edu>
1837
1838 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1839
7e1d63ec
AF
18402002-10-18 Adam Fedor <fedor@gnu.org>
1841
1842 * stabsread.c (find_name_end): New function.
1843 (define_symbol): Use it.
1844
6e8d29a9
DJ
18452002-10-18 Daniel Jacobowitz <drow@mvista.com>
1846
1847 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1848 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1849 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1850 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1851
1efc7aaa 18522002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
1853
1854 * symfile.h: Add opaque declaration for struct obstack.
1855 Declare obsavestring to take a const char *.
1856 * symfile.c (obsavestring): Make first argument a const char *.
1857
1aeae86e
AF
18582002-10-16 Adam Fedor <fedor@gnu.org>
1859
1860 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1861 names when matching breakpoints in current file.
1862
8b2dbe47
KB
18632002-10-16 Kevin Buettner <kevinb@redhat.com>
1864
1865 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1866 (read_tag_pointer_type): Add address class support.
1867 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1868 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1869 New methods.
1870 * gdbarch.h, gdbarch.c: Regenerate.
1871 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1872 (make_type_with_address_space, recursive_type_dump): Add address
1873 class support.
1874 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1875 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1876 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1877
74451869
KD
18782002-10-16 Klee Dienes <kdienes@apple.com>
1879
1880 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1881 to get the last character of a char[] buffer, not
1882 name[sizeof(vptr_name)-1].
1883
ff4cb3e8
AF
18842002-10-14 Adam Fedor <fedor@gnu.org>
1885
1886 * symtab.h: New objc_specific struct.
1887 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1888 (SYMBOL_DEMANGLED_NAME): Likewise.
1889
da2cf7e0
AF
18902002-10-14 Adam Fedor <fedor@gnu.org>
1891
1892 * symfile.c (init_filename_language_table): Add ObjC file extension.
1893
4a351cef
AF
18942002-10-14 Adam Fedor <fedor@gnu.org>
1895
1896 * utils.c (puts_filtered_tabular): New function.
1897 (fprintf_symbol_filtered): Get ObjC demangled name.
1898 * defs.h (puts_filtered_tabular): Declared.
1899
9750e763
KB
19002002-10-14 Kevin Buettner <kevinb@redhat.com>
1901
1902 * c-lang.h (c_type_print_varspec_prefix): Delete.
1903 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1904 ``need_post_space'' parameter. Adjust all callers.
1905
eee771c1
DJ
19062002-10-14 Daniel Jacobowitz <drow@mvista.com>
1907
1908 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1909 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1910 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1911 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1912
46c82446
AF
19132002-10-13 Adam Fedor <fedor@gnu.org>
1914
1915 * source.c (print_source_lines): Update comments.
1916
d069f99d
AF
19172002-10-13 Adam Fedor <fedor@gnu.org>
1918
1919 * valops.c (value_of_local): New function.
1920 (value_of_this): Use it.
1921 * value.h (value_of_local): Declared.
1922
53c551b7
AF
19232002-10-13 Adam Fedor <fedor@gnu.org>
1924
1925 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1926 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1927
eb392fbf
AF
19282002-10-12 Adam Fedor <fedor@gnu.org>
1929
1930 * language.c (binop_result_type): Add language_objc to case.
1931 (integral_type): Likewise.
1932 (character_type): Likewise.
1933 (string_type): Likewise.
1934 (boolean_type): Likewise.
1935 (structured_type): Likewise.
1936 (binop_type_check): Likewise.
1937
e2b23ee9
AF
19382002-10-11 Adam Fedor <fedor@gnu.org>
1939
1940 * printcmd.c (address_info): Print 'self' for ObjC.
1941
b01ab485
AF
19422002-10-11 Adam Fedor <fedor@gnu.org>
1943
1944 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1945 OP_SELF.
1946
806e6073
AF
19472002-10-11 Adam Fedor <fedor@gnu.org>
1948
1949 * language.h (CAST_IS_CONVERSION): Add language_objc.
1950
50f85cdf
AF
19512002-10-11 Adam Fedor <fedor@gnu.org>
1952
1953 * defs.h (enum language): Add language_objc.
1954
0d540cdf
KD
19552002-10-11 Klee Dienes <kdienes@apple.com>
1956
69266111 1957 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
1958 * gdbcore.h (read_memory_typed_address): Add prototype.
1959 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1960 to read a value destined for a CORE_ADDR, not read_memory_integer.
1961 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1962 (f77_get_dynamic_lowerbound): Ditto.
1963
d5dc7960
MH
19642002-10-11 Martin M. Hunt <hunt@redhat.com>
1965
1966 * utils.c (string_to_core_addr): After turning string into
1967 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1968 which will do necessary sign-extension, etc.
1969
8343f86c
DJ
19702002-10-11 Daniel Jacobowitz <drow@mvista.com>
1971
1972 * c-exp.y (THIS): Delete token and grammar rule.
1973 (yylex): Don't return THIS.
1974 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1975 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1976 * demangle.c (cplus_markers): Update comment. Put '$'
1977 first. Remove CPLUS_MARKER.
1978 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1979 * jv-exp.y (THIS): Delete token and grammar rule.
1980 (yylex): Don't return THIS.
1981 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1982 * objc-exp.y (THIS): Delete token and grammar rule.
1983 (yylex): Don't return THIS.
1984 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1985 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1986 (read_member_functions): Likewise for opname.
1987 (read_tilde_fields): Use is_cplus_marker.
1988
1989 * defs.h (CPLUS_MARKER): Don't define.
1990 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1991 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1992 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1993 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1994 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1995
1996 * config/i386/tm-i386v4.h: Delete file.
1997 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1998 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1999 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2000 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2001 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2002 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2003 * config/i386/i386v4.mt (TM_FILE): Likewise.
2004 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2005
967c0d83
MM
20062002-10-10 Marko Mlinar <markom@opencores.org>
2007
2008 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2009 accidentially not commited 2002-10-09
2010 * gdbarch.h, gdbarch.c: Re-generate.
2011
f74fa174
MM
20122002-10-09 Marko Mlinar <markom@opencores.org>
2013
2014 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2015 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2016 * gdbarch.h, gdbarch.c: Re-generate.
2017
57349743
JB
20182002-10-08 Petr Sorfa <petrs@caldera.com>
2019
2020 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2021
2022 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2023 so we can work on more than one compilation unit at a time. This
2024 helps prepare GDB to handle inter-CU die references.
2025 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2026 the code to be defined before struct comp_unit_head.
2027 (comp_unit_head): Added new members - offset, cu_head,
2028 begin_die, next and dwarf2_abbrevs.
2029 (dwarf2_abbrevs): Removed single static var; now member of
2030 struct comp_unit_head.
2031 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2032 members.
2033 (psymtab_to_symtab_1): Changed to work with the new
2034 struct comp_unit_head.
2035 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2036 constructs the dwarf2_abbrevs[] inside the cu_header.
2037 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2038 dwarf2_abbrev table to clean up.
2039 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2040 handling of dwarf2_abbrevs inside the cu_header.
2041 (read_partial_die): Now supports the call to the new
2042 dwarf2_lookup_abbrev.
2043 (read_full_die): Now supports the call to the new
2044 dwarf2_lookup_abbrev.
2045
4092aadb
CF
20462002-10-06 Christopher Faylor <cgf@redhat.com>
2047
2048 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2049 insure that shell variables, such as "transformed_name" are propagated
2050 to later shell statements in rule.
2051
af0b2512
MK
20522002-10-06 Mark Kettenis <kettenis@gnu.org>
2053
2054 * config/i386/nm-i386sco.h: Add protection against
2055 multiple-inclusion. Include "i386/nm-i386v.h".
2056 (REGISTER_U_ADDR): Remove define.
2057 (i386_register_u_addr): Remove prototype.
2058
d6020d45
MS
20592002-10-04 Michael Snyder <msnyder@redhat.com>
2060
2061 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2062 before treating it as a single-step event.
2063
7248f48e
AF
20642002-10-03 Adam Fedor <fedor@gnu.org>
2065
2066 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2067 (objc_demangle): Remove assignment in if statements, Replace
2068 free with xfree.
2069 (add_msglist): Likewise.
2070 (end_msglist): Likewise.
2071 (complare_selectors): Likewise.
2072 (selectors_info): Likewise.
2073 (compare_classes): Likewise.
2074 (classes_info): Likewise.
2075 (print_object_command): Likewise.
2076 (find_objc_msgcall_submethod): Replace PTR with void *.
2077 * objc-lang.h: Remove check for __STDC__.
2078
52c6a6ac
JJ
20792002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2080
2081 * ui-out.h (ui_out_field_fmt_int): New prototype.
2082 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2083 of field width and alignment.
2084 * stack.c (print_frame_info_base): When printing frame level, use
2085 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2086 PR gdb/192
2087
7e3cec17
JJ
20882002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2089
2090 * MAINTAINERS: Add self to Write After Approval list.
2091
a58dd373
EZ
20922002-10-02 Elena Zannoni <ezannoni@redhat.com>
2093
2094 * infcmd.c (interrupt_target_command_wrapper): Delete.
2095 (interrupt_target_command): Make non static.
2096 (nofp_registers_info): Make static.
2097 * stack.c (return_command_wrapper): Delete.
2098 (return_command): Make non static.
2099
cee6ddeb
EZ
21002002-10-02 Elena Zannoni <ezannoni@redhat.com>
2101
2102 * event-top.c (gdb_setup_readline): New function. Code moved from
2103 _initialize_event_loop().
2104 (_initialize_event_loop): Call gdb_setup_readline().
2105
c4ed33b9
AC
21062002-10-02 Andrew Cagney <ac131313@redhat.com>
2107
2108 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2109 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2110 * gdbarch.h, gdbarch.c: Re-generate.
2111
cef4f5dd
DJ
21122002-10-02 Daniel Jacobowitz <drow@mvista.com>
2113
2114 Fix PR gdb/778
2115 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2116 before recursing.
2117 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2118 of fill_in_vptr_fieldno.
2119
36dc181b 21202002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 2121
36dc181b
EZ
2122 * inferior.h (registers_info, stepi_command, nexti_command,
2123 continue_command, interrupt_target_command): Export from infcmd.c.
2124 * frame.h (args_info, selected_frame_level_changed_hook,
2125 return_command): Export from stack.c.
2126 * v850ice.c (stepi_command, nexti_command, continue_command): use
2127 prototypes from inferior.h.
2128 * tracepoint.c (registers_info, args_info, locals_info): Use
2129 prototypes from frame.h and inferior.h.
2130 * Makefile.in (mi-main.o): Add dependency on frame.h.
2131
6f99cb26
AC
21322002-10-02 Andrew Cagney <ac131313@redhat.com>
2133
da3eff49
AC
2134 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2135 value in register 3 adjusted by ppc_gp0_regnum.
2136
6f99cb26
AC
2137 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2138
da615bee
MM
21392002-10-02 Marko Mlinar <markom@opencores.org>
2140
2141 * MAINTAINERS: Add myself to the Write After Approval list.
2142
d154bee2
AO
21432002-10-01 Alexandre Oliva <aoliva@redhat.com>
2144
62a49b2c
AO
2145 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2146 of the section for the N64 ABI, fixed.
2147
d154bee2
AO
2148 * config/mips/tm-irix6.h: Include solib.h.
2149
ed348acc
EZ
21502002-10-01 Elena Zannoni <ezannoni@redhat.com>
2151
2152 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2153 GNU operators.
2154
da0f9dcd
AC
21552002-10-01 Andrew Cagney <ac131313@redhat.com>
2156
2157 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2158 and that "mi0" syntax has been removed.
2159
bdf64bac
DC
21602002-09-30 David Carlton <carlton@math.stanford.edu>
2161
2162 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2163 * ppc-sysv-tdep.c: #include "gdb_string.h".
2164 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2165 pacify GCC.
2166
54c2a1e6
AC
21672002-10-01 Andrew Cagney <ac131313@redhat.com>
2168
2169 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2170 "vrsave"'s register number.
2171
cedea778
AC
21722002-09-30 Andrew Cagney <ac131313@redhat.com>
2173
2174 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2175 use frame_unwind_signed_register to obtain the PC.
2176 (mips_frame_chain): Handle a generic dummy frame.
2177 (mips_init_extra_frame_info): When a generic dummy frame, don't
2178 re-compute the frame base.
2179 (mips_pop_frame): Handle generic dummy frames.
2180 (mips_gdbarch_init): When generic dummy frames, set
2181 use_generic_dummy_frames, push_dummy_frame to
2182 generic_push_dummy_frame, pc_in_call_dummy to
2183 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2184 generic_save_dummy_frame_tos.
2185
68315eb8
AC
21862002-09-30 Andrew Cagney <ac131313@redhat.com>
2187
2188 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2189 against TOP when TOP was explictly set.
2190 (generic_push_dummy_frame): Set TOP to zero.
2191
3b8630c3
EZ
21922002-09-30 Elena Zannoni <ezannoni@redhat.com>
2193
2194 * event-loop.c (start_event_loop): Rename variable 'result' to
2195 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2196
28ee05e9
KS
21972002-09-30 Keith Seitz <keiths@redhat.com>
2198
2199 * gdb-events.sh (selected_thread_changed): New event.
2200 * gdb-events.c: Regenerated.
2201 * gdb-events.h: Regenerated.
2202
6eecb1c8
HPN
22032002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2204
2205 * MAINTAINERS: Add self to Write After Approval list.
2206
92df71f0
FN
22072002-09-30 Fernando Nasser <fnasser@redhat.com>
2208
3b8630c3
EZ
2209 * disasm.c: New file.
2210 * disasm.h: New file.
92df71f0
FN
2211 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2212 (compare_lines): Ditto.
2213 (dump_insns): Ditto.
3b8630c3
EZ
2214 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2215 argument.
92df71f0 2216 (do_assembly_only): Ditto.
3b8630c3
EZ
2217 (do_disassembly): Renamed to gdb_disassembly and moved to
2218 disasm.c. Sdded uiout argument.
2219 * Makefile.in: Add new files. Reorder SFILES list. Update
2220 dependencies. Include libgdb.a later in the insight executable.
92df71f0 2221
0c22854d
AC
22222002-09-29 Andrew Cagney <ac131313@redhat.com>
2223
2224 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2225 bfd/elf64-alpha-fbsd.c.
2226
e67f2023
AC
22272002-09-29 Andrew Cagney <ac131313@redhat.com>
2228
2229 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2230 i386gnu-tdep.c.
2231
89396210
AC
22322002-09-29 Andrew Cagney <ac131313@redhat.com>
2233
2234 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2235 __FUNCTION__.
2236 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2237 function name.
2238 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2239 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2240 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2241 (S_msg_sig_post_reply): Ditto.
2242
7079c36c
CV
22432002-09-28 Corinna Vinschen <vinschen@redhat.com>
2244
89396210
AC
2245 * sh-tdep.c (sh_use_struct_convention): Use definition according
2246 to ABI.
7079c36c
CV
2247 (sh_push_arguments): Store in register with correct endianess.
2248 (sh_default_store_return_value): Ditto.
2249 (sh_gdbarch_init): Set sizeof long double to 8.
2250
975ac915
MK
22512002-09-27 Mark Kettenis <kettenis@gnu.org>
2252
2253 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2254 Fix some whitespace problems.
2255
9bbe19fb
DC
22562002-09-27 David Carlton <carlton@math.stanford.edu>
2257
2258 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2259 (mcore-tdep.o): Ditto.
2260 (ns32k-tdep.o): Ditto.
2261 (ns32knbsd-tdep.o): Ditto.
2262 (sh3-rom.o): Ditto.
2263 (vax-tdep.o): Ditto.
2264 * cris-tdep.c: #include "gdb_string.h"
2265 * mcore-tdep.c: Ditto.
2266 * ns32k-tdep.c: Ditto.
2267 * ns32knbsd-tdep.c: Ditto.
2268 * sh3-rom.c: Ditto.
2269 * vax-tdep.c: Ditto.
2270
43b2fdc7
DC
22712002-09-27 David Carlton <carlton@math.stanford.edu>
2272
2273 * config/djgpp/fnchange.lst: Add entries for
2274 gdb/testsuite/gdb.c++/m-static files.
2275
e8cfbbd9
JW
22762002-09-27 Jim Wilson <wilson@redhat.com>
2277
2278 * MAINTAINERS: Add myself to the Write After Approval list.
2279
43b2fdc7 22802002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
2281
2282 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2283
2284
9f3b7f07
AC
22852002-09-26 Andrew Cagney <ac131313@redhat.com>
2286
2287 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2288 frame.
2289
11269d7e
AC
22902002-09-26 Andrew Cagney <ac131313@redhat.com>
2291
2292 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2293 (rs6000_struct_return_address): Delete variable.
2294 (rs6000_store_struct_return): Update.
2295 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2296 deprecated_extract_struct_value_address.
2297 (rs6000_frame_align): New function.
2298 (rs6000_gdbarch_init): Set frame_align.
2299
f15ab4a7
AC
23002002-09-26 Andrew Cagney <ac131313@redhat.com>
2301
2302 From Grace Sainsbury <graces@redhat.com>:
2303 * Makefile.in (gdbtk-main.o): New target.
2304 (gdb.o): New target.
2305 (main_h): Define.
2306 (main.o): Update dependencies.
2307 (gdb$(EXEEXT)): Add gdb.o.
2308 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2309 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2310 (SUBDIR_GDBTK_CLEAN): Set.
2311 (install-gdbtk): Install the insight binary.
2312 (uninstall-gdbtk): New target.
2313 (all-gdbtk, clean-gdbtk): New rule.
2314 * top.c (use_windows): Default to zero.
2315 * main.c: Include "main.h".
2316 (main): Delete.
2317 (struct captured_main_args): Delete.
2318 (gdb_main): New function.
2319 * main.h: New file.
2320 * gdb.c: New File.
2321
e36180d7
AC
23222002-09-25 Andrew Cagney <cagney@redhat.com>
2323
2324 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2325 (frame_map_regnum_to_name): New function.
2326 (frame_map_name_to_regnum): New function.
2327 * frame.h (frame_map_name_to_regnum): Declare.
2328 (frame_map_regnum_to_name): Declare.
2329 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2330 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2331 * parse.c: Do not include "builtin-regs.h".
2332 (target_map_name_to_register): Delete function.
2333 (write_dollar_variable): Use frame_map_name_to_regnum.
2334 * parser-defs.h (target_map_name_to_register): Delete declaration.
2335 * expprint.c: Include "frame.h".
2336 (print_subexp): Use frame_map_regnum_to_name.
2337 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2338 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2339
8b69000d
AC
23402002-09-25 Andrew Cagney <ac131313@redhat.com>
2341
2342 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2343 wasn't saved, and the next innermost frame is a dummy, return the
2344 dummy frame's link register.
2345
046ca86a
JB
23462002-09-24 Jim Blandy <jimb@redhat.com>
2347
2348 Fix from Paul Breed:
2349 * main.c (captured_main): Add a `break' after the case for 'b'.
2350
94b66fa7
KS
23512002-09-24 Keith Seitz <keiths@redhat.com>
2352
2353 * varobj.c (c_type_of_child): Use get_target_type instead
2354 of TYPE_TARGET_TYPE.
2355
c214a6fd
FN
23562002-09-22 Fernando Nasser <fnasser@redhat.com>
2357
53cb0458
FN
2358 * source.c (get_current_or_default_source_symtab_and_line): Remove
2359 function.
2360 (set_default_source_symtab_and_line): New function. Attempts to
2361 determine a source file to list lines from if one is not currently
2362 defined.
2363 (get_current_source_symtab_and_line): Initialize sal.pc and
2364 sal.end fields.
2365 (set_current_source_symtab_and_line): Mark argument as const.
2366 * source.h: Update declarations and comments.
2367 * linespec.c (decode_line_1): Replace call to removed routine above.
2368 * stack.c (print_frame_info_base): Ditto.
2369 * cli/cli-cmds.c (edit_command): Ditto.
2370 (list_command): Ditto.
2371
23722002-09-22 Fernando Nasser <fnasser@redhat.com>
2373
d6020d45 2374 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 2375 sal.pc and sal.end fields.
c214a6fd
FN
2376 (get_current_or_default_source_symtab_and_line): Ditto.
2377 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2378 so we do not cause a new source symtab to be searched for (reverting an
2379 unintentional change from the 2002-09-20 patch).
2380 * scm-lang.c (scm_unpac): Ditto.
2381
cc3b68a5
AC
23822002-09-21 Andrew Cagney <cagney@redhat.com>
2383
2384 * complaints.c (symfile_explanations): Remove new-line from
2385 ``isolated_message''.
2386 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2387 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2388
5835abe7
NC
23892002-09-20 Nick Clifton <nickc@redhat.com>
2390
2391 * NEWS: Announce that V850EA ISA is no longer supported.
2392 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2393
a15ef5f5
DC
23942002-09-20 David Carlton <carlton@math.stanford.edu>
2395
06ba1b39
DC
2396 * Makefile.in (c-lang.o): Correct dependencies.
2397 (utils.o): Gather dependencies.
2398 (charset.o): Move.
a15ef5f5
DC
2399 * c-lang.c: #include "gdb_string.h"
2400
87885426
FN
24012002-09-20 Fernando Nasser <fnasser@redhat.com>
2402
2403 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2404 * cli/cli-cmds.c (list_command): New function. Implements the new
2405 cli edit command.
2406 (_init_cli_cmds): Add new command definition.
2407 * gdb.1: Document edit command.
2408 * doc/gdb.texinfo: Document edit command.
2409
24102002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
2411
2412 * source.c: Make global variables current_source_symtab and
2413 current_source_line static.
2414 (list_command): Moved to cli/cli-cmds.c.
2415 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2416 (get_first_line_listed): New accessor function.
2417 (get_lines_to_list): New accessor function.
2418 (get_current_source_symtab_and_line): New function. Retrieves the
2419 position in the source code that we consider current.
2420 (get_current_or_default_source_symtab_and_line): New function.
2421 Like the above but attempts to determine a default position if one
2422 is not currently defined.
2423 (set_current_source_symtab_and_line): New function. Sets the source
2424 code position considered current and returns the previously set one.
2425 (clear_current_source_symtab_and_line): Reset stored information about
2426 a current source line.
2427 (_initialize_source): Remove registration for the "list" command and
2428 its alias.
2429 * source.h: Add declarations for the new functions above.
2430 * symtab.h: Remove declarations for the global variables mentioned
2431 above.
2432 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2433 obtain current source line.
2434 * linespec.c (decode_line_1): Ditto.
2435 * macroscope.c (default_macro_scope): Ditto.
2436 * scm-lang.c (scm_unpac): Ditto.
2437 * stack.c (print_frame_info_base): Ditto.
2438 * symfile.c (clear_symtab_users): Ditto.
2439 * symtab.c (decode_line_spec): Ditto.
2440 * cli/cli-cmds.c (list_command): Moved here from source.c.
2441 (ambiguous_line_spec): Moved here from source.c.
2442 (_init_cli_cmds): Add definition for "list" and its alias.
2443 * Makefile.in: Update dependencies.
2444
ddd216ea
CV
24452002-09-20 Corinna Vinschen <vinschen@redhat.com>
2446
2447 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2448 with what gcc thinks is correct.
2449
6d305052
CV
24502002-09-20 Corinna Vinschen <vinschen@redhat.com>
2451
2452 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2453 multiple register push instruction.
2454
234b45d4
KB
24552002-09-19 Jim Blandy <jimb@redhat.com>
2456
2457 Add support for distinct host and target character sets.
2458 * charset.c, charset.h: New files.
2459 * c-exp.y: #include "charset.h".
2460 (yylex): Convert character and string literals to the target
2461 character set, before returning them as the semantic value of the
2462 token.
2463 * c-lang.c: #include "charset.h".
2464 (c_emit_char): Use charset-specific methods to recognize
2465 characters with backslash escape forms, to decide which characters
2466 to print literally and which to print using numeric escape
2467 sequences, and to convert target characters to host characters
2468 before printing.
2469 * utils.c: #include "charset.h".
2470 (no_control_char_error): New function.
2471 (parse_escape): Use charset-specific methods to recognize
2472 backslash escapes, parse `control character' notation, and convert
2473 characters from the host character set to the target character set.
2474 * configure.in: Set the default host character set.
2475 Check where to find iconv, and what its argument types might be.
2476 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2477 * Makefile.in (SFILES): List charset.c.
2478 (COMMON_OBS): List charset.o.
2479 (charset.o): New rule.
2480 (charset_h): New header dependency variable.
2481 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2482 (LIBICONV): New variable, set by configure.
2483 (CLIBS): Include $(LIBICONV) here.
2484 * aclocal.m4, config.in, configure: Regenerated.
2485
525d6a61
JB
24862002-09-19 Joel Brobecker <brobecker@gnat.com>
2487
2488 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2489 bison 1.35 warning.
2490
3ed93867
RE
24912002-09-19 Richard Earnshaw <rearnsha@arm.com>
2492
2493 * gdb_mbuild.sh: New file.
2494
437666f8
AC
24952002-09-19 Andrew Cagney <ac131313@redhat.com>
2496
2497 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2498
389e51db
AC
24992002-09-18 Andrew Cagney <ac131313@redhat.com>
2500
2501 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2502 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2503 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2504 valops.c, value.h: Revert previous change.
2505
3b4efeaa
MS
25062002-09-18 Michael Snyder <msnyder@redhat.com>
2507
2508 Preliminary support for Objective-C:
2509 * defs.h (language_objc): New enum value.
2510 (puts_filtered_tabular): Declaration only, exported from utils.c.
2511 (skip_quoted): Delete, declared in completer.h.
2512 * c-exp.y: Include completer.h.
2513 * p-exp.y: Ditto.
2514 * jv-exp.y: Ditto.
2515 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2516 New operator enum values.
2517 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2518 * language.c (binop_result_type): Handle language_objc case.
2519 (integral_type, character_type, string_type, boolean_type,
2520 structured_type, binop_type_check): Ditto.
2521 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2522 (struct objc_specific): Add to general_symbol_info.
2523 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2524 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2525 * parser-defs.h (struct objc_class_str): New struct type.
2526 (start_msglist, end_msglist, add_msglist): Declaration only,
2527 exported from objc-lang.c.
2528 * value.h (value_of_local, value_nsstring,
2529 call_function_by_hand_expecting_type): Exported from valops.c.
2530 * valops.c (find_function_addr): Export.
2531 (call_function_by_hand_expecting_type): New function.
2532 (value_of_local): New function.
2533 * symfile.c (init_filename_language_table): Add ".m" extension
2534 for Objective-C.
2535 * utils.c (puts_filtered_tabular): New function.
2536 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2537 (set/show demangle): Extend help-string to refer to ObjC.
2538 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2539 * stabsread.c (symbol_reference_defined): Objective-C symbols
2540 may contain colons: make allowances when scanning stabs strings
2541 for colons.
2542 (objc_find_colon): New function.
2543 * printcmd.c (address_info): If language == objc then print
2544 "self" instead of "this".
2545 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2546 OP_NSSTRING, and OP_SELF.
2547 (prefixify_subexp): Ditto.
2548 * source.c (print_source_lines): Mention objc in comment.
2549 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2550 method names.
2551
b9caf505
AC
25522002-09-18 Andrew Cagney <ac131313@redhat.com>
2553
2554 * complaints.h: Update copyright.
2555 (struct complaints): Declare.
2556 (struct complaint): Make `message' constant.
2557 (internal_complaint): Declare.
2558 (complaint): Declare.
2559 (complaint_root): Delete declaration.
2560 (symfile_complaints): Delete declaration.
2561 (struct complaints): Add opaque declaration.
2562 (clear_complaints): Add a complaints parameter.
2563 * complaints.c: Update copyright.
2564 (enum complaint_series): Define.
2565 (complaint_root): Delete.
2566 (struct complaints): Define.
2567 (complaint_sentinel, symfile_complaint_book): New variables.
2568 (symfile_explanations, symfile_complaints): New variables.
2569 New variables.
2570 (get_complaints): New function.
2571 (vcomplaint): New function.
2572 (complaint): New function.
2573 (internal_complaint): New function.
2574 (complain): Call vcomplain with symfile_complaint.
2575 (clear_complaints): Rewrite.
2576 (_initialize_complaints): Use add_setshow_command.
2577 * Makefile.in (complaints.o): Update dependencies.
2578 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2579 to call to clear_complaints.
2580 (new_symfile_objfile, reread_symbols): Ditto.
2581 (oldsyms_complaint): Delete.
2582 (empty_symtab_complaint, unknown_option_complaint): Delete.
2583 (free_named_symtabs): Use complaint instead of complain.
2584
d2e6263c
MS
25852002-09-18 Michael Snyder <msnyder@redhat.com>
2586
5fb2031a
AC
2587 Contributed by Apple Computer, Inc. Merged with current sources
2588 by Adam Fedor <fedor@doc.com> [cagney].
2589
d2e6263c
MS
2590 * objc-lang.c: First clean-up round: comments, indentation.
2591 * objc-lang.h: Ditto.
2592 * objc-lang.y: Ditto.
2593
dec43320
AC
25942002-09-18 Andrew Cagney <ac131313@redhat.com>
2595
2596 * maint.c (maintenance_internal_error): Print the parameter as the
2597 error message.
2598 (maintenance_internal_warning): New function.
2599 (_initialize_maint_cmds): Add command `maint internal-warning'.
2600
2601 * defs.h (internal_warning, internal_vwarning): Declare.
2602 * utils.c (struct internal_problem): Define.
2603 (internal_vproblem): New function.
2604 (internal_warning): New function.
2605 (internal_vwarning): New function.
2606 (internal_warning_problem, internal_error_problem): New variables.
2607 (internal_verror): Just call internal_vproblem.
2608
b81654f1
MS
26092002-09-18 Michael Snyder <msnyder@redhat.com>
2610
2611 * objc-lang.c: New file, support for Objective-C.
2612 Preliminary check-in, not yet integrated into gdb.
2613 * objc-lang.h: New file.
2614 * objc-exp.y: New file.
2615
0542c381
AC
26162002-09-18 Andrew Cagney <ac131313@redhat.com>
2617
7bda5e4a
AC
2618 * infrun.c (signal_stop_update): Convert definition to ISO C.
2619 (signal_print_update): Ditto.
2620 (signal_pass_update): Ditto.
2621 * inflow.c (terminal_save_ours): Ditto.
2622
5247b418
AC
2623 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2624 comments.
2625
fc60962c
AC
2626 * config/djgpp/fnchange.lst: Handle name clashes between
2627 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2628 bfd/coff-tic80.c.
2629
0542c381
AC
2630 * i386-linux-tdep.h: Fix tipo.
2631
5b924b9b
AF
26322002-09-18 Adam Fedor <fedor@gnu.org>
2633
2634 * MAINTAINERS: Add myself to the Write After Approval list.
2635
5afc051b
JB
26362002-09-18 Jim Blandy <jimb@redhat.com>
2637
2638 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2639 texthigh and textlow to reader-specific structs caused
2640 objfile_relocate to miss them. This is fixable, but the work that
2641 the change was supposed to prepare GDB for never got done anyway.
2642
eb944380
DC
26432002-09-18 David Carlton <carlton@math.stanford.edu>
2644
2645 * MAINTAINERS: Alphabetize Write After Approval list.
2646
948e66d9
DJ
26472002-09-18 Daniel Jacobowitz <drow@mvista.com>
2648
2649 Fix PR gdb/709
2650 * values.c (value_static_field): Call read_var_value.
2651
dc604539
AC
26522002-09-18 Andrew Cagney <ac131313@redhat.com>
2653
2654 * valops.c (hand_function_call): Align the initial stack pointer
2655 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2656 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2657 return value.
2658 * mips-tdep.c (mips_frame_align): New function.
2659 (mips_gdbarch_init): Set frame_align.
2660 * gdbarch.sh (FRAME_ALIGN): New method.
2661 * gdbarch.h, gdbarch.c: Re-generate.
2662
cb7e422f
ML
26632002-09-18 Michal Ludvig <mludvig@suse.cz>
2664
2665 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2666 registers.
2667
a094c6fb
AC
26682002-09-17 Andrew Cagney <ac131313@redhat.com>
2669
2670 * NEWS: Mention that MIPS $fp behavior changed.
2671 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2672 reference to FP_REGNUM.
2673 (mipsnbsd_cannot_store_register): Ditto.
2674 * mips-linux-nat.c: Update copyright.
2675 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2676 (mips_linux_cannot_store_register): Ditto.
2677 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2678 * config/mips/tm-mips.h: Update copyright.
2679 (FP_REGNUM): Delete macro.
2680 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2681 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2682 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2683 (mips_r3041_reg_names, mips_r3051_reg_names)
2684 (mips_r3081_reg_names): Replace "fp" with "".
2685 Fix PR gdb/480.
2686
45cf40d1
TR
26872002-09-17 Theodore A. Roth <troth@verinet.com>
2688
2689 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2690 generic_read_register_dummy() (PR gdb/703).
2691 (avr_push_return_address): #if 0 out unused vars.
2692 (avr_gdbarch_init): Enable use of avr_push_return_address().
2693
c7e701b5
MS
26942002-09-17 Michael Snyder <msnyder@redhat.com>
2695
d76ba2a5 2696 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
2697 RTE will take care of it.
2698
20bcf01c
AC
26992002-09-17 Andrew Cagney <ac131313@redhat.com>
2700
2701 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2702 invalid, return SP_REGNUM.
2703
009a9971 27042002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
2705
2706 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2707 point registers without sign extension.
2708
135c175f
AC
27092002-09-17 Andrew Cagney <cagney@redhat.com>
2710
2711 * blockframe.c (deprecated_read_register_dummy): Rename
2712 generic_read_register_dummy.
2713 * frame.c (frame_unwind_signed_register): New function.
2714 (frame_unwind_unsigned_register): New function.
2715 * frame.h (frame_unwind_signed_register): Declare.
2716 (frame_unwind_unsigned_register): Declare.
2717 (deprecated_read_register_dummy): Rename
2718 generic_read_register_dummy.
2719
2720 * h8300-tdep.c (h8300_frame_chain): Update.
2721 (h8300_frame_saved_pc): Update.
2722 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2723 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2724 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2725 (s390_frame_chain): Update.
2726 * v850-tdep.c (v850_find_callers_reg): Update.
2727 (v850_frame_saved_pc): Update.
2728 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2729 (m32r_find_callers_reg): Update.
2730 (m32r_frame_saved_pc): Update.
2731 * sh-tdep.c (sh_find_callers_reg): Update.
2732 (sh64_get_saved_pr): Update.
2733 (sh_init_extra_frame_info): Update.
2734 (sh_init_extra_frame_info): Update.
2735 (sh64_init_extra_frame_info): Update.
2736 (sh64_init_extra_frame_info): Update.
2737 * mcore-tdep.c (mcore_find_callers_reg): Update.
2738 (mcore_frame_saved_pc): Update.
2739 (mcore_init_extra_frame_info): Update.
2740 * i386-tdep.c (i386_frame_saved_pc): Update.
2741 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2742 (ia64_init_extra_frame_info): Update.
2743 (ia64_init_extra_frame_info): Update.
2744 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2745 * cris-tdep.c (cris_init_extra_frame_info): Update.
2746 * avr-tdep.c (avr_frame_chain): Update.
2747 (avr_init_extra_frame_info): Update.
2748 (avr_frame_saved_pc): Update.
2749 * arm-tdep.c (arm_find_callers_reg): Update.
2750 (arm_init_extra_frame_info): Update.
2751 (arm_frame_saved_pc): Update.
2752
a741e514
TT
27532002-09-17 Tom Tromey <tromey@redhat.com>
2754
2755 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2756 is "'".
2757
d1a8e808
CV
27582002-09-17 Corinna Vinschen <vinschen@redhat.com>
2759
2760 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2761 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2762 NEXT_PROLOGUE_INSN.
2763 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2764 NEXT_PROLOGUE_INSN.
2765
d9025a18
JB
27662002-09-16 Joel Brobecker <brobecker@gnat.com>
2767
2768 * osfsolib.c: Remove file, replaced by solib-osf.c.
2769 * Makefile.in: Remove compilation rules for osfsolib.c.
2770
1b2ef1b6
DC
27712002-09-16 David Carlton <carlton@math.stanford.edu>
2772
2773 * cp-valprint.c (cp_print_class_method): Correct args to
2774 check_stub_method_group.
2775
928e48af
CV
27762002-09-16 Corinna Vinschen <vinschen@redhat.com>
2777
2778 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2779 `set architecture'. Unify naming convention of functions.
2780 (h8300_skip_prologue): Improve prologue analysis.
2781 (h8300_push_arguments): Rewritten to more closely match GCC's
2782 bizarre argument-passing behavior, along with the comment describing
2783 said behavior.
2784 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2785 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2786 sim, remote-e7000.c, remote-hms.c and remote.c
2787
5e3397bb
MK
27882002-09-15 Mark Kettenis <kettenis@gnu.org>
2789
2790 * i386-tdep.c (gdb_print_insn_i386): Removed.
2791 (i386_print_insn): New function.
2792 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2793 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2794 tm_print_insn_info.
2795
f710f4fc
MK
27962002-09-14 Mark Kettenis <kettenis@gnu.org>
2797
2798 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2799 zero.
2800
db54fef4
CV
28012002-09-14 Corinna Vinschen <vinschen@redhat.com>
2802
2803 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2804 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2805 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2806
2becadee
CF
28072002-09-13 Christopher Faylor <cgf@redhat.com>
2808
2809 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2810
de17c821
DJ
28112002-09-13 Daniel Jacobowitz <drow@mvista.com>
2812
2813 * gdbtypes.c (check_stub_method): Make static.
2814 (check_stub_method_group): New function.
2815 * gdbtypes.h: Update prototypes.
2816 * cp-support.c: New file.
2817 * cp-support.h: New file.
2818
2819 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2820 (update_method_name_from_physname): New function.
2821 (read_member_functions): Correct method names for operators
2822 and v3 constructors/destructors. Separate v2 constructors and
2823 destructors.
2824 * Makefile.in (stabsread.o): Update dependencies.
2825 (SFILES): Add cp-support.c.
2826 (COMMON_OBS): Add cp-support.o.
2827 (cp_support_h, cp-support.o): Add.
2828
2829 * cp-valprint.c (cp_print_class_method): Call
2830 check_stub_method_group instead of check_stub_method. Remove
2831 extraneous QUITs.
2832 * p-valprint.c (pascal_object_print_class_method): Likewise.
2833 * valops.c (search_struct_method): Likewise.
2834 (find_method_list, value_struct_elt_for_reference): Likewise.
2835
e76cff22
AC
28362002-09-13 Andrew Cagney <cagney@redhat.com>
2837
2838 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2839 * gdbarch.h, gdbarch.c: Regenerate.
2840
905abb3f
AC
28412002-09-13 Andrew Cagney <ac131313@redhat.com>
2842
2843 * frame.c (find_saved_register): Delete function.
2844 * frame.h (find_saved_register): Delete declaration.
2845 Fix PR gdb/631.
2846
64159455
AC
2847Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2848
2849 * mips-tdep.c (read_next_frame_reg): Re-hack using
2850 frame_register_unwind.
2851
795e1e11
AC
2852Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2853
2854 * mips-tdep.c (mips_get_saved_register): Re-hack using
2855 frame_register_unwind.
2856
5720643c
JB
28572002-09-12 Joel Brobecker <brobecker@gnat.com>
2858
2859 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2860 vector. Will be useful for Interix.
2861 * gdbarch.h, gdbarch.c: Regenerate.
2862
2863 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2864 name of the malloc function by NAME_OF_MALLOC.
2865
3bada2a2
JB
28662002-09-12 Joel Brobecker <brobecker@gnat.com>
2867
2868 * value.h (find_function_in_inferior): Add const keyword to
2869 one of the parameters. Allows us to invoke this function with
2870 a const char *.
2871 * valops.c (find_function_in_inferior): Likewise.
2872
3db26b01
JB
28732002-09-12 Joel Brobecker <brobecker@gnat.com>
2874
2875 * exec.c (xfer_memory): Fix compilation warning with old versions
2876 of GCC.
2877 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2878
17c5ed2c
DC
28792002-09-12 David Carlton <carlton@math.stanford.edu>
2880
2881 * symtab.h: Run through gdb_indent.h.
2882 Add 2002 to Copyright year list.
2883
ecd1107e
AM
28842002-09-12 Alan Modra <amodra@bigpond.net.au>
2885
2886 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2887 mach constants.
2888 * MAINTAINERS: Add myself to write after approval list.
2889
e64f66d1
JB
28902002-09-11 J. Brobecker <brobecker@gnat.com>
2891
2892 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2893
f9395794
JB
28942002-09-11 J. Brobecker <brobecker@gnat.com>
2895
2896 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2897 Interix.
2898
1a303dec
MS
28992002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2900
2901 * procfs.c (do_detach): Clear current signal, not just fault.
2902 Corrects problem with breakpoint trap signal leaking to detached
2903 process on Tru64.
2904
c0219d42
MS
29052002-09-10 Michael Snyder <msnyder@redhat.com>
2906
2907 * buildsym.c (finish_block): Protect against null pointer.
2908
9d84ac84
AC
29092002-09-10 Andrew Cagney <cagney@redhat.com>
2910
2911 * infcmd.c (default_print_registers_info): Send all output to
2912 ``file'' instead of ``gdb_stdout''.
2913
77d8f2b4
MS
29142002-09-10 Michael Snyder <msnyder@redhat.com>
2915
2916 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2917 LONGEST, and use signed register read (addresses are sign-
2918 extended for mips).
2919
99656a61
SC
29202002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2921
2922 * event-loop.c (gdb_do_one_event): Make public.
2923 * event-loop.h (gdb_do_one_event): Declare.
2924
da12f4d8
JL
29252002-09-10 Jeff Law <law@redhat.com>
2926
2927 * infttrace.c (child_resume): Simplify and rework to avoid
2928 TT_PROC_CONTINUE.
2929
d0aee0c4
FF
29302002-09-09 Fred Fish <fnf@intrinsity.com>
2931
2932 * printcmd.c (print_scalar_formatted): "len" is the number of
2933 target bytes, NOT the number of target bits.
2934
7cb3ec5e
EZ
29352002-09-09 Elena Zannoni <ezannoni@redhat.com>
2936
2937 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2938 * top.c (init_main): Set rl_terminal_name.
2939
4dc81987
AS
29402002-09-08 Aidan Skinner <aidan@velvet.net>
2941
2942 * ada-lang.c (ada_array_bound, ada_type_match,
2943 _initialize_ada_language): Fix K&R definitions.
2944 * ada-tasks.c (get_current_task): Fix K&R definitions.
2945 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2946
842330b4
CF
29472002-09-07 Christopher Faylor <cgf@redhat.com>
2948
2949 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2950 Add XP.
2951
43156d82
MK
29522002-09-06 Mark Kettenis <kettenis@gnu.org>
2953
66da5fd8
MK
2954 * i386-tdep.c (i386_register_virtual_type,
2955 i386_register_convertible, i386_register_convert_to_virtual,
2956 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2957 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2958 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2959 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2960 Don't set push_arguments twice.
2961
4b218c18
MK
2962 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2963 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2964 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2965 sigtramp_end to NULL.
2966 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2967 defines.
2968 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2969
4cc314d5
MK
2970 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2971 whitespace.
2972
43156d82
MK
2973 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2974 * gdbarch.h, gdbarch.c: Re-generate.
2975 * blockframe.c (find_pc_sect_partial_function): Convert to use
2976 SIGTRAMP_START_P predicate.
2977
6672060b
MS
29782002-09-05 Michael Snyder <msnyder@redhat.com>
2979
a90c3637
MS
2980 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2981 generic_dummy_frame method and old method. Also distinguish
2982 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 2983 (arm_extract_return_value): Use new regcache method.
a90c3637 2984
6672060b
MS
2985 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2986 adjustment that doesn't conform to the ABI.
2987 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2988 saved regcache, not from current regcache.
2989
299ffc64
AC
29902002-09-05 Andrew Cagney <ac131313@redhat.com>
2991
2992 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2993 * README: Update.
2994
a3a2ee65
JT
29952002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2996
2997 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2998 if arm_apcs_32 is false.
2999
2bc7eea9
AC
30002002-09-04 Andrew Cagney <ac131313@redhat.com>
3001
3002 GDB 5.3 branch created.
3003
8a55a7c5
TR
30042002-09-03 Theodore A. Roth <troth@verinet.com>
3005
3006 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3007 generic_unwind_get_saved_register.
3008
e26fb1d7
DC
30092002-09-03 David Carlton <carlton@math.stanford.edu>
3010
3011 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3012 argument (PR gdb/653). Update call to smash_to_method_type.
3013 (read_structure_scope): Update call to dwarf2_add_member_fn.
3014
30d52491
ML
30152002-09-03 Michal Ludvig <mludvig@suse.cz>
3016
3017 * x86-64-linux-tdep.c: Include gdb_string.h
3018 * x86-64-linux-nat.c: Ditto.
3019
06891d83
JT
30202002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3021
3022 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3023 when YYDEBUG is set to 1.
3024 * c-exp.y: Likewise.
3025 * f-exp.y: Likewise.
3026 * jv-exp.y: Likewise.
3027 * m2-exp.y: Likewise.
3028 * p-exp.y: Likewise.
3029
7d400e77
JT
30302002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3031
3032 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3033 dependency list.
3034 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3035 solib_svr4_fetch_link_map_offsets to
3036 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3037 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3038 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3039 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3040 solib-svr4.o, and solib-legacy.o.
3041 * config/i386/tm-nbsd.h: Include solib.h.
3042
704a27c4
JT
30432002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3044
3045 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3046 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3047 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3048 comment noting that this needs its own target configuration.
3049 * config/i386/nbsd.mt: New file.
3050 * config/i386/nbsdaout.mt: Remove.
3051 * config/i386/nbsdelf.mt: Ditto.
3052 * config/i386/tm-nbsdaout.h: Ditto.
3053
d66198e1
JT
30542002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3055
3056 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3057 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3058 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3059 tdep->sigtramp_end.
3060 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3061 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3062 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3063
3cac699e
JT
30642002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3065
3066 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3067 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3068 * i386-tdep.h (i386bsd_init_abi): New prototype.
3069 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3070 function declaration.
3071 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3072 for NetBSD-a.out or NetBSD-ELF.
3073 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3074 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3075 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3076 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3077 and nbsd-tdep.h.
3078 (i386nbsd_pc_in_sigtramp): New function.
3079 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3080 i386nbsd_pc_in_sigtramp.
3081 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3082 and i386nbsdelf_init_abi OS ABI handlers.
3083 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3084 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3085
7010ca0a
MK
30862002-09-02 Mark Kettenis <kettenis@gnu.org>
3087
3088 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3089 registers if the target really has them.
3090
6dd93b72
JT
30912002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3092
3093 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3094 than nbsd-tdep.h.
3095
2ca8ae21
JT
30962002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3097
3098 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3099 list.
3100 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3101 (alphanbsd_skip_sigtramp_frame): New functions.
3102 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3103 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3104 to alphanbsd_sigcontext_addr.
3105
3d9b49b0
JT
31062002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3107
3108 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3109 list.
3110 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3111 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3112 nbsd_pc_in_sigtramp.
3113 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3114 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3115 * nbsd-tdep.c: Include gdb_string.h.
3116 (nbsd_pc_in_sigtramp): New function.
3117 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3118 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3119 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3120 ppcnbsd_pc_in_sigtramp.
3121 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3122 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3123 shnbsd_pc_in_sigtramp.
3124 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3125 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3126 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3127
c860120c
PM
31282002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3129
3130 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3131 watchpoints to NULL.
3132 (insert_breakpoints): set val field of watchpoints if NULL.
3133
3134
c7612d53
JB
31352002-08-29 Jim Blandy <jimb@redhat.com>
3136
3137 * symtab.c (lookup_symbol_aux): In the cases where we find a
3138 minimal symbol of an appropriate name and use its address to
3139 select a symtab to read and search, use `name' (as passed to us)
3140 as the demangled name when searching the symtab's global and
3141 static blocks, not the minsym's name.
3142
66609862
KS
31432002-08-29 Keith Seitz <keiths@redhat.com>
3144
3145 * stack.c (print_frame_info_base): Always set current_source_symtab
3146 and current_source_line.
3147
151fefe2
JB
31482002-08-29 Donn Terry <donnte@microsoft.com>
3149
3150 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3151
bfb3754e
KS
31522002-08-28 Keith Seitz <keiths@redhat.com>
3153
3154 * stack.c (select_frame): Add FIXME concerning selected-frame
3155 events.
3156 (select_frame_command): Send selected-frame-level-changed
3157 event notification, but only if the level actually changed.
3158 (up_silently_base): Add selected-frame-level-changed event
3159 notification.
3160 (down_silently_base): Likewise.
3161
e822a2a0
AC
31622002-08-28 Andrew Cagney <ac131313@redhat.com>
3163
3164 * Makefile.in: Update dependencies for all gdb/*.c files.
3165
309367d4
TT
31662002-08-27 Tom Tromey <tromey@redhat.com>
3167
3168 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3169 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3170 Update dependencies.
3171 * i387-tdep.c: Include gdb_string.h.
3172 * osabi.c: Likewise.
3173 * i386-linux-nat.c: Likewise.
3174 * lin-lwp.c: Likewise.
3175 * ax-gdb.c: Likewise.
3176 * signals/signals.c: Likewise.
3177 * jv-valprint.c: Likewise.
3178 * p-lang.c: Likewise.
3179 * c-valprint.c: Likewise.
3180 * cp-abi.c: Likewise.
3181
e1507482
EZ
31822002-08-27 Elena Zannoni <ezannoni@redhat.com>
3183
3184 * cli/cli-script.h (copy_command_lines): Export.
3185 * breakpoint.c: Include cli/cli-script.h.
3186 * Makefile.in (breakpoint.o): Update dependencies.
3187
c6510018
MS
31882002-08-26 Michael Snyder <msnyder@redhat.com>
3189
3190 * breakpoint.c (insert_breakpoints): Protect all references
3191 to 'process_warning'. Shorten long lines.
3192
c2b8ed2c
MS
31932002-08-26 Joel Brobecker <brobecker@gnat.com>
3194
3195 * cli/cli-script.c (copy_command_lines): New function.
3196 * defs.h (copy_command_lines): Export.
3197 * testsuite/gdb.base/commands.exp: New tests for commands
3198 attached to a temporary breakpoint, and for commands that
3199 delete the breakpoint they are attached to.
3200
32012002-08-26 Michael Snyder <msnyder@redhat.com>
3202
3203 * breakpoint.c (bpstat_stop_status): Instead of copying the
3204 pointer to the breakpoint commands struct, make a new copy
3205 of the struct and point to that.
3206 (bpstat_clear): Free the commands struct.
3207 (bpstat_clear_actions): Free the commands struct.
3208 (bpstat_do_actions): Free the command actions. Also execute
3209 the local cleanups, instead of deleting them.
3210 (delete_breakpoint): Leave the commands field of the bpstat
3211 chain alone -- it will be freed later.
3212
64b84175
KB
32132002-08-26 Kevin Buettner <kevinb@redhat.com>
3214
3215 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3216 deleted in 2002-08-20 commit. This function is still used by
3217 ppc-linux-nat.c.
3218
55970da6
KS
32192002-08-26 Keith Seitz <keiths@redhat.com>
3220
3221 * gdb-events.sh: Add selected-frame-level-changed event.
3222 * gdb-events.c: Regenerated.
3223 * gdb-events.h: Regenerated.
3224
a790ad35
SC
32252002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3226
3227 Fix PR gdb/393:
3228 * inflow.c (terminal_save_ours): New function to save terminal
3229 settings.
3230 * inferior.h (terminal_save_ours): Declare.
3231 * target.c (debug_to_terminal_save_ours): New function.
3232 (cleanup_target): Defaults to_terminal_save_ours.
3233 (update_current_target): Inherit to_terminal_save_ours.
3234 (setup_target_debug): Set to_terminal_save_ours.
3235 * target.h (target_terminal_save_ours): New to save terminal settings.
3236 (target_ops): New member to_terminal_save_ours.
3237 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3238 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3239 * inftarg.c (init_child_ops): Likewise.
3240 * m3-nat.c (init_m3_ops): Likewise.
3241 * procfs.c (init_procfs_ops): Likewise.
3242 * wince.c (init_child_ops): Likewise.
3243 * win32-nat.c (init_child_ops): Likewise.
3244 * sol-thread.c (init_sol_thread_ops): Likewise.
3245
c00dcbe9
MK
32462002-08-26 Mark Kettenis <kettenis@gnu.org>
3247
3d7f4f49
MK
3248 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3249 use regcache_* functions.
3250 (i386_gdbarch_init): Set store_return_value instead of
3251 deprecated_store_return_value.
3252
c00dcbe9
MK
3253 * regcache.c (regcache_raw_write_signed,
3254 regcache_raw_write_unsigned): New functions.
3255 * regcache.h (regcache_raw_write_signed,
3256 regcache_raw_write_unsigned): New prototypes.
3257
0e0d15ca
AC
32582002-08-25 Andrew Cagney <ac131313@redhat.com>
3259
3260 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3261 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3262 source file dependencies. Cleanup corresponding generator rules.
3263
d3b22ed5
AC
32642002-08-25 Andrew Cagney <ac131313@redhat.com>
3265
3266 * regcache.h (register_offset_hack): Declare.
3267 (regcache_cooked_read_using_offset_hack): Declare.
3268 (regcache_cooked_write_using_offset_hack): Declare.
3269
3270 * regcache.c (register_offset_hack): New function.
3271 (regcache_cooked_read_using_offset_hack): New function.
3272 (regcache_cooked_write_using_offset_hack): New function.
3273 (regcache_dump): Check that the registers, according to their
3274 offset, are packed hard against each other.
3275 (cooked_xfer_using_offset_hack): New function.
3276
bb425013
AC
32772002-08-25 Andrew Cagney <ac131313@redhat.com>
3278
3279 * regcache.c (struct regcache_descr): Add field register_type.
3280 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3281 in as a parameter
3282 (init_regcache_descr): Initialize register_type. Pass the descr
3283 to init_legacy_regcache_descr. Use register_type instead of
3284 REGISTER_VIRTUAL_TYPE.
3285 (register_type): New function.
3286 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3287 * regcache.h (register_type): Declare.
3288
d0403e00
AC
32892002-08-25 Andrew Cagney <ac131313@redhat.com>
3290
3291 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3292 instead of deprecated_store_return_value. Fix fallout from
3293 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3294
0ed04cce
AC
32952002-08-25 Andrew Cagney <ac131313@redhat.com>
3296
3297 * regcache.c (max_register_size): New function.
3298 (init_legacy_regcache_descr): Ensure that max_register_size is
3299 large enough for REGISTER_VIRTUAL_SIZE.
3300 * regcache.h (max_register_size): Declare.
3301
46d79c04
AC
33022002-08-24 Andrew Cagney <ac131313@redhat.com>
3303
3304 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3305 store_return_value.
3306 (e500_extract_return_value): Change type of valbuf pointer to
3307 void.
3308
853c7bd0
MK
33092002-08-24 Mark Kettenis <kettenis@gnu.org>
3310
cd87e769
MK
3311 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3312 workaround.
3313
853c7bd0
MK
3314 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3315 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3316 long long) to prevent compiler warning on 64-bit systems.
3317
ebba8386
AC
33182002-08-23 Andrew Cagney <cagney@redhat.com>
3319
3320 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3321 (DEPRECATED_STORE_RETURN_VALUE): New method.
3322 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3323 * gdbarch.h, gdbarch.c: Re-generate.
3324
3325 * values.c (set_return_value): Pass current_regcache to
3326 STORE_RETURN_VALUE.
3327 * arch-utils.h (legacy_store_return_value): Declare.
3328 * arch-utils.c (legacy_store_return_value): New function.
3329 (legacy_extract_return_value): Update parameters.
3330
3331 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3332 STORE_RETURN_VALUE.
3333 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3334 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3335 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3336 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3337 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3338 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3339 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3340 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3341 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3342 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3343
3344 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3345 * i386-tdep.c (i386_extract_return_value): Update.
3346 * arch-utils.c (legacy_extract_return_value): Update.
3347 * frv-tdep.c (frv_gdbarch_init): Update.
3348 * cris-tdep.c (cris_gdbarch_init): Update.
3349 * d10v-tdep.c (d10v_gdbarch_init): Update.
3350 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3351 * m68k-tdep.c (m68k_gdbarch_init): Update.
3352 * mcore-tdep.c (mcore_gdbarch_init): Update.
3353 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3354 * s390-tdep.c (s390_gdbarch_init): Update.
3355 * sparc-tdep.c (sparc_gdbarch_init): Update.
3356 * sh-tdep.c (sh_gdbarch_init): Update.
3357 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3358 * v850-tdep.c (v850_gdbarch_init): Update.
3359 * avr-tdep.c (avr_gdbarch_init): Update.
3360 * ia64-tdep.c (ia64_gdbarch_init): Update.
3361 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3362 * vax-tdep.c (vax_gdbarch_init): Update.
3363 * alpha-tdep.c (alpha_gdbarch_init): Update.
3364 * arm-tdep.c (arm_gdbarch_init): Update.
3365 * mips-tdep.c (mips_gdbarch_init): Update.
3366 * i386-tdep.c (i386_gdbarch_init): Update.
3367
5bd8c6d0
AC
33682002-08-23 Andrew Cagney <ac131313@redhat.com>
3369
3370 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3371 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3372
e73e1724
MK
33732002-08-24 Mark Kettenis <kettenis@gnu.org>
3374
3375 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3376 problems.
3377
3e6564e1
JB
33782002-08-23 Joel Brobecker <brobecker@gnat.com>
3379
3380 * infrun.c (handle_inferior_event): Move a comment outside of a
3381 function call, in order to avoid indent reformatting this part
3382 of the code in an unreadable way.
3383
81d0cc19
GS
33842002-08-23 Grace Sainsbury <graces@redhat.com>
3385
3386 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3387 when breakpoints fail. Move general breakpoint error messages to
3388 insert_breakpoints.
3389 * breakpoint.c (insert_breakpoints): Change warnings when
3390 breakpoints are nto inserted to specify the type. Remove call to
3391 memory_error when hardware breakpoints can't be inserted. Remove
3392 multiple calls to warning so all messages are sent to the user at
3393 once.
3394 (delete_breakpoints): Make insert error messsages more explicit.
3395
17574093
DJ
33962002-08-23 Daniel Jacobowitz <drow@mvista.com>
3397
3398 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3399 gdbserver/ChangeLog.
3400
8acc2935
MK
34012002-08-23 Mark Kettenis <kettenis@gnu.org>
3402
dfe01d39
MK
3403 * i386-tdep.c: Include "objfiles.h".
3404 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3405 skip_trampoline_code.
3406 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3407 (CPLUS_MARKER): Define to '.'.
3408
8acc2935
MK
3409 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3410 member.
3411 (linux_corefile_thread_callback): Increase args->num_notes.
3412 (linux_make_note_section): Initialize thread_args.num_notes, and
3413 use it to determine whether notes for any threads were created.
3414
151fefe2 34152002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
3416
3417 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3418 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3419 and PCUNKILL.
3420 (write_with_trace): Conditionalize out the switch branch handling
3421 PCSHOLD if the corresponding macro is not defined. Likewise for
3422 PRSABORT and PRSTOP.
3423 This change will be needed by the Interix port.
3424
e1507482
EZ
34252002-08-22 Elena Zannoni <ezannoni@redhat.com>
3426
3427 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3428 write_register wherever possible instead of manipulating the
3429 register bytes directly.
3430 Assign VALUE_CONTENTS to a variable and use that.
3431 The GPR numbers are now dependent on the architecture.
3432
96ff0de4
EZ
34332002-08-22 Elena Zannoni <ezannoni@redhat.com>
3434
3435 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3436 ev_offset fields.
3437 (skip_prologue): Add support for BookE/e500 instructions.
3438 (e500_extract_return_value): New function.
3439 (frame_get_saved_regs): Add support for saving ev registers and
3440 pseudo gpr's.
3441 (e500_store_return_value): New function.
3442 (rs6000_gdbarch_init): Move up default intializations of
3443 deprecated_extract_return_value and store_return_value. Overwrite
3444 init of store_return_value with e500 specific version.
3445 Set extract_return_value for e500.
3446
fbefca5b
EZ
34472002-08-22 Elena Zannoni <ezannoni@redhat.com>
3448
3449 * blockframe.c (generic_call_dummy_register_unwind): Use
3450 regcache_cooked_read to catch cases in which the variable is
3451 stored in a pseudo register.
3452
4d210288
AC
34532002-08-22 Andrew Cagney <cagney@redhat.com>
3454
3455 * NEWS: Mention that the i960 has been made obsolete.
3456 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3457 i960-tdep.c
3458 (remote-nrom.o): Obsolete target.
3459 (remote-nindy.o, i960-tdep.o): Ditto.
3460 * remote-nrom.c: Make file obsolete.
3461 * remote-nindy.c, remote-vx960.c: Ditto.
3462 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3463 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3464 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3465 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3466 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3467 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3468 i960-*-vxworks* obsolete.
3469 * MAINTAINERS: Note that the i960 is obsolete.
3470
6c0c456d
CV
34712002-08-21 Corinna Vinschen <vinschen@redhat.com
3472
3473 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3474 detach to allow reinitialization.
3475
9f9d12b3
AC
34762002-08-22 Andrew Cagney <ac131313@redhat.com>
3477
3478 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3479 attempt).
3480
ebeb39fe
JB
34812002-08-22 Jim Blandy <jimb@redhat.com>
3482
3483 * coffread.c (coff_symfile_read): Don't try to read the line
3484 number table from disk if the image file doesn't have a symbol
3485 table; we'll never actually look at the info anyway, and Windows
3486 ships DLL's with bogus file offsets for the line number data.
3487
5bf1c677
EZ
34882002-08-21 Elena Zannoni <ezannoni@redhat.com>
3489
3490 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3491 an e500 executable.
3492
71b8ef93
MS
34932002-08-21 Michael Snyder <msnyder@redhat.com>
3494
3495 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3496 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
3497 (DEFAULT_MIPS_TYPE): Delete unused macro.
3498 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3499 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 3500
d174216d
JB
35012002-08-21 Jim Blandy <jimb@redhat.com>
3502
3503 * valops.c (value_cast): Simplify and correct logic for doing a
3504 static cast from a pointer to a base class to a pointer to a
3505 derived class.
3506
0ab7a791
AC
35072002-08-21 Andrew Cagney <ac131313@redhat.com>
3508
3509 * infcmd.c (default_print_registers_info): Replace
3510 do_registers_info.
3511 (registers_info): Use gdbarch_print_registers_info instead of
3512 DO_REGISTERS_INFO.
3513 * inferior.h (default_print_registers_info): Replace
3514 do_registers_info.
3515 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3516 (DO_REGISTERS_INFO): Change to a predicate function.
3517 * gdbarch.h, gdbarch.c: Regenerate.
3518
e23792cc
KS
35192002-08-21 Keith Seitz <keiths@redhat.com>
3520
3521 * gdb-events.sh: Add target-changed event.
3522 * gdb-events.c: Regenerated.
3523 * gdb-events.c: Regenerated.
3524 * valops.c (value_assign): Add target-changed event notification
3525 to inlval_register, lval_memory, and lval_reg_frame_relative.
3526
9fb14e79
JB
35272002-08-21 Joel Brobecker <brobecker@gnat.com>
3528
3529 * NEWS: Add an entry regarding the improvement of the next/step
3530 operation on Alpha Tru64 multi-processor machines.
3531
6d39a69f
AC
35322002-08-21 Andrew Cagney <ac131313@redhat.com>
3533
72acd513
AC
3534 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3535 directores.
342af04b 3536 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
3537 * Makefile.in (install-gdbtk): Move to install section.
3538 (rdi-share/libangsd.a): Move to end of file.
3539
fa5f27c7
AC
35402002-08-19 Andrew Cagney <ac131313@redhat.com>
3541
3542 * frame.c (frame_register_unwind): When a register, set addrp to
3543 the register's byte.
3544
5a89d8aa
MS
35452002-08-20 Michael Snyder <msnyder@redhat.com>
3546
3547 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3548 used locally, so move them from the target machine header to here.
3549 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3550 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3551 Make static.
3552 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3553
822e978b
AC
35542002-08-20 Andrew Cagney <cagney@redhat.com>
3555
3556 * NEWS: Mention that the Apollo line was made obsolete.
3557 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3558 m68*-hp-hpux* obsolete.
3559 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3560 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3561 * buildsym.c (make_blockvector): Make static.
3562 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3563 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3564 (ALLDEPFILES): Remove dstread.c.
3565 (dstread.o): Obsolete make rule.
3566 * dstread.c: Makefile obsolete.
3567 * dst.h: Ditto.
3568 * config/m68k/hp300hpux.mt: Ditto.
3569 * config/m68k/hp300hpux.mh: Ditto.
3570 * config/m68k/hp300bsd.mt: Ditto.
3571 * config/m68k/hp300bsd.mh: Ditto.
3572 * config/m68k/apollo68b.mt: Ditto.
3573 * config/m68k/apollo68v.mh: Ditto.
3574 * config/m68k/apollo68b.mh: Ditto.
3575
e41b17f0
MS
35762002-08-20 Michael Snyder <msnyder@redhat.com>
3577
3578 * mips-tdep.c (mips_in_return_stub): Make static.
3579 (mips_gdbarch_init): Set in_solib_return_trampoline.
3580 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3581
d50355b6
MS
35822002-08-20 Michael Snyder <msnyder@redhat.com>
3583
3584 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3585 * gdbarch.c, gdbarch.h: Regenerate.
3586 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3587 Add.
3588 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3589
757a7cc6
MS
35902002-08-20 Michael Snyder <msnyder@redhat.com>
3591
3592 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3593 (mips_gdbarch_init): Set skip_trampoline_code,
3594 in_solib_call_trampoline.
3595 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3596 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3597
c8001721
EZ
35982002-08-20 Elena Zannoni <ezannoni@redhat.com>
3599
3600 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3601
3602 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3603 vector type for ev registers.
3604 (e500_pseudo_register_read): New function.
3605 (e500_pseudo_register_write): New function.
3606 (e500_dwarf2_reg_to_regnum): New function.
3607 (PPC_UISA_NOFP_SPRS): New macro.
3608 (PPC_EV_REGS): New macro.
3609 (PPC_GPRS_PSEUDO_REGS): New macro.
3610 (registers_e500): New register set for e500.
3611 (variants): Add e500 variant.
3612 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3613 before setting architectural dependent variations. Initialize ev
3614 registers numbers. Add case for e500 architecture. Set the
3615 number of pseudo registers.
3616
64366f1c
EZ
36172002-08-20 Elena Zannoni <ezannoni@redhat.com>
3618
3619 * rs6000-tdep.c: Clean up comments.
3620
7e78f0ca
AC
36212002-08-20 Andrew Cagney <cagney@redhat.com>
3622
3623 * h8300-tdep.c: Re-indent file.
3624
697f7479
JB
36252002-08-20 Jim Blandy <jimb@redhat.com>
3626
3627 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3628 default for this.
697f7479 3629
e86ae29f
KS
36302002-08-20 Keith Seitz <keiths@redhat.com>
3631
3632 * breakpoints.c (watch_command_1): Use internal breakpoint
3633 when setting a watchpoint_scope breakpoint.
3634
216b504f
EZ
36352002-08-20 Elena Zannoni <ezannoni@redhat.com>
3636
3637 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3638 (build_builtin_type_vec64i): Ditto.
3639 (build_builtin_type_vec128): Ditto.
3640 (build_builtin_type_vec128i): Ditto.
3641
f7ab6ec6
MS
36422002-08-19 Michael Snyder <msnyder@redhat.com>
3643
3644 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3645 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3646 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3647 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3648 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3649 CALL_DUMMY_ADDRESS): Delete.
3650 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3651 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3652 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3653 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3654 push_return_address.
3655 (mips_register_raw_size, mips_eabi_use_struct_convention,
3656 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3657 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3658 mips_init_extra_frame_info, mips_eabi_push_arguments,
3659 mips_n32n64_push_arguments, mips_push_return_address,
3660 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3661 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3662
b5d1566e
MS
36632002-08-19 Michael Snyder <msnyder@redhat.com>
3664
3665 * mips-tdep.c (mips_frame_num_args): New function.
3666 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3667 frame_saved_pc, frame_args_address, frame_locals_address,
3668 frame_num_args, and frame_args_skip.
3669 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3670 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3671 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3672 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3673
2f1488ce
MS
36742002-08-20 Michael Snyder <msnyder@redhat.com>
3675
3676 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3677 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3678 * mips-tdep.c (mips_store_struct_return): New function.
3679 (mips_extract_struct_value_address): New function.
3680 (mips_gdbarch_init): Set store_struct_return and
3681 extract_struct_value_address.
3682
41ff2da1
DC
36832002-08-20 David Carlton <carlton@math.stanford.edu>
3684
3685 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3686 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3687 (read_file_scope): Check that line_header is nonzero before
3688 decoding macro information.
3689
e5451d58
MK
36902002-08-20 Mark Kettenis <kettenis@gnu.org>
3691
3692 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3693 flag the general-purpose registers as floating-point on targets
3694 that don't support the floating-point registers.
3695
4a6daafa
EZ
36962002-08-20 Elena Zannoni <ezannoni@redhat.com>
3697
3698 * rs6000-tdep.c (altivec_register_p): Delete.
3699 (rs6000_do_altivec_registers): Delete.
3700 (rs6000_altivec_registers_info): Delete.
3701 (rs6000_do_registers_info): Delete.
3702 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3703 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3704
ab4327e0
EZ
37052002-08-20 Elena Zannoni <ezannoni@redhat.com>
3706
3707 * infcmd.c (do_registers_info): Print vector registers in hex
3708 format only.
3709 (print_vector_info): Check that printing registers
3710 makes sense.
3711 (print_float_info): Ditto.
3712
cb1d2653
AC
37132002-08-20 Andrew Cagney <ac131313@redhat.com>
3714
3715 * mips-tdep.c (mips_gdbarch_init): Update.
3716 (mips_o32_extract_return_value): Rewrite.
3717 (mips_o32_store_return_value): Rewrite.
3718 (mips_o32_xfer_return_value): New function.
3719 (mips_xfer_register): Tweak debug print message. Allow for
3720 buf_offset when dumping the value transfered.
3721
dfc3d9b2
AC
37222002-08-20 Andrew Cagney <ac131313@redhat.com>
3723
3724 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3725 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3726 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3727 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3728 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3729
7807aa61
MS
37302002-08-14 Michael Snyder <msnyder@redhat.com>
3731
3732 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3733
489461e2
EZ
37342002-08-19 Elena Zannoni <ezannoni@redhat.com>
3735
3736 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3737 register.
3738 (P): New macro to define a register as a pseudo register.
3739 (R, R4, R8, R16, FR32, R64, R0): Updated.
3740 (struct variant): Add new fields for number of pseudo registers
3741 and number of total registers.
3742 (tot_num_registers): New macro replacing....
3743 (num_registers): ...deleted macro.
3744 (num_registers): New function.
3745 (num_pseudo_registers): New function.
3746 (variants): Update all variants to intialize new fields correctly.
3747 Postpone initialization of number of pseudo regs and real regs.
3748 (init_variants): New function.
3749 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3750 registers offsets.
3751
fcaffe4c
DC
37522002-08-19 David Carlton <carlton@math.stanford.edu>
3753
2c2738a0
DC
3754 * valops.c (search_struct_field): Change error message to treat
3755 return value of 0 from value_static_field as meaning that field is
3756 optimized out.
3757 (value_struct_elt_for_reference): Ditto.
3758 * values.c (value_static_field): Treat an unresolved location the
3759 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
3760 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3761 enclosed. Fix PR gdb/574.
fcaffe4c
DC
3762 * MAINTAINERS: Add self to Write After Approval list.
3763
88658117
AC
37642002-08-19 Andrew Cagney <ac131313@redhat.com>
3765
3766 * mips-tdep.c (mips_xfer_register): New function.
3767 (mips_n32n64_extract_return_value): Rewrite.
3768 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3769 instead of deprecated_extract_return_value.
3770
21283beb
EZ
37712002-08-19 Elena Zannoni <ezannoni@redhat.com>
3772
3773 * rs6000-tdep.c (TDEP): Delete macro.
3774 (branch_dest): Replace use of TDEP macro with its body.
3775 (rs6000_pop_frame): Ditto.
3776 (rs6000_push_arguments): Ditto.
3777 (rs6000_skip_trampoline_code): Ditto.
3778 (rs6000_frame_saved_pc): Ditto.
3779 (rs6000_frame_chain): Ditto.
3780 (rs6000_register_name): Ditto.
3781 (rs6000_register_byte): Ditto.
3782 (rs6000_register_raw_size): Ditto.
3783 (rs6000_register_virtual_type): Ditto.
3784 (rs6000_register_convertible): Ditto.
3785 (rs6000_convert_from_func_ptr_addr): Ditto.
3786
bf072999
DJ
37872002-08-19 Daniel Jacobowitz <drow@mvista.com>
3788
3789 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3790 conditionally.
3791 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3792 MIPS_LINUX_JB_ELEMENT_SIZE.
3793 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3794 for MAX_REGISTER_RAW_SIZE arrays.
3795 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3796 MIPS_LINUX_JB_ELEMENT_SIZE.
3797
9b949a49
PM
37982002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3799
3800 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3801
6d3e79c6
AS
38022002-08-19 Aidan Skinner <aidan@velvet.net>
3803
3804 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3805 ada-valprint.c ada-tasks.c.
3806 (YYFILES): Add ada-exp.y.
3807 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3808 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3809 (ada-exp.tab.o): New target.
3810
06c0b04e
AC
38112002-08-18 Andrew Cagney <ac131313@redhat.com>
3812
3813 * regcache.c (regcache_xfer_part): New function.
3814 (regcache_raw_read_part): New function.
3815 (regcache_raw_write_part): New function.
3816 (regcache_cooked_read_part): New function.
3817 (regcache_cooked_write_part): New function.
3818 * regcache.h (regcache_raw_read_part): Declare.
3819 (regcache_raw_write_part): Declare.
3820 (regcache_cooked_read_part): Declare.
3821 (regcache_cooked_write_part): Declare.
3822
92d1e331
DJ
38232002-08-18 Daniel Jacobowitz <drow@mvista.com>
3824
3825 * remote.c (remote_open_1): Add async_p.
3826 (remote_async_open_1): Delete.
3827 (open_remote_target): Delete.
3828 (remote_open, extended_remote_open): Update calls to remote_open_1.
3829 (remote_async_open, extended_remote_async_open): Call
3830 remote_open_1 instead of remote_async_open_1.
3831
247055de
MK
38322002-08-19 Mark Kettenis <kettenis@gnu.org>
3833
3834 * blockframe.c: Fix a few coding standard violations.
3835
641eda39
MK
38362002-08-19 Mark Kettenis <kettenis@gnu.org>
3837
0b717710
MK
3838 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3839 here from ...
3840 * config/i386/tm-i386sco5.h: ... here. File removed.
3841 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3842
26d28e12 3843 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
3844 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3845 (TM_FILE): Set to tm-i386.h.
3846 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3847 * config/i386/tm-i386v.h: Remove file.
3848 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3849 instead of "i386/tm-i386v.h".
3850 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3851 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3852 "i386/tm-i386v.h".
3853 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3854 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3855 "i386/tm-i386.h".
3856
d4e0bab4
MK
38572002-08-18 Mark Kettenis <kettenis@gnu.org>
3858
3859 * config/i386/nm-i386v.h: Add protection against
3860 multiple-inclusion.
3861 (i386_register_u_addr): Remove prototype.
3862 (register_u_addr): New prototype.
3863 (REGISTER_U_ADDR): Redefine accordingly.
3864 * i386v-nat.c: Improve several comments.
3865 (i386_register_u_addr): Change signature and rename to
3866 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3867 ubase variable.
3868
46cac009
AC
38692002-08-18 Andrew Cagney <ac131313@redhat.com>
3870
3871 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3872 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3873 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3874 deprecated_extract_return_value.
3875 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3876 rename mips_o32o64_push_arguments.
3877 (mips_gdbarch_init): Update.
3878 (mips_extract_return_value): Delete.
3879 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3880 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3881 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3882 (mips_n32n64_extract_return_value): Clone
3883 mips_extract_return_value.
3884 (mips_store_return_value): Delete.
3885 (mips_o32_store_return_value): Clone mips_store_return_value.
3886 (mips_o64_store_return_value): Clone mips_store_return_value.
3887 (mips_eabi_store_return_value): Clone mips_store_return_value.
3888 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3889
d2e4a39e
AS
38902002-08-18 Aidan Skinner <aidan@velvet.net>
3891
0c30c098
AS
3892 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3893 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3894
38952002-08-18 Aidan Skinner <aidan@velvet.net>
3896
3897 * ada-lang.c: Run through gdb_indent.sh.
3898 * ada-lang.h: Run through gdb_indent.sh.
3899 * ada-tasks.c: Run through gdb_indent.sh.
3900 * ada-typeprint.c: Run through gdb_indent.sh.
3901 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 3902
01fc4e33
AC
39032002-08-18 Andrew Cagney <ac131313@redhat.com>
3904
3905 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3906 ABI.
3907
d8ee244c
MK
39082002-08-18 Mark Kettenis <kettenis@gnu.org>
3909
c38d8261
MK
3910 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3911
222db64c
MK
3912 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3913 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3914
c2848c82
MK
3915 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3916 write_register_gen instead of write_register_bytes.
3917
d8ee244c
MK
3918 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3919 i[3456]-*-osf1mk* configurations have been made obsolete.
3920 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3921 i[3456]86-*-osf1mk* hosts obsolete.
3922 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3923 targets obsolete.
3924 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3925 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3926 config/i386/i386m3.mt, config/i386/nm-m3.h,
3927 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3928 config/i386/i386mk.mh, config/i386/i386mk.mt,
3929 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3930 obsolete.
3931 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3932 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3933 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3934
61d8d407
AC
39352002-08-18 Andrew Cagney <ac131313@redhat.com>
3936
3937 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3938 (hppa_value_returned_from_stack): Declare.
3939 (hppa_extract_return_value): Declare.
3940 * config/pa/hppa.mt: New file.
3941 * configure.tgt: Recognize hppa*-*-*.
3942 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3943
0c52bd59
MK
39442002-08-18 Mark Kettenis <kettenis@gnu.org>
3945
3946 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3947 comment.
3948
b5686e99
MK
39492002-08-17 Mark Kettenis <kettenis@gnu.org>
3950
3951 * top.c (gdb_rl_operate_and_get_next): Make sure
3952 operate-and-get-next functions correctly even when the history
3953 list is completely filled.
3954
c1bab85b
AC
39552002-08-18 Andrew Cagney <ac131313@redhat.com>
3956
3957 * MAINTAINERS (Target Instruction Set Architectures): Rename
3958 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3959 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3960 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3961 already listed under Host/Native.
3962
3963 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3964 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3965 mips*-*-*.
3966
32089c7c
AC
39672002-08-17 Andrew Cagney <ac131313@redhat.com>
3968
3969 * config/ia64/ia64.mt: New file.
3970 * config/alpha/alpha.mt: New file.
3971 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3972 ia64-linux-gnu. Mention that ia64-elf is broken.
3973 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3974
b4671f85
MK
39752002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3976
3977 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3978 generic_func_frame_valid instead of func_frame_valid.
3979
c8edd8b4
JB
39802002-08-16 Joel Brobecker <brobecker@gnat.com>
3981
3982 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3983 procfs appears to be broken when debugging on multi-processor
3984 machines. So enable software single stepping in order to avoid
3985 using the procfs interface to do next/step operations, using
3986 internal breakpoints instead.
3987
3988 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3989 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3990 make this pc address equal to the value it would have if the
3991 system stepping capability was used. Also set a new flag used
3992 to ensure that we don't readjust the PC one more time later.
3993
3994 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3995 address by DECR_PC_AFTER_BREAK when software single step is
3996 in use for this architecture, as this has already been taken
3997 care of in handle_inferior_event().
3998
238617f6
JB
39992002-08-16 Joel Brobecker <brobecker@gnat.com>
4000
4001 * infrun.c (handle_inferior_event): Minor reformatting, to make
4002 a rather long condition expression easier to read.
4003
541a7aac
AC
40042002-08-16 Andrew Cagney <ac131313@redhat.com>
4005
4006 * Makefile.in (gdbtk.o): Move to end of file.
4007 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4008 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4009 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4010 (gdbtk-wrapper.o, gdbres.o): Ditto.
4011
f92d4a7b
AC
40122002-08-16 Andrew Cagney <ac131313@redhat.com>
4013
4014 * Makefile.in (copying.o): Separate out compile rule.
4015 (hpux-thread.o, procfs.o, signals.o): Ditto.
4016 (v850ice.o, z8k-tdep.o): Ditto.
4017 (tui-file.o): Move to TUI section.
4018 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4019 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4020
1cce71eb
JB
40212002-08-16 Joel Brobecker <brobecker@gnat.com>
4022
4023 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4024 skip_trampoline_code, for better namespace-proofing.
4025
4026 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4027
0851f23d
JB
40282002-08-16 Joel Brobecker <brobecker@gnat.com>
4029
4030 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4031
f8d40ec8
JB
40322002-08-16 Joel Brobecker <brobecker@gnat.com>
4033
4034 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4035 signal, check whether we hit a breakpoint before checking for a
4036 single step breakpoint. Otherwise, GDB fails to notice that a
4037 breakpoint has been hit when stepping onto a breakpoint.
4038
63d022e0
KS
40392002-08-16 Keith Seitz <keiths@redhat.com>
4040
4041 * gdb-events.sh (clear_gdb_event_hooks): New function.
4042 * gdb-events.c: Regenerate.
4043 * gdb-events.h: Regenerate.
4044
6e31adb3
AC
40452002-08-16 Andrew Cagney <ac131313@redhat.com>
4046
4047 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4048 not_a_sw_breakpoint.
4049 * breakpoint.h (bpstat_stop_status): Add parameter names.
4050
c8189ed1
GS
40512002-08-16 Grace Sainsbury <graces@redhat.com>
4052
4053 * remote.c (remote_insert_hw_breakpoint)
4054 (remote_remove_hw_breakpoint): Fix calculation of length field
4055 for Z-packet.
4056
d05285fa
MS
40572002-08-15 Michael Snyder <msnyder@redhat.com>
4058
466d7106
MS
4059 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4060 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4061 (supply_fpregset): Ditto.
4062
d05285fa
MS
4063 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4064 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4065 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 4066 (TARGET_READ_SP): Delete.
bf1f5b4c 4067 (DO_REGISTERS_INFO): Delete.
102182a9
MS
4068 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4069 Delete.
4070 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4071 from macros to functions.
bf1f5b4c 4072
d05285fa
MS
4073 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4074 (mips_register_convertible, mips_register_convert_to_virtual,
4075 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
4076 (mips_read_sp): New function.
4077 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
4078 (mips_do_registers_info): Make static.
4079 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
4080 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4081 (mips_register_convert_from_type, mips_register_convert_to_type):
4082 New functions.
4083 (mips_gdbarch_init): Set up function_start_offset,
4084 register_virtual_size, pc_in_sigtramp.
d05285fa 4085
e76f1f2e
AC
40862002-08-15 Andrew Cagney <ac131313@redhat.com>
4087
4088 * infcmd.c (vector_info): New function.
4089 (_initialize_infcmd): Add command "info vector".
4090 (print_vector_info): New function.
4091
4092 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4093 * gdbarch.h, gdbarch.c: Regenerate.
4094
4782dc19
AC
40952002-08-15 Andrew Cagney <ac131313@redhat.com>
4096
4097 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4098 ``print_all''. Only print vector registers when ``print_all''.
4099
23e3a7ac
AC
41002002-08-15 Andrew Cagney <ac131313@redhat.com>
4101
8e186fd6
AC
4102 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4103 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4104
23e3a7ac
AC
4105 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4106 Add `args' parameter.
4107 * gdbarch.h, gdbarch.c: Regenerate.
4108
4109 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4110
4111 * infcmd.c (float_info): Call print_float_info.
4112 (print_float_info): New function. By default, print the
4113 floating-point registers.
4114
4115 * arch-utils.h (default_print_float_info): Delete declaration.
4116 * arch-utils.c (default_print_float_info): Delete function.
4117
e0ca2bb9
MK
41182002-08-16 Mark Kettenis <kettenis@gnu.org>
4119
3f733acc
MK
4120 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4121 out define.
4122
7d8d2918
MK
4123 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4124 FRAME.
4125
1c7cc583
MK
4126 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4127 * configure.host: Make i[3456]86-*-aix host obsolete.
4128 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4129 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4130 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4131 config/i386/xm-i386aix.h: Make files obsolete.
4132 * i386aix-nat.c: Make file obsolete.
4133 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4134 (i386aix-nat.o): Make target obsolete.
4135
e0ca2bb9
MK
4136 * config/i386/nm-gnu.h: Removed.
4137 * config/i386/nm-i386gnu.h: New file.
4138 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4139 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4140 Moved here from ...
4141 * config/i386/tm-i386gnu.h: ... here. Removed.
4142 * config/i386/xm-i386gnu.h: Removed.
4143 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4144 (NAT_FILE): Set to nm-i386gnu.h.
4145 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4146 * i386-tdep.c: New file.
4147 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4148 (i386gnu-tdep.o): Specify dependencies.
4149
16057ec7 41502002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 4151
6b99ee2e
MK
4152 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4153 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4154 Adjust a few comments to reflect reality a bit closer.
4155 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4156 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4157 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4158 target_insert_watchpoint, target_remove_watchpoint):
4159 Move defines to ...
4160 * config/i386/nm-i386sco5.h: ... here.
4161 (kernel_u_size): Add prototype. Improve a few comments and add
4162 protection against multiple inclusion.
4163
d9a6f65c
MK
4164 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4165 out define.
4166
047eff6a
MK
4167 * uw-thread.c (SP_ARG0): Define if not already defined.
4168 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4169
dcdb1290
MK
4170 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4171
5d2d0b2a
MK
4172 * config/i386/tm-i386.h: Don't include "regcache.h".
4173
61113f8b
MK
4174 * i387-tdep.h (i387_print_float_info): New prototype.
4175 * i387-tdep.c (print_i387_value, print_i387_ext,
4176 print_i387_status_word, print_i387_control_word): Add `struct
4177 ui_file *' argument and use it for output.
4178 (i387_print_float_info): Renamed from i387_float_info. Add
4179 `struct gdbarch *' and `struct ui_file *' arguments and use the
4180 latter for output.
4181 * i386-tdep.c: Include "i387-tdep.h".
4182 (i386_gdbarch_init): Set print_float_info.
4183 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4184 (FLOAT_INFO): Remove define.
4185
46e0f506
MS
41862002-08-13 Michael Snyder <msnyder@redhat.com>
4187
4188 * mips-tdep.c (mips_push_arguments): Rename to
4189 mips_eabi_push_arguments, and tune for EABI.
4190 (MIPS_REGS_HAVE_HOME_P): Delete.
4191 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4192 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4193 Delete references to mips_regs_have_home_p.
4194
409268de
KS
41952002-08-14 Keith Seitz <keiths@redhat.com>
4196
4197 * Makefile.in (install-gdbtk): Create insight plugin directory.
4198 Install plugins.tcl file.
4199
ffc6a242
KS
42002002-08-14 Keith Seitz <keiths@redhat.com>
4201
4202 * configure.in: Move SUBDIRS to near top of the file so that
4203 --enable options may add things to it.
4204 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4205 * configure: Regenerate.
4206
ebafbe83
MS
42072002-08-13 Michael Snyder <msnyder@redhat.com>
4208
4209 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4210 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4211 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4212
32f6f25d
AC
42132002-08-13 Andrew Cagney <ac131313@redhat.com>
4214
4215 * vax-tdep.c (vax_get_saved_register): Delete function.
4216 (vax_gdbarch_init): Update.
4217 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4218 (ns32k_gdbarch_init): Update.
4219 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4220 (alpha_gdbarch_init): Update.
4221
53826de9
AC
42222002-08-13 Andrew Cagney <cagney@redhat.com>
4223
4224 * regcache.c (init_regcache_descr): Overallocate the
4225 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4226 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4227 nr_raw_registers.
4228 (set_register_cached): Add range checking assertions. Use
4229 current_regcache.
4230
16057ec7 42312002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
4232
4233 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4234 numbers for MMX registers.
4235
7b4c2dce
AC
42362002-08-13 Andrew Cagney <cagney@redhat.com>
4237
4238 * i386-tdep.c (i386_gdbarch_init): Use
4239 generic_unwind_get_saved_register.
4240
1e03ad20
KB
42412002-08-13 Kevin Buettner <kevinb@redhat.com>
4242
4243 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4244 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4245 target vector.
4246 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4247 Delete. Add comment regarding this now-deleted target method.
4248
548bcbec
SC
42492002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4250
4251 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4252 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4253 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4254 real PC and the page number (if it's within the memory bank window).
4255 (m68hc11_pseudo_register_write): Likewise when saving.
4256 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4257 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4258 (m68hc11_register_raw_size): And use 32-bit for it.
4259 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4260 16K memory bank is used by the prog; also use the virtual pc.
4261
7df11f59
SC
42622002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4263
4264 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4265 (m68hc11_gdbarch_init): Install it in gdbarch.
4266 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4267 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4268 (MSYMBOL_SIZE): New for documentation.
4269 (insn_return_kind): Enum to specify how a function returns.
4270 (frame_extra_info): Cleanup and record the return mode.
4271 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4272 register in address computation.
4273 (m68hc11_get_return_insn): New to obtain the return instruction used
4274 by the function.
4275 (m68hc11_frame_init_saved_regs): Take into account the return
4276 instruction used by the function for far and interrupt functions.
4277 (m68hc11_init_extra_frame_info): Take into account page register.
4278 (m68hc11_frame_args_address): Adjust according to the return mode.
4279 (show_regs): Print page register only when it's used.
4280
5706502a
SC
42812002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4282
4283 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4284 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4285 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4286 registers.
4287 (m68hc11_register_raw_size): Likewise.
4288
28fc6740
AC
42892002-08-13 Andrew Cagney <cagney@redhat.com>
4290
4291 * i386-tdep.c (i386_register_name): Handle mmx registers.
4292 (mmx_regnum_p): New function.
4293 (i386_mmx_names): New array.
4294 (mmx_num_regs): New variable.
4295 (i386_pseudo_register_read): New function.
4296 (i386_pseudo_register_write): New function.
4297 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4298
4299 * regcache.c (regcache_raw_read_unsigned): New function.
4300 (regcache_raw_read_signed): New function.
4301 * regcache.h (regcache_raw_read_unsigned): Declare.
4302 (regcache_raw_read_signed): Declare.
4303
a378f419
AC
43042002-08-13 Andrew Cagney <cagney@redhat.com>
4305
4306 * regcache.c (regcache_raw_read_as_address): Delete function.
4307 (regcache_cooked_read_signed): New function.
4308 (regcache_cooked_read_unsigned): New function.
4309 * regcache.h (regcache_cooked_read_signed): Declare.
4310 (regcache_cooked_read_unsigned): Declare.
4311 (regcache_raw_read_as_address): Delete declaration.
4312
4313 * blockframe.c (generic_read_register_dummy): Use
4314 regcache_cooked_read_unsigned.
4315 * i386-tdep.c (i386_extract_struct_value_address): Use
4316 regcache_cooked_read_unsigned.
4317
81967506
SC
43182002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4319
4320 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4321 double sizes according to ELF ABI flags.
4322 (gdbarch_tdep): Record elf_flags.
4323
ffe1f3ee
SC
43242002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4325
4326 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4327 (m6812_prolog): They can appear in 68HC12 function prologue.
4328 (m68hc11_frame_chain): Cleanup.
4329
98216c5d
AC
43302002-08-12 Andrew Cagney <cagney@redhat.com>
4331
4332 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4333 declarations.
4334 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4335 (i386_linux_register_raw_size): Delete function.
4336 (i386_linux_init_abi): Update.
4337 * i386-tdep.c (i386_register_raw_size): Delete function.
4338 (i386_register_byte): Delete function.
4339 (i386_gdbarch_init): Update.
4340 (i386_register_size): Delete array.
4341 (i386_register_offset): Delete array.
4342
4343 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4344 (REGISTER_RAW_SIZE): Delete macro.
4345 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4346 (REGISTER_BYTE): Delete macro.
4347
3b19021e
AS
43482002-08-11 Aidan Skinner <aidan@velvet.net>
4349
4350 * ada-lang.c (ada_lookup_partial_symbol)
4351 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4352 prototype names so that grep ^func works properly.
4353
4354 * ada-lang.c (ada_array_element_type)
4355 (ada_lookup_partial_symbol): Fix typos in parameter list.
4356
4357 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4358 Fix prototype names so that grep ^func works properly.
4359
b063e7a2
AC
43602002-08-10 Andrew Cagney <cagney@redhat.com>
4361 Elena Zannoni <ezannoni@redhat.com>
4362 Martin M. Hunt <hunt@redhat.com>
4363
4364 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4365 (build_builtin_type_vec128i): Set the vector bit.
4366 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4367 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4368 (build_builtin_type_vec64): New function.
4369 (build_builtin_type_vec64i): New function.
4370 (build_gdbtypes): Initialize builtin_type_vec64 and
4371 builtin_type_vec64i.
4372
a7e3c2ad
AC
43732002-08-09 Andrew Cagney <cagney@redhat.com>
4374
4375 * regcache.c (regcache_dump): Compare the register offset
4376 with REGISTER_BYTE.
4377 * arch-utils.c (generic_register_byte): New function.
4378 * arch-utils.h (generic_register_byte): Declare.
4379 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4380 * gdbarch.h, gdbarch.c: Regenerate.
4381
af030b9a
AC
43822002-08-09 Andrew Cagney <cagney@redhat.com>
4383
4384 * regcache.c: Include "gdbcmd.h"
4385 (_initialize_regcache): Add commands "maintenance print
4386 registers", "maintenance print raw-registers" and "maintenance
4387 print cooked-registers".
4388 (enum regcache_dump_what): Define.
4389 (dump_endian_bytes): New function.
4390 (regcache_dump): New function.
4391 (regcache_print): New function.
4392 (maintenance_print_registers): New function.
4393 (maintenance_print_raw_registers): New function.
4394 (maintenance_print_cooked_registers): New function.
4395 * Makefile.in (regcache.o): Update dependencies.
4396
cb3d25d1
MS
43972002-08-09 Michael Snyder <msnyder@redhat.com>
4398
4399 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4400 (mips_push_arguments): Correct some comments. Use paddr_nz
4401 for printing addresses in debug output. Replace static
4402 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4403 (mips_n32n64_push_arguments): New function, cloned from
4404 mips_push_arguments and tuned for the n32/n64 ABI.
4405 (mips_push_register): Buffer needs dynamic allocation.
4406 (mips_print_register): Ditto.
4407 (do_gp_register_row): Ditto.
4408 (mips_store_return_value): Ditto.
4409 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4410
2163ab9d
DH
44112002-08-09 Don Howard <dhoward@redhat.com>
4412
4413 * memattr.c (mem_info_command): Print special case of upper bound
4414 as max CORE_ADDR + 1.
4415
b78bcb18
MS
44162002-08-08 Michael Snyder <msnyder@redhat.com>
4417
4418 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4419 returns structs by ref if they're too big to fit in two registers.
4420
ffabd70d
KB
44212002-08-09 Kevin Buettner <kevinb@redhat.com>
4422
4423 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4424 saved regs value.
4425 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4426 mips_find_saved_regs().
4427 (mips_pop_frame): Likewise.
4428
fbcdb4a3
KB
44292002-08-09 Kevin Buettner <kevinb@redhat.com>
4430
4431 * blockframe.c (frame_saved_regs_register_unwind): Revise
4432 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4433 frames are in use.
4434
3c3bea1c
GS
44352002-08-09 Grace Sainsbury <graces@redhat.com>
4436
4437 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4438 T-packets; the 'a' is not taken as a register number.
4439 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4440 (remote_stopped_data_address): New functions; add to target
4441 vector.
4442 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4443 prototypes to match other implementations of this
4444 function. replace integer argument with pointer -- the length
4445 field in the Z-packet is the length of what is pointed to or 1 if
4446 pointer is null. Add to target vector.
4447 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4448 target vector.
4449
4450 From Mark Salter:
4451 * remote.c (remote_wait): Add support to extract optional
4452 watchpoint information from T-packet. Ignore unrecognized
4453 optional info in T-packet.
4454 (remote_async_wait): Ditto.
4455
5d1d95de
CV
44562002-08-09 Corinna Vinschen <vinschen@redhat.com>
4457
4458 * cli/cli-dump.c: Change fopen modes to use binary open modes
4459 as defined in include/fopen-bin.h throughout.
4460
c86b5b38
MS
44612002-08-08 Michael Snyder <msnyder@redhat.com>
4462
4463 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4464
b30590dc
KB
44652002-08-08 Kevin Buettner <kevinb@redhat.com>
4466
4467 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4468 assertion failure by returning early after a warning.
4469
498868ed
KB
44702002-08-08 Kevin Buettner <kevinb@redhat.com>
4471
4472 * mips-tdep.c (mips_find_saved_regs): Make static.
4473 (mips_frame_init_saved_regs): New function.
4474 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4475 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4476 (mips_find_saved_regs): Delete declaration.
4477
b2dd6311
GS
44782002-08-08 Grace Sainsbury <graces@redhat.com>
4479
3c3bea1c
GS
4480 * remote.c (remote_wait, remote_async_wait): Change
4481 thread_num from int to ULONGEST.
4482 (unpack_varlen_hex): Change result parameter from
4483 int * to ULONGEST *.
b2dd6311 4484
ea47855f
AC
44852002-08-08 Andrew Cagney <ac131313@redhat.com>
4486
4487 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4488 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4489 powerpc*-*-*.
4490 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4491
69db8bae
AC
44922002-08-08 Andrew Cagney <cagney@redhat.com>
4493
4494 * gcore.c (override_derive_stack_segment): Delete variable.
4495 (preempt_derive_stack_segment): Delete function.
4496 (derive_stack_segment): Delete function.
4497 (default_derive_stack_segment): Renamed to derive_stack_segment.
4498 (override_derive_heap_segment): Delete variable.
4499 (preempt_derive_heap_segment): Delete function.
4500 (derive_heap_segment): Delete function.
4501 (default_derive_heap_segment): Rename to derive_heap_segment.
4502
cb811fe7
MS
45032002-08-06 Michael Snyder <msnyder@redhat.com>
4504
4505 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4506 * mips-tdep.c (mips_EABI_use_struct_convention,
4507 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4508 New functions. (mips_use_struct_convention): Delete.
4509 (mips_gdbarch_init): set use_gdbarch_convention.
4510
8b389c40
MS
45112002-08-06 Michael Snyder <msnyder@redhat.com>
4512
4513 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4514 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4515 mips_o32_reg_struct_has_addr): New functions.
4516 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4517
5c27f28a
AC
45182002-08-07 Andrew Cagney <ac131313@redhat.com>
4519
4520 * regcache.c (pseudo_register): Delete function.
4521 (fetch_register): Delete function.
4522 (store_register): Delete function.
4523 (regcache_raw_read, legacy_read_register_gen): Use
4524 target_fetch_registers instead of fetch_register.
4525 (legacy_write_register_gen, regcache_raw_write): Use
4526 target_store_register instead of store_register.
4527 (write_register_bytes): Ditto.
4528
4529 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4530 (STORE_PSEUDO_REGISTER): Delete.
4531 * gdbarch.h, gdbarch.c: Regenerate.
4532
5b331675
CV
45332002-08-06 Corinna Vinschen <vinschen@redhat.com>
4534
4535 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4536 write dump file binary.
4537
6acdf5c7
MS
45382002-08-05 Michael Snyder <msnyder@redhat.com>
4539
4540 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4541 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4542 (mips_gdbarch_init): Set N32 target to be mips64.
4543
b2f01c35
KB
45442002-08-06 Kevin Buettner <kevinb@redhat.com>
4545
4546 * frame.c (find_saved_register): Break out of loop once saved
4547 register address is found. Don't mention sparc in loop comment
4548 anymore.
4549
63db5580
KB
45502002-08-06 Kevin Buettner <kevinb@redhat.com>
4551
4552 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4553 mips_default_saved_regsize to 8.
4554
5e34e75e
AC
45552002-08-06 Andrew Cagney <ac131313@redhat.com>
4556
4557 * gcore.c: Do not include <sys/procfs.h>.
4558 * Makefile.in (gcore.o): Update dependencies.
4559
eb4c54a2
AC
45602002-08-06 Andrew Cagney <cagney@redhat.com>
4561
4562 * configure.tgt: Make arc-*-* obsolete.
4563 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4564 * MAINTAINERS: Make arc-elf obsolete.
4565 * arc-tdep.c: Make file obsolete.
4566 * config/arc/arc.mt: Ditto.
4567 * config/arc/tm-arc.h: Ditto.
4568
ced15480
TR
45692002-08-05 Theodore A. Roth <troth@verinet.com>
4570
c1bab85b 4571 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 4572
b4743822
AC
45732002-08-05 Andrew Cagney <ac131313@redhat.com>
4574
4575 * mcore-tdep.c (mcore_gdbarch_init): Use
4576 generic_unwind_get_saved_register instead of
4577 generic_get_saved_register.
4578 * v850-tdep.c (v850_gdbarch_init): Ditto.
4579 * frv-tdep.c (frv_gdbarch_init): Ditto.
4580 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4581 * s390-tdep.c (s390_gdbarch_init): Ditto.
4582 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4583 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4584 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4585
3956d554
JB
45862002-08-05 Joel Brobecker <brobecker@gnat.com>
4587
4588 * objfiles.h: Add missing #include "symfile.h"
4589
4590 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4591
8249c0d6
AC
45922002-08-04 Andrew Cagney <ac131313@redhat.com>
4593
4594 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4595 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4596 of FIELD_BITSIZE.
4597
b9d14705
DJ
45982002-08-04 Daniel Jacobowitz <drow@mvista.com>
4599
4600 * NEWS: Cleanup and nitpick.
4601
dd73b9bb
AC
46022002-08-03 Andrew Cagney <ac131313@redhat.com>
4603
4604 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4605
043a27f8
AC
46062002-08-03 Andrew Cagney <ac131313@redhat.com>
4607
4608 * Makefile.in (gdbtk-bp.o): Update dependencies.
4609 (gdbtk-register.o): Ditto.
4610 (gdbtk-varobj.o): Ditto.
4611
46ce284d
AC
46122002-08-03 Andrew Cagney <cagney@redhat.com>
4613
4614 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4615 m68hc11_fetch_pseudo_register.
4616 (m68hc11_pseudo_register_write): Replace
4617 m68hc11_store_pseudo_register.
4618 (m68hc11_gdbarch_init): Update.
4619
b66d6d2e
AC
4620Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4621
4622 * gdbarch.sh: Include "gdb_string.h".
4623 * gdbarch.c: Regenerate.
4624
4625 * regcache.c: Include "gdb_string.h".
4626 * ax-general.c: Ditto.
4627 * varobj.c: Ditto.
4628 * std-regs.c: Ditto.
4629 * fbsd-proc.c: Ditto.
4630 * thread.c: Ditto.
4631
4632 * Makefile.in (regcache.o): Update dependencies.
4633 (thread.o, gdbarch.o): Ditto.
4634 (ax-general.o, gdbarch.o): Ditto.
4635 (varobj.o, std-regs.o): Ditto.
4636 (fbsd-proc.o): Specify dependencies.
4637
29e1842b
AC
46382002-08-02 Andrew Cagney <cagney@redhat.com>
4639
4640 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4641 regnum.
4642 (regcache_cooked_write): Ditto.
4643
68365089
AC
46442002-08-02 Andrew Cagney <ac131313@redhat.com>
4645
4646 * regcache.c (regcache_cooked_read): New function.
4647 (regcache_cooked_write): New function.
4648 (read_register_gen): Rewrite using regcache_cooked_read.
4649 (write_register_gen): Rewrite using regcache_cooked_write.
4650
4651 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4652 Declare.
4653
d8124050
AC
46542002-08-02 Andrew Cagney <cagney@redhat.com>
4655
4656 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4657 Replace the architecture methods register_read and register_write.
4658 * gdbarch.h, gdbarch.c: Regenerate.
4659 * regcache.c (init_regcache_descr): Update.
4660 (read_register_gen): Update.
4661 (write_register_gen): Update.
4662 (supply_register): Update comment.
4663
4664 * sh-tdep.c (sh_gdbarch_init): Update.
4665 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4666 `regcache' and `gdbarch' parameters. Make `buffer' a void
4667 pointer. Update code.
4668 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4669 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4670 void pointer. Update code.
4671 (sh64_register_write): Delete.
4672 (sh4_register_read): Delete.
4673 (sh64_register_read): Delete.
4674 (sh4_register_write): Delete.
4675 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4676 void pointer, `to' parameter a void pointer.
4677 (sh_sh64_register_convert_to_raw): Ditto.
4678
a6425924
KB
46792002-08-01 Kevin Buettner <kevinb@redhat.com>
4680
4681 * mips-tdep.c (mips_register_virtual_type): Use architecture
4682 invariant return values.
4683
ff5922b5
AC
46842002-08-01 Andrew Cagney <cagney@redhat.com>
4685
4686 * linux-proc.c: Include "gdb_string.h".
4687 * Makefile.in (linux-proc.o): Update dependency list.
4688
32a6503c
KB
46892002-08-01 Kevin Buettner <kevinb@redhat.com>
4690
4691 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4692 comment.
4693
ccaa32c7
GS
46942002-08-01 Grace Sainsbury <graces@redhat.com>
4695
4696 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4697 to_insert_watchpoint, to_remove_watchpoint,
4698 to_stopped_by_watchpoint, to_stopped_data_address,
4699 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4700 target vecctor. Define their corresponding macros so they call
4701 them.
4702
4703 * target.c: Add default and debug versions of for
4704 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4705 to_insert_watchpoint, to_remove_watchpoint,
4706 to_stopped_by_watchpoint, to_stopped_data_address,
4707 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4708
78fde5f8
KB
47092002-08-01 Kevin Buettner <kevinb@redhat.com>
4710
4711 * mips-tdep.c (mips_register_virtual_type): New function.
4712 (mips_gdbarch_init): Register mips_register_virtual_type()
4713 with gdbarch machinery.
4714 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4715 this file instead of tm-bigmips.h.
4716 (MIPS_REGSIZE): Delete this macro.
4717 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4718 multiarch version in mips-tdep.c will be found.
4719
db034ac5
AC
47202002-08-01 Andrew Cagney <cagney@redhat.com>
4721
4722 * NEWS: Menion that CHILL has been made obsolete.
4723
4724 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
4725 * stabsread.c (read_range_type): Ditto.
4726 * gdbtypes.h: Ditto.
4727 * language.c (binop_type_check): Ditto.
4728 (binop_result_type): Ditto.
4729 (integral_type): Ditto.
4730 (character_type): Ditto.
4731 (string_type): Ditto.
4732 (boolean_type): Ditto.
4733 (structured_type): Ditto.
4734 (lang_bool_type): Ditto.
4735 (binop_type_check): Ditto.
4736 * language.h (_LANG_chill): Ditto.
4737 * dwarfread.c (set_cu_language): Ditto.
4738 * dwarfread.c (CHILL_PRODUCER): Ditto.
4739 * dwarfread.c (handle_producer): Ditto.
4740 * expression.h (enum exp_opcode): Ditto.
4741 * eval.c: Ditto for comments.
4742 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4743 * expprint.c (print_subexp): Ditto.
4744 (print_subexp): Ditto.
4745 * valops.c (value_cast): Ditto.
4746 (search_struct_field): Ditto.
4747 * value.h (COERCE_VARYING_ARRAY): Ditto.
4748 * symfile.c (init_filename_language_table): Ditto.
4749 (add_psymbol_with_dem_name_to_list): Ditto.
4750 * valarith.c (value_binop): Ditto.
4751 (value_neg): Ditto.
4752 * valops.c (value_slice): Ditto.
4753 * symtab.h (union language_specific): Ditto.
4754 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4755 (SYMBOL_DEMANGLED_NAME): Ditto.
4756 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4757 * defs.h (enum language): Ditto.
4758 * symtab.c (got_symtab): Ditto.
4759 * utils.c (fprintf_symbol_filtered): Ditto.
4760
4761 * ch-typeprint.c: Make file obsolete.
4762 * ch-valprint.c: Make file obsolete.
4763 * ch-lang.h: Make file obsolete.
4764 * ch-exp.c: Make file obsolete.
4765 * ch-lang.c: Make file obsolete.
4766
4767 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4768 CHILL_LIB.
4769 (TARGET_FLAGS_TO_PASS): Ditto.
4770 (CHILLFLAGS): Obsolete.
4771 (CHILL): Obsolete.
4772 (CHILL_FOR_TARGET): Obsolete.
4773 (CHILL_LIB): Obsolete.
4774 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4775 ch-valprint.c.
4776 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4777 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4778 ch-lang.o.
4779 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4780 targets.
4781
8aaf0b47
JB
47822002-07-31 Joel Brobecker <brobecker@gnat.com>
4783
4784 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4785 This does not change anything at the moment, but will be helpful
4786 later when full Ada support is integrated.
4787
f3a7b3a5
KB
47882002-07-31 Kevin Buettner <kevinb@redhat.com>
4789
4790 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4791 help message.
4792
fb850278
KB
47932002-07-31 Kevin Buettner <kevinb@redhat.com>
4794
4795 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4796 and save it in a local variable. Use variable in later test.
4797
e3bddbfa
KB
47982002-07-31 Kevin Buettner <kevinb@redhat.com>
4799
4800 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4801 test. (Thanks to Daniel Jacobowitz.)
4802
28d169de
KB
48032002-07-31 Kevin Buettner <kevinb@redhat.com>
4804
4805 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4806 (mips_abi_strings): Add "n64".
4807 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4808
7fe7e44e
KB
48092002-07-31 Kevin Buettner <kevinb@redhat.com>
4810
4811 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4812 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4813
c6caf090
KB
48142002-07-31 Kevin Buettner <kevinb@redhat.com>
4815
4816 * utils.c (host_pointer_to_address, address_to_host_pointer):
4817 Use gdb_assert() instead of explicit call to internal_error().
4818
c41669e0
KB
48192002-07-30 Kevin Buettner <kevinb@redhat.com>
4820
4821 * Makefile.in (rs6000-nat.o): Update dependencies.
4822
4823 From Nicholas Duffek:
4824 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4825 (aix-thread.o): New rule.
4826 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4827 * config/powerpc/aix432.mh: New file.
4828
2fda4977
DJ
48292002-07-30 Daniel Jacobowitz <drow@mvista.com>
4830
4831 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4832 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4833 (fetch_core_registers, ppc_linux_supply_gregset)
4834 (ppc_linux_supply_fpregset): New functions.
4835 (ppc_linux_regset_core_fns): New.
4836 (_initialize_ppc_linux_tdep): Call add_core_fns.
4837 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4838 and ppc_linux_supply_gregset.
4839 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4840 (supply_fpregset): Call ppc_linux_supply_fpregset.
4841 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4842 corelow.o.
4843 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4844
729051e6
DJ
48452002-07-30 Daniel Jacobowitz <drow@mvista.com>
4846
4847 * symtab.c (lookup_symbol): Demangle before lowercasing.
4848
5f8a3188
AC
48492002-07-30 Andrew Cagney <ac131313@redhat.com>
4850
4851 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4852 declaration.
4853 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4854 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4855 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4856 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4857 "gdb_string.h".
4858 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4859 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4860 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4861 (avr-tdep.o, mon960-rom.o): Ditto.
4862 (aout_stabs_gnu_h): Define.
4863 (symtab_h): Remove $(gdb_obstack_h).
4864
67f07146
JB
48652002-07-30 Jim Blandy <jimb@redhat.com>
4866
4867 Patch from David Carlton <carlton@math.stanford.edu>:
4868 * gdbinit.in: Move the `dir' commands that add GDB's own source
4869 directory to the search path to the end, so that the `gdb' source
4870 directory will be searched first.
4871
04ea0df1
AC
48722002-07-29 Andrew Cagney <ac131313@redhat.com>
4873
4874 * gdb_obstack.h: New file.
4875 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4876 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4877 * objfiles.h: Include "gdb_obstack.h".
4878 * Makefile.in (gdb_obstack_h): Define.
4879 (symtab_h): Add $(gdb_obstack_h).
4880 (objfiles_h): Add $(gdb_obstack_h).
4881
4882 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4883 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4884 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4885 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4886 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4887 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4888 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4889 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4890
4891 * Makefile.in (bcache.o): Update dependencies.
4892 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4893 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4894 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4895 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4896 (stabsread.o, symfile.o, symmisc.o): Ditto.
4897 (symtab.o, typeprint.o, macroexp.o): Ditto.
4898 (macrotab.o, mdebugread.o): Ditto.
4899 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4900 (coff_ecoff_h, aout_aout64_h): Define.
4901 (aout_stabs_gnu_h, libaout_h): Define.
4902
d138e37a
AC
49032002-07-29 Andrew Cagney <cagney@redhat.com>
4904
4905 * regcache.c (struct regcache_descr): Rename nr_registers to
4906 nr_cooked_registers. Revise comments describing the structure
4907 member fields.
4908 (init_regcache_descr): Update.
4909 (init_legacy_regcache_descr): Update.
4910 (read_register_gen, write_register_gen): When a cooked register in
4911 the raw register range, directly access the value from the raw
4912 register cache.
4913
460e6ec3
AC
49142002-07-29 Andrew Cagney <ac131313@redhat.com>
4915
4916 * z8k-tdep.c: Do not include "obstack.h".
4917 * h8300-tdep.c, h8500-tdep.c: Ditto.
4918 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4919 * valprint.c, v850-tdep.c: Ditto.
4920 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4921 * mn10200-tdep.c: Ditto.
4922
4923 * Makefile.in (z8k-tdep.o): Update dependencies.
4924 (m68hc11-tdep.o, valprint.o): Ditto.
4925 (v850-tdep.o, d10v-tdep.o): Ditto.
4926 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4927 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4928 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4929 (sh_opc_h, gdb_sim_sh_h): Define.
4930 (elf_sh_h, elf_bfd_h): Define.
4931 (opcode_m68hc11_h): Define.
4932 (OPCODES_SRC, OPCODES_DIR): define.
4933 (OPCODES): Use $(OPCODES_DIR).
4934 (gdb_sim_d10v_h): Rename sim_d10v_h.
4935 (gdb_sim_arm_h): Rename sim_arm_h.
4936
790c9cf0
KB
49372002-07-26 Kevin Buettner <kevinb@redhat.com>
4938
4939 * utils.c (host_pointer_to_address, address_to_host_pointer):
4940 Change internal_error() message to indicate function responsible
4941 for the error.
4942
9647fa49
KB
49432002-07-26 Kevin Buettner <kevinb@redhat.com>
4944
4945 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4946 calls to local_hex_string_custom().
4947
dabbe2c0
KB
49482002-07-26 Kevin Buettner <kevinb@redhat.com>
4949
4950 * irix5-nat.c: Move IRIX shared library support from here...
4951 * solib-irix.c: ...to here. Revised substantially to work with
4952 generic solib framework.
4953
b96d0a4e
KB
4954 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4955 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4956 * mips-irix-tdep.c: New file.
4957
313fb2f6
KB
4958 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4959 (mips-irix-tdep.o, solib-irix.o): New rules.
4960 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4961 solib-irix.o.
4962 * config/mips/irix6.mt (TDEPFILES): Likewise.
4963 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4964
ab2eaf26
KB
49652002-07-26 Kevin Buettner <kevinb@redhat.com>
4966
177e4768 4967 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
4968 disabled (via ``#if 0'') includes.
4969
7244546a
KB
49702002-07-26 Kevin Buettner <kevinb@redhat.com>
4971
4972 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4973 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4974 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4975 Add support for the fpscr register.
4976 * rs6000-nat.c (regmap, fetch_inferior_registers)
4977 (store_inferior_registers, fetch_core_registers): Likewise.
4978
dd7be90a
KB
49792002-07-26 Kevin Buettner <kevinb@redhat.com>
4980
4981 * rs6000-nat.c (language.h): Include.
4982 (special_regs): Delete this array.
4983 (regmap): New function.
4984 (fetch_register, store_register): Use regmap() to map gdb
4985 register numbers to ptrace register numbers. Also, use
4986 outputs from regmap() to make decisions regarding type of
4987 ptrace() call to make. In particular, don't compare against
4988 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4989 (fetch_inferior_registers, store_inferior_registers): Where
4990 possible, obtain register numbers from tdep struct. Don't
4991 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4992 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4993 (LAST_UISA_SP_REGNUM): Delete.
4994
11bf77db
KB
49952002-07-25 Kevin Buettner <kevinb@redhat.com>
4996
4997 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
4998 (fetch_registers, store_register, fetch_core_registers): Don't
4999 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
5000 regcache_collect() as appropriate.
5001 (find_toc_address): Format hex address with local_hex_string().
5002
06afebeb
AC
50032002-07-25 Andrew Cagney <ac131313@redhat.com>
5004
5005 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5006 bfd/elf32-frv.c.
5007
8c554d79
TT
50082002-07-24 Tom Tromey <tromey@redhat.com>
5009
5010 * jv-exp.y: Marked all strings with _().
5011 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5012 internal_error.
5013 (MethodInvocation, CastExpression, parse_number, yyerror,
5014 java_type_from_name, push_expression_name, yylex): Typo fixes.
5015
e4c242d9
DJ
50162002-07-24 Daniel Jacobowitz <drow@mvista.com>
5017
5018 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5019 (tee_file_flush, tee_file_write, tee_file_fputs)
5020 (tee_file_isatty): New.
5021 * ui-file.h (tee_file_new): Add prototype.
5022
ebf56fd3
AS
50232002-07-24 Aidan Skinner <aidan@velvet.net>
5024
5025 * ada-lang.c: Change k&r style function definitions to prototyped
5026 form.
5027 * ada-typeprint.c: Change k&r style function definitions to prototyped
5028 form.
5029 * ada-valprint.c: Change k&r style function definitions to prototyped
5030 form.
5031
7fb623f7
AC
50322002-07-24 Andrew Cagney <cagney@redhat.com>
5033
5034 * README: Remove reference to remote-bug.
5035 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5036 remote-bug.c.
5037 (m88k-nat.o): Delete rule.
5038 (m88k-tdep.o): Delete rule.
5039 (remote-bug.o): Delete rule.
5040 * MAINTAINERS: Mark as obsolete.
5041 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5042 * m88k-tdep.c: Make file obsolete.
5043 * config/m88k/m88k.mh: Ditto.
5044 * config/m88k/delta88v4.mh: Ditto.
5045 * config/m88k/delta88v4.mt: Ditto.
5046 * config/m88k/delta88.mt: Ditto.
5047 * config/m88k/delta88.mh: Ditto.
5048 * remote-bug.c: Ditto.
5049 * config/m88k/tm-delta88.h: Ditto.
5050 * config/m88k/nm-delta88v4.h: Ditto.
5051 * config/m88k/xm-delta88.h: Ditto.
5052 * config/m88k/xm-dgux.h: Ditto.
5053 * config/m88k/tm-m88k.h: Ditto.
5054 * config/m88k/nm-m88k.h: Ditto.
5055 * config/m88k/tm-delta88v4.h: Ditto.
5056 * m88k-nat.c: Ditto.
5057 * cxux-nat.c: Ditto.
5058 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5059 and m88*-*-* obsolete.
5060 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5061 m88*-*-* obsolete.
5062
37611a2b
AC
50632002-07-24 Andrew Cagney <cagney@redhat.com>
5064
5065 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5066 constant. Same for local pointer variables.
5067 (extract_signed_integer): Ditto.
5068 * defs.h (extract_unsigned_integer): Update.
5069 (extract_signed_integer): Update.
5070
1aaa5f99
AC
50712002-07-24 Andrew Cagney <cagney@redhat.com>
5072
5073 * regcache.c (regcache_raw_write): Change buf parameter to a
5074 constant void pointer.
5075 (regcache_raw_read): Change buf parameter to a void pointer.
5076 (legacy_write_register_gen): Change myaddr parameter a constant
5077 void pointer.
5078 (supply_register): Change val parameter to a const void pointer.
5079 * regcache.h (regcache_raw_write): Update declaration.
5080 (regcache_raw_read): Update declaration.
5081 (supply_register): Update declaration.
5082
b4f5539f
TT
50832002-07-24 Tom Tromey <tromey@redhat.com>
5084
5085 * defs.h (gdb_readline_wrapper): Declare.
5086 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5087 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5088 * top.c (gdb_readline_wrapper): New function.
5089 (command_line_input): Use it.
5090
0818c12a
AC
50912002-07-24 Andrew Cagney <cagney@redhat.com>
5092
5093 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5094 regcache_read and regcache_write.
5095 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5096 * regcache.c: Update.
5097 * sh-tdep.c (sh64_push_arguments): Update comment.
5098 (sh_pseudo_register_read): Update.
5099 (sh_pseudo_register_write): Update.
5100 (sh4_register_read): Update.
5101 (sh4_register_write): Update.
5102 (sh64_pseudo_register_read): Update.
5103 (sh64_pseudo_register_write): Update.
5104 (sh64_register_read): Update.
5105 (sh64_register_write): Update.
5106 * i386-tdep.c (i386_extract_return_value): Update.
5107 (i386_extract_struct_value_address): Update.
5108 (i386_extract_return_value): Update.
5109 * blockframe.c (generic_read_register_dummy): Update.
5110 (generic_call_dummy_register_unwind): Update
5111 * infrun.c (write_inferior_status_register): Update.
5112
f7321c06
JB
51132002-07-23 Jim Blandy <jimb@redhat.com>
5114
5115 * parser-defs.h (expression_context_pc): Make this extern.
5116 (Thanks to Michael Snyder.)
5117
2037aebb
AC
51182002-07-23 Andrew Cagney <ac131313@redhat.com>
5119
5120 GDB 5.2.1 released from 5.2 branch.
5121 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5122 * README: Update to mention 5.2.1.
5123
66504d44
MS
51242002-07-23 Mark Salter <msalter@redhat.com>
5125
5126 * remote.c (remote_read_bytes): Fix check for error.
5127
27bae383
KB
51282002-07-22 Kevin Buettner <kevinb@redhat.com>
5129
5130 * aix-thread.c (language.h): Include.
5131 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5132 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5133 Print newlines at end of debug messages.
5134 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5135 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5136
51372002-07-22 Kevin Buettner <kevinb@redhat.com>
5138
5139 * aix-thread.c (ppc-tdep.h): Include.
5140 (special_register_p): New function.
5141 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5142 (store_regs_user_thread): Use register number information from
5143 gdbarch_tdep struct instead of hardcoded offsets relative to
5144 FIRST_UISA_SP_REGNUM.
5145 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5146 special_register_p() instead of using FPLAST_REGNUM and
5147 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5148 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5149 will be MQ's register number.
5150
51512002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
5152
5153 * aix-thread.c (ops): Rename to aix_thread_ops.
5154 (base_ops): Rename to base_target.
5155 (ops_attach): Rename to aix_thread_attach.
5156 (ops_detach): Rename to aix_thread_detach.
5157 (ops_resume): Rename to aix_thread_detach.
5158 (ops_wait): Rename to aix_thread_wait.
5159 (ops_kill): Rename to aix_thread_kill.
5160 (init_ops): Rename to init_aix_thread_ops.
5161 (ops_fetch_register): Rename to aix_thread_fetch_register.
5162 (ops_store_register): Rename to aix_thread_store_register.
5163 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5164 (ops_thread_alive): Rename to aix_thread_thread_alive.
5165 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5166 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5167 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5168 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5169 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5170 (store_regs_lib): Rename to store_regs_user_thread.
5171 (store_regs_kern): Rename to store_regs_kernel_thread.
5172
27bae383 51732002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
5174
5175 * aix-thread.c (ops_prepare_to_store): Eliminate.
5176 (init_ops): Don't initialize ops.prepare_to_store.
5177 (store_regs_kern): Pre-fetch register buffers from child,
5178 because some registers may not be in the cache. Copy
5179 regs from register cache only if they are cached.
5180 (store_regs_lib): Copy regs from register cache only
5181 if they are cached.
5182 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5183 fill_gprs64): Ditto.
5184
61c5da0b
KB
51852002-07-22 Kevin Buettner <kevinb@redhat.com>
5186
5187 * aix-thread.c (gdb_assert.h): Include.
5188 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5189 register sizes (from register cache) match size of buffer holding
5190 register data.
5191 (fill_sprs32): Change parameter types to match those in the ptrace()
5192 buffer.
5193 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5194 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5195
51962002-07-22 Michael Snyder <msnyder@redhat.com>
5197
5198 * aix-thread.c (supply_sprs64): Cosmetic change.
5199 (supply_sprs32): Cosmetic change.
5200 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5201 (fill_sprs64): Use regcache_collect instead of read_register.
5202 (store_regs_lib): Use regcache_collect instead of
5203 read_register. Use fill_sprs32 instead of fill_sprs64,
5204 if debugging a 32-bit architecture.
5205 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5206 out of the register cache, instead of passing a pointer into
5207 the register cache directly to ptrace. Use regcache_collect
5208 insteaad of read_register.
5209 (ops_prepare_to_store): Use target_read_registers instead
5210 of read_register_bytes.
5211
36479eb1
AS
52122002-07-20 Aidan Skinner <aidan@velvet.net>
5213
5214 * MAINTAINERS: Add self under write after approval.
5215
80ae6ee2
AS
52162002-07-20 Aidan Skinner <aidan@velvet.net>
5217
5218 * ada-tasks.c: Change k&r style function definitions to prototyped
5219 form.
5220
8a8ab2b9
AC
52212002-07-19 Andrew Cagney <ac131313@redhat.com>
5222
5223 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5224 * x86-64-tdep.c: Include "objfiles.h".
5225 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5226 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5227
fb16b900
ML
52282002-07-17 Michal Ludvig <michal@suse.cz>
5229
5230 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5231 (update_context): Initialise cfa variable.
5232
0fe7bf7b
MS
52332002-07-17 Michael Snyder <msnyder@redhat.com>
5234
5235 * aix-thread.c: Shorten some long lines.
5236 Bring comments into line with code spec.
5237
488f131b
JB
52382002-07-18 Joel Brobecker <brobecker@gnat.com>
5239
5240 * infrun.c: Re-indent using gdb_indent.sh.
5241
46c415d2
JB
52422002-07-18 Joel Brobecker <brobecker@gnat.com>
5243
5244 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5245 Leave the indentation temporarily untouched, to minimize the diffs.
5246
cdecafbe
EZ
52472002-07-18 Elena Zannoni <ezannoni@redhat.com>
5248
5249 * stabsread.c: Make os9k sections of the code obsolete,
5250 for real this time.
5251 * stabsread.h: Make os9k sections of the code obsolete.
5252
7b6aa020
ML
52532002-07-18 Michal Ludvig <mludvig@suse.cz>
5254
09ec9b38
ML
5255 * linux-low.c (regsets_store_inferior_registers): Add free()
5256 at the end of a loop to prevent memory leak.
5257 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5258 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5259 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5260 line a comment.
4894ac5d 5261 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5262
233282cd
JB
52632002-07-17 Jim Blandy <jimb@redhat.com>
5264
5265 * macrocmd.c (info_macro_command): Remove newline from error
5266 message.
5267
7b6aa020 52682002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
5269
5270 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5271 (sh_gdbarch_init): Use it for sh-dsp.
5272
f7ef9339
KB
52732002-07-16 Kevin Buettner <kevinb@redhat.com>
5274
5275 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5276 64-bit DWARF2 format.
5277
8dd72958
JB
52782002-07-16 Joel Brobecker <brobecker@gnat.com>
5279
5280 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5281 <sys/proc.h> when not available.
5282
a99a9e1b
AC
52832002-07-16 Andrew Cagney <ac131313@redhat.com>
5284
5285 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5286 * stabsread.c: Make os9k sections of the code obsolete.
5287 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5288 * config/i386/i386os9k.mt: Make file obsolete.
5289 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5290 (COMMON_OBS): Remove os9kread.o
5291 (SFILES): Remove os9kread.c.
5292 (os9kread.o, remote-os9k.o): Make target obsolete.
5293 * remote-os9k.c: Make file obsolete.
5294 * os9kread.c: Make file obsolete.
5295 * Makefile.in
5296
7a3085c1
AC
52972002-07-16 Andrew Cagney <ac131313@redhat.com>
5298
5299 * NEWS: Mention that the FR30 has been made obsolete.
5300 * fr30-tdep.c: Make file obsolete.
5301 * config/fr30/tm-fr30.h: Ditto.
5302 * config/fr30/fr30.mt: Ditto.
5303 * configure.tgt: Make fr30-*-elf obsolete.
5304 * MAINTAINERS: Make fr30-elf obsolete.
5305
28a93f5a
PM
53062002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5307
5308 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5309 found is not inside a section.
5310
be006b8b
KB
53112002-07-15 Kevin Buettner <kevinb@redhat.com>
5312
5313 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5314 strerror().
5315 (pdc_realloc): Use xrealloc() instead of realloc().
5316
14fa3751
KB
53172002-07-15 Kevin Buettner <kevinb@redhat.com>
5318
5319 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5320 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5321 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5322 macros.
5323
42cc437f
KB
53242002-07-15 Kevin Buettner <kevinb@redhat.com>
5325
5326 * aix-thread.c (ptrace_check): Eliminate goto.
5327 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5328 problem.
5329
8e2c28d4
KB
53302002-07-15 Kevin Buettner <kevinb@redhat.com>
5331
5332 * aix-thread.c (gdbcmd.h): Include.
5333 (DEBUG, DBG, DBG2, dbg): Eliminate.
5334 (debug_aix_thread): New static global.
5335 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5336 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5337 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5338 invocations to DBG and DBG2 macros to test against
5339 ``debug_aix_thread'' and call fprintf_unfiltered().
5340 (_initialize_aix_thread): Add new command "set debug aix-thread".
5341
30413464
AC
53422002-07-15 Andrew Cagney <ac131313@redhat.com>
5343
5344 From Gerhard Tonn <TON@de.ibm.com>:
5345 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5346 instead of supply_register.
5347
7c43edc1
AC
53482002-07-15 Andrew Cagney <ac131313@redhat.com>
5349
5350 * dwarf2cfi.c: Include "gdb_assert.h".
5351 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5352 non-NULL.
5353 (update_context): Do not use __func__. Add missing ``break''.
5354 (update_context): Do not use __func__.
5355
9364a0ef
EZ
53562002-07-15 Elena Zannoni <ezannoni@redhat.com>
5357
5358 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5359 and its setting. Set gdbarch instruction printing functions
5360 directly. For non-rs6000 case use new function
5361 gdb_print_insn_powerpc.
5362 (gdb_print_insn_powerpc): New function.
5363
3fbeef0b
AC
53642002-07-13 Andrew Cagney <ac131313@redhat.com>
5365
92eb23c5 5366 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
5367 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5368 * configure.tgt: Mark d30v-*-* as obsolete.
5369 * d30v-tdep.c: Mark file as obsolete.
5370 * config/d30v/d30v.mt: Ditto.
5371 * config/d30v/tm-d30v.h: Ditto.
5372
aacb1f0a
AS
53732002-07-13 Aidan Skinner <aidan@velvet.net>
5374
5375 * ada-tasks.c (add_task_entry): replace calls to
5376 malloc() with xmalloc
5377 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5378
5379 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5380 ada_finish_decode_line_1, all_sals_for_line
5381 ada_breakpoint_rewrite): replace calls to free() with xfree()
5382
c11d79f2
KB
53832002-07-12 Kevin Buettner <kevinb@redhat.com>
5384
5385 From Nicholas Duffek (with minor changes by Martin Hunt,
5386 Louis Hamilton, and Kevin Buettner):
5387 * aix-thread.c: New file.
5388
8e19ed76
PS
53892002-07-12 Petr Sorfa <petrs@caldera.com>
5390
5391 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5392 complaint for invalid attribute class or form.
5393 (read_func_scope): DW_AT_frame_base
5394 better handling of DW_AT_block*.
5395 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5396 better handling of DW_AT_block*.
5397 (read_common_block): DW_AT_location
5398 better handling of DW_AT_block*.
5399 (read_partial_die): DW_AT_location better handling
5400 of DW_AT_block*.
5401 (new_symbol): DW_AT_external better handling of
5402 DW_AT_block*. Proper initialization of variable
5403 "addr".
5404 (attr_form_is_block): New function that returns true
5405 if the attribute's form is of DW_FORM_block*.
5406
295401f7
DJ
54072002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5408
5409 * valops.c (find_method_list): Remove comment about
5410 removed STATIC_MEMFUNCP argument.
5411 (value_find_oload_method_list): Likewise.
5412
e42dc924
KB
54132002-07-12 Kevin Buettner <kevinb@redhat.com>
5414
5415 From Nicholas Duffek:
5416 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5417 target_new_objfile_hook.
5418
6904b546
KB
54192002-07-12 Kevin Buettner <kevinb@redhat.com>
5420
5421 From Nicholas Duffek:
5422 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5423 csect.
5424
53fe9346
AC
54252002-07-12 Andrew Cagney <cagney@redhat.com>
5426
5427 * MAINTAINERS: Mention --enable-sim-build-warnings.
5428 (m68hc11-elf): Disable sim build warnings.
5429 (m32r-elf): Mark as broken obsolete candidate.
5430 (x86_64-linux-gnu): Mark as buildable with -Werror.
5431 (arm-elf): Change -w to ``,'' which enables warnings but not
5432 -Werror.
5433
af5f3db6
AC
54342002-07-12 Andrew Cagney <ac131313@redhat.com>
5435
5436 * bcache.h: Update copyright.
5437 (struct bstring, struct bcache): Move definition to "bcache.c".
5438 Replaced by opaque declaration.
5439 (bcache_xfree): Replace free_bcache.
5440 (bcache_xmalloc, bcache_memory_used): Declare.
5441
5442 * bcache.c: Update copyright.
5443 (struct bstring, struct bcache): Moved to here from "bcache.h".
5444 Update comments.
5445 (bcache_xmalloc, bcache_memory_used): New functions.
5446 (bcache_xfree): Replace function free_bcache.
5447
5448 * Makefile.in (objfiles.o): Add $(bcache_h).
5449 (objfiles_h): Remove $(bcache_h).
5450 (symfile.o): Add $(bcache_h).
5451
5452 * symmisc.c: Update copyright.
5453 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5454 (print_objfile_statistics): Use bcache_memory_used.
5455
5456 * symfile.c: Include "bcache.h".
5457 (reread_symbols): Use bcache_xfree.
5458 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5459 (add_psymbol_to_list): Pass psymbol_cache by value.
5460 (add_psymbol_with_dem_name_to_list): Ditto.
5461
5462 * objfiles.h: Update copyright.
5463 (struct bcache): Declare opaque. Do not include "bcache.h".
5464 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5465 bcache'' pointers.
5466 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5467
5468 * objfiles.c: Include "bcache.h". Update copyright.
5469 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5470 macro_cache.
5471 (free_objfile): Use bcache_xfree.
5472
444199e7
GS
54732002-07-11 Grace Sainsbury <graces@redhat.com>
5474
5475 * monitor.c (monitor_fetch_register): Make name a constant.
5476 (monitor_store_register): Same.
5477
261397f8
DJ
54782002-07-11 Daniel Jacobowitz <drow@mvista.com>
5479
5480 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5481 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5482 (finish_block) For non-function blocks, hash the symbol table. For
5483 function blocks, mark the symbol table as unhashed.
5484 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5485 (msymbol_hash_iw): Likewise.
5486 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5487 value.
5488 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5489 (lookup_minimal_symbol): Likewise for both.
5490 * symtab.h (struct block): Add `hashtable' flag. Comment the
5491 hashtable.
5492 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5493 (ALL_BLOCK_SYMBOLS): Update.
5494 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5495 (struct symbol): Add `hash_next' pointer.
5496 * symtab.c (lookup_block_symbol): Search using the hash table when
5497 possible.
5498 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5499 (search_symbols, find_addr_symbol): Likewise.
5500
5501 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5502 (read_dst_symtab): Likewise.
5503 * jv-lang.c (get_java_class_symtab): Likewise.
5504 * mdebugread.c: Include "gdb_assert.h".
5505 (shrink_block): Assert that the block being modified is not hashed.
5506 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5507 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5508 symbols.
5509 (dump_symtab): Recognize hashed blocks.
5510 * printcmd.c (print_frame_args): Assert that function blocks do not
5511 have hashed symbol tables.
5512 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5513 (fill_in_ada_prototype, debug_print_block): Likewise.
5514 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5515
6f0eaa01
CV
55162002-07-11 Corinna Vinschen <vinschen@redhat.com>
5517
5518 * stack.c (print_frame): Use result of frame_address_in_block()
5519 instead of fi->pc when evaluating symbols.
5520 (backtrace_command_1): Ditto.
5521
a208b0cb
AC
55222002-07-11 Andrew Cagney <cagney@redhat.com>
5523
5524 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5525 Make static.
5526
5527 * arm-tdep.c (arm_register_name): Make return type constant.
5528
a6b6b089
AC
55292002-07-10 Andrew Cagney <ac131313@redhat.com>
5530
5ae5f592
AC
5531 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5532 prototype.
5533 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5534 * s390-tdep.c (s390_fp_regnum): Ditto.
5535 (s390_read_fp): Ditto.
5536 (s390_pop_frame): Ditto.
5537 (_initialize_s390_tdep): Ditto.
5538 * remote.c (get_remote_state): Ditto.
5539 * procfs.c (mappingflags): Ditto.
5540 * memattr.c (_initialize_mem): Ditto.
5541 * mcore-tdep.c (mcore_pop_frame): Ditto.
5542 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5543 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5544 * language.c (set_case_str): Ditto.
5545 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5546 * frv-tdep.c (new_variant): Ditto.
5547 (frv_stopped_data_address): Ditto.
5548 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5549 (context_alloc): Ditto.
5550 (frame_state_alloc): Ditto.
5551 (unwind_tmp_obstack_init): Ditto.
5552 (unwind_tmp_obstack_free): Ditto.
5553 (cfi_read_fp): Ditto.
5554 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5555 (cris_pop_frame): Ditto.
5556 * c-lang.c (scanning_macro_expansion): Ditto.
5557 (finished_macro_expansion): Ditto.
5558 (c_preprocess_and_parse): Ditto.
5559 * gdbarch.sh: Ditto.
5560 * gdbarch.h, gdbarch.c: Regenerate.
5561 * config/mn10200/tm-mn10200.h: Adjust indentation.
5562 * target.c: Adjust indentation.
5563 * symtab.h: Adjust indentation.
5564 * stabsread.h: Adjust indentation.
5565 * remote-es.c: Adjust indentation.
5566 * os9kread.c: Adjust indentation.
5567
55682002-07-10 Andrew Cagney <ac131313@redhat.com>
5569
a6b6b089
AC
5570 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5571 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5572
a1789893
GS
55732002-07-10 Grace Sainsbury <graces@redhat.com>
5574
5575 * NEWS: Mention m68k, mcore multi-arching.
5576 * MAINTAINERS: Change status of m68k, mcore to reflect
5577 multi-arching.
5578
02f0d45d
DJ
55792002-07-10 Daniel Jacobowitz <drow@mvista.com>
5580
5581 * valops.c (find_overload_match): Free oload_syms.
5582
f15f768e
JB
55832002-07-09 Joel Brobecker <brobecker@gnat.com>
5584
5585 Define HAVE_SYS_PROC_H if sys/proc.h exists
5586 * configure.in: Add check for sys/proc.h
5587 * config.in: Regenerate.
5588 * configure: Regenerate.
5589
902a7139
GS
55902002-07-09 Grace Sainsbury <graces@redhat.com>
5591
5592 * config/m68k/tm-m68k.h: Remove macros wrapped in
5593 #if !GDB_MULTI_ARCH.
5594
a534e424
AC
55952002-07-08 Andrew Cagney <ac131313@redhat.com>
5596
5597 * config.in, configure: Regenerate.
5598
9b94f7bf
MK
55992002-07-08 Mark Kettenis <kettenis@gnu.org>
5600
5601 * dwarf2cfi.c: Include "gcore.h".
5602 (execute_stack_op): Fix implementation of the
5603 DW_OP_deref and DW_OP_deref_size operators by letting do their
5604 lookup in the target.
5605
1d34db41
MK
56062002-07-07 Mark Kettenis <kettenis@gnu.org>
5607
5608 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5609 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5610 tdep->sc_sp_offset.
5611
79d5b63a
DJ
56122002-07-05 Daniel Jacobowitz <drow@mvista.com>
5613
5614 Fix PR gdb/595, gdb/602
5615 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5616 Don't call value_cast, just read the vtable pointer; update comments
5617 to match.
5618
3bb912e8
GS
56192002-07-05 Grace Sainsbury <graces@redhat.com>
5620
5621 * config/mcore/tm-mcore.h: Remove file.
5622 * config/mcore/mcore.mt: Remove definition of TM_FILE
5623 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5624
ca39387d
MK
56252002-07-05 Mark Kettenis <kettenis@gnu.org>
5626
5627 * i386bsd-tdep.c: Include "gdb_string.h".
5628
efdc1108
GS
56292002-07-04 Grace Sainsbury <graces@redhat.com>
5630
5631 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5632 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5633 mcore-tdep.
5634 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5635 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5636 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5637 (RETVAL_REGNUM): Move macros from tm-mcore.h
5638 (mcore_reg_struct_has_addr): New function.
5639 (mcore_gdbarch_init): Added initializations for the macros removed
5640 from tm-mcore.h.
5641
bb21884d
MK
56422002-07-04 Mark Kettenis <kettenis@gnu.org>
5643
5644 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5645 traditonal string branding within the ELF header.
5646
228c6d41
DJ
56472002-07-04 Daniel Jacobowitz <drow@mvista.com>
5648
5649 * symtab.c (remove_params): New function.
5650 (make_symbol_overload_list): Use it instead of cplus_demangle.
5651 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5652
2404952e
MK
56532002-07-04 Mark Kettenis <kettenis@gnu.org>
5654
e5e4acad
MK
5655 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5656
baadce09
MK
5657 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5658 New variables.
5659 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5660 and tdep->sigtramp_end.
5661 * i386obsd-nat.c: New file.
5662 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5663
2404952e
MK
5664 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5665 Don't call get_current_frame().
5666
9b4f1ba7
PM
56672002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5668
5669 * i386-nat.c (child_post_startup_inferior): New function
5670 calling i386_cleanup_dregs if
5671 I386_USE_GENERIC_WATCHPOINTS is defined.
5672 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5673 conditional to acknowledge that i386-nat.c has its
5674 own child_post_startup_inferior function.
5675
c0d1d883
MK
56762002-07-04 Mark Kettenis <kettenis@gnu.org>
5677
00f8375e
MK
5678 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5679 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5680 instead of MAX_REGISTER_RAW_SIZE.
5681 (i386_extract_return_value, i386_extract_struct_value_address):
5682 Convert to use regcache.
5683 (i386_gdbarch_init): Set max_register_raw_size and
5684 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5685 Set extract_return_value and extract_struct_value_address instead
5686 of their deprecated variants.
5687
c0d1d883
MK
5688 Convert i386 target to generic dummy frames.
5689 * i386-tdep.c: Include "symfile.h".
5690 (i386_frameless_signal_p): Consider a function to be frameless if
5691 the pc points at the first instruction of the function.
5692 (i386_frame_chain): Handle (generic) call dummies.
5693 (i386_frame_saved_pc): Likewise.
5694 (i386_frame_init_saved_regs): Remove code dealing with call
5695 dummies on the stack.
5696 (i386_push_dummy_frame): Removed.
5697 (i386_call_dummy_words): Removed.
5698 (i386_fix_call_dummy): Removed.
5699 (i386_push_return_address): New function.
5700 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5701 parameter, and don't call get_current_frame.
5702 (i386_pop_frame): New function.
5703 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5704 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5705 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5706 call_dummy_length to 0, set call_dummy_words to NULL, set
5707 sizeof_call_dummy_words to 0, set fix_call_dummy to
5708 generic_fix_call_dummy, set pc_in_call_dummy to
5709 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5710 generic_push_dummy_frame, set push_return_address to
5711 i386_push_return_address and set frame_chain_valid to
5712 generic_file_frame_chain_valid.
5713
049ee0e4
AC
57142002-07-03 Andrew Cagney <ac131313@redhat.com>
5715
5716 * gdbarch.sh (struct regcache): Add opaque declaration.
5717 (EXTRACT_RETURN_VALUE): New architecture method.
5718 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5719 * gdbarch.h, gdbarch.c: Regenerate.
5720 * arch-utils.c (legacy_extract_return_value): New function.
5721 * arch-utils.h (legacy_extract_return_value): Declare.
5722 * values.c (value_being_returned): Re-enable code handling
5723 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5724 deprecated_grub_regcache_for_registers call to block handling
5725 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5726 (EXTRACT_RETURN_VALUE): Do not define.
5727
4e0d9804
GS
57282002-07-03 Grace Sainsbury <graces@redhat.com>
5729
5730 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5731 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5732 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5733 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5734 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5735 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5736 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5737 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5738 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5739 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5740 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5741 argument so the function fits the prototype in the architecture
5742 vector.
5743 (mcore_pop_frame): Remove argument so the function fits the
5744 prototype. Use get_current_frame instead of the argument.
5745 (mcore_push_arguments): Change type of struct_return so the
5746 function can be used in the architecture vector.
5747 (mcore_store_struct_return): Add.
5748 (mcore_frame_init_saved_regs): Add.
5749 (mcore_gdbarch_init): Add function calls to replace the macros
5750 removed from tm-mcore.h
5751
36160dc4
AC
57522002-07-03 Andrew Cagney <ac131313@redhat.com>
5753
5754 * infcmd.c (print_return_value): Remove compatibility code calling
5755 deprecated_grub_regcache_for_registers.
5756
5757 * values.c: Include "regcache.h".
5758 (value_being_returned): Update. Use
5759 deprecated_grub_regcache_for_registers to extract the register
5760 buffer address.
5761 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5762 ``struct regcache''.
5763 * Makefile.in (values.o): Add dependency on $(regcache_h).
5764
5765 * inferior.h (run_stack_dummy): Change type of second parameter to
5766 a ``struct regcache''.
5767 * valops.c (hand_function_call): Change type of retbuf to ``struct
5768 regcache''. Allocate using regcache_xmalloc, clean using
5769 make_cleanup_regcache_xfree.
5770 * infcmd.c (run_stack_dummy): Update. Use
5771 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5772
5773 * regcache.c (do_regcache_xfree): New function.
5774 (make_cleanup_regcache_xfree): New function.
5775 * regcache.h (make_cleanup_regcache_xfree): Declare.
5776
e64d9b3d
MH
57772002-07-03 Martin M. Hunt <hunt@redhat.com>
5778
4dd79c29
MH
5779 * event-top.c (command_line_handler): Don't read past
5780 beginning of buffer.
e64d9b3d 5781
4dd79c29
MH
57822002-07-03 Martin M. Hunt <hunt@redhat.com>
5783
e64d9b3d
MH
5784 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5785 struct frame_id.
5786 (varobj_create): Store frame_id for root.
5787 (varobj_gen_name): Use xasprintf.
5788 (varobj_update): Save and restore frame using get_frame_id() and
5789 frame_find_by_id().
5790 (create_child): Use xasprintf.
5791 (new_root_variable): Initialize frame_id.
5792 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5793 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5794 to prevent memory leak.
5795
26e6c56a
AC
57962002-07-03 Andrew Cagney <ac131313@redhat.com>
5797
5798 * valops.c (hand_function_call): Move declaration of retbuf to
5799 start of function, allocate using malloc, add a cleanup but before
5800 the inf_status cleanup, cleanup the buffer. Rename local variable
5801 old_chain to inf_status_cleanup.
5802
f436dd25
MH
58032002-07-03 Martin M. Hunt <hunt@redhat.com>
5804
5805 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5806
5807 * cli/cli-decode.c (cmd_func_p): New function.
5808 (cmd_func): New function.
5809
5810 * command.h: Add cmd_func() and cmd_func_p().
5811
4cfe2084
GS
58122002-07-03 Grace Sainsbury <graces@redhat.com>
5813
5814 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5815 (REGISTER_SIZE): Remove.
5816 (MAX_REGISTER_RAW_SIZE): Remove.
5817 (REGISTER_VIRTUAL_TYPE): Remove.
5818 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5819 (REGISTER_NAME): Remove.
5820 (USE_GENERIC_DUMMY_FRAMES): Remove.
5821 (CALL_DUMMY): Remove.
5822 (CALL_DUMMY_START_OFFSET): Remove.
5823 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5824 (CALL_DUMMY_LOCATION): Remove.
5825 (FIX_CALL_DUMMY): Remove.
5826 (CALL_DUMMY_ADDRESS): Remove.
5827 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5828 (SAVE_DUMMY_FRAME_TOS): Remove.
5829 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5830 (mcore_register_virtual_type): New function.
5831 (mcore_register_byte): New function.
5832 (mcore_register_size): New function.
5833 (mcore_register_name): New function.
5834 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5835 macros removed from tm-mcore.h.
5836 (mcore_dump_tdep): Add.
5837 (_initialize_mcore_tdep): Add gdbarch_register call.
5838
4fd667e9
MK
58392002-07-03 Mark Kettenis <kettenis@gnu.org>
5840
5841 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5842 frameless_look_for_prologue, such that we actually call this
5843 function.
5844
42f99ac2
JB
58452002-07-02 Joel Brobecker <brobecker@gnat.com>
5846
5847 * frame.h (frame_address_in_block): New function.
5848
5849 * blockframe.c (frame_address_in_block): New function extracted
5850 from get_frame_block().
5851 (get_frame_block): Use frame_address_in_block().
5852 (block_innermost_frame): Use frame_address_in_block() to match
5853 the frame pc address against the block boundaries rather than
5854 the frame pc directly. This prevents a failure when a frame pc
5855 is actually a return-address pointing immediately after the end
5856 of the given block.
5857
103a1597 58582002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
5859
5860 * MAINTAINERS: Add self under write after approval.
5861
58622002-07-02 Grace Sainsbury <graces@redhat.com>
5863
103a1597
GS
5864 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5865 used in architecture vector. The default is
5866 m68k_local_breakpoint_from_pc.
5867 (m68k_local_breakpoint_from_pc): Add.
5868 (enum): Add register numbers from tm-m68k.h.
5869 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5870 vector.
5871 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5872 GDB_MULTI_ARCH_PARTIAL.
5873 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5874 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5875 m68k-tdep.c.
5876 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5877 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5878 to enum in m68k-tdep.c
5879
7a5a0534
JB
58802002-07-02 Joel Brobecker <brobecker@gnat.com>
5881
5882 * solib-osf.c (open_map): Compute the list of shared libraries
5883 loaded by the inferior, rather than the list of libraries loaded
5884 by GDB itself. Otherwise, GDB ends up reading the symbols from
5885 the wrong shared libraries...
5886
6f558d74
MK
58872002-07-02 Mark Kettenis <kettenis@gnu.org>
5888
b7d15bf7
MK
5889 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5890 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5891 macros.
5892 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5893 Remove functions.
5894 (FRAMELESS_SIGNAL): Remove function.
5895 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5896 i386_linux_saved_pc_after_call): Removed.
5897 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5898 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5899 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5900
6bff26de
MK
5901 * i386-tdep.c (i386_frameless_signal_p): New function.
5902 (i386_frame_chain): Deal with frameless signals.
5903 (i386_sigtramp_saved_sp): New function.
5904 (i386_frame_saved_pc): Deal with frameless signals.
5905 (i386_saved_pc_after_call): Make sure the correct value is
5906 returned just after entry into a sigtramp.
5907 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5908 i386fbsd4_sc_sp_offset): New variables.
5909 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5910 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5911 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5912 similiar to what we already did for sc_pc_offset.
5913 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5914 tdep->sc_sp_offset.
5915
6f558d74
MK
5916 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5917
145564b7
ML
59182002-07-02 Michal Ludvig <mludvig@suse.cz>
5919
5920 * config/i386/tm-x86-64linux.h: New.
5921 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5922 definitions.
5923 * config/i386/nm-x86-64.h: Rename to ...
5924 * config/i386/nm-x86-64linux.h: ... this one.
5925 * config/i386/x86-64linux.mh: Reflect the above change.
5926
3a1e71e3
MK
59272002-07-01 Mark Kettenis <kettenis@gnu.org>
5928
21d0e8a4
MK
5929 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5930 with sigcontext_addr. Add sc_sp_offset.
5931 (i386bsd_sigtramp_saved_pc): Remove prototype.
5932 (i386bsd_sicontext_addr): Add prototype.
5933 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5934 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5935 (i386_svr4_sigtramp_saved_pc): Removed.
5936 (i386_svr4_sigcontext_addr): New function.
5937 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5938 Initialize tdep->sigcontext_addr instead. Initialize
5939 tdep->sc_pc_offset and tdep->sc_sp_offset.
5940 (i386_gdbarch_init): Likewise.
5941 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5942 any more.
5943 (i386bsd_sigtramp_saved_pc): Remove function.
5944 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5945 Initialize tdep->sigcontext_addr instead. Initialize
5946 tdep->sc_pc_offset.
5947 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5948 of tdep->sigtramp_saved_pc.
5949 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5950 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5951 instead.
5952
3a1e71e3
MK
5953 * i386-tdep.c (i386_frameless_function_invocation,
5954 i386_frame_num_args, i386_frame_init_saved_regs,
5955 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5956 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5957 i386_extract_return_value, i386_store_return_value,
5958 i386_extract_struct_value_address, i386_register_virtual_type,
5959 i386_register_convertible, i386_register_convert_to_virtual,
5960 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5961 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5962 static.
5963
52e9098c
MK
59642002-07-01 Mark Kettenis <kettenis@gnu.org>
5965
77b13a25
MK
5966 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5967
52e9098c
MK
5968 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5969 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5970 this macro. Include "value.h".
5971
1b372fff
AS
59722002-06-30 Aidan Skinner <aidan@velvet.net>
5973
5974 * ada-exp.tab.c: remove as it's a generated file
5975 * ada-lex.c: remove as it's a generated file
5976
9c5045b5
MK
59772002-06-30 Mark Kettenis <kettenis@gnu.org>
5978
4a93c5bb
MK
5979 * config/i386/tm-i386.h (struct frame_info, struct
5980 frame_saved_regs, struct value, struct type): Remove forward
5981 declarations.
5982
322d4fe0
MK
5983 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5984 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5985 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5986 (FILL_FPXREGSET): Define.
5987
fdd8263d
MK
5988 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5989
482e577b
MK
5990 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5991 i[3456]86-*-netbsd* case.
5992 * config/i386/tm-obsd.h: Removed.
5993 * config/i386/obsd.mt: Removed.
5994 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5995 core-aout.o.
5996 (MH_CFLAGS): Add -DYYDEBUG=0.
5997
6916549a
MK
5998 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5999 i386nbsd_sc_pc_offset on OpenBSD too.
6000
9c5045b5
MK
6001 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6002 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6003 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6004 define.
6005 * i386bsd-tdep.c: Include "arch-utils.h".
6006 (i386bsd_aout_in_solib_call_trampoline): New function.
6007 (i386bsd_init_abi): Set in_solib_call_trampoline to
6008 i386bsd_aout_in_solib_call_trampoline.
6009 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6010 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6011
aa84d1bb
AC
60122002-06-28 Andrew Cagney <ac131313@redhat.com>
6013
6014 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6015 (struct obstack, struct bcache): Add opaque declarations.
6016 * Makefile.in (macrotab_h): Update
6017
b4d83933
AC
60182002-06-28 Andrew Cagney <ac131313@redhat.com>
6019
6020 * blockframe.c (generic_find_dummy_frame): Change return type to
6021 ``struct regcache''.
6022 (struct dummy_frame): Replace field ``registers'' with regcache, a
6023 struct regcache object.
6024 (generic_find_dummy_frame): Update.
6025 (generic_push_dummy_frame): Update. Use regcache_xfree,
6026 regcache_xmalloc and regcache_cpy.
6027 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6028 regcache_xfree.
6029 (deprecated_generic_find_dummy_frame): Update.
6030 (generic_read_register_dummy): Update. Use
6031 regcache_read_as_address.
6032 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6033 (generic_get_saved_register): Update. Use regcache_read.
6034
08c0b5bc
AC
60352002-06-28 Andrew Cagney <ac131313@redhat.com>
6036
6037 * Makefile.in (objfiles_h): Add $(bcache_h).
6038 * objfiles.h: Include "bcache.h".
6039
6040 * Makefile.in (symtab_h): Remove $(bcache_h).
6041 * symtab.h: Do not include "bcache.h".
6042
1f89801a
AC
60432002-06-28 Andrew Cagney <ac131313@redhat.com>
6044
6045 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6046 generic_func_frame_chain_valid.
6047
b9644b58
DB
60482002-06-28 David O'Brien <obrien@FreeBSD.org>
6049
6050 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6051 * config/i386/tm-fbsd.h: Likewise.
6052
dd486634
AC
60532002-06-28 Andrew Cagney <ac131313@redhat.com>
6054
6055 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6056 generic_unwind_get_saved_register.
6057
0b434a00
AC
60582002-06-27 Andrew Cagney <ac131313@redhat.com>
6059
6060 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6061 * regcache.c (supply_register): Add missing argument to
6062 register_buffer call.
6063
f30e5a77
AC
60642002-06-27 Andrew Cagney <ac131313@redhat.com>
6065
6066 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6067 Solaris /bin/grep does not not like it. From Peter Schauer.
6068
9f064c95
TT
60692002-06-26 Tom Tromey <tromey@redhat.com>
6070
6071 * command.h (add_setshow_cmd): Declare.
6072 (add_setshow_cmd_full): Declare.
6073 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6074 returns void. Use add_setshow_cmd_full.
6075 (add_setshow_cmd_full): New function.
6076 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6077 (add_setshow_boolean_cmd): Likewise.
6078
099c7589
JT
60792002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6080
6081 * config/vax/tm-vax.h: Protect from multiple inclusion.
6082 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6083 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6084 * config/vax/tm-vaxbsd.h: ...here. New file.
6085 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6086
1d049c5e
JT
60872002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6088
6089 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6090 (BELIEVE_PCC_PROMOTION): Remove.
6091 (AP_REGNUM): Move to...
6092 * config/vax/nm-vax.h: ...here.
6093 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6094 (vax_breakpoint_from_pc): New function.
6095 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6096 and gdbarch_believe_pcc_promotion.
6097
4791e091
JT
60982002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6099
6100 * Makefile.in (vax_tdep_h): Define.
6101 (vax-tdep.o): Use $(vax_tdep_h).
6102 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6103 (vax_dump_tdep): New function.
6104 (_initialize_vax_tdep): Register vax_dump_tdep.
6105 * vax-tdep.h: Include osabi.h.
6106 (struct gdbarch_tdep): New.
6107
da130f98
AC
61082002-06-26 Andrew Cagney <cagney@redhat.com>
6109
6110 * frame.h (deprecated_generic_find_dummy_frame): Rename
6111 generic_find_dummy_frame.
6112 * blockframe.c (generic_find_dummy_frame): Make static.
6113 (deprecated_generic_find_dummy_frame): New function.
6114 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6115 generic_find_dummy_frame with deprecated_find_dummy_frame.
6116 (sh64_nofp_frame_init_saved_regs): Ditto.
6117 (sh_fp_frame_init_saved_regs): Ditto.
6118 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6119 (s390_frame_chain): Ditto.
6120 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6121
6300c360
GS
61222002-06-26 Grace Sainsbury <graces@redhat.com>
6123
6124 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6125 gdbarch vector are at the top.
6126 (NUM_REGS): Remove.
6127 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6128 (FRAME_ARGS_ADDRESS): Remove.
6129 (FRAME_LOCALS_ADDRESS): Remove.
6130 (FRAME_NUM_ARGS): Remove.
6131 (FRAME_ARGS_SKIP): Remove.
6132 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6133 (m68k_gdbarch_init): Add gdbarch initializations for macros
6134 undefined in tm-m68k.h
6135
1c617db8
GS
61362002-06-26 Grace Sainsbury <graces@redhat.com>
6137
6138 * monitor.h: Add the function regname to monitor_ops
6139 structure. This way NUM_REGS does not have to be a constant.
6140 * monitor.c (monitor_fetch_register): Added support for regname
6141 function. The function is called if the array regnames is NULL.
6142 (monitor_store_register): Same.
da130f98
AC
6143 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6144 regnames array.
1c617db8
GS
6145 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6146 cpu32bug_cmds.regname to point to new function.
6147 * abug-rom.c (abug_regname): Same as above.
6148 (init_abug_cmds): Same.
6149 * dbug-rom.c (dbug_regname): Same as above.
6150 (init_dbug_cmds): Same.
6151 * remote-est.c (est_regname): Same.
6152 (init_est_cmds): Same.
6153 * rom68k-rom.c (rom68k_regname): Same.
6154 (init_rom68k_cmds): Same.
6155
ea9365bb
TT
61562002-06-25 Tom Tromey <tromey@redhat.com>
6157
6158 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6159
72cec141
AC
61602002-06-25 Andrew Cagney <cagney@redhat.com>
6161
6162 * infrun.c (stop_registers): Change variable's type to ``struct
6163 regcache'''.
6164 (xmalloc_inferior_status): Delete function.
6165 (free_inferior_status): Delete function.
6166 (normal_stop): Use regcache_cpy.
6167 (struct inferior_status): Change type of fields ``stop_registers''
6168 and ``registers'' to ``struct regcache''.
6169 (write_inferior_status_register): Use regcache_write.
6170 (save_inferior_status): Instead of calling
6171 xmalloc_inferior_status, allocate the inf_status buffer directly.
6172 Use regcache_dup_no_passthrough and regcache_dup to save the
6173 buffers.
6174 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6175 Replace the stop_registers regcache instead of overriding it. Use
6176 regcache_xfree. Instead of calling free_inferior_status, xfree
6177 the buffer directly.
6178 (discard_inferior_status): Use regcache_xfree. Instead of calling
6179 free_inferior_status, xfree the buffer directly.
6180 (build_infrun): Use regcache_xmalloc.
6181 (_initialize_infrun): Delete redundant call to build_infrun.
6182
6183 * Makefile.in (infcmd.o): Add $(regcache_h).
6184
6185 * infcmd.c: Include "regcache.h".
6186 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6187 obtain the address of `stop_registers' register buffer.
6188 (print_return_value): Ditto.
6189
6190 * inferior.h (struct regcache): Add opaque declaration.
6191 (stop_registers): Change variable's declared type to ``struct
6192 regcache''.
6193
defc6f8c
TT
61942002-06-24 Tom Tromey <tromey@redhat.com>
6195
c0e624e7
TT
6196 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6197 * target.c (initialize_targets): Fixed typo in
6198 trust-readonly-sections `show' documentation.
6199
defc6f8c
TT
6200 * main.c: Marked all strings with _().
6201
2b236d82
DH
62022002-06-24 Don Howard <dhoward@redhat.com>
6203
6204 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6205 that means max CORE_ADDR+1.
6206 (lookup_mem_region): Ditto.
6207 (mem_info_command): Ditto.
6208
942dc0e9
GS
62092002-06-24 Grace Sainsbury <graces@redhat.com>
6210
6211 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6212 (REGISTER_BYTES_OK): Remove.
6213 (REGISTER_BYTES): Remove.
6214 (STORE_STRUCT_RETURN): Remove.
6215 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6216 (STORE_RETURN_VALUE): Remove.
6217 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6218 (FRAME_CHAIN): Remove.
6219 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6220 (FRAME_SAVED_PC): Remove.
6221 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6222 (m68k_store_struct_return): Add.
6223 (m68k_deprecated_extract_return_value): Add.
6224 (m68k_deprecated_extract_struct_value_address): Add.
6225 (m68k_store_return_value): Add.
6226 (m68k_frame_chain): Add.
6227 (m68k_frameless_function_invocation): Add.
6228 (m68k_frame_saved_pc): Add.
6229 (m68k_gdbarch_init): added set_gdbarch calls for new
6230 functions and deleted macros.
6231
03c30d4d
TT
62322002-06-23 Tom Tromey <tromey@redhat.com>
6233
6234 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6235 (ALLDEPFILES): Likewise.
6236 (udiheaders): Removed.
6237 (udip2soc.o): Likewise.
6238 (udi2go32.o): Likewise.
6239 (udr.o): Likewise.
6240 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6241
37e71372
AC
62422002-06-22 Andrew Cagney <ac131313@redhat.com>
6243
06a6ac57
AC
6244 * infrun.c (_initialize_infrun): Delete unnecessary call to
6245 build_infrun.
6246
37e71372
AC
6247 * regcache.h: Update comments describing the regcache_cpy family
6248 of functions.
6249 (regcache_save, regcache_restore): Delete declaration.
6250 (regcache_save_no_passthrough): Delete declaration.
6251 (regcache_restore_no_passthrough): Delete declaration.
6252 * regcache.c (regcache_save): Delete function.
6253 (regcache_save_no_passthrough): Delete function.
6254 (regcache_restore): Delete function.
6255 (regcache_restore_no_passthrough): Delete function.
6256
78f6d055
AC
62572002-06-21 Andrew Cagney <ac131313@redhat.com>
6258
6259 * config/m68k/tm-m68k.h: Fix typo.
6260 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6261 (m68k_frame_init_saved_regs): Declare.
6262
78b119cb
JB
62632002-06-21 Jim Blandy <jimb@redhat.com>
6264
6265 Remove some vestiges of Harris 88k support.
6266 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6267 register numbering quirk.
6268 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6269 odd symbols occurring in Harris 88k ELF targets.
6270
0fbb3da7
TT
62712002-06-21 Tom Tromey <tromey@redhat.com>
6272
6273 * gdb_locale.h: New file.
6274 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6275 (defs_h): Added gdb_locale.h.
6276 * configure, config.in: Rebuilt.
6277 * configure.in (PACKAGE): Define.
6278 * defs.h: Include gdb_locale.h.
6279 * main.c (captured_main): Call setlocale, bindtextdomain,
6280 textdomain.
6281
456f8b9d
DB
62822002-06-21 Dave Brolley <brolley@redhat.com>
6283
6284 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6285 * config/frv/frv.mt: New file.
6286 * config/frv/tm-frv.h: New file.
6287 * configure.tgt: Support frv-*-*.
6288 * Makefile.in (frv-tdep.o): New target.
6289 * frv-tdep.c: New file.
6290 * NEWS: Mention frv.
6291
cdd463f9
DB
62922002-06-21 Dave Brolley <brolley@redhat.com>
6293
6294 * MAINTAINERS: Add self to "Write After Approval" list.
6295
5d3ed2e3
GS
62962002-06-21 Grace Sainsbury <graces@redhat.com>
6297
6298 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6299 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6300 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6301 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6302 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6303
6304 * m68k-tdep.c: Include arch-utils.h
6305 (m68k_register_raw_size): Add.
6306 (m68k_register_virtual_size): Add.
6307 (m68k_register_virtual_type): Add.
6308 (m68k_register_name): Add.
6309 (m68k_stack_align): Add.
6310 (m68k_register_byte): Add.
6311 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6312 tm-m68k.h.
6313
7f8e7424
GS
63142002-06-21 Grace Sainsbury <graces@redhat.com>
6315
a2c6a6d5 6316 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
6317 m68k_find_saved_regs.
6318 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 6319 references to it with frame->saved_regs.
7f8e7424
GS
6320 (m68k_gdbarch_init): Added function calls to initialize the
6321 gdbarch structure.
a2c6a6d5
GS
6322 (m68k_fix_call_dummy): Add.
6323 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6324 (CALL_DUMMY): Remove.
6325 (CALL_DUMMY_LENGTH): Remove.
6326 (CALL_DUMMY_START_OFFSET): Remove.
6327 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6328 (FIX_CALL_DUMMY): Remove.
6329 (PUSH_DUMMY_FRAME): Remove.
6330 (POP_FRAME): Remove.
7f8e7424 6331
f461f5cf
PM
63322002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6333
6334 * parse.c (parse_fprintf): New function used to avoid calls to
6335 fprintf in bison parser generated debug code.
6336 * parser-defs.h: Declaration of new parse_fprintf function.
6337 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6338 Set YYDEBUG to 1 by default.
6339 Set YYFPRINTF as parse_fprintf.
6340
7f0c12ed
ML
63412002-06-21 Michal Ludvig <mludvig@suse.cz>
6342
6343 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6344 encoding anymore.
6345 (pointer_encoding, enum ptr_encoding): New.
6346 (execute_cfa_program): Take care about pointer encoding.
6347 (dwarf2_build_frame_info): Only call parse_frame_info for
6348 .debug_frame and .eh_frame.
6349 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6350 fixed augmentation handling, added relative addressing,
6351 ignore duplicate FDEs. Added comments.
19d833a2 6352 * dwarf2cfi.c: Reindented.
7f0c12ed 6353
87c4a039
EZ
63542002-06-20 Elena Zannoni <ezannoni@redhat.com>
6355
6356 * event-top.c (command_handler): Don't use space_at_cmd_start
6357 unless there is sbrk() on the host. Assign time and space data
6358 to union fields of the appropriate length.
6359
1cf877ad
ML
63602002-06-20 Michal Ludvig <mludvig@suse.cz>
6361
6362 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6363 x86_64_register_name. Return type changed to 'const char *'.
6364 (x86_64_register_name2nr): Rename to x86_64_register_number.
6365 (x86_64_gdbarch_init): Update to reflect the change.
6366 * x86-64-tdep.h: Ditto.
6367 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6368 (supply_fpregset): Ditto.
6369
3fadccb3
AC
63702002-06-19 Andrew Cagney <cagney@redhat.com>
6371
6372 * regcache.h: Update copyright.
6373 (struct regcache, struct gdbarch): Add opaque declarations.
6374 (current_regcache): Declare global variable.
6375 (regcache_read, regcache_write): Add gdbarch parameter.
6376 (regcache_save, regcache_save_no_passthrough)
6377 (regcache_restore, regcache_restore_no_passthrough)
6378 (regcache_dup, regcache_dup_no_passthrough)
6379 (regcache_cpy, regcache_cpy_no_passthrough)
6380 (deprecated_grub_regcache_for_registers)
6381 (deprecated_grub_regcache_for_register_valid)
6382 (regcache_valid_p): Add function declarations.
6383
6384 * regcache.c: Update copyright.
6385 (regcache_descr_handle): New global variable.
6386 (struct regcache_descr): Define.
6387 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6388 (regcache_descr, xfree_regcache_descr): New functions.
6389 (struct regcache): Define.
6390 (regcache_xmalloc, regcache_xfree): New functions.
6391 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6392 (regcache_dup, regcache_dup_no_passthrough): New functions.
6393 (regcache_valid_p, regcache_read_as_address): New functions.
6394 (deprecated_grub_regcache_for_registers): New function.
6395 (deprecated_grub_regcache_for_register_valid): New function.
6396 (current_regcache): New global variable.
6397 (register_buffer): Add regcache parameter. Update calls.
6398 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6399 (read_register_gen, write_register_gen): Update register_buffer
6400 call. Test for legacy_p instead of gdbarch_register_read_p or
6401 gdbarch_register_write_p.
6402 (regcache_collect): Update register_buffer call.
6403 (build_regcache): Rewrite. Use deprecated grub functions.
6404 (regcache_save, regcache_save_no_passthrough): New functions.
6405 (regcache_restore, regcache_restore_no_passthrough): New
6406 functions.
6407 (_initialize_regcache): Create the regcache_data_handle. Swap
6408 current_regcache global variable.
6409
6410 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6411 parameter to regcache_read and regcache_write calls.
6412 (sh4_register_read): Ditto.
6413 (sh64_pseudo_register_read): Ditto.
6414 (sh64_register_read): Ditto.
6415 (sh_pseudo_register_write): Ditto.
6416 (sh4_register_write): Ditto.
6417 (sh64_pseudo_register_write): Ditto.
6418 (sh64_register_write): Ditto.
6419
6420 * defs.h (XCALLOC): Define.
6421
152d9db6
GS
64222002-06-19 Grace Sainsbury <graces@redhat.com>
6423
6424 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6425 * m68k-tdep.c (m68k_gdbarch_init): Added.
6426 (m68k_dump_tdep): Added.
6427
170911c7
DJ
64282002-06-19 Daniel Jacobowitz <drow@mvista.com>
6429
6430 * ada-lang.c (fill_in_ada_prototype): Update comment.
6431
2e4ebe70
DJ
64322002-06-19 Daniel Jacobowitz <drow@mvista.com>
6433
6434 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6435 MIPS_ABI_LAST.
6436 (mips_abi_string, mips_abi_strings): New.
6437 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6438 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6439 tdep->mips_abi_string. Honor mips_abi_string. Default to
6440 O32 if no ABI is found.
6441 (mips_dump_tdep): Use mips_abi_strings.
6442 (mips_abi_update): New function.
6443 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6444 ``set mips abi'' and ``show mips abi''. Check the size of
6445 mips_abi_strings.
6446
16775908
AC
64472002-06-19 Andrew Cagney <cagney@redhat.com>
6448
6449 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6450 constant.
6451
5051bfa4 64522002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 6453
5051bfa4
JB
6454 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6455 current frame using only the first stack size adjustment. All
6456 subsequent size adjustments are not considered to be part of
6457 the "static" part of the current frame.
6458 Compute the address of the saved registers relative to the
6459 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6460 in use in this frame.
6461
56468235
DH
64622002-06-18 Don Howard <dhoward@redhat.com>
6463
6464 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6465 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6466 suggesting this solution.
6467
0b624158
AC
64682002-06-18 Andrew Cagney <ac131313@redhat.com>
6469
6470 * config/romp/xm-rtbsd.h: Delete file.
6471 * config/romp/rtbsd.mh: Delete file.
6472
221ea385
KS
64732002-06-18 Keith Seitz <keiths@redhat.com>
6474
6475 * breakpoint.c (condition_command): Post breakpoint_modify
6476 when a condition is added to an existing breakpoint.
6477 (commands_command): Likewise for commands.
6478 (set_ignore_count): Likewise for ignore counts.
6479 If no tty, do not simply return, still need to send event
6480 notification.
6481 (ignore_command): Only print a newline if the command came
6482 from a tty.
6483 Don't call breakpoints_changed, since this is now properly
6484 handled by set_ignore_count.
6485
5402eed1
AC
64862002-06-18 Andrew Cagney <cagney@redhat.com>
6487
6488 * MAINTAINERS: Note that cris-elf target can be compiled with
6489 -Werror.
6490 * cris-tdep.c (cris_register_name): Make return type constant.
6491 (cris_breakpoint_from_pc): Ditto.
6492
cc22880b
ML
64932002-06-18 Michal Ludvig <mludvig@suse.cz>
6494
6495 * frame.h (struct frame_info): Change type of context to
6496 'struct context'.
6497
fa88f677
AC
64982002-06-17 Andrew Cagney <cagney@redhat.com>
6499
6500 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6501 pointer.
6502 * gdbarch.h, gdbarch.c: Regenerate.
6503 * config/mips/tm-mips.h (mips_register_name): Update.
6504 * i386-tdep.h (i386_register_name): Update.
6505 * mips-tdep.c (mips_register_name): Update
6506 * alpha-tdep.c (alpha_register_name): Update.
6507 * arch-utils.c (legacy_register_name): Update.
6508 * arch-utils.h (legacy_register_name): Update.
6509 * avr-tdep.c (avr_register_name): Update.
6510 * ia64-tdep.c (ia64_register_name): Update.
6511 * i386-tdep.c (i386_register_name): Update.
6512 * sparc-tdep.c (sparc32_register_name): Update.
6513 (sparc64_register_name): Update.
6514 (sparclite_register_name): Update.
6515 (sparclet_register_name): Update.
6516 * sh-tdep.c (sh_generic_register_name): Update.
6517 (sh_sh_register_name): Update.
6518 (sh_sh3_register_name): Update.
6519 (sh_sh3e_register_name): Update.
6520 (sh_sh_dsp_register_name): Update.
6521 (sh_sh3_dsp_register_name): Update.
6522 (sh_sh4_register_name): Update.
6523 (sh_sh64_register_name): Update.
6524 * s390-tdep.c (s390_register_name): Update.
6525 * rs6000-tdep.c (rs6000_register_name): Update.
6526 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6527 (ns32k_register_name_32382): Update.
6528 * d10v-tdep.c (d10v_ts2_register_name): Update.
6529 (d10v_ts3_register_name): Update.
6530 * xstormy16-tdep.c (xstormy16_register_name): Update.
6531 * vax-tdep.c (vax_register_name): Update.
6532 * v850-tdep.c (v850_register_name): Update.
6533 * m68hc11-tdep.c (m68hc11_register_name): Update.
6534 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6535 (am33_register_name): Update.
6536
ea1e7ef6
GS
65372002-06-17 Grace Sainsbury <graces@redhat.com>
6538
6539 * m68k-tdep.c: Reindented.
6540
9b02dd1b
AC
65412002-06-17 Andrew Cagney <ac131313@redhat.com>
6542
6543 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6544 list of predefined types.
6545
8758dec1
MK
65462002-06-16 Mark Kettenis <kettenis@gnu.org>
6547
b6197528
MK
6548 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6549 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6550 REGISTER_CONVERT_TO_RAW): Remove defines.
6551 (i386_register_virtual_type, i386_register_convertible,
6552 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6553 Remove prototypes.
6554 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6555 macros mentioned above.
6556
82b47e62
MK
6557 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6558 (i386lynx_saved_pc_after_call): Remove prototype.
6559 * i386ly-tdep.c: Include "i386-tdep.h".
6560 (i386lynx_saved_pc_after_call): Make static. Use
6561 read_memory_nobpt instead of read_memory. Use
6562 read_memory_unsigned_integer instead of read_memory_integer.
6563 (i386lynx_init_abi): New function.
6564 (i386lynx_coff_osabi_sniffer): New function.
6565 (_initialize_i386bsd_tdep): New function.
6566
8758dec1
MK
6567 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6568 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6569 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6570 (i386_fix_call_dummy): Remove prototype.
6571 * i386-tdep.c (i386_call_dummy_words): New variable.
6572 (i386_gdbarch_init): Adjust for removal of the
6573 macros mentioned above.
6574
e9e68a56
AC
65752002-06-15 Andrew Cagney <ac131313@redhat.com>
6576
6577 * command.h (add_setshow_auto_boolean_cmd): Replace
6578 add_set_auto_boolean_cmd.
6579 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6580 add_set_auto_boolean_cmd.
6581 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6582 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6583 mask-address'' command.
6584 (show_mask_address): Add cmd parameter.
6585 * remote.c (add_packet_config_cmd): Update. Change type of
6586 set_func and show_func to cmd_sfunc_ftype.
6587 (_initialize_remote): Update `set remote Z-packet'
6588 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6589 (show_remote_protocol_e_packet_cmd): Ditto.
6590 (show_remote_protocol_E_packet_cmd): Ditto.
6591 (show_remote_protocol_P_packet_cmd): Ditto.
6592 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6593 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6594 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6595 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6596 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6597 (show_remote_protocol_Z_packet_cmd): Ditto.
6598 (show_remote_protocol_binary_download_cmd): Ditto.
6599 (show_remote_cmd): Pass NULL to all of above.
6600
fc08ec52
MK
66012002-06-15 Mark Kettenis <kettenis@gnu.org>
6602
6603 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6604 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6605 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6606 POP_FRAME): Remove defines.
6607 (i386_push_arguments, i386_store_struct_return,
6608 i386_extract_return_value, i386_store_return_value,
6609 i386_extract_struct_value_address, i386_push_dummy_frame,
6610 i386_pop_frame): Renove prototypes.
6611 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6612 macros mentioned above.
6613
e707bbc2
AC
66142002-06-15 Andrew Cagney <ac131313@redhat.com>
6615
6616 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6617 add_set_boolean_cmd.
6618 (add_setshow_cmd): New function.
6619 * command.h (add_setshow_boolean_cmd): Replace
6620 add_set_boolean_cmd.
6621 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6622 and ``set rdiromatzero''.
6623 * maint.c (_initialize_maint_cmds): Update commented out code.
6624 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6625 * target.c (initialize_targets): Update `set
6626 trust-readonly-sections'.
6627 * remote.c (_initialize_remote): Update `set remotebreak'.
6628
42fdc8df
MK
66292002-06-15 Mark Kettenis <kettenis@gnu.org>
6630
93924b6b
MK
6631 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6632 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6633 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6634 fit into multi-arch framework.
6635 (i386_breakpoint_from_pc): New function.
6636 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6637 above.
6638
42fdc8df
MK
6639 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6640 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6641 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6642 (i386_frameless_function_invocation, i386_frame_num_args,
6643 i386_frame_init_saved_regs): Remove prototypes.
6644 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6645 macros mentioned above.
6646
9773a94b
AC
66472002-06-15 Andrew Cagney <ac131313@redhat.com>
6648
6649 * cli/cli-decode.c (set_cmd_cfunc): Update.
6650 (set_cmd_sfunc): Update.
6651 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6652 (set_cmd_sfunc, set_cmd_cfunc): Update.
6653 * cli/cli-decode.h: Update.
6654
6e157172
MK
66552002-06-15 Mark Kettenis <kettenis@gnu.org>
6656
6657 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6658 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6659
7f19b9a2
AC
66602002-06-15 Andrew Cagney <ac131313@redhat.com>
6661
6662 * defs.h (auto_boolean): Declare enum.
6663 * command.h (cmd_auto_boolean): Delete enum.
6664 * mips-tdep.c (mask_address_var): Update.
6665 (mips_mask_address_p): Update.
6666 (show_mask_address): Update.
6667 * remote.c (struct packet_config): Update.
6668 (update_packet_config): Update.
6669 (show_packet_config_cmd): Update.
6670 (packet_ok): Update.
6671 (add_packet_config_cmd): Update.
6672 (_initialize_remote):
6673 * command.h: Update.
6674 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6675 (do_setshow_command): Update.
6676 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6677 * cli/cli-decode.h: Update.
6678
1cf88de5
MK
66792002-06-15 Mark Kettenis <kettenis@gnu.org>
6680
22ba8cf2
MK
6681 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6682 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6683 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6684 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6685 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6686 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6687
762c5349
MK
6688 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6689 list of DJGPP COFF targets.
6690
091198bb
MK
6691 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6692 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6693 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6694 (FP0_REGNUM): Remove define.
6695 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6696 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6697 (i386_register_virtual_size): Remove protoype.
6698 * i386-tdep.c (i386_register_virtual_size): Removed.
6699 (i386_extract_return_value, i386_store_return_value): Use
6700 FP0_REGNUM instead of NUM_FREGS to determine whether the
6701 floating-point registers are available.
6702 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6703 Adjust for removal of macros mentioned above.
6704
67052002-06-15 Mark Kettenis <kettenis@gnu.org>
6706
fcc9bf01
MK
6707 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6708 comments.
6709 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6710 Remove prototypes.
6711 (supply_gregset, fill_gregset): Remove use of register keyword and
6712 remove declaration for regmap. Use I386_NUM_GREGS instead of
6713 NUM_REGS and NUM_FREGS.
6714 (FPREGSET_FSAVE_OFFSET): Remove.
6715 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6716 NUM_FREGS to determine whether the floating-point registers are
6717 available.
6718
65e78234
MK
6719 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6720 gnu_store_registers): Replace usage of NUM_GREGS with
6721 I386_NUM_GREGS.
6722
98df6387
MK
6723 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6724 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6725 usage of NUM_GREGS with I386_NUM_GREGS.
6726
099a9414
MK
6727 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6728
57976e88
MK
6729 * i386bsd-nat.c: Include "i386-tdep.h".
6730 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6731 I386_NUM_GREGS.
6732
b335f4a6
MK
6733 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6734 and associated comment. They no longer make any sense, since we
6735 don't use this file anymore on Linux.
6736
1cf88de5
MK
6737 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6738 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6739 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6740 elements in these arrays.
6741 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6742 MAX_NUM_REGS.
6743
daa66587
MK
67442002-06-15 Mark Kettenis <kettenis@gnu.org>
6745
6746 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6747 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6748
26e9b323
AC
67492002-06-14 Andrew Cagney <cagney@redhat.com>
6750
6751 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6752 EXTRACT_RETURN_VALUE.
6753 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6754 EXTRACT_STRUCT_VALUE_ADDRESS.
6755 * gdbarch.h, gdbarch.c: Regenerate.
6756
6757 * values.c (value_being_returned): Handle
6758 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6759 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6760
6761 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6762 * arm-tdep.c (arm_gdbarch_init): Update.
6763 * avr-tdep.c (avr_gdbarch_init): Update.
6764 * cris-tdep.c (cris_gdbarch_init): Update.
6765 * d10v-tdep.c (d10v_gdbarch_init): Update.
6766 * ia64-tdep.c (ia64_gdbarch_init): Update.
6767 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6768 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6769 * s390-tdep.c (s390_gdbarch_init): Update.
6770 * sh-tdep.c (sh_gdbarch_init): Update.
6771 * s390-tdep.c (s390_gdbarch_init): Update.
6772 * sparc-tdep.c (sparc_gdbarch_init): Update.
6773 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6774 * v850-tdep.c (v850_gdbarch_init): Update.
6775 * vax-tdep.c (vax_gdbarch_init): Update.
6776 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6777 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6778
6779 * config/arc/tm-arc.h: Update.
6780 * config/d30v/tm-d30v.h: Update.
6781 * config/fr30/tm-fr30.h: Update.
6782 * config/h8300/tm-h8300.h: Update.
6783 * config/h8500/tm-h8500.h: Update.
6784 * config/i386/tm-i386.h: Update.
6785 * config/i386/tm-ptx.h: Update.
6786 * config/i386/tm-symmetry.h: Update.
6787 * config/i960/tm-i960.h: Update.
6788 * config/m32r/tm-m32r.h: Update.
6789 * config/m68k/tm-delta68.h: Update.
6790 * config/m68k/tm-linux.h: Update.
6791 * config/m68k/tm-m68k.h: Update.
6792 * config/m88k/tm-m88k.h: Update.
6793 * config/mcore/tm-mcore.h: Update.
6794 * config/mips/tm-mips.h: Update.
6795 * config/mn10200/tm-mn10200.h: Update.
6796 * config/pa/tm-hppa.h: Update.
6797 * config/pa/tm-hppa64.h: Update.
6798 * config/sparc/tm-sp64.h: Update.
6799 * config/sparc/tm-sparc.h: Update.
6800 * config/sparc/tm-sparclet.h: Update.
6801 * config/z8k/tm-z8k.h: Update.
6802
5179e78f
AC
68032002-06-14 Andrew Cagney <cagney@redhat.com>
6804
6805 * Makefile.in (i386_linux_tdep_h): Define.
6806 (i386_tdep_h, i387_tdep_h): Define.
6807 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6808 $(i386_tdep_h) and $(i387_tdep_h).
6809 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6810
8201327c
MK
68112002-06-14 Mark Kettenis <kettenis@gnu.org>
6812
edf393ac
MK
6813 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6814 Already covered by the default.
6815
896fb97d
MK
6816 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6817 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6818 (i386_gdbarch_init): Initialize long_double_format and long_double
6819 bit.
6820
8201327c
MK
6821 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6822 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6823 Move these to ...
6824 * config/i386/i386sol2.mh: ... here.
6825 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6826 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6827 (SIGCONTEXT_PC_OFFSET): Remove define.
6828 (IN_SIGTRAMP): Remove define.
6829 * i386-sol2-tdep.c: New file.
6830
6831 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6832 * config/i386/tm-i386nw.h: Removed.
6833
6834 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6835 USE_STRUCT_CONVENTION): Remove defines.
6836 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6837 (get_longjmp_target): Remove prototype.
6838 (IN_SIGTRAMP): Remove define.
6839 (i386bsd_in_sigtramp): Remove prototype.
6840 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6841 function. Update comment accordingly
6842 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6843 (FRAME_SAVED_PC): Remove define.
6844 (i386bsd_frame_saved_pc): Remove prototype.
6845 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6846 GET_LONGJMP_TARGET): Remove defines.
6847 (get_longjmp_target): Remove prototype.
6848 (IN_SIGTRAMP): Remove define.
6849 (i386bsd_in_sigtramp): Remove prototype.
6850 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6851 function. Update comment accordingly
6852 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6853 (FRAME_SAVED_PC): Remove define.
6854 (i386bsd_frame_saved_pc): Remove prototype.
6855 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6856 Remove prototype.
6857 (USE_STRUCT_CONVENTION): Remove prototype.
6858 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6859 declaration.
6860 (_initialize_i386bsd_nat): Revise logic to determine some
6861 constants at compile time when compiling a native GDB. Warn if
6862 things don't match up with what we expect.
6863 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6864 Remove variables.
6865 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6866 to use date stored in `struct gdbarch_tdep'.
6867 (i386bsd_sigcontext_offset): Remove varaible.
6868 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6869 stored in `struct gdbarch_tdep'.
6870 (i386bsd_frame_saved_pc): Make static.
6871 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6872 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6873 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6874 i386fbsd4_sc_pc_offset): New variables.
6875 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6876 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6877 functions.
6878 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6879 functions.
6880 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6881 Modify the value of i386fbsd_sigtramp_start and
6882 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6883 i386fbsd_sigtramp_end.
6884 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6885 function.
6886
6887 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6888 define to i386-linux-tdep.h.
6889 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6890 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6891 defines.
6892 (i386_linux_register_name, i386_linux_register_byte,
6893 i386_linux_register_raw_size): Remove prototypes.
6894 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6895 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6896 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6897 TARGET_WRITE_PC): Remove defines.
6898 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6899 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6900 i386_linux_write_pc): Remove prototypes.
6901 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6902 (get_longjmp_target): Remove prototype.
6903 * i386-linux-tdep.h: New file.
6904 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6905 * i386-linux-tdep.c: Include "i386-tdep.h" and
6906 "i386-linux-tdep.h".
6907 (i386_linux_register_name, i386_linux_register_byte,
6908 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6909 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6910 Make static.
6911 (i386_linux_init_abi): New function.
6912 (_initialize_i386_linux_tdep): New function.
6913
6914 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6915 (i386_saved_pc_after_call): Remove prototype.
6916 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6917 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6918 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6919 (i386_register_name, i386_stab_reg_to_regnum,
6920 i386_dwarf_reg_to_regnum): Remove prototypes.
6921 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6922 SIZEOF_SSE_REGS): Remove defines.
6923 (REGISTER_BYTES): Remove define.
6924 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6925 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6926 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6927 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6928 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6929 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6930 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6931 (get_longjmp_target): Remove prototype.
6932 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6933 (sigtramp_saved_pc): Remove define.
6934 (i386v4_sigtramp_saved_pc): Remove prototype.
6935 * config/i386/tm-go32.h (FRAME_CHAIN,
6936 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6937 (i386go32_frame_saved_pc): Remove prototype.
6938 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6939 (get_longjmp_target): Remove prototype.
6940 * i386-tdep.h: Include "osabi.h".
6941 (enum i386_abi): Removed.
6942 (enum struct_return): New enum.
6943 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6944 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6945 sc_pc_offset members.
6946 (i386_gdbarch_register_os_abi): Remove prototype.
6947 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6948 I386_SSE_NUM_REGS): New defines.
6949 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6950 I386_SSE_SIZEOF_REGS): New defines.
6951 (i386_register_name, i386_register_byte, i386_register_raw_size):
6952 New prototypes.
6953 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6954 (i386bsd_sigtramp_saved_pc): New prototype.
6955 * i386-tdep.c: Don't include "elf-bfd.h".
6956 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6957 i386_frame_chain, i386_saved_pc_after_call): Make static.
6958 (i386_frame_saved_pc): Rewrite to call architecture dependent
6959 function to deal with signal handlers. Make static.
6960 (i386go32_frame_saved_pc): Removed.
6961 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6962 Removed.
6963 (i386_get_longjmp_target): New function.
6964 (default_struct_convention, pcc_struct_convention,
6965 reg_struct_convention, valid_conventions, struct_convention): New
6966 variables.
6967 (i386_use_struct_convention): New function.
6968 (i386v4_sigtramp_saved_pc): Renamed to
6969 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6970 (i386_pc_in_sigtramp): New function.
6971 (i386_abi_names): Removed.
6972 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6973 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6974 Removed.
6975 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6976 i386_gdbarch_register_os_abi): Removed.
6977 (struct i386_abi_handler): Removed.
6978 (i386_abi_handler_list): Removed.
6979 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6980 functions.
6981 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6982 i386_nw_init_abi): New functions.
6983 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6984 Use set_gdbarch_xxx() calls instead of relying on macros for a
6985 number of calls.
6986 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6987 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6988 Register the various architecture variants defined in this file.
6989
ad2f7632
DJ
69902002-06-14 Daniel Jacobowitz <drow@mvista.com>
6991
6992 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6993 (struct main_type): Remove arg_types member. Update comments for
6994 struct field.
6995 (TYPE_ARG_TYPES): Remove.
6996 (TYPE_FN_FIELD_ARGS): Update.
6997 (smash_to_method_type): Update prototype.
6998
6999 * c-typeprint.c (cp_type_print_method_args): Take method type
7000 instead of argument list. Use new argument layout. Simplify.
7001 (c_type_print_args): Use new argument layout. Simplify.
7002 (c_type_print_base): Update call to cp_type_print_method_args.
7003 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7004 argument; use die->type instead. Update call to
7005 smash_to_method_type.
7006 (read_structure_scope): Update call to dwarf2_add_member_fn.
7007 * gdbtypes.c (allocate_stub_method): Update comment.
7008 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7009 Use new argument layout.
7010 (check_stub_method): Use new argument layout. Don't count
7011 void as an argument.
7012 (print_arg_types): Update comments. Use new argument layout.
7013 (recursive_dump_type): Don't print arg_types member.
7014 * hpread.c (hpread_read_struct_type): Use new argument layout.
7015 (fixup_class_method_type): Likewise.
7016 (hpread_type_lookup): Likewise.
7017 * stabsread.c (read_type): Update calls to read_args and
7018 smash_to_method_type.
7019 (read_args): Use new argument layout. Simplify.
7020 * valops.c (typecmp): Use new argument layout. Update parameters
7021 and comments. Simplify.
7022 (hand_function_call): Use new argument layout.
7023 (search_struct_method): Update call to typecmp.
7024 (find_overload_match): Use new argument layout.
7025
6da02953
DJ
70262002-06-13 Daniel Jacobowitz <drow@mvista.com>
7027
7028 * NEWS: Mention multithreaded debug support for gdbserver.
7029
519b2366
DJ
70302002-06-13 Daniel Jacobowitz <drow@mvista.com>
7031
7032 * MAINTAINERS: Mention NEWS.
7033
6c0d6680
DJ
70342002-06-13 Daniel Jacobowitz <drow@mvista.com>
7035
7036 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7037 (struct mips_objfile_private, compare_pdr_entries): New.
7038 (non_heuristic_proc_desc): Read the ".pdr" section if it
7039 is present.
7040
6529d2dd
AC
70412002-06-12 Andrew Cagney <ac131313@redhat.com>
7042
7043 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7044 (arm_debug): New static variable.
7045 (_initialize_arm_tdep): Add ``set debug arm'' command.
7046
26216b98
AC
70472002-06-12 Andrew Cagney <ac131313@redhat.com>
7048
7049 * Makefile.in (sim_arm_h): Define.
7050 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7051 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7052 (arm_register_sim_regno): New function, map an internal REGNUM
7053 onto a simulator register number.
7054 (arm_gdbarch_init): Set register_sim_regno.
7055
814b3ba0
AH
70562002-06-09 Aldy Hernandez <aldyh@redhat.com>
7057
7058 * MAINTAINERS: Add self.
7059
475b0867
JB
70602002-06-11 Jim Blandy <jimb@redhat.com>
7061
919d772c
JB
7062 * source.c (source_info): Mention whether the symtab has
7063 information about preprocessor macros.
7064
475b0867
JB
7065 Call the command `info macro', not `show macro'.
7066 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7067 Fix error message.
7068 (_initialize_macrocmd): Register `info_macro_command' in
7069 `infolist', not `showlist'.
7070
9e364162
DJ
70712002-06-11 Daniel Jacobowitz <drow@mvista.com>
7072
7073 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7074 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7075 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7076 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7077 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7078 unconditionally.
7079 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7080 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7081 (_initialize_mips_tdep): Remove dead code.
7082 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7083 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7084 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7085 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7086 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7087 MIPS_LAST_FP_ARG_REGNUM): Remove.
7088
23aa4c72
ML
70892002-06-11 Michal Ludvig <mludvig@suse.cz>
7090
7091 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7092 (unwind_tmp_obstack_free, parse_frame_info)
7093 (update_context, cfi_read_fp, cfi_write_fp)
7094 (cfi_frame_chain, cfi_init_extra_frame_info)
7095 (cfi_virtual_frame_pointer): Use the above function.
264d1763 7096 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 7097
70eb15a4
CV
70982002-06-11 Corinna Vinschen <vinschen@redhat.com>
7099
7100 * v850-tdep.c (v850_type_is_scalar): New function.
7101 (v850_use_struct_convention): Match current gcc implementation
7102 as close as possible.
7103 (v850_push_arguments): Fix stack_offset handling. Don't write
7104 struct_addr into register. This is done by v850_store_struct_return.
7105 (v850_extract_return_value): Care for structs.
7106 (v850_store_return_value): Ditto.
7107 (v850_store_struct_return): Actually write address.
7108
482a4d06
ML
71092002-06-11 Michal Ludvig <mludvig@suse.cz>
7110
7111 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7112 without debug information too.
7113
d855c300
AC
71142002-06-10 Andrew Cagney <ac131313@redhat.com>
7115
7116 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7117 Make multi-arch pure.
7118 * gdbarch.h, gdbarch.c: Re-generate.
7119 * arm-tdep.c (arm_print_float_info): Update.
7120 * arch-utils.h (default_print_float_info): Update.
7121 * arch-utils.c (default_print_float_info): Update.
7122 * infcmd.c (float_info): Update call.
7123
dd12a101
AC
71242002-06-10 Andrew Cagney <ac131313@redhat.com>
7125
7126 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7127 the front of the initialize list.
7128
101dcfbe
AC
71292002-06-10 Andrew Cagney <ac131313@redhat.com>
7130
7131 * infrun.c (struct inferior_status): Replace fields
7132 selected_frame_address and selected_level with field
7133 selected_frame_id.
7134 (save_inferior_status): Update. Use get_frame_id.
7135 (struct restore_selected_frame_args): Delete.
7136 (restore_selected_frame): Update. Use frame_find_by_id.
7137 (restore_inferior_status): Update.
7138
7139 * breakpoint.h (struct breakpoint): Change type of
7140 watchpoint_frame to frame_id.
7141 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7142 call to get_current_frame.
7143 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7144 get_current_frame.
7145 (watchpoint_check): Use frame_find_by_id.
7146
7147 * frame.h (record_selected_frame): Delete declaration.
7148 * stack.c (record_selected_frame): Delete function.
7149
7150 * frame.h (struct frame_id): Define.
7151 (get_frame_id): Declare.
7152 (frame_find_by_id): Declare.
7153 * frame.c (frame_find_by_id): New function.
7154 (get_frame_id): New function.
7155
304270b6
AV
71562002-06-10 Andrey Volkov <avolkov@transas.com>
7157
7158 * ser-e7kpc.c: Fix duplicated define and call of
7159 _initialize_ser_e7000pc
7160
2f2cf184
DJ
71612002-06-09 Daniel Jacobowitz <drow@mvista.com>
7162
7163 * signals/signals.c (target_signal_from_host): Fix #ifdef
7164 SIGRTMIN case.
7165 (do_target_signal_to_host): Likewise.
7166
caaa3122
DJ
71672002-06-09 Daniel Jacobowitz <drow@mvista.com>
7168
7169 * mips-tdep.c (mips_find_abi_section): New function.
7170 (mips_gdbarch_init): Call it.
7171
6ac5df3a
MK
71722002-06-09 Mark Kettenis <kettenis@gnu.org>
7173
7174 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7175 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7176 after Andrew's 2002-06-08 gdbarch change.
7177
82ea117a
MK
71782002-06-09 Mark Kettenis <kettenis@gnu.org>
7179
7180 * i386-linux-nat.c (suppy_gregset): Don't supply
7181 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7182 register cache.
7183 (fill_gregset): Don't fetch it under the same circumstances.
7184
3c25f8c7
AC
71852002-06-09 Andrew Cagney <cagney@redhat.com>
7186
7187 * Makefile.in (callback_h): Define.
7188 (remote_sim_h): Update path to remote-sim.h.
7189 (remote-rdp.o): Add $(callback_h).
7190 (remote-sim.o): Use $(callback_h).
7191 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7192 * remote-rdp.c: Include "gdb/callback.h".
7193
1029b7fa
MK
71942002-06-09 Mark Kettenis <kettenis@gnu.org>
7195
7196 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7197 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7198
616675d3
AC
71992002-06-08 Andrew Cagney <ac131313@redhat.com>
7200
a3efda28
AC
7201 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7202 * rdi-share/serpardr.c: Ditto.
7203 * rdi-share/unixcomm.c: Ditto.
7204 * rdi-share/serdrv.c: Ditto.
7205 * rdi-share/hostchan.h: Ditto.
7206 * rdi-share/hostchan.c: Ditto.
7207 * rdi-share/host.h: Ditto.
7208 * rdi-share/devsw.c: Ditto.
7209
c5f10366
AC
7210 * objfiles.h: Change type of obj_private to void pointer.
7211 * pa64solib.c: Update copyright. Don't include "assert.h", use
7212 strcmp instead of STREQ, use LONGEST, do not use PTR
7213 * somsolib.c: Ditto.
7214
616675d3
AC
7215 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7216 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7217 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7218
e4b415d9
AC
72192002-06-08 Andrew Cagney <ac131313@redhat.com>
7220
7221 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7222 (default_get_saved_register): Delete function.
7223 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7224 generic_unwind_get_saved_register.
7225 * gdbarch.h, gdbarch.c: Re-generate.
7226
ca0d0b52
AC
72272002-06-08 Andrew Cagney <ac131313@redhat.com>
7228
7229 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7230 generic_func_frame_chain_valid.
7231 * gdbarch.h, gdbarch.c: Re-generate.
7232 * blockframe.c (generic_func_frame_chain_valid): Only check
7233 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7234 passing FP to PC_IN_CALL_DUMMY.
7235 Fix PR gdb/360.
7236
76860b5f
AC
72372002-06-08 Andrew Cagney <ac131313@redhat.com>
7238
7239 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7240 (register_gdbarch_data): Initialize init_p.
7241 (gdbarch_data): Initialize data pointer using the init function.
7242 (init_gdbarch_data): Delete function.
7243 (gdbarch_update_p): Update.
7244 (initialize_non_multiarch): Update.
7245 (struct gdbarch): Add field initialized_p.
7246 * gdbarch.h, gdbarch.c: Re-generate.
7247
8dda9770
ML
72482002-06-07 Michal Ludvig <mludvig@suse.cz>
7249
7250 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7251 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7252 better do the things actually here.
7253 * x86-64-tdep.c (x86_64_register_name2nr): New.
7254 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7255 (x86_64_gdbarch_init): Respect the above change.
7256 * x86-64-tdep.h (x86_64_register_name2nr)
7257 (x86_64_register_nr2name): Add prototypes.
7258 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7259
3d79a47c
MS
72602002-06-06 Michael Snyder <msnyder@redhat.com>
7261
7bd91a28
MS
7262 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7263 Delete extra braces and re-indent.
7264 (d10v_store_return_value): Char return values
3d79a47c
MS
7265 must be shifted over by one byte in R0.
7266 (d10v_extract_return_value): Delete extra braces, re-indent.
7267
095a4c96
EZ
72682002-06-06 Elena Zannoni <ezannoni@redhat.com>
7269
7270 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7271 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7272 (d10v_integer_to_address): Rewrite.
7273 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7274 the d10v specific functions which take care of converting to the
7275 correct space.
7276
e8a77ca4
EZ
72772002-06-06 Elena Zannoni <ezannoni@redhat.com>
7278
7279 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7280 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7281
4f2e4a4f
AC
72822002-06-02 Andrew Cagney <ac131313@redhat.com>
7283
7284 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7285 includes.
7286 * config/tm-linux.h: Ditto.
7287 * config/alpha/tm-alphalinux.h: Ditto.
7288 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7289 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7290 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7291 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7292 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7293 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7294 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7295 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7296 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7297 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7298 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7299 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7300 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7301 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7302 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7303 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7304 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7305 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7306 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7307 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7308 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7309 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7310 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7311 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7312 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7313 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7314 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7315 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7316 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7317 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7318 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7319 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7320 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7321 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7322 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7323 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7324 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7325
ae2ab2ce
AS
73262002-05-04 Aidan Skinner <aidan@velvet.net>
7327
7328 * ada-exp.tab.c: New file
7329 * ada-exp.y: New file
7330 * ada-lang.c: New file
7331 * ada-lang.h: New file
7332 * ada-lex.c: New file
7333 * ada-lex.l: New file
7334 * ada-tasks.c: New file
7335 * ada-typeprint.c: New file
7336 * ada-valprint.c: New file
7337
0ddd0135
JT
73382002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7339
7340 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7341 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7342
750fbacc
JT
73432002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7344
7345 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7346 insetead of ppc-linux-tdep.o.
7347 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7348 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7349
df94e18a
AC
73502002-06-02 Andrew Cagney <ac131313@redhat.com>
7351
7352 2002-05-07 Christian Groessler <chris@groessler.org>
7353 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7354 bit register contents for little endian hosts.
7355
1a38ab75
AC
73562002-06-01 Andrew Cagney <ac131313@redhat.com>
7357
7358 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7359 any maintainer.
7360
8b1632ac
AC
73612002-06-01 Andrew Cagney <ac131313@redhat.com>
7362
7363 * gdbarch.h: Regenerate.
7364
627054c8
AC
73652002-06-01 Andrew Cagney <ac131313@redhat.com>
7366
7367 * MAINTAINERS: Add everyone to write-after-approval list.
7368
4f460812
AC
73692002-06-01 Andrew Cagney <ac131313@redhat.com>
7370
7371 * stack.c (frame_info): Use frame_register_unwind instead of
7372 saved_regs. Mention when the SP is on the stack or in a register.
7373
7374 * frame.h (frame_register_unwind_ftype): Define. Document.
7375 (struct frame_info): Add field register_unwind and
7376 register_unwind_cache.
7377 (frame_register_unwind): Declare.
7378 (generic_unwind_get_saved_register): Declare.
7379
7380 * frame.c (frame_register_unwind): New function.
7381 (generic_unwind_get_saved_register): New function.
7382
7383 * blockframe.c (generic_call_dummy_register_unwind): New function.
7384 (frame_saved_regs_register_unwind): New function.
7385 (set_unwind_by_pc): New function.
7386 (create_new_frame): New function.
7387 (get_prev_frame): New function.
7388
de888f76
AC
73892002-05-30 Andrew Cagney <ac131313@redhat.com>
7390
7391 * a29k-share/: Delete directory.
7392 * remote-vx29k.c: Delete file.
7393
2f2c3626
JT
73942002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7395
7396 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7397 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7398
9ce5c36a
JT
73992002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7400
7401 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7402 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7403 (sparc64nbsd-nat.o)
7404 (sparcnbsd-nat.o)
7405 (sparcnbsd-tdep.o): New dependency lists.
7406 * NEWS: Note new UltraSPARC NetBSD native configuration.
7407 * configure.host (sparc64-*-netbsd*): New host.
7408 * configure.tgt (sparc-*-netbsdelf*)
7409 (sparc-*-netbsd*): Set gdb_target to nbsd.
7410 (sparc64-*-netbsd*): New target.
7411 * sparc64nbsd-nat.c: New file.
7412 * sparcnbsd-nat.c: New file.
7413 * sparcnbsd-tdep.c: New file.
7414 * sparcnbsd-tdep.h: New file.
7415 * config/sparc/nbsd.mt: New file.
7416 * config/sparc/nbsd64.mh: New file.
7417 * config/sparc/nbsd64.mt: New file.
7418 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7419 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7420 (HOST_IPC): Remove.
7421 * config/sparc/nbsdaout.mt: Remove.
7422 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7423 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7424 (HOST_IPC): Remove.
7425 * config/sparc/nbsdelf.mt: Remove.
7426 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7427 sparc-nat.c compatiblity defines.
7428 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7429 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7430 * config/sparc/tm-nbsd64.h: New file.
7431 * config/sparc/tm-nbsdaout.h: Remove.
7432 * config/sparc/xm-nbsd.h: Remove.
7433
ef3cf062
JT
74342002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7435
7436 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7437 * sparc-tdep.c: Include osabi.h.
7438 (gdbarch_tdep): Add osabi member.
7439 (_initialize_sparc_tdep): Use gdbarch_register.
7440 (sparc_gdbarch_init): Use generic OS ABI framework.
7441 (sparc_dump_tdep): New function.
7442
ee8ff470
KB
74432002-05-30 Kevin Buettner <kevinb@redhat.com>
7444
7445 * corefile.c (do_captured_read_memory_integer): Return non-zero
7446 result.
7447 (safe_read_memory_integer): Copy result of memory read when
7448 status is non-zero. Also, add comments.
7449
7b112f9c
JT
74502002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7451
7452 * Makefile.in (ppc_tdep_h): Define.
7453 (ppc-linux-nat.o)
7454 (ppc-linux-tdep.o)
7455 (rs6000-tdep.o): Use $(ppc_tdep_h).
7456 (ppc-sysv-tdep.o)
7457 (ppcnbsd-nat.o)
7458 (ppcnbsd-tdep.o): New dependency lists.
7459 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7460 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7461 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7462 (ppc_sysv_abi_broken_use_struct_convention)
7463 (ppc_sysv_abi_use_struct_convention)
7464 (ppc_sysv_abi_push_arguments): Move to...
7465 * ppc-sysv-tdep.c: ...here.
7466 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7467 * rs6000-tdep.c (process_note_abi_tag_sections)
7468 (get_elfosabi): Remove.
7469 (rs6000_gdbarch_init): Use generic OS ABI framework.
7470 (rs6000_dump_tdep): New function.
7471 (_initialize_rs6000_tdep): Use gdbarch_register.
7472 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7473 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7474 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7475 of ppc-linux-tdep.o.
7476 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7477 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7478 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7479 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7480 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7481 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7482
480dd42a
JB
74832002-05-29 Jim Blandy <jimb@redhat.com>
7484
7485 * macroscope.c (default_macro_scope): Put `void' in empty argument
7486 list.
7487
4182591f
AC
74882002-05-29 Andrew Cagney <ac131313@redhat.com>
7489
7490 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7491 * arch-utils.c: Include "sim-regno.h".
7492 * gdbarch.sh: Don't include "sim-regno.h".
7493 * gdbarch.h, gdbarch.c: Regenerate.
7494 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7495 here.
7496 * arch-utils.h (legacy_register_sim_regno): To here.
7497 * remote-sim.c (legacy_register_sim_regno): Move function from
7498 here.
7499 * arch-utils.c (legacy_register_sim_regno): To here.
7500
8238d0bf
AC
75012002-05-28 Andrew Cagney <ac131313@redhat.com>
7502
7503 * sim-regno.h: New file.
7504 * Makefile.in (sim_regno_h): Define.
7505 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7506 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7507 (legacy_register_sim_regno): New function.
7508 (one2one_register_sim_regno): New function.
7509 (gdbsim_fetch_register): Rewrite.
7510 (gdbsim_store_register): Only store a register when
7511 REGISTER_SIM_REGNO is valid.
7512 * d10v-tdep.c: Include "sim-regno.h".
7513 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7514 (d10v_ts3_register_sim_regno): Ditto.
7515 * gdbarch.sh: Include "sim-regno.h".
7516 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7517 * gdbarch.h, gdbarch.c: Regenerate.
7518 * arch-utils.h (default_register_sim_regno): Delete declaration.
7519 * arch-utils.c (default_register_sim_regno): Delete function.
7520
485721b1
JT
75212002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7522
7523 * ppcnbsd-nat.c: Rewrite.
7524 * ppcnbsd-tdep.c: New file.
7525 * ppcnbsd-tdep.h: New file.
7526 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7527 solib.o, and solib-svr4.o.
7528 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7529 nbsd-tdep.o, and corelow.o.
7530
697f244d
AC
75312002-05-28 Andrew Cagney <ac131313@redhat.com>
7532
7533 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7534 `tr' and `sed'. Mention that `broken' targets are not expected to
7535 build.
7536
f08caad1 75372002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
7538
7539 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7540 Let PC point right after the prologue before looking up symbols.
7541
3139facc
MH
75422002-05-27 Martin M. Hunt <hunt@redhat.com>
7543
7544 * i386-tdep.c (i386_register_virtual_type): Return
7545 builtin_type_vec128i for SSE registers.
7546
7547 * gdbtypes.h (builtin_type_vec128i): Declare.
7548
7549 * gdbtypes.c (build_builtin_type_vec128i): New function.
7550 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7551 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7552 (build_gdbtypes): Initialize new builtin vector types.
7553 (_initialize_gdbtypes): Register new vector types with gdbarch.
7554
6e3ba3b8
JT
75552002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7556
7557 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7558 since it has been multi-arch'd.
7559 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7560 Move Alpha and VAX multi-arch news entries to same section
7561 as other multi-arch news.
7562
93d5585d
JT
75632002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7564
7565 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7566 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7567 static. Rename some register numbers to put them in ns32k-tdep
7568 private namespace.
7569 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7570 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7571 functions.
7572 (_initialize_ns32k_tdep): Use gdbarch_register.
7573 * ns32k-tdep.h: New file.
7574 * ns32knbsd-tdep.c: New file.
7575 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7576 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7577 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7578 REGISTER_BYTES, REGISTER_BYTE): Remove.
7579 * config/ns32k/tm-ns32k.h: New file.
7580 * config/ns32k/tm-umax.h: Remove.
7581
efb2c70e
JT
75822002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7583
7584 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7585 ns32k_store_struct_return, ns32k_extract_return_value,
7586 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7587 functions.
7588 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7589 ns32k_saved_pc_after_call.
7590 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7591 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7592 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7593 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7594 ns32k_extract_struct_value_address.
7595
7bcc927b
JT
75962002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7597
7598 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7599 ns32k_fix_call_dummy): New.
7600 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7601 ns32k_call_dummy_words.
7602 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7603 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7604 CALL_DUMMY_NARGS): Remove.
7605 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7606
78f9d765
JT
76072002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7608
7609 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7610 ns32k_frame_saved_pc, ns32k_frame_args_address,
7611 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7612 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7613 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7614 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7615 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7616 (BREAKPOINT): Remove..
7617 (FRAME_CHAIN): Define as ns32k_frame_chain.
7618 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7619 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7620 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7621 (FRAME_FIND_SAVED_REGS): Remove.
7622 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7623 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7624 (POP_FRAME): Define as ns32k_pop_frame.
7625
f2c762e0
JT
76262002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7627
7628 * ns32k-tdep.c (ns32k_register_byte_32082,
7629 ns32k_register_byte_32382, ns32k_register_raw_size,
7630 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7631 functions.
7632 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7633 ns32k_register_byte_32382.
7634 * config/ns32k/tm-umax.h: Update copyright years.
7635 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7636 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7637 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7638 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7639 (ns32k_get_enter_addr): Fix prototype.
7640
af137673
JT
76412002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7642
7643 * ns32k-tdep.c: Update copyright years.
7644 (ns32k_register_name_32082): New function.
7645 (ns32k_register_name_32382): Ditto.
7646 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7647 (REGISTER_NAME): Define as ns32k_register_name_32382.
7648 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7649 (REGISTER_NAME): Define as ns32k_register_name_32082.
7650
a8bc7b56
JB
76512002-05-24 Jim Blandy <jimb@redhat.com>
7652
7653 * dwarf2read.c (free_line_header): Use xfree, not free.
7654
83a45910
JT
76552002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7656
7657 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7658 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7659
0db71247
AC
76602002-05-23 Andrew Cagney <ac131313@redhat.com>
7661
7662 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7663
b9e5e4dd
AC
76642002-05-23 Andrew Cagney <ac131313@redhat.com>
7665
7666 From Ross Alexander at NEC Europe:
7667 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7668
de530e84
MS
76692002-05-23 Michael Snyder <msnyder@redhat.com>
7670
7671 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7672 for input, rather than parse_and_eval_address.
7673
b91b96f4
AC
76742002-05-23 Andrew Cagney <ac131313@redhat.com>
7675
7676 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7677 * Makefile.in (sim_d10v_h): Update definition.
7678
8b279e7a
AC
76792002-05-24 Andrew Cagney <cagney@redhat.com>
7680
7681 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7682 change `2002-05-22 Michael Snyder' below.
7683 (d10v_push_arguments): Ditto.
7684 (d10v_extract_return_value): Ditto.
7685
0a3d0425
JB
76862002-05-23 Jim Blandy <jimb@redhat.com>
7687
7688 * macrotab.c (check_for_redefinition): Don't complain if the new
7689 definition is the same as the previous one. Take more arguments
7690 to allow the comparison.
7691 (macro_define_object, macro_define_function): Pass more arguments
7692 to check_for_redefinition.
7693
78eac43e
MS
76942002-05-22 Michael Snyder <msnyder@redhat.com>
7695
7696 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7697 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7698 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7699 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7700 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7701 Add a temp variable to save a call (and a memory read).
7702 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7703 if possible (so that PC_IN_CALL_DUMMY will work).
7704
9bc1edb8
CV
77052002-05-22 Corinna Vinschen <vinschen@redhat.com>
7706
7707 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7708
005ef3d2
ML
77092002-05-22 Michal Ludvig <mludvig@suse.cz>
7710
7711 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7712 fde->cie_ptr.
7713 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7714 (dwarf2_build_frame_info): Add offset to fde->initial_location
7715 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
7716 (execute_stack_op): Change type of 'result' from ULONGEST to
7717 CORE_ADDR.
005ef3d2 7718
fcf4f891
JT
77192002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7720
7721 * config/alpha/tm-nbsd.h: Include solib.h.
7722
cfef91e4
JT
77232002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7724
7725 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7726 assumptions about the host's byte order.
7727
9964235a
JT
77282002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7729
7730 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7731 to dependency list.
7732 * alphanbsd-tdep.c: Include solib-svr4.h.
7733 * shnbsd-tdep.c: Ditto.
7734
9eeef8ef
JT
77352002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7736
7737 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7738 nbsd-tdep.h to dependency list.
7739 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7740 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7741 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7742 nbsdaout.mh and nbsdelf.mh consistently.
7743 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7744 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7745 nbsdaout.mt and nbsdelf.mh consistently.
7746 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7747 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7748 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7749 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7750 a.out shared library stuff from here...
7751 * config/nm-nbsdaout.h: ...to here.
7752 * config/tm-nbsd.h: Remove.
7753 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7754 * config/arm/nbsd.mh: Remove.
7755 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7756 nbsd-tdep.o.
7757 * config/arm/nbsdaout.mh: New file.
7758 * config/arm/nbsdelf.mh: New file.
7759 * config/arm/nm-nbsdaout.h: New file.
7760 * config/i386/nbsd.mh: Remove.
7761 * config/i386/nbsd.mt: Remove.
7762 * config/i386/nbsdaout.mh: New file.
7763 * config/i386/nbsdaout.mt: New file.
7764 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7765 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7766 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7767 i386_register_u_addr): Remove.
7768 * config/i386/nm-nbsdaout.h: New file.
7769 * config/i386/nm-nbsdelf.h: Remove.
7770 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7771 (USE_STRUCT_CONVENTION): Remove.
7772 * config/i386/tm-nbsdaout.h: New file.
7773 * config/i386/tm-nbsdelf.h: Remove.
7774 * config/m68k/nbsd.mh: Remove.
7775 * config/m68k/nbsd.mt: Remove.
7776 * config/m68k/nbsdaout.mh: New file.
7777 * config/m68k/nbsdaout.mt: New file.
7778 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7779 * config/m68k/nm-nbsdaout.h: New file.
7780 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7781 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7782 * config/ns32k/nbsd.mh: Remove.
7783 * config/ns32k/nbsd.mt: Remove.
7784 * config/ns32k/nbsdaout.mh: New file.
7785 * config/ns32k/nbsdaout.mt: New file.
7786 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7787 * config/ns32k/nm-nbsdaout.h: New file.
7788 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7789 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7790 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7791 (SVR4_SHARED_LIBS): Remove.
7792 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7793 * config/sparc/nbsd.mh: Remove.
7794 * config/sparc/nbsd.mt: Remove.
7795 * config/sparc/nbsdaout.mh: New file.
7796 * config/sparc/nbsdaout.mt: New file.
7797 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7798 * config/sparc/nbsdelf.mt: New file.
7799 * config/sparc/nm-nbsdaout.h: New file.
7800 * config/sparc/nm-nbsdelf.h: Remove.
7801 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7802 * config/sparc/tm-nbsdaout.h: New file.
7803
257ce470
JT
78042002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7805
7806 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7807 mipsnbsd-tdep.c
7808 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7809
76a6d5fe
JT
78102002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7811
7812 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7813 shnbsd-nat.c.
7814 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7815
45888261
JT
78162002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7817
7818 * NEWS: Note new MIPS NetBSD native configuration.
7819 * configure.host (mips*-*-netbsd*): New host.
7820 * configure.tgt (mips*-*-netbsd*): New target.
7821 * mipsnbsd-nat.c: New file.
7822 * mipsnbsd-tdep.c: New file.
7823 * mipsnbsd-tdep.h: New file.
7824 * config/mips/nbsd.mh: New file.
7825 * config/mips/nbsd.mt: New file.
7826 * config/mips/nm-nbsd.h: New file.
7827 * config/mips/tm-nbsd.h: New file.
7828
70f80edf
JT
78292002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7830
7831 * Makefile.in (SFILES): Add osabi.c.
7832 (COMMON_OBS): Add osabi.o.
7833 (osabi.o): New dependency list.
7834 * osabi.c: New file.
7835 * osabi.h: New file.
7836 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7837
7838 * Makefile.in (alpha_tdep_h): Define and use instead of
7839 alpha-tdep.h.
7840 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7841 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7842 Remove.
7843 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7844 * alpha-tdep.h: Include osabi.h.
7845 (alpha_abi): Remove.
7846 (gdbarch_tdep): Use generic OS ABI framework.
7847 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7848 gdbarch_register_osabi.
7849 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7850 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7851 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7852
7853 * Makefile.in (sh_tdep_h): Add osabi.h.
7854 * sh-tdep.h (sh_osabi): Remove.
7855 (gdbarch_tdep): Use generic OS ABI framework.
7856 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7857 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7858 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7859 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7860
7861 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7862 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7863 gdbarch_register_osabi.
7864 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7865 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7866 (get_elfosabi): Rename to...
7867 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7868 ABI framework support routines.
7869 (arm_gdbarch_init): Use generic OS ABI framework.
7870 (arm_dump_tdep): Likewise.
7871 (_initialize_arm_tdep): Likewise.
7872 * arm-tdep.h: Include osabi.h.
7873 (arm_abi): Remove.
7874 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7875 osabi member.
7876 (arm_gdbarch_register_os_abi): Remove prototype.
7877 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7878 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7879
7880 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7881 * mips-tdep.c: Include osabi.h.
7882 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7883 OS ABI framework.
7884
d194345b
KH
78852002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7886
7887 * h8300-tdep.c: Fix formatting.
7888
70c6b0d1
EZ
78892002-05-20 Elena Zannoni <ezannoni@redhat.com>
7890
7891 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7892 printing vector registers.
7893
165b8e33
AC
78942002-05-19 Andrew Cagney <ac131313@redhat.com>
7895
7896 From Fernando Nasser:
7897 * remote.c (remote_async_open_1): Re-throw the exception when the
7898 connection fails.
7899 (remote_cisco_open): Ditto.
7900 (remote_open_1): Ditto.
7901
36918e70
AC
79022002-05-19 Andrew Cagney <ac131313@redhat.com>
7903
7904 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7905 (remote_start_remote): Add uiout parameter. Pass through to
7906 remote_start_remote_dummy.
7907 (remote_open_1): Use catch_exception instead of catch_errors.
7908 (remote_async_open_1): Ditto.
7909 (remote_cisco_open): Ditto.
7910
ae44c0c4
AC
79112002-05-19 Andrew Cagney <ac131313@redhat.com>
7912
7913 * remote.c (remote_start_remote): Replace PTR with void pointer.
7914 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7915 static.
7916
8efe637d
AC
79172002-05-18 Andrew Cagney <ac131313@redhat.com>
7918
7919 * gdb_indent.sh: Allow the script to be run in the sim directory.
7920
2f1b5984
MK
79212002-05-18 Mark Kettenis <kettenis@gnu.org>
7922
f0f625e2
MK
7923 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7924 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7925
2f1b5984
MK
7926 * corelow.c (core_open): Only call set_gdbarch_from_file if
7927 exec_bfd is NULL.
7928
fc974602
AV
79292002-05-17 Andrey Volkov <avolkov@transas.com>
7930
7931 * h8300-tdep.c: Add support of EXR register
7932 * config/h8300/tm-h8300.h: Ditto.
7933
906709f4
AV
79342002-05-17 Andrey Volkov <avolkov@transas.com>
7935
7936 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7937
6e591d68
AV
79382002-05-17 Andrey Volkov <avolkov@transas.com>
7939
7940 * h8300-tdep.c: Change literal regnums to REGNO.
7941
84f0252a
JB
79422002-05-17 Jim Blandy <jimb@redhat.com>
7943
e0e9281e
JB
7944 * NEWS: Note addition of macro support.
7945
84f0252a
JB
7946 Expand preprocessor macros in C expressions.
7947 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7948 (scan_macro_expansion, scanning_macro_expansion,
7949 finished_macro_expansion): New function declarations.
7950 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7951 variable declarations.
7952 * parser-defs.h (expression_context_pc): New declaration.
7953 * parse.c (expression_context_pc): New variable.
7954 (parse_exp_1): Set expression_context_pc, as well as
7955 expression_context_block.
7956 * c-exp.y (yylex): If we're not already reading the result of a
7957 macro expansion, try to macro-expand the next token. When we're
7958 done scanning a macro expansion, switch back to the mainline text.
7959 Commas and `if's in a macro's expansion don't terminate the input.
7960 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7961 (macro_original_text, macro_expanded_text,
7962 expression_macro_lookup_func, expression_macro_lookup_baton): New
7963 variables.
7964 (scan_macro_expansion, scanning_macro_expansion,
7965 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7966 c_preprocess_and_parse): New functions.
7967 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7968 c_preprocess_and_parse, instead of c_parse.
7969 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7970 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7971
1c509ca8
JR
7972Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7973
7974 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7975 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7976 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7977
2250ee0c
CV
79782002-05-17 Corinna Vinschen <vinschen@redhat.com>
7979
7980 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7981
ab3b8126
JT
79822002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7983
7984 * Makefile.in (sh_tdep_h): Define and use.
7985 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7986 register enum): Move to...
7987 * * sh-tdep.h: ...here.
7988 * sh-tdep.c: Include sh-tdep.h.
7989 * sh3-rom.c: Likewise.
7990 * shnbsd-tdep.c: Likewise.
7991
ed9d4749
MS
79922002-05-16 Michael Snyder <msnyder@redhat.com>
7993
7994 * arm-tdep.c: Spelling fix in comment.
7995
2e276125
JB
79962002-05-16 Jim Blandy <jimb@redhat.com>
7997
6821892e
JB
7998 Add commands for manually expanding macros and showing their
7999 definitions.
8000 * macrocmd.c, macroscope.c, macroscope.h: New files.
8001 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8002 (macroscope_h): New variable.
8003 (HFILES_NO_SRCDIR): Add macroscope.h.
8004 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8005 (macroscope.o, macrocmd.o): New rules.
8006
2e276125
JB
8007 Teach the Dwarf 2 reader to read macro information.
8008 * dwarf2read.c: #include "macrotab.h".
8009 (dwarf_macinfo_buffer): New variable.
8010 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8011 dwarf_macinfo_size.
8012 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8013 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8014 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8015 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8016 dwarf2_macro_spaces_in_definition): New complaints.
8017 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8018 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8019 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8020 the partial symbol table.
8021 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8022 from what's recorded in the partial symbol table.
8023 (read_file_scope): If the compilation unit has a
8024 `DW_AT_macro_info' attribute, read its macro information.
8025 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8026
2f53fe6c
DJ
80272002-05-16 Daniel Jacobowitz <drow@mvista.com>
8028
8029 Fix PR gdb/546
8030 * ser-tcp.c: Don't include <netinet/udp.h>.
8031
2be99286
SC
80322002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8033
8034 * MAINTAINERS: Update my email address.
8035
c9af212b 80362002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
8037
8038 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8039 include file of the same name.
8040
bf5f1a52
CV
80412002-05-16 Corinna Vinschen <vinschen@redhat.com>
8042
8043 * configure.tgt: Mark v850 as multi-arched.
8044 * config/v850/tm-v850.h: Remove file.
8045 * config/v850/v850.mt: Eliminate TM_FILE.
8046
435e042a
CV
80472002-05-16 Corinna Vinschen <vinschen@redhat.com>
8048
8049 * v850-tdep.c: Full multi-arch.
8050 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8051 Define GDB_MULTI_ARCH to 2.
8052
9819c6c8
PM
80532002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8054
8055 * p-exp.y (current_type): New static variable.
8056 Carries the type of the expression at the position that is parsed.
8057 (push_current_type, pop_current_type): Two new functions. Used
8058 to store/restore current_type in expression on specific tokens.
c9af212b
RE
8059 (search_field): New static variable. Set to one after parsing a point
8060 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
8061 (FIELDNAME): New token. After a point only a token belonging to
8062 current_type type definition is allowed.
8063 (all over token rules): reset and change current_type according
8064 to rules.
8065 (exp '[' rule): insert implicit array index field if
8066 exp is a pascal string type.
8067
3a06899a
CV
80682002-05-16 Corinna Vinschen <vinschen@redhat.com>
8069
8070 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8071 frame info. Use frame_info's saved_regs instead of matching member
8072 in extra_frame_info throughout.
8073 (v850_frame_init_saved_regs): New function.
8074 (v850_init_extra_frame_info): Move most functionality into
8075 v850_frame_init_saved_regs().
8076 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8077 (v850_frame_find_saved_regs): Remove declaration.
8078 (FRAME_FIND_SAVED_REGS): Remove definition.
8079 (v850_frame_init_saved_regs): Add declaration.
8080 (FRAME_INIT_SAVED_REGS): Add definition.
8081
6ed14b0e
CV
80822002-05-16 Corinna Vinschen <vinschen@redhat.com>
8083
8084 * v850-tdep.c: Begin multi-arch'ing v850.
8085 (v850_target_architecture_hook): Remove function.
8086 (v850_gdbarch_init): New function. Add code previously in
8087 v850_target_architecture_hook().
8088 (_initialize_v850_tdep): Don't set target_architecture_hook.
8089 Call register_gdbarch_init() instead.
8090
42725910
DJ
80912002-05-16 Daniel Jacobowitz <drow@mvista.com>
8092
8093 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8094 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8095 (fixup_class_method_type): Likewise.
8096
99d9066e
JB
80972002-05-15 Jim Blandy <jimb@redhat.com>
8098
8099 Add macro structures to GDB's symbol tables. Nobody puts anything
8100 in them yet.
8101 * symtab.h (struct symtab): New member: `macro_table'.
8102 * buildsym.h (pending_macros): New global variable.
8103 * buildsym.c: #include "macrotab.h".
8104 (buildsym_init): Initialize `pending_macros'.
8105 (end_symtab): If we found macro information while reading a CU's
8106 debugging info, do build a symtab structure for it. Make the
8107 symtab point to the macro information, and clear the
8108 `pending_macros' pointer which held it while we were reading the
8109 debug info.
8110 (really_free_pendings): Free any pending macro table.
8111 * objfiles.h (struct objfile): New member: `macro_cache'.
8112 * objfiles.c (allocate_objfile): Set allocate and free functions
8113 for the macro cache's objstack.
8114 (free_objfile): Empty the macro cache's obstack.
8115 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8116 set new allocate and free functions for it.
8117 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8118 free functions for the macro cache's objstack. (Why is this
8119 function building its own objfile?)
8120 * symmisc.c (print_objfile_statistics): Print statistics on the
8121 macro bcache.
8122 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8123
c899585b
RE
81242002-05-15 Richard Earnshaw <rearnsha@arm.com>
8125
8126 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8127 (REGISTER_U_ADDR): Delete definition.
8128 (arm_register_u_addr): Delete declaration.
8129
a6cdd8c5
RE
81302002-05-15 Richard Earnshaw <rearnsha@arm.com>
8131
8132 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8133 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8134
c97dcfc7
AC
81352002-05-14 Andrew Cagney <ac131313@redhat.com>
8136
8137 * regcache.c (register_valid): Revise comments refering to "Not
8138 available" and "unavailable".
8139 * frame.c (frame_register_read): Ditto.
8140 * findvar.c (value_of_register): Ditto.
8141
93021b7d
AC
81422002-05-15 Andrew Cagney <cagney@redhat.com>
8143
8144 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8145 (remote-sim.o): Update dependencies.
8146 (d10v-tdep.o): Specify dependencies.
8147 (sim_d10v_h): Define.
8148
a86bc61c
JB
81492002-05-14 Jim Blandy <jimb@redhat.com>
8150
8151 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8152 * macrotab.c (macro_lookup_inclusion, find_definition,
8153 new_macro_table): Same.
8154
8155 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8156 not `! strcmp ()'. This is a dubious improvement.
8157 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8158
8159 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8160 although it's not necessary, to avoid a warning.
8161
2fdde8f8
DJ
81622002-05-14 Daniel Jacobowitz <drow@mvista.com>
8163
8164 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8165 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8166 TYPE_INSTANCE_FLAGS.
8167 (struct main_type): New.
8168 (struct type): Move most members to struct main_type. Change
8169 cv_type and as_type to new type_chain member. Add instance_flags.
8170 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8171 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8172 (finish_cv_type): Remove prototype.
8173 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8174 Set TYPE_CHAIN.
8175 (alloc_type_instance): New function.
8176 (smash_type): New function.
8177 (make_pointer_type, make_reference_type, make_function_type)
8178 (smash_to_member_type, smash_to_method_type): Call smash_type.
8179 (make_qualified_type): New function.
8180 (make_type_with_address_space): Call make_qualified_type.
8181 (make_cv_type): Likewise.
8182 (finish_cv_type): Remove unnecessary function.
8183 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8184 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8185 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8186 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8187 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8188 * hpread.c (hpread_read_struct_type): Likewise.
8189 * stabsread.c (read_struct_type): Likewise.
8190
843fedf4
EZ
81912002-05-14 Elena Zannoni <ezannoni@redhat.com>
8192
8193 * configure.tgt: Add a catch all sh* target, for cases like
8194 sh[2,3,4]-elf and sh-hms.
8195
05a6c72c
KS
81962002-05-14 Keith Seitz <keiths@redhat.com>
8197
8198 * event-loop.c (create_file_handler): Don't do anything but
8199 update data when we are given a fd which we are already
8200 monitoring.
8201
5d085aaf
ML
82022002-05-14 Michal Ludvig <mludvig@suse.cz>
8203
8204 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8205 (update_context): Use __func__ in warnings.
8206
9db8d71f
DJ
82072002-05-14 Daniel Jacobowitz <drow@mvista.com>
8208
8209 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8210 and tcp_close to net_open and net_close.
8211 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8212 using UDP if requested. Don't try to disable Nagle on UDP
8213 sockets.
8214 * remote.c (remote_serial_open): New function. Warn about UDP.
8215 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8216
5dbc6baa
EZ
82172002-05-13 Elena Zannoni <ezannoni@redhat.com>
8218
8219 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8220
cc3023f7
EZ
82212002-05-13 Elena Zannoni <ezannoni@redhat.com>
8222
8223 * configure.tgt: Remove sh-hms target.
8224 * MAINTAINERS: Don't list sh-hms as a separate target.
8225
ec2bcbe7
JB
82262002-05-13 Jim Blandy <jimb@redhat.com>
8227
8228 Add first preprocessor macro-expansion files.
8229 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8230 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8231 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8232 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8233 (COMMON_OBS): Add macrotab.o, macroexp.o.
8234 (macroexp.o, macrotab.o): New rules.
8235
6d531722
AC
82362002-05-13 Andrew Cagney <ac131313@redhat.com>
8237
8238 * config/m88k/tm-m88k.h: Update copyright.
8239 (m88k_target_write_pc): Declare
8240 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8241 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8242 (SHIFT_INST_REGS): Update definition.
8243 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8244 using old definition of TARGET_WRITE_PC.
8245 * regcache.c (generic_target_write_pc): Delete code handling
8246 NNPC_REGNUM.
8247 * gdbarch.sh (NNPC_REGNUM): Delete.
8248 * gdbarch.h, gdbarch.c: Regenerate.
8249
3e3f2739
RE
82502002-05-13 Richard Earnshaw <rearnsha@arm.com>
8251
8252 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8253 builtin reg number.
8254
0004e5a2
DJ
82552002-05-13 Daniel Jacobowitz <drow@mvista.com>
8256
8257 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8258 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8259 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8260 access macros.
8261 * c-typeprint.c (cp_type_print_method_args): Likewise.
8262 (c_type_print_args): Likewise.
8263 * d10v-tdep.c (d10v_push_arguments): Likewise.
8264 (d10v_extract_return_value): Likewise.
8265 * expprint.c (print_subexp): Likewise.
8266 * gdbtypes.c (lookup_primitive_typename): Likewise.
8267 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8268 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8269 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8270 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8271 (TYPE_VECTOR): Likewise.
8272 * hpread.c (hpread_read_struct_type)
8273 (fix_static_member_physnames, fixup_class_method_type)
8274 (hpread_type_lookup): Likewise.
8275 * mdebugread.c (parse_symbol, parse_type): Likewise.
8276 * p-lang.c (is_pascal_string_type): Likewise.
8277 * valops.c (hand_function_call): Likewise.
8278 * x86-64-tdep.c (classify_argument): Likewise.
8279
8280 * hpread.c (hpread_read_function_type)
8281 (hpread_read_doc_function_type): Call replace_type.
8282 * dstread.c (create_new_type): Delete.
8283 (decode_dst_structure, process_dst_function): Call alloc_type.
8284 Use type access macros.
8285
dff95cc7
MK
82862002-05-12 Mark Kettenis <kettenis@gnu.org>
8287
8288 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8289 the're not supported by the current architecture.
8290 (i387_fill_fxsave): Likewise.
8291
bbcd32ad
FF
82922002-05-12 Fred Fish <fnf@redhat.com>
8293
8294 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8295 sect_index_xxx members to index the first slot in section_offsets
8296 if all of the section_offsets are zero.
8297
89cf4787
MK
82982002-05-12 Mark Kettenis <kettenis@gnu.org>
8299
8300 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8301 checked in with last change.
8302
1f77ffc5
MK
83032002-05-12 Mark Kettenis <kettenis@gnu.org>
8304
8305 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8306 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8307 config.sub.
8308
89b8b4a9
DJ
83092002-05-12 Daniel Jacobowitz <drow@mvista.com>
8310
8311 * Makefile.in: Update dependencies.
8312
14a5e767
AC
83132002-05-11 Andrew Cagney <ac131313@redhat.com>
8314
8315 * language.c (local_hex_string_custom): Simplify. Do not depend
8316 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8317
8318 * memattr.c (mem_info_command): Replace calls to
8319 longest_local_hex_string and longest_local_hex_string_custom.
8320 * buildsym.c (make_blockvector): Ditto.
8321 * solib.c (info_sharedlibrary_command): Ditto.
8322 * tracepoint.c (tracepoints_info): Ditto.
8323 * symtab.c (print_msymbol_info): Ditto.
8324
8325 * language.c (local_hex_string): Delete.
8326 (local_hex_string_custom): Delete.
8327 (longest_local_hex_string): Rename to local_hex_string.
8328 (longest_local_hex_string_custom): Rename to
8329 local_hex_string_custom.
8330 * language.h (local_hex_string): Change parameter type to LONGEST.
8331 (local_hex_string_custom): Ditto.
8332 (longest_local_hex_string): Delete declaration.
8333 (longest_local_hex_string_custom): Ditto.
8334
8335 * solib.c: Update copyright.
8336 * memattr.c: Update copyright.
8337
13d01224
AC
83382002-05-11 Andrew Cagney <ac131313@redhat.com>
8339
8340 * arch-utils.h (legacy_register_to_value): Declare.
8341 (legacy_value_to_register): Declare.
8342 (legacy_convert_register_p): Declare.
8343 * arch-utils.c (legacy_register_to_value): New function.
8344 (legacy_value_to_register): New function.
8345 (legacy_convert_register_p): New function.
8346
8347 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8348 (VALUE_TO_REGISTER): Define.
8349 (CONVERT_REGISTER_P): Define.
8350 * gdbarch.h, gdbarch.c: Regenerate.
8351
8352 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8353 VALUE_TO_REGISTER.
8354 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8355 CONVERT_REGISTER_P.
8356
4a1970e4
DJ
83572005-05-11 Daniel Jacobowitz <drow@mvista.com>
8358 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8359
8360 * Makefile.in: Update dependencies for valops.c.
8361 * valops.c: Include "gdb_assert.h".
8362 (typecmp): Skip THIS parameter to methods.
8363 (find_method_list): Remove static_memfuncp argument,
8364 update callers. Check for stub methods.
8365 (find_value_oload_method_list): Don't set *static_memfuncp.
8366 (find_overload_match): Don't check for stub methods. Assert
8367 that methods are not stubbed. Handle static methods.
8368 (value_find_oload_method_list): Remove static_memfuncp argument.
8369 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8370 to the argument list for static stub methods.
8371 * value.h (value_find_oload_method_list): Update prototype.
8372
b2e75d78
AC
83732002-05-11 Andrew Cagney <ac131313@redhat.com>
8374
8375 * arch-utils.h (generic_register_size): Declare.
8376 (generic_register_raw_size, generic_register_virtual_size): Delete
8377 declarations.
8378 * arch-utils.c (generic_register_raw_size): Delete.
8379 (generic_register_size): New function.
8380 (generic_register_virtual_size): Delete.
8381
8382 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8383 default generic_register_size.
8384 * gdbarch.h, gdbarch.c: Re-generate.
8385
8386 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8387 register_virtual_size.
8388 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8389 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8390
451fbdda
AC
83912002-05-11 Andrew Cagney <ac131313@redhat.com>
8392
8393 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8394 * gdbarch.h, gdbarch.c: Regenerate.
8395 * gnu-v3-abi.c: Update copyright.
8396 (vtable_address_point_offset): Update.
8397 (gnuv3_rtti_type): Update.
8398 (gnuv3_baseclass_offset): Update.
8399 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8400 (init_fetch_link_map_offsets): Update.
8401 * remote.c (get_remote_state): Update.
8402
6d2f5cea
DJ
84032002-05-11 Daniel Jacobowitz <drow@mvista.com>
8404
8405 * TODO: Remove value_headof/value_from_vtable_info comment.
8406 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8407 * values.c (value_headof, value_from_vtable_info): Delete.
8408 * value.h (value_from_vtable_info): Delete prototype.
8409
d2324da4
AC
84102002-05-11 Andrew Cagney <ac131313@redhat.com>
8411
8412 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8413 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8414 $(gdb_regex_h).
8415 (gdb_assert_h): Define.
8416 (gdb_wait_h): Define.
8417 (gdb_regex_h): Define.
8418
5c717440
DJ
84192002-05-11 Daniel Jacobowitz <drow@mvista.com>
8420
8421 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8422 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8423
6c7861b3
JT
84242002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8425
8426 * nbsd-tdep.c: Fix comment.
8427
ea5bc2a6
JT
84282002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8429
8430 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8431 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8432 (nbsd-tdep.o): New dependency list.
8433 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8434 nbsd-tdep.h.
8435 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8436 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8437 * nbsd-tdep.c: New file.
8438 * nbsd-tdep.h: New file.
8439 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8440 nbsd-tdep.h.
8441 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8442 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8443 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8444 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8445
b28da865
JT
84462002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8447
8448 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8449 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8450 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8451 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8452 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8453 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8454
4b8ff1fa
JT
84552002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8456
8457 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8458 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8459 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8460 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8461 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8462 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8463 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8464
dfe6eb1f
JT
84652002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8466
8467 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8468 fetch_elfcore_registers to...
8469 * i386nbsd-tdep.c: ...here.
8470 (i386nbsd_use_struct_convention): Rename to...
8471 (i386nbsd_aout_use_struct_convention): ...this.
8472 (i386nbsd_supply_reg): New function.
8473 (i386nbsd_fill_reg): New function.
8474 (fetch_core_registers): Use i386nbsd_supply_reg.
8475 (fetch_elfcore_registers): Likewise.
8476 (_initialize_i386nbsd_tdep): New function.
8477 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8478 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8479 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8480 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8481 (i386nbsd_aout_use_struct_convention): ...this.
8482
20cb8cda
JT
84832002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8484
8485 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8486 (store_inferior_registers): Use shnbsd_fill_reg.
8487 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8488 sh_nbsd_supply_register): Collapse into...
8489 (shnbsd_supply_reg): ...this.
8490 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8491 (shnbsd_fill_reg): ...this.
8492 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8493 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8494 (fetch_core_registers): Use shnbsd_supply_reg.
8495 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8496 (sh_nbsd_core_fns): Rename to...
8497 (shnbsd_core_fns): ...this.
8498 (sh_nbsd_elfcore_fns): Rename to...
8499 (shnbsd_elfcore_fns): ...this.
8500 (sh_nbsd_init_abi): Rename to...
8501 (shnbsd_init_abi): ...this.
8502 (_initialize_sh_nbsd_tdep): Rename to...
8503 (_initialize_shnbsd_tdep): ...this.
8504 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8505 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8506 sh_nbsd_fill_register): Remove prototypes.
8507 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8508
e750d25e
JT
85092002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8510
8511 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8512 (i387-nat.o): Delete dependency list.
8513 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8514 (x86-64-linux-nat.o): Likewise.
8515 * i387-nat.c: Delete file, moving contents to...
8516 * i387-tdep.c: ...here.
8517 * i387-nat.h: Rename...
8518 * i387-tdep.h: ...to this.
8519 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8520 * i386-linux-nat.c: Likewise.
8521 * i386bsd-nat.c: Likewise.
8522 * i386gnu-nat.c: Likewise.
8523 * i386nbsd-nat.c: Likewise.
8524 * i386v4-nat.c: Likewise.
8525 * x86-64-linux-nat.c: Likewise.
8526 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8527 * config/i386/go32.mh (NATDEPFILES): Likewise.
8528 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8529 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8530 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8531 * config/i386/linux.mh (NATDEPFILES): Likewise.
8532 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8533 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8534 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8535 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8536
1aee598a
JT
85372002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8538
8539 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8540 (alphanbsd-nat.o): Remove dependency list.
8541 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8542 * alphanbsd-nat.c: Delete. Contents moved to...
8543 * alphanbsd-tdep.c: ...here.
8544 (_initialize_alphanbsd_tdep): Register core functions.
8545 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8546
12bcb0fe
JT
85472002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8548
8549 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8550 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8551 (alphanbsd-nat.o): Likewise.
8552 (alphabsd-tdep.o): New dependency list.
8553 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8554 (fill_gregset): Use alphabsd_fill_reg.
8555 (supply_fpregset): Use alphabsd_supply_fpreg.
8556 (fill_fpregset): Use alphabsd_fill_fpreg.
8557 (fetch_inferior_registers): Use struct reg and struct fpreg
8558 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8559 and alphabsd_supply_fpreg.
8560 (store_inferior_registers): Use struct reg and struct fpreg
8561 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8562 and alphabsd_fill_fpreg.
8563 * alphabsd-tdep.c: New file.
8564 * alphabsd-tdep.h: New file.
8565 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8566 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8567 alphabsd_supply_fpreg.
8568 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8569 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8570
361d1df0
EC
85712002-05-11 Eric Christopher <echristo@redhat.com>
8572
8573 * mips-tdep.c (mips_double_register_type): Fix thinko.
8574 (mips_single_register_type): Ditto.
8575 * MAINTAINERS: Add self.
8576
92dd7cee
MK
85772002-05-11 Mark Kettenis <kettenis@gnu.org>
8578
8579 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8580 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8581 right thing on architectures with different endianness and/or
8582 integer sizes.
8583
e27da16d
JT
85842002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8585
8586 From Christian Limpach <chris@Pin.LU>
8587 * configure.in: Change sed expression which comments out
8588 NATDEPFILES to also comment out continuation lines.
8589 * configure: Regenerate.
8590
ddde02bd
EZ
85912002-05-10 Elena Zannoni <ezannoni@redhat.com>
8592
8593 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8594 big patch.
8595
1c922164
EZ
85962002-05-10 Elena Zannoni <ezannoni@redhat.com>
8597
8598 * sh-tdep.c: Include correct file.
8599
283150cd
EZ
86002002-05-10 Elena Zannoni <ezannoni@redhat.com>
8601
8602 New support for sh64-elf (sh5) target.
8603
8604 * configure.tgt: For sh64-elf target, default to sh-elf.
8605
8606 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8607 (struct gdbarch_tdep): Add new fields for new registers and ABI
8608 info.
361d1df0 8609
283150cd
EZ
8610 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8611 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8612 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8613 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8614 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8615 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8616 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8617 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8618 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8619 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8620 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8621 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8622 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8623 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8624 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8625 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8626 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8627 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8628 sign_extend, sh64_nofp_frame_init_saved_regs,
8629 sh64_init_extra_frame_info, sh64_get_saved_register,
8630 sh64_extract_struct_value_address, sh64_pop_frame,
8631 sh64_push_arguments, sh64_extract_return_value,
8632 sh64_store_return_value, sh64_show_media_regs,
8633 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8634 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8635 sh_sh64_register_virtual_type,
8636 sh_sh64_register_convert_to_virtual,
8637 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8638 sh64_register_read, sh64_pseudo_register_write,
8639 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8640 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8641 sh64_do_pseudo_register, sh_compact_do_registers_info,
8642 sh64_do_registers_info, sh_gdbarch_init): New functions.
8643
3117ed25
EZ
86442002-05-10 Elena Zannoni <ezannoni@redhat.com>
8645
8646 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8647
2654e6d4
DJ
86482002-05-10 Daniel Jacobowitz <drow@mvista.com>
8649
8650 * linespec.c (decode_line_1): Check for a double quote after
8651 a filename correctly.
8652
9ab3e532
JB
86532002-05-10 Jim Blandy <jimb@redhat.com>
8654
8655 Properly track the size of the current objfile's .debug_line section.
8656 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8657 (DWARF_LINE_SIZE): New macro.
8658 (dwarf2_build_psymtabs_hard): Record the line section's size in
8659 the partial symbol table.
8660 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8661 symbol table.
8662
126fa72d
PS
86632002-05-10 Petr Sorfa <petrs@caldera.com>
8664
8665 * ia64-tdep.c: Handle breakpoints on L instruction type
8666 in MLX instruction bundle by moving the breakpoint to
8667 the third slot (X instruction type) as L holds only data.
8668
1f077a3e
KB
86692002-05-10 Kevin Buettner <kevinb@redhat.com>
8670
8671 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8672 (process_one_symbol): Complain about discarding local symbols
8673 due to a misplaced N_LBRAC entry.
8674
8120c9d5 86752002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
8676
8677 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
8678 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8679 decrease the depth we are at, in the case of templates.
361d1df0 8680
67b2c998
DJ
86812002-05-09 Daniel Jacobowitz <drow@mvista.com>
8682
8683 * mips-tdep.c (mips_float_register_type): New function.
8684 (mips_double_register_type): New function.
8685 (mips_print_register): Use them.
8686 (do_fp_register_row): Likewise.
8687
fd326606
DJ
86882002-05-09 Daniel Jacobowitz <drow@mvista.com>
8689
6609d9af 8690 * signals/signals.c (signals): Remove conditional compilation around
fd326606 8691 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 8692 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 8693
bef35864
MS
86942002-05-09 Michael Snyder <msnyder@redhat.com>
8695
8696 * remote-rdp.c (remote_rdp_can_run): Remove.
8697
c55a3f73
TT
86982002-05-09 Tom Tromey <tromey@redhat.com>
8699
8700 * jv-valprint.c (java_val_print): Handle `char' as a special case
8701 of TYPE_CODE_INT.
8702
b8d5e71d
MS
87032002-05-09 Michael Snyder <msnyder@redhat.com>
8704
8705 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8706 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 8707 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 8708 str r(0123),[sp,#nn].
361d1df0 8709 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
8710 order-independent by placing it in a loop.
8711
e2cd42dd
MS
87122002-05-06 Michael Snyder <msnyder@redhat.com>
8713
8714 * stabsread.c (read_type): Add recognition for new attribute:
8715 "@V;" means that an array type is actually a vector.
8716 This is analogous to the vector flag that's been added to dwarf2.
8717
3ce1502b
MK
87182002-05-09 Mark Kettenis <kettenis@gnu.org>
8719
8720 * i386-tdep.h (i386_abi): New enum.
8721 (struct gdbarch_tdep): Replace os_ident member with abi.
8722 (i386_gdbarch_register_os_abi): New prototype.
8723 * i386-tdep.c (i386_abi_names): New array.
8724 (process_note_abi_tag_sections): Removed.
8725 (process_note_sections): New function.
8726 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8727 (struct i386_abi_handler): New struct.
8728 (i386_abi_handler_list): New variable.
8729 (i386_gdbarch_register_os_abi): New function.
8730 (i386_gdbarch_init): Adapt for the changes given above.
8731
084c156a
DJ
87322002-05-08 Daniel Jacobowitz <drow@mvista.com>
8733
8734 * gregset.h: Say "GNU/Linux".
8735
6599f021
EZ
87362002-05-08 Elena Zannoni <ezannoni@redhat.com>
8737
8738 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8739 (build_gdbtypes): Build builtin_type_v2_float.
8740 (_initialize_gdbtypes): Register new builtin type.
8741
40af4b0c
AC
87422002-05-08 Andrew Cagney <ac131313@redhat.com>
8743
8744 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8745 (clear_gdbarch_swap): New function.
8746 (initialize_non_multiarch): Call.
8747 (gdbarch_update_p): Before calling init(), swap out and clear the
8748 existing architecture.
8749 * gdbarch.c: Regenerate.
8750
4fe84f46
JT
87512002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8752
8753 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8754 alphanbsd-tdep.c.
8755
4015edd1
JT
87562002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8757
8758 * sh-nbsd-nat.c: Rename to...
8759 * shnbsd-nat.c: ...this.
8760 * sh-nbsd-tdep.c: Rename to...
8761 * shnbsd-tdep.c: ...this.
8762 * sh-nbsd-tdep.h: Rename to...
8763 * shnbsd-tdep.h: ...this.
8764 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8765 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8766
0e2bd219
RE
87672002-05-08 Richard Earnshaw <rearnsha@arm.com>
8768
8769 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8770 concatenation for command help messages.
8771
13a38d45
JT
87722002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8773
8774 * NEWS: Note new sh*-*-netbsdelf* configuration.
8775 * configure.host: Set gdb_host_cpu to sh for all sh*.
8776 (sh*-*-netbsdelf*): New host.
8777 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8778 (sh*-*-netbsdelf*): New target.
8779 * sh-nbsd-nat.c: New file.
8780 * sh-nbsd-tdep.c: New file.
8781 * sh-nbsd-tdep.h: New file.
8782 * config/sh/nbsd.mh: New file.
8783 * config/sh/nbsd.mt: New file.
8784 * config/sh/nm-nbsd.h: New file.
8785 * config/sh/tm-nbsd.h: New file.
8786
d658f924
JT
87872002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8788
8789 * sh-tdep.c (sh_osabi_names): Declare.
8790 (process_note_abi_tag_sections): New function.
8791 (get_elfosabi): Ditto.
8792 (sh_gdbarch_register_os_abi): Ditto.
8793 (sh_dump_tdep): Ditto.
8794 _initialize_sh_tdep): Use gdbarch_register to register
8795 sh_gdbarch_init and sh_dump_tdep.
8796 * config/sh/tm-sh.h (sh_osabi): Declare.
8797 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8798
848cfffb
AC
87992002-05-07 Andrew Cagney <ac131313@redhat.com>
8800
8801 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8802 (thumb_scan_prologue): Ditto.
8803 (arm_find_callers_reg): Ditto.
8804 (arm_frame_chain): Ditto.
8805 (arm_init_extra_frame_info): Ditto.
8806 (arm_frame_saved_pc): Ditto.
8807 (arm_pop_frame): Ditto.
8808 (arm_push_return_address): New function.
8809 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8810 call_dummy_location, call_dummy_breakpoint_offset_p,
8811 call_dummy_breakpoint_offset, call_dummy_p,
8812 call_dummy_stack_adjust_p, call_dummy_words,
8813 sizeof_call_dummy_words, call_dummy_start_offset,
8814 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8815 call_dummy_address, push_return_address and push_dummy_frame for
8816 generic dummy frames.
8817
e7d717c0
JT
88182002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8819
8820 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8821 size computation for alloca.
8822 (sh_fp_frame_init_saved_regs): Likewise.
8823
7bbcf283
RE
88242002-05-07 Richard Earnshaw <rearnsha@arm.com>
8825
8826 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8827 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 8828 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
8829 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8830 * remote-rdp.c (remote_rdp_fetch_register): Use
8831 ARM_MAX_REGISTER_RAW_SIZE.
8832 (remote_rdp_store_register): Likewise.
8833
4657573b
ML
88342002-05-07 Michal Ludvig <mludvig@suse.cz>
8835
361d1df0 8836 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
8837 added default labels to switch {} statements.
8838 * x86-64-tdep.c: Ditto.
8839 * x86-64-linux-nat.c: Ditto.
8840
010f3b2f
JT
88412002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8842
8843 * solib.h: Protect against multiple inclusion.
8844
debd256d
JB
88452002-05-06 Jim Blandy <jimb@redhat.com>
8846
9ab3e532
JB
8847 Add first preprocessor macro-expansion files.
8848 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8849 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8850 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8851 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8852 (COMMON_OBS): Add macrotab.o, macroexp.o.
8853 (macroexp.o, macrotab.o): New rules.
8854
debd256d
JB
8855 Separate the job of reading the line number info statement program
8856 header (...expialidocious) out into its own function.
8857 * dwarf2read.c (struct line_head, struct filenames, struct
8858 directories): Replace with...
8859 (struct line_header): New structure, containing the full
8860 contents of the statement program header, including the
8861 include directory and file name tables.
8862 (read_file_scope): If we have line number info, instead of just
8863 calling dwarf_decode_lines to do all the work, call
8864 dwarf_decode_line_header first to get a `struct line_header'
8865 containing the data in the statement program header, and then
8866 pass that to dwarf_decode_lines, which will pick up where that
8867 left off. Be sure to clean up the `struct line_header' object.
8868 (dwarf_decode_line_header, free_line_header, add_include_dir,
8869 add_file_name): New functions.
8870 (dwarf_decode_lines): Move all the code to read the statement
8871 program header into dwarf_decode_line_header. Take the line
8872 header it built as the first argument, instead of the offset to
8873 the compilation unit's line number info. Use the new `struct
8874 line_header' type instead of the old structures. No need to do
8875 cleanups here now, since we don't allocate anything.
8876 (dwarf2_statement_list_fits_in_line_number_section,
8877 dwarf2_line_header_too_long): New complaints.
8878
ac3aafc7
EZ
88792002-05-06 Elena Zannoni <ezannoni@redhat.com>
8880
8881 * gdbtypes.c (init_vector_type): New function.
8882 (build_builtin_type_vec128): Simplify the representation of SIMD
8883 registers.
8884 (build_gdbtypes): Initialize new builtin vector types.
8885 (_initialize_gdbtypes): Register new vector types with gdbarch.
8886 (builtin_type_v4_float, builtin_type_v4_int32,
8887 builtin_type_v8_int16, builtin_type_v16_int8,
8888 builtin_type_v2_int32, builtin_type_v4_int16,
8889 builtin_type_v8_int8): New (renamed) SIMD types.
8890
13e49980
MK
88912002-05-06 Mark Kettenis <kettenis@gnu.org>
8892
8893 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8894 (i387_fill_fxsave): Likewise.
8895
997b20b8
AO
88962002-05-05 Alexandre Oliva <aoliva@redhat.com>
8897
8898 * alpha-tdep.c (alpha_extract_return_value): Don't use
8899 non-constant array size in prototype.
8900
535c96ce
AC
89012002-05-04 Andrew Cagney <ac131313@redhat.com>
8902
8903 From Brian Taylor <briant at model dot com>:
8904 * ui-out.c (ui_out_field_core_addr): Use the function
8905 longest_local_hex_string_custom'to format addresses > 32 bits
8906 wide.
8907
8908 * ui-out.c (ui_out_field_core_addr): Update comment.
8909
bedfa57b
AC
89102002-05-04 Andrew Cagney <ac131313@redhat.com>
8911
8912 * stack.c (select_and_print_frame): Make static. Delete the
8913 parameter `level'.
8914 (func_command): Update call.
8915 (select_frame_command): Delete code computing the frame level.
8916 * frame.h (select_and_print_frame): Delete declaration.
8917
f621c63e
AC
89182002-05-04 Andrew Cagney <ac131313@redhat.com>
8919
8920 * sparc-tdep.c (sparc_get_saved_register): Comment why
8921 get_prev_frame call is safe.
8922
0f7d239c
AC
89232002-05-04 Andrew Cagney <ac131313@redhat.com>
8924
8925 * frame.h (select_frame): Delete level parameter.
8926 * stack.c (select_frame): Update. Use frame_relative_level to
8927 obtain the frame's level.
8928 (select_and_print_frame): Update call.
8929 (select_frame_command): Ditto.
8930 (up_silently_base): Ditto.
8931 (down_silently_base): Ditto.
8932 * ocd.c (ocd_start_remote): Ditto.
8933 * remote-rdp.c (remote_rdp_open): Ditto.
8934 * remote-mips.c (mips_initialize): Ditto.
8935 (common_open): Ditto.
8936 * remote-e7000.c (e7000_start_remote): Ditto.
8937 * m3-nat.c (select_thread): Ditto.
8938 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8939 (child_get_current_exception_event): Ditto.
8940 * varobj.c (varobj_create): Ditto.
8941 (varobj_update): Ditto.
8942 (c_value_of_root): Ditto.
8943 * tracepoint.c (finish_tfind_command): Ditto.
8944 * corelow.c (core_open): Ditto.
8945 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8946 * thread.c (info_threads_command): Ditto.
8947 (switch_to_thread): Ditto.
8948 * infrun.c (normal_stop): Ditto.
8949 (restore_selected_frame): Ditto.
8950 (restore_inferior_status): Ditto.
8951 * breakpoint.c (insert_breakpoints): Ditto.
8952 (watchpoint_check): Ditto.
8953 (bpstat_stop_status): Ditto.
8954 (do_enable_breakpoint): Ditto.
8955 * blockframe.c (flush_cached_frames): Ditto.
8956 (reinit_frame_cache): Ditto.
8957
71d6c7b1
AC
89582002-05-04 Andrew Cagney <ac131313@redhat.com>
8959
8960 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8961 maintainer.
8962
cda6c68a
JB
89632002-05-04 Jim Blandy <jimb@redhat.com>
8964
8965 * gdbtypes.c (replace_type): Doc fix.
8966
5c1c87f0
AC
89672002-05-04 Andrew Cagney <ac131313@redhat.com>
8968
8969 * valprint.c (strcat_longest): Delete commented out function.
8970 Update copyright.
8971
cd9bfe15
AC
89722002-05-04 Andrew Cagney <ac131313@redhat.com>
8973
8974 * MAINTAINERS: Mark a29k as deleted.
8975 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8976 Move new configurations to the top.
8977 * configure.tgt: Remove a29k.
8978 * config/a29k/tm-vx29k.h: Delete.
8979 * config/a29k/vx29k.mt: Delete.
8980 * config/a29k/tm-a29k.h: Delete.
8981 * config/a29k/a29k-udi.mt: Delete.
8982 * config/a29k/a29k.mt: Delete.
8983 * a29k-tdep.c: Delete.
8984 * remote-udi.c: Delete.
8985 * remote-mm.c: Delete.
8986 * remote-eb.c: Delete.
8987 * remote-adapt.c: Delete.
8988 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
8989 * config/s390/s390x.mt: Ditto.
8990 * config/s390/s390.mt: Ditto.
8991 * config/sparc/sparclynx.mh: Ditto.
8992 * config/sparc/linux.mh: Ditto.
8993 * config/pa/hppaosf.mh: Ditto.
8994 * config/pa/hppabsd.mh: Ditto.
8995 * config/ns32k/nbsd.mt: Ditto.
8996 * config/mips/vr5000.mt: Ditto.
8997 * config/m68k/sun3os4.mh: Ditto.
8998 * config/m68k/nbsd.mt: Ditto.
8999 * config/m68k/m68klynx.mh: Ditto.
9000 * config/m32r/m32r.mt: Ditto.
9001 * config/i386/x86-64linux.mt: Ditto.
9002 * config/i386/nbsdelf.mt: Ditto.
9003 * config/i386/nbsd.mt: Ditto.
9004 * config/i386/i386lynx.mh: Ditto.
9005
bf0c5130
AC
90062002-05-04 Andrew Cagney <ac131313@redhat.com>
9007
9008 * target.c (debug_print_register): New function. Handle oversize
9009 registers.
9010 (debug_to_fetch_registers): Call.
9011 (debug_to_store_registers): Call.
9012
2ae1c2d2
JB
90132002-05-03 Jim Blandy <jimb@redhat.com>
9014
13a393b0
JB
9015 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9016 (read_type): Doc fix.
9017 * gdbtypes.c (replace_type): Doc fix.
9018
2ae1c2d2
JB
9019 * stabsread.c (multiply_defined_struct): New complaint.
9020 (read_struct_type): If the type we were passed isn't empty, or
9021 incomplete, don't read the new struct type into it; complain,
9022 and return the original type unchanged. Take a new `type_code'
9023 argument, which is the type code for the new type.
9024 (read_type): Rather than storing the type's type code here, pass
9025 it as an argument to read_struct_type, and let that take care of
9026 storing it. That way, we don't overwrite the original type code,
9027 so read_struct_type can use it to decide whether we're overwriting
9028 something we shouldn't.
9029 (complain_about_struct_wipeout): New function.
9030
8de9bdc4
AC
90312002-05-03 Andrew Cagney <ac131313@redhat.com>
9032
9033 * gdbarch.sh: Assert that gdbarch is non-NULL.
9034 * gdbarch.c: Regenerate.
9035
f773fdbb
JM
90362002-05-03 Jason Merrill <jason@redhat.com>
9037
9038 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9039 and return NULL.
9040
0e04a514
ML
90412002-05-03 Michal Ludvig <mludvig@suse.cz>
9042
9043 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9044 (x86_64_dwarf2gdb_regno_map_length),
9045 (x86_64_dwarf2_reg_to_regnum): Added.
9046 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9047 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9048 (_initialize_x86_64_tdep): Synced with the change above.
9049 (x86_64_skip_prologue): Reformulated message.
9050
065432a8
PM
90512002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9052
9053 * f-exp.y: Also use new prev_lexptr variable
9054 to improve error reporting. Based on Michael Snyder
9055 2002-04-24 dated patch to c-exp.y.
9056 * jv-exp.y: Likewise.
9057 * m2-exp.y: Likewise.
9058
a3162708
EZ
90592002-05-02 Elena Zannoni <ezannoni@redhat.com>
9060
9061 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9062 we are dealing with vectors.
9063
03620c38
PM
90642002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9065
9066 * config/m68k/tm-nbsd.h: Obvious fix,
9067 correct machine name.
9068
6604db2e
PM
90692002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9070
9071 * p-typeprint.c (pascal_type_print_base): Add support
9072 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9073
0906b739
PM
90742002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9075
9076 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9077 for fondamental pascal 'char' type.
9078
e2625b33
PM
90792002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9080
9081 * p-lang.h (is_pascal_string_type): Declaration changed,
9082 new sixth argument of type char ** added.
361d1df0 9083 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
9084 changed. Args length_pos, length_size, string_pos, char_size
9085 can now be NULL. New argument arrayname set to the field
9086 name of the char array. Return value set to char array
9087 field index plus one.
361d1df0 9088 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
9089 is_pascal_string_type function.
9090
cf17c188
AC
90912002-05-02 Andrew Cagney <cagney@redhat.com>
9092
9093 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9094 <cagney@redhat.com> change.
9095 * gdbarch.c: Regenerate.
9096
52bca491
AC
90972002-05-02 Andrew Cagney <cagney@redhat.com>
9098
9099 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9100 before probing for a new one. Detect errorenous gdbarch_init
9101 functions.
9102 * gdbarch.c: Regenerate.
9103
d5e72505
AC
91042002-05-01 Andrew Cagney <cagney@redhat.com>
9105
9106 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9107 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9108 * config/v850/tm-v850.h: Ditto. Update copyright.
9109
af566d9f
AC
91102002-04-30 Andrew Cagney <ac131313@redhat.com>
9111
9112 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9113 current_gdbarch.
9114
880d85fa
MS
91152002-04-30 Michael Snyder <msnyder@redhat.com>
9116
94c30b78
MS
9117 * arm-tdep.c: Whitespace clean-ups.
9118 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
9119 should have been removed as part of 4/24 change.
9120
6f5987a6
KB
91212002-04-30 Kevin Buettner <kevinb@redhat.com>
9122
9123 * rs6000-tdep.c: Added comment describing how fpscr register
9124 numbers were chosen.
9125
1a113c93
MS
91262002-04-30 Michael Snyder <msnyder@redhat.com>
9127
9128 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9129
9a6f53fe
EZ
91302002-04-29 Elena Zannoni <ezannoni@redhat.com>
9131
9132 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9133 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9134 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9135
11ed25ac
KB
91362002-04-29 Kevin Buettner <kevinb@redhat.com>
9137
9138 From Louis Hamilton <hamilton@redhat.com>:
9139 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9140 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9141 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9142 not bfd-private xcoff data, to determine wordsize.
9143 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9144
ae232405
AC
91452002-04-29 Andrew Cagney <ac131313@redhat.com>
9146
9147 GDB 5.2 released from 5.2 branch.
9148
91fd20f7
ML
91492002-04-29 Michal Ludvig <mludvig@suse.cz>
9150
9151 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9152 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9153 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 9154
2dc5091b
EZ
91552002-04-29 Elena Zannoni <ezannoni@redhat.com>
9156
9157 * rs6000-tdep.c (rs6000_extract_return_value,
9158 rs6000_store_return_value): Handle returning vectors.
9159 (rs6000_gdbarch_init): Use
9160 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9161 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9162 New function.
9163 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9164 vectors.
9165 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9166 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 9167
2b9848d8
PM
91682002-04-24 Pierre Muller <ics.u-strasbg.fr>
9169
9170 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 9171 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
9172 with fprintf_unfiltered (gdb_stderr,...).
9173
f8d17dc5
PM
91742002-04-24 Pierre Muller <ics.u-strasbg.fr>
9175
9176 * remote-array.c (printf_monitor, write_monitor,
361d1df0 9177 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
9178 Replace fprintf (stderr,...
9179 with fprintf_unfiltered (gdb_stderr,....
9180 * remote-es.c: Likewise.
9181 * remote-os9k.c: Likewise.
9182 * remote-st.c: Likewise.
9183
2f2f1ad1
AS
91842002-04-28 Andreas Schwab <schwab@suse.de>
9185
9186 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9187 linux-proc.o and gcore.o.
9188
b6779aa2
AC
91892002-04-26 Michal Ludvig <mludvig@suse.cz>
9190
9191 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9192 code without frame pointers.
9193
7e57f5f4
AC
91942002-04-26 Andrew Cagney <ac131313@redhat.com>
9195
9196 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9197 ON_STACK is needed.
9198
2ceb85d0
BE
91992002-04-26 Ben Elliston <bje@redhat.com>
9200
9201 * target.c (do_xfer_memory): Correct reference to the new option
9202 "trust-readonly-sections".
9203
f5f8a009
EZ
92042002-04-26 Elena Zannoni <ezannoni@redhat.com>
9205
9206 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9207 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9208 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9209 vectors.
9210 (read_array_type): Record the fact that this array type is really a
9211 vector (i.e. are passed in by value).
9212
5868c862
JT
92132002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9214
9215 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9216 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9217 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9218 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9219 * alpha-linux-tdep.c: Include frame.h.
9220 (alpha_linux_sigcontext_addr): New function.
9221 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9222 alpha_linux_sigcontext_addr.
9223 * alpha-osf1-tdep.c: Include gdbcore.h.
9224 (alpha_osf1_sigcontext_addr): New function.
9225 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9226 alpha_osf1_sigcontext_addr.
9227 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9228 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9229
bfb01f37
AC
92302002-04-26 Andrew Cagney <ac131313@redhat.com>
9231
361d1df0 9232 * stack.c (selected_frame_level):
bfb01f37
AC
9233 (select_frame): Do not set selected_frame_level.
9234 * frame.h (selected_frame_level): Delete declaration.
9235
15813d3f
AC
92362002-04-26 Andrew Cagney <ac131313@redhat.com>
9237
9238 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9239 convert_from_func_ptr-addr when AIX / PowerOpen.
9240
6096c27a
AC
92412002-04-25 Andrew Cagney <ac131313@redhat.com>
9242
9243 * valops.c (hand_function_call): Call
9244 generic_save_call_dummy_addr.
9245 * frame.h (generic_save_call_dummy_addr): Declare.
9246 * blockframe.c (struct dummy_frame): Add fields call_lo and
9247 call_hi.
9248 (generic_find_dummy_frame): Check for PC in range call_lo to
9249 call_hi instead of entry_point_address.
9250 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9251 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9252 (generic_save_call_dummy_addr): New function.
9253
f510d44e
DM
92542002-04-24 David S. Miller <davem@redhat.com>
9255
9256 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9257 sparc_skip_prologue.
9258 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9259 information to find prologue when possible.
9260 (sparc_prologue_frameless_p): Call examine_prologue directly.
9261 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9262 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9263 second argument.
9264 (SKIP_PROLOGUE): Likewise.
9265
15d72a92
JT
92662002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9267
9268 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9269 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9270 indicate that the condition it was testing is always true.
9271 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9272 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9273 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9274
accc6d1f
JT
92752002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9276
9277 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9278 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9279 tdep->jb_pc and tdep->jb_elt_size.
9280 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9281 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9282 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9283 * alpha-nat.c (get_longjmp_target): Remove.
9284 (JB_ELEMENT_SIZE): Ditto.
9285 (JB_PC): Ditto.
9286 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9287 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9288 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9289 to alpha_get_longjmp_target.
9290 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9291 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9292 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9293
1bfdc549
AC
92942002-04-25 Andrew Cagney <ac131313@redhat.com>
9295
9296 * README: Update to GDB 5.2.
9297
1bd316f0
AC
92982002-04-25 Andrew Cagney <ac131313@redhat.com>
9299
9300 * gdbarch.sh (LC_ALL): Set to `c'.
9301
2e5ff58c
TR
93022002-04-25 Theodore A. Roth <troth@verinet.com>
9303
9304 * avr-tdep.c: Ran through gdb_indent.sh.
9305
e33ce519
TR
93062002-04-25 Theodore A. Roth <troth@verinet.com>
9307
9308 * MAINTAINERS: Add myself as AVR maintainer.
9309 * NEWS: Note new target avr.
9310
8818c391
TR
93112002-04-25 Theodore A. Roth <troth@verinet.com>
9312
9313 * Makefile.in: Add support for AVR target.
9314 * configure.tgt: Add support for AVR target.
9315 * avr-tdep.c: New file
9316 * config/avr/avr.mt: New file.
9317
79509c2d
TR
93182002-04-25 Theodore A. Roth <troth@verinet.com>
9319
9320 * MAINTAINERS: Add myself to write-after-approval.
9321
dac8068e
PM
93222002-04-24 Pierre Muller <ics.u-strasbg.fr>
9323
9324 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9325 with fprintf_unfiltered (gdb_stderr,....
9326
25bf3106
PM
93272002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9328
9329 Fix PR gdb/508.
9330 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9331
24467a86
PM
93322002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9333
9334 * p-exp.y: Also use new prev_lexptr variable
9335 to improve error reporting. Based on Michael Snyder
9336 2002-04-24 dated patch to c-exp.y.
9337
95b80706
JT
93382002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9339
9340 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9341 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9342 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9343 to 0.
9344 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9345 and struct value.
9346 (FUNCTION_START_OFFSET): Remove.
9347 (BREAKPOINT): Ditto.
9348
e90cc612
JT
93492002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9350
9351 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9352 * NEWS: Ditto.
9353
6c72f9f9
JT
93542002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9355
9356 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9357 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9358 alpha_linux_pc_in_sigtramp.
9359 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9360 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9361 alpha_osf1_pc_in_sigtramp.
9362 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9363 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9364 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9365 alphafbsd_pc_in_sigtramp.
9366 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9367 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9368 alphanbsd_pc_in_sigtramp.
9369 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9370 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9371
5e4f3379
JT
93722002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9373
9374 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9375
da8ca43d
JT
93762002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9377
9378 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9379 alphanbsd-tdep.c.
9380 (alphanbsd-nat.o): New dependency list.
9381 (alphanbsd-tdep.o): Ditto.
9382 * NEWS: Note new native NetBSD/alpha configuration.
9383 * alphanbsd-nat.c: New file.
9384 * alphanbsd-tdep.c: Ditto.
9385 * configure.host (alpha*-*-netbsd*): New host.
9386 * configure.tgt (alpha*-*-netbsd*): New target.
9387 * config/alpha/nbsd.mh: New file.
9388 * config/alpha/nbsd.mt: Ditto.
9389 * config/alpha/nm-nbsd.h: Ditto.
9390 * config/alpha/tm-nbsd.h: Ditto.
9391
36a6271d
JT
93922002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9393
9394 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9395 (alpha-osf1-tdep.o): New dependency list.
9396 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9397 and skip_sigtramp_frame members.
9398 * alpha-linux-tdep.c: Include gdbcore.h.
9399 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9400 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9401 * alpha-osf1-tdep.c: New file.
9402 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9403 alpha-osf1-dep.c.
9404 (alpha_frame_past_sigtramp_frame): New function.
9405 (alpha_dynamic_sigtramp_offset): Ditto.
9406 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9407 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9408 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9409 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9410 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9411 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9412 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9413 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9414 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9415 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9416 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9417 to find_solib_trampoline_target.
9418 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9419 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9420 (SKIP_TRAMPOLINE_CODE): Remove.
9421 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9422 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9423 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9424 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9425 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9426 (PROC_SIGTRAMP_MAGIC): Ditto.
9427 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9428 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9429 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9430 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9431 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9432
2f4bc57b
JT
94332002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9434
9435 * NEWS: Note that Alpha targets are now multi-arch.
9436
665132f9
MS
94372002-04-24 Michael Snyder <msnyder@redhat.com>
9438
9439 * parser-defs.h (prev_lexptr): New external variable.
9440 * parse.c (parse_exp_1): Set prev_lexptr to null before
9441 calling the language-specific parser.
9442 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9443 (yyerror): Use prev_lexptr in error reporting.
9444
32872fa7
DJ
94452002-04-24 Daniel Jacobowitz <drow@mvista.com>
9446
9447 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9448 * gregset.h: If FILL_FPXREGSET is defined, provide
9449 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9450 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9451 is defined, call fill_fpxregset.
9452
57e76fac
MS
94532002-04-24 Roland McGrath <roland@frob.com>
9454
9455 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9456 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9457 (supply_gregset, supply_fpregset): New functions.
9458
9459 * gnu-nat.c (gnu_find_memory_regions): New function.
9460 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9461 (gnu_xfer_memory): Add a cast.
9462
f43845b3
MS
94632002-04-24 Michael Snyder <msnyder@redhat.com>
9464
361d1df0 9465 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9466 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9467 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9468 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9469 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9470 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9471
a0abec03
AC
9472Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9473
9474 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9475 NUM_PSEUDO_REGS can be used.
9476
d7bd68ca
AC
94772002-04-24 Andrew Cagney <ac131313@redhat.com>
9478
9479 * arch-utils.h: Update copyright.
9480
9481 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9482 * gdbarch.h, gdbarch.c: Re-generate.
9483
9484 * inferior.h (IN_SIGTRAMP): Delete definition.
9485 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9486 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9487
9488 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9489 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9490 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9491 (find_proc_framesize): Ditto.
9492 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9493 (alpha_init_extra_frame_info): Ditto.
9494 * infrun.c (handle_inferior_event): Ditto.
9495 (handle_inferior_event): Ditto.
9496 (check_sigtramp2): Ditto.
9497 * blockframe.c (create_new_frame): Ditto.
9498 (get_prev_frame): Ditto.
9499 * ppc-linux-tdep.c: Update comments.
9500 * i386-linux-tdep.c: Update comments.
9501 * breakpoint.c (bpstat_what): Update comment.
9502
4867e41e
DM
95032002-04-24 David S. Miller <davem@redhat.com>
9504
21d83aa5
DM
9505 * i960-tdep.c (register_in_window_p): New function.
9506 (i960_find_saved_register): Use it instead of
9507 REGISTER_IN_WINDOW_P.
9508 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9509
4867e41e
DM
9510 * symtab.h (find_stab_function_addr): Kill extern.
9511 * minsyms.c (find_stab_function_addr): Remove from here...
9512 * dbxread.c: ... to here, and mark it static.
9513
69cdf6a2
DM
95142002-04-20 David S. Miller <davem@redhat.com>
9515
9516 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9517 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9518
5a595886
DM
95192002-04-21 David S. Miller <davem@redhat.com>
9520
9521 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9522 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9523 (vx_write_register): Likewise.
9524
1da1a192
JB
95252002-04-23 J. Brobecker <brobecker@gnat.com>
9526
9527 * source.c (is_regular_file): New function.
9528 (openp): Check wether file to open is a regular file
9529 to avoid opening directories.
9530
baa6f10b
JT
95312002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9532
9533 * findvar.c (extract_signed_integer): Cast printf argument
9534 to suppress format warning.
9535 (extract_unsigned_integer): Likewise.
9536 * infcmd.c (registers_info): Likewise.
9537 * top.c (get_prompt_1): Likewise.
9538 * valops.c (value_assign): Likewise.
9539 * valprint.c (print_decimal): Likewise.
9540
b2c4da81
L
95412002-04-22 H.J. Lu (hjl@gnu.org)
9542
9543 * c-exp.y (typebase): Support
361d1df0 9544
b2c4da81
L
9545 [long|long long|short] [signed|unsigned] [int|]
9546
9547 and
9548
9549 signed [long|long long|short] int
9550
f267bd6a
JT
95512002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9552
9553 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9554 and vax-tdep.h.
9555 * vax-tdep.h: New file.
9556 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9557 Make several routines static.
9558 (vax_get_saved_register): New function.
9559 (vax_gdbarch_init): New function.
9560 (_initialize_vax_tdep): Register vax_gdbarch_init.
9561 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9562 Remove macros now under the control of gdbarch.
9563
da3c6d4a
MS
95642002-04-22 Michael Snyder <msnyder@redhat.com>
9565
11d3b27d
MS
9566 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9567 Some whitespace and coding standards tweaks.
da3c6d4a 9568
a33f7558
JT
95692002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9570
9571 * vax-tdep.c: Include regcache.h.
9572 (vax_call_dummy_words): New.
9573 (sizeof_vax_call_dummy_words): New.
9574 (vax_fix_call_dummy): New function.
9575 (vax_saved_pc_after_call): Ditto.
9576 * config/vax/tm-vax.h: Don't include regcache.h.
9577 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9578 (CALL_DUMMY): Remove.
9579 (CALL_DUMMY_WORDS): Define.
9580 (SIZEOF_CALL_DUMMY_WORDS): Define.
9581 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9582
47a73475
MS
95832002-04-18 Michael Snyder <msnyder@redhat.com>
9584
9585 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9586
52efde73
JT
95872002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9588
9589 * vax-tdep.c (vax_frame_chain): New function.
9590 (vax_push_dummy_frame): Ditto.
9591 (vax_pop_frame): Ditto.
9592 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9593 (FRAMELESS_FUNCTION_INVOCATION): Use
9594 generic_frameless_function_invocation_not.
9595 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9596 (POP_FRAME): Use vax_pop_frame.
9597
ea74468c
JT
95982002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9599
9600 * vax-tdep.c (vax_store_struct_return): New function.
9601 (vax_extract_return_value): Ditto.
9602 (vax_store_return_value): Ditto.
9603 (vax_extract_struct_value_address): Ditto.
9604 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9605 vax_store_struct_return.
9606 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9607 (STORE_RETURN_VALUE): Use vax_store_return_value.
9608 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9609
5516aa92
JT
96102002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9611
9612 * vax-tdep.c (vax_frame_saved_pc): New function.
9613 (vax_frame_args_address_correct): Ditto.
9614 (vax_frame_args_address): Ditto.
9615 (vax_frame_locals_address): Ditto.
9616 (vax_frame_num_args): Move code to be in proximity to
9617 other frame-related functions.
9618 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9619 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9620 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9621 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9622 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9623
36af0b35
L
96242002-04-22 H.J. Lu (hjl@gnu.org)
9625
9626 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9627 includedir.
9628
ab62c900
JT
96292002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9630
9631 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9632 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9633 (FRAME_INIT_SAVED_REGS): New macro.
9634
7232b100
JT
96352002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9636
9637 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9638
b70d2aee
JT
96392002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9640
9641 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9642 where needed.
9643 (fetch_osf_core_registers): Likewise.
9644 (supply_gregset): Likewise.
9645
a0e8a2d1 96462002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 9647
a0e8a2d1
JB
9648 * symfile.h (get_section_index): Define.
9649 * symfile.c (get_section_index): New function.
9650 * mdebugread.c (SC_IS_SBSS): New macro.
9651 (SC_IS_BSS): Return true for the scBss storage class only, as
9652 the scSBss storage class refers to the .sbss section.
9653 (parse_partial_symbols): Discard the symbols which associated
9654 section does not exist.
9655 Make sure to use the .sbss section index for symbols which
9656 storage class is scBss, rather than using the .bss section index.
9657
51eb8b08
JT
96582002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9659
9660 * vax-tdep.c: Update copyright years.
9661 (vax_register_name): New function.
9662 (vax_register_byte): Ditto.
9663 (vax_register_raw_size): Ditto.
9664 (vax_register_virtual_size): Ditto.
9665 (vax_register_virtual_type): Ditto.
9666 * config/vax/tm-vax.h: Update copyright years.
9667 (REGISTER_NAMES): Remove.
9668 (REGISTER_NAME): Define.
9669 (REGISTER_BYTE): Use vax_register_byte.
9670 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9671 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9672 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9673
6cc1c0a8
AC
96742002-04-21 Andrew Cagney <ac131313@redhat.com>
9675
9676 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9677 declaration
9678 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9679
9319a2fe
DM
96802002-04-21 David S. Miller <davem@redhat.com>
9681
9682 * arch-utils.c (generic_prologue_frameless_p): Kill
9683 SKIP_PROLOGUE_FRAMELESS_P code.
9684 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9685 references.
9686 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9687 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9688 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9689 references.
9690 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9691 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9692 (sparc_gdbarch_init): Pass it to
9693 set_gdbarch_prologue_frameless_p.
a0e8a2d1 9694
e9ed6d01
JT
96952002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9696
9697 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9698 (alphabsd-nat.o): New dependency list.
9699
36012033
JT
97002002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9701
9702 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9703 alphafbsd-tdep.c.
9704 (alpha-linux-tdep.o): New dependency list.
9705 (alphafbsd-tdep.o): Likewise.
9706
3379287a
JT
97072002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9708
9709 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9710 to here...
9711 * alpha-tdep.c: ...from here.
9712 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9713
4bcbd6cb
JT
97142002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9715
9716 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9717 prototype from here...
9718 * alpha-tdep.h: ...to here.
9719
b31da25e
AC
97202002-04-21 Andrew Cagney <ac131313@redhat.com>
9721
9722 * frame.h (selected_frame_level): Document as deprecated.
9723 (frame_relative_level): Declare.
9724 * stack.c (frame_relative_level): New function.
9725 (selected_frame_level): Document as deprecated.
9726 (select_frame): Do not set the selected_frame_level.
9727
9728 * stack.c (frame_info, record_selected_frame): Update.
9729 (frame_command, current_frame_command): Update.
9730 (up_silently_base, up_command, down_silently_base): Update.
9731 (down_command): Update.
9732 * inflow.c (kill_command): Update.
9733 * tracepoint.c (finish_tfind_command): Update.
9734 * corelow.c (core_open): Update.
9735 * thread.c (info_threads_command): Update.
9736 (do_captured_thread_select): Update.
9737 * infcmd.c (finish_command): Update.
9738 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9739
9c1d6fe5
JT
97402002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9741
9742 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9743
ab89facf
AC
97442002-04-21 Andrew Cagney <ac131313@redhat.com>
9745
9746 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9747 type const.
9748
82a4efa1
JT
97492002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9750
9751 * alphafbsd-tdep.c: Update copyright years. Include
9752 alpha-tdep.h.
9753 (alphafbsd_use_struct_convention): Make static.
9754 (alphafbsd_init_abi): New function.
9755 (_initialize_alphafbsd_tdep): New function.
9756 * config/alpha/tm-fbsd.h: Update copyright years.
9757 (USE_STRUCT_CONVENTION): Remove.
9758
44dffaac
JT
97592002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9760
9761 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9762 an Alpha ABI variant.
9763 (alpha_abi_handler_list): Declare.
9764 (alpha_gdbarch_register_os_abi): New function.
9765 (alpha_gdbarch_init): Give registered ABI variant handlers a
9766 chance to tweak the gdbarch once we have set up defaults.
9767 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9768
65585be4
JT
97692002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9770
9771 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9772 to standard_coerce_float_to_double.
9773 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9774
d9b023cc
JT
97752002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9776
9777 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9778 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9779 from gdbarch_tdep rather than a constant.
9780 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9781 the default text address for all Alpha Unix ABIs.
9782 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9783 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9784
dc129d82
JT
97852002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9786
9787 * alpha-tdep.h: New file. Includes several Alpha target constants
9788 taken from...
9789 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9790 let gdbarch deal with.
9791 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9792 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9793 to dependency list.
9794 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9795 Alpha target register names.
9796 * alphabsd-nat.c: Likewise.
9797 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9798 Alpha target register names. Make serveral routines static.
9799 (alpha_get_saved_register): New function.
9800 (alpha_abi_names): New.
9801 (process_note_abi_tag_sections): New function.
9802 (get_elfosabi): New function.
9803 (alpha_gdbarch_init): New function.
9804 (alpha_dump_tdep): New function.
9805 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9806
d49d1e0a
AC
98072002-04-21 Andrew Cagney <ac131313@redhat.com>
9808
9809 * frame.c (find_saved_register): Delete #ifdef
9810 HAVE_REGISTER_WINDOWS code.
9811 * config/sparc/tm-sparc.h: Update comments.
9812 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9813
92e8c9ed
AC
98142002-04-21 Andrew Cagney <ac131313@redhat.com>
9815
9816 * i960-tdep.c (i960_find_saved_register): New function.
9817 (i960_get_saved_register): New function.
9818 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9819 (i960_get_saved_register): Declare.
9820 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9821
e1925118
DM
98222002-04-20 David S. Miller <davem@redhat.com>
9823
9824 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9825
29673b29
AC
98262002-04-20 Andrew Cagney <ac131313@redhat.com>
9827
9828 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9829 instead of NUM_PSEUDO_REGS.
9830
6c86dcd5
DM
98312002-04-20 David S. Miller <davem@redhat.com>
9832
9833 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9834 GDB_MULTI_ARCH_PARTIAL
9835 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9836 define, let tm-sp64.h do it.
9837
aa40ec90
JT
98382002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9839
9840 * frame.c (find_saved_register): Avoid a NULL pointer
9841 dereference and actually walk the frame list.
9842
0f79675b
AC
98432002-04-20 Andrew Cagney <ac131313@redhat.com>
9844
9845 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9846 sorted in most most-recent-used order. Document.
9847 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9848
f91305dd 98492002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
9850
9851 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9852 instead of ->prev.
9853 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9854 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9855 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9856 instead of ->prev.
9857
73d322b1
EZ
98582002-04-19 Elena Zannoni <ezannoni@redhat.com>
9859
9860 Fix PR gdb/471.
9861 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9862 (build_builtin_type_vec128): Ditto.
9863 (append_composite_type_field): Fix calculation of type length in
9864 union case.
9865
ccd9a834
EZ
98662002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9867
9868 * config/djgpp/README: Update.
9869
9870 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9871 compiler warnings.
9872
a57f9e49
JT
98732002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9874
9875 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9876 (alpha_setup_arbitrary_frame): ...to this.
9877 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9878 for alpha_setup_arbitrary_frame.
9879
f4f9705a
AC
98802002-04-18 Andrew Cagney <cagney@redhat.com>
9881
9882 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9883 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9884
f4f9705a
AC
9885 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9886 * target.h (memory_breakpoint_from_pc): Update declaration.
9887 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9888
9889 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9890 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9891 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9892 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9893 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9894 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9895 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9896 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9897 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9898 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9899 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9900 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9901
9902 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9903 const pointer.
9904 * monitor.c (monitor_insert_breakpoint): Ditto.
9905 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9906
9907 * config/mcore/tm-mcore.h: Update copyright.
9908 * mem-break.c: Ditto.
9909 * xstormy16-tdep.c: Ditto.
9910
29f319b8
PM
99112002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9912
9913 * p-exp.y: Add precedence rule for '^' token.
9914 This removes the shift/reduce conflicts.
9915 Remove the comment concerning these shift/reduce conflicts.
9916
ebeac11a
EZ
99172002-04-18 Elena Zannoni <ezannoni@redhat.com>
9918
9919 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9920 (registers_powerpc_nofp): New register set for processors
9921 without floating point unit.
9922
27c31547
DM
99232002-04-18 David S. Miller <davem@redhat.com>
9924
9925 * MAINTAINERS: Add myself to write-after-approval.
9926
47a73475
MS
99272002-04-17 Michael Snyder <msnyder@redhat.com>
9928
9929 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9930
953836b2
AC
99312002-04-17 Andrew Cagney <ac131313@redhat.com>
9932
9933 * rs6000-tdep.c (frame_initial_stack_address): Use
9934 frame_register_read to read the alloca_reg.
9935
8b0d4340
AC
99362002-04-17 Andrew Cagney <ac131313@redhat.com>
9937
9938 * frame.c (find_saved_register): Find saved registers in the next
9939 not prev frame.
9940 Fix PR gdb/365.
9941
d8864532
AC
99422002-04-17 Andrew Cagney <ac131313@redhat.com>
9943
9944 * gdbarch.sh (LANG): Set to ``c''.
9945
36cc83a3 99462002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 9947
36cc83a3 9948 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 9949
2f4150cc 99502002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
9951
9952 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9953 Update copyright.
9954
628703c6 9955 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 9956 Also fix PR gdb/391.
361d1df0 9957
56157b4a
AC
99582002-04-14 Andrew Cagney <ac131313@redhat.com>
9959
9960 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9961 * aclocal.m4, configure: Re-generate.
9962 Fix PR gdb/391.
361d1df0 9963
6d1e3329
EZ
99642002-04-14 Elena Zannoni <ezannoni@redhat.com>
9965
9966 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9967 instead of tm_print_insn.
9968
cb06fa07
EZ
99692002-04-14 Elena Zannoni <ezannoni@redhat.com>
9970
9971 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9972
f208ba17
AC
99732002-04-14 Andrew Cagney <ac131313@redhat.com>
9974
9975 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9976 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9977 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9978
20f01a46
DH
99792002-04-12 Don Howard <dhoward@redhat.com>
9980
9981 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9982 max_user_call_depth.
9983 (init_cmd_lists): Initialize the new value;
9984 * cli/cli-script.c (execute_user_command): Limit the call depth of
9985 user defined commands. This avoids a core-dump when user commands
9986 are infinitly recursive.
9987
a88376a3
KB
99882002-04-12 Kevin Buettner <kevinb@redhat.com>
9989
9990 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9991 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9992 from tdep struct instead of DEFAULT_LR_SAVE.
9993 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9994 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9995 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9996
f2172603
MS
99972002-04-12 Michael Snyder <msnyder@redhat.com>
9998
694f61fb 9999 * Remote.c: Spelling fix.
20fe79c8
MS
10000 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10001 If no symbol found for "sbrk", try "_sbrk".
10002 (make_output_phdrs): Use bfd_section_name.
10003 (gcore_copy_callback): Use bfd_section_name.
62995fc4 10004 * eval.c: Indentation fix-ups.
169a7369
MS
10005 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10006 in case it gets applied to an address that is already
10007 in the instruction space.
de74f71f
MS
10008 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10009 * symfile.c: Fix indentation, long lines.
f2172603
MS
10010 * source.c: White space fix-up.
10011
cda5a58a
AC
100122002-04-12 Andrew Cagney <cagney@redhat.com>
10013
10014 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10015 * frame.c (frame_register_read): New function. Return non-zero on
10016 success.
10017 (read_relative_register_raw_bytes_for_frame): Delete.
10018 (read_relative_register_raw_bytes): Delete.
10019 * frame.h (frame_register_read): Declare.
10020 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10021 * sh-tdep.c: Ditto.
10022 * infcmd.c (do_registers_info): Ditto.
10023 * hppa-tdep.c: Ditto.
10024 * rs6000-tdep.c: Ditto.
10025 * h8500-tdep.c: Ditto.
10026 * mips-tdep.c: Ditto.
10027 * h8300-tdep.c: Ditto.
10028 * z8k-tdep.c: Ditto.
10029
2ea5f656
KB
100302002-04-12 Kevin Buettner <kevinb@redhat.com>
10031
10032 From Jimi X <jimix@watson.ibm.com>:
10033 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10034 64-bit SysV ABI.
10035
27b15785
KB
100362002-04-12 Kevin Buettner <kevinb@redhat.com>
10037
10038 From Jimi X <jimix@watson.ibm.com>:
10039 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10040 bfd info.
10041
5d57ee30
KB
100422002-04-12 Kevin Buettner <kevinb@redhat.com>
10043
10044 From Jimi X <jimix@watson.ibm.com>:
10045 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10046 register sets for these processor variants.
10047
bc1e36ca
DJ
100482002-04-11 Daniel Jacobowitz <drow@mvista.com>
10049
bc1e36ca
DJ
10050 * regformats/reg-ppc.dat: Support FPSCR.
10051
e3f36dbd
KB
100522002-04-11 Kevin Buettner <kevinb@redhat.com>
10053
10054 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10055 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10056 Add fpscr as an invalid/unfetchable register.
10057 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10058 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10059 (fill_fpregset): Add support for register fpscr.
10060 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10061 (fill_gregset): Account for the fact that register ``mq'' might
10062 not exist.
10063 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10064 (registers_power): Add fpscr to register set at slot 71.
10065 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10066 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10067
943c9c25
MS
100682002-04-11 Michael Snyder <msnyder@redhat.com>
10069
10070 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10071 * configure: Regenerate.
10072 * config.in: Regenerate.
10073 * acconfig.h: Add define for _SYSCALL32.
10074 * core-sol2.c: Remove #define _SYSCALL32.
10075 * solib-legacy.c: Remove #define _SYSCALL32.
10076
d8c0a2e7
AC
100772002-04-10 Andrew Cagney <ac131313@redhat.com>
10078
10079 * stack.c (select_frame): Cleanup internal error message, do not
10080 use %p.
10081
7cc19214
AC
100822002-04-10 Andrew Cagney <ac131313@redhat.com>
10083
10084 * stack.c (select_frame): Check that selected_frame and the
10085 specified level are as expected.
10086 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10087 Update copyright.
10088 * frame.h (struct frame_info): Add field `level'. Update
10089 copyright.
10090 Work-in-progress PR gdb/464.
10091
67a2b77e
AC
100922002-04-10 Andrew Cagney <ac131313@redhat.com>
10093
10094 * maint.c (maint_print_section_info): Rename print_section_info.
10095 (print_bfd_section_info, print_objfile_section_info): Update.
10096 * inferior.h (struct gdbarch): Add opaque declaration.
10097 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10098 * gdbarch.h: Regenerate.
10099
8cfda98c
ML
101002002-04-10 Michal Ludvig <mludvig@suse.cz>
10101
10102 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10103 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10104 (kernel_u_size): Added.
10105 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10106 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10107
ca439ad2 101082002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 10109
ca439ad2
JI
10110 * valarith.c (find_size_for_pointer_math): New function, either returns
10111 the size for a pointer's target, returns 1 for void *, or errors for
10112 incomplete types.
10113 (value_add, value_sub): use find_size_for_pointer_math.
10114
2f2893d9
DJ
101152002-04-09 Daniel Jacobowitz <drow@mvista.com>
10116
10117 * linux-low.c (linux_look_up_symbols): New hook.
10118 (linux_target_ops): Add linux_look_up_symbols.
10119 * remote-utils.c (decode_address): New function.
10120 (look_up_one_symbol): New function.
10121 * server.c (handle_query): Call target look_up_symbols hook.
10122 * server.h (look_up_one_symbol): Add prototype.
10123 * target.h (struct target_ops): Add look_up_symbols hook.
10124
96cb11df
AC
101252002-04-09 Andrew Cagney <ac131313@redhat.com>
10126
10127 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10128 override FP_REGNUM with frame->fp. Update copyright.
10129 * parse.c (num_std_regs, std_regs): Delete.
10130 (target_map_name_to_register): Do not search std_regs. Update
10131 function description.
10132 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10133 declarations. Update copyright.
10134 Fix PR gdb/251.
361d1df0 10135
97658e92
DJ
101362002-04-09 Daniel Jacobowitz <drow@mvista.com>
10137
10138 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10139 after the last symbol in a block.
10140
6044e3eb
PM
101412002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10142
10143 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10144 is non zero as a found symbol.
10145
0406ec40
AC
101462002-04-08 Andrew Cagney <ac131313@redhat.com>
10147
10148 * findvar.c: Include "builtin-regs.h".
10149 (value_of_register): Call value_of_builtin_reg when applicable.
10150 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10151 (target_map_name_to_register): Call
10152 builtin_reg_map_name_to_regnum.
10153 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10154 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10155 (builtin_regs_h): Define.
10156 (builtin-regs.o): New target.
10157 (findvar.o): Add $(builtin_regs_h).
10158 * builtin-regs.c, builtin-regs.h: New files.
10159 * std-regs.c: New file.
10160 Partial fix for PR gdb/251.
10161
56a6dfb9
KB
101622002-04-08 Kevin Buettner <kevinb@redhat.com>
10163
10164 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10165 it's no longer required.
10166
3a808432
AC
101672002-04-08 Andrew Cagney <ac131313@redhat.com>
10168
10169 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10170
7c40d541
KB
101712002-04-08 Kevin Buettner <kevinb@redhat.com>
10172
10173 From Jimi X <jimix@watson.ibm.com>:
10174 * rs6000-tdep.c (rs6000_software_single_step): Use
10175 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10176 and size. Use target_insert_breakpoint() and
10177 target_remove_breakpoint() to insert and remove breakpoints
10178 instead of explicit memory reads and writes.
10179
cc9836a8
KB
101802002-04-08 Kevin Buettner <kevinb@redhat.com>
10181
10182 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10183 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10184 ELF_OBJECT_FORMAT ifdef.
10185
7495d1dc
KB
101862002-04-08 Kevin Buettner <kevinb@redhat.com>
10187
10188 From Jimi X <jimix@watson.ibm.com>:
10189 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10190
4288e836
KB
101912002-04-08 Kevin Buettner <kevinb@redhat.com>
10192
10193 From Jimi X <jimix@watson.ibm.com>:
10194 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10195 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10196
a4e4e501
MK
101972002-04-07 Mark Kettenis <kettenis@gnu.org>
10198
10199 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10200 s/asprintf/xasprintf/.
10201 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10202
006defba
AC
102032002-04-07 Andrew Cagney <ac131313@redhat.com>
10204
10205 I believe Jeff Law denies responsability for this one:
10206 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10207 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10208 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10209 Work-around for PR gdb/366.
10210
7aa83cac
EZ
102112002-04-07 Elena Zannoni <ezannoni@redhat.com>
10212
10213 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10214 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10215 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10216
cf1fcca1
EZ
102172002-04-07 Elena Zannoni <ezannoni@redhat.com>
10218
10219 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10220 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10221 information.
10222
3f289e6f
AC
102232002-04-07 Andrew Cagney <ac131313@redhat.com>
10224
10225 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10226 maintainer.
10227
129188f6
AC
102282002-04-07 Andrew Cagney <ac131313@redhat.com>
10229
10230 * README (Reporting Bugs in GDB): Document the bug web page as the
10231 prefered way of submitting bugs.
10232 Fix PR gdb/402.
10233
1200cd6e
AC
102342002-04-06 Andrew Cagney <ac131313@redhat.com>
10235
10236 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10237 -1. Update comment.
10238 * gdbarch.h, gdbarch.c: Re-generate.
10239
2853c33c
AS
102402002-04-07 Andreas Schwab <schwab@suse.de>
10241
10242 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10243 buffer to regcache_collect.
10244
c2169756
AC
102452002-04-06 Andrew Cagney <ac131313@redhat.com>
10246
10247 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10248 * gdbarch.c, gdbarch.h: Re-generate.
10249
25f1b008
AC
102502002-04-06 Andrew Cagney <ac131313@redhat.com>
10251
10252 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10253 declaration. Fix -Werror.
10254
59263426
DJ
102552002-04-05 Daniel Jacobowitz <drow@mvista.com>
10256
10257 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10258 * gdbarch.c: Regenerate.
10259
f5db4da3
MS
102602002-04-05 Michael Snyder <msnyder@redhat.com>
10261
80f8a6eb
MS
10262 * breakpoint.c (clear_command): Rewrite middle section to
10263 combine two loops with identical control conditions.
10264 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10265 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10266
ad3dcc5c
L
102672002-04-05 H.J. Lu (hjl@gnu.org)
10268
10269 * solib-svr4.c (bkpt_names): Add "__start".
10270
f32e7a74
AC
102712002-04-04 Andrew Cagney <ac131313@redhat.com>
10272
10273 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10274 as test for 64 bit target.
10275
8227c0ff
AC
102762002-04-05 Andrew Cagney <ac131313@redhat.com>
10277
10278 * h8500-tdep.c (h8500_write_fp): Delete function.
10279 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10280 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10281 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10282 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10283 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10284 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10285 (s390_write_fp):
10286 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10287 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10288 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10289 (d10v_write_fp): Delete function.
10290 * inferior.h (write_fp, generic_target_write_fp): Delete
10291 declarations.
10292 * regcache.c (generic_target_write_fp): Delete function.
10293 (write_fp): Delete function.
10294 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10295 * gdbarch.h, gdbarch.c: Regenerate.
10296 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10297 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10298 (sparc64_write_fp): Delete declaration.
10299 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10300 (h8500_write_fp): Delete declaration.
10301
2757dd86
AC
103022002-04-04 Andrew Cagney <ac131313@redhat.com>
10303
10304 * sparc-tdep.c (sparc64_write_fp): Delete.
10305 (sparc_push_dummy_frame): Replace write_fp call with code to store
10306 the FP directly.
10307 (sparc_gdbarch_init): Do not initialize write_fp.
10308
c69255e1
KB
103092002-04-05 Kevin Buettner <kevinb@redhat.com>
10310
10311 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10312 clause.
10313
ae767bfb
JB
103142002-03-29 Jim Blandy <jimb@redhat.com>
10315
10316 * stack.c (get_selected_block): Add new argument `addr_in_block',
10317 used to return the exact code address we used to select the block,
10318 not just the block.
10319 * blockframe.c (get_frame_block, get_current_block): Same.
10320 * frame.h (get_frame_block, get_current_block,
10321 get_selected_block): Update declarations.
10322 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10323 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10324
84d2ac95
MS
103252002-04-05 Michael Snyder <msnyder@redhat.com>
10326
10327 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10328 warning message.
10329
596aa3bf
JB
103302002-04-05 J. Brobecker <brobecker@gnat.com>
10331
10332 * utils.c (xfullpath): New function.
10333 * defs.h (xfullpath): Add declaration.
10334 * source.c (openp): Use xfullpath in place of gdb_realpath to
10335 avoid resolving the basename part of filenames when the
10336 associated file is a symbolic link. This fixes a potential
10337 inconsistency between the filenames known to GDB and the
10338 filenames it prints in the annotations.
10339 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10340 to be able to match a filename with either the real filename, or
10341 the name of any symbolic link to this file.
10342 (lookup_partial_symtab): Ditto.
10343
c02f5703
MS
103442002-04-04 Michael Snyder <msnyder@redhat.com>
10345
10346 * breakpoint.c: Add support for hardware breakpoints in overlays.
10347 (overlay_events_enabled): New state variable.
10348 (insert_breakpoints): Use overlay_events_enabled to decide
10349 whether to attempt to set a breakpoint at the overlay load addr.
10350 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10351 (remove_breakpoint): Use overlay_events_enabled to decide
10352 whether breakpoints need to be removed from overlay load addr.
10353 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10354 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 10355 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
10356 disable_overlay_breakpoints): Update overlay_events_enabled.
10357
5fb290d7
DJ
103582002-04-04 Daniel Jacobowitz <drow@mvista.com>
10359
10360 * dwarf2read.c (struct function_range): New.
10361 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10362 (check_cu_functions): New.
10363 (read_file_scope): Initialize global function lists.
10364 Call dwarf_decode_line after processing children.
10365 (read_func_scope): Add to global function list.
10366 (dwarf_decode_lines): Call check_cu_functions everywhere
10367 record_line is called. Call record_line with a linenumber
10368 of 0 to mark sequence ends.
10369
7b3fabf0
ML
103702002-04-04 Michal Ludvig <mludvig@suse.cz>
10371
361d1df0 10372 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
10373 change sync with glibc.
10374
bce58c09
JB
103752002-04-03 Jim Blandy <jimb@redhat.com>
10376
10377 * configure.in: Call AC_C_INLINE.
10378 * configure: Regenerated.
361d1df0 10379
2fccf04a
DJ
103802002-04-01 Daniel Jacobowitz <drow@mvista.com>
10381
10382 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10383 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10384
2d1bfe2e
MK
103852002-03-31 Mark Kettenis <kettenis@gnu.org>
10386
a5941fbf
MK
10387 * NEWS: Mention gcore support on FreeBSD/i386.
10388
a90cd31d
MK
10389 * fbsd-proc.c: New file.
10390 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10391 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10392
2d1bfe2e
MK
10393 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10394 while statement.
10395
9eb6e5a1
JB
103962002-03-29 Jim Blandy <jimb@redhat.com>
10397
10398 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10399 unescaped newlines in string literals, but newer ones don't. So
10400 escape them.
10401
f02df580
MS
104022002-03-26 Michael Snyder <msnyder@redhat.com>
10403 Andrew Cagney <cagney@redhat.com>
10404
361d1df0 10405 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10406 restore file to memory.
10407 * cli/cli-dump.h: New file.
10408 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10409 * NEWS: Mention new commands.
f02df580 10410
109f874e
MS
104112002-03-28 Michael Snyder <msnyder@redhat.com>
10412
10413 * symfile.c (symbol_file_add): Move test for null symbols to later.
10414
520f6ade
AC
104152002-03-27 Andrew Cagney <ac131313@redhat.com>
10416
10417 From veksler at il.ibm.com:
10418 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10419 the xstrduped original path.
10420 Fix PR gdb/417.
10421
d4654627
MS
104222002-03-27 Michael Snyder <msnyder@redhat.com>
10423
10424 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10425 * infcmd.c (_initialize_infcmd): Ditto.
10426 * language.c (_initialize_language): Ditto.
10427 * symfile.c (_initialize_symfile): Ditto.
10428 * top.c (_init_main): Ditto.
10429 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10430
6be8bc0c
EZ
104312002-03-27 Elena Zannoni <ezannoni@redhat.com>
10432
10433 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10434 vector registers handling.
10435 (skip_prologue): Handle new AltiVec instructions. Fill in new
10436 fields of frame data.
10437 (frame_get_saved_regs): Fill in information for AltiVec registers.
10438
12af6855
JB
104392002-03-27 Jim Blandy <jimb@redhat.com>
10440
10441 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10442 a function; leave this macro here to invoke that function.
10443 (symbol_init_mangled_name): Declaration for that function.
10444 * symtab.c (symbol_init_mangled_name): New function.
10445
dc672865
AC
104462002-03-27 Andrew Cagney <ac131313@redhat.com>
10447
10448 * valarith.c: Replace strerror with safe_strerror.
10449 * tracepoint.c: Ditto.
10450 * lin-lwp.c: Ditto.
10451 * go32-nat.c: Ditto.
10452 * inflow.c: Ditto.
10453 * gnu-nat.c: Ditto.
10454
d96429cd
AS
104552002-03-27 Andreas Schwab <schwab@suse.de>
10456
10457 * event-top.c (command_line_handler): Remove useless if.
10458
7e336ba1
AJ
104592002-03-27 Andreas Jaeger <aj@suse.de>
10460
10461 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10462 comment.
10463
de220d0f
ML
104642002-03-27 Michal Ludvig <mludvig@suse.cz>
10465
10466 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10467 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10468 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10469 (x86_64_linux_dr_get_status, supply_gregset),
10470 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10471 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10472 (x86_64_register_info_table): Add.
10473 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10474 (x86_64_register_raw_size, x86_64_register_virtual_type),
10475 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10476 general x86_64_register_info_table.
10477 (i386_gdbarch_init): gdbarch_register_bytes is now set
10478 dynamicaly during initialization.
10479 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10480 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 10481
0e98d0a7
DJ
104822002-03-27 Daniel Jacobowitz <drow@mvista.com>
10483
10484 * gdbserver/server.c (main): Call target_signal_to_host_p
10485 and target_signal_to_host on signals received from the remote.
10486 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10487 target_signal_from_host on signals sent to the remote.
10488 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10489 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10490
3130066b
DJ
104912002-03-27 Daniel Jacobowitz <drow@mvista.com>
10492
10493 * signals/signals.c: Include "server.h" in gdbserver build.
10494 (target_signal_from_name): Don't use STREQ.
10495 (_initialize_signals): Likewise. Don't include function in
10496 gdbserver build.
10497
9aedf4f4
DJ
104982002-03-27 Daniel Jacobowitz <drow@mvista.com>
10499
10500 * signals.c: Moved to...
10501 * signals/signals.c: Here.
7e336ba1 10502 * Makefile (signals.o): Update.
9aedf4f4 10503
3fa41cdb
JL
105042002-03-26 Jeff Law (law@redhat.com)
10505
10506 * somread.c (som_symtab_read): Remove some commented out code and
10507 updated related comments. Do not set the minimal symbol table to
10508 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10509 in a dynamic executable.
10510 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10511 where we are unable to find the minimal symbol for the given
10512 PC value.
10513
ee677e8d
MS
105142002-03-25 Jeff Law (law@redhat.com)
10515
10516 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10517
e76e1718
ML
105182002-03-25 Michal Ludvig <mludvig@suse.cz>
10519
10520 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10521
18a642a1
AC
105222002-03-23 Andrew Cagney <ac131313@redhat.com>
10523
10524 * command.h: Update copyright.
10525 (struct cmd_list_element): Replace definition with opaque
10526 declaration.
10527 (enum cmd_types): Document that it will eventually be moved to
10528 cli/cli-decode.h
10529 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10530 (MALLOCED_REPLACEMENT): Delete macro.
10531 * Makefile.in (cli_decode_h): Add $(command_h).
10532 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 10533 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
10534 * completer.c: Include "cli/cli-decode.h".
10535 * maint.c: Include "cli/cli-decode.h".
10536 * cli/cli-decode.h: Include "command.h".
10537 (enum command_class): Delete.
10538 (enum cmd_types): Comment out.
10539 (enum cmd_auto_boolean): Delete.
10540 (enum var_types): Delete.
10541
b2875cc0
AC
105422002-03-23 Andrew Cagney <ac131313@redhat.com>
10543
10544 * cli/cli-decode.c: Include "gdb_assert.h".
10545 (add_set_or_show_cmd): New static function.
10546 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10547 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10548 all fields, such as func, from the set command.
10549
3b45974e
AC
105502002-03-23 Andrew Cagney <ac131313@redhat.com>
10551
10552 * MAINTAINERS (sh-elf): Change warning flag to -w.
10553
823ca731
AC
105542002-03-23 Andrew Cagney <cagney@redhat.com>
10555
10556 * defs.h (error): Add printf format attribute.
10557 * thread-db.c (thread_from_lwp): Fix error format string.
10558 * stack.c (parse_frame_specification): Ditto.
10559 * cli/cli-decode.c (undef_cmd_error): Ditto.
10560 * scm-lang.c (scm_lookup_name): Ditto.
10561 * tracepoint.c (trace_error): Ditto.
10562 * remote-utils.c (usage): Ditto.
10563 * remote.c (compare_sections_command): Ditto.
10564 Fix PR gdb/328.
10565
0e101458
AC
105662002-03-22 Andrew Cagney <ac131313@redhat.com>
10567
10568 * gdbtypes.c (append_composite_type_field): New function.
10569 (init_composite_type): New function.
10570 * gdbtypes.h (append_composite_type_field): Declare.
10571 (init_composite_type): Ditto.
10572
8e0662df
EZ
105732002-03-22 Elena Zannoni <ezannoni@redhat.com>
10574
10575 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 10576 function.
8e0662df
EZ
10577 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10578 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10579 structure returning convention for SYSV ABI case, but not
10580 for GNU/Linux, FreeBSD, or NetBSD.
10581
3121eff0
DJ
105822002-03-22 Daniel Jacobowitz <drow@mvista.com>
10583
10584 * symtab.h (lookup_block_symbol): Add mangled_name argument
10585 to prototype.
10586
10587 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10588 with new mangled_name argument.
10589 * linespec.c (decode_line_1): Likewise.
10590 * valops (value_of_this): Likewise.
10591 * symtab.c (lookup_transparent_type): Likewise.
10592 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10593 (lookup_symbol): If we are given a mangled name, pass it down
10594 to lookup_symbol_aux.
10595 (lookup_block_symbol): If we are given a mangled name to check
10596 against, only return symbols which match it.
10597
349b409f
CF
105982002-03-22 Christopher Faylor <cgf@redhat.com>
10599
10600 * win32-nat.c (child_create_inferior): Check for proper shell to use
10601 here, in case the user changes it on the fly.
10602 (_initialize_inftarg): Remove shell path considerations.
10603
2a873819
EZ
106042002-03-21 Elena Zannoni <ezannoni@redhat.com>
10605
10606 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10607 for gdbarch_max_register_raw_size and max_register_virtual_size.
10608 Adjust copyright year.
10609
a1b9830c
DJ
106102002-03-21 Daniel Jacobowitz <drow@mvista.com>
10611
10612 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10613 in a function to cover the entire beginning of the function
10614 as well if it does not already.
10615
8b5790f2
TR
106162002-03-21 Tom Rix <trix@redhat.com>
10617
10618 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10619 (rs6000_ptrace64): Renamed from ptrace64.
10620
bdbe5747
MH
106212002-03-20 Martin M. Hunt <hunt@redhat.com>
10622
10623 * gdbserver/remote-utils.c (remote_open): Don't call
10624 getprotobyname, we're all using TCP here so just use
10625 IPPROTO_TCP.
7e336ba1 10626 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
10627
106282002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 10629
bdbe5747
MH
10630 * regcache.c (_initialize_regcache): No need to call
10631 build_regcache() at this time; it gets called whenever
10632 the gdbarch changes.
10633
7781cd62
DB
106342002-03-20 David O'Brien <obrien@FreeBSD.org>
10635
10636 * sparc-nat.c: Include sys/param.h where possible.
10637
f65ca430
DJ
106382002-03-20 Daniel Jacobowitz <drow@mvista.com>
10639
10640 Fix PR gdb/422.
10641 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10642 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10643 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10644 complex types.
10645 * stabsread.c (rs6000_builtin_type): Likewise.
10646 (read_sun_floating_type): Likewise.
10647
0c867556
PS
106482002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10649
10650 * stabsread.c (read_member_functions): Remove skip code for duplicate
10651 constructor/destructor methods. Use standard parsing for these
10652 methods and just do not chain them to the list of methods after
10653 parsing.
10654
12b9c64f
AO
106552002-03-19 Alexandre Oliva <aoliva@redhat.com>
10656
10657 * coffread.c: Remove redundant static declarations. Replace
10658 occurrences of `PTR' with `void *'.
10659 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10660 * top.h (quit_cover): Likewise.
10661 * defs.h (catch_errors): Likewise.
10662
349c5d5f
AC
106632002-03-18 Andrew Cagney <ac131313@redhat.com>
10664
10665 * defs.h (XMALLOC): Define.
10666 * gdb-events.sh (XMALLOC): Delete macro.
10667 * gdb-events.c, gdb-events.h: Regenerate.
10668 * gdbarch.sh (XMALLOC): Delete macro.
10669 * gdbarch.c: Regenerate.
10670 * serial.c (XMALLOC): Delete macro.
10671 * ui-file.c (XMALLOC): Ditto.
10672 * ser-unix.h (XMALLOC): Ditto.
10673 * sh-tdep.c (XMALLOC): Ditto.
10674 * ui-out.c (XMALLOC): Ditto.
10675 * utils.c (XMALLOC): Ditto.
10676 * i386-tdep.c (XMALLOC): Ditto.
10677 * gdb-events.c (XMALLOC): Ditto.
10678 * d10v-tdep.c (XMALLOC): Ditto.
10679 * cli-out.c (XMALLOC): Ditto.
10680
10681 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10682 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10683 * ui-file.c, ui-out.c: Ditto.
10684
7d0766f3
AC
106852002-03-18 Andrew Cagney <ac131313@redhat.com>
10686
10687 * command.h (struct cmd_list_element): Add field context.
10688 (set_cmd_context, get_cmd_context): Declare.
10689 * cli/cli-decode.h: Ditto.
10690 * cli/cli-decode.c (get_cmd_context): New function.
10691 (set_cmd_context): New function.
10692 (add_cmd): Initialize context.
10693 Part of fixing PR gdb/145 and PR gdb/146.
10694
5913bcb0
AC
106952002-03-17 Andrew Cagney <ac131313@redhat.com>
10696
1868c04e
AC
10697 * cli/cli-decode.c (cmd_type): New function.
10698 * command.h (cmd_type): Declare.
10699 * infrun.c (set_schedlock_func): Call function cmd_type.
10700 * kod.c (kod_set_os): Call cmd_type.
10701 * cris-tdep.c (cris_version_update): Use function cmd_type.
10702 (cris_mode_update, cris_abi_update): Ditto.
10703
5913bcb0
AC
10704 * command.h: (execute_cmd_post_hook): Declare.
10705 (execute_cmd_pre_hook): Declare.
10706 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10707 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10708 functions. Execute pre/post hook while ensuring that afterwords
10709 hook_in is cleared.
10710 * top.c (execute_command): Use execute_cmd_post_hook, and
10711 execute_cmd_pre_hook to execute pre/post commands.
10712 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10713 hook_stop_stub.
10714 (hook_stop_stub): Call execute_cmd_pre_hook.
10715
b51450c9
AC
107162002-03-17 Andrew Cagney <ac131313@redhat.com>
10717
10718 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10719 set'' and this leads to a core dump. Move xstrdup of
10720 operating_system to after check that it is not NULL.
10721
f66c9f11
AC
107222002-03-17 Andrew Cagney <ac131313@redhat.com>
10723
8e694ecf
AC
10724 * kod.c (kod_set_os): Remove unnecessary check that
10725 ``command->type'' is set_cmd.
10726
f66c9f11
AC
10727 * valprint.c (set_input_radix): Use input_radix.
10728 (set_output_radix): Use output_radix.
10729 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10730 isn't reverted.
10731
9d01611c
AC
107322002-03-16 Andrew Cagney <ac131313@redhat.com>
10733
10734 * value.h (struct value): Delete field ``substring_addr''. Change
10735 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
10736 force_core_addr_align and force_pointer_aligh.
10737
10738 * value.h (struct value): Fix typo in above change.
9d01611c 10739
4156bb53
PS
107402002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10741
10742 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10743 to fix internal_error from ``maintenance print architecture''.
10744
0e5e3ea6
PS
107452002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10746
10747 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10748 for gcc versions after gcc-2.8.1.
10749
9b013045
PS
107502002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10751
10752 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10753 for method resolution. Restore adjustment of ``this'' pointer after
10754 calling value_struct_elt, which was accidentally removed during the
10755 HP merge.
10756
376c9600
AC
107572002-03-15 Andrew Cagney <ac131313@redhat.com>
10758
10759 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10760 value_of_register.
10761 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10762 get_saved_register.
10763 * value.h (value_of_register): Update.
10764
a4db0f07
RH
107652002-03-14 Richard Henderson <rth@redhat.com>
10766
10767 * configure.in: Detect declaration for canonicalize_file_name.
10768 * utils.c (canonicalize_file_name): Declare, if needed.
10769 (gdb_realpath): Prefer realpath if available and usable.
10770 * config.in, configure: Rebuild.
10771
96383835
RH
107722002-03-14 Richard Henderson <rth@redhat.com>
10773
10774 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10775 a constant array bound.
10776
10777 * MAINTAINERS: Add myself to write-after-approval.
10778
75245b24
MS
107792002-03-14 Michael Snyder <msnyder@redhat.com>
10780
10781 * symfile.c (syms_from_objfile): Return immediately if no syms.
10782 (symbol_file_add): Return immediately if no syms.
10783 (find_sym_fns): Return immediately if no syms.
10784
e641a1ca
ML
107852002-03-13 Michal Ludvig <mludvig@suse.cz>
10786
10787 * gdbserver/remote-util.c (remote_open): Print remote-side's
10788 IP address when remote debugging over the network.
7e336ba1 10789
df08bfec
DB
107902002-03-12 David O'Brien <obrien@FreeBSD.org>
10791
10792 * config/sparc/fbsd.mh: Fix copyright.
10793 * config/sparc/fbsd.mt: Likewise.
10794
9a57864f
RE
107952002-03-11 Richard Earnshaw <rearnsha@arm.com>
10796
10797 * MAINTAINERS: Fix typo in name of gdb warnings option.
10798 (x86-64): Fix formating so that this can be parsed by awk.
10799
dd7bf85e
DJ
108002002-03-10 Daniel Jacobowitz <drow@mvista.com>
10801
10802 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10803 * defs.h: Include "gdb/signals.h".
10804 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10805
33a0a2ac
ML
108062002-03-10 Michal Ludvig <mludvig@suse.cz>
10807
10808 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 10809 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
10810 from x86-64-tdep.h
10811
dd824b04
DJ
108122002-03-10 Daniel Jacobowitz <drow@mvista.com>
10813 Don Howard <dhoward@redhat.com>
10814
10815 * mips-tdep.c (ST0_FR): Define.
10816 (mips2_fp_compat): New function, temporarily disabled.
10817 (mips_read_fp_register_single): New function.
10818 (mips_read_fp_register_double): New function.
10819 (mips_print_register): Use them.
10820 (do_fp_register_row): Likewise.
10821
6a41ff59
AC
108222002-03-09 Andrew Cagney <ac131313@redhat.com>
10823
10824 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10825 approval''.
10826
4ea09c10
PS
108272002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10828
10829 * stabsread.c (read_member_functions): Fix is_stub test for
10830 static member functions, improve comment.
10831
6ccc741d
RE
108322002-03-07 Richard Earnshaw <rearnsha@arm.com>
10833
10834 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10835 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10836 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10837 commands that set boolean values.
10838 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10839 (arm_rdi_resume): Always initialize PC.
10840 (arm_rdi_open): Don't use rslt as a boolean.
10841 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10842 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10843 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10844 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10845
438013df
AO
108462002-03-06 Alexandre Oliva <aoliva@redhat.com>
10847
10848 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10849 * configure: Rebuilt.
10850
70ed8774
SC
108512002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10852
10853 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10854 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10855
5ba2abeb
AC
108562002-03-06 Andrew Cagney <ac131313@redhat.com>
10857
10858 * cli/cli-decode.c (set_cmd_completer): New function.
10859 * command.h (set_cmd_completer): Declare.
10860 * cli/cli-decode.h (set_cmd_completer): Ditto.
10861
10862 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10863 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10864 * win32-nat.c (_initialize_inftarg): Ditto.
10865 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10866 * proc-api.c (_initialize_proc_api): Ditto.
10867 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10868 * source.c (_initialize_source): Ditto.
10869 * exec.c (_initialize_exec): Ditto.
10870 * solib.c (_initialize_solib): Ditto.
10871 * top.c (init_main): Ditto.
10872 * tracepoint.c (_initialize_tracepoint): Ditto.
10873 * symfile.c (_initialize_symfile): Ditto.
10874 * printcmd.c (_initialize_printcmd): Ditto.
10875 * infcmd.c (_initialize_infcmd): Ditto.
10876 * corefile.c (_initialize_core): Ditto.
10877
f779ca99
AC
108782002-03-05 Andrew Cagney <ac131313@redhat.com>
10879
10880 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10881
01a3934b
AC
108822002-03-05 Andrew Cagney <ac131313@redhat.com>
10883
10884 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10885
37057839
AC
108862002-03-05 Andrew Cagney <ac131313@redhat.com>
10887
10888 * NEWS: Update headings, 5.2 has branched.
10889
c6ecbae5
DJ
108902002-03-04 Daniel Jacobowitz <drow@mvista.com>
10891
10892 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10893 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10894 (register_addr, REGISTER_RAW_SIZE): Likewise.
10895 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10896 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10897
e9f30c21
ML
108982002-03-03 Michal Ludvig <mludvig@suse.cz>
10899
10900 * MAINTAINERS (x86-64): Add myself.
10901 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10902 changed value_ptr -> struct value *
10903
54394ac3
DB
109042002-03-01 David O'Brien <obrien@FreeBSD.org>
10905
10906 * configure.host (sparc64-*-freebsd): Add.
10907 * configure.tgt: Likewise.
10908 * config/sparc/fbsd.mh: New file.
10909 * config/sparc/fbsd.mt: Likewise.
10910 * config/sparc/nm-fbsd.h: Likewise.
10911 * config/sparc/tm-fbsd.h: Likewise.
10912
bfe95955
DJ
109132002-03-01 Daniel Jacobowitz <drow@mvista.com>
10914
10915 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10916 regformats/reg-s390x.dat.
10917
f33c6cbf
AC
109182002-03-01 Andrew Cagney <ac131313@redhat.com>
10919
10920 * utils.c: Add FIXME explaining true/false problem.
10921
5ecaa7dd
AC
109222002-02-28 Andrew Cagney <ac131313@redhat.com>
10923
10924 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10925
2a251cc2
MC
109262002-02-28 Michael Chastain <mec@shout.net>
10927
10928 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10929
6a8031a3 109302002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
10931
10932 * gdbserver/linux-s390-low.c: New file.
10933 * regformats/reg-s390.dat: New file.
10934 * regformats/reg-s390x.dat: New file.
10935 * gdbserver/configure.srv: Add S/390.
10936 * gdbserver/Makefile.in: Add S/390.
10937 * configure.tgt: Enable gdbserver for S/390.
10938
ac469903
EZ
109392002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10940
10941 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10942 first line of the doc string for "info dos", except at the end of
10943 the sentence, since the short help stops at the first period.
10944
985cb1a3
JM
109452002-02-28 Jason Merrill <jason@redhat.com>
10946
10947 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10948
c570663e
FF
109492002-02-27 Fred Fish <fnf@redhat.com>
10950
10951 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10952 comment (dumy -> dummy).
10953
43630227
PS
109542002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10955
10956 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10957
b84911e8
RB
109582002-02-27 Rodney Brown <rbrown64@csc.com.au>
10959
10960 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10961
58caa3dc
DJ
109622002-02-27 Daniel Jacobowitz <drow@mvista.com>
10963
10964 * gdbserver/acconfig.h: New file.
10965 * gdbserver/i387-fp.c: New file.
10966 * gdbserver/i387-fp.h: New file.
10967 * gdbserver/linux-x86-64.c: New file.
10968 * regformats/reg-x86-64.dat: New file.
10969 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10970 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10971 * gdbserver/configure.in: Add support for regsets.
10972 * gdbserver/config.in: Regenerate.
10973 * gdbserver/configure: Regenerate.
10974 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10975 * gdbserver/linux-low.h: New file.
10976 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10977 for regsets.
10978 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10979 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10980 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10981 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10982 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10983 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10984 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10985 "i387-fp.h". Add PTRACE_GETREGS and friends.
10986 * gdbserver/regcache.c (supply_register): New function.
10987 (supply_register_by_name): New function.
10988 (collect_register): New function.
10989 (collect_register_by_name): New function.
10990
93652174
DJ
109912002-02-27 Daniel Jacobowitz <drow@mvista.com>
10992
10993 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10994 (config.status): Add configure.srv dependency.
10995 (server_h): Add config.h dependency.
10996
a02e4a61
DJ
109972002-02-27 Daniel Jacobowitz <drow@mvista.com>
10998
10999 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11000 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11001 * gdbserver/configure.srv: Change i386-*-linux* to use
11002 reg-i386-linux.o.
11003
ce0eebec
AC
110042002-02-26 Andrew Cagney <ac131313@redhat.com>
11005
11006 * x86-64-tdep.c: Re-indent. Update copyright date.
11007
82dbc5f7
AC
110082002-02-26 Andrew Cagney <ac131313@redhat.com>
11009
11010 From Michal Ludvig <mludvig@suse.cz>:
11011 * x86-64-tdep.c (value.h): Delete.
11012 (gdb_assert.h): Include.
11013 (x86_64_register_convert_to_virtual,
11014 x86_64_register_convert_to_raw ): Add check which lets only
11015 floating-point values to be converted.
11016 (value_push): Delete.
11017 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11018 (i386_gdbarch_init): Number of register_bytes fixed.
11019
e4621584
AC
110202002-02-26 Andrew Cagney <ac131313@redhat.com>
11021
11022 * MAINTAINERS: Add x86-64 target.
11023
81a9a963
AC
110242002-02-26 Andrew Cagney <ac131313@redhat.com>
11025
11026 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11027 * osfsolib.c (solib_map_sections): Ditto.
11028 * irix5-nat.c (solib_map_sections): Ditto.
11029 * corelow.c (gdb_check_format): Ditto.
11030 * symfile.c (symfile_bfd_open): Ditto.
11031 * solib.c (solib_map_sections): Ditto.
11032 Fix PR gdb/354.
7e336ba1 11033
0f017ab9
AC
110342002-02-26 Andrew Cagney <ac131313@redhat.com>
11035
11036 * remote.c (_initialize_remote): By default, disable ``e'' and
11037 ``E'' step out-of-range packets.
11038
75738c29
AS
110392002-02-26 Andreas Schwab <schwab@suse.de>
11040
11041 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11042 m68k_linux_frame_saved_pc.
11043 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11044 in_sigtramp.
11045 (SIGCONTEXT_PC_OFFSET): Remove.
11046 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11047 m68k_linux_sigtramp_saved_pc): New functions.
11048 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11049 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11050 (UCONTEXT_PC_OFFSET): Define.
11051 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11052 non-RT and RT signal trampolines.
11053
7e8ed687
RE
110542002-02-26 Richard Earnshaw <rearnsha@arm.com>
11055
11056 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11057 (TARGET_NBPG, STACK_END_ADDR): Delete
11058 (VARIABLES_INSIDE_BLOCK): Delete.
11059
6972bc8b
AC
110602002-02-25 Andrew Cagney <ac131313@redhat.com>
11061
11062 * utils.c (perror_with_name): Make string parameter constant.
11063 (print_sys_errmsg): Ditto.
11064 (query): Ditto.
11065 * defs.h (perror_with_name): Update.
11066 (print_sys_errmsg): Update.
11067 (query): Update.
11068
aa32f823
DJ
110692002-02-25 Daniel Jacobowitz <drow@mvista.com>
11070
11071 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11072 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11073
19caaa45
PS
110742002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11075
11076 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11077 if it already matches the current architecture from the exec file.
11078 Include arch-utils.h for gdbarch_info_init prototype.
11079 * Makefile.in (rs6000-nat.o): Update dependencies.
11080
d951901f
EZ
110812002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11082
11083 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11084 list of exported variables.
11085
7ea81414
DJ
110862002-02-24 Daniel Jacobowitz <drow@mvista.com>
11087
11088 * gdbserver/configure.srv: New file.
11089 * gdbserver/configure.in: Use configure.srv instead
11090 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11091 from it.
11092 * gdbserver/configure: Regenerated.
11093 * gdbserver/terminal.h: New file.
11094 * gdbserver/Makefile.in: Update for configure changes. Remove
11095 more unneeded include paths.
11096
080fe24b
AC
110972002-02-24 Andrew Cagney <ac131313@redhat.com>
11098
11099 From wiz at danbala:
11100 * config/sparc/tm-sp64.h: Fix grammar and typos.
11101 Fix PR gdb/287.
11102
8605d56e
AC
111032002-02-24 Andrew Cagney <ac131313@redhat.com>
11104
11105 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
11106 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11107 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11108 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
11109 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11110 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11111 * s390-tdep.c: Ditto.
92362027
AC
11112 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11113 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11114 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11115 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11116 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11117 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11118 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11119 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11120 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11121 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 11122 Fix PR gdb/378.
7e336ba1 11123
8ed32cc0
AC
111242002-02-23 Andrew Cagney <ac131313@redhat.com>
11125
a3007b6f
AC
11126 * lin-thread.c: Delete file.
11127 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11128 to gdb_proc_service.h.
11129 * configure: Re-generate.
11130
50a9e2f1
AC
11131 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11132 * serial.c (serial_open): Delete check for "ocd".
11133 Fix PR gdb/349.
11134
8b6e7932
AC
11135 * Makefile.in (linux-thread.o): Delete target.
11136 * linux-thread.c: Delete file.
11137
d155c46b
AC
11138 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11139 renamed SH files to be consistent.
11140
8ed32cc0
AC
11141 * symtab.c (sort_search_symbols): Use xfree.
11142
0e18d038
RE
111432002-02-23 Richard Earnshaw <rearnsha@arm.com>
11144
11145 * arm-linux-tdep.c (arm_linux_init_abi): Register
11146 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11147 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11148 definition with undef, since we don't want the sysvr4 definition.
11149 (SKIP_TRAMPOLINE_CODE): Likewise.
11150
27aac7ff
AC
111512002-02-23 Andrew Cagney <ac131313@redhat.com>
11152
11153 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11154
11155 * configure.in: (AC_CHECK_FUNCS) Added test for
11156 canonicalize_file_name Regenerated.
11157 * config.in, configure: Regenerated.
11158 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11159 defined use canonicalize_file_name.
7e336ba1 11160
65a6e0ee
MC
111612002-02-23 Michael Chastain <mec@shout.net>
11162
11163 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11164
47b95330
AC
111652002-02-23 Andrew Cagney <ac131313@redhat.com>
11166
11167 * README: Remove references to cygnus.com.
11168 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11169 dot com'' form. Remove references to cygnus.com and sourceware.
11170
696f451b
AC
111712002-02-23 Andrew Cagney <ac131313@redhat.com>
11172
11173 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11174 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11175 1003.1-2001 no longer allows "head -1".
11176 * gdb/Makefile.in (version.c): Likewise.
11177 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11178 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11179 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11180
bbaca940
AC
111812002-02-23 Andrew Cagney <ac131313@redhat.com>
11182
11183 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11184 * command.h (cmd_cfunc_eq): Declare.
11185 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11186
11187 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11188 ``struct cmd_list_element *''.
11189 * cli/cli-cmds.c (is_complete_command): Update. Use
11190 cmd_cfunc_eq.
11191 * top.c (execute_command): Pass the command to
11192 is_complete_command.
11193 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11194
b8b8b047
AC
111952002-02-23 Andrew Cagney <ac131313@redhat.com>
11196
11197 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11198 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11199 architecture defines.
11200 * s390-tdep.c (s390_gdbarch_init): Likewise.
11201
19d3fc80
RE
112022002-02-23 Richard Earnshaw <rearnsha@arm.com>
11203
11204 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11205 (arm_linux_push_arguments): Likewise.
11206 (arm_linux_init_abi): Register them. Also register linux-specific
11207 call_dummy_words.
11208 (find_minsym_and_objfile): Use strcmp, not STREQ.
11209 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11210 (arm_linux_call_dummy_words): Delete declaration.
11211 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11212 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11213 declarations.
11214 (LOWEST_PC): Delete.
11215
3ab13650
PS
112162002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11217
11218 * maint.c (print_section_info): Do not prepend `0x' to filepos
11219 output, it will be handled by local_hex_string_custom.
11220
19d3fc80 112212002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
11222
11223 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11224 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11225 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11226
d85a5daf
JB
112272002-02-22 Jim Blandy <jimb@redhat.com>
11228
11229 Indicate that the bcache functions don't change the strings
11230 they're passed.
11231 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11232 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11233
eeb25b8a
PM
112342002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11235
11236 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11237
6badb179
CF
112382002-02-21 Christopher Faylor <cgf@redhat.com>
11239
11240 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11241 find the complete path to a loaded DLL.
11242
e8717518
FF
112432002-02-21 Fred Fish <fnf@redhat.com>
11244
11245 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11246 that marks the end of the range of a function, enter a line number
11247 entry that has a line number of zero and a PC offset that matches
11248 the end of the function. This starts a range of PC's for which no
11249 line number information is known.
11250 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11251 PC's for which no line number info is found (line number is zero)
11252 then we didn't find any valid line information.
11253 * symtab.h: Document use of zero line number entry.
11254
9abe5450
EZ
112552002-02-21 Elena Zannoni <ezannoni@redhat.com>
11256
11257 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11258 (have_ptrace_getvrregs): Define for run time checks.
11259 (gdb_vrregset_t): New type for Altivec register handling.
11260 (fetch_register, store_register): Fetch/store altivec register
11261 when needed.
11262 (fetch_altivec_register, store_altivec_register): New functions.
11263 (supply_vrregset, fill_vrregset): New functions.
11264 (fetch_altivec_registers, store_altivec_registers): New functions.
11265 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11266 registers as well.
11267
aaa38bb5
AJ
112682002-02-21 Jiri Smid <smid@suse.cz>
11269
11270 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11271
b34db576
RE
112722002-02-21 Richard Earnshaw <rearnsha@arm.com>
11273
11274 * Makefile.in (armnbsd-nat.o): Update dependencies.
11275 * armnbsd-nat.c (supply_gregset): New function. Common code to
11276 supply the integer register set.
11277 (supply_fparegset): New function. Similar for FPA registers.
11278 (fetch_regs, fetch_fp_regs): Use them.
11279 (fetch_core_registers): Likewise.
11280 (fetch_elfcore_registers): New function.
11281 (arm_netbsd_elfcore_fns): New core-file type specification.
11282 (_initialize_arm_netbsd_nat): Register it.
11283
3e56fc4b
RE
112842002-02-21 Richard Earnshaw <rearnsha@arm.com>
11285
11286 * armnbsd-nat.c: Include gdbcore.h.
11287 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11288 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11289 'void' to declaration, to shut up ARI.
11290 (fetch_core_registers): Make static. Rewrite using supply_register.
11291 (arm_netbsd_core_fns): New core-file type specification.
11292 (_initialize_arm_netbsd_nat): New function.
11293
097f6b0b
CF
112942002-02-21 Christopher Faylor <cgf@redhat.com>
11295
11296 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11297 value.
11298
c914e0cc
CF
112992002-02-20 Christopher Faylor <cgf@redhat.com>
11300
11301 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11302 fails.
11303
385fa495
DJ
113042002-02-20 Daniel Jacobowitz <drow@mvista.com>
11305
11306 * jv-exp.y (parse_number): Change type of implicit longs
11307 to builtin_type_uint64.
11308
e5f1222d
DJ
113092002-02-20 Daniel Jacobowitz <drow@mvista.com>
11310
11311 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11312 to be an integer instead of a `union wait'.
11313
75c9abc6
DJ
113142002-02-20 Daniel Jacobowitz <drow@mvista.com>
11315
11316 * mips-linux-nat.c: Call the operating system GNU/Linux.
11317 * mips-linux-tdep.c: Likewise.
11318 * mips-tdep.c: Likewise.
11319
551792a5
DJ
113202002-02-20 Daniel Jacobowitz <drow@mvista.com>
11321
11322 Fix PR gdb/265.
11323 * jv-exp.y (parse_number): Handle 64-bit integers.
11324
ee6e2b82
DJ
113252002-02-20 Daniel Jacobowitz <drow@mvista.com>
11326
11327 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11328 AC_STDC_HEADERS to AC_HEADER_STDC.
11329 * gdbserver/configure: Regenerated.
11330
a48442a0
RE
113312002-02-20 Richard Earnshaw <rearnsha@arm.com>
11332
11333 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11334 is defined.
11335 * sparc-tdep.c (get_longjmp_target): Likewise.
11336
fe419ffc
RE
113372002-02-20 Richard Earnshaw <rearnsha@arm.com>
11338
11339 * News: Add news about ARM and Multi-arch. Mention the new target
11340 arm*-*-netbsd*.
11341
5832ed7e
JB
113422002-02-19 Jim Blandy <jimb@redhat.com>
11343
11344 * stabsread.c (error_type_complaint): Improve error message.
11345
84563040
DJ
113462002-02-19 Daniel Jacobowitz <drow@mvista.com>
11347
11348 * gdbserver/README: Update documentation.
11349 * gdbserver/configure.in: Update configury to match documentation.
11350 * gdbserver/Makefile.in: Likewise.
11351 * gdbserver/configure: Regenerated.
11352 * gdbserver/aclocal.m4: New file, generated by aclocal.
11353 * gdbserver/config.in: New file, generated by autoheader.
11354
375fd65b
RE
113552002-02-19 Richard Earnshaw <rearnsha@arm.com>
11356
11357 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11358 armnbsd-nat.c.
11359
08216dd7
RE
113602002-02-19 Richard Earnshaw <rearnsha@arm.com>
11361
11362 * arm-tdep.h (enum arm_float_model): New enum.
11363 (struct gdbarch_tdep): Add fp_model.
11364 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11365 up floating-point conversions until we know the floating-point model
11366 in use by the inferior. Don't complain about being unable to
11367 determine the ABI of the inferior when we don't have one.
11368 (arm_extract_return_value): Support different floating-point models.
11369 (arm_store_return_value): Likewise.
aaa38bb5 11370 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
11371 ARM_FLOAT_SOFT.
11372 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11373
65d6d66a
PS
113742002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11375
11376 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11377 of ``current_gdbarch''.
11378
47221191
RE
113792002-02-19 Richard Earnshaw <rearnsha@arm.com>
11380
11381 * armnbsd-nat.c : ANSIfy all function declarations.
11382 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11383 (fetch_inferior_registers): Re-implement in terms of above.
11384 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11385 (store_inferior_registers): Re-implement in terms of above.
11386
fdf39c9a
RE
113872002-02-19 Richard Earnshaw <rearnsha@arm.com>
11388
aaa38bb5 11389 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
11390 kernel.
11391 * arm-linux-tdep.c: Likewise.
11392 * config/arm/tm-linux.h: Likewise.
11393
93247f88
RE
113942002-02-19 Richard Earnshaw <rearnsha@arm.com>
11395
11396 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11397 * config/arm/nbsd.mt (TM_FILE): Delete.
11398 * config/arm/tm-nbsd.h: Delete.
11399
d7b486e7
RE
114002002-02-19 Richard Earnshaw <rearnsha@arm.com>
11401
11402 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11403 Initialize CALL_DUMMY_LENGTH.
11404
41d39a95
RE
114052002-02-19 Richard Earnshaw <rearnsha@arm.com>
11406
11407 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11408 function.
11409 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11410 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11411 defines one thing and that is incorrect for this port.
11412 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11413
e1195560
PM
114142002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11415
11416 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11417
c1748f97
PM
114182002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11419
11420 * win32-nat.c (display_selector): New function. Displays information
11421 about the information returned by GetThreadSelectorEntry API function.
11422 (display_selectors): New function. Displays the infomation of
11423 the selector given as argument, or of CS, DS ans FS selectors
11424 if no argument is given.
11425 ( _initialize_inftarg): Add "w32" as info prefix command.
11426 Add "info w32 selector" as command calling display_selectors.
11427
e41e6bbf
PM
114282002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11429
11430 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11431 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11432 if not defined.
11433
0d3a9f48
RE
114342002-02-18 Richard Earnshaw <rearnsha@arm.com>
11435
11436 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11437
3fb4b924
RE
114382002-02-18 Richard Earnshaw <rearnsha@arm.com>
11439
11440 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11441 (arm_fix_call_dummy): Call it.
11442 (arm_call_dummy_breakpoint_offset): Delete.
11443 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11444 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11445
7f55af32
AC
114462002-02-18 Andrew Cagney <ac131313@redhat.com>
11447
11448 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11449 Default to func_frame_chain_valid.
11450 * gdbarch.h, gdbarch.c: Re-generate.
11451 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11452
05f13b9c
EZ
114532002-02-18 Elena Zannoni <ezannoni@redhat.com>
11454
11455 * ppc-linux-nat.c: Update copyright.
11456 (fetch_register, store_register): Add tid parameter, don't compute
11457 tid here.
11458 (fetch_ppc_registers, store_ppc_registers): Add tid
11459 parameter. Pass it along to callees.
11460 (fetch_inferior_registers, store_inferior_registers): Compute tid
11461 here, and pass it to calleed functions.
11462 (fill_gregset, supply_fpregset): Clean up formatting.
11463
d7afb4c9
RE
114642002-02-18 Richard Earnshaw <rearnsha@arm.com>
11465
11466 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11467 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11468
9df628e0
RE
114692002-02-18 Richard Earnshaw <rearnsha@arm.com>
11470
11471 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11472 * gdbarch.c gdbarch.h: Regenerate.
11473 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11474 function.
11475 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11476 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11477 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11478
11479 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11480 * arm-tdep.c (arm_get_longjmp_target): New function.
11481 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11482 this to a positive value register arm_get_longjmp_target as the
11483 longjmp handler.
11484 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11485 (arm_linux_init_abi): Set up longjmp description in tdep.
11486 * armnbsd-nat.c (get_longjmp_target): Delete.
11487 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11488 description in tdep.
11489 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11490 (get_longjmp_target): Delete declaration.
11491 (GET_LONGJMP_TARGET): Delete.
11492 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11493 (GET_LONGJMP_TARGET): Delete.
11494
57bc8964
KB
114952002-02-17 Kevin Buettner <kevinb@redhat.com>
11496
11497 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11498 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11499 of ``current_gdbarch''.
11500
83d31a92
TT
115012002-02-17 Tom Tromey <tromey@redhat.com>
11502
11503 * cli/cli-cmds.c (compare_strings): New function.
11504 (complete_command): Only print each unique item once.
11505 * completer.h (complete_line): Declare.
11506 * completer.c (complete_line): New function.
11507 (line_completion_function): Use it.
11508
17ef5d92
AC
115092002-02-16 Andrew Cagney <ac131313@redhat.com>
11510
11511 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11512 * gdbarch.h, gdbarch.c: Re-generate.
11513
491b8946
DJ
115142002-02-16 Daniel Jacobowitz <drow@mvista.com>
11515
11516 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11517
115182002-02-16 Daniel Jacobowitz <drow@mvista.com>
11519
11520 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11521 * valops.c (value_arg_coerce): Don't take the address of a reference
11522 to convert an argument to a reference.
11523
dfe7f3ac
CF
115242002-02-15 Christopher Faylor <cgf@redhat.com>
11525
11526 * win32-nat.c (get_image_name): New function.
11527 (handle_load_dll): Use get_image_name function.
11528 (get_child_debug_event): Avoid registering debug events until possibly
11529 execed process is started.
11530 (child_create_inferior): Allow invocation via shell so that command
11531 line redirection, etc. works ok.
11532 (_initialize_inftarg): Add new command: "set shell" to control whether
11533 a shell is used to start a process.
11534
1d33e73a
DJ
115352002-02-15 Daniel Jacobowitz <drow@mvista.com>
11536
11537 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11538 instead of find_register_by_number.
11539 (cannot_store_register): Likewise.
11540
48cd0caa
PM
115412002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11542
aaa38bb5 11543 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
11544 fprintf_unfiltered (gdb_stderr, ...).
11545
8656e7d8
DJ
115462002-02-15 Daniel Jacobowitz <drow@mvista.com>
11547
11548 * gdbserver/gdbserver.1: Document --attach.
11549
66e810cd
RE
115502002-02-15 Richard Earnshaw <rearnsha@arm.com>
11551
11552 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11553 descriptions.
11554 * arm-tdep.c (arm_default_arm_le_breakpoint)
11555 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11556 (arm_default_thumb_be_breakpoint): New. Initialize them from
11557 traditional breakpoint defines.
11558 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11559 (arm_gdbarch_init): Initialize new breakpoint variables.
11560 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11561 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11562 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11563 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11564 code out to ...
11565 (arm_netbsd_init_abi_common): ... here; new function.
11566 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11567 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11568 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11569 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11570
97e03143
RE
115712002-02-15 Richard Earnshaw <rearnsha@arm.com>
11572
11573 * arm-tdep.h (enum arm_abi): New enum.
11574 (struct gdbarch_tdep): New structure.
11575 (LOWEST_PC): Provide a default.
11576 (arm_gdbarch_register_os_abi): Declare new function.
11577 * arm-tdep.c (arm_abi_names): New array.
11578 (process_note_abi_tag_sections): New function.
11579 (get_elfosabi): New function.
11580 (arm_gdbarch_register_os_abi): New function.
11581 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11582 support for that ABI has been built in, then call the appropriate
11583 configuration routine. Use gdbarch_num_regs() to get the number
11584 of registers.
11585 (arm_dump_tdep): New function.
11586 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11587 place-holder functions.
11588 (_initialize_arm_tdep): Register them.
11589 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11590
11591 * armnbsd-tdep.c: New file.
11592 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11593 * config/arm/nbsd.mt (TDEPFILES): Add it.
11594 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11595
11596 * armnbsd-nat.c: Include regcache.h.
11597 * Makefile.in (armnbsd-nat.o): Update dependency list.
11598
11599 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11600
ad68be46
DJ
116012002-02-14 Daniel Jacobowitz <drow@mvista.com>
11602
11603 * gdbserver/Makefile.in: Fix typos in target rules.
11604
003d6d1d
DJ
116052002-02-14 Daniel Jacobowitz <drow@mvista.com>
11606
aaa38bb5 11607 Fix part of PR gdb/267.
003d6d1d
DJ
11608 * linespec.c (find_methods): Handle constructors specially for now.
11609
6b230f1b
CV
116102002-02-14 Corinna Vinschen <vinschen@redhat.com>
11611
11612 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11613 handling.
11614 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11615 standard_coerce_float_to_double().
11616
1ea98d12
CF
116172002-02-14 Christopher Faylor <cgf@redhat.com>
11618
11619 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11620 GDBINIT_FILENAME.
11621
dd47e6fd
EZ
116222002-02-14 Elena Zannoni <ezannoni@redhat.com>
11623
11624 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11625 find_variant_by_name, because it confuses the multiarch
11626 framework. Return NULL if there isn't an architecture with the
11627 user supplied name, instead of forcing a different one without
11628 recording the change with the multiarch machinery.
11629 (find_variant_by_name): Delete.
11630
d7e39b9e
PS
116312002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11632
11633 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11634 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11635
76e42a4f
MH
116362002-02-13 Martin M. Hunt <hunt@redhat.com>
11637
aaa38bb5 11638 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
11639 print_frame_info_listing_hook, set current_source_symtab.
11640
0a30fbc4
DJ
116412002-02-14 Daniel Jacobowitz <drow@mvista.com>
11642
11643 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11644 and remove unused $(INCLUDE_DIR).
11645 Add regcache.c to OBS.
11646 Add generated register protocol files to clean target.
11647 Update dependencies for new objects, obsolete old target code.
11648
11649 * gdbserver/linux-low.c: Remove all platform-specific code to
11650 new files. Remove various dead code. Update to use regcache
11651 functionality.
11652 * gdbserver/remote-utils.c (fromhex): Add return statement
11653 to quiet warning.
11654 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11655 constant.
11656 (input_interrupt): Add integer parameter to match prototype
11657 of a signal handler.
11658 (outreg): Use register_data ().
11659 (prepare_resume_reply): Use gdbserver_expedite_regs.
11660 * gdbserver/server.c (main): Dynamically allocate own_buf because
11661 PBUFSIZ is no longer constant. Use registers_to_string () and
11662 registers_from_string ().
11663 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11664 for error (), fatal (), and warning (). Update definition of
11665 PBUFSIZ to use regcache functionality. Add include guard.
11666 * gdbserver/utils.c (fatal): Add missing ``const''.
11667 (warning): New function.
11668
11669 * regformats/regdat.sh: Include "regcache.h" in generated files.
11670 Provide init_registers () function.
11671 * regformats/regdef.h: Add prototype for set_register_cache ().
11672 Add include guard.
11673
11674 * gdbserver/linux-arm-low.c: New file.
11675 * gdbserver/linux-i386-low.c: New file.
11676 * gdbserver/linux-ia64-low.c: New file.
11677 * gdbserver/linux-m68k-low.c: New file.
11678 * gdbserver/linux-mips-low.c: New file.
11679 * gdbserver/linux-ppc-low.c: New file.
11680 * gdbserver/linux-sh-low.c: New file.
11681
11682 * gdbserver/regcache.c: New file.
11683 * gdbserver/regcache.h: New file.
11684
11685 * gdbserver/low-linux.c: Removed obsolete file.
11686
4cc841d0
DJ
116872002-02-14 Daniel Jacobowitz <drow@mvista.com>
11688
11689 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11690 * config/i386/linux.mt: Likewise.
11691 * config/ia64/linux.mt: Likewise.
11692 * config/m68k/linux.mh: Likewise.
11693 * config/powerpc/linux.mh: Likewise.
11694 * config/mips/linux.mt: Likewise.
11695
11696 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11697
11698 * config/i386/i386lynx.mh: Mark gdbserver variables
11699 as (currently) obsolete for this target.
11700 * config/i386/nbsd.mt: Likewise.
11701 * config/i386/nbsdelf.mt: Likewise.
11702 * config/m32r/m32r.mt: Likewise.
11703 * config/m68k/m68klynx.mh: Likewise.
11704 * config/m68k/nbsd.mt: Likewise.
11705 * config/m68k/sun3os4.mh: Likewise.
11706 * config/mips/vr5000.mt: Likewise.
11707 * config/ns32k/nbsd.mt: Likewise.
11708 * config/pa/hppabsd.mh: Likewise.
11709 * config/pa/hppaosf.mh: Likewise.
11710 * config/powerpc/nbsd.mt: Likewise.
11711 * config/rs6000/rs6000lynx.mh: Likewise.
11712 * config/s390/s390.mt: Likewise.
11713 * config/s390/s390x.mt: Likewise.
11714 * config/sparc/sparclynx.mh: Likewise.
11715 * config/sparc/sun4os4.mh: Likewise.
11716 * config/i386/x86-64linux.mt: Likewise.
11717 * config/sparc/linux.mh: Likewise.
11718
a85f51e7
DJ
117192002-02-14 Daniel Jacobowitz <drow@mvista.com>
11720
11721 * configure.tgt: Configure gdbserver only for known working
11722 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11723 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11724 SUBDIRS if it is configured. Update comment for ${nativefile}.
11725 * configure: Regenerated.
11726
65554fef
MS
117272002-02-13 Michael Snyder <msnyder@redhat.com>
11728
670a52db
MS
11729 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11730
6dbdc4a3
MS
11731 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11732 (default_gcore_mach): Just return 0, work around a problem in bfd.
11733 (default_gcore_target): OK to return NULL if exec_bfd is null.
11734 (make_mem_sec): Use a cast, avoid a warning.
11735
11736 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 11737 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
11738 sizeof (host pointer) != sizeof (target pointer)).
11739 (procfs_make_note_section): Avoid overflow in psargs string.
11740
aaa38bb5 11741 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
11742 implementation return an error.
11743
117442002-02-13 Rodney Brown <rbrown64@csc.com.au>
11745
11746 * procfs.c (procfs_make_note_section): Provide a default definition
11747 (for alpha-dec-osf4.0f). Fix typos.
11748
1e4d76e7
EZ
117492002-02-13 Elena Zannoni <ezannoni@redhat.com>
11750
11751 * linux-proc.c: Add include of regcache.h.
11752 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11753
b6d1a1d5
AC
117542002-02-13 Andrew Cagney <ac131313@redhat.com>
11755
11756 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
11757 * memattr.c (create_mem_region): Disallow useless empty region.
11758 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 11759 non-overlapping.
b6d1a1d5 11760
6c6ea35e
MC
117612002-02-13 Michael Chastain <mec@shout.net>
11762
11763 * defs.h: Kill CONST_PTR.
11764 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11765 * c-lang.c (c_builtin_types): Likewise.
11766 * ch-lang.c (ch_builtin_types): Likewise.
11767 * f-lang.c (f_builtin_types): Likewise.
11768 * language.c (unknown_builtin_types): Likewise.
11769 * m2-lang.c (m2_builtin_types): Likewise.
11770 * p-lang.c (pascal_builtin_types): Likewise.
11771 * scm-lang.c (c_builtin_types): Likewise.
11772
3e0b0f48
KS
117732002-02-13 Keith Seitz <keiths@redhat.com>
11774
11775 * arm-tdep.h (arm_get_next_pc): Add declaration.
11776
67255d04
RE
117772002-02-13 Richard Earnshaw <rearnsha@arm.com>
11778
11779 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11780 with other related struct-returning functions.
11781 (arm_extract_struct_value_address): New function.
11782 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11783 initialize float_format, double_format and long_double_format as
11784 appropriate to the endianness of the target.
11785 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11786 (arm_use_struct_convention): Delete declaration.
11787 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11788
079777f6
KS
117892002-02-13 Keith Seitz <keiths@redhat.com>
11790
11791 * defs.h (core_addr_to_string_nz): New function.
11792
34588f23
MK
117932002-02-13 Mark Kettenis <kettenis@gnu.org>
11794
11795 Apply missing bits of 2002-01-15 patch.
11796 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11797 (fill_fpregset): Use i387_fill_fsave.
11798
49b563f9
KS
117992002-02-12 Keith Seitz <keiths@redhat.com>
11800
49b563f9
KS
11801 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11802 (core_addr_to_string_nz): New function.
11803
aeb98c60
RE
118042002-02-11 Richard Earnshaw <rearnsha@arm.com>
11805
11806 * arm-linux-nat.c: Really include arm-tdep.h.
11807 * config/arm/tm-linux.h (struct type, struct value): Declare.
11808
65554fef
MS
118092002-02-11 Michael Snyder <msnyder@redhat.com>
11810
11811 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11812 (gcore section): Ifdef for Solaris and Unixware only.
11813 (procfs_do_thread_registers): Unixware needs one lwpstatus
11814 per thread (not one prstatus or pstatus).
11815 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11816 not over all gdb threads. For unixware, call elfcore_write_pstatus
11817 once before iterating over threads.
11818
34e8f22d
RE
118192002-02-11 Richard Earnshaw <rearnsha@arm.com>
11820
11821 * arm-tdep.h: New file.
11822 * arm-tdep.c: Include arm-tdep.h.
11823 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11824 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11825 (arm_print_float_info, arm_register_type, convert_to_extended)
11826 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11827 (arm_extract_return_value, arm_register_name): Make static.
11828 (arm_software_single_step): Similarly. Fix types in declaration.
11829 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11830 (arm_store_return_value, arm_store_struct_return): New functions.
11831 (arm_gdbarch_init): Register the above functions. Also register
11832 call_dummy_start_offset, sizeof_call_dummy_words,
11833 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11834 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 11835 max_register_virtual_size, register_size. Set up
34e8f22d
RE
11836 prologue_cache.saved_regs here, rather than ...
11837 (_initialize_arm_tdep): ... here.
11838 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11839 declarations.
11840 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11841 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11842 (arm_print_float_info, arm_register_type, convert_to_extended)
11843 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11844 (arm_extract_return_value, arm_register_name): Delete declarations.
11845 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11846 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11847 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11848 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11849 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11850 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11851 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11852 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11853 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11854 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11855 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11856 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11857 interface.
11858 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11859 * remote-rdi.c remote-rdp.c: Likewise.
11860 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11861 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11862 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11863 definition.
11864
11865 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11866 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11867 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11868 from non-ARM_ prefixed definitions.
11869 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11870 all uses of above.
11871 * remote-rdi.c remote-rdp.c: Likewise.
11872 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11873
148754e5
RE
118742002-02-11 Richard Earnshaw <rearnsha@arm.com>
11875
11876 * arm-tdep.c (arm_frameless_function_invocation)
11877 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11878 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11879 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11880 (arm_pop_frame, arm_get_next_pc): Make static.
11881 (arm_gdbarch_init): Register above in gdbarch structure.
11882 (arm_read_fp): Renamed from arm_target_read_fp.
11883 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11884 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11885 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11886 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11887 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11888 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11889 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
11890 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11891 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11892 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11893 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 11894
434d2d4f
DJ
118952002-02-10 Daniel Jacobowitz <drow@mvista.com>
11896
11897 * symtab.c (compare_search_syms): New function.
11898 (sort_search_symbols): New function.
11899 (search_symbols): Sort symbols after searching rather than
11900 before.
11901
55241689
AC
119022002-02-10 Andrew Cagney <ac131313@redhat.com>
11903
11904 * NEWS: Linux -> GNU/Linux.
11905
028c194b
AC
119062002-02-10 Andrew Cagney <ac131313@redhat.com>
11907
11908 * gdbarch.sh: For for level one methods, disallow a definition
11909 when partially multi-arched. Add comments explaining rationale.
11910 * gdbarch.h: Re-generate.
11911
6acf50cd
AC
119122002-02-10 Andrew Cagney <ac131313@redhat.com>
11913
11914 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11915 multi-arch partial.
aaa38bb5 11916
50248794
AC
119172002-02-10 Andrew Cagney <ac131313@redhat.com>
11918
11919 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11920 field. Use diff -u.
11921 * gdbarch.c: Re-generate.
11922
c30e0066
AC
119232002-02-10 Andrew Cagney <ac131313@redhat.com>
11924
9b56c5f3 11925 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
11926 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11927 partial.
11928
6e6d6484
AC
119292002-02-10 Andrew Cagney <ac131313@redhat.com>
11930
11931 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11932 multi-arch partial.
11933 (PUSH_ARGUMENTS): Switch to using predefault.
11934 * gdbarch.c: Regenerate.
11935
c203844d
AC
119362002-02-10 Andrew Cagney <ac131313@redhat.com>
11937
11938 * valops.c (PUSH_ARGUMENTS): Delete definition.
11939 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11940 partial. Default to default_push_arguments.
11941 * gdbarch.h, gdbarch.c: Regenerate.
11942
b5a2688f
AC
119432002-02-09 Andrew Cagney <ac131313@redhat.com>
11944
11945 * defs.h (throw_exception): Rename return_to_top_level. Update
11946 comments.
11947 * utils.c (error_stream, internal_verror, quit): Ditto.
11948 * top.c (throw_exception, catcher): Ditto.
11949 * sparclet-rom.c (sparclet_load): Ditto.
11950 * remote.c (interrupt_query, minitelnet): Ditto.
11951 * remote-sds.c (interrupt_query): Ditto.
11952 * remote-mips.c (mips_error, mips_kill): Ditto.
11953 * ocd.c (interrupt_query): Ditto.
11954 * monitor.c (monitor_interrupt_query): Ditto.
11955 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11956 * target.h: Update comment.
aaa38bb5 11957
b5a2688f 11958 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 11959
2fa5c1e0
AC
119602002-02-09 Andrew Cagney <ac131313@redhat.com>
11961
11962 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11963 default_double_format.
11964 * gdbarch.h, gdbarch.c: Re-generate.
11965 * findvar.c (floatformat_unknown): Delete variable definition.
11966 * doublest.h (floatformat_unknown): Delete variable declaration.
11967
da966255
JB
119682002-02-09 Jim Blandy <jimb@redhat.com>
11969
11970 * stabsread.c (read_type): Add code to parse Sun's syntax for
11971 prototyped function types.
11972
123a4891
AC
119732002-02-09 Andrew Cagney <ac131313@redhat.com>
11974
11975 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11976 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11977
fb39c8f3
PS
119782002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11979
11980 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11981 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11982 now _initialize_xcoffsolib gets called again and overrides the
11983 commands from solib.c in a native configuration.
11984
0b87a11d
MK
119852002-02-09 Mark Kettenis <kettenis@gnu.org>
11986
11987 * doublest.c (store_typed_floating): Don't try to return a value.
11988 Fixes PR gdb/290.
11989
bdc2fc72
JB
119902002-02-08 Jim Blandy <jimb@redhat.com>
11991
11992 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11993 is prototyped and has no arguments, print its argument list as
11994 `(void)'.
11995
da69bbcf
CD
119962002-02-08 Chris Demetriou <cgd@broadcom.com>
11997
11998 * MAINTAINERS (write-after-approval): Add myself.
11999 (paper-trail): I've escaped!
aaa38bb5 12000
b69571f5
CF
120012002-02-08 Christopher Faylor <cgf@redhat.com>
12002
12003 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12004 changes.
12005 (_initialize_check_for_gdb_ini): Ditto.
12006
f6871398
MH
120072002-02-08 Martin M. Hunt <hunt@redhat.com>
12008
12009 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12010 xaprintf -> xasprintf.
12011
4e52d31c
PM
120122002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12013
12014 * win32-nat.c: Remove use of printf and sprintf functions.
12015
39bbf761
RE
120162002-02-08 Richard Earnshaw <rearnsha@arm.com>
12017
12018 * arm-tdep.c (arm_frame_chain_valid): Make static.
12019 (arm_push_arguments): Likewise.
12020 (arm_gdbarch_init): New function.
12021 (_initialize_arm_tdep): Call it.
12022 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12023 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12024 (FRAME_CHAIN_VALID): Delete.
12025 (arm_frame_chain_valid): Delete declaration.
12026 (PUSH_ARGUMENTS): Delete.
12027 (arm_push_arguments): Delete declaration.
12028 (CALL_DUMMY_P): Delete.
12029
9c9532c9
CV
120302002-02-08 Andrew Cagney <ac131313@redhat.com>
12031 Corinna Vinschen <vinschen@redhat.com>
12032
12033 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12034 on builtin float types.
12035
4e8f7a8b
DJ
120362002-02-08 Daniel Jacobowitz <drow@mvista.com>
12037
12038 * utils.c: Include <curses.h> before "bfd.h".
12039 * tui/tui-hooks.c: Likewise.
12040 * tui/tui.c: Likewise.
12041 * tui/tuiCommand.c: Likewise.
12042 * tui/tuiData.c: Likewise.
12043 * tui/tuiDataWin.c: Likewise.
12044 * tui/tuiDisassem.c: Likewise.
12045 * tui/tuiGeneralWin.c: Likewise.
12046 * tui/tuiIO.c: Likewise.
12047 * tui/tuiLayout.c: Likewise.
12048 * tui/tuiRegs.c: Likewise.
12049 * tui/tuiSource.c: Likewise.
12050 * tui/tuiSourceWin.c: Likewise.
12051 * tui/tuiStack.c: Likewise.
12052 * tui/tuiWin.c: Likewise.
12053
cd4bffcf
EZ
120542002-02-07 Elena Zannoni <ezannoni@redhat.com>
12055
12056 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12057 to include space for pseudoregs as well. Update loops accordingly.
12058 (sh_fp_frame_init_saved_regs): Ditto.
12059 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12060
26806ce2
AC
120612002-02-07 Andrew Cagney <ac131313@redhat.com>
12062
12063 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12064 Add Richard Earnshaw to Arm maintainers.
12065
97fdab62
AC
120662002-02-07 Andrew Cagney <ac131313@redhat.com>
12067
a6b98203
AC
12068 * defs.h (warning_begin): Delete declaration.
12069
97fdab62
AC
12070 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12071 Delete macro.
12072
78b29b40
MS
120732002-02-07 Michael Snyder <msnyder@redhat.com>
12074
aaa38bb5 12075 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
12076 Logic bug, remove misplaced else.
12077
d8849953
KD
120782002-02-07 Klee Dienes <klee@apple.com>
12079
12080 * fork-inferior.c (fork_inferior): Add '!' to the list of
12081 characters that need to be quoted when building a string for the
12082 shell. Quote '!' specifically with a backslash, since CSH chokes
12083 when trying to evaluate "str!str".
aaa38bb5 12084
095778a0
NC
120852002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12086
12087 * rdi-share/host.h: Only provide a typedef for bool if it is not
12088 defined.
12089
1900040c
MS
120902002-02-04 Michael Snyder <msnyder@redhat.com>
12091
12092 * breakpoint.h (enum bptype): Add new overlay event bp type.
12093 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 12094
1900040c
MS
12095 * breakpoint.c (create_internal_breakpoint): New function.
12096 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12097 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12098 (create_thread_event_breakpoint): Ditto.
12099 (create_solib_event_breakpoint): Ditto.
12100 (create_overlay_event_breakpoint): New function.
12101 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12102 (update_breakpoints_after_exec): Delete and re-initialize
12103 overlay event breakpoints after an exec. Add FIXME comment
12104 about longjmp breakpoint.
12105 (print_it_typical): Ignore overlay event breakpoints.
12106 (print_one_breakpoint): Ditto.
12107 (mention): Ditto.
12108 (bpstat_what): Do not stop for overlay event breakpoints.
12109 (delete_breakpoint): Don't delete overlay event breakpoints.
12110 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12111 (breakpoint_re_set): Re-create overlay event breakpoint.
12112
12113 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12114 (overlay_manual_command): Disable overlay breakpoints.
12115 (overlay_off_command): Disable overlay breakpoints.
12116
082fc60d
RE
121172002-02-06 Richard Earnshaw <rearnsha@arm.com>
12118
12119 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12120 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12121 to here from config/tm-arm.h.
12122 (coff_sym_is_thumb): Make static.
12123 (arm_elf_make_msymbol_special): New function.
12124 (arm_coff_make_msymbol_special): New function.
12125 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12126 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12127 (coff_sym_is_thumb): Delete declaration.
12128 (arm_elf_make_msymbol_special): Declare.
12129 (arm_coff_make_msymbol_special): Declare.
12130 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12131 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12132
039c5766
RE
121332002-02-06 Richard Earnshaw <rearnsha@arm.com>
12134
12135 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12136
121372002-02-06 Richard Earnshaw <rearnsha@arm.com>
12138
12139 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12140 * gdbarch.c gdbarch.h: Regenerate.
12141 * arch-utils.c (default_print_float_info): New function.
12142 * arch-utils.h (default_print_float_info): Prototype it.
12143 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12144 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12145 (PRINT_FLOAT_INFO): Document it.
12146
12147 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12148 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12149 (PRINT_FLOAT_INFO): Define.
12150
58fa08f0
PM
121512002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12152
aaa38bb5 12153 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
12154 Add typecast to sprintf argument to suppress a warning.
12155
7393af7c
PM
121562002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12157
58fa08f0 12158 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
12159 to allow easier handling of pass state.
12160 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12161 that gives exception name and address.
12162 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 12163 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 12164 exceptions added.
aaa38bb5
AJ
12165 (child_continue): Correctly report continue_status.
12166 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 12167 TARGET_SIGNAL_0 (new default value).
aaa38bb5 12168 (child_resume): consider sig argument passed to decide if
7393af7c
PM
12169 the exception should be passed to debuggee or not.
12170
6af4589c
MS
121712002-02-05 Michael Snyder <msnyder@redhat.com>
12172
12173 * regcache.c (fetch_register): Call target_fetch_register
12174 only if we don't call FETCH_PSEUDO_REGISTER.
12175 (store_register): Call target_store_register only if we
12176 don't call STORE_PSEUDO_REGISTER.
12177
a2cf933a
EZ
121782002-02-05 Elena Zannoni <ezannoni@redhat.com>
12179
12180 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12181 ELF_MAKE_MSYMBOL_SPECIAL.
12182 * gdbarch.c, gdbarch.h: Regenerate.
12183 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 12184 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
12185 * elfread.c (elf_symtab_read): Compile use of
12186 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12187 multiarched.
12188 * coffread.c (coff_symtab_read): Ditto, for
12189 COFF_MAKE_MSYMBOL_SPECIAL.
12190
6bb7be43
JB
121912002-02-05 Jim Blandy <jimb@redhat.com>
12192
12193 * solib-svr4.c (svr4_truncate_ptr): New function.
12194 (svr4_relocate_section_addresses): Do the address arithmetic with
12195 the appropriate truncation for target addresses, even when
12196 CORE_ADDR is larger than a target address.
12197
e18651ec
DJ
121982002-02-05 Daniel Jacobowitz <drow@mvista.com>
12199
12200 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12201 to (int *).
12202
6b2725be
DJ
122032002-02-05 Daniel Jacobowitz <drow@mvista.com>
12204
12205 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12206 code.
12207
fca9e603
DJ
122082002-02-05 Daniel Jacobowitz <drow@mvista.com>
12209
12210 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12211
6c537a52
DJ
122122002-02-05 Daniel Jacobowitz <drow@mvista.com>
12213
12214 * gdbserver/linux-low.c: Remove unused include files.
12215
d844cde6
DJ
122162002-02-05 Daniel Jacobowitz <drow@mvista.com>
12217
12218 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12219 (read_inferior_memory): Use it.
12220 (write_inferior_memory): Likewise.
12221
d07c63e7
DJ
122222002-02-05 Daniel Jacobowitz <drow@mvista.com>
12223
12224 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12225 grubbing through sys_errlist.
12226
da6d8c04
DJ
122272002-02-05 Daniel Jacobowitz <drow@mvista.com>
12228
12229 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12230
5b421780
PM
122312002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12232 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12233
9f60d481
AC
122342002-02-04 Andrew Cagney <ac131313@redhat.com>
12235
12236 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12237 (do_sfunc, set_cmd_sfunc): New functions.
12238
12239 * command.h (struct cmd_list_element): Add field func.
12240 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12241 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12242 * cli/cli-decode.h: Ditto.
12243
12244 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12245 (help_all, help_cmd_list): Ditto.
12246 (find_cmd, complete_on_cmdlist): Ditto.
12247 * top.c (execute_command): Ditto.
12248
12249 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12250 function.sfunc.
12251
12252 * infcmd.c (notice_args_read): Fix function signature.
12253
12254 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12255 * cli/cli-decode.c (add_set_cmd): Ditto.
12256 * utils.c (initialize_utils): Ditto.
12257 * maint.c (_initialize_maint_cmds): Ditto.
12258 * infrun.c (_initialize_infrun): Ditto.
12259 * demangle.c (_initialize_demangler): Ditto.
12260 * remote.c (add_packet_config_cmd): Ditto.
12261 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12262 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12263 * proc-api.c (_initialize_proc_api): Ditto.
12264 * kod.c (_initialize_kod): Ditto.
12265 * valprint.c (_initialize_valprint): Ditto.
12266 * top.c (init_main): Ditto.
12267 * infcmd.c (_initialize_infcmd): Ditto.
12268 * corefile.c (_initialize_core): Ditto.
12269 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12270 * arch-utils.c (initialize_current_architecture): Ditto.
12271 (_initialize_gdbarch_utils): Ditto.
12272 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12273
12274 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12275 * wince.c (_initialize_inftarg): Ditto.
12276 * symfile.c (_initialize_symfile): Ditto.
12277 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12278 * language.c (_initialize_language): Ditto.
12279 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12280
f9ba0717
MS
122812002-02-04 Michael Snyder <msnyder@redhat.com>
12282
12283 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12284
0c74b2a7
DJ
122852002-02-04 Daniel Jacobowitz <drow@mvista.com>
12286
12287 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12288 Add rules for building the register data files.
12289
c638789f
DJ
122902002-02-04 Daniel Jacobowitz <drow@mvista.com>
12291
12292 * regformats/regdat.sh: Add braces to the definition of
12293 expedite_regs_${arch}.
12294
db253027
DJ
122952002-02-04 Daniel Jacobowitz <drow@mvista.com>
12296
12297 * regformats/regdef.h (struct reg): Add comment describing the
12298 requirements for offset and size fields.
12299
206be19c
AS
123002002-02-04 Andreas Schwab <schwab@suse.de>
12301
12302 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12303 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12304
181c1381
RE
123052002-02-04 Richard Earnshaw <rearnsha@arm.com>
12306
12307 * gdbarch.sh (copyright): Update years in generated header.
12308 (SMASH_TEXT_ADDRESS): Add rule.
db253027 12309 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
12310 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12311 * dbxread.c: Likewise.
12312 * dwarfread.c: Likewise.
12313 * elfread.c: Likewise.
12314 * somread.c: Likewise.
12315
12316 * arm-tdep.c (arm_smash_text_address): New function.
12317 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12318
fa4ba8da
PM
123192002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12320
12321 Add support for hardware watchpoints on win32 native.
aaa38bb5 12322 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 12323 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 12324 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
12325 of debug registers.
12326 (debug_registers_changed): New variable. Reflects when debug registers
12327 are changed and need to be written to inferior.
aaa38bb5 12328 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
12329 was set, used when new threads are created.
12330 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12331 i386-nat code.
12332 (thread_rec): Set dr array if id is the thread of current_event .
12333 (child_continue, child_resume): Change the debug registers for all
12334 threads if debug_registers_changed.
12335 (child_add_thread): Change the debug registers if debug_registers_used.
12336 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12337 Link nm.h to new nm-cygwin.h file.
12338 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12339 of hardware registers.
12340
a73c86fb
AC
123412002-02-03 Andrew Cagney <ac131313@redhat.com>
12342
12343 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12344 Restore behavour broken by 2002-01-20 Andrew Cagney
12345 <ac131313@redhat.com> IEEE_FLOAT removal.
12346
acf5ed49
DJ
123472002-02-03 Daniel Jacobowitz <drow@mvista.com>
12348
12349 * c-valprint.c (c_val_print): Pass a proper valaddr to
12350 cp_print_class_method.
12351 * valops.c (search_struct_method): If there is only one method
12352 and args is NULL, return that method.
12353
493d28d5
DJ
123542002-02-03 Daniel Jacobowitz <drow@mvista.com>
12355
12356 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12357 accessing tag_name directly.
12358
7495dfdb
DJ
123592002-02-03 Daniel Jacobowitz <drow@mvista.com>
12360
12361 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12362 of accessing tag_name directly.
12363
dd6bda65
DJ
123642002-02-03 Daniel Jacobowitz <drow@mvista.com>
12365
12366 PR gdb/280
12367 * gdbtypes.c (replace_type): New function.
12368 * gdbtypes.h (replace_type): Add prototype.
12369 * stabsread.c (read_type): Use replace_type.
12370
88fe217c
RE
123712002-02-03 Richard Earnshaw <rearnsha@arm.com>
12372
12373 * Makefile.in (memattr.o): Add missing dependencies rule.
12374
e5d66720
PS
123752002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12376
12377 * breakpoint.c (break_at_finish_command): Really export.
12378 (break_at_finish_at_depth_command): Ditto.
12379 (tbreak_at_finish_command): Ditto.
12380 * hppa-tdep.c: Include completer.h.
12381 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12382 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12383
fffee0be
AC
123842002-02-01 Andrew Cagney <ac131313@redhat.com>
12385
12386 * utils.c (do_write): New function.
12387 (error_stream): Rewrite combining the code from error_begin and
12388 verror.
12389 (verror): Rewrite using error_stream.
12390 (error_begin): Delete function.
12391
255e7dbf
AC
123922002-02-01 Andrew Cagney <ac131313@redhat.com>
12393
12394 * utils.c (error_begin): Make static.
12395 * defs.h (error_begin): Delete declaration.
12396
12397 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12398 (decode_line_1): Use cplusplus_error instead of error_begin,
12399 cplusplus_hint and return_to_top_level.
12400 * coffread.c (coff_symfile_read): Use error instead of error_begin
12401 and return_to_top_level.
12402 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12403
ddfe3c15
AC
124042002-02-01 Andrew Cagney <ac131313@redhat.com>
12405
12406 * language.h (type_error, range_error): Make string parameter
12407 constant.
12408 * language.c (warning_pre_print): Delete extern declaration.
12409 * dwarfread.c (warning_pre_print): Ditto.
12410 * language.c (type_error, range_error): Rewrite to use verror and
12411 vwarning instead of warning_begin.
12412
03ac34d5
MS
124132002-02-01 Michael Snyder <msnyder@redhat.com>
12414
261c4ca2
MS
12415 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12416 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12417
e00d1dc8
AC
124182002-02-01 Andrew Cagney <ac131313@redhat.com>
12419
12420 * command.h (NO_FUNCTION): Delete macro.
12421 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12422 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12423 * tracepoint.c (_initialize_tracepoint): Ditto.
12424 * cli/cli-decode.c (add_set_cmd): Ditto.
12425 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12426
76b79d6e
DJ
124272002-02-01 Daniel Jacobowitz <drow@mvista.com>
12428
12429 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12430 Update ``this'' pointer when calling virtual functions.
12431
799f9e91
MS
124322002-02-01 Michael Snyder <msnyder@redhat.com>
12433
c7bd442c 12434 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12435 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12436
3cf384d4
DJ
124372002-02-01 Daniel Jacobowitz <drow@mvista.com>
12438
12439 * regformats/reg-arm.dat: New file.
12440 * regformats/reg-i386.dat: New file.
12441 * regformats/reg-ia64.dat: New file.
12442 * regformats/reg-m68k.dat: New file.
12443 * regformats/reg-mips.dat: New file.
12444 * regformats/reg-ppc.dat: New file.
12445 * regformats/reg-sh.dat: New file.
12446 * regformats/regdef.h: New file.
12447 * regformats/regdat.sh: New file.
12448
0defa245
RE
124492002-02-01 Richard Earnshaw <reanrsha@arm.com>
12450
12451 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12452 (arm_frame_args_address, arm_frame_locals_address): New functions.
12453 (arm_frame_num_args): New function.
12454 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12455 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12456 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12457
405f26e6
MS
124582002-01-31 Michael Snyder <msnyder@redhat.com>
12459
502fd408
MS
12460 * breakpoint.c (break_at_finish_command): Export.
12461 (break_at_finish_at_depth_command): Export.
12462 (tbreak_at_finish_command): Export.
d6020d45 12463 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12464 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12465 "txbreak" commands, which are HPPA specific.
502fd408 12466
7d35e135
MS
12467 * printcmd.c (disassemble_command): Remove an ancient
12468 artifact of an old merge.
12469
aaa38bb5 12470 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12471 Define enum constant values for overlay mode.
12472 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12473 (overlay_is_mapped, overlay_auto_command,
12474 overlay_manual_command): Ditto.
d874f1e2 12475
aaa38bb5
AJ
12476 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12477 breakpoint_here_p, breakpoint_inserted_here_p,
12478 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
12479 describe_other_breakpoints, check_duplicates, clear_command):
12480 Coding standard fixes.
12481
8add0441 12482 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 12483 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
12484 code: check bfd SEC_READONLY flag for section.
12485
e351066e
AC
124862002-01-31 Andrew Cagney <ac131313@redhat.com>
12487
7d35e135 12488 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 12489
8a48e967
DJ
124902002-01-30 Daniel Jacobowitz <drow@mvista.com>
12491
12492 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12493 data symbols, since we search based on textlow and texthigh.
12494 (find_pc_sect_symtab): Likewise.
12495
f5a96129
AC
124962002-01-30 Andrew Cagney <ac131313@redhat.com>
12497
12498 * defs.h (vwarning): Declare.
f5a96129
AC
12499 * utils.c (vwarning): New function.
12500 (warning): Call vwarning.
12501 (warning_begin): Delete function.
12502
12503 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12504 the warning message.
12505 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12506 warning_begin.
12507
cefd4ef5
MS
125082002-01-30 Michael Snyder <msnyder@redhat.com>
12509
1a703748
MS
12510 * NEWS: Mention "set trust-readonly-sections" command.
12511 Mention generate-core-file command.
cefd4ef5 12512
3a11626d
MS
125132002-01-15 Michael Snyder <msnyder@redhat.com>
12514
12515 * target.c: New command, "set trust-readonly-sections on".
12516 (do_xfer_memory): Honor the suggestion to trust readonly sections
12517 by reading them from the object file instead of from the target.
12518 (initialize_targets): Register command "set trust-readonly-sections".
12519
d1c7e53b
AC
125202002-01-29 Andrew Cagney <ac131313@redhat.com>
12521
12522 * parse.c (target_map_name_to_register): Simplify, search regs and
12523 pseudo-regs using a single loop.
12524
e2c9a72c
AC
125252002-01-30 Andrew Cagney <ac131313@redhat.com>
12526
12527 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12528
69824b4e
MK
125292002-01-15 Rodney Brown <rbrown64@csc.com.au>
12530
12531 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12532 * config/i386/i386v42mp.mh: Add i387-nat.o .
12533 * i386v4-nat.c: Include i387-nat.h.
12534 (supply_fpregset): Use i387_supply_fsave.
12535 (fill_fpregset): Use i387_fill_fsave.
12536
6eb69eab
RE
125372002-01-30 Richard Earnshaw <rearnsha@arm.com>
12538
12539 * arm-tdep.c (arm_call_dummy_words): Define.
12540 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12541 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12542 (CALL_DUMMY_WORDS): Define.
12543 (arm_call_dummy_words): Declare.
12544 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12545 (arm_linux_call_dummy_words): Declare.
12546
9852326a
AS
125472002-01-30 Andreas Schwab <schwab@suse.de>
12548
12549 * m68klinux-nat.c: Fix last change to use regcache_collect
12550 instead of referencing registers[] directly.
12551
977a3030
AC
125522002-01-29 Andrew Cagney <ac131313@redhat.com>
12553
12554 * parse.c (target_map_name_to_register): Delete code wrapped in
12555 #ifdef REGISTER_NAME_ALIAS_HOOK.
12556
2076c72b
MS
125572002-01-28 Michael Snyder <msnyder@redhat.com>
12558
12559 * regcache.c (legacy_read_register_gen): Need to be able to
12560 read pseudo-register as well as real register.
12561 (legacy_write_register_gen): Ditto.
12562
8fcc723b
AC
125632002-01-28 Andrew Cagney <ac131313@redhat.com>
12564
12565 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12566 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12567 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12568 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12569 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12570 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12571 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12572 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12573 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12574 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12575 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12576 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12577 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12578 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12579 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12580 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12581 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12582 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12583 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12584 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12585
afe64c1a
AC
125862002-01-28 Andrew Cagney <ac131313@redhat.com>
12587
12588 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12589 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12590 (initialize_current_architecture): Update target_byte_order using
12591 information from BFD.
aaa38bb5 12592 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
12593 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12594
75bc7ddf
AC
125952002-01-28 Andrew Cagney <ac131313@redhat.com>
12596
12597 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12598 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12599
12600 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12601 #ifdef INVALID_FLOAT.
12602 * infcmd.c (do_registers_info): Ditto.
12603 * values.c (unpack_double): Ditto. Add comment.
12604
12605 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12606 already commented out.
12607
0280a90a
AS
126082002-01-26 Andreas Schwab <schwab@suse.de>
12609
12610 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12611 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12612 registers and add support for PTRACE_GETREGS.
12613
7072a954
AC
126142002-01-24 Andrew Cagney <ac131313@redhat.com>
12615
12616 GDB 5.1.1 released from 5.1 branch.
12617 * NEWS: Add 5.1.1 news.
12618 * README: Sync with 5.1 branch.
12619
86f902e0
FF
126202002-01-23 Fred Fish <fnf@redhat.com>
12621
12622 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12623 stabstring on initial malloc. Reallocing will copy it for us,
12624 if necessary.
12625
8af51c36
EZ
126262002-01-23 Elena Zannoni <ezannoni@redhat.com>
12627
aaa38bb5 12628 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
12629 (HFILES_NO_SRCDIR): Remove hpread.h.
12630 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12631 (hpread.o): Update dependencies.
12632 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12633
12634 * hp-psymtab-read.c: Remove file.
12635 * hp-symtab-read.c: Remove file.
12636 * hpread.h: Remove file.
12637
12638 * hpread.c: Merge all contents of hp-psymtab-read.c,
12639 hp-symtab-read.c and hpread.h into this file, as it was prior to
12640 January 1999.
12641
12642 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 12643 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
12644 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12645 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12646
dc5cfeb6
EZ
126472002-01-23 Elena Zannoni <ezannoni@redhat.com>
12648
12649 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12650 fill_gregset): Call gdbarch_tdep() just once, assign result to
12651 variable and use that, instead of calling the function several
12652 times.
12653
ea87b71b
AO
126542002-01-24 Alexandre Oliva <aoliva@redhat.com>
12655
12656 * configure.host: Accept sparcv9 as alias for sparc64.
12657 * configure.tgt: Likewise.
12658
13fc0c2f
KB
126592002-01-22 Kevin Buettner <kevinb@redhat.com>
12660
12661 * solib-aix5.c (build_so_list_from_mapfile)
12662 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12663 arguments is not reversed.
12664 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12665 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 12666
7bd872fe
EZ
126672002-01-22 Elena Zannoni <ezannoni@redhat.com>
12668
12669 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12670 modified version of obsolete sh_fetch_pseudo_register.
12671 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12672 (sh4_register_read): New function.
12673 (sh_pseudo_register_write): New function. Renamed and modified
12674 version of obsolete sh_store_pseudo_register.
12675 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12676 (sh4_register_write): New function.
12677 (sh_gdbarch_init): Remove setting of gdbarch function
12678 fetch_pseudo_register and store_pseudo_register. Remove setting of
12679 register_convert_to_raw, register_convert_to_virtual,
12680 register_convertible.
12681 (sh_sh4_register_convertible): Delete. No longer needed. All is
12682 taken care by architecture specific functions
12683 register_read/register_write.
12684 (sh_sh4_register_convert_to_virtual): Make static.
12685 (sh_sh4_register_convert_to_raw): Ditto.
12686
069e84fd
AC
126872002-01-22 Andrew Cagney <ac131313@redhat.com>
12688
12689 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12690 (floatformat_is_nan, floatformat_mantissa): Ditto.
12691
12692 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12693 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12694 builtin_type_ieee_double_little,
12695 builtin_type_ieee_double_littlebyte_bigword,
12696 builtin_type_m68881_ext, builtin_type_i960_ext,
12697 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12698 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12699 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12700 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12701
211a4f69
CV
127022002-01-22 Corinna Vinschen <vinschen@redhat.com>
12703
12704 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12705 parameter. Set frameless flag if it exists and depended of
12706 whether the scanned function is frameless or not.
12707 (xstormy16_skip_prologue): If function is frameless, return
12708 result of xstormy16_scan_prologue().
12709 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12710 call.
12711
f81353e4
EZ
127122002-01-21 Elena Zannoni <ezannoni@redhat.com>
12713
12714 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12715 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12716 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12717 sh_sh4_register_byte, sh_sh4_register_raw_size,
12718 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12719 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12720 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12721 sh_store_pseudo_register, sh_do_pseudo_register): Call
12722 gdbarch_tdep() just once, assign result to variable and use that,
12723 instead of calling the function several times.
12724
63c73a17
MK
127252002-01-20 Mark Kettenis <kettenis@gnu.org>
12726
12727 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12728 macros instead of LAST_FPU_CTRL_REGNUM.
12729 (store_register): Likewise.
12730
39ad761d
JB
127312002-01-21 Jim Blandy <jimb@redhat.com>
12732
12733 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12734 is up-to-date before running the program, not just when a program
12735 exits.
12736
3d74b771
FF
127372002-01-21 Fred Fish <fnf@redhat.com>
12738
12739 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12740 when we have found all instructions we are looking for.
12741
966fbf70
RE
127422002-01-21 Richard Earnshaw <rearnsha@arm.com>
12743
12744 * arm-tdep.c (arm_register_name): New function.
12745 (arm_registers_names): Make static.
12746 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12747 (arm_register_name): Declare.
12748 (REGISTER_NAME): Use it.
12749
c3b4394c
RE
127502002-01-21 Richard Earnshaw <rearnsha@arm.com>
12751 Kevin Buettner <kevinb@redhat.com>
12752
12753 Convert arm targets to new FRAME interface.
12754 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12755 (arm_frame_find_save_regs): Delete.
12756 (arm_frame_init_saved_regs): New.
12757 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12758 Allocate extra_info as required. Convert all uses of fsr.regs
12759 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12760 to use extra_info.
12761 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12762 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12763 (check_prologue_cache, save_prologue_cache): Likewise.
12764 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12765 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12766 (FRAME_FIND_SAVED_REGS): Delete.
12767 (arm_frame_find_saved_regs): Delete prototype.
12768 (arm_frame_init_saved_regs): New prototype.
12769 (FRAME_INIT_SAVED_REGS): Define.
12770
61d99182
AC
127712002-01-20 Andrew Cagney <ac131313@redhat.com>
12772
12773 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12774
6aaea291
AC
127752002-01-20 Andrew Cagney <ac131313@redhat.com>
12776
12777 From Jeff Law <law@redhat.com>:
12778 * infttrace.c: Include <sys/pstat.h>.
12779 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12780 exec file if the ttrace equivalent fails.
12781
15f698d2
AC
127822002-01-20 Andrew Cagney <ac131313@redhat.com>
12783
12784 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12785 (closeLogFile): Ditto.
12786
f86ddd7c
MC
127872002-01-20 Michael Chastain <mec@shout.net>
12788
12789 * top.c (print_gdb_version): Bump copyright year to 2002.
12790
904507ce
AC
127912002-01-20 Andrew Cagney <ac131313@redhat.com>
12792
12793 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12794 Zannoni and Eli Zaretskii.
12795
d7f0b9ce
DJ
127962002-01-20 Daniel Jacobowitz <drow@mvista.com>
12797
12798 * buildsym.c: Update copyright years.
12799 * c-typeprint.c: Likewise.
12800 * dwarf2read.c: Likewise.
12801 * f-typeprint.c: Likewise.
12802 * gdbtypes.c: Likewise.
12803 * gdbtypes.h: Likewise.
12804 * hp-symtab-read.c: Likewise.
12805 * hpread.c: Likewise.
12806 * mdebugread.c: Likewise.
12807 * p-typeprint.c: Likewise.
12808
3fd3d7d2
AC
128092002-01-20 Andrew Cagney <ac131313@redhat.com>
12810
12811 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12812 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12813 byte-order selectable.
12814 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12815 * arch-utils.c: Ditto.
12816 (set_endian): Ditto.
12817 (set_endian_from_file): Ditto.
12818 * gdbserver/low-sim.c (create_inferior): Ditto.
12819 * gdbarch.sh: Ditto.
12820 * gdbarch.h: Re-generate.
aaa38bb5
AJ
12821 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12822 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12823 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12824 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12825 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12826 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12827 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
12828 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12829 macro definition.
12830 * config/mips/tm-wince.h: Remove #undef of macro
12831 TARGET_BYTE_ORDER_SELECTABLE.
12832 * config/sh/tm-wince.h: Ditto.
12833
b02dede2
DJ
128342002-01-20 Daniel Jacobowitz <drow@mvista.com>
12835
12836 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12837 member function fields. Add accessor macro
12838 TYPE_FN_FIELD_ARTIFICIAL.
12839 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12840 * c-typeprint.c (c_type_print_base): Skip artificial member
12841 functions.
12842
c3643761
DJ
128432002-01-20 Daniel Jacobowitz <drow@mvista.com>
12844
12845 * f-typeprint.c: Delete unused function f_type_print_args.
12846 * p-typeprint.c: Delete unused function pascal_type_print_args.
12847
8176bb6d
DJ
128482002-01-20 Daniel Jacobowitz <drow@mvista.com>
12849
12850 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12851 comment. Add ``artificial'' to ``union field_location''.
12852
12853 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12854
12855 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12856 * mdebugread.c (parse_symbol): Likewise.
12857 * stabsread.c (define_symbol): Likewise.
12858 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12859 initializing TYPE_FIELD_BITPOS to n (obsolete).
12860 (hpread_doc_function_type): Likewise.
12861 * hpread.c (hpread_function_type): Likewise.
12862
7fd60527
AC
128632002-01-20 Andrew Cagney <ac131313@redhat.com>
12864
12865 * configure.in (host_makefile_frag): Only require a host makefile
12866 fragment when a native build.
12867 * configure: Re-generate.
12868
c2f05ac9
AC
128692002-01-20 Andrew Cagney <ac131313@redhat.com>
12870
12871 * doublest.h (floatformat_from_type): Declare.
12872 * doublest.c (floatformat_from_type): New function.
12873 (convert_typed_floating): Use.
12874
12875 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12876 call to function floatformat_from_type.
12877
12878 * gdbarch.sh (IEEE_FLOAT): Delete.
12879 * gdbarch.h, gdbarch.c: Re-generate.
12880 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12881 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12882 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12883 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12884 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12885 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12886 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12887 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12888 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12889 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12890 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
12891 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12892
12893 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12894 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12895 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12896 * sh-tdep.c (sh_gdbarch_init): Ditto.
12897 * mips-tdep.c (mips_gdbarch_init): Ditto.
12898 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12899 * cris-tdep.c (cris_gdbarch_init): Ditto.
12900
abf22e64
AJ
129012002-01-20 Jiri Smid <smid@suse.cz>
12902
12903 * configure.host, configure.tgt: Support x86-64.
12904 * NEWS: Note new target x86-64.
12905
b7c4cbf8
AJ
12906 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12907 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12908 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12909 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12910 x86-64-linux-nat.o): Fix dependencies.
12911
82600034
AC
129122002-01-19 Andrew Cagney <ac131313@redhat.com>
12913
12914 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12915 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12916 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12917 * config/sparc/xm-sun4os4.h: Delete file.
12918 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 12919
bbe5c628
AC
129202002-01-19 Andrew Cagney <ac131313@redhat.com>
12921
12922 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12923 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12924 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12925 * config/i386/i386lynx.mh (XM_FILE): Delete.
12926 * config/rs6000/xm-rs6000ly.h: Delete file.
12927 * config/sparc/xm-sparclynx.h: Delete file.
12928 * config/m68k/xm-m68klynx.h: Delete file.
12929 * config/i386/xm-i386lynx.h: Delete file.
12930 * config/xm-lynx.h: Delete file.
12931 * config/djgpp/fnchange.lst: Update.
12932
f8453e34
JT
129332002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12934
12935 * alpha-tdep.c (alpha_register_byte): New function.
12936 (alpha_register_raw_size): Ditto.
12937 (alpha_register_virtual_size): Ditto.
12938 (alpha_skip_prologue_internal): Renamed from
12939 alpha_skip_prologue.
12940 (alpha_skip_prologue): New version that calls
12941 alpha_skip_prologue_internal.
12942 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12943 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12944 second argument from alpha_skip_prologue.
12945 (REGISTER_BYTE): Use alpha_register_byte.
12946 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12947 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12948 (FRAMELESS_FUNCTION_INVOCATION): Use
12949 generic_frameless_function_invocation_not.
12950 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12951 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12952
52d9e613
AC
129532002-01-19 Andrew Cagney <ac131313@redhat.com>
12954
12955 * config/mips/xm-news-mips.h: Delete file.
12956 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12957
12958 * config/m88k/xm-m88k.h: Delete file.
12959 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12960 * config/m88k/xm-delta88v4.h: Ditto.
12961 * config/m88k/xm-delta88.h: Ditto.
12962
12963 * config/alpha/xm-fbsd.h: Delete file.
12964 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12965
12966 * config/sparc/xm-sparc.h: Delete file.
12967 * Makefile.in (xm-sun4os4.h): Delete dependency.
12968 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12969 * config/sparc/xm-sun4os4.h: Ditto.
12970 * config/sparc/xm-linux.h: Ditto.
12971
12972 * config/i386/xm-windows.h: Delete file.
12973
2d1b2124
AC
129742002-01-19 Andrew Cagney <ac131313@redhat.com>
12975
12976 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12977 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12978
ee1f65f0
JT
129792002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12980
12981 * alpha-tdep.c (alpha_call_dummy_words): New.
12982 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12983 (CALL_DUMMY_P): Define.
12984 (CALL_DUMMY_WORDS): Define.
12985 (SIZEOF_CALL_DUMMY_WORDS): Define.
12986
98081e55
PB
129872002-01-19 Per Bothner <per@bothner.com>
12988
12989 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12990 isn't NULL, which can happen with some gcj-3.x-produced code.
12991
0d056799
JT
129922002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12993
12994 * alpha-tdep.c (alpha_register_virtual_type): New function.
12995 (alpha_init_frame_pc_first): Ditto.
12996 (alpha_fix_call_dummy): Ditto.
12997 (alpha_store_struct_return): Ditto.
12998 (alpha_extract_struct_value_address): Ditto.
12999 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13000 alpha_register_virtual_type.
13001 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13002 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13003 alpha_extract_struct_value_address.
13004 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13005 (INIT_FRAME_PC): Use init_frame_pc_noop.
13006 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13007
4604bcad
MK
130082002-01-19 Mark Kettenis <kettenis@gnu.org>
13009
13010 * i386gnu-nat.c: Include "i386-tdep.h".
13011 (fetch_fpregs): Simplify code dealing with uninitialized floating
13012 point states such that it doesn't require FP7_REGNUM.
13013
140f9984
JT
130142002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13015
abf22e64
AJ
13016 * alpha-tdep.c (frame_extra_info): New.
13017 (alpha_find_saved_regs): Make static. Use
140f9984
JT
13018 frame->extra_info.
13019 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
13020 (alpha_frame_saved_pc): Use frame->extra_info.
13021 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13022 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
13023 (init_extra_frame_info): Rename to...
13024 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 13025 (alpha_print_extra_frame_info): New function.
140f9984
JT
13026 (alpha_frame_locals_address): Ditto.
13027 (alpha_frame_args_address): Ditto.
abf22e64 13028 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
13029 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13030 alpha_frame_args_address.
abf22e64 13031 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 13032 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
13033 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13034 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
13035 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13036 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13037
d734c450
JT
130382002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13039
13040 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13041 (alpha_cannot_fetch_register): Ditto.
13042 (alpha_cannot_store_register): Ditto.
13043 (alpha_register_convertible): Ditto.
13044 (alpha_use_struct_convention): Ditto.
13045 * config/alpha/tm-alpha.h: Update copyright years.
13046 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13047 (INNER_THAN): Use core_addr_lessthan.
13048 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13049 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13050 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13051 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13052 (FRAME_CHAIN): Remove unnecessary cast.
13053
b4ceaee6
AC
130542002-01-18 Andrew Cagney <ac131313@redhat.com>
13055
13056 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13057 obsolete.
13058
0a65a603
AC
130592002-01-18 Andrew Cagney <ac131313@redhat.com>
13060
13061 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13062 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13063 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13064 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13065 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13066 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13067 * x86-64-linux-nat.c: Ditto.
13068
636a6dfc
JT
130692002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13070
abf22e64 13071 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
13072 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13073 (REGISTER_NAME): Define.
13074
acceddb6
JT
130752002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13076
13077 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13078
ec32e4be
JT
130792002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13080
13081 * alpha-tdep.c: Update copyright years.
13082 (alpha_next_pc): New function.
13083 (alpha_software_single_step): Ditto.
13084 * config/alpha/tm-alpha.h: Add prototype for
13085 alpha_software_single_step.
13086
e771a871
JT
130872002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13088
13089 * alphabsd-nat.c: Update copyright years.
13090 (fill_gregset): Use regcache_collect.
13091 (fill_fpregset): Likewise.
13092 (fetch_inferior_registers): Only fetch integer registers
13093 if requested to do so.
13094 (store_inferior_registers): Only store integer registers
13095 if requested to do so.
13096
7708fa01
AC
130972002-01-17 Andrew Cagney <ac131313@redhat.com>
13098
13099 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13100 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13101 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13102 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13103 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13104 * config/arm/linux.mh (XDEPFILES): Delete.
13105 * config/arm/nbsd.mh (XDEPFILES): Delete.
13106 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13107 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13108 * config/i386/i386m3.mh (XDEPFILES): Delete.
13109 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13110 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13111 * config/i386/fbsd.mh (XDEPFILES): Delete.
13112 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13113 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13114 * config/i386/i386v4.mh (XDEPFILES): Delete.
13115 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13116 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13117 * config/i386/i386aix.mh (XDEPFILES): Delete.
13118 * config/i386/go32.mh (XDEPFILES): Delete.
13119 * config/i386/cygwin.mh (XDEPFILES): Delete.
13120 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13121 * config/i386/i386mach.mh (XDEPFILES): Delete.
13122 * config/i386/i386v32.mh (XDEPFILES): Delete.
13123 * config/i386/linux.mh (XDEPFILES): Delete.
13124 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13125 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13126 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13127 * config/i386/i386sco.mh (XDEPFILES): Delete.
13128 * config/i386/i386v.mh (XDEPFILES): Delete.
13129 * config/i386/nbsd.mh (XDEPFILES): Delete.
13130 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13131 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13132 * config/i386/symmetry.mh (XDEPFILES): Delete.
13133 * config/i386/obsd.mh (XDEPFILES): Delete.
13134 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13135 * config/ia64/linux.mh (XDEPFILES): Delete.
13136 * config/ia64/aix.mh (XDEPFILES): Delete.
13137 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13138 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13139 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13140 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13141 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13142 * config/m68k/linux.mh (XDEPFILES): Delete.
13143 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13144 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13145 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13146 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13147 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13148 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13149 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13150 * config/m88k/delta88.mh (XDEPFILES): Delete.
13151 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13152 * config/m88k/m88k.mh (XDEPFILES): Delete.
13153 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13154 * config/mips/linux.mh (XDEPFILES): Delete.
13155 * config/mips/irix6.mh (XDEPFILES): Delete.
13156 * config/mips/irix5.mh (XDEPFILES): Delete.
13157 * config/mips/irix4.mh (XDEPFILES): Delete.
13158 * config/mips/irix3.mh (XDEPFILES): Delete.
13159 * config/mips/decstation.mh (XDEPFILES): Delete.
13160 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13161 (NATDEPFILES): Move core-aout.o to here.
13162 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13163 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13164 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13165 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13166 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13167 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13168 * config/pa/hpux11.mh (XDEPFILES): Delete.
13169 * config/powerpc/aix.mh (XDEPFILES): Delete.
13170 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13171 * config/powerpc/linux.mh (XDEPFILES): Delete.
13172 * config/romp/rtbsd.mh: Rename XDEPFILES.
13173 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13174 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13175 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13176 * config/s390/s390.mh (XDEPFILES): Delete.
13177 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13178 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13179 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13180 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13181 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13182 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13183 * config/sparc/linux.mh (XDEPFILES): Delete.
13184 * config/vax/vaxult.mh (XDEPFILES): Delete.
13185 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13186 * Makefile.in (DEPFILES): Remove XDEPFILES.
13187
375fc983
AC
131882002-01-17 Andrew Cagney <ac131313@redhat.com>
13189
13190 * utils.c (internal_verror): Fix comments, default is yes not no.
13191 Update queries to match. Default to quit and dump core.
13192
8926118c
AC
131932002-01-17 Andrew Cagney <ac131313@redhat.com>
13194
13195 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13196 copyright.
13197 * defs.h, event-top.c, gdbcmd.h: Ditto.
13198 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13199 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13200 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13201 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13202 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13203 * mi/mi-main.c:Ditto.
13204
13205 * stack.c, symfile.c: Update copyright.
13206
45b7b345
DJ
132072002-01-17 Daniel Jacobowitz <drow@mvista.com>
13208
db728ff7
DJ
13209 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13210 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13211 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13212 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 13213
db728ff7
DJ
132142002-01-17 Daniel Jacobowitz <drow@mvista.com>
13215
13216 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13217 * gdbserver/low-lynx.c (myattach): Likewise.
13218 * gdbserver/low-nbsd.c (myattach): Likewise.
13219 * gdbserver/low-sim.c (myattach): Likewise.
13220 * gdbserver/low-sparc.c (myattach): Likewise.
13221 * gdbserver/low-sun3.c (myattach): Likewise.
13222
13223 * gdbserver/low-linux.c (myattach): New function.
45b7b345 13224
db728ff7 13225 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
13226 (main): Handle "--attach".
13227
8de3c354
AC
132282002-01-16 Andrew Cagney <ac131313@redhat.com>
13229
13230 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13231 maintainer.
13232
b0129042
DJ
132332002-01-15 Daniel Jacobowitz <drow@mvista.com>
13234
13235 * c-typeprint.c (is_type_conversion_operator): Add additional
13236 check for non-conversion operators.
13237
ba8679fb 132382002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
13239
13240 * linux-proc.c: Add "info proc" command, a la procfs.c.
13241 (read_mapping): New function, abstract and re-use code.
13242 (linux_find_memory_regions): Use new func read_mapping.
13243 (linux_info_proc_cmd): New function, implement "info proc".
13244 (_initialize_linux_proc): Add new command "info proc".
13245
e4f9b4d5
MS
132462002-01-15 Michael Snyder <msnyder@redhat.com>
13247
13248 * symfile.c (generic_load): Use bfd_map_over_sections method
13249 instead of manipulating bfd structure members directly.
13250 (add_section_size_callback): New function, bfd sections callback
13251 used by generic_load.
13252 (load_sections_callback): New function, bfd sections callback
13253 used by generic_load.
13254
08cf96df
EZ
132552002-01-15 Elena Zannoni <ezannoni@redhat.com>
13256
abf22e64 13257 [Based on work by Jim Blandy]
08cf96df
EZ
13258 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13259 (builtin_type_vec128): Export.
13260 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13261 types.
13262 (builtin_type_vec128): New builtin type for 128 bit vector
13263 registers.
13264 (build_gdbtypes): Initialize builtin_type_v16qi and
13265 builtin_type_v8hi. Create the vec128 register builtin type
13266 structure.
13267 (build_builtin_type_vec128): New function.
abf22e64 13268 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13269 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13270 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13271 AltiVec register to new builtin type.
13272
d7242108
DJ
132732001-01-15 Daniel Jacobowitz <drow@mvista.com>
13274
13275 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13276 to make_cv_type.
13277
4ee3352d
AC
132782002-01-14 Andrew Cagney <ac131313@redhat.com>
13279
13280 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13281 CLEAN_UP_REGISTER_VALUE.
13282 * regcache.c (supply_register): Update only call.
13283
f015b2e7
AC
132842002-01-14 Andrew Cagney <ac131313@redhat.com>
13285
13286 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13287 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13288 a29k-*-vxworks* targets as obsolete.
13289
356ae49d
MS
132902002-01-14 Michael Snyder <msnyder@redhat.com>
13291
13292 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13293 until we can resolve portability issues.
13294 * gregset.h: Remove references to fpxregs.
13295 * gcore.c (gcore_command): Initialize note_sec to NULL.
13296
ade8f45e
AC
132972002-01-13 Andrew Cagney <ac131313@redhat.com>
13298
13299 * signals.c (target_signal_to_name): Rewrite. Only use
13300 signals[].name when in bounds and non-NULL.
abf22e64 13301
89c49e7a
AC
133022002-01-13 Andrew Cagney <ac131313@redhat.com>
13303
13304 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13305 * signals.c (target_signal_to_name): Verify that SIG is within the
13306 bounds of the signals array.
13307
4daa9f9f
AC
133082002-01-13 Andrew Cagney <ac131313@redhat.com>
13309
13310 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13311
ba4bbdcb
KS
133122002-01-13 Keith Seitz <keiths@redhat.com>
13313
13314 * stack.c (print_frame_info_base): Print the frame's pc
13315 only if when print_frame_info_listing_hook is not defined.
13316
575bbeb6
KS
133172002-01-13 Keith Seitz <keiths@redhat.com>
13318
13319 * varobj.c (varobj_set_value): Make sure that there were no
13320 errors evaluating the object before attempting to set its
13321 value.
13322 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13323 so this offset adjustment is no longer necessary.
13324 (create_child): Don't set the error flag if the child is
13325 a CPLUS_FAKE_CHILD.
13326 (value_of_child): If value_fetch_lazy fails, return NULL
13327 so that callers will be notified that an error occurred.
13328 (c_value_of_variable): Delay check of variable's validity
13329 until later. We actually want all structs and unions to have
13330 the value "{...}".
13331 Do not return "???" for variables which could not be evaluated.
13332 This error condition must be returned to the caller so that it
13333 can get the error condition from gdb.
13334 (cplus_name_of_child): Adjust index for vptr before figuring
13335 out the name of the child.
13336 (cplus_value_of_child): If a child's (real) parent is not valid,
13337 don't even bother trying to give a value for it. Just return
13338 an error. Change all instances in this function.
13339 (cplus_type_of_child): If our parent is one of the "fake"
13340 parents, we need to get at the type of the real parent, and
13341 derive the child's true type using this information.
13342
b76898ab
AC
133432002-01-13 Andrew Cagney <ac131313@redhat.com>
13344
13345 From 2002-01-09 John Marshall <johnm@falch.net>:
13346 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13347 sources.redhat.com, and tweak some related URLs which had
13348 suffered from linkrot.
13349
b6649e88
AC
133502002-01-13 Andrew Cagney <ac131313@redhat.com>
13351
13352 From Jeff law:
13353 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13354 structures passed in registers.
13355
82cc5033
EZ
133562002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13357
13358 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13359 white space which prevented compilation. Reported by DSK
13360 <dsk@student.unsw.edu.au>.
13361
ba5f2f8a
MS
133622002-01-11 Michael Snyder <msnyder@redhat.com>
13363
fbd35540
MS
13364 * symfile.c (build_section_addr_info_from_section_tab):
13365 Use bfd access method instead of manipulating bfd directly.
13366 (syms_from_objfile): Ditto.
13367 (simple_overlay_update_1): Ditto.
13368 (simple_overlay_update): Ditto.
13369 (generic_load): Ditto.
13370 (overlay_unmapped_address): FIXME comment, bfd access methods.
13371 (sections_overlap): FIXME comment, bfd access methods.
13372 (pc_in_mapped_range): FIXME comment, bfd access methods.
13373 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13374 (section_is_mapped): FIXME comment, bfd access methods.
13375 (section_is_overlay): FIXME comment, bfd access methods.
13376
ba5f2f8a
MS
13377 * symfile.c (generic_load): Whitespace and long line cleanups.
13378 Remove duplicate variable, change several local variables to
13379 more appropriate data types.
13380 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13381
17df2af6
AC
133822002-01-12 Andrew Cagney <ac131313@redhat.com>
13383
13384 From Peter Schauer:
13385 * language.c (longest_local_hex_string_custom): Use phex_nz to
13386 convert NUM to a hex string.
13387
ec920329
EZ
133882002-01-12 Elena Zannoni <ezannoni@redhat.com>
13389
13390 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13391 the function.
538a76d6 13392 Update Copyright year.
ec920329 13393
3abd2e01
AC
133942002-01-12 Andrew Cagney <ac131313@redhat.com>
13395
13396 * language.c (longest_raw_hex_string): Delete unused function.
13397
b21b22e0
PS
133982002-01-11 Petr Sorfa <petrs@caldera.com>
13399
13400 * MAINTAINERS (write-after-approval): Add myself.
13401 * dwarf2read.c (read_tag_string_type): Handling of
13402 DW_AT_byte_size.
13403 (read_tag_string_type): FORTRAN fix to prevent propagation of
13404 first string size.
13405 (set_cu_language): Handling of DW_LANG_Fortran95
13406
747fe712
RE
134072002-01-11 Richard Earnshaw <rearnsha@arm.com>
13408
13409 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13410 GETPID(inferior_ptid).
13411 (store_inferior_registers): Likewise.
13412
f1bea926
JM
134132002-01-10 Jason Merrill <jason@redhat.com>
13414
13415 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13416 Fix DW_OP_minus.
13417
ae940673
AC
134182002-01-10 Andrew Cagney <ac131313@redhat.com>
13419
13420 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13421 and bfd/elf32-sh-nbsd.c.
13422
00546b04
MS
134232002-01-10 Michael Snyder <msnyder@redhat.com>
13424
352ed7b4
MS
13425 * NEWS: Mention --pid and corefile/proc-id behavior change.
13426
c18be923
MS
13427 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13428 * gcore.c: Include cli/cli-decode.h instead of command.h.
13429
00546b04
MS
13430 * main.c (captured_main): Add new command line option "--pid".
13431 If the second command line argument (following the symbol-file)
13432 begins with a digit, try to attach to it before trying to open
13433 it as a corefile.
13434 (print_gdb_help): Document the "--pid" argument.
13435
db60ec62
EZ
134362002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13437
13438 * completer.c (command_completer): New function.
13439
13440 * completer.h <command_completer>: Add prototype.
13441
13442 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13443 completer for the "help" command.
13444
39c22d1a
JM
134452002-01-09 Jason Merrill <jason@redhat.com>
13446
13447 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13448
c564377f
MS
134492002-01-09 Michael Snyder <msnyder@redhat.com>
13450
975aec09
MS
13451 * i386-linux-nat.c (fill_fpxregset): Make global.
13452 (store_fpxregset): Ditto.
13453
db4a10fa
MS
13454 * gregset.h (gdb_fpxregset_t): Define.
13455 (supply_fpxregset): Prototype.
13456 (fill_fpxregset): Prototype.
13457
c564377f
MS
13458 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13459
c3d45d70
RE
134602002-01-09 Richard Earnshaw <rearnsha@arm.com>
13461
13462 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13463 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13464 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13465
fcc87af1
AC
134662002-01-09 Andrew Cagney <ac131313@redhat.com>
13467
13468 * MAINTAINERS: Update target maintainer rules so that any
13469 Maintainer can approve a tested patch for a maintenance-only
13470 target.
13471
dd96c05b
RE
134722002-01-09 Richard Earnshaw <rearnsha@arm.com>
13473
d4297db9 13474 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13475
d4297db9 13476 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13477 IN_SIGTRAMP.
13478
145fdc6e
MS
134792002-01-08 Michael Snyder <msnyder@redhat.com>
13480
13481 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13482 real name of the executable, rather than the /proc name.
13483
be4d1333
MS
134842002-01-03 Michael Snyder <msnyder@redhat.com>
13485
13486 Implement a "generate-core-file" command in gdb, save target state.
13487 * gcore.c: New file. Implement new command 'generate-core-file'.
13488 Save a corefile image of the current state of the inferior.
13489 * linux-proc.c: Add linux-specific code for saving corefiles.
13490 * target.h (struct target_ops): Add new target vectors for saving
13491 corefiles; to_find_memory_regions and to_make_corefile_notes.
13492 (target_find_memory_regions): New macro.
13493 (target_make_corefile_notes): New macro.
13494 * target.c (update_current_target): Inherit new target methods.
13495 (dummy_find_memory_regions): New place-holder method.
13496 (dummy_make_corefile_notes): New place-holder method.
13497 (init_dummy_target): Initialize new dummy target vectors.
13498 * exec.c (exec_set_find_memory_regions): New function.
13499 Allow the exec_ops vector for memory regions to be taken over.
13500 (exec_make_note_section): New function, target vector method.
13501 * defs.h (exec_set_find_memory_regions): Export prototype.
13502 * procfs.c (proc_find_memory_regions): New function, corefile method.
13503 (procfs_make_note_section): New function, corefile method.
13504 (init_procfs_ops): Set new target vector pointers.
13505 (find_memory_regions_callback): New function.
13506 (procfs_do_thread_registers): New function.
13507 (procfs_corefile_thread_callback): New function.
13508 * sol-thread.c (sol_find_memory_regions): New function.
13509 (sol_make_note_section): New function.
13510 (init_sol_thread_ops): Initialize new target vectors.
13511 * inftarg.c (inftarg_set_find_memory_regions): New function.
13512 Allow to_find_memory_regions vector to be taken over.
13513 (inftarg_set_make_corefile_notes): New function.
13514 Allow to_make_corefile_notes vector to be taken over.
13515 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13516 interface layer if not target_has_execution (may be a corefile).
13517 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13518 * config/sparc/sun4sol2.mh: Ditto.
13519 * config/alpha/alpha-linux.mh: Ditto.
13520 * config/arm/linux.mh: Ditto.
13521 * config/i386/x86-64linux.mh: Ditto.
13522 * config/ia64/linux.mh: Ditto.
13523 * config/m68k/linux.mh: Ditto.
13524 * config/mips/linux.mh: Ditto.
13525 * config/powerpc/linux.mh: Ditto.
13526 * config/sparc/linux.mh: Ditto.
13527
c6b92abd
MS
135282002-01-07 Michael Snyder <msnyder@redhat.com>
13529
13530 * arm-linux-nat.c: Remove references to regcache.c internal data
13531 (registers[] and register_valid[]).
13532
4b09dc8c
MS
135332002-01-07 Michael Snyder <msnyder@redhat.com>
13534
abf22e64
AJ
13535 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13536 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
13537 symbol file and shlibs.
13538 * Makefile.in: Add rule for linux-proc.o.
13539 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13540 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13541 * config/arm/linux.mh: Ditto.
13542 * config/i386/linux.mh: Ditto.
13543 * config/i386/x86-64linux.mh: Ditto.
13544 * config/ia64/linux.mh: Ditto.
13545 * config/m68k/linux.mh: Ditto.
13546 * config/mips/linux.mh: Ditto.
13547 * config/powerpc/linux.mh: Ditto.
13548 * config/sparc/linux.mh: Ditto.
13549
c25b74ac
PM
135502002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13551
13552 * win32-nat.c: Add i386-tdep.h dependency.
13553
94cd915f
MS
135542002-01-07 Michael Snyder <msnyder@redhat.com>
13555
c7cccb76
MS
13556 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13557 instead of bfd_get_arch_size. Don't bail out just because
13558 there's no exec_bfd.
abf22e64 13559
34c0bd93
MS
13560 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13561 * p-valprint.c (pascal_object_print_value): Ditto.
13562 * somread.c (som_symtab_read): Ditto.
13563 * symfile.c (simple_free_overlay_region_table): Ditto.
13564 * valops.c (value_assign): Ditto.
13565
21c1c920
MS
13566 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13567 use tilde_expand and strerror for opening save-tracepoints file.
13568
5bbd998e
MS
13569 * thread-db.c (thread_db_new_objfile): Indendation fix.
13570
94cd915f
MS
13571 * infptrace.c (GDB_MAX_ALLOCA): New define.
13572 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 13573 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
13574 can be overridden with whatever value is appropriate to the host).
13575 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13576 alloca to allocate potentially large buffer.
13577 * rs6000-nat.c (child_xfer_memory): Ditto.
13578 * symm-nat.c (child_xfer_memory): Ditto.
13579 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13580
494e8a93
JSC
135812002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13582
13583 From Nick Clifton <nickc@redhat.com>
13584 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13585
d0e1d48e
MS
135862002-01-07 Michael Snyder <msnyder@redhat.com>
13587
abf22e64 13588 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
13589 Don't use exec_bfd if it's NULL.
13590
290b2c7a
MK
135912002-01-06 Mark Kettenis <kettenis@gnu.org>
13592
abf22e64 13593 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 13594
aef21287
AC
135952002-01-06 Andrew Cagney <ac131313@redhat.com>
13596
13597 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13598 * gnu-nat.c: Ditto.
13599
30efa627
AC
136002002-01-06 Andrew Cagney <ac131313@redhat.com>
13601
13602 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13603 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13604 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13605 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13606 z8k-coff have not been multi-arched. Update z8k-coff build
13607 status.
13608
9b4ff276
AC
136092002-01-06 Andrew Cagney <ac131313@redhat.com>
13610
13611 * MAINTAINERS: Mark a29k target as obsolete.
13612 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13613 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13614 comments.
13615 * NEWS: Note that a29k targets are obsolete.
13616 * a29k-tdep.c: Mark as obsolete.
13617 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13618 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13619 a29k-*-vxworks* targets as obsolete.
13620 * remote-adapt.c: Obsolete.
13621 * remote-eb.c: Obsolete.
13622 * remote-mm.c: Obsolete.
13623 * remote-udi.c: Obsolete.
13624 * config/a29k/a29k-udi.mt: Obsolete.
13625 * config/a29k/a29k.mt: Obsolete.
13626 * config/a29k/tm-a29k.h: Obsolete.
13627 * config/a29k/tm-vx29k.h: Obsolete.
13628 * config/a29k/vx29k.mt: Obsolete.
13629
a9011d31
AC
136302002-01-05 Andrew Cagney <ac131313@redhat.com>
13631
13632 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13633 with BFD_ENDIAN_BIG.
13634
9299404e
AC
136352002-01-05 Andrew Cagney <ac131313@redhat.com>
13636
13637 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13638 * configure, config.in: Re-generate.
13639 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13640 * defs.h: Do not include <endian.h>.
13641
7e89e357
JT
136422002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13643
13644 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13645 * config.in: Regenerate.
13646 * configure.in: Update copyright years.
13647 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13648 * configure: Regenerate.
13649 * i386bsd-nat.c: Update copyright years.
13650 (fill_gregset): Use regcache_collect.
13651 (fetch_inferior_registers): Only fetch integer registers
13652 if requested to do so. Add support for XMM registers
13653 using PT_GETXMMREGS.
13654 (store_inferior_registers): Only store integer registers
13655 if requested to do so. Add support for XMM registers
13656 using PT_SETXMMREGS.
13657 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13658 (store_inferior_registers): Remove.
13659 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13660 (fetch_elfcore_registers): New function.
13661 (i386nbsd_elfcore_fns): New.
13662 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13663 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13664 i386bsd-nat.o.
13665 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13666 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13667 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13668 * config/i386/tm-nbsd.h: Update copyright years.
13669 (HAVE_SSE_REGS): Define.
13670 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13671 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13672 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13673 (SIGCONTEXT_PC_OFFSET): Remove.
13674 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13675
a752853e
AC
136762002-01-05 Andrew Cagney <ac131313@redhat.com>
13677
13678 * configure.tgt: Remove powerpc-*-macos* target.
13679 * config/m68k/xm-mpw.h: Delete file.
13680 * config/xm-mpw.h: Delete file.
13681 * ser-mac.c: Delete file.
13682 * mpw-make.sed: Delete file.
13683 * mpw-config.in: Delete file.
13684 * mac-xdep.c: Delete file.
13685 * mac-gdb.r: Delete file.
13686 * mac-defs.h: Delete file.
13687 * mac-nat.c: Delete file.
13688 * config/powerpc/macos.mh: Delete file.
13689 * config/powerpc/macos.mt: Delete file.
13690 * config/powerpc/nm-macos.h: Delete file.
13691 * config/powerpc/tm-macos.h: Delete file.
13692 * source.c (openp, open_source_file): Remove obsolete code.
13693 * top.c (gdb_readline): Ditto.
13694 * utils.c (query): Ditto.
13695 * event-top.c (display_gdb_prompt): Ditto.
13696 * Makefile.in (ser-mac.o): Delete obsolete target.
13697 * NEWS: Update.
13698
d7449b42
AC
136992002-01-04 Andrew Cagney <ac131313@redhat.com>
13700
13701 * defs.h (BIG_ENDIAN): Delete macro definition.
13702 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13703 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13704 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13705 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13706 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13707 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13708 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13709 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13710 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13711 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13712 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13713 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13714 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13715 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13716 * gdbarch.c: Re-generate.
13717
356374e8
DJ
137182002-01-04 Daniel Jacobowitz <drow@mvista.com>
13719
13720 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13721 for core files.
13722
a2b8f8f8
JT
137232002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13724
13725 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13726
12466af9
AC
137272002-01-04 Andrew Cagney <ac131313@redhat.com>
13728
13729 * value.h (value_ptr): Delete typedef.
13730
3549ab40
JT
137312002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13732
13733 * i386nbsd-nat.c: Update copyright years.
13734 Include i386-tdep.h.
13735
fedbd091
EZ
137362002-01-04 Elena Zannoni <ezannoni@redhat.com>
13737
13738 * stabsread.c: Update copyright years.
13739
13740 From Debashis Mahata <debashis.mahata@wipro.com>:
13741 (read_struct_fields): Deal with Sun C compiler erroneous stab
13742 output for structs and unions.
fec8b34f 13743 Fix PR gdb/269.
fedbd091 13744
eb43544b
DJ
137452002-01-04 Daniel Jacobowitz <drow@mvista.com>
13746
13747 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13748 prototype.
13749
1514d34e
DJ
137502002-01-04 Daniel Jacobowitz <drow@mvista.com>
13751
13752 * cp-abi.c: Fix whitespace.
13753 (baseclass_offset): New wrapper function.
13754 * cp-abi.h (baseclass_offset): Add prototype.
13755 (struct cp_abi_ops): Add baseclass_offset pointer.
13756
13757 * valops.c (vb_match): Move to...
13758 * gnu-v2-abi.c (vb_match): here.
13759 * valops.c (baseclass_offset): Move to...
13760 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13761
13762 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13763
13764 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13765 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13766 * hpacc-abi.c (init_hpacc_ops): Likewise.
13767
7f8c9282
DJ
137682002-01-04 Daniel Jacobowitz <drow@mvista.com>
13769
13770 * valops.c (find_overload_match): Accept obj as a
13771 reference parameter. Update it before returning.
13772 * value.h (find_overload_match): Update prototype.
13773 * eval.c (evaluate_subexp_standard): Pass object to
13774 find_overload_match by reference.
13775
f23631e4
AC
137762002-01-03 Andrew Cagney <ac131313@redhat.com>
13777
13778 * valarith.c: Replace value_ptr with struct value pointer. Remove
13779 register attribute from value declarations.
13780 * valops.c: Ditto.
13781 * value.h: Ditto.
13782 * scm-lang.c (scm_lookup_name): Ditto.
13783
79e10fab 137842002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 13785
79e10fab
AC
13786 Abstract the functionality of iterating over mapped memory
13787 regions into a general purpose iterator function.
abf22e64 13788 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
13789 iterator for memory sections.
13790 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13791 (solib_mappings_callback): New function, callback for above.
13792 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13793 (info_mappings_callback): New function, callback for above.
13794
13795 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13796
c5ad026a
MK
137972002-01-01 Mark Kettenis <kettenis@gnu.org>
13798
d2a7c97a
MK
13799 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13800 * i386-tdep.c: Include "elf-bfd.h".
13801 (process_note_abi_tag_sections): New function.
13802 (i386_gdbarch_init): Add code to recognize various OS/ABI
13803 combinations.
13804
c5ad026a
MK
13805 * maint.c (_initialize_maint_cmds): Add missing \ in
13806 string-literal.
13807
a1a5b71e 13808For older changes see ChangeLog-2001
c906108c
SS
13809\f
13810Local Variables:
13811mode: change-log
13812left-margin: 8
13813fill-column: 74
13814version-control: never
13815End:
This page took 0.992225 seconds and 4 git commands to generate.